!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="80801f9c-70b0-464c-91c5-03eb85aebb86",e._sentryDebugIdIdentifier="sentry-dbid-80801f9c-70b0-464c-91c5-03eb85aebb86")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[705],{48062:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{html:t,height:n=null,width:s=null,children:o,dataNtpc:l=""}=e;return(0,i.useEffect)(()=>{l&&performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-".concat(l)}})},[l]),(0,r.jsxs)(r.Fragment,{children:[o,t?(0,r.jsx)("div",{style:{height:null!=n?"".concat(n,"px"):"auto",width:null!=s?"".concat(s,"px"):"auto"},"data-ntpc":l,dangerouslySetInnerHTML:{__html:t}}):null]})};let r=n(55057),i=n(78293)},96095:(e,t,n)=>{"use strict";let r;Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=function(e){let{gaId:t,debugMode:n,dataLayerName:l="dataLayer",nonce:a}=e;return void 0===r&&(r=l),(0,s.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-ga"}})},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.default,{id:"_next-ga-init",dangerouslySetInnerHTML:{__html:"\n window['".concat(l,"'] = window['").concat(l,"'] || [];\n function gtag(){window['").concat(l,"'].push(arguments);}\n gtag('js', new Date());\n\n gtag('config', '").concat(t,"' ").concat(n?",{ 'debug_mode': true }":"",");")},nonce:a}),(0,i.jsx)(o.default,{id:"_next-ga",src:"https://www.googletagmanager.com/gtag/js?id=".concat(t),nonce:a})]})},t.sendGAEvent=function(){for(var e=arguments.length,t=Array(e),n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sendGTMEvent=void 0,t.GoogleTagManager=function(e){let{gtmId:t,gtmScriptUrl:n="https://www.googletagmanager.com/gtm.js",dataLayerName:l="dataLayer",auth:a,preview:u,dataLayer:c,nonce:p}=e;o=l;let f="dataLayer"!==l?"&l=".concat(l):"";return(0,i.useEffect)(()=>{performance.mark("mark_feature_usage",{detail:{feature:"next-third-parties-gtm"}})},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(s.default,{id:"_next-gtm-init",dangerouslySetInnerHTML:{__html:"\n (function(w,l){\n w[l]=w[l]||[];\n w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});\n ".concat(c?"w[l].push(".concat(JSON.stringify(c),")"):"","\n })(window,'").concat(l,"');")},nonce:p}),(0,r.jsx)(s.default,{id:"_next-gtm","data-ntpc":"GTM",src:"".concat(n,"?id=").concat(t).concat(f).concat(a?">m_auth=".concat(a):"").concat(u?">m_preview=".concat(u,">m_cookies_win=x"):""),nonce:p})]})};let r=n(55057),i=n(78293),s=function(e){return e&&e.__esModule?e:{default:e}}(n(50097)),o="dataLayer";t.sendGTMEvent=(e,t)=>{let n=t||o;window[n]=window[n]||[],window[n].push(e)}},19801:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sendGAEvent=t.GoogleAnalytics=t.sendGTMEvent=t.GoogleTagManager=t.YouTubeEmbed=t.GoogleMapsEmbed=void 0;var i=n(60096);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return r(i).default}});var s=n(98420);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return r(s).default}});var o=n(70387);Object.defineProperty(t,"GoogleTagManager",{enumerable:!0,get:function(){return o.GoogleTagManager}}),Object.defineProperty(t,"sendGTMEvent",{enumerable:!0,get:function(){return o.sendGTMEvent}});var l=n(96095);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return l.GoogleAnalytics}}),Object.defineProperty(t,"sendGAEvent",{enumerable:!0,get:function(){return l.sendGAEvent}})},98420:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){let{html:t,scripts:n,stylesheets:r}=(0,o.YouTubeEmbed)(e);return(0,i.jsx)(l.default,{height:e.height||null,width:e.width||null,html:t,dataNtpc:"YouTubeEmbed",children:null==n?void 0:n.map(e=>(0,i.jsx)(s.default,{src:e.url,strategy:a[e.strategy],stylesheets:r},e.url))})};let i=n(55057),s=r(n(50097)),o=n(74381),l=r(n(48062)),a={server:"beforeInteractive",client:"afterInteractive",idle:"lazyOnload",worker:"worker"}},87796:(e,t,n)=>{"use strict";let r=n(46973),i=/^[\da-fA-F]+$/,s=/^\d+$/,o=new WeakMap;function l(e){e=e.Parser.acorn||e;let t=o.get(e);if(!t){let n=e.tokTypes,r=e.TokContext,i=e.TokenType,s=new r("...",!0,!0),u={jsxName:new i("jsxName"),jsxText:new i("jsxText",{beforeExpr:!0}),jsxTagStart:new i("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new i("jsxTagEnd")};u.jsxTagStart.updateContext=function(){this.context.push(a),this.context.push(s),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===s&&e===n.slash||t===l?(this.context.pop(),this.exprAllowed=this.curContext()===a):this.exprAllowed=!0},t={tokContexts:{tc_oTag:s,tc_cTag:l,tc_expr:a},tokTypes:u},o.set(e,t)}return t}function a(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?a(e.object)+"."+a(e.property):void 0:e}e.exports=function(e){return e=e||{},function(t){return function(e,t){let o=t.acorn||n(89356),u=l(o),c=o.tokTypes,p=u.tokTypes,f=o.tokContexts,d=u.tokContexts.tc_oTag,h=u.tokContexts.tc_cTag,m=u.tokContexts.tc_expr,g=o.isNewLine,y=o.isIdentifierStart,x=o.isIdentifierChar;return class extends t{static get acornJsx(){return u}jsx_readToken(){let e="",t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:if(this.pos===this.start){if(60===n&&this.exprAllowed)return++this.pos,this.finishToken(p.jsxTagStart);return this.getTokenFromCode(n)}return e+=this.input.slice(t,this.pos),this.finishToken(p.jsxText,e);case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===n?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:g(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let t,n=this.input.charCodeAt(this.pos);return++this.pos,13===n&&10===this.input.charCodeAt(this.pos)?(++this.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(n),this.options.locations&&(++this.curLine,this.lineStart=this.pos),t}jsx_readString(e){let t="",n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let r=this.input.charCodeAt(this.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.pos),t+=this.jsx_readEntity(),n=this.pos):g(r)?(t+=this.input.slice(n,this.pos),t+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return t+=this.input.slice(n,this.pos++),this.finishToken(c.string,t)}jsx_readEntity(){let e="",t=0,n,o=this.input[this.pos];"&"!==o&&this.raise(this.pos,"Entity must start with an ampersand");let l=++this.pos;for(;this.pos")}let o=i.name?"Element":"Fragment";return n["opening"+o]=i,n["closing"+o]=s,n.children=r,this.type===c.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(n,"JSX"+o)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type="JSXText",e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===p.jsxText?this.jsx_parseText():this.type===p.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===m)return this.jsx_readToken();if(t===d||t===h){if(y(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(p.jsxTagEnd);if((34===e||39===e)&&t==d)return this.jsx_readString(e)}return 60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(p.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==c.braceL){var t=this.curContext();t==d?this.context.push(f.b_expr):t==m?this.context.push(f.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==c.slash||e!==p.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(h),this.exprAllowed=!1}}}}({allowNamespaces:!1!==e.allowNamespaces,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return l(n(89356)).tokTypes},configurable:!0,enumerable:!0})},46973:e=>{e.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}},22658:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,s=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),s=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!s)return!1;for(r in e);return void 0===r||t.call(e,r)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},a=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,p=arguments[0],f=1,d=arguments.length,h=!1;for("boolean"==typeof p&&(h=p,p=arguments[1]||{},f=2),(null==p||"object"!=typeof p&&"function"!=typeof p)&&(p={});f{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g;function u(e){return e?e.replace(a,""):""}e.exports=function(e,a){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];a=a||{};var c=1,p=1;function f(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");p=~r?e.length-r:p+e.length}function d(){var e={line:c,column:p};return function(t){return t.position=new h(e),y(r),t}}function h(e){this.start=e,this.end={line:c,column:p},this.source=a.source}h.prototype.content=e;var m=[];function g(t){var n=Error(a.source+":"+c+":"+p+": "+t);if(n.reason=t,n.filename=a.source,n.line=c,n.column=p,n.source=e,a.silent)m.push(n);else throw n}function y(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function x(e){var t;for(e=e||[];t=b();)!1!==t&&e.push(t);return e}function b(){var t=d();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return p+=2,f(r),e=e.slice(n),p+=2,t({type:"comment",comment:r})}}return y(r),function(){var e,n=[];for(x(n);e=function(){var e=d(),n=y(i);if(n){if(b(),!y(s))return g("property missing ':'");var r=y(o),a=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return y(l),a}}();)!1!==e&&(n.push(e),x(n));return n}()}},65041:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,t.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},95285:(e,t,n)=>{"use strict";n.d(t,{default:()=>i.a});var r=n(81014),i=n.n(r)},95164:(e,t,n)=>{"use strict";var r=n(88492);n.o(r,"useParams")&&n.d(t,{useParams:function(){return r.useParams}}),n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}}),n.o(r,"useSearchParams")&&n.d(t,{useSearchParams:function(){return r.useSearchParams}})},50097:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i.a});var r=n(54634),i=n.n(r),s={};for(let e in r)"default"!==e&&(s[e]=()=>r[e]);n.d(t,s)},81014:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return i}});let r=n(54510)._(n(59662));function i(e,t){var n;let i={};"function"==typeof e&&(i.loader=e);let s={...i,...t};return(0,r.default)({...s,modules:null==(n=s.loadableGenerated)?void 0:n.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},56613:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return i}});let r=n(61593);function i(e){let{reason:t,children:n}=e;if("undefined"==typeof window)throw new r.BailoutToCSRError(t);return n}},59662:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return u}});let r=n(55057),i=n(78293),s=n(56613),o=n(8088);function l(e){return{default:e&&"default"in e?e.default:e}}let a={loader:()=>Promise.resolve(l(()=>null)),loading:null,ssr:!0},u=function(e){let t={...a,...e},n=(0,i.lazy)(()=>t.loader().then(l)),u=t.loading;function c(e){let l=u?(0,r.jsx)(u,{isLoading:!0,pastDelay:!0,error:null}):null,a=!t.ssr||!!t.loading,c=a?i.Suspense:i.Fragment,p=t.ssr?(0,r.jsxs)(r.Fragment,{children:["undefined"==typeof window?(0,r.jsx)(o.PreloadChunks,{moduleIds:t.modules}):null,(0,r.jsx)(n,{...e})]}):(0,r.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,r.jsx)(n,{...e})});return(0,r.jsx)(c,{...a?{fallback:l}:{},children:p})}return c.displayName="LoadableComponent",c}},8088:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return l}});let r=n(55057),i=n(35448),s=n(94823),o=n(35630);function l(e){let{moduleIds:t}=e;if("undefined"!=typeof window)return null;let n=s.workAsyncStorage.getStore();if(void 0===n)return null;let l=[];if(n.reactLoadableManifest&&t){let e=n.reactLoadableManifest;for(let n of t){if(!e[n])continue;let t=e[n].files;l.push(...t)}}return 0===l.length?null:(0,r.jsx)(r.Fragment,{children:l.map(e=>{let t=n.assetPrefix+"/_next/"+(0,o.encodeURIPath)(e);return e.endsWith(".css")?(0,r.jsx)("link",{precedence:"dynamic",href:t,rel:"stylesheet",as:"style"},e):((0,i.preload)(t,{as:"script",fetchPriority:"low"}),null)})})}},52333:e=>{var t=String,n=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=n(),e.exports.createColors=n},65:(e,t,n)=>{"use strict";n.d(t,{ErrorBoundary:()=>o});var r=n(78293);let i=(0,r.createContext)(null),s={didCatch:!1,error:null};class o extends r.Component{static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(null!==e){for(var t,n,r=arguments.length,i=Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}(e.resetKeys,r)){var i,o;null===(i=(o=this.props).onReset)||void 0===i||i.call(o,{next:r,prev:e.resetKeys,reason:"keys"}),this.setState(s)}}render(){let{children:e,fallbackRender:t,FallbackComponent:n,fallback:s}=this.props,{didCatch:o,error:l}=this.state,a=e;if(o){let e={error:l,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)a=t(e);else if(n)a=(0,r.createElement)(n,e);else if(void 0!==s)a=s;else throw l}return(0,r.createElement)(i.Provider,{value:{didCatch:o,error:l,resetErrorBoundary:this.resetErrorBoundary}},a)}constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=s}}},77379:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=null;if(!e||"string"!=typeof e)return n;var r=(0,i.default)(e),s="function"==typeof t;return r.forEach(function(e){if("declaration"===e.type){var r=e.property,i=e.value;s?t(r,i,e):i&&((n=n||{})[r]=i)}}),n};var i=r(n(73769))},74381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=t.GoogleMapsEmbed=t.GoogleAnalytics=void 0;var r=n(97251);Object.defineProperty(t,"GoogleAnalytics",{enumerable:!0,get:function(){return r.GoogleAnalytics}});var i=n(77080);Object.defineProperty(t,"GoogleMapsEmbed",{enumerable:!0,get:function(){return i.GoogleMapsEmbed}});var s=n(48128);Object.defineProperty(t,"YouTubeEmbed",{enumerable:!0,get:function(){return s.YouTubeEmbed}})},97251:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleAnalytics=void 0;let s=i(n(4753)),o=n(97743);t.GoogleAnalytics=e=>{var t=r(e,[]);return(0,o.formatData)(s.default,t)}},77080:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GoogleMapsEmbed=void 0;let s=i(n(31738)),o=n(97743);t.GoogleMapsEmbed=e=>{var t=r(e,[]);return(0,o.formatData)(s.default,t)}},48128:function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);it.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.YouTubeEmbed=void 0;let s=i(n(49870)),o=n(97743);t.YouTubeEmbed=e=>{var t=r(e,[]);return(0,o.formatData)(s.default,t)}},97743:(e,t)=>{"use strict";function n(e,t,r=!1){return t?Object.keys(e).filter(e=>r?!t.includes(e):t.includes(e)).reduce((t,n)=>(t[n]=e[n],t),{}):{}}function r(e,t,n,r){let i=r&&Object.keys(r).length>0?new URL(Object.values(r)[0],e):new URL(e);return t&&n&&t.forEach(e=>{n[e]&&i.searchParams.set(e,n[e])}),i.toString()}function i(e,t,n,i,s){var o;if(!t)return`<${e}>`;let l=(null===(o=t.src)||void 0===o?void 0:o.url)?Object.assign(Object.assign({},t),{src:r(t.src.url,t.src.params,i,s)}):t,a=Object.keys(Object.assign(Object.assign({},l),n)).reduce((e,t)=>{let r=null==n?void 0:n[t],i=l[t],s=null!=r?r:i,o=!0===s?t:`${t}="${s}"`;return s?e+` ${o}`:e},"");return`<${e}${a}>`}Object.defineProperty(t,"__esModule",{value:!0}),t.formatData=t.createHtml=t.formatUrl=void 0,t.formatUrl=r,t.createHtml=i,t.formatData=function(e,t){var s,o,l,a,u;let c=n(t,null===(s=e.scripts)||void 0===s?void 0:s.reduce((e,t)=>[...e,...Array.isArray(t.params)?t.params:[]],[])),p=n(t,null===(l=null===(o=e.html)||void 0===o?void 0:o.attributes.src)||void 0===l?void 0:l.params),f=n(t,[null===(u=null===(a=e.html)||void 0===a?void 0:a.attributes.src)||void 0===u?void 0:u.slugParam]),d=n(t,[...Object.keys(c),...Object.keys(p),...Object.keys(f)],!0);return Object.assign(Object.assign({},e),{html:e.html?i(e.html.element,e.html.attributes,d,p,f):null,scripts:e.scripts?e.scripts.map(e=>Object.assign(Object.assign({},e),{url:r(e.url,e.params,c)})):null})}},35510:(e,t,n)=>{"use strict";let r;var i=n(44360),s=n(52333),o=n(65041),l=n(86580);let a=(e,t)=>n=>e(t(n));function u(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:a(a(e.white,e.bgRed),e.bold),gutter:e.gray,marker:a(e.red,e.bold),message:a(e.red,e.bold),reset:e.reset}}let c=u(s.createColors(!0)),p=u(s.createColors(!1)),f=new Set(["as","async","from","get","of","set"]),d=/\r\n|[\n\r\u2028\u2029]/,h=/^[()[\]{}]$/;{let e=/^[a-z][\w-]*$/i,t=function(t,n,r){if("name"===t.type){if(l.isKeyword(t.value)||l.isStrictReservedWord(t.value,!0)||f.has(t.value))return"keyword";if(e.test(t.value)&&("<"===r[n-1]||"c[n](e)).join("\n"):t+=i;return t}(e):e).split(m,u).slice(a,u).map((e,t)=>{let r=a+1+t,i=` ${r}`.slice(-g),s=` ${i} |`,o=f[r],u=!f[r+1];if(!o)return` ${l.gutter(s)}${e.length>0?` ${e}`:""}`;{let t="";if(Array.isArray(o)){let r=e.slice(0,Math.max(o[0]-1,0)).replace(/[^\t]/g," "),i=o[1]||1;t=["\n ",l.gutter(s.replace(/\d/g," "))," ",r,l.marker("^").repeat(i)].join(""),u&&n.message&&(t+=" "+l.message(n.message))}return[l.marker(">"),l.gutter(s),e.length>0?` ${e}`:"",t].join("")}}).join("\n");return(n.message&&!h&&(y=`${" ".repeat(g+1)}${n.message} ${y}`),o)?l.reset(y):y}},34591:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierChar=c,t.isIdentifierName=function(e){let t=!0;for(let n=0;ne);r+=2)if((n+=t[r+1])>=e)return!0;return!1}function u(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&i.test(String.fromCharCode(e)):a(e,o)))}function c(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&s.test(String.fromCharCode(e)):a(e,o)||a(e,l))))}},86580:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return r.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return r.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return r.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return i.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return i.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return i.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return i.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return i.isStrictReservedWord}});var r=n(34591),i=n(71215)},71215:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isKeyword=function(e){return r.has(e)},t.isReservedWord=o,t.isStrictBindOnlyReservedWord=a,t.isStrictBindReservedWord=function(e,t){return l(e,t)||a(e)},t.isStrictReservedWord=l;let n={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},r=new Set(n.keyword),i=new Set(n.strict),s=new Set(n.strictBind);function o(e,t){return t&&"await"===e||"enum"===e}function l(e,t){return o(e,t)||i.has(e)}function a(e){return s.has(e)}},88829:(e,t,n)=>{"use strict";e.exports.jsxRuntime=n(55057)},6531:(e,t,n)=>{"use strict";n.d(t,{d:()=>u});var r=n(47244),i=n(98665),s=n(1968),o=n(45095),l=n(55057),a=(0,i.Rf)((e,t)=>{var n;let{as:i,className:a,children:u,...c}=e,p=(0,s.zD)(t),{slots:f,classNames:d}=(0,r.f)(),h=(0,o.$)(null==d?void 0:d.header,a);return(0,l.jsx)(i||"div",{ref:p,className:null==(n=f.header)?void 0:n.call(f,{class:h}),...c,children:u})});a.displayName="HeroUI.CardHeader";var u=a},50278:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(47244),i=n(98665),s=n(1968),o=n(45095),l=n(55057),a=(0,i.Rf)((e,t)=>{var n;let{as:i,className:a,children:u,...c}=e,p=(0,s.zD)(t),{slots:f,classNames:d}=(0,r.f)(),h=(0,o.$)(null==d?void 0:d.footer,a);return(0,l.jsx)(i||"div",{ref:p,className:null==(n=f.footer)?void 0:n.call(f,{class:h}),...c,children:u})});a.displayName="HeroUI.CardFooter";var u=a},63119:(e,t,n)=>{"use strict";n.d(t,{k:()=>s});var r=n(7945),i=n(55786),s=(0,r.tv)({slots:{base:["inline-flex items-center justify-center gap-2 rounded-small outline-none",...i.zb],wrapper:"inline-flex flex-col items-start",name:"text-small text-inherit",description:"text-tiny text-foreground-400"}})},84043:(e,t,n)=>{"use strict";n.d(t,{J:()=>p});var r=n(78293),i=n(43247),s=n(63119),o=n(45095),l=n(74687),a=n(4272),u=n(1968),c=n(76508);function p(e){let{as:t,ref:n,name:p,description:f,className:d,classNames:h,isFocusable:m=!1,avatarProps:g={},...y}=e,x={isFocusable:!1,...g},b=t||"div",v="string"==typeof b,w=(0,u.zD)(n),{isFocusVisible:k,isFocused:E,focusProps:S}=(0,i.o)({}),T=(0,r.useMemo)(()=>m||"button"===t,[m,t]),I=(0,r.useMemo)(()=>(0,s.k)(),[]),A=(0,o.$)(null==h?void 0:h.base,d),C=(0,r.useCallback)(()=>({ref:w,tabIndex:T?0:-1,"data-focus-visible":(0,l.sE)(k),"data-focus":(0,l.sE)(E),className:I.base({class:A}),...(0,c.v)((0,a.$)(y,{enabled:v}),T?S:{})}),[T,I,A,S,y]);return{Component:b,className:d,slots:I,name:p,description:f,classNames:h,baseStyles:A,avatarProps:x,getUserProps:C}}},78475:(e,t,n)=>{"use strict";n.d(t,{S:()=>a});var r=n(84043),i=n(98665),s=n(36296),o=n(55057),l=(0,i.Rf)((e,t)=>{let{Component:n,name:i,slots:l,classNames:a,description:u,avatarProps:c,getUserProps:p}=(0,r.J)({...e,ref:t});return(0,o.jsxs)(n,{...p(),children:[(0,o.jsx)(s.Q,{...c}),(0,o.jsxs)("div",{className:l.wrapper({class:null==a?void 0:a.wrapper}),children:[(0,o.jsx)("span",{className:l.name({class:null==a?void 0:a.name}),children:i}),(0,o.jsx)("span",{className:l.description({class:null==a?void 0:a.description}),children:u})]})]})});l.displayName="HeroUI.User";var a=l},55378:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(34324).A)("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]])},7362:(e,t,n)=>{"use strict";let r,i,s,o,l,a,u;n.d(t,{d:()=>lN});var c={};n.r(c),n.d(c,{boolean:()=>ex,booleanish:()=>eb,commaOrSpaceSeparated:()=>eS,commaSeparated:()=>eE,number:()=>ew,overloadedBoolean:()=>ev,spaceSeparated:()=>ek});var p={};n.r(p),n.d(p,{attentionMarkers:()=>rg,contentInitial:()=>rc,disable:()=>ry,document:()=>ru,flow:()=>rf,flowInitial:()=>rp,insideSpan:()=>rm,string:()=>rd,text:()=>rh});var f={};n.r(f),n.d(f,{BOM:()=>o3,DOCUMENT:()=>o4,FLOW_END:()=>o5,SCALAR:()=>o6,createScalarToken:()=>oX,isCollection:()=>o9,isScalar:()=>o7,prettyToken:()=>o8,resolveAsScalar:()=>oV,setScalarValue:()=>oK,stringify:()=>oG,tokenType:()=>le,visit:()=>o2});var d={};n.r(d),n.d(d,{Alias:()=>se,CST:()=>f,Composer:()=>oq,Document:()=>ob,Lexer:()=>ll,LineCounter:()=>la,Pair:()=>sj,Parser:()=>lm,Scalar:()=>sn,Schema:()=>ox,YAMLError:()=>ow,YAMLMap:()=>sM,YAMLParseError:()=>ok,YAMLSeq:()=>sF,YAMLWarning:()=>oE,isAlias:()=>iD,isCollection:()=>iU,isDocument:()=>iF,isMap:()=>iJ,isNode:()=>iz,isPair:()=>iR,isScalar:()=>iB,isSeq:()=>i$,parse:()=>lb,parseAllDocuments:()=>ly,parseDocument:()=>lx,stringify:()=>lv,visit:()=>iH,visitAsync:()=>iG});var h=n(78293),m=n(88829);function g(e){return e&&"object"==typeof e?"position"in e||"type"in e?x(e.position):"start"in e||"end"in e?x(e):"line"in e||"column"in e?y(e):"":""}function y(e){return b(e&&e.line)+":"+b(e&&e.column)}function x(e){return y(e&&e.start)+"-"+y(e&&e.end)}function b(e){return e&&"number"==typeof e?e:1}class v extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},s=!1;if(t&&(i="line"in t&&"column"in t?{place:t}:"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(s=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=r,this.line=o?o.line:void 0,this.name=g(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}v.prototype.file="",v.prototype.name="",v.prototype.reason="",v.prototype.message="",v.prototype.stack="",v.prototype.column=void 0,v.prototype.line=void 0,v.prototype.ancestors=void 0,v.prototype.cause=void 0,v.prototype.fatal=void 0,v.prototype.place=void 0,v.prototype.ruleId=void 0,v.prototype.source=void 0;let w={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');k(e);let r=0,i=-1,s=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;s--;)if(47===e.codePointAt(s)){if(n){r=s+1;break}}else i<0&&(n=!0,i=s+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,l=t.length-1;for(;s--;)if(47===e.codePointAt(s)){if(n){r=s+1;break}}else o<0&&(n=!0,o=s+1),l>-1&&(e.codePointAt(s)===t.codePointAt(l--)?l<0&&(i=s):(l=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(k(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;k(e);let n=e.length,r=-1,i=0,s=-1,o=0;for(;n--;){let l=e.codePointAt(n);if(47===l){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===l?s<0?s=n:1!==o&&(o=1):s>-1&&(o=-1)}return s<0||r<0||0===o||1===o&&s===r-1&&s===i+1?"":e.slice(s,r)},join:function(...e){let t,n=-1;for(;++n2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",s=0):s=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=a,l=0;continue}}else if(i.length>0){i="",s=0,o=a,l=0;continue}}t&&(i=i.length>0?i+"/..":"..",s=2)}else i.length>0?i+="/"+e.slice(o+1,a):i=e.slice(o+1,a),s=a-o-1;o=a,l=0}else 46===n&&l>-1?l++:l=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function k(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let E={cwd:function(){return"/"}};function S(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let T=["history","path","basename","stem","extname","dirname"];class I{constructor(e){let t,n;t=e?S(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":E.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++rthis.should_skip=!0,remove:()=>this.should_remove=!0,replace:e=>this.replacement=e}}replace(e,t,n,r){e&&t&&(null!=n?e[t][n]=r:e[t]=r)}remove(e,t,n){e&&t&&(null!=n?e[t].splice(n,1):delete e[t])}}class $ extends B{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){let i;if(this.enter){let i=this.should_skip,s=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 l=this.should_skip,a=this.should_remove;if(this.should_skip=i,this.should_remove=s,this.replacement=o,l)return e;if(a)return null}for(i in e){let t=e[i];if(t&&"object"==typeof t){if(Array.isArray(t))for(let n=0;n0){let r=0;for(;r0&&c.push({type:"Property",key:{type:"Identifier",name:"children"},value:a.length>1?{type:"ArrayExpression",elements:a}:a[0],kind:"init",method:!1,shorthand:!1,computed:!1}):p=a,r){p.push({type:"ObjectExpression",properties:c}),o?p.push(o):n.development&&p.push({type:"Identifier",name:"undefined"});let t=a.length>1;if(n.development){s.jsxDEV=!0,l={type:"Identifier",name:"_jsxDEV"},p.push({type:"Literal",value:t});let r={type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"fileName"},value:{type:"Literal",value:n.filePath||""}}]};e.loc&&r.properties.push({type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"lineNumber"},value:{type:"Literal",value:e.loc.start.line}},{type:"Property",method:!1,shorthand:!1,computed:!1,kind:"init",key:{type:"Identifier",name:"columnNumber"},value:{type:"Literal",value:e.loc.start.column+1}}),p.push(r,{type:"ThisExpression"})}else t?(s.jsxs=!0,l={type:"Identifier",name:"_jsxs"}):(s.jsx=!0,l={type:"Identifier",name:"_jsx"})}else c.length>0?p.unshift({type:"ObjectExpression",properties:c}):p.length>0&&p.unshift({type:"Literal",value:null}),l=X(i.jsx||n.pragma||"React.createElement");p.unshift(t);let f={type:"CallExpression",callee:l,arguments:p,optional:!1};K(e,f),this.replace(f)}})}(t,{filePath:n.history[0],...e})}}var W=n(87796);let G={JSXAttribute:function(e,t){this[e.name.type](e.name,t),null!==e.value&&void 0!==e.value&&(t.write("="),"Literal"===e.value.type?t.write('"'+Y(String(e.value.value)).replace(/"/g,""")+'"',e):this[e.value.type](e.value,t))},JSXClosingElement:function(e,t){t.write("")},JSXClosingFragment:function(e,t){t.write("",e)},JSXElement:function(e,t){let n=-1;if(this[e.openingElement.type](e.openingElement,t),e.children)for(;++n":">")},JSXOpeningFragment:function(e,t){t.write("<>",e)},JSXSpreadAttribute:function(e,t){t.write("{"),this.SpreadElement(e,t),t.write("}")},JSXText:function(e,t){t.write(Y(e.value).replace(/[<>{}]/g,Q),e)}};function Y(e){return e.replace(/&(?=[#a-z])/gi,"&")}function Q(e){return"<"===e?"<":">"===e?">":"{"===e?"{":"}"}function Z(){let e=this.data(),t=e.settings||(e.settings={}),n=t.handlers||(t.handlers={});(t.plugins||(t.plugins=[])).push(W()),Object.assign(n,G)}let{stringify:ee}=JSON;if(!String.prototype.repeat)throw Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");let et={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},en={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:17,ClassExpression:17,FunctionExpression:17,ObjectExpression:17,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function er(e,t){let{generator:n}=e;if(e.write("("),null!=t&&t.length>0){n[t[0].type](t[0],e);let{length:r}=t;for(let i=1;i0){e.write(r);for(let t=1;t0){n.VariableDeclarator(r[0],e);for(let t=1;t0){t.write(r),i&&null!=e.comments&&eo(t,e.comments,s,r);let{length:l}=o;for(let e=0;e0){for(;s0&&t.write(", ");let e=n[s],r=e.type[6];if("D"===r)t.write(e.local.name,e),s++;else if("N"===r)t.write("* as "+e.local.name,e),s++;else break}if(s0){t.write(" with { ");for(let e=0;e0)for(let e=0;;){let i=n[e],{name:s}=i.local;if(t.write(s,i),s!==i.exported.name&&t.write(" as "+i.exported.name),++e0){t.write(" with { ");for(let n=0;n0){t.write(" with { ");for(let n=0;n "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:s=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:s,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),es(t,e.argument,e)},TemplateLiteral(e,t){let{quasis:n,expressions:r}=e;t.write("`");let{length:i}=r;for(let e=0;e0){let{elements:n}=e,{length:r}=n;for(let e=0;;){let i=n[e];if(null!=i&&this[i.type](i,t),++e0){t.write(r),i&&null!=e.comments&&eo(t,e.comments,s,r);let o=","+r,{properties:l}=e,{length:a}=l;for(let e=0;;){let n=l[e];if(i&&null!=n.comments&&eo(t,n.comments,s,r),t.write(s),this[n.type](n,t),++e0){let{properties:n}=e,{length:r}=n;for(let e=0;;)if(this[n[e].type](n[e],t),++e1||"U"===i[0]&&("n"===i[1]||"p"===i[1])&&r.prefix&&r.operator[0]===n&&("+"===n||"-"===n))&&t.write(" "),s?(t.write(n.length>1?" (":"("),this[i](r,t),t.write(")")):this[i](r,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:o=function(e,t){let n="in"===e.operator;n&&t.write("("),es(t,e.left,e,!1),t.write(" "+e.operator+" "),es(t,e.right,e,!0),n&&t.write(")")},LogicalExpression:o,ConditionalExpression(e,t){let{test:n}=e,r=t.expressionsPrecedence[n.type];17===r||r<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[n.type](n,t),t.write(")")):this[n.type](n,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");let n=t.expressionsPrecedence[e.callee.type];17===n||n0&&(this.lineEndSize>0&&(1===r.length?e[n-1]===r:e.endsWith(r))?(this.line+=this.lineEndSize,this.column=0):this.column+=n)}toString(){return this.output}}let ep={};function ef(e){let t=this;this.compiler=function(n,r){let i={...t.data("settings"),...e},s=function(e,t){let{SourceMapGenerator:n,filePath:r,handlers:i}=t||ep,s=n?new n({file:r||".js"}):void 0;return{value:function(e,t){let n=new ec(t);return n.generator[e.type](e,n),n.output}(e,{comments:!0,generator:{...ea,...i},sourceMap:s||void 0}),map:s?s.toJSON():void 0}}(n,{SourceMapGenerator:i.SourceMapGenerator,filePath:r.path||"unknown.js",handlers:i.handlers});return r.map=s.map,s.value}}class ed{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}}function eh(e,t){let n={},r={},i=-1;for(;++i"xlink:"+t.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ej=eO({space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function eL(e,t){return t in e?e[t]:t}function e_(e,t){return eL(e,t.toLowerCase())}let eP=eO({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:e_,properties:{xmlns:null,xmlnsXLink:null}}),eM=eO({transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:eb,ariaAutoComplete:null,ariaBusy:eb,ariaChecked:eb,ariaColCount:ew,ariaColIndex:ew,ariaColSpan:ew,ariaControls:ek,ariaCurrent:null,ariaDescribedBy:ek,ariaDetails:null,ariaDisabled:eb,ariaDropEffect:ek,ariaErrorMessage:null,ariaExpanded:eb,ariaFlowTo:ek,ariaGrabbed:eb,ariaHasPopup:null,ariaHidden:eb,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ek,ariaLevel:ew,ariaLive:null,ariaModal:eb,ariaMultiLine:eb,ariaMultiSelectable:eb,ariaOrientation:null,ariaOwns:ek,ariaPlaceholder:null,ariaPosInSet:ew,ariaPressed:eb,ariaReadOnly:eb,ariaRelevant:null,ariaRequired:eb,ariaRoleDescription:ek,ariaRowCount:ew,ariaRowIndex:ew,ariaRowSpan:ew,ariaSelected:eb,ariaSetSize:ew,ariaSort:null,ariaValueMax:ew,ariaValueMin:ew,ariaValueNow:ew,ariaValueText:null,role:null}}),eD=eO({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:e_,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:eE,acceptCharset:ek,accessKey:ek,action:null,allow:null,allowFullScreen:ex,allowPaymentRequest:ex,allowUserMedia:ex,alt:null,as:null,async:ex,autoCapitalize:null,autoComplete:ek,autoFocus:ex,autoPlay:ex,blocking:ek,capture:null,charSet:null,checked:ex,cite:null,className:ek,cols:ew,colSpan:null,content:null,contentEditable:eb,controls:ex,controlsList:ek,coords:ew|eE,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ex,defer:ex,dir:null,dirName:null,disabled:ex,download:ev,draggable:eb,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ex,formTarget:null,headers:ek,height:ew,hidden:ex,high:ew,href:null,hrefLang:null,htmlFor:ek,httpEquiv:ek,id:null,imageSizes:null,imageSrcSet:null,inert:ex,inputMode:null,integrity:null,is:null,isMap:ex,itemId:null,itemProp:ek,itemRef:ek,itemScope:ex,itemType:ek,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ex,low:ew,manifest:null,max:null,maxLength:ew,media:null,method:null,min:null,minLength:ew,multiple:ex,muted:ex,name:null,nonce:null,noModule:ex,noValidate:ex,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:ex,optimum:ew,pattern:null,ping:ek,placeholder:null,playsInline:ex,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ex,referrerPolicy:null,rel:ek,required:ex,reversed:ex,rows:ew,rowSpan:ew,sandbox:ek,scope:null,scoped:ex,seamless:ex,selected:ex,shadowRootClonable:ex,shadowRootDelegatesFocus:ex,shadowRootMode:null,shape:null,size:ew,sizes:null,slot:null,span:ew,spellCheck:eb,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ew,step:null,style:null,tabIndex:ew,target:null,title:null,translate:null,type:null,typeMustMatch:ex,useMap:null,value:eb,width:ew,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ek,axis:null,background:null,bgColor:null,border:ew,borderColor:null,bottomMargin:ew,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ex,declare:ex,event:null,face:null,frame:null,frameBorder:null,hSpace:ew,leftMargin:ew,link:null,longDesc:null,lowSrc:null,marginHeight:ew,marginWidth:ew,noResize:ex,noHref:ex,noShade:ex,noWrap:ex,object:null,profile:null,prompt:null,rev:null,rightMargin:ew,rules:null,scheme:null,scrolling:eb,standby:null,summary:null,text:null,topMargin:ew,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ew,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ex,disableRemotePlayback:ex,prefix:null,property:null,results:ew,security:null,unselectable:null}}),eF=eO({space:"svg",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"},transform:eL,properties:{about:eS,accentHeight:ew,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ew,amplitude:ew,arabicForm:null,ascent:ew,attributeName:null,attributeType:null,azimuth:ew,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ew,by:null,calcMode:null,capHeight:ew,className:ek,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:ew,diffuseConstant:ew,direction:null,display:null,dur:null,divisor:ew,dominantBaseline:null,download:ex,dx:null,dy:null,edgeMode:null,editable:null,elevation:ew,enableBackground:null,end:null,event:null,exponent:ew,externalResourcesRequired:null,fill:null,fillOpacity:ew,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:eE,g2:eE,glyphName:eE,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ew,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ew,horizOriginX:ew,horizOriginY:ew,id:null,ideographic:ew,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ew,k:ew,k1:ew,k2:ew,k3:ew,k4:ew,kernelMatrix:eS,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ew,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:ew,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:ew,overlineThickness:ew,paintOrder:null,panose1:null,path:null,pathLength:ew,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ek,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ew,pointsAtY:ew,pointsAtZ:ew,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:eS,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:eS,rev:eS,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:eS,requiredFeatures:eS,requiredFonts:eS,requiredFormats:eS,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:ew,specularExponent:ew,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ew,strikethroughThickness:ew,string:null,stroke:null,strokeDashArray:eS,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ew,strokeOpacity:ew,strokeWidth:null,style:null,surfaceScale:ew,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:eS,tabIndex:ew,tableValues:null,target:null,targetX:ew,targetY:ew,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:eS,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ew,underlineThickness:ew,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ew,values:null,vAlphabetic:ew,vMathematical:ew,vectorEffect:null,vHanging:ew,vIdeographic:ew,version:null,vertAdvY:ew,vertOriginX:ew,vertOriginY:ew,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ew,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),eJ=eh([ej,eN,eP,eM,eD],"html"),eR=eh([ej,eN,eP,eM,eF],"svg"),eB=eU("end"),e$=eU("start");function eU(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function ez(e){let t=e$(e),n=eB(e);if(t&&n)return{start:t,end:n}}let eq={}.hasOwnProperty,eV=/^data[-\w.:]+$/i,eX=/-[a-z]/g,eK=/[A-Z]/g;function eH(e){return"-"+e.toLowerCase()}function eW(e){return e.charAt(1).toUpperCase()}let eG={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var eY=n(77379);let eQ=eY.default||eY,eZ={}.hasOwnProperty,e0=/[A-Z]/g,e1=/-([a-z])/g,e2=new Set(["td","th"]);function e3(e){let t=e.replace(e0,e5);return"ms-"===t.slice(0,3)&&(t="-"+t),t}function e4(e,t){return t.toUpperCase()}function e5(e){return"-"+e.toLowerCase()}let e6={}.hasOwnProperty,e9=[];function e7(e,t){let n=t?[...t].sort(te):e9;n.length>0&&function e(t,n){let r;if(n.index===n.comments.length)return;let i=[],s=[];for(r in t)if(e6.call(t,r)){let e=t[r];if(e&&"object"==typeof e&&"comments"!==r){if(Array.isArray(e)){let t=-1;for(;++t0})),s.length>0&&(t.comments=s)}(e,{comments:n,index:0})}function e8(e,t,n,r){let i=[];for(;e.comments[e.index]&&1>te(e.comments[e.index],t,n);)i.push(Object.assign({},e.comments[e.index++],r));return i}function te(e,t,n){let r=n?"end":"start";return e.range&&t.range?e.range[0]-t.range[n?1:0]:e.loc&&e.loc.start&&t.loc&&t.loc[r]?e.loc.start.line-t.loc[r].line||e.loc.start.column-t.loc[r].column:"start"in e&&r in t?e.start-t[r]:Number.NaN}function tt(e,t){let n;let r=e.data&&e.data.estree,i=r&&r.comments||[];r&&(t.comments.push(...i),e7(r,r.comments),n=r.body[0]&&"ExpressionStatement"===r.body[0].type&&r.body[0].expression||void 0),n||(n={type:"JSXEmptyExpression"},t.patch(e,n));let s={type:"JSXExpressionContainer",expression:n};return t.inherit(e,s),s}function tn(e,t){let n=t.schema,r=n,i=e.attributes||[],s=-1;e.name&&"html"===n.space&&"svg"===e.name.toLowerCase()&&(r=eR,t.schema=r);let o=t.all(e),l=[];for(;++s0?{type:"JSXClosingElement",name:t.createJsxElementName(e.name)}:null,children:o}:{type:"JSXFragment",openingFragment:{type:"JSXOpeningFragment"},closingFragment:{type:"JSXClosingFragment"},children:o};return t.inherit(e,a),a}let tr=/[ \t\n\f\r]/g;function ti(e){return""===e.replace(tr,"")}let ts={comment:function(e,t){let n={type:"Block",value:e.value};t.inherit(e,n),t.comments.push(n);let r={type:"JSXEmptyExpression",comments:[Object.assign({},n,{leading:!1,trailing:!0})]};t.patch(e,r);let i={type:"JSXExpressionContainer",expression:r};return t.patch(e,i),i},doctype:function(){},element:function(e,t){let n,r,i;let s=t.schema,o=s,l=e.properties||{};"html"===s.space&&"svg"===e.tagName.toLowerCase()&&(o=eR,t.schema=o);let a=t.all(e),u=[];for(n in l)if(eZ.call(l,n)){let s,a=l[n],c=function(e,t){let n=em(t),r=t,i=eg;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&eV.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(eX,eW);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!eX.test(e)){let n=e.replace(eK,eH);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=eA}return new i(r,t)}(o,n);if(null==a||!1===a||"number"==typeof a&&Number.isNaN(a)||!a&&c.boolean)continue;if(n="react"===t.elementAttributeNameCase&&c.space?eG[c.property]||c.property:c.attribute,Array.isArray(a)&&(a=c.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(a):a.join(" ").trim()),"style"===n){let n,r="object"==typeof a?a:function(e,t){let n={};try{eQ(e,function(e,t){let r=e;"--"!==r.slice(0,2)&&("-ms-"===r.slice(0,4)&&(r="ms-"+r.slice(4)),r=r.replace(e1,e4)),n[r]=t})}catch(e){throw Error("Could not parse `style` attribute on `"+t+"`",{cause:e})}return n}(String(a),e.tagName);"css"===t.stylePropertyNameCase&&(r=function(e){let t;let n={};for(t in e)eZ.call(e,t)&&(n[e3(t)]=e[t]);return n}(r));let o=[];for(n in r)eZ.call(r,n)&&o.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:R(n)?{type:"Identifier",name:n}:{type:"Literal",value:n},value:{type:"Literal",value:String(r[n])},kind:"init"});i=o,s={type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:o}}}else if(!0===a)s=null;else if(t.tableCellAlignToStyle&&e2.has(e.tagName)&&"align"===n){r=String(a);continue}else s={type:"Literal",value:String(a)};R(n,{jsx:!0})?u.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:n},value:s}):u.push({type:"JSXSpreadAttribute",argument:{type:"ObjectExpression",properties:[{type:"Property",method:!1,shorthand:!1,computed:!1,key:{type:"Literal",value:String(n)},value:s||{type:"Literal",value:!0},kind:"init"}]}})}if(void 0!==r){i||(i=[],u.push({type:"JSXAttribute",name:{type:"JSXIdentifier",name:"style"},value:{type:"JSXExpressionContainer",expression:{type:"ObjectExpression",properties:i}}}));let e="css"===t.stylePropertyNameCase?e3("textAlign"):"textAlign";i.push({type:"Property",method:!1,shorthand:!1,computed:!1,key:R(e)?{type:"Identifier",name:e}:{type:"Literal",value:e},value:{type:"Literal",value:r},kind:"init"})}t.schema=s;let c={type:"JSXElement",openingElement:{type:"JSXOpeningElement",attributes:u,name:t.createJsxElementName(e.tagName),selfClosing:0===a.length},closingElement:a.length>0?{type:"JSXClosingElement",name:t.createJsxElementName(e.tagName)}:null,children:a};return t.inherit(e,c),c},mdxFlowExpression:tt,mdxJsxFlowElement:tn,mdxJsxTextElement:tn,mdxTextExpression:tt,mdxjsEsm:function(e,t){let n=e.data&&e.data.estree,r=n&&n.comments||[];n&&(t.comments.push(...r),e7(n,r),t.esm.push(...n.body))},root:function(e,t){let n;let r=t.all(e),i=[],s=-1;for(;++s=48&&t<=57}function tI(e){let t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function tA(e){return function(e){let t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||tT(e)}let tC=document.createElement("i");function tO(e){let t="&"+e+";";tC.innerHTML=t;let n=tC.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}let tN=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"],tj=/["&'<>`]/g,tL=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,t_=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,tP=/[|\\{}()[\]^$+*?.]/g,tM=new WeakMap;function tD(e){return"&#x"+e.toString(16).toUpperCase()+";"}function tF(e){let t=0,n=e.stack.length;for(;--n>-1;){let r=e.stack[n];if("blockquote"===r||"listItem"===r)break;"mdxJsxFlowElement"===r&&t++}return t}function tJ(e){return" ".repeat(e)}function tR(){return"<"}function tB(e){this.enter({type:"mdxjsEsm",value:""},e),this.buffer()}function t$(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e);let r=e.estree;n.value=t,r&&(n.data={estree:r})}function tU(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function tz(e){return e.value||""}var tq=n(72295);let tV=t3(/[A-Za-z]/),tX=t3(/[\dA-Za-z]/),tK=t3(/[#-'*+\--9=?A-Z^-~]/);function tH(e){return null!==e&&(e<32||127===e)}let tW=t3(/\d/),tG=t3(/[\dA-Fa-f]/),tY=t3(/[!-/:-@[-`{-~]/);function tQ(e){return null!==e&&e<-2}function tZ(e){return null!==e&&(e<0||32===e)}function t0(e){return -2===e||-1===e||32===e}let t1=t3(/\p{P}|\p{S}/u),t2=t3(/\s/);function t3(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function t4(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,s=0;return function(r){return t0(r)?(e.enter(n),function r(o){return t0(o)&&s++0)}function nt(e,t){let n,r;let i=t.prefix||"",s=t.suffix||"",o=Object.assign({},t.acornOptions),l=[],a=[],u=o.onComment,c=o.onToken,p=!1,f=Object.assign({},o,{onComment:l,preserveParens:!0});c&&(f.onToken=a);let d=function(e,t){let n={value:"",stops:[]},r=-1;for(;++r0&&-1===e[0];)e.shift();let t=function(e){let t,n=-1,r=[];for(;++n=i.length+h.length||"Unterminated comment"===t.message}if(n&&t.expression&&!g){if(nn(m.slice(n.end,m.length-s.length)))n={type:"Program",start:0,end:i.length+h.length,body:[{type:"ExpressionStatement",expression:n,start:0,end:i.length+h.length}],sourceType:"module",comments:[]};else{let e=w(n.end),t=Error("Unexpected content after expression");t.pos=e.offset,t.loc={line:e.line,column:e.column-1},r=t,n=void 0}}if(n){var y,x;let e,t;if(n.comments=l,y=n,"function"==typeof(x=function(e,t,n,r){let i=r[r.length-1],s=t;"ParenthesizedExpression"===e.type&&i&&s&&("number"==typeof n&&(i=i[s],s=n),i[s]=e.expression),b(e)})&&(e=x),(function n(r,i,s,o){return ne(r)&&(l.displayName="node ("+r.type+")"),l;function l(){let l=e?t8(e(r,i,s,o)):[];if(l[0]===t9)return l;if(l[0]!==t7){let e;for(e in r)if(t5.call(r,e)&&r[e]&&"object"==typeof r[e]&&"data"!==e&&"position"!==e){let t=o.concat(r),i=r[e];if(Array.isArray(i)){let r=0;for(;r>-1&&r=h.length||(b(e),Array.isArray(c)?c.push(e):c(e))}return{estree:n,error:r,swallow:p};function b(e){let t=w(e.start),n=w(e.end);e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function w(e){let n=e-i.length;n<0?n=0:n>h.length&&(n=h.length);let r=function(e,t){let n=0;for(;n-1?e:void 0}let no="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",nl="#unexpected-type-in-code-expected-an-object-spread-spread";function na(e,t,n,r,i,s,o,l,a,u,c){let p,f;let d=this,h=this.events.length+3,m=0;return function(t){return e.enter(n),e.enter(r),e.consume(t),e.exit(r),p=d.now(),g};function g(c){if(null===c){if(f)throw f;let e=new v("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:d.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw e.url=no+"#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",e}if(tQ(c))return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),x;if(125===c&&0===m){let m=s?nu.call(d,s,o,i,h,p,u||!1,a||!1):{type:"ok",estree:void 0};if("ok"===m.type){e.enter(r),e.consume(c),e.exit(r);let i=e.exit(n);return l&&m.estree&&Object.assign(i,{estree:m.estree}),t}return f=m.message,e.enter(i),e.consume(c),y}return e.enter(i),y(c)}function y(t){return 125===t&&0===m||null===t||tQ(t)?(e.exit(i),g(t)):(123!==t||s?125===t&&(m-=1):m+=1,e.consume(t),y)}function x(t){let n=d.now();if(n.line!==p.line&&!c&&d.parser.lazy[n.line]){let e=new v("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:d.now(),ruleId:"unexpected-lazy",source:"micromark-extension-mdx-expression"});throw e.url=no+"#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",e}return t0(t)?t4(e,g,"linePrefix",3)(t):g(t)}}function nu(e,t,n,r,i,s,o){let l=nt(this.events.slice(r),{acorn:e,tokenTypes:[n],acornOptions:t,start:i,expression:!0,allowEmpty:s,prefix:o?"({":"",suffix:o?"})":""}),a=l.estree;if(o&&a){let e=a.body[0];if("ExpressionStatement"!==e.type||"ObjectExpression"!==e.expression.type){let t=nr(e),n=new v("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",{place:t.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw n.url=no+nl,n}if(e.expression.properties[1]){let t=new v("Unexpected extra content in spread: only a single spread is supported",{place:nr(e.expression.properties[1]).start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw t.url=no+"#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",t}if(e.expression.properties[0]&&"SpreadElement"!==e.expression.properties[0].type){let t=nr(e.expression.properties[0]),n=new v("Unexpected `"+e.expression.properties[0].type+"` in code: only spread elements are supported",{place:t.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw n.url=no+nl,n}}if(l.error){let e=new v("Could not parse expression with acorn",{cause:l.error,place:{line:l.error.loc.line,column:l.error.loc.column+1,offset:l.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return e.url=no+"#could-not-parse-expression-with-acorn",{type:"nok",message:e}}return{type:"ok",estree:a}}let nc="https://github.com/micromark/micromark-extension-mdx-jsx";function np(e,t,n,r,i,s,o,l,a,u,c,p,f,d,h,m,g,y,x,b,w,k,E,S,T,I,A,C,O,N,j,L){let _,P;let M=this;return function(t){return e.enter(l),e.enter(a),e.consume(t),e.exit(a),D};function D(e){return tZ(e)?n(e):(_=R,eo(e))}function R(t){return 47===t?(e.enter(u),e.consume(t),e.exit(u),_=B,eo):62===t?es(t):null!==t&&t>=0&&F(t)?(e.enter(p),e.enter(f),e.consume(t),$):void ea(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(33===t?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function B(t){return 62===t?es(t):null!==t&&t>=0&&F(t)?(e.enter(p),e.enter(f),e.consume(t),$):void ea(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(42===t||47===t?" (note: JS comments in JSX tags are not supported in MDX)":""))}function $(t){return null!==t&&t>=0&&J(t,{jsx:!0})?(e.consume(t),$):46===t||47===t||58===t||62===t||123===t||tZ(t)||t2(t)?(e.exit(f),_=U,eo(t)):void ea(t,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function U(t){return 46===t?(e.enter(d),e.consume(t),e.exit(d),_=z,eo):58===t?(e.enter(m),e.consume(t),e.exit(m),_=X,eo):47===t||62===t||123===t||null!==t&&t>=0&&F(t)?(e.exit(p),W(t)):void ea(t,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function z(t){if(null!==t&&t>=0&&F(t))return e.enter(h),e.consume(t),q;ea(t,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function q(t){return null!==t&&t>=0&&J(t,{jsx:!0})?(e.consume(t),q):46===t||47===t||62===t||123===t||tZ(t)||t2(t)?(e.exit(h),_=V,eo(t)):void ea(t,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function V(t){return 46===t?(e.enter(d),e.consume(t),e.exit(d),_=z,eo):47===t||62===t||123===t||null!==t&&t>=0&&F(t)?(e.exit(p),W(t)):void ea(t,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function X(t){if(null!==t&&t>=0&&F(t))return e.enter(g),e.consume(t),K;ea(t,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(43===t||null!==t&&t>46&&t<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function K(t){return null!==t&&t>=0&&J(t,{jsx:!0})?(e.consume(t),K):47===t||62===t||123===t||tZ(t)||t2(t)?(e.exit(g),_=H,eo(t)):void ea(t,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function H(t){if(47===t||62===t||123===t||null!==t&&t>=0&&F(t))return e.exit(p),W(t);ea(t,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function W(t){return 47===t?(e.enter(c),e.consume(t),e.exit(c),_=ei,eo):62===t?es(t):123===t?na.call(M,e,G,y,x,b,r,i,s,!0,!1,o)(t):null!==t&&t>=0&&F(t)?(e.enter(w),e.enter(k),e.enter(E),e.consume(t),Y):void ea(t,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function G(e){return _=W,eo(e)}function Y(t){return null!==t&&t>=0&&J(t,{jsx:!0})?(e.consume(t),Y):47===t||58===t||61===t||62===t||123===t||tZ(t)||t2(t)?(e.exit(E),_=Q,eo(t)):void ea(t,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function Q(t){return 58===t?(e.enter(S),e.consume(t),e.exit(S),_=Z,eo):61===t?(e.exit(k),e.enter(I),e.consume(t),e.exit(I),_=en,eo):47===t||62===t||123===t||tZ(t)||t2(t)||null!==t&&t>=0&&F(t)?(e.exit(k),e.exit(w),_=W,eo(t)):void ea(t,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Z(t){if(null!==t&&t>=0&&F(t))return e.enter(T),e.consume(t),ee;ea(t,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function ee(t){return null!==t&&t>=0&&J(t,{jsx:!0})?(e.consume(t),ee):47===t||61===t||62===t||123===t||tZ(t)||t2(t)?(e.exit(T),e.exit(k),_=et,eo(t)):void ea(t,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function et(t){return 61===t?(e.enter(I),e.consume(t),e.exit(I),_=en,eo):47===t||62===t||123===t||null!==t&&t>=0&&F(t)?(e.exit(w),W(t)):void ea(t,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function en(t){return 34===t||39===t?(e.enter(A),e.enter(C),e.consume(t),e.exit(C),P=t,function t(n){return(null===n&&ea(n,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(P)+"`"),n===P)?(e.enter(C),e.consume(n),e.exit(C),e.exit(A),e.exit(w),P=void 0,_=W,eo):tQ(n)?(_=t,eo(n)):(e.enter(O),function n(r){return null===r||r===P||tQ(r)?(e.exit(O),t(r)):(e.consume(r),n)}(n))}):123===t?na.call(M,e,er,N,j,L,r,i,s,!1,!1,o)(t):void ea(t,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(60===t?" (note: to use an element or fragment as a prop value in MDX, use `{}`)":""))}function er(t){return e.exit(w),_=W,eo(t)}function ei(e){if(62===e)return es(e);ea(e,"after self-closing slash","`>` to end the tag"+(42===e||47===e?" (note: JS comments in JSX tags are not supported in MDX)":""))}function es(n){return e.enter(a),e.consume(n),e.exit(a),e.exit(l),t}function eo(t){return tQ(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),el):t0(t)||t2(t)?(e.enter("esWhitespace"),function t(n){return tQ(n)?(e.exit("esWhitespace"),eo(n)):t0(n)||t2(n)?(e.consume(n),t):(e.exit("esWhitespace"),_(n))}(t)):_(t)}function el(e){if(!o&&M.parser.lazy[M.now().line]){let e=new v("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",M.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw e.url=nc+"#unexpected-lazy-line-in-container-expected-line-to-be",e}return eo(e)}function ea(e,t,n){let r=new v("Unexpected "+(null===e?"end of file":"character `"+(96===e?"` ` `":String.fromCodePoint(e))+"` (U+"+e.toString(16).toUpperCase().padStart(4,"0")+")")+" "+t+", expected "+n,M.now(),"micromark-extension-mdx-jsx:unexpected-"+(null===e?"eof":"character"));throw r.url=nc+(null===e?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-expected-expect"),r}}let nf={partial:!0,tokenize:function(e,t,n){return function(t){return t0(t)?t4(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||tQ(e)?t(e):n(e)}}},nd={tokenize:function(e,t,n){return function(r){return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(nf,t,n)}},partial:!0},nh="https://github.com/micromark/micromark-extension-mdxjs-esm",nm=new Set(["ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ImportDeclaration"]);function ng(e,t,n,r){let i;let s=e.length,o=0;if(t=t<0?-t>s?0:s+t:t>s?s:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o0?(ng(e,e.length,0,t),e):t}let nx={}.hasOwnProperty;function nb(e){let t={},n=-1;for(;++n1?s(e):(t.enter("mdxjsEsm"),t.enter("mdxjsEsmData"),t.consume(e),u+=String.fromCharCode(e),c)};function c(e){return tV(e)?(t.consume(e),u+=String.fromCharCode(e),c):("import"===u||"export"===u)&&32===e?(t.consume(e),p):s(e)}function p(e){return null===e||tQ(e)?(t.exit("mdxjsEsmData"),f(e)):(t.consume(e),p)}function f(e){return null===e?h(e):tQ(e)?t.check(nd,h,d)(e):(t.enter("mdxjsEsmData"),p(e))}function d(e){return t.enter("lineEnding"),t.consume(e),t.exit("lineEnding"),f}function h(s){let u=nt(o.events.slice(a),{acorn:n,acornOptions:r,tokenTypes:["mdxjsEsmData"],prefix:l.length>0?"var "+l.join(",")+"\n":""});if(u.error){if(null!==s&&u.swallow)return d(s);let e=new v("Could not parse import/exports with acorn",{cause:u.error,place:{line:u.error.loc.line,column:u.error.loc.column+1,offset:u.error.pos},ruleId:"acorn",source:"micromark-extension-mdxjs-esm"});throw e.url=nh+"#could-not-parse-importexports-with-acorn",e}l.length>0&&u.estree.body.shift();let c=-1;for(;++c"mdxFlowExpression"===e.name);return 60===t?o(t):123===t&&l?e.attempt(l,a,i)(t):null===t||tQ(t)?r(t):i(t)}},concrete:!0})},text:{60:(r=l||void 0,i={acornOptions:s,addResult:o.addResult||void 0},{name:"mdxJsxTextTag",tokenize:function(e,t,n){return np.call(this,e,t,n,r,i.acornOptions,i.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}})}}}(t),{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}}])}(t)),i.push([{enter:{mdxFlowExpression:ty,mdxTextExpression:tx},exit:{mdxFlowExpression:tb,mdxFlowExpressionChunk:tv,mdxTextExpression:tb,mdxTextExpressionChunk:tv}},function(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:r,mdxJsxFlowTagClosingMarker:i,mdxJsxFlowTagAttribute:p,mdxJsxFlowTagExpressionAttribute:f,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:r,mdxJsxTextTagClosingMarker:i,mdxJsxTextTagAttribute:p,mdxJsxTextTagExpressionAttribute:f,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:l,mdxJsxFlowTagNamePrimary:a,mdxJsxFlowTagNameMember:u,mdxJsxFlowTagNameLocal:c,mdxJsxFlowTagExpressionAttribute:d,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:h,mdxJsxFlowTagAttributeNameLocal:m,mdxJsxFlowTagAttributeValueLiteral:y,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:x,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:b,mdxJsxFlowTag:w,mdxJsxTextTagClosingMarker:l,mdxJsxTextTagNamePrimary:a,mdxJsxTextTagNameMember:u,mdxJsxTextTagNameLocal:c,mdxJsxTextTagExpressionAttribute:d,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:h,mdxJsxTextTagAttributeNameLocal:m,mdxJsxTextTagAttributeValueLiteral:y,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:x,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:b,mdxJsxTextTag:w}};function e(){this.buffer()}function t(e){return{line:e.line,column:e.column,offset:e.offset}}function n(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function r(e){let t={name:void 0,attributes:[],close:!1,selfClosing:!1,start:e.start,end:e.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=t,this.buffer()}function i(e){if(0===this.data.mdxJsxTagStack.length)throw new v("Unexpected closing slash `/` in tag, expected an open tag first",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function s(e){if(this.data.mdxJsxTag.close)throw new v("Unexpected attribute in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-attribute")}function o(e){if(this.data.mdxJsxTag.close)throw new v("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function l(){this.data.mdxJsxTag.close=!0}function a(e){this.data.mdxJsxTag.name=this.sliceSerialize(e)}function u(e){let t=this.data.mdxJsxTag;t.name+="."+this.sliceSerialize(e)}function c(e){let t=this.data.mdxJsxTag;t.name+=":"+this.sliceSerialize(e)}function p(e){let n=this.data.mdxJsxTag;s.call(this,e),n.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(e.start),end:void 0}})}function f(e){let n=this.data.mdxJsxTag;s.call(this,e),n.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(e.start),end:void 0}}),this.buffer()}function d(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type;let i=e.estree;r.value=this.resume(),r.position,r.position.end=t(e.end),i&&(r.data={estree:i})}function h(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type,r.name=this.sliceSerialize(e),r.position,r.position.end=t(e.end)}function m(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type,r.name+=":"+this.sliceSerialize(e),r.position,r.position.end=t(e.end)}function y(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.value=function(e,t){let n,r,i;let s=t||{},o="string"==typeof s.additional?s.additional.charCodeAt(0):s.additional,l=[],a=0,u=-1,c="";s.position&&("start"in s.position||"indent"in s.position?(r=s.position.indent,n=s.position.start):n=s.position);let p=(n?n.line:0)||1,f=(n?n.column:0)||1,d=g();for(a--;++a<=e.length;)if(10===i&&(f=(r?r[u]:0)||1),38===(i=e.charCodeAt(a))){let t;let n=e.charCodeAt(a+1);if(9===n||10===n||12===n||32===n||38===n||60===n||Number.isNaN(n)||o&&n===o){c+=String.fromCharCode(i),f++;continue}let r=a+1,u=r,p=r;if(35===n){p=++u;let n=e.charCodeAt(p);88===n||120===n?(t="hexadecimal",p=++u):t="decimal"}else t="named";let b="",v="",w="",k="named"===t?tA:"decimal"===t?tT:tI;for(p--;++p<=e.length;){let n=e.charCodeAt(p);if(!k(n))break;w+=String.fromCharCode(n),"named"===t&&tE.includes(w)&&(b=w,v=tO(w))}let E=59===e.charCodeAt(p);if(E){p++;let e="named"===t&&tO(w);e&&(b=w,v=e)}let S=1+p-r,T="";if(E||!1!==s.nonTerminated){if(w){if("named"===t){if(E&&!v)y(5,1);else if(b!==w&&(S=1+(p=u+b.length)-u,E=!1),!E){let t=b?1:3;if(s.attribute){let n=e.charCodeAt(p);61===n?(y(t,S),v=""):tA(n)?v="":y(t,S)}else y(t,S)}T=v}else{var h,m;E||y(2,S);let e=Number.parseInt(w,"hexadecimal"===t?16:10);if((h=e)>=55296&&h<=57343||h>1114111)y(7,S),T=String.fromCharCode(65533);else if(e in tS)y(6,S),T=tS[e];else{let t="";((m=e)>=1&&m<=8||11===m||m>=13&&m<=31||m>=127&&m<=159||m>=64976&&m<=65007||(65535&m)==65535||(65535&m)==65534)&&y(6,S),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|1023&e),T=t+String.fromCharCode(e)}}}else"named"!==t&&y(4,S)}if(T){x(),d=g(),a=p-1,f+=p-r+1,l.push(T);let t=g();t.offset++,s.reference&&s.reference.call(s.referenceContext||void 0,T,{start:d,end:t},e.slice(r-1,p)),d=t}else w=e.slice(r-1,p),c+=w,f+=w.length,a=p-1}else 10===i&&(p++,u++,f=0),Number.isNaN(i)?x():(c+=String.fromCharCode(i),f++);return l.join("");function g(){return{line:p,column:f,offset:a+((n?n.offset:0)||0)}}function y(e,t){let n;s.warning&&(n=g(),n.column+=t,n.offset+=t,s.warning.call(s.warningContext||void 0,tN[e],n,e))}function x(){c&&(l.push(c),s.text&&s.text.call(s.textContext||void 0,c,{start:d,end:g()}),c="")}}(this.resume(),{nonTerminated:!1}),r.position,r.position.end=t(e.end)}function x(e){let n=this.data.mdxJsxTag,r=n.attributes[n.attributes.length-1];r.type;let i={type:"mdxJsxAttributeValueExpression",value:this.resume()},s=e.estree;s&&(i.data={estree:s}),r.value=i,r.position,r.position.end=t(e.end)}function b(){this.data.mdxJsxTag.selfClosing=!0}function w(e){let t=this.data.mdxJsxTag,n=this.data.mdxJsxTagStack,r=n[n.length-1];if(t.close&&r.name!==t.name)throw new v("Unexpected closing tag `"+S(t)+"`, expected corresponding closing tag for `"+S(r)+"` ("+g(r)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),t.close?n.pop():this.enter({type:"mdxJsxTextTag"===e.type?"mdxJsxTextElement":"mdxJsxFlowElement",name:t.name||null,attributes:t.attributes,children:[]},e,k),t.selfClosing||t.close?this.exit(e,E):n.push(t)}function k(e,t){let n=this.data.mdxJsxTagStack,r=n[n.length-1],i=e?" before the end of `"+e.type+"`":"",s=e?{start:e.start,end:e.end}:void 0;throw new v("Expected a closing tag for `"+S(r)+"` ("+g({start:t.start,end:t.end})+")"+i,s,"mdast-util-mdx-jsx:end-tag-mismatch")}function E(e,t){throw new v("Expected the closing tag `"+S(this.data.mdxJsxTag)+"` either after the end of `"+t.type+"` ("+g(t.end)+") or another opening tag after the start of `"+t.type+"` ("+g(t.start)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function S(e){return"<"+(e.close?"/":"")+(e.name||"")+">"}}(),{enter:{mdxjsEsm:tB},exit:{mdxjsEsm:t$,mdxjsEsmData:tU}}]),s.push({extensions:[{handlers:{mdxFlowExpression:tw,mdxTextExpression:tw},unsafe:[{character:"{",inConstruct:["phrasing"]},{atBreak:!0,character:"{"}]},function(e){let t=e||{},n=t.quote||'"',r=t.quoteSmart||!1,i=t.tightSelfClosing||!1,s=t.printWidth||Number.POSITIVE_INFINITY,o='"'===n?"'":'"';if('"'!==n&&"'"!==n)throw Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return l.peek=tR,{handlers:{mdxJsxFlowElement:l,mdxJsxTextElement:l},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function l(e,t,l,a){let u="mdxJsxFlowElement"===e.type,c=!!e.name&&(!e.children||0===e.children.length),p=tJ(tF(l)),f=l.createTracker(a),d=l.createTracker(a),h=[],m=(u?p:"")+"<"+(e.name||""),g=l.enter(e.type);if(f.move(m),d.move(m),e.attributes&&e.attributes.length>0){if(!e.name)throw Error("Cannot serialize fragment w/ attributes");let t=-1;for(;++ttk(e,o)?o:n;l=t+function(e,t){if(e=e.replace(t.subset?function(e){let t=tM.get(e);return t||(t=function(e){let t=[],n=-1;for(;++ns)&&(y=!0);let b=f,v=m;if(y){b=d;let e=-1;for(;++e"),e.children&&e.children.length>0&&("mdxJsxTextElement"===e.type?v+=b.move(l.containerPhrasing(e,{...b.current(),before:">",after:"<"})):(b.shift(2),v+=b.move("\n"),v+=b.move(function(e,t,n){let r=t.indexStack,i=e.children,s=t.createTracker(n),o=tJ(tF(t)),l=[],a=-1;for(r.push(-1);++a")),g(),v}}(t),{handlers:{mdxjsEsm:tz}}]})}let nk={};function nE(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return nS(e.children,t,n)}return Array.isArray(e)?nS(e,t,n):""}function nS(e,t,n){let r=[],i=-1;for(;++i=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),Number.POSITIVE_INFINITY);return n&&nI(this.left,n),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),nI(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),nI(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length)){if(er))return;let l=i.events.length,a=l;for(;a--;)if("exit"===i.events[a][0]&&"chunkFlow"===i.events[a][1].type){if(e){n=i.events[a][1].end;break}e=!0}for(g(o),s=l;st;){let t=s[n];i.containerState=t[1],t[0].exit.call(i,e)}s.length=t}function y(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},nN={tokenize:function(e,t,n){return t4(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},nj={resolve:function(e){return nA(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):tQ(t)?e.check(nL,s,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function s(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},nL={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),t4(e,i,"linePrefix")};function i(i){if(null===i||tQ(i))return n(i);let s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},n_={tokenize:function(e){let t=this,n=e.attempt(nf,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,t4(e,e.attempt(this.parser.constructs.flow,r,e.attempt(nj,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},nP={resolveAll:nJ()},nM=nF("string"),nD=nF("text");function nF(e){return{resolveAll:nJ("text"===e?nR:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,s,o);return s;function s(e){return a(e)?i(e):o(e)}function o(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),l}function l(e){return a(e)?(t.exit("data"),i(e)):(t.consume(e),l)}function a(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i=3&&(null===o||tQ(o))?(e.exit("thematicBreak"),t(o)):n(o)}(s)}}},n$={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(nf,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,t4(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!t0(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(nz,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,t4(e,e.attempt(n$,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],s=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:tW(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(nB,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return tW(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),l(i)):n(i)}(t)}return n(t)};function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(nf,r.interrupt?n:a,e.attempt(nU,c,u))}function a(e){return r.containerState.initialBlankLine=!0,s++,c(e)}function u(t){return t0(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},nU={partial:!0,tokenize:function(e,t,n){let r=this;return t4(e,function(e){let i=r.events[r.events.length-1];return!t0(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},nz={partial:!0,tokenize:function(e,t,n){let r=this;return t4(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},nq={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return t0(t)?t4(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(nq,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return t0(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function nV(e,t,n,r,i,s,o,l,a){let u=a||Number.POSITIVE_INFINITY,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(s),e.consume(t),e.exit(s),p):null===t||32===t||41===t||tH(t)?n(t):(e.enter(r),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),h(t))};function p(n){return 62===n?(e.enter(s),e.consume(n),e.exit(s),e.exit(i),e.exit(r),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),f(n))}function f(t){return 62===t?(e.exit("chunkString"),e.exit(l),p(t)):null===t||60===t||tQ(t)?n(t):(e.consume(t),92===t?d:f)}function d(t){return 60===t||62===t||92===t?(e.consume(t),f):f(t)}function h(i){return!c&&(null===i||41===i||tZ(i))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(r),t(i)):c999||null===p||91===p||93===p&&!o||94===p&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(p):93===p?(e.exit(s),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):tQ(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(t){return null===t||91===t||93===t||tQ(t)||a++>999?(e.exit("chunkString"),u(t)):(e.consume(t),o||(o=!t0(t)),92===t?p:c)}function p(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}}function nK(e,t,n,r,i,s){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,l):n(t)};function l(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(s),a(n))}function a(t){return t===o?(e.exit(s),l(o)):null===t?n(t):tQ(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),t4(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===o||null===t||tQ(t)?(e.exit("chunkString"),a(t)):(e.consume(t),92===t?c:u)}function c(t){return t===o||92===t?(e.consume(t),u):u(t)}}function nH(e,t){let n;return function r(i){return tQ(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):t0(i)?t4(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function nW(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let nG={partial:!0,tokenize:function(e,t,n){return function(t){return tZ(t)?nH(e,r)(t):n(t)};function r(t){return nK(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return t0(t)?t4(e,s,"whitespace")(t):s(t)}function s(e){return null===e||tQ(e)?t(e):n(e)}}},nY={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),t4(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?s(n):tQ(n)?e.attempt(nQ,t,s)(n):(e.enter("codeFlowValue"),function n(r){return null===r||tQ(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function s(n){return e.exit("codeIndented"),t(n)}}},nQ={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):tQ(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):t4(e,s,"linePrefix",5)(t)}function s(e){let s=r.events[r.events.length-1];return s&&"linePrefix"===s[1].type&&s[2].sliceSerialize(s[1],!0).length>=4?t(e):tQ(e)?i(e):n(e)}}},nZ={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,s=e.length;for(;s--;)if("enter"===e[s][0]){if("content"===e[s][1].type){n=s;break}"paragraph"===e[s][1].type&&(r=s)}else"content"===e[s][1].type&&e.splice(s,1),i||"definition"!==e[s][1].type||(i=s);let o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r;let i=this;return function(t){let o,l=i.events.length;for(;l--;)if("lineEnding"!==i.events[l][1].type&&"linePrefix"!==i.events[l][1].type&&"content"!==i.events[l][1].type){o="paragraph"===i.events[l][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),t0(n)?t4(e,s,"lineSuffix")(n):s(n))}(t)):n(t)};function s(r){return null===r||tQ(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},n0=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],n1=["pre","script","style","textarea"],n2={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(nf,t,n)}}},n3={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return tQ(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},n4={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},n5={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,s={partial:!0,tokenize:function(e,t,n){let s=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),t0(t)?t4(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)}function a(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(s++,e.consume(i),t):s>=l?(e.exit("codeFencedFenceSequence"),t0(i)?t4(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||tQ(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,l=0;return function(t){return function(t){let s=i.events[i.events.length-1];return o=s&&"linePrefix"===s[1].type?s[2].sliceSerialize(s[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(l++,e.consume(i),t):l<3?n(i):(e.exit("codeFencedFenceSequence"),t0(i)?t4(e,a,"whitespace")(i):a(i))}(t)}(t)};function a(s){return null===s||tQ(s)?(e.exit("codeFencedFence"),i.interrupt?t(s):e.check(n4,c,h)(s)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||tQ(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),a(i)):t0(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),t4(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(s))}function u(t){return null===t||tQ(t)?a(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||tQ(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),a(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function c(t){return e.attempt(s,h,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f}function f(t){return o>0&&t0(t)?t4(e,d,"linePrefix",o+1)(t):d(t)}function d(t){return null===t||tQ(t)?e.check(n4,c,h)(t):(e.enter("codeFlowValue"),function t(n){return null===n||tQ(n)?(e.exit("codeFlowValue"),d(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("codeFenced"),t(n)}}},n6={name:"characterReference",tokenize:function(e,t,n){let r,i;let s=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),r=31,i=tX,u(t))}function a(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=tG,u):(e.enter("characterReferenceValue"),r=7,i=tW,u(t))}function u(l){if(59===l&&o){let r=e.exit("characterReferenceValue");return i!==tX||tO(s.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return i(l)&&o++1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;let p={...e[n][1].end},f={...e[c][1].start};rl(p,-l),rl(f,l),s={type:l>1?"strongSequence":"emphasisSequence",start:p,end:{...e[n][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...e[c][1].start},end:f},i={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[c][1].start}},r={type:l>1?"strong":"emphasis",start:{...s.start},end:{...o.end}},e[n][1].end={...s.start},e[c][1].start={...o.end},a=[],e[n][1].end.offset-e[n][1].start.offset&&(a=ny(a,[["enter",e[n][1],t],["exit",e[n][1],t]])),a=ny(a,[["enter",r,t],["enter",s,t],["exit",s,t],["enter",i,t]]),a=ny(a,n8(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),a=ny(a,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(u=2,a=ny(a,[["enter",e[c][1],t],["exit",e[c][1],t]])):u=0,ng(e,n-1,c-n+3,a),c=n+a.length-u-2;break}}for(c=-1;++cs&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(s===i-1||i-4>s&&"whitespace"===e[i-2][1].type)&&(i-=s+1===i?2:4),i>s&&(n={type:"atxHeadingText",start:e[s][1].start,end:e[i][1].end},r={type:"chunkText",start:e[s][1].start,end:e[i][1].end,contentType:"text"},ng(e,s,i-s+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function i(s){return 35===s&&r++<6?(e.consume(s),i):null===s||tZ(s)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||tQ(r)?(e.exit("atxHeading"),t(r)):t0(r)?t4(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||tZ(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(s)):n(s)}(i)}}},42:nB,45:[nZ,nB],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,s,o,l;let a=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),u};function u(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),i=!0,d):63===o?(e.consume(o),r=3,a.interrupt?t:L):tV(o)?(e.consume(o),s=String.fromCharCode(o),h):n(o)}function c(i){return 45===i?(e.consume(i),r=2,p):91===i?(e.consume(i),r=5,o=0,f):tV(i)?(e.consume(i),r=4,a.interrupt?t:L):n(i)}function p(r){return 45===r?(e.consume(r),a.interrupt?t:L):n(r)}function f(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?a.interrupt?t:S:f:n(r)}function d(t){return tV(t)?(e.consume(t),s=String.fromCharCode(t),h):n(t)}function h(o){if(null===o||47===o||62===o||tZ(o)){let l=47===o,u=s.toLowerCase();return!l&&!i&&n1.includes(u)?(r=1,a.interrupt?t(o):S(o)):n0.includes(s.toLowerCase())?(r=6,l)?(e.consume(o),m):a.interrupt?t(o):S(o):(r=7,a.interrupt&&!a.parser.lazy[a.now().line]?n(o):i?function t(n){return t0(n)?(e.consume(n),t):k(n)}(o):g(o))}return 45===o||tX(o)?(e.consume(o),s+=String.fromCharCode(o),h):n(o)}function m(r){return 62===r?(e.consume(r),a.interrupt?t:S):n(r)}function g(t){return 47===t?(e.consume(t),k):58===t||95===t||tV(t)?(e.consume(t),y):t0(t)?(e.consume(t),g):k(t)}function y(t){return 45===t||46===t||58===t||95===t||tX(t)?(e.consume(t),y):x(t)}function x(t){return 61===t?(e.consume(t),b):t0(t)?(e.consume(t),x):g(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,v):t0(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||tZ(n)?x(n):(e.consume(n),t)}(t)}function v(t){return t===l?(e.consume(t),l=null,w):null===t||tQ(t)?n(t):(e.consume(t),v)}function w(e){return 47===e||62===e||t0(e)?g(e):n(e)}function k(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||tQ(t)?S(t):t0(t)?(e.consume(t),E):n(t)}function S(t){return 45===t&&2===r?(e.consume(t),C):60===t&&1===r?(e.consume(t),O):62===t&&4===r?(e.consume(t),_):63===t&&3===r?(e.consume(t),L):93===t&&5===r?(e.consume(t),j):tQ(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(n2,P,T)(t)):null===t||tQ(t)?(e.exit("htmlFlowData"),T(t)):(e.consume(t),S)}function T(t){return e.check(n3,I,P)(t)}function I(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return null===t||tQ(t)?T(t):(e.enter("htmlFlowData"),S(t))}function C(t){return 45===t?(e.consume(t),L):S(t)}function O(t){return 47===t?(e.consume(t),s="",N):S(t)}function N(t){if(62===t){let n=s.toLowerCase();return n1.includes(n)?(e.consume(t),_):S(t)}return tV(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),N):S(t)}function j(t){return 93===t?(e.consume(t),L):S(t)}function L(t){return 62===t?(e.consume(t),_):45===t&&2===r?(e.consume(t),L):S(t)}function _(t){return null===t||tQ(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),_)}function P(n){return e.exit("htmlFlow"),t(n)}}},61:nZ,95:nB,96:n5,126:n5},rd={38:n6,92:n9},rh={[-5]:n7,[-4]:n7,[-3]:n7,33:ri,38:n6,42:ro,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return tV(t)?(e.consume(t),s):64===t?n(t):l(t)}function s(t){return 43===t||45===t||46===t||tX(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||tX(n))&&r++<32?(e.consume(n),t):(r=0,l(n))}(t)):l(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||tH(r)?n(r):(e.consume(r),o)}function l(t){return 64===t?(e.consume(t),a):tK(t)?(e.consume(t),l):n(t)}function a(i){return tX(i)?function i(s){return 46===s?(e.consume(s),r=0,a):62===s?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(s),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(s){if((45===s||tX(s))&&r++<63){let n=45===s?t:i;return e.consume(s),n}return n(s)}(s)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,s;let o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),a):47===t?(e.consume(t),v):63===t?(e.consume(t),x):tV(t)?(e.consume(t),k):n(t)}function a(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,d):tV(t)?(e.consume(t),y):n(t)}function u(t){return 45===t?(e.consume(t),f):n(t)}function c(t){return null===t?n(t):45===t?(e.consume(t),p):tQ(t)?(s=c,N(t)):(e.consume(t),c)}function p(t){return 45===t?(e.consume(t),f):c(t)}function f(e){return 62===e?O(e):45===e?p(e):c(e)}function d(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?h:d):n(t)}function h(t){return null===t?n(t):93===t?(e.consume(t),m):tQ(t)?(s=h,N(t)):(e.consume(t),h)}function m(t){return 93===t?(e.consume(t),g):h(t)}function g(t){return 62===t?O(t):93===t?(e.consume(t),g):h(t)}function y(t){return null===t||62===t?O(t):tQ(t)?(s=y,N(t)):(e.consume(t),y)}function x(t){return null===t?n(t):63===t?(e.consume(t),b):tQ(t)?(s=x,N(t)):(e.consume(t),x)}function b(e){return 62===e?O(e):x(e)}function v(t){return tV(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||tX(t)?(e.consume(t),w):function t(n){return tQ(n)?(s=t,N(n)):t0(n)?(e.consume(n),t):O(n)}(t)}function k(t){return 45===t||tX(t)?(e.consume(t),k):47===t||62===t||tZ(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),O):58===t||95===t||tV(t)?(e.consume(t),S):tQ(t)?(s=E,N(t)):t0(t)?(e.consume(t),E):O(t)}function S(t){return 45===t||46===t||58===t||95===t||tX(t)?(e.consume(t),S):function t(n){return 61===n?(e.consume(n),T):tQ(n)?(s=t,N(n)):t0(n)?(e.consume(n),t):E(n)}(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,I):tQ(t)?(s=T,N(t)):t0(t)?(e.consume(t),T):(e.consume(t),A)}function I(t){return t===r?(e.consume(t),r=void 0,C):null===t?n(t):tQ(t)?(s=I,N(t)):(e.consume(t),I)}function A(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||tZ(t)?E(t):(e.consume(t),A)}function C(e){return 47===e||62===e||tZ(e)?E(e):n(e)}function O(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function N(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),j}function j(t){return t0(t)?t4(e,L,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),s(t)}}}],91:ra,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return tQ(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},n9],93:re,95:ro,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let rv=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function rw(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return rb(n.slice(t?2:1),t?16:10)}return tO(n)||e}let rk={}.hasOwnProperty;function rE(e){return{line:e.line,column:e.column,offset:e.offset}}function rS(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+g({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+g({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+g({start:t.start,end:t.end})+") is still open")}function rT(e){let t=this;t.parser=function(n){var r,i;let s,o,l,a;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(i=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(x),autolinkProtocol:u,autolinkEmail:u,atxHeading:r(h),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:u,characterReference:u,codeFenced:r(d),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(d,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:u,data:u,codeFlowValue:u,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(y,i),htmlFlowData:u,htmlText:r(y,i),htmlTextData:u,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(x),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(b,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(b),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(h),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:o(),autolinkEmail:function(e){c.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){c.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:c,characterReferenceMarkerHexadecimal:f,characterReferenceMarkerNumeric:f,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=rb(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=tO(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=rE(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:c,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:c,data:c,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=nW(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(p),hardBreakTrailing:o(p),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:c,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:c,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){let t=e.children;n.children=t}else n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(rv,rw),n.identifier=nW(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=rE(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(u.call(this,e),c.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=nW(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};(function e(t,n){let r=-1;for(;++r0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||rS).call(o,void 0,e[0])}for(r.position={start:rE(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:rE(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[s].slice(0,o))}return n}(o,e)}function f(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:s}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:s}}function d(e,t){t.restore()}function h(e,t){return function(n,i,s){let o,c,p,d;return Array.isArray(n)?h(n):"tokenize"in n?h([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null;return h([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)};function h(e){return(o=e,c=0,0===e.length)?s:m(e[c])}function m(e){return function(n){return(d=function(){let e=f(),t=u.previous,n=u.currentConstruct,i=u.events.length,s=Array.from(l);return{from:i,restore:function(){r=e,u.previous=t,u.currentConstruct=n,u.events.length=i,l=s,g()}}}(),p=e,e.partial||(u.currentConstruct=e),e.name&&u.parser.constructs.disable.null.includes(e.name))?x(n):e.tokenize.call(t?Object.assign(Object.create(u),t):u,a,y,x)(n)}}function y(t){return e(p,d),i}function x(e){return(d.restore(),++c{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[s,o]=t[i];switch(s){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(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(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 rI[e](t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new rI[s](o),i)};return r},rC=e=>rA(new Map,e)(0),{toString:rO}={},{keys:rN}=Object,rj=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=rO.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,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},rL=([e,t])=>0===e&&("function"===t||"symbol"===t),r_=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},s=r=>{if(n.has(r))return n.get(r);let[o,l]=rj(r);switch(o){case 0:{let t=r;switch(l){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+l);t=null;break;case"undefined":return i([-1],r)}return i([o,t],r)}case 1:{if(l){let e=r;return"DataView"===l?e=new Uint8Array(r.buffer):"ArrayBuffer"===l&&(e=new Uint8Array(r)),i([l,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(s(t));return t}case 2:{if(l)switch(l){case"BigInt":return i([l,r.toString()],r);case"Boolean":case"Number":case"String":return i([l,r.valueOf()],r)}if(t&&"toJSON"in r)return s(r.toJSON());let n=[],a=i([o,n],r);for(let t of rN(r))(e||!rL(rj(r[t])))&&n.push([s(t),s(r[t])]);return a}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||!(rL(rj(n))||rL(rj(i))))&&t.push([s(n),s(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!rL(rj(n)))&&t.push(s(n));return n}}let{message:a}=r;return i([o,{name:l,message:a}],r)};return s},rP=(e,{json:t,lossy:n}={})=>{let r=[];return r_(!(t||n),!!t,new Map,r)(e),r},rM="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?rC(rP(e,t)):structuredClone(e):(e,t)=>rC(rP(e,t));function rD(e){let t=[],n=-1,r=0,i=0;for(;++n55295&&s<57344){let t=e.charCodeAt(n+1);s<56320&&t>56319&&t<57344?(o=String.fromCharCode(s,t),i=1):o="�"}else o=String.fromCharCode(s);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function rF(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function rJ(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let rR=function(e){if(null==e)return r$;if("function"==typeof e)return rB(e);if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n":"")+")"})}return c;function c(){var u;let c,p,f,d=rU;if((!t||s(i,l,a[a.length-1]||void 0))&&!1===(d=Array.isArray(u=n(i,a))?u:"number"==typeof u?[!0,u]:null==u?rU:[u])[0])return d;if("children"in i&&i.children&&i.children&&"skip"!==d[0])for(p=(r?i.children.length:-1)+o,f=a.concat(i);p>-1&&p1:t}function rX(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let rK={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i={type:"element",tagName:"pre",properties:{},children:[i=e.applyData(t,i)]},e.patch(t,i),i},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n;let r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),s=rD(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),l=e.footnoteCounts.get(i);void 0===l?(l=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,l+=1,e.footnoteCounts.set(i,l);let a={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+s,id:r+"fnref-"+s+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,a);let u={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return rq(e,t);let i={src:rD(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let s={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,s),e.applyData(t,s)},image:function(e,t){let n={src:rD(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return rq(e,t);let i={href:rD(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let s={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)},link:function(e,t){let n={href:rD(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let l=-1;for(;++l0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=e$(t.children[1]),o=eB(t.children[t.children.length-1]);s&&o&&(r.position={start:s,end:o}),i.push(r)}let s={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",s=n&&"table"===n.type?n.align:void 0,o=s?s.length:t.children.length,l=-1,a=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return s.push(rX(t.slice(i),i>0,!1)),s.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:rH,yaml:rH,definition:rH,footnoteDefinition:rH};function rH(){}let rW={}.hasOwnProperty,rG={};function rY(e,t){e.position&&(t.position=ez(e))}function rQ(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,rM(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function rZ(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r0&&n.push({type:"text",value:"\n"}),n}function r0(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function r1(e,t){let n=function(e,t){let n=t||rG,r=new Map,i=new Map,s={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r0&&p.push({type:"text",value:" "});let e="string"==typeof n?n:n(a,c);"string"==typeof e&&(e={type:"text",value:e}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(a,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let d=s[s.length-1];if(d&&"element"===d.type&&"p"===d.tagName){let e=d.children[d.children.length-1];e&&"text"===e.type?e.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...p)}else s.push(...p);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(s,!0)};e.patch(i,h),l.push(h)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...rM(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:"\n"}]}}(n),s=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&s.children.push({type:"text",value:"\n"},i),s}function r2(e,t){return e&&"run"in e?async function(n,r){let i=r1(n,{file:r,...t});await e.run(i,r)}:function(n,r){return r1(n,{file:r,...e||t})}}function r3(e){if(e)throw e}var r4=n(22658);function r5(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let r6=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},r9={}.hasOwnProperty;class r7 extends r6{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);(function i(s,...o){let l=e[++n],a=-1;if(s){r(s);return}for(;++at.length;o&&t.push(r);try{s=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(s&&s.then&&"function"==typeof s.then?s.then(i,r):s instanceof Error?r(s):i(s))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(l,i)(...o):r(null,...o)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new r7,t=-1;for(;++t0){let[r,...s]=t,o=n[i][1];r5(o)&&r5(r)&&(r=r4(!0,o,r)),n[i]=[e,r,...s]}}}}let r8=new r7().freeze();function ie(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function it(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function ir(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ii(e){if(!r5(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function is(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function io(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new I(e)}function il(e,t){let n=["start","end","loc","range"],r=-1;for(;++r0&&k(m)}else"ExportNamedDeclaration"===m.type||"ExportAllDeclaration"===m.type?k(m):"ImportDeclaration"===m.type?E(m):"ExpressionStatement"===m.type&&("JSXElement"===m.expression.type||"JSXFragment"===m.expression.type)?(h=!0,x.push(...u(m.expression,r,!!d))):x.push(m);h||x.push(...u(void 0,r,!!d)),y.push(["MDXContent","default"]),"function-body"===r&&x.push({type:"ReturnStatement",argument:{type:"ObjectExpression",properties:[...Array.from({length:b}).map(function(e,t){return{type:"SpreadElement",argument:{type:"Identifier",name:"_exportAll"+(t+1)}}}),...y.map(function(e){return{type:"Property",kind:"init",method:!1,computed:!1,shorthand:"string"==typeof e,key:{type:"Identifier",name:"string"==typeof e?e:e[1]},value:{type:"Identifier",name:"string"==typeof e?e:e[0]}}})]}}),e.body=x;let v=!1,w=!1;function k(e){if("ExportNamedDeclaration"===e.type){if(e.declaration){let t=id();z(e,{enter(e){t.enter(e),("ArrowFunctionExpression"===e.type||"FunctionDeclaration"===e.type||"FunctionExpression"===e.type)&&(this.skip(),t.exit(e))},leave:t.exit}),y.push(...t.scopes[0].defined)}for(m of e.specifiers)"Identifier"===m.exported.type?y.push(m.exported.name):(m.exported.value,y.push(m.exported.value))}E(e)}function E(e){let t,n;if("function-body"===r){if("ImportDeclaration"===e.type||"ExportAllDeclaration"===e.type||"ExportNamedDeclaration"===e.type&&e.source){e.source;let r={type:"ImportExpression",source:e.source};il(e,r),n={type:"AwaitExpression",argument:r},t=("ImportDeclaration"===e.type||"ExportNamedDeclaration"===e.type)&&0===e.specifiers.length?{type:"ExpressionStatement",expression:n}:{type:"VariableDeclaration",kind:"const",declarations:"ExportAllDeclaration"===e.type?[{type:"VariableDeclarator",id:{type:"Identifier",name:"_exportAll"+ ++b},init:n}]:ia(e.specifiers,n)}}else if(e.declaration)t=e.declaration;else{let n=[];for(let t of e.specifiers)"Identifier"===t.exported.type&&"Identifier"===t.local.type&&t.local.name!==t.exported.name&&n.push({type:"VariableDeclarator",id:t.exported,init:t.local});n.length>0&&(t={type:"VariableDeclaration",kind:"const",declarations:n})}}else t=e;t&&x.push(t)}(n||"function-body"===r)&&z(e,{enter(e){if(("ExportAllDeclaration"===e.type||"ExportNamedDeclaration"===e.type||"ImportDeclaration"===e.type)&&e.source){let t=e.source.value;try{new URL(t)}catch{(t.startsWith("/")||t.startsWith("./")||t.startsWith("../"))&&(t=new URL(t,n).href)}let r={type:"Literal",value:t};il(e.source,r),e.source=r;return}if("ImportExpression"===e.type){w=!0;let t={type:"CallExpression",callee:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},arguments:[e.source],optional:!1};e.source=t;return}if("MemberExpression"===e.type&&"object"in e&&"MetaProperty"===e.object.type&&"Identifier"===e.property.type&&"import"===e.object.meta.name&&"meta"===e.object.property.name&&"url"===e.property.name){v=!0;let t={type:"Identifier",name:"_importMetaUrl"};il(e,t),this.replace(t)}}}),w&&(n||(v=!0),e.body.push((f=n?{type:"Literal",value:n}:{type:"Identifier",name:"_importMetaUrl"},{type:"FunctionDeclaration",id:{type:"Identifier",name:"_resolveDynamicMdxSpecifier"},generator:!1,async:!1,params:[{type:"Identifier",name:"d"}],body:{type:"BlockStatement",body:[{type:"IfStatement",test:{type:"BinaryExpression",left:{type:"UnaryExpression",operator:"typeof",prefix:!0,argument:{type:"Identifier",name:"d"}},operator:"!==",right:{type:"Literal",value:"string"}},consequent:{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}},alternate:null},{type:"TryStatement",block:{type:"BlockStatement",body:[{type:"ExpressionStatement",expression:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"}]}},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]},handler:{type:"CatchClause",param:null,body:{type:"BlockStatement",body:[]}},finalizer:null},{type:"IfStatement",test:{type:"LogicalExpression",left:{type:"LogicalExpression",left:{type:"CallExpression",callee:iu(["d","startsWith"]),arguments:[{type:"Literal",value:"/"}],optional:!1},operator:"||",right:{type:"CallExpression",callee:iu(["d","startsWith"]),arguments:[{type:"Literal",value:"./"}],optional:!1}},operator:"||",right:{type:"CallExpression",callee:iu(["d","startsWith"]),arguments:[{type:"Literal",value:"../"}],optional:!1}},consequent:{type:"ReturnStatement",argument:{type:"MemberExpression",object:{type:"NewExpression",callee:{type:"Identifier",name:"URL"},arguments:[{type:"Identifier",name:"d"},f]},property:{type:"Identifier",name:"href"},computed:!1,optional:!1}},alternate:null},{type:"ReturnStatement",argument:{type:"Identifier",name:"d"}}]}}))),v&&e.body.unshift({type:"VariableDeclaration",declarations:[{type:"VariableDeclarator",id:{type:"Identifier",name:"_importMetaUrl"},init:iu(["arguments",0,"baseUrl"])}],kind:"const"},{type:"IfStatement",test:{type:"UnaryExpression",operator:"!",prefix:!0,argument:{type:"Identifier",name:"_importMetaUrl"}},consequent:{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[{type:"Literal",value:"Unexpected missing `options.baseUrl` needed to support `export … from`, `import`, or `import.meta.url` when generating `function-body`"}]}},alternate:null})};function u(e,t,n){let r={type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"MDXLayout"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!1},closingElement:{type:"JSXClosingElement",name:{type:"JSXIdentifier",name:"MDXLayout"}},children:[{type:"JSXElement",openingElement:{type:"JSXOpeningElement",name:{type:"JSXIdentifier",name:"_createMdxContent"},attributes:[{type:"JSXSpreadAttribute",argument:{type:"Identifier",name:"props"}}],selfClosing:!0},closingElement:null,children:[]}]};n||(r={type:"ConditionalExpression",test:{type:"Identifier",name:"MDXLayout"},consequent:r,alternate:{type:"CallExpression",callee:{type:"Identifier",name:"_createMdxContent"},arguments:[{type:"Identifier",name:"props"}],optional:!1}});let i=e||{type:"Identifier",name:"undefined"};"JSXFragment"===i.type&&1===i.children.length&&"JSXElement"===i.children[0].type&&(i=i.children[0]);let s=!1;z(i,{enter(e){if("ArrowFunctionExpression"===e.type||"FunctionDeclaration"===e.type||"FunctionExpression"===e.type)return this.skip();("AwaitExpression"===e.type||"ForOfStatement"===e.type&&e.await)&&(s=!0)}});let o={type:"FunctionDeclaration",id:{type:"Identifier",name:"MDXContent"},params:[{type:"AssignmentPattern",left:{type:"Identifier",name:"props"},right:{type:"ObjectExpression",properties:[]}}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:r}]}};return[{type:"FunctionDeclaration",async:s,id:{type:"Identifier",name:"_createMdxContent"},params:[{type:"Identifier",name:"props"}],body:{type:"BlockStatement",body:[{type:"ReturnStatement",argument:i}]}},"program"===t?{type:"ExportDefaultDeclaration",declaration:o}:o]}}function im(e,t,n){e.comments?.unshift({type:"Block",value:t+" "+n,data:{_mdxIsPragmaComment:!0}})}function ig(e){let t,n=-1;for(;++n0||i.length>0||f.idToInvalidComponentName.size>0){let e;if(r&&(l=!0,u.push({type:"CallExpression",callee:{type:"Identifier",name:"_provideComponents"},arguments:[],optional:!1})),(ix(f.node,"MDXContent")||ix(f.node,"_createMdxContent"))&&u.push(iu(["props","components"])),n.length>0||u.length>1)for(let e of u)n.push({type:"SpreadElement",argument:e});let t=n.length>0?{type:"ObjectExpression",properties:n}:{type:"LogicalExpression",operator:"||",left:u[0],right:{type:"ObjectExpression",properties:[]}};if(i.length>0&&(e={type:"ObjectPattern",properties:i.map(function(e){return{type:"Property",kind:"init",key:{type:"Identifier",name:"MDXLayout"===e?"wrapper":e},value:{type:"Identifier",name:e},method:!1,shorthand:"MDXLayout"!==e,computed:!1}})}),f.tags.length>0&&(c.push({type:"VariableDeclarator",id:{type:"Identifier",name:"_components"},init:t}),t={type:"Identifier",name:"_components"}),ix(f.node,"_createMdxContent"))for(let[e,t]of[...f.idToInvalidComponentName].sort(function([e],[t]){return e.localeCompare(t)}))c.push({type:"VariableDeclarator",id:{type:"Identifier",name:t},init:{type:"MemberExpression",object:{type:"Identifier",name:"_components"},property:{type:"Literal",value:e},computed:!0,optional:!1}});e&&c.push({type:"VariableDeclarator",id:e,init:t}),c.length>0&&d.push({type:"VariableDeclaration",kind:"const",declarations:c})}for(p in f.references)if(Object.hasOwn(f.references,p)){let e=p.split("."),t=0;for(;++t0&&("BlockStatement"!==e.body.type&&(e.body={type:"BlockStatement",body:[{type:"ReturnStatement",argument:e.body}]}),e.body.body.unshift(...d)),o.pop()}}}),l&&r&&e.body.unshift(function(e,t){let n=[{type:"ImportSpecifier",imported:{type:"Identifier",name:"useMDXComponents"},local:{type:"Identifier",name:"_provideComponents"}}];return"function-body"===t?{type:"VariableDeclaration",kind:"const",declarations:ia(n,iu(["arguments",0]))}:{type:"ImportDeclaration",specifiers:n,source:{type:"Literal",value:e}}}(r,n)),a){let n=[{type:"Literal",value:"Expected "},{type:"ConditionalExpression",test:{type:"Identifier",name:"component"},consequent:{type:"Literal",value:"component"},alternate:{type:"Literal",value:"object"}},{type:"Literal",value:" `"},{type:"Identifier",name:"id"},{type:"Literal",value:"` to be defined: you likely forgot to import, pass, or provide it."}],r=[{type:"Identifier",name:"id"},{type:"Identifier",name:"component"}];t&&(n.push({type:"ConditionalExpression",test:{type:"Identifier",name:"place"},consequent:ig([{type:"Literal",value:"\nIt’s referenced in your code at `"},{type:"Identifier",name:"place"},{type:"Literal",value:(i.path?"` in `"+i.path:"")+"`"}]),alternate:{type:"Literal",value:""}}),r.push({type:"Identifier",name:"place"})),e.body.push({type:"FunctionDeclaration",id:{type:"Identifier",name:"_missingMdxReference"},generator:!1,async:!1,params:r,body:{type:"BlockStatement",body:[{type:"ThrowStatement",argument:{type:"NewExpression",callee:{type:"Identifier",name:"Error"},arguments:[ig(n)]}}]}})}"function-body"===n&&e.body.unshift({type:"ExpressionStatement",expression:{type:"Literal",value:"use strict"},directive:"use strict"})}}function ix(e,t){return!!(e&&"id"in e&&e.id&&e.id.name===t)}function ib(e,t){let n=e.length;for(;n--;)if(e[n].defined.includes(t))return!0;return!1}function iv(){return function(e){rz(e,"raw",function(e,t,n){if(n&&"number"==typeof t)return n.children.splice(t,1),t})}}let iw=/\s+/g,ik=/[\t\n\v\f\r ]+/g;function iE(e){let t=/\r?\n|\r/.exec(e);return t?t[0]:" "}function iS(){return" "}function iT(){return function(e){rz(e,function(e,t,n){let r=-1,i=!0,s=!1;if(n&&"number"==typeof t&&"paragraph"===e.type){let o=e.children;for(;++r!!e&&"object"==typeof e&&e[iM]===iO,iF=e=>!!e&&"object"==typeof e&&e[iM]===iN,iJ=e=>!!e&&"object"==typeof e&&e[iM]===ij,iR=e=>!!e&&"object"==typeof e&&e[iM]===iL,iB=e=>!!e&&"object"==typeof e&&e[iM]===i_,i$=e=>!!e&&"object"==typeof e&&e[iM]===iP;function iU(e){if(e&&"object"==typeof e)switch(e[iM]){case ij:case iP:return!0}return!1}function iz(e){if(e&&"object"==typeof e)switch(e[iM]){case iO:case ij:case i_:case iP:return!0}return!1}let iq=e=>(iB(e)||iU(e))&&!!e.anchor,iV=Symbol("break visit"),iX=Symbol("skip children"),iK=Symbol("remove node");function iH(e,t){let n=iQ(t);iF(e)?iW(null,e.contents,n,Object.freeze([e]))===iK&&(e.contents=null):iW(null,e,n,Object.freeze([]))}function iW(e,t,n,r){let i=iZ(e,t,n,r);if(iz(i)||iR(i))return i0(e,r,i),iW(e,i,n,r);if("symbol"!=typeof i){if(iU(t)){r=Object.freeze(r.concat(t));for(let e=0;ee.replace(/[!,[\]{}]/g,e=>i1[e]);class i3{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},i3.defaultYaml,e),this.tags=Object.assign({},i3.defaultTags,t)}clone(){let e=new i3(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new i3(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:i3.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},i3.defaultTags)}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:i3.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},i3.defaultTags),this.atNextDocument=!1);let n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(2!==n.length&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;let[e,r]=n;return this.tags[e]=r,!0}case"%YAML":{if(this.yaml.explicit=!0,1!==n.length)return t(0,"%YAML directive should contain exactly one part"),!1;let[e]=n;if("1.1"===e||"1.2"===e)return this.yaml.version=e,!0;{let n=/^\d+\.\d+$/.test(e);return t(6,`Unsupported YAML version ${e}`,n),!1}}default:return t(0,`Unknown directive ${r}`,!0),!1}}tagName(e,t){if("!"===e)return"!";if("!"!==e[0])return t(`Not a valid tag: ${e}`),null;if("<"===e[1]){let n=e.slice(2,-1);return"!"===n||"!!"===n?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(">"!==e[e.length-1]&&t("Verbatim tags must end with a >"),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return"!"===n?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+i2(e.substring(n.length));return"!"===e[0]?e:`!<${e}>`}toString(e){let t;let n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);if(e&&r.length>0&&iz(e.contents)){let n={};iH(e.contents,(e,t)=>{iz(t)&&t.tag&&(n[t.tag]=!0)}),t=Object.keys(n)}else t=[];for(let[i,s]of r)("!!"!==i||"tag:yaml.org,2002:"!==s)&&(!e||t.some(e=>e.startsWith(s)))&&n.push(`%TAG ${i} ${s}`);return n.join("\n")}}function i4(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=JSON.stringify(e);throw Error(`Anchor must not contain whitespace or control characters: ${t}`)}return!0}function i5(e){let t=new Set;return iH(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function i6(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function i9(e,t,n,r){if(r&&"object"==typeof r){if(Array.isArray(r))for(let t=0,n=r.length;ti7(e,String(t),n));if(e&&"function"==typeof e.toJSON){if(!n||!iq(e))return e.toJSON(t,n);let r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=e=>{r.res=e,delete n.onCreate};let i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return"bigint"!=typeof e||n?.keep?e:Number(e)}i3.defaultYaml={explicit:!1,version:"1.2"},i3.defaultTags={"!!":"tag:yaml.org,2002:"};class i8{constructor(e){Object.defineProperty(this,iM,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!iF(e))throw TypeError("A document argument is required");let s={anchors:new Map,doc:e,keep:!0,mapAsMap:!0===t,mapKeyWarned:!1,maxAliasCount:"number"==typeof n?n:100},o=i7(this,"",s);if("function"==typeof r)for(let{count:e,res:t}of s.anchors.values())r(t,e);return"function"==typeof i?i9(i,{"":o},"",o):o}}class se extends i8{constructor(e){super(iO),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error("Alias nodes cannot have tags")}})}resolve(e){let t;return iH(e,{Node:(e,n)=>{if(n===this)return iH.BREAK;n.anchor===this.source&&(t=n)}}),t}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,s=this.resolve(r);if(!s)throw ReferenceError(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);let o=n.get(s);if(o||(i7(s,null,t),o=n.get(s)),!o||void 0===o.res)throw ReferenceError("This should not happen: Alias anchor was not resolved?");if(i>=0&&(o.count+=1,0===o.aliasCount&&(o.aliasCount=function e(t,n,r){if(iD(n)){let e=n.resolve(t),i=r&&e&&r.get(e);return i?i.count*i.aliasCount:0}if(iU(n)){let i=0;for(let s of n.items){let n=e(t,s,r);n>i&&(i=n)}return i}return iR(n)?Math.max(e(t,n.key,r),e(t,n.value,r)):1}(r,s,n)),o.count*o.aliasCount>i))throw ReferenceError("Excessive alias count indicates a resource exhaustion attack");return o.res}toString(e,t,n){let r=`*${this.source}`;if(e){if(i4(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source))throw Error(`Unresolved alias (the anchor must be set before the alias): ${this.source}`);if(e.implicitKey)return`${r} `}return r}}let st=e=>!e||"function"!=typeof e&&"object"!=typeof e;class sn extends i8{constructor(e){super(i_),this.value=e}toJSON(e,t){return t?.keep?this.value:i7(this.value,e,t)}toString(){return String(this.value)}}function sr(e,t,n){let r;if(iF(e)&&(e=e.contents),iz(e))return e;if(iR(e)){let t=n.schema[ij].createNode?.(n.schema,null,n);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||"undefined"!=typeof BigInt&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:i,onAnchor:s,onTagObj:o,schema:l,sourceObjects:a}=n;if(i&&e&&"object"==typeof e){if(r=a.get(e))return r.anchor||(r.anchor=s(e)),new se(r.anchor);r={anchor:null,node:null},a.set(e,r)}t?.startsWith("!!")&&(t="tag:yaml.org,2002:"+t.slice(2));let u=function(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}(e,t,l.tags);if(!u){if(e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!e||"object"!=typeof e){let t=new sn(e);return r&&(r.node=t),t}u=e instanceof Map?l[ij]:Symbol.iterator in Object(e)?l[iP]:l[ij]}o&&(o(u),delete n.onTagObj);let c=u?.createNode?u.createNode(n.schema,e,n):"function"==typeof u?.nodeClass?.from?u.nodeClass.from(n.schema,e,n):new sn(e);return t?c.tag=t:u.default||(c.tag=u.tag),r&&(r.node=c),c}function si(e,t,n){let r=n;for(let e=t.length-1;e>=0;--e){let n=t[e];if("number"==typeof n&&Number.isInteger(n)&&n>=0){let e=[];e[n]=r,r=e}else r=new Map([[n,r]])}return sr(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}sn.BLOCK_FOLDED="BLOCK_FOLDED",sn.BLOCK_LITERAL="BLOCK_LITERAL",sn.PLAIN="PLAIN",sn.QUOTE_DOUBLE="QUOTE_DOUBLE",sn.QUOTE_SINGLE="QUOTE_SINGLE";let ss=e=>null==e||"object"==typeof e&&!!e[Symbol.iterator]().next().done;class so extends i8{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>iz(t)||iR(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(ss(e))this.add(t);else{let[n,...r]=e,i=this.get(n,!0);if(iU(i))i.addIn(r,t);else if(void 0===i&&this.schema)this.set(n,si(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){let[t,...n]=e;if(0===n.length)return this.delete(t);let r=this.get(t,!0);if(iU(r))return r.deleteIn(n);throw Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){let[n,...r]=e,i=this.get(n,!0);return 0===r.length?!t&&iB(i)?i.value:i:iU(i)?i.getIn(r,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!iR(t))return!1;let n=t.value;return null==n||e&&iB(n)&&null==n.value&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){let[t,...n]=e;if(0===n.length)return this.has(t);let r=this.get(t,!0);return!!iU(r)&&r.hasIn(n)}setIn(e,t){let[n,...r]=e;if(0===r.length)this.set(n,t);else{let e=this.get(n,!0);if(iU(e))e.setIn(r,t);else if(void 0===e&&this.schema)this.set(n,si(this.schema,r,t));else throw Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}}let sl=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function sa(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}let su=(e,t,n)=>e.endsWith("\n")?sa(n,t):n.includes("\n")?"\n"+sa(n,t):(e.endsWith(" ")?"":" ")+n,sc="flow",sp="block",sf="quoted";function sd(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:s=20,onFold:o,onOverflow:l}={}){let a,u,c;if(!i||i<0)return e;ii-Math.max(2,s)?f.push(0):h=i-r);let m=!1,g=-1,y=-1,x=-1;for(n===sp&&-1!==(g=sh(e,g,t.length))&&(h=g+p);c=e[g+=1];){if(n===sf&&"\\"===c){switch(y=g,e[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}x=g}if("\n"===c)n===sp&&(g=sh(e,g,t.length)),h=g+t.length+p,a=void 0;else{if(" "===c&&u&&" "!==u&&"\n"!==u&&" "!==u){let t=e[g+1];t&&" "!==t&&"\n"!==t&&" "!==t&&(a=g)}if(g>=h){if(a)f.push(a),h=a+p,a=void 0;else if(n===sf){for(;" "===u||" "===u;)u=c,c=e[g+=1],m=!0;let t=g>x+1?g-2:y-1;if(d[t])return e;f.push(t),d[t]=!0,h=t+p,a=void 0}else m=!0}}u=c}if(m&&l&&l(),0===f.length)return e;o&&o();let b=e.slice(0,f[0]);for(let r=0;r({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),sg=e=>/^(%|---|\.\.\.)/m.test(e);function sy(e,t){let n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;let{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(sg(e)?" ":""),o="",l=0;for(let e=0,t=n[e];t;t=n[++e])if(" "===t&&"\\"===n[e+1]&&"n"===n[e+2]&&(o+=n.slice(l,e)+"\\ ",e+=1,l=e,t="\\"),"\\"===t)switch(n[e+1]){case"u":{o+=n.slice(l,e);let t=n.substr(e+2,4);switch(t){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:"00"===t.substr(0,2)?o+="\\x"+t.substr(2):o+=n.substr(e,6)}e+=5,l=e+1}break;case"n":if(r||'"'===n[e+2]||n.lengthr)return!0;if(i-(n=t+1)<=r)return!1}return!0}(n,f,d.length));if(!n)return h?"|\n":">\n";for(l=n.length;l>0;--l){let e=n[l-1];if("\n"!==e&&" "!==e&&" "!==e)break}let m=n.substring(l),g=m.indexOf("\n");-1===g?o="-":n===m||g!==m.length-1?(o="+",s&&s()):o="",m&&(n=n.slice(0,-m.length),"\n"===m[m.length-1]&&(m=m.slice(0,-1)),m=m.replace(u,`$&${d}`));let y=!1,x=-1;for(a=0;a{i=!0});let o=sd(`${b}${e}${m}`,d,sp,s);if(!i)return`>${w} ${d}${o}`}return n=n.replace(/\n+/g,`$&${d}`),`|${w} ${d}${b}${n}${m}`}function sw(e,t,n,r){let{implicitKey:i,inFlow:s}=t,o="string"==typeof e.value?e:Object.assign({},e,{value:String(e.value)}),{type:l}=e;l!==sn.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(l=sn.QUOTE_DOUBLE);let a=e=>{switch(e){case sn.BLOCK_FOLDED:case sn.BLOCK_LITERAL:return i||s?sb(o.value,t):sv(o,t,n,r);case sn.QUOTE_DOUBLE:return sy(o.value,t);case sn.QUOTE_SINGLE:return sx(o.value,t);case sn.PLAIN:return function(e,t,n,r){let{type:i,value:s}=e,{actualString:o,implicitKey:l,indent:a,indentStep:u,inFlow:c}=t;if(l&&s.includes("\n")||c&&/[[\]{},]/.test(s))return sb(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return l||c||!s.includes("\n")?sb(s,t):sv(e,t,n,r);if(!l&&!c&&i!==sn.PLAIN&&s.includes("\n"))return sv(e,t,n,r);if(sg(s)){if(""===a)return t.forceBlockIndent=!0,sv(e,t,n,r);if(l&&a===u)return sb(s,t)}let p=s.replace(/\n+/g,`$& ${a}`);if(o){let e=e=>e.default&&"tag:yaml.org,2002:str"!==e.tag&&e.test?.test(p),{compat:n,tags:r}=t.doc.schema;if(r.some(e)||n?.some(e))return sb(s,t)}return l?p:sd(p,a,sc,sm(t,!1))}(o,t,n,r);default:return null}},u=a(l);if(null===u){let{defaultKeyType:e,defaultStringType:n}=t.options,r=i&&e||n;if(null===(u=a(r)))throw Error(`Unsupported default string type ${r}`)}return u}function sk(e,t){let n;let r=Object.assign({blockQuote:!0,commentString:sl,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);switch(r.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:e,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:"number"==typeof r.indent?" ".repeat(r.indent):" ",inFlow:n,options:r}}function sE(e,t,n,r){let i;if(iR(e))return e.toString(t,n,r);if(iD(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let s=iz(e)?e:t.doc.createNode(e,{onTagObj:e=>i=e});i||(i=function(e,t){let n,r;if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}if(iB(t)){n=t.value;let i=e.filter(e=>e.identify?.(n));if(i.length>1){let e=i.filter(e=>e.test);e.length>0&&(i=e)}r=i.find(e=>e.format===t.format)??i.find(e=>!e.format)}else n=t,r=e.find(e=>e.nodeClass&&n instanceof e.nodeClass);if(!r){let e=n?.constructor?.name??typeof n;throw Error(`Tag not resolved for ${e} value`)}return r}(t.doc.schema.tags,s));let o=function(e,t,{anchors:n,doc:r}){if(!r.directives)return"";let i=[],s=(iB(e)||iU(e))&&e.anchor;s&&i4(s)&&(n.add(s),i.push(`&${s}`));let o=e.tag?e.tag:t.default?null:t.tag;return o&&i.push(r.directives.tagString(o)),i.join(" ")}(s,i,t);o.length>0&&(t.indentAtStart=(t.indentAtStart??0)+o.length+1);let l="function"==typeof i.stringify?i.stringify(s,t,n,r):iB(s)?sw(s,t,n,r):s.toString(t,n,r);return o?iB(s)||"{"===l[0]||"["===l[0]?`${o} ${l}`:`${o} ${t.indent}${l}`:l}function sS(e,t){("debug"===e||"warn"===e)&&console.warn(t)}let sT={identify:e=>"<<"===e||"symbol"==typeof e&&"<<"===e.description,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new sn(Symbol("<<")),{addToJSMap:sA}),stringify:()=>"<<"},sI=(e,t)=>(sT.identify(t)||iB(t)&&(!t.type||t.type===sn.PLAIN)&&sT.identify(t.value))&&e?.doc.schema.tags.some(e=>e.tag===sT.tag&&e.default);function sA(e,t,n){if(i$(n=e&&iD(n)?n.resolve(e.doc):n))for(let r of n.items)sC(e,t,r);else if(Array.isArray(n))for(let r of n)sC(e,t,r);else sC(e,t,n)}function sC(e,t,n){let r=e&&iD(n)?n.resolve(e.doc):n;if(!iJ(r))throw Error("Merge sources must be maps or map aliases");for(let[n,i]of r.toJSON(null,e,Map))t instanceof Map?t.has(n)||t.set(n,i):t instanceof Set?t.add(n):Object.prototype.hasOwnProperty.call(t,n)||Object.defineProperty(t,n,{value:i,writable:!0,enumerable:!0,configurable:!0});return t}function sO(e,t,{key:n,value:r}){if(iz(n)&&n.addToJSMap)n.addToJSMap(e,t,r);else if(sI(e,n))sA(e,t,r);else{let i=i7(n,"",e);if(t instanceof Map)t.set(i,i7(r,i,e));else if(t instanceof Set)t.add(i);else{let s=function(e,t,n){if(null===t)return"";if("object"!=typeof t)return String(t);if(iz(e)&&n?.doc){let t=sk(n.doc,{});for(let e of(t.anchors=new Set,n.anchors.keys()))t.anchors.add(e.anchor);t.inFlow=!0,t.inStringifyKey=!0;let r=e.toString(t);if(!n.mapKeyWarned){let e=JSON.stringify(r);e.length>40&&(e=e.substring(0,36)+'..."'),sS(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return r}return JSON.stringify(t)}(n,i,e),o=i7(r,s,e);s in t?Object.defineProperty(t,s,{value:o,writable:!0,enumerable:!0,configurable:!0}):t[s]=o}}return t}function sN(e,t,n){return new sj(sr(e,void 0,n),sr(t,void 0,n))}class sj{constructor(e,t=null){Object.defineProperty(this,iM,{value:iL}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return iz(t)&&(t=t.clone(e)),iz(n)&&(n=n.clone(e)),new sj(t,n)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return sO(t,n,this)}toString(e,t,n){return e?.doc?function({key:e,value:t},n,r,i){let s,o,l;let{allNullValues:a,doc:u,indent:c,indentStep:p,options:{commentString:f,indentSeq:d,simpleKeys:h}}=n,m=iz(e)&&e.comment||null;if(h){if(m)throw Error("With simple keys, key nodes cannot have comments");if(iU(e)||!iz(e)&&"object"==typeof e)throw Error("With simple keys, collection cannot be used as a key value")}let g=!h&&(!e||m&&null==t&&!n.inFlow||iU(e)||(iB(e)?e.type===sn.BLOCK_FOLDED||e.type===sn.BLOCK_LITERAL:"object"==typeof e));n=Object.assign({},n,{allNullValues:!1,implicitKey:!g&&(h||!a),indent:c+p});let y=!1,x=!1,b=sE(e,n,()=>y=!0,()=>x=!0);if(!g&&!n.inFlow&&b.length>1024){if(h)throw Error("With simple keys, single line scalar must not span more than 1024 characters");g=!0}if(n.inFlow){if(a||null==t)return y&&r&&r(),""===b?"?":g?`? ${b}`:b}else if(a&&!h||null==t&&g)return b=`? ${b}`,m&&!y?b+=su(b,n.indent,f(m)):x&&i&&i(),b;y&&(m=null),g?(m&&(b+=su(b,n.indent,f(m))),b=`? ${b} ${c}:`):(b=`${b}:`,m&&(b+=su(b,n.indent,f(m)))),iz(t)?(s=!!t.spaceBefore,o=t.commentBefore,l=t.comment):(s=!1,o=null,l=null,t&&"object"==typeof t&&(t=u.createNode(t))),n.implicitKey=!1,!g&&!m&&iB(t)&&(n.indentAtStart=b.length+1),x=!1,!(!d&&p.length>=2&&!n.inFlow&&!g&&i$(t))||t.flow||t.tag||t.anchor||(n.indent=n.indent.substring(2));let v=!1,w=sE(t,n,()=>v=!0,()=>x=!0),k=" ";if(m||s||o){if(k=s?"\n":"",o){let e=f(o);k+=` ${sa(e,n.indent)}`}""!==w||n.inFlow?k+=` ${n.indent}`:"\n"===k&&(k="\n\n")}else if(!g&&iU(t)){let e=w[0],r=w.indexOf("\n"),i=-1!==r,s=n.inFlow??t.flow??0===t.items.length;if(i||!s){let t=!1;if(i&&("&"===e||"!"===e)){let n=w.indexOf(" ");"&"===e&&-1!==n&&ns=null);nc||o.includes("\n"))&&(u=!0),p.push(o),c=p.length}let{start:f,end:d}=n;if(0===p.length)return f+d;if(!u){let e=p.reduce((e,t)=>e+t.length+2,2);u=t.options.lineWidth>0&&e>t.options.lineWidth}if(!u)return`${f}${o}${p.join(" ")}${o}${d}`;{let e=f;for(let t of p)e+=t?` ${s}${i}${t}`:"\n";return`${e} ${i}${d}`}}:function({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:s,onChompKeep:o,onComment:l}){let a;let{indent:u,options:{commentString:c}}=n,p=Object.assign({},n,{indent:s,type:null}),f=!1,d=[];for(let e=0;eo=null,()=>f=!0);o&&(l+=su(l,s,c(o))),f&&o&&(f=!1),d.push(r+l)}if(0===d.length)a=i.start+i.end;else{a=d[0];for(let e=1;e{if("function"==typeof i)o=i.call(t,e,o);else if(Array.isArray(i)&&!i.includes(e))return;(void 0!==o||r)&&s.items.push(sN(e,o,n))};if(t instanceof Map)for(let[e,n]of t)o(e,n);else if(t&&"object"==typeof t)for(let e of Object.keys(t))o(e,t[e]);return"function"==typeof e.sortMapEntries&&s.items.sort(e.sortMapEntries),s}add(e,t){let n;n=iR(e)?e:e&&"object"==typeof e&&"key"in e?new sj(e.key,e.value):new sj(e,e?.value);let r=sP(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);iB(r.value)&&st(n.value)?r.value.value=n.value:r.value=n.value}else if(i){let e=this.items.findIndex(e=>0>i(n,e));-1===e?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=sP(this.items,e);return!!t&&this.items.splice(this.items.indexOf(t),1).length>0}get(e,t){let n=sP(this.items,e),r=n?.value;return(!t&&iB(r)?r.value:r)??void 0}has(e){return!!sP(this.items,e)}set(e,t){this.add(new sj(e,t),!0)}toJSON(e,t,n){let r=n?new n:t?.mapAsMap?new Map:{};for(let e of(t?.onCreate&&t.onCreate(r),this.items))sO(t,r,e);return r}toString(e,t,n){if(!e)return JSON.stringify(this);for(let e of this.items)if(!iR(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),sL(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}let sD={collection:"map",default:!0,nodeClass:sM,tag:"tag:yaml.org,2002:map",resolve:(e,t)=>(iJ(e)||t("Expected a mapping for this tag"),e),createNode:(e,t,n)=>sM.from(e,t,n)};class sF extends so{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(iP,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=sJ(e);return"number"==typeof t&&this.items.splice(t,1).length>0}get(e,t){let n=sJ(e);if("number"!=typeof n)return;let r=this.items[n];return!t&&iB(r)?r.value:r}has(e){let t=sJ(e);return"number"==typeof t&&t=0?t:null}let sR={collection:"seq",default:!0,nodeClass:sF,tag:"tag:yaml.org,2002:seq",resolve:(e,t)=>(i$(e)||t("Expected a sequence for this tag"),e),createNode:(e,t,n)=>sF.from(e,t,n)},sB={identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:(e,t,n,r)=>sw(e,t=Object.assign({actualString:!0},t),n,r)},s$={identify:e=>null==e,createNode:()=>new sn(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new sn(null),stringify:({source:e},t)=>"string"==typeof e&&s$.test.test(e)?e:t.options.nullStr},sU={identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new sn("t"===e[0]||"T"===e[0]),stringify:({source:e,value:t},n)=>e&&sU.test.test(e)&&t===("t"===e[0]||"T"===e[0])?e:t?n.options.trueStr:n.options.falseStr};function sz({format:e,minFractionDigits:t,tag:n,value:r}){if("bigint"==typeof r)return String(r);let i="number"==typeof r?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=JSON.stringify(r);if(!e&&t&&(!n||"tag:yaml.org,2002:float"===n)&&/^\d/.test(s)){let e=s.indexOf(".");e<0&&(e=s.length,s+=".");let n=t-(s.length-e-1);for(;n-- >0;)s+="0"}return s}let sq={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:sz},sV={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():sz(e)}},sX={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let t=new sn(parseFloat(e)),n=e.indexOf(".");return -1!==n&&"0"===e[e.length-1]&&(t.minFractionDigits=e.length-n-1),t},stringify:sz},sK=e=>"bigint"==typeof e||Number.isInteger(e),sH=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function sW(e,t,n){let{value:r}=e;return sK(r)&&r>=0?n+r.toString(t):sz(e)}let sG={identify:e=>sK(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>sH(e,2,8,n),stringify:e=>sW(e,8,"0o")},sY={identify:sK,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>sH(e,0,10,n),stringify:sz},sQ={identify:e=>sK(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>sH(e,2,16,n),stringify:e=>sW(e,16,"0x")},sZ=[sD,sR,sB,s$,sU,sG,sY,sQ,sq,sV,sX];function s0(e){return"bigint"==typeof e||Number.isInteger(e)}let s1=({value:e})=>JSON.stringify(e),s2=[sD,sR].concat([{identify:e=>"string"==typeof e,default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:s1},{identify:e=>null==e,createNode:()=>new sn(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:s1},{identify:e=>"boolean"==typeof e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:e=>"true"===e,stringify:s1},{identify:s0,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>s0(e)?e.toString():JSON.stringify(e)},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:s1}],{default:!0,tag:"",test:/^/,resolve:(e,t)=>(t(`Unresolved plain scalar ${JSON.stringify(e)}`),e)}),s3={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if("function"!=typeof atob)return t("This environment does not support reading binary tags; either Buffer or atob is required"),e;{let t=atob(e.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let e=0;e1&&t("Each pair must have its own sequence indicator");let e=r.items[0]||new sj(new sn(null));if(r.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${r.commentBefore} ${e.key.commentBefore}`:r.commentBefore),r.comment){let t=e.value??e.key;t.comment=t.comment?`${r.comment} ${t.comment}`:r.comment}r=e}e.items[n]=iR(r)?r:new sj(r)}}else t("Expected a sequence for this tag");return e}function s5(e,t,n){let{replacer:r}=n,i=new sF(e);i.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){let o,l;if("function"==typeof r&&(e=r.call(t,String(s++),e)),Array.isArray(e)){if(2===e.length)o=e[0],l=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`)}else if(e&&e instanceof Object){let t=Object.keys(e);if(1===t.length)l=e[o=t[0]];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else o=e;i.items.push(sN(o,l,n))}return i}let s6={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:s4,createNode:s5};class s9 extends sF{constructor(){super(),this.add=sM.prototype.add.bind(this),this.delete=sM.prototype.delete.bind(this),this.get=sM.prototype.get.bind(this),this.has=sM.prototype.has.bind(this),this.set=sM.prototype.set.bind(this),this.tag=s9.tag}toJSON(e,t){if(!t)return super.toJSON(e);let n=new Map;for(let e of(t?.onCreate&&t.onCreate(n),this.items)){let r,i;if(iR(e)?(r=i7(e.key,"",t),i=i7(e.value,r,t)):r=i7(e,"",t),n.has(r))throw Error("Ordered maps must not include duplicate keys");n.set(r,i)}return n}static from(e,t,n){let r=s5(e,t,n),i=new this;return i.items=r.items,i}}s9.tag="tag:yaml.org,2002:omap";let s7={collection:"seq",identify:e=>e instanceof Map,nodeClass:s9,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){let n=s4(e,t),r=[];for(let{key:e}of n.items)iB(e)&&(r.includes(e.value)?t(`Ordered maps must not include duplicate keys: ${e.value}`):r.push(e.value));return Object.assign(new s9,n)},createNode:(e,t,n)=>s9.from(e,t,n)};function s8({value:e,source:t},n){return t&&(e?oe:ot).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let oe={identify:e=>!0===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new sn(!0),stringify:s8},ot={identify:e=>!1===e,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new sn(!1),stringify:s8},on=e=>"bigint"==typeof e||Number.isInteger(e);function or(e,t,n,{intAsBigInt:r}){let i=e[0];if(("-"===i||"+"===i)&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`}let t=BigInt(e);return"-"===i?BigInt(-1)*t:t}let s=parseInt(e,n);return"-"===i?-1*s:s}function oi(e,t,n){let{value:r}=e;if(on(r)){let e=r.toString(t);return r<0?"-"+n+e.substr(1):n+e}return sz(e)}class os extends sM{constructor(e){super(e),this.tag=os.tag}add(e){let t;t=iR(e)?e:e&&"object"==typeof e&&"key"in e&&"value"in e&&null===e.value?new sj(e.key,null):new sj(e,null),sP(this.items,t.key)||this.items.push(t)}get(e,t){let n=sP(this.items,e);return!t&&iR(n)?iB(n.key)?n.key.value:n.key:n}set(e,t){if("boolean"!=typeof t)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let n=sP(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new sj(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error("Set items must all have null values")}static from(e,t,n){let{replacer:r}=n,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)"function"==typeof r&&(e=r.call(t,e,e)),i.items.push(sN(e,null,n));return i}}os.tag="tag:yaml.org,2002:set";let oo={collection:"map",identify:e=>e instanceof Set,nodeClass:os,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>os.from(e,t,n),resolve(e,t){if(iJ(e)){if(e.hasAllNullValues(!0))return Object.assign(new os,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function ol(e,t){let n=e[0],r="-"===n||"+"===n?e.substring(1):e,i=e=>t?BigInt(e):Number(e),s=r.replace(/_/g,"").split(":").reduce((e,t)=>e*i(60)+i(t),i(0));return"-"===n?i(-1)*s:s}function oa(e){let{value:t}=e,n=e=>e;if("bigint"==typeof t)n=e=>BigInt(e);else if(isNaN(t)||!isFinite(t))return sz(e);let r="";t<0&&(r="-",t*=n(-1));let i=n(60),s=[t%i];return t<60?s.unshift(0):(t=(t-s[0])/i,s.unshift(t%i),t>=60&&(t=(t-s[0])/i,s.unshift(t))),r+s.map(e=>String(e).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}let ou={identify:e=>"bigint"==typeof e||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>ol(e,n),stringify:oa},oc={identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>ol(e,!1),stringify:oa},op={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){let t=e.match(op.test);if(!t)throw Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,n,r,i,s,o,l]=t.map(Number),a=Date.UTC(n,r-1,i,s||0,o||0,l||0,t[7]?Number((t[7]+"00").substr(1,3)):0),u=t[8];if(u&&"Z"!==u){let e=ol(u,!1);30>Math.abs(e)&&(e*=60),a-=6e4*e}return new Date(a)},stringify:({value:e})=>e.toISOString().replace(/(T00:00:00)?\.000Z$/,"")},of=[sD,sR,sB,s$,oe,ot,{identify:on,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>or(e,2,2,n),stringify:e=>oi(e,2,"0b")},{identify:on,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>or(e,1,8,n),stringify:e=>oi(e,8,"0")},{identify:on,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>or(e,0,10,n),stringify:sz},{identify:on,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>or(e,2,16,n),stringify:e=>oi(e,16,"0x")},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>"nan"===e.slice(-3).toLowerCase()?NaN:"-"===e[0]?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:sz},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():sz(e)}},{identify:e=>"number"==typeof e,default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let t=new sn(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(-1!==n){let r=e.substring(n+1).replace(/_/g,"");"0"===r[r.length-1]&&(t.minFractionDigits=r.length)}return t},stringify:sz},s3,sT,s7,s6,oo,ou,oc,op],od=new Map([["core",sZ],["failsafe",[sD,sR,sB]],["json",s2],["yaml11",of],["yaml-1.1",of]]),oh={binary:s3,bool:sU,float:sX,floatExp:sV,floatNaN:sq,floatTime:oc,int:sY,intHex:sQ,intOct:sG,intTime:ou,map:sD,merge:sT,null:s$,omap:s7,pairs:s6,seq:sR,set:oo,timestamp:op},om={"tag:yaml.org,2002:binary":s3,"tag:yaml.org,2002:merge":sT,"tag:yaml.org,2002:omap":s7,"tag:yaml.org,2002:pairs":s6,"tag:yaml.org,2002:set":oo,"tag:yaml.org,2002:timestamp":op};function og(e,t,n){let r=od.get(t);if(r&&!e)return n&&!r.includes(sT)?r.concat(sT):r.slice();let i=r;if(!i){if(Array.isArray(e))i=[];else{let e=Array.from(od.keys()).filter(e=>"yaml11"!==e).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}}if(Array.isArray(e))for(let t of e)i=i.concat(t);else"function"==typeof e&&(i=e(i.slice()));return n&&(i=i.concat(sT)),i.reduce((e,t)=>{let n="string"==typeof t?oh[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(oh).map(e=>JSON.stringify(e)).join(", ");throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}let oy=(e,t)=>e.keyt.key?1:0;class ox{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:s,toStringDefaults:o}){this.compat=Array.isArray(e)?og(e,"compat"):e?og(null,e):null,this.name="string"==typeof i&&i||"core",this.knownTags=r?om:{},this.tags=og(t,this.name,n),this.toStringOptions=o??null,Object.defineProperty(this,ij,{value:sD}),Object.defineProperty(this,i_,{value:sB}),Object.defineProperty(this,iP,{value:sR}),this.sortMapEntries="function"==typeof s?s:!0===s?oy:null}clone(){let e=Object.create(ox.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}class ob{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,iM,{value:iN});let r=null;"function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:s}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(s=this.directives.yaml.version)):this.directives=new i3({version:s}),this.setSchema(s,n),this.contents=void 0===e?null:this.createNode(e,r,n)}clone(){let e=Object.create(ob.prototype,{[iM]:{value:iN}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=iz(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){ov(this.contents)&&this.contents.add(e)}addIn(e,t){ov(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){let n=i5(this);e.anchor=!t||n.has(t)?i6(t||"a",n):t}return new se(e.anchor)}createNode(e,t,n){let r;if("function"==typeof t)e=t.call({"":e},"",e),r=t;else if(Array.isArray(t)){let e=t.filter(e=>"number"==typeof e||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),r=t}else void 0===n&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:s,flow:o,keepUndefined:l,onTagObj:a,tag:u}=n??{},{onAnchor:c,setAnchors:p,sourceObjects:f}=function(e,t){let n=[],r=new Map,i=null;return{onAnchor:r=>{n.push(r),i||(i=i5(e));let s=i6(t,i);return i.add(s),s},setAnchors:()=>{for(let e of n){let t=r.get(e);if("object"==typeof t&&t.anchor&&(iB(t.node)||iU(t.node)))t.node.anchor=t.anchor;else{let t=Error("Failed to resolve repeated object (this should not happen)");throw t.source=e,t}}},sourceObjects:r}}(this,s||"a"),d={aliasDuplicateObjects:i??!0,keepUndefined:l??!1,onAnchor:c,onTagObj:a,replacer:r,schema:this.schema,sourceObjects:f},h=sr(e,u,d);return o&&iU(h)&&(h.flow=!0),p(),h}createPair(e,t,n={}){return new sj(this.createNode(e,null,n),this.createNode(t,null,n))}delete(e){return!!ov(this.contents)&&this.contents.delete(e)}deleteIn(e){return ss(e)?null!=this.contents&&(this.contents=null,!0):!!ov(this.contents)&&this.contents.deleteIn(e)}get(e,t){return iU(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return ss(e)?!t&&iB(this.contents)?this.contents.value:this.contents:iU(this.contents)?this.contents.getIn(e,t):void 0}has(e){return!!iU(this.contents)&&this.contents.has(e)}hasIn(e){return ss(e)?void 0!==this.contents:!!iU(this.contents)&&this.contents.hasIn(e)}set(e,t){null==this.contents?this.contents=si(this.schema,[e],t):ov(this.contents)&&this.contents.set(e,t)}setIn(e,t){ss(e)?this.contents=t:null==this.contents?this.contents=si(this.schema,Array.from(e),t):ov(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){let n;switch("number"==typeof e&&(e=String(e)),e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new i3({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new i3({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new ox(Object.assign(n,t));else throw Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:s}={}){let o={anchors:new Map,doc:this,keep:!e,mapAsMap:!0===n,mapKeyWarned:!1,maxAliasCount:"number"==typeof r?r:100},l=i7(this.contents,t??"",o);if("function"==typeof i)for(let{count:e,res:t}of o.anchors.values())i(t,e);return"function"==typeof s?i9(s,{"":l},"",l):l}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||0>=Number(e.indent))){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return function(e,t){let n=[],r=!0===t.directives;if(!1!==t.directives&&e.directives){let t=e.directives.toString(e);t?(n.push(t),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");let i=sk(e,t),{commentString:s}=i.options;if(e.commentBefore){1!==n.length&&n.unshift("");let t=s(e.commentBefore);n.unshift(sa(t,""))}let o=!1,l=null;if(e.contents){if(iz(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){let t=s(e.contents.commentBefore);n.push(sa(t,""))}i.forceBlockIndent=!!e.comment,l=e.contents.comment}let t=l?void 0:()=>o=!0,a=sE(e.contents,i,()=>l=null,t);l&&(a+=su(a,"",s(l))),("|"===a[0]||">"===a[0])&&"---"===n[n.length-1]?n[n.length-1]=`--- ${a}`:n.push(a)}else n.push(sE(e.contents,i));if(e.directives?.docEnd){if(e.comment){let t=s(e.comment);t.includes("\n")?(n.push("..."),n.push(sa(t,""))):n.push(`... ${t}`)}else n.push("...")}else{let t=e.comment;t&&o&&(t=t.replace(/^\n+/,"")),t&&((!o||l)&&""!==n[n.length-1]&&n.push(""),n.push(sa(s(t),"")))}return n.join("\n")+"\n"}(this,e)}}function ov(e){if(iU(e))return!0;throw Error("Expected a YAML collection as document contents")}class ow extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}}class ok extends ow{constructor(e,t,n){super("YAMLParseError",e,t,n)}}class oE extends ow{constructor(e,t,n){super("YAMLWarning",e,t,n)}}let oS=(e,t)=>n=>{if(-1===n.pos[0])return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let s=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&o.length>80){let e=Math.min(s-39,o.length-79);o="…"+o.substring(e),s-=e-1}if(o.length>80&&(o=o.substring(0,79)+"…"),r>1&&/^ *$/.test(o.substring(0,s))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+"…\n"),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t&&t.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-s)));let l=" ".repeat(s)+"^".repeat(e);n.message+=`: ${o} ${l} `}};function oT(e,{flow:t,indicator:n,next:r,offset:i,onError:s,parentIndent:o,startOnNewline:l}){let a=!1,u=l,c=l,p="",f="",d=!1,h=!1,m=null,g=null,y=null,x=null,b=null,v=null,w=null;for(let i of e)switch(h&&("space"!==i.type&&"newline"!==i.type&&"comma"!==i.type&&s(i.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),h=!1),m&&(u&&"comment"!==i.type&&"newline"!==i.type&&s(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),m=null),i.type){case"space":!t&&("doc-start"!==n||r?.type!=="flow-collection")&&i.source.includes(" ")&&(m=i),c=!0;break;case"comment":{c||s(i,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let e=i.source.substring(1)||" ";p?p+=f+e:p=e,f="",u=!1;break}case"newline":u?p?p+=i.source:v&&"seq-item-ind"===n||(a=!0):f+=i.source,u=!0,d=!0,(g||y)&&(x=i),c=!0;break;case"anchor":g&&s(i,"MULTIPLE_ANCHORS","A node can have at most one anchor"),i.source.endsWith(":")&&s(i.offset+i.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=i,null===w&&(w=i.offset),u=!1,c=!1,h=!0;break;case"tag":y&&s(i,"MULTIPLE_TAGS","A node can have at most one tag"),y=i,null===w&&(w=i.offset),u=!1,c=!1,h=!0;break;case n:(g||y)&&s(i,"BAD_PROP_ORDER",`Anchors and tags must be after the ${i.source} indicator`),v&&s(i,"UNEXPECTED_TOKEN",`Unexpected ${i.source} in ${t??"collection"}`),v=i,u="seq-item-ind"===n||"explicit-key-ind"===n,c=!1;break;case"comma":if(t){b&&s(i,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),b=i,u=!1,c=!1;break}default:s(i,"UNEXPECTED_TOKEN",`Unexpected ${i.type} token`),u=!1,c=!1}let k=e[e.length-1],E=k?k.offset+k.source.length:i;return h&&r&&"space"!==r.type&&"newline"!==r.type&&"comma"!==r.type&&("scalar"!==r.type||""!==r.source)&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m&&(u&&m.indent<=o||r?.type==="block-map"||r?.type==="block-seq")&&s(m,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:b,found:v,spaceBefore:a,comment:p,hasNewline:d,anchor:g,tag:y,newlineAfterProp:x,end:E,start:w??E}}function oI(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes("\n"))return!0;if(e.end){for(let t of e.end)if("newline"===t.type)return!0}return!1;case"flow-collection":for(let t of e.items){for(let e of t.start)if("newline"===e.type)return!0;if(t.sep){for(let e of t.sep)if("newline"===e.type)return!0}if(oI(t.key)||oI(t.value))return!0}return!1;default:return!0}}function oA(e,t,n){if(t?.type==="flow-collection"){let r=t.end[0];r.indent===e&&("]"===r.source||"}"===r.source)&&oI(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function oC(e,t,n){let{uniqueKeys:r}=e.options;if(!1===r)return!1;let i="function"==typeof r?r:(e,t)=>e===t||iB(e)&&iB(t)&&e.value===t.value;return t.some(e=>i(e.key,n))}let oO="All mapping items must start at the same column";function oN(e,t,n,r){let i="";if(e){let s=!1,o="";for(let l of e){let{source:e,type:a}=l;switch(a){case"space":s=!0;break;case"comment":{n&&!s&&r(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let t=e.substring(1)||" ";i?i+=o+t:i=t,o="";break}case"newline":i&&(o+=e),s=!0;break;default:r(l,"UNEXPECTED_TOKEN",`Unexpected ${a} at node end`)}t+=e.length}}return{comment:i,offset:t}}let oj="Block collections are not allowed within flow collections",oL=e=>e&&("block-map"===e.type||"block-seq"===e.type);function o_(e,t,n,r,i,s){let o="block-map"===n.type?function({composeNode:e,composeEmptyNode:t},n,r,i,s){let o=new(s?.nodeClass??sM)(n.schema);n.atRoot&&(n.atRoot=!1);let l=r.offset,a=null;for(let s of r.items){let{start:u,key:c,sep:p,value:f}=s,d=oT(u,{indicator:"explicit-key-ind",next:c??p?.[0],offset:l,onError:i,parentIndent:r.indent,startOnNewline:!0}),h=!d.found;if(h){if(c&&("block-seq"===c.type?i(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in c&&c.indent!==r.indent&&i(l,"BAD_INDENT",oO)),!d.anchor&&!d.tag&&!p){a=d.end,d.comment&&(o.comment?o.comment+="\n"+d.comment:o.comment=d.comment);continue}(d.newlineAfterProp||oI(c))&&i(c??u[u.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else d.found?.indent!==r.indent&&i(l,"BAD_INDENT",oO);n.atKey=!0;let m=d.end,g=c?e(n,c,d,i):t(n,m,u,null,d,i);n.schema.compat&&oA(r.indent,c,i),n.atKey=!1,oC(n,o.items,g)&&i(m,"DUPLICATE_KEY","Map keys must be unique");let y=oT(p??[],{indicator:"map-value-ind",next:f,offset:g.range[2],onError:i,parentIndent:r.indent,startOnNewline:!c||"block-scalar"===c.type});if(l=y.end,y.found){h&&(f?.type!=="block-map"||y.hasNewline||i(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&d.start0){let e=oN(d,h,n.options.strict,i);e.comment&&(a.comment?a.comment+="\n"+e.comment:a.comment=e.comment),a.range=[r.offset,h,e.offset]}else a.range=[r.offset,h,h];return a}(e,t,n,r,s),l=o.constructor;return"!"===i||i===l.tagName?o.tag=l.tagName:i&&(o.tag=i),o}function oP(e,t,n){let r=t.offset,i=function({offset:e,props:t},n,r){if("block-scalar-header"!==t[0].type)return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:i}=t[0],s=i[0],o=0,l="",a=-1;for(let t=1;t=0;--e){let t=o[e][1];if(""===t||"\r"===t)l=e;else break}if(0===l){let e="+"===i.chomp&&o.length>0?"\n".repeat(Math.max(1,o.length-1)):"",n=r+i.length;return t.source&&(n+=t.source.length),{value:e,type:s,comment:i.comment,range:[r,n,n]}}let a=t.indent+i.indent,u=t.offset+i.length,c=0;for(let t=0;ta&&(a=r.length);else{r.length=l;--e)o[e][0].length>a&&(l=e+1);let p="",f="",d=!1;for(let e=0;ea||" "===r[0]?(" "===f?f="\n":d||"\n"!==f||(f="\n\n"),p+=f+t.slice(a)+r,f="\n",d=!0):""===r?"\n"===f?p+="\n":f="\n":(p+=f+r,f=" ",d=!1)}switch(i.chomp){case"-":break;case"+":for(let e=l;en(s+e,t,r);switch(o){case"scalar":r=sn.PLAIN,i=function(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":n=`block scalar indicator ${e[0]}`;break;case"@":case"`":n=`reserved character ${e[0]}`}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),oD(e)}(l,u);break;case"single-quoted-scalar":r=sn.QUOTE_SINGLE,("'"!==l[l.length-1]||1===l.length)&&u(l.length,"MISSING_CHAR","Missing closing 'quote"),i=oD(l.slice(1,-1)).replace(/''/g,"'");break;case"double-quoted-scalar":r=sn.QUOTE_DOUBLE,i=function(e,t){let n="";for(let r=1;rt?e.slice(t,r+1):i)}else n+=i}}return('"'!==e[e.length-1]||1===e.length)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}(l,u);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[s,s+l.length,s+l.length]}}let c=s+l.length,p=oN(a,c,t,n);return{value:i,type:r,comment:p.comment,range:[s,c,p.offset]}}function oD(e){let t,n;try{t=RegExp("(.*?)(?r(n,"TAG_RESOLVE_FAILED",e)):null;i=e.options.stringKeys&&e.atKey?e.schema[i_]:c?function(e,t,n,r,i){if("!"===n)return e[i_];let s=[];for(let t of e.tags)if(!t.collection&&t.tag===n){if(!t.default||!t.test)return t;s.push(t)}for(let e of s)if(e.test?.test(t))return e;let o=e.knownTags[n];return o&&!o.collection?(e.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,"tag:yaml.org,2002:str"!==n),e[i_])}(e.schema,o,c,n,r):"scalar"===t.type?function({atKey:e,directives:t,schema:n},r,i,s){let o=n.tags.find(t=>(!0===t.default||e&&"key"===t.default)&&t.test?.test(r))||n[i_];if(n.compat){let e=n.compat.find(e=>e.default&&e.test?.test(r))??n[i_];if(o.tag!==e.tag){let n=t.tagString(o.tag),r=t.tagString(e.tag);s(i,"TAG_RESOLVE_FAILED",`Value may be parsed as either ${n} or ${r}`,!0)}}return o}(e,o,t,r):e.schema[i_];try{let l=i.resolve(o,e=>r(n??t,"TAG_RESOLVE_FAILED",e),e.options);s=iB(l)?l:new sn(l)}catch(e){r(n??t,"TAG_RESOLVE_FAILED",e instanceof Error?e.message:String(e)),s=new sn(o)}return s.range=u,s.source=o,l&&(s.type=l),c&&(s.tag=c),i.format&&(s.format=i.format),a&&(s.comment=a),s}let oR={composeNode:oB,composeEmptyNode:o$};function oB(e,t,n,r){let i;let s=e.atKey,{spaceBefore:o,comment:l,anchor:a,tag:u}=n,c=!0;switch(t.type){case"alias":i=function({options:e},{offset:t,source:n,end:r},i){let s=new se(n.substring(1));""===s.source&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=t+n.length,l=oN(r,o,e.strict,i);return s.range=[t,o,l.offset],l.comment&&(s.comment=l.comment),s}(e,t,r),(a||u)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":i=oJ(e,t,u,r),a&&(i.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":i=function(e,t,n,r,i){let s=r.tag,o=s?t.directives.tagName(s.source,e=>i(s,"TAG_RESOLVE_FAILED",e)):null;if("block-seq"===n.type){let{anchor:e,newlineAfterProp:t}=r,n=e&&s?e.offset>s.offset?e:s:e??s;n&&(!t||t.offsete.tag===o&&e.collection===l);if(!a){let r=t.schema.knownTags[o];if(!r||r.collection!==l)return r?.collection?i(s,"BAD_COLLECTION_TYPE",`${r.tag} used for ${l} collection, but expects ${r.collection}`,!0):i(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),o_(e,t,n,i,o);t.schema.tags.push(Object.assign({},r,{default:!1})),a=r}let u=o_(e,t,n,i,o,a),c=a.resolve?.(u,e=>i(s,"TAG_RESOLVE_FAILED",e),t.options)??u,p=iz(c)?c:new sn(c);return p.range=u.range,p.tag=o,a?.format&&(p.format=a.format),p}(oR,e,t,n,r),a&&(i.anchor=a.source.substring(1));break;default:{let s="error"===t.type?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",s),i=o$(e,t.offset,void 0,null,n,r),c=!1}}return a&&""===i.anchor&&r(a,"BAD_ALIAS","Anchor cannot be an empty string"),s&&e.options.stringKeys&&(!iB(i)||"string"!=typeof i.value||i.tag&&"tag:yaml.org,2002:str"!==i.tag)&&r(u??t,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(i.spaceBefore=!0),l&&("scalar"===t.type&&""===t.source?i.comment=l:i.commentBefore=l),e.options.keepSourceTokens&&c&&(i.srcToken=t),i}function o$(e,t,n,r,{spaceBefore:i,comment:s,anchor:o,tag:l,end:a},u){let c=oJ(e,{type:"scalar",offset:function(e,t,n){if(t){null===n&&(n=t.length);for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case"space":case"comment":case"newline":e-=n.source.length;continue}for(n=t[++r];n?.type==="space";)e+=n.source.length,n=t[++r];break}}return e}(t,n,r),indent:-1,source:""},l,u);return o&&(c.anchor=o.source.substring(1),""===c.anchor&&u(o,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(c.spaceBefore=!0),s&&(c.comment=s,c.range[2]=a),c}function oU(e){if("number"==typeof e)return[e,e+1];if(Array.isArray(e))return 2===e.length?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+("string"==typeof n?n.length:1)]}function oz(e){let t="",n=!1,r=!1;for(let i=0;i{let i=oU(e);r?this.warnings.push(new oE(i,t,n)):this.errors.push(new ok(i,t,n))},this.directives=new i3({version:e.version||"1.2"}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=oz(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment} ${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(iU(i)&&!i.flow&&i.items.length>0){let e=i.items[0];iR(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n} ${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n} ${e}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:oz(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(let t of e)yield*this.next(t);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,n,r)=>{let i=oU(e);i[0]+=t,this.onError(i,"BAD_DIRECTIVE",n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=function(e,t,{offset:n,start:r,value:i,end:s},o){let l=new ob(void 0,Object.assign({_directives:t},e)),a={atKey:!1,atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},u=oT(r,{indicator:"doc-start",next:i??s?.[0],offset:n,onError:o,parentIndent:0,startOnNewline:!0});u.found&&(l.directives.docStart=!0,i&&("block-map"===i.type||"block-seq"===i.type)&&!u.hasNewline&&o(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=i?oB(a,i,u,o):o$(a,u.end,r,null,u,o);let c=l.contents.range[2],p=oN(s,c,!1,o);return p.comment&&(l.comment=p.comment),l.range=[n,c,p.offset],l}(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new ok(oU(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){this.errors.push(new ok(oU(e),"UNEXPECTED_TOKEN","Unexpected doc-end without preceding document"));break}this.doc.directives.docEnd=!0;let t=oN(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e} ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new ok(oU(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=new ob(void 0,Object.assign({_directives:this.directives},this.options));this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),e.range=[0,t,t],this.decorate(e,!1),yield e}}}function oV(e,t=!0,n){if(e){let r=(e,t,r)=>{let i="number"==typeof e?e:Array.isArray(e)?e[0]:e.offset;if(n)n(i,t,r);else throw new ok([i,i+1],t,r)};switch(e.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return oM(e,t,r);case"block-scalar":return oP({options:{strict:t}},e,r)}}return null}function oX(e,t){let{implicitKey:n=!1,indent:r,inFlow:i=!1,offset:s=-1,type:o="PLAIN"}=t,l=sw({type:o,value:e},{implicitKey:n,indent:r>0?" ".repeat(r):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}}),a=t.end??[{type:"newline",offset:-1,indent:r,source:"\n"}];switch(l[0]){case"|":case">":{let e=l.indexOf("\n"),t=l.substring(0,e),n=l.substring(e+1)+"\n",i=[{type:"block-scalar-header",offset:s,indent:r,source:t}];return oH(i,a)||i.push({type:"newline",offset:-1,indent:r,source:"\n"}),{type:"block-scalar",offset:s,indent:r,props:i,source:n}}case'"':return{type:"double-quoted-scalar",offset:s,indent:r,source:l,end:a};case"'":return{type:"single-quoted-scalar",offset:s,indent:r,source:l,end:a};default:return{type:"scalar",offset:s,indent:r,source:l,end:a}}}function oK(e,t,n={}){let{afterKey:r=!1,implicitKey:i=!1,inFlow:s=!1,type:o}=n,l="indent"in e?e.indent:null;if(r&&"number"==typeof l&&(l+=2),!o)switch(e.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");o=">"===t.source[0]?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN"}let a=sw({type:o,value:t},{implicitKey:i||null===l,indent:null!==l&&l>0?" ".repeat(l):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(a[0]){case"|":case">":(function(e,t){let n=t.indexOf("\n"),r=t.substring(0,n),i=t.substring(n+1)+"\n";if("block-scalar"===e.type){let t=e.props[0];if("block-scalar-header"!==t.type)throw Error("Invalid block scalar header");t.source=r,e.source=i}else{let{offset:t}=e,n="indent"in e?e.indent:-1,s=[{type:"block-scalar-header",offset:t,indent:n,source:r}];for(let t of(oH(s,"end"in e?e.end:void 0)||s.push({type:"newline",offset:-1,indent:n,source:"\n"}),Object.keys(e)))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:"block-scalar",indent:n,props:s,source:i})}})(e,a);break;case'"':oW(e,a,"double-quoted-scalar");break;case"'":oW(e,a,"single-quoted-scalar");break;default:oW(e,a,"scalar")}}function oH(e,t){if(t)for(let n of t)switch(n.type){case"space":case"comment":e.push(n);break;case"newline":return e.push(n),!0}return!1}function oW(e,t,n){switch(e.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":e.type=n,e.source=t;break;case"block-scalar":{let r=e.props.slice(1),i=t.length;for(let t of("block-scalar-header"===e.props[0].type&&(i-=e.props[0].source.length),r))t.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case"block-map":case"block-seq":{let r={type:"newline",offset:e.offset+t.length,indent:e.indent,source:"\n"};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{let r="indent"in e?e.indent:-1,i="end"in e&&Array.isArray(e.end)?e.end.filter(e=>"space"===e.type||"comment"===e.type||"newline"===e.type):[];for(let t of Object.keys(e))"type"!==t&&"offset"!==t&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}let oG=e=>"type"in e?oY(e):oQ(e);function oY(e){switch(e.type){case"block-scalar":{let t="";for(let n of e.props)t+=oY(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(let n of e.items)t+=oQ(n);return t}case"flow-collection":{let t=e.start.source;for(let n of e.items)t+=oQ(n);for(let n of e.end)t+=n.source;return t}case"document":{let t=oQ(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function oQ({start:e,key:t,sep:n,value:r}){let i="";for(let t of e)i+=t.source;if(t&&(i+=oY(t)),n)for(let e of n)i+=e.source;return r&&(i+=oY(r)),i}let oZ=Symbol("break visit"),o0=Symbol("skip children"),o1=Symbol("remove item");function o2(e,t){"type"in e&&"document"===e.type&&(e={start:e.start,value:e.value}),function e(t,n,r){let i=r(n,t);if("symbol"==typeof i)return i;for(let s of["key","value"]){let o=n[s];if(o&&"items"in o){for(let n=0;n{let n=e;for(let[e,r]of t){let t=n?.[e];if(!t||!("items"in t))return;n=t.items[r]}return n},o2.parentCollection=(e,t)=>{let n=o2.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n?.[r];if(i&&"items"in i)return i;throw Error("Parent collection not found")};let o3="\uFEFF",o4="\x02",o5="\x18",o6="\x1f",o9=e=>!!e&&"items"in e,o7=e=>!!e&&("scalar"===e.type||"single-quoted-scalar"===e.type||"double-quoted-scalar"===e.type||"block-scalar"===e.type);function o8(e){switch(e){case o3:return"";case o4:return"";case o5:return"";case o6:return"";default:return JSON.stringify(e)}}function le(e){switch(e){case o3:return"byte-order-mark";case o4:return"doc-mode";case o5:return"flow-error-end";case o6:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case"\n":case"\r\n":return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function lt(e){switch(e){case void 0:case" ":case"\n":case"\r":case" ":return!0;default:return!1}}let ln=new Set("0123456789ABCDEFabcdef"),lr=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),li=new Set(",[]{}"),ls=new Set(" ,[]{}\n\r "),lo=e=>!e||ls.has(e);class ll{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if("string"!=typeof e)throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;" "===t||" "===t;)t=this.buffer[++e];return!t||"#"===t||"\n"===t||"\r"===t&&"\n"===this.buffer[e+1]}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;" "===t;)t=this.buffer[++n+e];if("\r"===t){let t=this.buffer[n+e+1];if("\n"===t||!t&&!this.atEnd)return e+n+1}return"\n"!==t&&!(n>=this.indentNext)&&(t||this.atEnd)?-1:e+n}if("-"===t||"."===t){let t=this.buffer.substr(e,3);if(("---"===t||"..."===t)&<(this.buffer[e+3]))return -1}return e}getLine(){let e=this.lineEndPos;return(("number"!=typeof e||-1!==e&&ethis.indentValue&&!lt(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if(("-"===e||"?"===e||":"===e)&<(t)){let e=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=e,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(null===e)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(lo),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t;let n=-1;do(e=yield*this.pushNewline())>0?(t=yield*this.pushSpaces(!1),this.indentValue=n=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let r=this.getLine();if(null===r)return this.setNext("flow");if((-1!==n&&n"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if("-"!==t)break}return yield*this.pushUntil(e=>lt(e)||"#"===e)}*parseBlockScalar(){let e,t=this.pos-1,n=0;t:for(let r=this.pos;e=this.buffer[r];++r)switch(e){case" ":n+=1;break;case"\n":t=r,n=0;break;case"\r":{let e=this.buffer[r+1];if(!e&&!this.atEnd)return this.setNext("block-scalar");if("\n"===e)break}default:break t}if(!e&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){-1===this.blockScalarIndent?this.indentNext=n:this.indentNext=this.blockScalarIndent+(0===this.indentNext?1:this.indentNext);do{let e=this.continueScalar(t+1);if(-1===e)break;t=this.buffer.indexOf("\n",e)}while(-1!==t);if(-1===t){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}let r=t+1;for(e=this.buffer[r];" "===e;)e=this.buffer[++r];if(" "===e){for(;" "===e||" "===e||"\r"===e||"\n"===e;)e=this.buffer[++r];t=r-1}else if(!this.blockScalarKeep)for(;;){let e=t-1,r=this.buffer[e];"\r"===r&&(r=this.buffer[--e]);let i=e;for(;" "===r;)r=this.buffer[--e];if("\n"===r&&e>=this.pos&&e+1+n>i)t=e;else break}return yield o6,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e;let t=this.flowLevel>0,n=this.pos-1,r=this.pos-1;for(;e=this.buffer[++r];)if(":"===e){let e=this.buffer[r+1];if(lt(e)||t&&li.has(e))break;n=r}else if(lt(e)){let i=this.buffer[r+1];if("\r"===e&&("\n"===i?(r+=1,e="\n",i=this.buffer[r+1]):n=r),"#"===i||t&&li.has(i))break;if("\n"===e){let e=this.continueScalar(r+1);if(-1===e)break;r=Math.max(r,e-2)}}else{if(t&&li.has(e))break;n=r}return e||this.atEnd?(yield o6,yield*this.pushToIndex(n+1,!0),t?"flow":"doc"):this.setNext("plain-scalar")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(lo))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let e=this.flowLevel>0,t=this.charAt(1);if(lt(t)||e&&li.has(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if("<"===this.charAt(1)){let e=this.pos+2,t=this.buffer[e];for(;!lt(t)&&">"!==t;)t=this.buffer[++e];return yield*this.pushToIndex(">"===t?e+1:e,!1)}{let e=this.pos+1,t=this.buffer[e];for(;t;)if(lr.has(t))t=this.buffer[++e];else if("%"===t&&ln.has(this.buffer[e+1])&&ln.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return"\n"===e?yield*this.pushCount(1):"\r"===e&&"\n"===this.charAt(1)?yield*this.pushCount(2):0}*pushSpaces(e){let t,n=this.pos-1;do t=this.buffer[++n];while(" "===t||e&&" "===t);let r=n-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=n),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class la{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t>1;this.lineStarts[r]=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break t}for(;e[++t]?.type==="space";);return e.splice(t,e.length)}function lh(e){if("flow-seq-start"===e.start.type)for(let t of e.items)!t.sep||t.value||lu(t.start,"explicit-key-ind")||lu(t.sep,"map-value-ind")||(t.key&&(t.value=t.key),delete t.key,lp(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class lm{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new ll,this.onNewLine=e}*parse(e,t=!1){for(let n of(this.onNewLine&&0===this.offset&&this.onNewLine(0),this.lexer.lex(e,t)))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=le(e);if(t){if("scalar"===t)this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&" "===e[0]&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}}else{let t=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:t,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if("doc-end"===this.type&&(!e||"doc-end"!==e.type)){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(t){if(0===this.stack.length)yield t;else{let e=this.peek(1);switch("block-scalar"===t.type?t.indent="indent"in e?e.indent:0:"flow-collection"===t.type&&"document"===e.type&&(t.indent=0),"flow-collection"===t.type&&lh(t),e.type){case"document":e.value=t;break;case"block-scalar":e.props.push(t);break;case"block-map":{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case"block-seq":{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case"flow-collection":{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if(("document"===e.type||"block-map"===e.type||"block-seq"===e.type)&&("block-map"===t.type||"block-seq"===t.type)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&-1===lc(n.start)&&(0===t.indent||n.start.every(e=>"comment"!==e.type||e.indent=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&"seq-item-ind"!==this.type,i=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;re.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(i=t.sep.splice(n[1]))}switch(this.type){case"anchor":case"tag":r||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":t.sep||t.explicitKey?r||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}):(t.start.push(this.sourceToken),t.explicitKey=!0),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey){if(t.sep){if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(lu(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(lp(t.key)&&!lu(t.sep,"newline")){let e=ld(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken)}else if(lu(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=ld(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}}else t.sep?t.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):lu(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:i,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let t=this.startBlockValue(e);if(t){n&&"block-seq"!==t.type&&e.items.push({start:i}),this.stack.push(t);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let n="end"in t.value?t.value.end:void 0,r=Array.isArray(n)?n[n.length-1]:void 0;r?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2],r=n?.value?.end;if(Array.isArray(r)){Array.prototype.push.apply(r,t.start),r.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||lu(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if("flow-error-end"===this.type){let e;do yield*this.pop(),e=this.peek(1);while(e&&"flow-collection"===e.type)}else if(0===e.end.length){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if("block-map"!==t.type||("map-value-ind"!==this.type||t.indent!==e.indent)&&("newline"!==this.type||t.items[t.items.length-1].sep)){if("map-value-ind"===this.type&&"flow-collection"!==t.type){let n=ld(lf(t));lh(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}else yield*this.pop(),yield*this.step()}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf("\n")+1;for(;0!==e;)this.onNewLine(this.offset+e),e=this.source.indexOf("\n",e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=ld(lf(e));return t.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=ld(lf(e));return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return"comment"===this.type&&!(this.indent<=t)&&e.every(e=>"newline"===e.type||"space"===e.type)}*documentEnd(e){"doc-mode"!==this.type&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],"newline"===this.type&&(yield*this.pop())}}}function lg(e){let t=!1!==e.prettyErrors;return{lineCounter:e.lineCounter||t&&new la||null,prettyErrors:t}}function ly(e,t={}){let{lineCounter:n,prettyErrors:r}=lg(t),i=new lm(n?.addNewLine),s=new oq(t),o=Array.from(s.compose(i.parse(e)));if(r&&n)for(let t of o)t.errors.forEach(oS(e,n)),t.warnings.forEach(oS(e,n));return o.length>0?o:Object.assign([],{empty:!0},s.streamInfo())}function lx(e,t={}){let{lineCounter:n,prettyErrors:r}=lg(t),i=new lm(n?.addNewLine),s=new oq(t),o=null;for(let t of s.compose(i.parse(e),!0,e.length))if(o){if("silent"!==o.options.logLevel){o.errors.push(new ok(t.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}}else o=t;return r&&n&&(o.errors.forEach(oS(e,n)),o.warnings.forEach(oS(e,n))),o}function lb(e,t,n){let r;"function"==typeof t?r=t:void 0===n&&t&&"object"==typeof t&&(n=t);let i=lx(e,n);if(!i)return null;if(i.warnings.forEach(e=>sS(i.options.logLevel,e)),i.errors.length>0){if("silent"!==i.options.logLevel)throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}function lv(e,t,n){let r=null;if("function"==typeof t||Array.isArray(t)?r=t:void 0===n&&t&&(n=t),"string"==typeof n&&(n=n.length),"number"==typeof n){let e=Math.round(n);n=e<1?void 0:e>8?{indent:8}:{indent:e}}if(void 0===e){let{keepUndefined:e}=n??t??{};if(!e)return}return iF(e)&&!r?e.toString(n):new ob(e,r,n).toString(n)}let lw=/^---(?:\r?\n|\r)(?:([\s\S]*?)(?:\r?\n|\r))?---(?:\r?\n|\r|$)/;var lk=n(35510);let lE=function(e){if(null==e)return lT;if("string"==typeof e)return lS(function(t){return t&&t.type===e});if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n0){for(;++llA(e,"mdxjsEsm")}async function lO(e){var t;let n,{scope:r={},mdxOptions:i={},parseFrontmatter:s=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=new I(e);s&&function(e,t){let n=t||{},r=n.strip,i=n.yaml||{},s=String(e),o=lw.exec(s);o?(e.data.matter=d.parse(o[1],i),r&&(s=s.slice(o[0].length),e.value=e.value&&"object"==typeof e.value?new TextEncoder().encode(s):s)):e.data.matter={}}(l,{strip:!0});try{n=await function(e,t){let{file:n,options:r}=function(e,t){let n=e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new I(e),{format:r,...i}=t||{};return{file:n,options:{format:"md"===r||"mdx"===r?r:n.extname&&(i.mdExtensions||N).includes(n.extname)?"md":"mdx",...i}}}(e,t);return(function(e){let t=e||{},n=-1;for(;++n on how to migrate"));let r=r8().use(rT);"md"!==t.format&&r.use(nw);let i=t.remarkRehypeOptions||{};return r.use(iT).use(t.remarkPlugins||[]).use(r2,{...i,allowDangerousHtml:!0,passThrough:[...i.passThrough||[],...iI]}).use(t.rehypePlugins||[]),"md"===t.format&&r.use(iv),r.use(tg,t).use(ih,t).use(iy,t),t.jsx||r.use(H,t).use(ip,t),r.use(Z).use(ef,t).use(t.recmaPlugins||[]),r})(r).process(n)}(l,function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=null!==(e=t.useDynamicImport)&&void 0!==e&&e,i=[...t.remarkPlugins||[],...r?[]:[lC]];return{...t,remarkPlugins:i,outputFormat:"function-body",providerImportSource:n?void 0:"@mdx-js/react",development:!1}}(i,o))}catch(e){throw function(e,t){var n,r;let i=null!==(n=null==e?void 0:e.position)&&void 0!==n?n:function(e){let t=e.match(/\d+:\d+(-\d+:\d+)/g);if(t){let[e,n]=t.slice(-1)[0].split("-")[0].split(":");return{start:{line:Number.parseInt(e,10),column:Number.parseInt(n,10)}}}}(null==e?void 0:e.message),s=i?(0,lk.gl)(t,{start:{line:i.start.line,column:null!==(r=i.start.column)&&void 0!==r?r:0}},{linesAbove:2,linesBelow:2}):"",o=Error("[next-mdx-remote] error compiling MDX:\n".concat(null==e?void 0:e.message,"\n").concat(s?"\n"+s+"\n":"","\nMore information: https://mdxjs.com/docs/troubleshooting-mdx"));return o.stack="",o}(e,String(l))}return{compiledSource:String(n),frontmatter:null!==(t=l.data.matter)&&void 0!==t?t:{},scope:r}}async function lN(e){let{source:t,options:n,components:r={}}=e,{compiledSource:i,frontmatter:s,scope:o}=await lO(t,n,!0),l=Object.assign({opts:m.jsxRuntime},{frontmatter:s},o),a=Object.keys(l),u=Object.values(l),c=Reflect.construct(Function,a.concat("".concat(i))),p=c.apply(c,u).default;return{content:h.createElement(p,{components:r}),frontmatter:s}}},4753:e=>{"use strict";e.exports=JSON.parse('{"id":"google-analytics","description":"Install a Google Analytics tag on your website","website":"https://analytics.google.com/analytics/web/","scripts":[{"url":"https://www.googletagmanager.com/gtag/js","params":["id"],"strategy":"worker","location":"head","action":"append"},{"code":"window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag(\'js\',new Date());gtag(\'config\',\'${args.id}\')","strategy":"worker","location":"head","action":"append"}]}')},31738:e=>{"use strict";e.exports=JSON.parse('{"id":"google-maps-embed","description":"Embed a Google Maps embed on your webpage","website":"https://developers.google.com/maps/documentation/embed/get-started","html":{"element":"iframe","attributes":{"loading":"lazy","src":{"url":"https://www.google.com/maps/embed/v1/place","slugParam":"mode","params":["key","q","center","zoom","maptype","language","region"]},"referrerpolicy":"no-referrer-when-downgrade","frameborder":"0","style":"border:0","allowfullscreen":true,"width":null,"height":null}}}')},49870:e=>{"use strict";e.exports=JSON.parse('{"id":"youtube-embed","description":"Embed a YouTube embed on your webpage.","website":"https://github.com/paulirish/lite-youtube-embed","html":{"element":"lite-youtube","attributes":{"videoid":null,"playlabel":null}},"stylesheets":["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],"scripts":[{"url":"https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js","strategy":"idle","location":"head","action":"append"}]}')}}]);