@sakura-ui/sakura-ui 0.5.5 → 0.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,75 +1,142 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("@sakura-ui/core"),Rt=require("react");var _t={exports:{}},et={};var Xn;function ss(){if(Xn)return et;Xn=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,s,u){var l=null;if(u!==void 0&&(l=""+u),s.key!==void 0&&(l=""+s.key),"key"in s){u={};for(var o in s)o!=="key"&&(u[o]=s[o])}else u=s;return s=u.ref,{$$typeof:t,type:r,key:l,ref:s!==void 0?s:null,props:u}}return et.Fragment=e,et.jsx=n,et.jsxs=n,et}var tt={};var Vn;function is(){return Vn||(Vn=1,process.env.NODE_ENV!=="production"&&(function(){function t(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===Ye?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case U:return"Fragment";case be:return"Profiler";case te:return"StrictMode";case K:return"Suspense";case ye:return"SuspenseList";case fe:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case G:return"Portal";case ne:return f.displayName||"Context";case ke:return(f._context.displayName||"Context")+".Consumer";case Q:var y=f.render;return f=f.displayName,f||(f=y.displayName||y.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case We:return y=f.displayName||null,y!==null?y:t(f.type)||"Memo";case M:y=f._payload,f=f._init;try{return t(f(y))}catch{}}return null}function e(f){return""+f}function n(f){try{e(f);var y=!1}catch{y=!0}if(y){y=console;var S=y.error,b=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return S.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",b),e(f)}}function r(f){if(f===U)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===M)return"<...>";try{var y=t(f);return y?"<"+y+">":"<...>"}catch{return"<...>"}}function s(){var f=Oe.A;return f===null?null:f.getOwner()}function u(){return Error("react-stack-top-frame")}function l(f){if(de.call(f,"key")){var y=Object.getOwnPropertyDescriptor(f,"key").get;if(y&&y.isReactWarning)return!1}return f.key!==void 0}function o(f,y){function S(){ht||(ht=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",y))}S.isReactWarning=!0,Object.defineProperty(f,"key",{get:S,configurable:!0})}function c(){var f=t(this.type);return dt[f]||(dt[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function h(f,y,S,b,$e,Xe){var $=S.ref;return f={$$typeof:x,type:f,key:y,props:S,_owner:b},($!==void 0?$:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:c}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:$e}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Xe}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function g(f,y,S,b,$e,Xe){var $=y.children;if($!==void 0)if(b)if(ft($)){for(b=0;b<$.length;b++)m($[b]);Object.freeze&&Object.freeze($)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m($);if(de.call(y,"key")){$=t(f);var De=Object.keys(y).filter(function(Pt){return Pt!=="key"});b=0<De.length?"{key: someKey, "+De.join(": ..., ")+": ...}":"{key: someKey}",Ze[$+b]||(De=0<De.length?"{"+De.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("@sakura-ui/core"),Rt=require("react");var _t={exports:{}},et={};var Xn;function is(){if(Xn)return et;Xn=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(r,s,o){var l=null;if(o!==void 0&&(l=""+o),s.key!==void 0&&(l=""+s.key),"key"in s){o={};for(var u in s)u!=="key"&&(o[u]=s[u])}else o=s;return s=o.ref,{$$typeof:t,type:r,key:l,ref:s!==void 0?s:null,props:o}}return et.Fragment=e,et.jsx=n,et.jsxs=n,et}var tt={};var Vn;function os(){return Vn||(Vn=1,process.env.NODE_ENV!=="production"&&(function(){function t(f){if(f==null)return null;if(typeof f=="function")return f.$$typeof===Ye?null:f.displayName||f.name||null;if(typeof f=="string")return f;switch(f){case U:return"Fragment";case be:return"Profiler";case te:return"StrictMode";case K:return"Suspense";case ye:return"SuspenseList";case fe:return"Activity"}if(typeof f=="object")switch(typeof f.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),f.$$typeof){case W:return"Portal";case ne:return f.displayName||"Context";case ke:return(f._context.displayName||"Context")+".Consumer";case Q:var y=f.render;return f=f.displayName,f||(f=y.displayName||y.name||"",f=f!==""?"ForwardRef("+f+")":"ForwardRef"),f;case Ge:return y=f.displayName||null,y!==null?y:t(f.type)||"Memo";case M:y=f._payload,f=f._init;try{return t(f(y))}catch{}}return null}function e(f){return""+f}function n(f){try{e(f);var y=!1}catch{y=!0}if(y){y=console;var S=y.error,b=typeof Symbol=="function"&&Symbol.toStringTag&&f[Symbol.toStringTag]||f.constructor.name||"Object";return S.call(y,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",b),e(f)}}function r(f){if(f===U)return"<>";if(typeof f=="object"&&f!==null&&f.$$typeof===M)return"<...>";try{var y=t(f);return y?"<"+y+">":"<...>"}catch{return"<...>"}}function s(){var f=Oe.A;return f===null?null:f.getOwner()}function o(){return Error("react-stack-top-frame")}function l(f){if(de.call(f,"key")){var y=Object.getOwnPropertyDescriptor(f,"key").get;if(y&&y.isReactWarning)return!1}return f.key!==void 0}function u(f,y){function S(){ht||(ht=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",y))}S.isReactWarning=!0,Object.defineProperty(f,"key",{get:S,configurable:!0})}function c(){var f=t(this.type);return dt[f]||(dt[f]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),f=this.props.ref,f!==void 0?f:null}function h(f,y,S,b,$e,Xe){var $=S.ref;return f={$$typeof:x,type:f,key:y,props:S,_owner:b},($!==void 0?$:null)!==null?Object.defineProperty(f,"ref",{enumerable:!1,get:c}):Object.defineProperty(f,"ref",{enumerable:!1,value:null}),f._store={},Object.defineProperty(f._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(f,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(f,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:$e}),Object.defineProperty(f,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Xe}),Object.freeze&&(Object.freeze(f.props),Object.freeze(f)),f}function g(f,y,S,b,$e,Xe){var $=y.children;if($!==void 0)if(b)if(ft($)){for(b=0;b<$.length;b++)m($[b]);Object.freeze&&Object.freeze($)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else m($);if(de.call(y,"key")){$=t(f);var De=Object.keys(y).filter(function(Pt){return Pt!=="key"});b=0<De.length?"{key: someKey, "+De.join(": ..., ")+": ...}":"{key: someKey}",Ze[$+b]||(De=0<De.length?"{"+De.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
2
2
  let props = %s;
3
3
  <%s {...props} />
4
4
  React keys must be passed directly to JSX without using spread:
5
5
  let props = %s;
6
- <%s key={someKey} {...props} />`,b,$,De,$),Ze[$+b]=!0)}if($=null,S!==void 0&&(n(S),$=""+S),l(y)&&(n(y.key),$=""+y.key),"key"in y){S={};for(var Ve in y)Ve!=="key"&&(S[Ve]=y[Ve])}else S=y;return $&&o(S,typeof f=="function"?f.displayName||f.name||"Unknown":f),h(f,$,S,s(),$e,Xe)}function m(f){k(f)?f._store&&(f._store.validated=1):typeof f=="object"&&f!==null&&f.$$typeof===M&&(f._payload.status==="fulfilled"?k(f._payload.value)&&f._payload.value._store&&(f._payload.value._store.validated=1):f._store&&(f._store.validated=1))}function k(f){return typeof f=="object"&&f!==null&&f.$$typeof===x}var L=Rt,x=Symbol.for("react.transitional.element"),G=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),ke=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),ye=Symbol.for("react.suspense_list"),We=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),Ye=Symbol.for("react.client.reference"),Oe=L.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de=Object.prototype.hasOwnProperty,ft=Array.isArray,oe=console.createTask?console.createTask:function(){return null};L={react_stack_bottom_frame:function(f){return f()}};var ht,dt={},Ce=L.react_stack_bottom_frame.bind(L,u)(),Le=oe(r(u)),Ze={};tt.Fragment=U,tt.jsx=function(f,y,S){var b=1e4>Oe.recentlyCreatedOwnerStacks++;return g(f,y,S,!1,b?Error("react-stack-top-frame"):Ce,b?oe(r(f)):Le)},tt.jsxs=function(f,y,S){var b=1e4>Oe.recentlyCreatedOwnerStacks++;return g(f,y,S,!0,b?Error("react-stack-top-frame"):Ce,b?oe(r(f)):Le)}})()),tt}var Qn;function us(){return Qn||(Qn=1,process.env.NODE_ENV==="production"?_t.exports=ss():_t.exports=is()),_t.exports}var ee=us();function pn(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ve=pn();function br(t){ve=t}var Re={exec:()=>null};function je(t){let e=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),s=e[r];return s||(s=t(r),e[r]=s),s}}function C(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(s,u)=>{let l=typeof u=="string"?u:u.source;return l=l.replace(H.caret,"$1"),n=n.replace(s,l),r},getRegex:()=>new RegExp(n,e)};return r}var os=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),H={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:je(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:je(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:je(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:je(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:je(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:je(t=>new RegExp(`^ {0,${t}}>`))},ls=/^(?:[ \t]*(?:\n|$))+/,as=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,cs=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ct=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ps=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,fn=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,kr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,yr=C(kr).replace(/bull/g,fn).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),fs=C(kr).replace(/bull/g,fn).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),hn=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,hs=/^[^\n]+/,dn=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ds=C(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",dn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ds=C(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,fn).getRegex(),$t="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Dn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,gs=C("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Dn).replace("tag",$t).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Cr=t=>C(hn).replace("hr",ct).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$t).getRegex(),ms=Cr(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Fs=Cr(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),As=C(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Fs).getRegex(),gn={blockquote:As,code:as,def:ds,fences:cs,heading:ps,hr:ct,html:gs,lheading:yr,list:Ds,newline:ls,paragraph:ms,table:Re,text:hs},Kn=C("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ct).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$t).getRegex(),Es={...gn,lheading:fs,table:Kn,paragraph:C(hn).replace("hr",ct).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Kn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$t).getRegex()},bs={...gn,html:C(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Dn).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Re,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:C(hn).replace("hr",ct).replace("heading",` *#{1,6} *[^
7
- ]`).replace("lheading",yr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ks=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ys=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,xr=/^( {2,}|\\)\n(?!\s*$)/,Cs=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,he=/[\p{P}\p{S}]/u,Ge=/[\s\p{P}\p{S}]/u,pt=/[^\s\p{P}\p{S}]/u,xs=C(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Ge).getRegex(),Ts=/[\p{Pi}\p{Ps}"']/u,Tr=/(?!~)[\p{P}\p{S}]/u,_s=/(?!~)[\s\p{P}\p{S}]/u,ws=/(?:[^\s\p{P}\p{S}]|~)/u,Ss=C(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",os?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),_r=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Rs=C(_r,"u").replace(/punct/g,he).getRegex(),Bs=C(_r,"u").replace(/punct/g,Tr).getRegex(),vs=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Os=C(vs,"u").replace(/openQuote/g,Ts).replace(/punct/g,he).getRegex(),wr="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ls=C(wr,"gu").replace(/notPunctSpace/g,pt).replace(/punctSpace/g,Ge).replace(/punct/g,he).getRegex(),$s=C(wr,"gu").replace(/notPunctSpace/g,ws).replace(/punctSpace/g,_s).replace(/punct/g,Tr).getRegex(),Ps="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Is=C(Ps,"gu").replace(/notPunctSpace/g,pt).replace(/punctSpace/g,Ge).replace(/punct/g,he).getRegex(),Ns=C("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,pt).replace(/punctSpace/g,Ge).replace(/punct/g,he).getRegex(),Ms="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",zs=C(Ms,"gu").replace(/notPunctSpace/g,pt).replace(/punctSpace/g,Ge).replace(/punct/g,he).getRegex(),Us=C(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,he).getRegex(),js="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Hs=C(js,"gu").replace(/notPunctSpace/g,pt).replace(/punctSpace/g,Ge).replace(/punct/g,he).getRegex(),qs=C(/\\(punct)/,"gu").replace(/punct/g,he).getRegex(),Gs=C(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Ws=C(Dn).replace("(?:-->|$)","-->").getRegex(),Ys=C("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Ws).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Bt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Zs=C(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Bt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Sr=C(/^!?\[(label)\]\[(ref)\]/).replace("label",Bt).replace("ref",dn).getRegex(),Rr=C(/^!?\[(ref)\](?:\[\])?/).replace("ref",dn).getRegex(),Xs=C("reflink|nolink(?!\\()","g").replace("reflink",Sr).replace("nolink",Rr).getRegex(),Jn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,mn={_backpedal:Re,anyPunctuation:qs,autolink:Gs,blockSkip:Ss,br:xr,code:ys,del:Re,delLDelim:Re,delRDelim:Re,emStrongLDelim:Rs,emStrongRDelimAst:Ls,emStrongRDelimUnd:Ns,escape:ks,link:Zs,nolink:Rr,punctuation:xs,reflink:Sr,reflinkSearch:Xs,tag:Ys,text:Cs,url:Re},Vs={...mn,emStrongLDelim:Os,emStrongRDelimAst:Is,emStrongRDelimUnd:zs,link:C(/^!?\[(label)\]\((.*?)\)/).replace("label",Bt).getRegex(),reflink:C(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Bt).getRegex()},un={...mn,emStrongRDelimAst:$s,emStrongLDelim:Bs,delLDelim:Us,delRDelim:Hs,url:C(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Jn).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:C(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Jn).getRegex()},Qs={...un,br:C(xr).replace("{2,}","*").getRegex(),text:C(un.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},wt={normal:gn,gfm:Es,pedantic:bs},nt={normal:mn,gfm:un,breaks:Qs,pedantic:Vs},Ks={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},er=t=>Ks[t];function pe(t,e){if(e){if(H.escapeTest.test(t))return t.replace(H.escapeReplace,er)}else if(H.escapeTestNoEncode.test(t))return t.replace(H.escapeReplaceNoEncode,er);return t}function tr(t){try{t=encodeURI(t).replace(H.percentDecode,"%")}catch{return null}return t}function nr(t,e){let n=t.replace(H.findPipe,(u,l,o)=>{let c=!1,h=l;for(;--h>=0&&o[h]==="\\";)c=!c;return c?"|":" |"}),r=n.split(H.splitPipe),s=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(H.slashPipe,"|");return r}function Ae(t,e,n){let r=t.length;if(r===0)return"";let s=0;for(;s<r&&t.charAt(r-s-1)===e;)s++;return t.slice(0,r-s)}function rr(t){let e=t.split(`
6
+ <%s key={someKey} {...props} />`,b,$,De,$),Ze[$+b]=!0)}if($=null,S!==void 0&&(n(S),$=""+S),l(y)&&(n(y.key),$=""+y.key),"key"in y){S={};for(var Ve in y)Ve!=="key"&&(S[Ve]=y[Ve])}else S=y;return $&&u(S,typeof f=="function"?f.displayName||f.name||"Unknown":f),h(f,$,S,s(),$e,Xe)}function m(f){k(f)?f._store&&(f._store.validated=1):typeof f=="object"&&f!==null&&f.$$typeof===M&&(f._payload.status==="fulfilled"?k(f._payload.value)&&f._payload.value._store&&(f._payload.value._store.validated=1):f._store&&(f._store.validated=1))}function k(f){return typeof f=="object"&&f!==null&&f.$$typeof===x}var L=Rt,x=Symbol.for("react.transitional.element"),W=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),be=Symbol.for("react.profiler"),ke=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),ye=Symbol.for("react.suspense_list"),Ge=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),fe=Symbol.for("react.activity"),Ye=Symbol.for("react.client.reference"),Oe=L.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de=Object.prototype.hasOwnProperty,ft=Array.isArray,ue=console.createTask?console.createTask:function(){return null};L={react_stack_bottom_frame:function(f){return f()}};var ht,dt={},Ce=L.react_stack_bottom_frame.bind(L,o)(),Le=ue(r(o)),Ze={};tt.Fragment=U,tt.jsx=function(f,y,S){var b=1e4>Oe.recentlyCreatedOwnerStacks++;return g(f,y,S,!1,b?Error("react-stack-top-frame"):Ce,b?ue(r(f)):Le)},tt.jsxs=function(f,y,S){var b=1e4>Oe.recentlyCreatedOwnerStacks++;return g(f,y,S,!0,b?Error("react-stack-top-frame"):Ce,b?ue(r(f)):Le)}})()),tt}var Qn;function us(){return Qn||(Qn=1,process.env.NODE_ENV==="production"?_t.exports=is():_t.exports=os()),_t.exports}var ee=us();function pn(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ve=pn();function kr(t){ve=t}var Re={exec:()=>null};function je(t){let e=[];return n=>{let r=Math.max(0,Math.min(3,n-1)),s=e[r];return s||(s=t(r),e[r]=s),s}}function C(t,e=""){let n=typeof t=="string"?t:t.source,r={replace:(s,o)=>{let l=typeof o=="string"?o:o.source;return l=l.replace(H.caret,"$1"),n=n.replace(s,l),r},getRegex:()=>new RegExp(n,e)};return r}var ls=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),H={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:je(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:je(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:je(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:je(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:je(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:je(t=>new RegExp(`^ {0,${t}}>`))},as=/^(?:[ \t]*(?:\n|$))+/,cs=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ps=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ct=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,fs=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,fn=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,yr=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Cr=C(yr).replace(/bull/g,fn).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),hs=C(yr).replace(/bull/g,fn).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),hn=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,ds=/^[^\n]+/,dn=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ds=C(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",dn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),gs=C(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,fn).getRegex(),$t="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Dn=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ms=C("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Dn).replace("tag",$t).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),xr=t=>C(hn).replace("hr",ct).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$t).getRegex(),Fs=xr(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),As=xr(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Es=C(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",As).getRegex(),gn={blockquote:Es,code:cs,def:Ds,fences:ps,heading:fs,hr:ct,html:ms,lheading:Cr,list:gs,newline:as,paragraph:Fs,table:Re,text:ds},Kn=C("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ct).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$t).getRegex(),bs={...gn,lheading:hs,table:Kn,paragraph:C(hn).replace("hr",ct).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Kn).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",$t).getRegex()},ks={...gn,html:C(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Dn).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Re,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:C(hn).replace("hr",ct).replace("heading",` *#{1,6} *[^
7
+ ]`).replace("lheading",Cr).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ys=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Cs=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Tr=/^( {2,}|\\)\n(?!\s*$)/,xs=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,he=/[\p{P}\p{S}]/u,We=/[\s\p{P}\p{S}]/u,pt=/[^\s\p{P}\p{S}]/u,Ts=C(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,We).getRegex(),_s=/[\p{Pi}\p{Ps}"']/u,_r=/(?!~)[\p{P}\p{S}]/u,ws=/(?!~)[\s\p{P}\p{S}]/u,Ss=/(?:[^\s\p{P}\p{S}]|~)/u,Rs=C(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",ls?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),wr=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Bs=C(wr,"u").replace(/punct/g,he).getRegex(),vs=C(wr,"u").replace(/punct/g,_r).getRegex(),Os=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Ls=C(Os,"u").replace(/openQuote/g,_s).replace(/punct/g,he).getRegex(),Sr="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",$s=C(Sr,"gu").replace(/notPunctSpace/g,pt).replace(/punctSpace/g,We).replace(/punct/g,he).getRegex(),Ps=C(Sr,"gu").replace(/notPunctSpace/g,Ss).replace(/punctSpace/g,ws).replace(/punct/g,_r).getRegex(),Is="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Ns=C(Is,"gu").replace(/notPunctSpace/g,pt).replace(/punctSpace/g,We).replace(/punct/g,he).getRegex(),Ms=C("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,pt).replace(/punctSpace/g,We).replace(/punct/g,he).getRegex(),zs="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Us=C(zs,"gu").replace(/notPunctSpace/g,pt).replace(/punctSpace/g,We).replace(/punct/g,he).getRegex(),js=C(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,he).getRegex(),Hs="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",qs=C(Hs,"gu").replace(/notPunctSpace/g,pt).replace(/punctSpace/g,We).replace(/punct/g,he).getRegex(),Ws=C(/\\(punct)/,"gu").replace(/punct/g,he).getRegex(),Gs=C(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Ys=C(Dn).replace("(?:-->|$)","-->").getRegex(),Zs=C("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Ys).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Bt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Xs=C(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Bt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Rr=C(/^!?\[(label)\]\[(ref)\]/).replace("label",Bt).replace("ref",dn).getRegex(),Br=C(/^!?\[(ref)\](?:\[\])?/).replace("ref",dn).getRegex(),Vs=C("reflink|nolink(?!\\()","g").replace("reflink",Rr).replace("nolink",Br).getRegex(),Jn=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,mn={_backpedal:Re,anyPunctuation:Ws,autolink:Gs,blockSkip:Rs,br:Tr,code:Cs,del:Re,delLDelim:Re,delRDelim:Re,emStrongLDelim:Bs,emStrongRDelimAst:$s,emStrongRDelimUnd:Ms,escape:ys,link:Xs,nolink:Br,punctuation:Ts,reflink:Rr,reflinkSearch:Vs,tag:Zs,text:xs,url:Re},Qs={...mn,emStrongLDelim:Ls,emStrongRDelimAst:Ns,emStrongRDelimUnd:Us,link:C(/^!?\[(label)\]\((.*?)\)/).replace("label",Bt).getRegex(),reflink:C(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Bt).getRegex()},on={...mn,emStrongRDelimAst:Ps,emStrongLDelim:vs,delLDelim:js,delRDelim:qs,url:C(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Jn).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:C(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Jn).getRegex()},Ks={...on,br:C(Tr).replace("{2,}","*").getRegex(),text:C(on.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},wt={normal:gn,gfm:bs,pedantic:ks},nt={normal:mn,gfm:on,breaks:Ks,pedantic:Qs},Js={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},er=t=>Js[t];function pe(t,e){if(e){if(H.escapeTest.test(t))return t.replace(H.escapeReplace,er)}else if(H.escapeTestNoEncode.test(t))return t.replace(H.escapeReplaceNoEncode,er);return t}function tr(t){try{t=encodeURI(t).replace(H.percentDecode,"%")}catch{return null}return t}function nr(t,e){let n=t.replace(H.findPipe,(o,l,u)=>{let c=!1,h=l;for(;--h>=0&&u[h]==="\\";)c=!c;return c?"|":" |"}),r=n.split(H.splitPipe),s=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(H.slashPipe,"|");return r}function Ae(t,e,n){let r=t.length;if(r===0)return"";let s=0;for(;s<r&&t.charAt(r-s-1)===e;)s++;return t.slice(0,r-s)}function rr(t){let e=t.split(`
8
8
  `),n=e.length-1;for(;n>=0&&H.blankLine.test(e[n]);)n--;return e.length-n<=2?t:e.slice(0,n+1).join(`
9
- `)}function Js(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}function ei(t,e=0){let n=e,r="";for(let s of t)if(s===" "){let u=4-n%4;r+=" ".repeat(u),n+=u}else r+=s,n++;return r}function sr(t,e,n,r,s){let u=e.href,l=e.title||null,o=t[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:u,title:l,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,c}function ti(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let s=r[1];return e.split(`
10
- `).map(u=>{let l=u.match(n.other.beginningSpace);if(l===null)return u;let[o]=l;return o.length>=s.length?u.slice(s.length):u}).join(`
11
- `)}var vt=class{options;rules;lexer;constructor(t){this.options=t||ve}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=this.options.pedantic?e[0]:rr(e[0]),r=n.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n,codeBlockStyle:"indented",text:r}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let n=e[0],r=ti(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){let r=Ae(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:Ae(e[0],`
9
+ `)}function ei(t,e){if(t.indexOf(e[1])===-1)return-1;let n=0;for(let r=0;r<t.length;r++)if(t[r]==="\\")r++;else if(t[r]===e[0])n++;else if(t[r]===e[1]&&(n--,n<0))return r;return n>0?-2:-1}function ti(t,e=0){let n=e,r="";for(let s of t)if(s===" "){let o=4-n%4;r+=" ".repeat(o),n+=o}else r+=s,n++;return r}function sr(t,e,n,r,s){let o=e.href,l=e.title||null,u=t[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let c={type:t[0].charAt(0)==="!"?"image":"link",raw:n,href:o,title:l,text:u,tokens:r.inlineTokens(u)};return r.state.inLink=!1,c}function ni(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(r===null)return e;let s=r[1];return e.split(`
10
+ `).map(o=>{let l=o.match(n.other.beginningSpace);if(l===null)return o;let[u]=l;return u.length>=s.length?o.slice(s.length):o}).join(`
11
+ `)}var vt=class{options;rules;lexer;constructor(t){this.options=t||ve}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let n=this.options.pedantic?e[0]:rr(e[0]),r=n.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n,codeBlockStyle:"indented",text:r}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let n=e[0],r=ni(n,e[3]||"",this.rules);return{type:"code",raw:n,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:r}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let n=e[2].trim();if(this.rules.other.endingHash.test(n)){let r=Ae(n,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(n=r.trim())}return{type:"heading",raw:Ae(e[0],`
12
12
  `),depth:e[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:Ae(e[0],`
13
13
  `)}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let n=Ae(e[0],`
14
14
  `).split(`
15
- `),r="",s="",u=[];for(;n.length>0;){let l=!1,o=[],c;for(c=0;c<n.length;c++)if(this.rules.other.blockquoteStart.test(n[c]))o.push(n[c]),l=!0;else if(!l)o.push(n[c]);else break;n=n.slice(c);let h=o.join(`
15
+ `),r="",s="",o=[];for(;n.length>0;){let l=!1,u=[],c;for(c=0;c<n.length;c++)if(this.rules.other.blockquoteStart.test(n[c]))u.push(n[c]),l=!0;else if(!l)u.push(n[c]);else break;n=n.slice(c);let h=u.join(`
16
16
  `),g=h.replace(this.rules.other.blockquoteSetextReplace,`
17
17
  $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
18
18
  ${h}`:h,s=s?`${s}
19
- ${g}`:g;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(g,u,!0),this.lexer.state.top=m,n.length===0)break;let k=u.at(-1);if(k?.type==="code")break;if(k?.type==="blockquote"){let L=k,x=n.join(`
20
- `),G=L.raw+`
21
- `+x.replace(this.rules.other.blockquoteSetextReplace2,""),U=this.blockquote(G);u[u.length-1]=U,r=`${r}
19
+ ${g}`:g;let m=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(g,o,!0),this.lexer.state.top=m,n.length===0)break;let k=o.at(-1);if(k?.type==="code")break;if(k?.type==="blockquote"){let L=k,x=n.join(`
20
+ `),W=L.raw+`
21
+ `+x.replace(this.rules.other.blockquoteSetextReplace2,""),U=this.blockquote(W);o[o.length-1]=U,r=`${r}
22
22
  ${x}`,s=s.substring(0,s.length-L.text.length)+U.text;break}else if(k?.type==="list"){let L=k,x=L.raw+`
23
23
  `+n.join(`
24
- `),G=this.list(x);u[u.length-1]=G,r=r.substring(0,r.length-k.raw.length)+G.raw,s=s.substring(0,s.length-L.raw.length)+G.raw,n=x.substring(u.at(-1).raw.length).split(`
25
- `);continue}}return{type:"blockquote",raw:r,tokens:u,text:s}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),r=n.length>1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let u=this.rules.other.listItemRegex(n),l=!1;for(;t;){let c=!1,h="",g="";if(!(e=u.exec(t))||this.rules.block.hr.test(t))break;h=e[0],t=t.substring(h.length);let m=ei(e[2].split(`
24
+ `),W=this.list(x);o[o.length-1]=W,r=r.substring(0,r.length-k.raw.length)+W.raw,s=s.substring(0,s.length-L.raw.length)+W.raw,n=x.substring(o.at(-1).raw.length).split(`
25
+ `);continue}}return{type:"blockquote",raw:r,tokens:o,text:s}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),r=n.length>1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let o=this.rules.other.listItemRegex(n),l=!1;for(;t;){let c=!1,h="",g="";if(!(e=o.exec(t))||this.rules.block.hr.test(t))break;h=e[0],t=t.substring(h.length);let m=ti(e[2].split(`
26
26
  `,1)[0],e[1].length),k=t.split(`
27
27
  `,1)[0],L=!m.trim(),x=0;if(this.options.pedantic?(x=2,g=m.trimStart()):L?x=e[1].length+1:(x=m.search(this.rules.other.nonSpaceChar),x=x>4?1:x,g=m.slice(x),x+=e[1].length),L&&this.rules.other.blankLine.test(k)&&(h+=k+`
28
- `,t=t.substring(k.length+1),c=!0),!c){let G=this.rules.other.nextBulletRegex(x),U=this.rules.other.hrRegex(x),te=this.rules.other.fencesBeginRegex(x),be=this.rules.other.headingBeginRegex(x),ke=this.rules.other.htmlBeginRegex(x),ne=this.rules.other.blockquoteBeginRegex(x);for(;t;){let Q=t.split(`
29
- `,1)[0],K;if(k=Q,this.options.pedantic?(k=k.replace(this.rules.other.listReplaceNesting," "),K=k):K=k.replace(this.rules.other.tabCharGlobal," "),te.test(k)||be.test(k)||ke.test(k)||ne.test(k)||G.test(k)||U.test(k))break;if(K.search(this.rules.other.nonSpaceChar)>=x||!k.trim())g+=`
28
+ `,t=t.substring(k.length+1),c=!0),!c){let W=this.rules.other.nextBulletRegex(x),U=this.rules.other.hrRegex(x),te=this.rules.other.fencesBeginRegex(x),be=this.rules.other.headingBeginRegex(x),ke=this.rules.other.htmlBeginRegex(x),ne=this.rules.other.blockquoteBeginRegex(x);for(;t;){let Q=t.split(`
29
+ `,1)[0],K;if(k=Q,this.options.pedantic?(k=k.replace(this.rules.other.listReplaceNesting," "),K=k):K=k.replace(this.rules.other.tabCharGlobal," "),te.test(k)||be.test(k)||ke.test(k)||ne.test(k)||W.test(k)||U.test(k))break;if(K.search(this.rules.other.nonSpaceChar)>=x||!k.trim())g+=`
30
30
  `+K.slice(x);else{if(L||m.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||te.test(m)||be.test(m)||U.test(m))break;g+=`
31
31
  `+k}L=!k.trim(),h+=Q+`
32
- `,t=t.substring(Q.length+1),m=K.slice(x)}}s.loose||(l?s.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(l=!0)),s.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(g),loose:!1,text:g,tokens:[]}),s.raw+=h}let o=s.items.at(-1);if(o)o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let c of s.items)if(this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]),!s.loose){let h=c.tokens.filter(m=>m.type==="space"),g=h.length>0&&h.some(m=>this.rules.other.anyLine.test(m.raw));s.loose=g}for(let c of s.items){let h=c.tokens[0];if(c.task&&(h?.type==="text"||h?.type==="paragraph")){c.text=c.text.replace(this.rules.other.listReplaceTask,""),h.raw=h.raw.replace(this.rules.other.listReplaceTask,""),h.text=h.text.replace(this.rules.other.listReplaceTask,"");for(let m=this.lexer.inlineQueue.length-1;m>=0;m--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[m].src)){this.lexer.inlineQueue[m].src=this.lexer.inlineQueue[m].src.replace(this.rules.other.listReplaceTask,"");break}let g=this.rules.other.listTaskCheckbox.exec(c.raw);if(g){let m={type:"checkbox",raw:g[0]+" ",checked:g[0]!=="[ ]"};c.checked=m.checked,s.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=m.raw+c.tokens[0].raw,c.tokens[0].text=m.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(m)):c.tokens.unshift({type:"paragraph",raw:m.raw,text:m.raw,tokens:[m]}):c.tokens.unshift(m)}}else c.task&&(c.task=!1)}if(s.loose)for(let c of s.items){c.loose=!0;for(let h of c.tokens)h.type==="text"&&(h.type="paragraph")}return s}}html(t){let e=this.rules.block.html.exec(t);if(e){let n=rr(e[0]);return{type:"html",block:!0,raw:n,pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:n}}}def(t){let e=this.rules.block.def.exec(t);if(e){let n=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:Ae(e[0],`
32
+ `,t=t.substring(Q.length+1),m=K.slice(x)}}s.loose||(l?s.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(l=!0)),s.items.push({type:"list_item",raw:h,task:!!this.options.gfm&&this.rules.other.listIsTask.test(g),loose:!1,text:g,tokens:[]}),s.raw+=h}let u=s.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let c of s.items)if(this.lexer.state.top=!1,c.tokens=this.lexer.blockTokens(c.text,[]),!s.loose){let h=c.tokens.filter(m=>m.type==="space"),g=h.length>0&&h.some(m=>this.rules.other.anyLine.test(m.raw));s.loose=g}for(let c of s.items){let h=c.tokens[0];if(c.task&&(h?.type==="text"||h?.type==="paragraph")){c.text=c.text.replace(this.rules.other.listReplaceTask,""),h.raw=h.raw.replace(this.rules.other.listReplaceTask,""),h.text=h.text.replace(this.rules.other.listReplaceTask,"");for(let m=this.lexer.inlineQueue.length-1;m>=0;m--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[m].src)){this.lexer.inlineQueue[m].src=this.lexer.inlineQueue[m].src.replace(this.rules.other.listReplaceTask,"");break}let g=this.rules.other.listTaskCheckbox.exec(c.raw);if(g){let m={type:"checkbox",raw:g[0]+" ",checked:g[0]!=="[ ]"};c.checked=m.checked,s.loose?c.tokens[0]&&["paragraph","text"].includes(c.tokens[0].type)&&"tokens"in c.tokens[0]&&c.tokens[0].tokens?(c.tokens[0].raw=m.raw+c.tokens[0].raw,c.tokens[0].text=m.raw+c.tokens[0].text,c.tokens[0].tokens.unshift(m)):c.tokens.unshift({type:"paragraph",raw:m.raw,text:m.raw,tokens:[m]}):c.tokens.unshift(m)}}else c.task&&(c.task=!1)}if(s.loose)for(let c of s.items){c.loose=!0;for(let h of c.tokens)h.type==="text"&&(h.type="paragraph")}return s}}html(t){let e=this.rules.block.html.exec(t);if(e){let n=rr(e[0]);return{type:"html",block:!0,raw:n,pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:n}}}def(t){let e=this.rules.block.def.exec(t);if(e){let n=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:n,raw:Ae(e[0],`
33
33
  `),href:r,title:s}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=nr(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
34
- `):[],u={type:"table",raw:Ae(e[0],`
35
- `),header:[],align:[],rows:[]};if(n.length===r.length){for(let l of r)this.rules.other.tableAlignRight.test(l)?u.align.push("right"):this.rules.other.tableAlignCenter.test(l)?u.align.push("center"):this.rules.other.tableAlignLeft.test(l)?u.align.push("left"):u.align.push(null);for(let l=0;l<n.length;l++)u.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:u.align[l]});for(let l of s)u.rows.push(nr(l,u.header.length).map((o,c)=>({text:o,tokens:this.lexer.inline(o),header:!1,align:u.align[c]})));return u}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e){let n=e[1].trim();return{type:"heading",raw:Ae(e[0],`
34
+ `):[],o={type:"table",raw:Ae(e[0],`
35
+ `),header:[],align:[],rows:[]};if(n.length===r.length){for(let l of r)this.rules.other.tableAlignRight.test(l)?o.align.push("right"):this.rules.other.tableAlignCenter.test(l)?o.align.push("center"):this.rules.other.tableAlignLeft.test(l)?o.align.push("left"):o.align.push(null);for(let l=0;l<n.length;l++)o.header.push({text:n[l],tokens:this.lexer.inline(n[l]),header:!0,align:o.align[l]});for(let l of s)o.rows.push(nr(l,o.header.length).map((u,c)=>({text:u,tokens:this.lexer.inline(u),header:!1,align:o.align[c]})));return o}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e){let n=e[1].trim();return{type:"heading",raw:Ae(e[0],`
36
36
  `),depth:e[2].charAt(0)==="="?1:2,text:n,tokens:this.lexer.inline(n)}}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let n=e[1].charAt(e[1].length-1)===`
37
- `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let u=Ae(n.slice(0,-1),"\\");if((n.length-u.length)%2===0)return}else{let u=Js(e[2],"()");if(u===-2)return;if(u>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+u;e[2]=e[2].substring(0,u),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let r=e[2],s="";if(this.options.pedantic){let u=this.rules.other.pedanticHrefTitle.exec(r);u&&(r=u[1],s=u[3])}else s=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),sr(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=e[r.toLowerCase()];if(!s){let u=n[0].charAt(0);return{type:"text",raw:u,text:u}}return sr(n,s,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let s=[...r[0]].length-1,u,l,o=s,c=0,h=r[0][0],g=n===h,m=h==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,e=e.slice(-1*t.length+s);(r=m.exec(e))!==null;){if(u=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!u)continue;if(l=[...u].length,r[3]||r[4]){o+=l;continue}else if(r[5]||r[6]){if(s%3&&!((s+l)%3)){c+=l;continue}if(g)break}if(o-=l,o>0)continue;l=Math.min(l,l+o+c);let k=[...r[0]][0].length,L=t.slice(0,s+r.index+k+l);if(Math.min(s,l)%2){let G=L.slice(1,-1);return{type:"em",raw:L,text:G,tokens:this.lexer.inlineTokens(G)}}let x=L.slice(2,-2);return{type:"strong",raw:L,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&s&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,n=""){let r=this.rules.inline.delLDelim.exec(t);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let s=[...r[0]].length-1,u,l,o=s,c=this.rules.inline.delRDelim;for(c.lastIndex=0,e=e.slice(-1*t.length+s);(r=c.exec(e))!==null;){if(u=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!u||(l=[...u].length,l!==s))continue;if(r[3]||r[4]){o+=l;continue}if(o-=l,o>0)continue;l=Math.min(l,l+o);let h=[...r[0]][0].length,g=t.slice(0,s+r.index+h+l),m=g.slice(s,-s);return{type:"del",raw:g,text:m,tokens:this.lexer.inlineTokens(m)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let n,r;return e[2]==="@"?(n=e[1],r="mailto:"+n):(n=e[1],r=n),{type:"link",raw:e[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let n,r;if(e[2]==="@")n=e[0],r="mailto:"+n;else{let s;do s=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(s!==e[0]);n=e[0],e[1]==="www."?r="http://"+e[0]:r=e[0]}return{type:"link",raw:e[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},ie=class on{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ve,this.options.tokenizer=this.options.tokenizer||new vt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:H,block:wt.normal,inline:nt.normal};this.options.pedantic?(n.block=wt.pedantic,n.inline=nt.pedantic):this.options.gfm&&(n.block=wt.gfm,this.options.breaks?n.inline=nt.breaks:n.inline=nt.gfm),this.tokenizer.rules=n}static get rules(){return{block:wt,inline:nt}}static lex(e,n){return new on(n).lex(e)}static lexInline(e,n){return new on(n).inlineTokens(e)}lex(e){e=e.replace(H.carriageReturn,`
38
- `),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(H.tabCharGlobal," ").replace(H.spaceLine,""));let s=1/0;for(;e;){if(e.length<s)s=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let u;if(this.options.extensions?.block?.some(o=>(u=o.call({lexer:this},e,n))?(e=e.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.space(e)){e=e.substring(u.raw.length);let o=n.at(-1);u.raw.length===1&&o!==void 0?o.raw+=`
39
- `:n.push(u);continue}if(u=this.tokenizer.code(e)){e=e.substring(u.raw.length);let o=n.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
37
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let n=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let o=Ae(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{let o=ei(e[2],"()");if(o===-2)return;if(o>-1){let l=(e[0].indexOf("!")===0?5:4)+e[1].length+o;e[2]=e[2].substring(0,o),e[0]=e[0].substring(0,l).trim(),e[3]=""}}let r=e[2],s="";if(this.options.pedantic){let o=this.rules.other.pedanticHrefTitle.exec(r);o&&(r=o[1],s=o[3])}else s=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?r=r.slice(1):r=r.slice(1,-1)),sr(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let r=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=e[r.toLowerCase()];if(!s){let o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return sr(n,s,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!(!r||!r[1]&&!r[2]&&!r[3]&&!r[4]||r[4]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[3])||!n||this.rules.inline.punctuation.exec(n))){let s=[...r[0]].length-1,o,l,u=s,c=0,h=r[0][0],g=n===h,m=h==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,e=e.slice(-1*t.length+s);(r=m.exec(e))!==null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(l=[...o].length,r[3]||r[4]){u+=l;continue}else if(r[5]||r[6]){if(s%3&&!((s+l)%3)){c+=l;continue}if(g)break}if(u-=l,u>0)continue;l=Math.min(l,l+u+c);let k=[...r[0]][0].length,L=t.slice(0,s+r.index+k+l);if(Math.min(s,l)%2){let W=L.slice(1,-1);return{type:"em",raw:L,text:W,tokens:this.lexer.inlineTokens(W)}}let x=L.slice(2,-2);return{type:"strong",raw:L,text:x,tokens:this.lexer.inlineTokens(x)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let n=e[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(n),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return r&&s&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:e[0],text:n}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t,e,n=""){let r=this.rules.inline.delLDelim.exec(t);if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let s=[...r[0]].length-1,o,l,u=s,c=this.rules.inline.delRDelim;for(c.lastIndex=0,e=e.slice(-1*t.length+s);(r=c.exec(e))!==null;){if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o||(l=[...o].length,l!==s))continue;if(r[3]||r[4]){u+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u);let h=[...r[0]][0].length,g=t.slice(0,s+r.index+h+l),m=g.slice(s,-s);return{type:"del",raw:g,text:m,tokens:this.lexer.inlineTokens(m)}}}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let n,r;return e[2]==="@"?(n=e[1],r="mailto:"+n):(n=e[1],r=n),{type:"link",raw:e[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let n,r;if(e[2]==="@")n=e[0],r="mailto:"+n;else{let s;do s=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])?.[0]??"";while(s!==e[0]);n=e[0],e[1]==="www."?r="http://"+e[0]:r=e[0]}return{type:"link",raw:e[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e){let n=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:n}}}},ie=class un{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ve,this.options.tokenizer=this.options.tokenizer||new vt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let n={other:H,block:wt.normal,inline:nt.normal};this.options.pedantic?(n.block=wt.pedantic,n.inline=nt.pedantic):this.options.gfm&&(n.block=wt.gfm,this.options.breaks?n.inline=nt.breaks:n.inline=nt.gfm),this.tokenizer.rules=n}static get rules(){return{block:wt,inline:nt}}static lex(e,n){return new un(n).lex(e)}static lexInline(e,n){return new un(n).inlineTokens(e)}lex(e){e=e.replace(H.carriageReturn,`
38
+ `),this.blockTokens(e,this.tokens);for(let n=0;n<this.inlineQueue.length;n++){let r=this.inlineQueue[n];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,n=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(H.tabCharGlobal," ").replace(H.spaceLine,""));let s=1/0;for(;e;){if(e.length<s)s=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}let o;if(this.options.extensions?.block?.some(u=>(o=u.call({lexer:this},e,n))?(e=e.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.space(e)){e=e.substring(o.raw.length);let u=n.at(-1);o.raw.length===1&&u!==void 0?u.raw+=`
39
+ `:n.push(o);continue}if(o=this.tokenizer.code(e)){e=e.substring(o.raw.length);let u=n.at(-1);u?.type==="paragraph"||u?.type==="text"?(u.raw+=(u.raw.endsWith(`
40
40
  `)?"":`
41
- `)+u.raw,o.text+=`
42
- `+u.text,this.inlineQueue.at(-1).src=o.text):n.push(u);continue}if(u=this.tokenizer.fences(e)){e=e.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.heading(e)){e=e.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.hr(e)){e=e.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.blockquote(e)){e=e.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.list(e)){e=e.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.html(e)){e=e.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.def(e)){e=e.substring(u.raw.length);let o=n.at(-1);o?.type==="paragraph"||o?.type==="text"?(o.raw+=(o.raw.endsWith(`
41
+ `)+o.raw,u.text+=`
42
+ `+o.text,this.inlineQueue.at(-1).src=u.text):n.push(o);continue}if(o=this.tokenizer.fences(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.heading(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.hr(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.blockquote(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.list(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.html(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.def(e)){e=e.substring(o.raw.length);let u=n.at(-1);u?.type==="paragraph"||u?.type==="text"?(u.raw+=(u.raw.endsWith(`
43
43
  `)?"":`
44
- `)+u.raw,o.text+=`
45
- `+u.raw,this.inlineQueue.at(-1).src=o.text):this.tokens.links[u.tag]||(this.tokens.links[u.tag]={href:u.href,title:u.title},n.push(u));continue}if(u=this.tokenizer.table(e)){e=e.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.lheading(e)){e=e.substring(u.raw.length),n.push(u);continue}let l=e;if(this.options.extensions?.startBlock){let o=1/0,c=e.slice(1),h;this.options.extensions.startBlock.forEach(g=>{h=g.call({lexer:this},c),typeof h=="number"&&h>=0&&(o=Math.min(o,h))}),o<1/0&&o>=0&&(l=e.substring(0,o+1))}if(this.state.top&&(u=this.tokenizer.paragraph(l))){let o=n.at(-1);r&&o?.type==="paragraph"?(o.raw+=(o.raw.endsWith(`
44
+ `)+o.raw,u.text+=`
45
+ `+o.raw,this.inlineQueue.at(-1).src=u.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title},n.push(o));continue}if(o=this.tokenizer.table(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.lheading(e)){e=e.substring(o.raw.length),n.push(o);continue}let l=e;if(this.options.extensions?.startBlock){let u=1/0,c=e.slice(1),h;this.options.extensions.startBlock.forEach(g=>{h=g.call({lexer:this},c),typeof h=="number"&&h>=0&&(u=Math.min(u,h))}),u<1/0&&u>=0&&(l=e.substring(0,u+1))}if(this.state.top&&(o=this.tokenizer.paragraph(l))){let u=n.at(-1);r&&u?.type==="paragraph"?(u.raw+=(u.raw.endsWith(`
46
46
  `)?"":`
47
- `)+u.raw,o.text+=`
48
- `+u.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):n.push(u),r=l.length!==e.length,e=e.substring(u.raw.length);continue}if(u=this.tokenizer.text(e)){e=e.substring(u.raw.length);let o=n.at(-1);o?.type==="text"?(o.raw+=(o.raw.endsWith(`
47
+ `)+o.raw,u.text+=`
48
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):n.push(o),r=l.length!==e.length,e=e.substring(o.raw.length);continue}if(o=this.tokenizer.text(e)){e=e.substring(o.raw.length);let u=n.at(-1);u?.type==="text"?(u.raw+=(u.raw.endsWith(`
49
49
  `)?"":`
50
- `)+u.raw,o.text+=`
51
- `+u.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=o.text):n.push(u);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){this.tokenizer.lexer=this;let r=e;if(this.tokens.links){let o=Object.keys(this.tokens.links);o.length>0&&(r=r.replace(this.tokenizer.rules.inline.reflinkSearch,c=>o.includes(c.slice(c.lastIndexOf("[")+1,-1))?"["+"a".repeat(c.length-2)+"]":c))}r=r.replace(this.tokenizer.rules.inline.anyPunctuation,o=>"+".repeat(o.length)),r=r.replace(this.tokenizer.rules.inline.blockSkip,(o,c,h)=>{let g=h?h.length:0;return o.slice(0,g)+"["+"a".repeat(o.length-g-2)+"]"}),r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let s=!1,u="",l=1/0;for(;e;){if(e.length<l)l=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}s||(u=""),s=!1;let o;if(this.options.extensions?.inline?.some(h=>(o=h.call({lexer:this},e,n))?(e=e.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.escape(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.tag(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.link(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(o.raw.length);let h=n.at(-1);o.type==="text"&&h?.type==="text"?(h.raw+=o.raw,h.text+=o.text):n.push(o);continue}if(o=this.tokenizer.emStrong(e,r,u)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.codespan(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.br(e)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.del(e,r,u)){e=e.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.autolink(e)){e=e.substring(o.raw.length),n.push(o);continue}if(!this.state.inLink&&(o=this.tokenizer.url(e))){e=e.substring(o.raw.length),n.push(o);continue}let c=e;if(this.options.extensions?.startInline){let h=1/0,g=e.slice(1),m;this.options.extensions.startInline.forEach(k=>{m=k.call({lexer:this},g),typeof m=="number"&&m>=0&&(h=Math.min(h,m))}),h<1/0&&h>=0&&(c=e.substring(0,h+1))}if(o=this.tokenizer.inlineText(c)){e=e.substring(o.raw.length),o.raw.slice(-1)!=="_"&&(u=o.raw.slice(-1)),s=!0;let h=n.at(-1);h?.type==="text"?(h.raw+=o.raw,h.text+=o.text):n.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return n}infiniteLoopError(e){let n="Infinite loop on byte: "+e;if(this.options.silent)console.error(n);else throw new Error(n)}},Ot=class{options;parser;constructor(t){this.options=t||ve}space(t){return""}code({text:t,lang:e,escaped:n}){let r=(e||"").match(H.notSpaceStart)?.[0],s=t.replace(H.endingNewline,"")+`
50
+ `)+o.raw,u.text+=`
51
+ `+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=u.text):n.push(o);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){this.tokenizer.lexer=this;let r=e;if(this.tokens.links){let u=Object.keys(this.tokens.links);u.length>0&&(r=r.replace(this.tokenizer.rules.inline.reflinkSearch,c=>u.includes(c.slice(c.lastIndexOf("[")+1,-1))?"["+"a".repeat(c.length-2)+"]":c))}r=r.replace(this.tokenizer.rules.inline.anyPunctuation,u=>"+".repeat(u.length)),r=r.replace(this.tokenizer.rules.inline.blockSkip,(u,c,h)=>{let g=h?h.length:0;return u.slice(0,g)+"["+"a".repeat(u.length-g-2)+"]"}),r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let s=!1,o="",l=1/0;for(;e;){if(e.length<l)l=e.length;else{this.infiniteLoopError(e.charCodeAt(0));break}s||(o=""),s=!1;let u;if(this.options.extensions?.inline?.some(h=>(u=h.call({lexer:this},e,n))?(e=e.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.escape(e)){e=e.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.tag(e)){e=e.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.link(e)){e=e.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(u.raw.length);let h=n.at(-1);u.type==="text"&&h?.type==="text"?(h.raw+=u.raw,h.text+=u.text):n.push(u);continue}if(u=this.tokenizer.emStrong(e,r,o)){e=e.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.codespan(e)){e=e.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.br(e)){e=e.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.del(e,r,o)){e=e.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.autolink(e)){e=e.substring(u.raw.length),n.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(e))){e=e.substring(u.raw.length),n.push(u);continue}let c=e;if(this.options.extensions?.startInline){let h=1/0,g=e.slice(1),m;this.options.extensions.startInline.forEach(k=>{m=k.call({lexer:this},g),typeof m=="number"&&m>=0&&(h=Math.min(h,m))}),h<1/0&&h>=0&&(c=e.substring(0,h+1))}if(u=this.tokenizer.inlineText(c)){e=e.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(o=u.raw.slice(-1)),s=!0;let h=n.at(-1);h?.type==="text"?(h.raw+=u.raw,h.text+=u.text):n.push(u);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return n}infiniteLoopError(e){let n="Infinite loop on byte: "+e;if(this.options.silent)console.error(n);else throw new Error(n)}},Ot=class{options;parser;constructor(t){this.options=t||ve}space(t){return""}code({text:t,lang:e,escaped:n}){let r=(e||"").match(H.notSpaceStart)?.[0],s=t.replace(H.endingNewline,"")+`
52
52
  `;return r?'<pre><code class="language-'+pe(r)+'">'+(n?s:pe(s,!0))+`</code></pre>
53
53
  `:"<pre><code>"+(n?s:pe(s,!0))+`</code></pre>
54
54
  `}blockquote({tokens:t}){return`<blockquote>
55
55
  ${this.parser.parse(t)}</blockquote>
56
56
  `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>
57
57
  `}hr(t){return`<hr>
58
- `}list(t){let e=t.ordered,n=t.start,r="";for(let l=0;l<t.items.length;l++){let o=t.items[l];r+=this.listitem(o)}let s=e?"ol":"ul",u=e&&n!==1?' start="'+n+'"':"";return"<"+s+u+`>
58
+ `}list(t){let e=t.ordered,n=t.start,r="";for(let l=0;l<t.items.length;l++){let u=t.items[l];r+=this.listitem(u)}let s=e?"ol":"ul",o=e&&n!==1?' start="'+n+'"':"";return"<"+s+o+`>
59
59
  `+r+"</"+s+`>
60
60
  `}listitem(t){return`<li>${this.parser.parse(t.tokens)}</li>
61
61
  `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
62
- `}table(t){let e="",n="";for(let s=0;s<t.header.length;s++)n+=this.tablecell(t.header[s]);e+=this.tablerow({text:n});let r="";for(let s=0;s<t.rows.length;s++){let u=t.rows[s];n="";for(let l=0;l<u.length;l++)n+=this.tablecell(u[l]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
62
+ `}table(t){let e="",n="";for(let s=0;s<t.header.length;s++)n+=this.tablecell(t.header[s]);e+=this.tablerow({text:n});let r="";for(let s=0;s<t.rows.length;s++){let o=t.rows[s];n="";for(let l=0;l<o.length;l++)n+=this.tablecell(o[l]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
63
63
  <thead>
64
64
  `+e+`</thead>
65
65
  `+r+`</table>
66
66
  `}tablerow({text:t}){return`<tr>
67
67
  ${t}</tr>
68
68
  `}tablecell(t){let e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>
69
- `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${pe(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let r=this.parser.parseInline(n),s=tr(t);if(s===null)return r;t=s;let u='<a href="'+t+'"';return e&&(u+=' title="'+pe(e)+'"'),u+=">"+r+"</a>",u}image({href:t,title:e,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let s=tr(t);if(s===null)return pe(n);t=s;let u=`<img src="${t}" alt="${pe(n)}"`;return e&&(u+=` title="${pe(e)}"`),u+=">",u}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:pe(t.text)}},Fn=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},ue=class ln{options;renderer;textRenderer;constructor(e){this.options=e||ve,this.options.renderer=this.options.renderer||new Ot,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Fn}static parse(e,n){return new ln(n).parse(e)}static parseInline(e,n){return new ln(n).parseInline(e)}parse(e){this.renderer.parser=this;let n="";for(let r=0;r<e.length;r++){let s=e[r];if(this.options.extensions?.renderers?.[s.type]){let l=s,o=this.options.extensions.renderers[l.type].call({parser:this},l);if(o!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(l.type)){n+=o||"";continue}}let u=s;switch(u.type){case"space":{n+=this.renderer.space(u);break}case"hr":{n+=this.renderer.hr(u);break}case"heading":{n+=this.renderer.heading(u);break}case"code":{n+=this.renderer.code(u);break}case"table":{n+=this.renderer.table(u);break}case"blockquote":{n+=this.renderer.blockquote(u);break}case"list":{n+=this.renderer.list(u);break}case"checkbox":{n+=this.renderer.checkbox(u);break}case"html":{n+=this.renderer.html(u);break}case"def":{n+=this.renderer.def(u);break}case"paragraph":{n+=this.renderer.paragraph(u);break}case"text":{n+=this.renderer.text(u);break}default:{let l='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(e,n=this.renderer){this.renderer.parser=this;let r="";for(let s=0;s<e.length;s++){let u=e[s];if(this.options.extensions?.renderers?.[u.type]){let o=this.options.extensions.renderers[u.type].call({parser:this},u);if(o!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(u.type)){r+=o||"";continue}}let l=u;switch(l.type){case"escape":{r+=n.text(l);break}case"html":{r+=n.html(l);break}case"link":{r+=n.link(l);break}case"image":{r+=n.image(l);break}case"checkbox":{r+=n.checkbox(l);break}case"strong":{r+=n.strong(l);break}case"em":{r+=n.em(l);break}case"codespan":{r+=n.codespan(l);break}case"br":{r+=n.br(l);break}case"del":{r+=n.del(l);break}case"text":{r+=n.text(l);break}default:{let o='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}},ot=class{options;block;constructor(t){this.options=t||ve}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(t=this.block){return t?ie.lex:ie.lexInline}provideParser(t=this.block){return t?ue.parse:ue.parseInline}},Br=class{defaults=pn();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=ue;Renderer=Ot;TextRenderer=Fn;Lexer=ie;Tokenizer=vt;Hooks=ot;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let r of t)switch(n=n.concat(e.call(this,r)),r.type){case"table":{let s=r;for(let u of s.header)n=n.concat(this.walkTokens(u.tokens,e));for(let u of s.rows)for(let l of u)n=n.concat(this.walkTokens(l.tokens,e));break}case"list":{let s=r;n=n.concat(this.walkTokens(s.items,e));break}default:{let s=r;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(u=>{let l=s[u].flat(1/0);n=n.concat(this.walkTokens(l,e))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let u=e.renderers[s.name];u?e.renderers[s.name]=function(...l){let o=s.renderer.apply(this,l);return o===!1&&(o=u.apply(this,l)),o}:e.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let u=e[s.level];u?u.unshift(s.tokenizer):e[s.level]=[s.tokenizer],s.start&&(s.level==="block"?e.startBlock?e.startBlock.push(s.start):e.startBlock=[s.start]:s.level==="inline"&&(e.startInline?e.startInline.push(s.start):e.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(e.childTokens[s.name]=s.childTokens)}),r.extensions=e),n.renderer){let s=this.defaults.renderer||new Ot(this.defaults);for(let u in n.renderer){if(!(u in s))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;let l=u,o=n.renderer[l],c=s[l];s[l]=(...h)=>{let g=o.apply(s,h);return g===!1&&(g=c.apply(s,h)),g||""}}r.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new vt(this.defaults);for(let u in n.tokenizer){if(!(u in s))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let l=u,o=n.tokenizer[l],c=s[l];s[l]=(...h)=>{let g=o.apply(s,h);return g===!1&&(g=c.apply(s,h)),g}}r.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new ot;for(let u in n.hooks){if(!(u in s))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;let l=u,o=n.hooks[l],c=s[l];ot.passThroughHooks.has(u)?s[l]=h=>{if(this.defaults.async&&ot.passThroughHooksRespectAsync.has(u))return(async()=>{let m=await o.call(s,h);return c.call(s,m)})();let g=o.call(s,h);return c.call(s,g)}:s[l]=(...h)=>{if(this.defaults.async)return(async()=>{let m=await o.apply(s,h);return m===!1&&(m=await c.apply(s,h)),m})();let g=o.apply(s,h);return g===!1&&(g=c.apply(s,h)),g}}r.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,u=n.walkTokens;r.walkTokens=function(l){let o=[];return o.push(u.call(this,l)),s&&(o=o.concat(s.call(this,l))),o}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return ie.lex(t,e??this.defaults)}parser(t,e){return ue.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let r={...n},s={...this.defaults,...r},u=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&r.async===!1)return u(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return u(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let l=s.hooks?await s.hooks.preprocess(e):e,o=await(s.hooks?await s.hooks.provideLexer(t):t?ie.lex:ie.lexInline)(l,s),c=s.hooks?await s.hooks.processAllTokens(o):o;s.walkTokens&&await Promise.all(this.walkTokens(c,s.walkTokens));let h=await(s.hooks?await s.hooks.provideParser(t):t?ue.parse:ue.parseInline)(c,s);return s.hooks?await s.hooks.postprocess(h):h})().catch(u);try{s.hooks&&(e=s.hooks.preprocess(e));let l=(s.hooks?s.hooks.provideLexer(t):t?ie.lex:ie.lexInline)(e,s);s.hooks&&(l=s.hooks.processAllTokens(l)),s.walkTokens&&this.walkTokens(l,s.walkTokens);let o=(s.hooks?s.hooks.provideParser(t):t?ue.parse:ue.parseInline)(l,s);return s.hooks&&(o=s.hooks.postprocess(o)),o}catch(l){return u(l)}}}onError(t,e){return n=>{if(n.message+=`
70
- Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error occurred:</p><pre>"+pe(n.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(n);throw n}}},Be=new Br;function _(t,e){return Be.parse(t,e)}_.options=_.setOptions=function(t){return Be.setOptions(t),_.defaults=Be.defaults,br(_.defaults),_};_.getDefaults=pn;_.defaults=ve;function ni(...t){return Be.use(...t),_.defaults=Be.defaults,br(_.defaults),_}_.use=ni;_.walkTokens=function(t,e){return Be.walkTokens(t,e)};_.parseInline=Be.parseInline;_.Parser=ue;_.parser=ue.parse;_.Renderer=Ot;_.TextRenderer=Fn;_.Lexer=ie;_.lexer=ie.lex;_.Tokenizer=vt;_.Hooks=ot;_.parse=_;_.options;_.setOptions;_.walkTokens;_.parseInline;ue.parse;ie.lex;const ri=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,si=Object.hasOwnProperty;class ii{constructor(){this.occurrences,this.reset()}slug(e,n){const r=this;let s=ui(e,n===!0);const u=s;for(;si.call(r.occurrences,s);)r.occurrences[u]++,s=u+"-"+r.occurrences[u];return r.occurrences[s]=0,s}reset(){this.occurrences=Object.create(null)}}function ui(t,e){return typeof t!="string"?"":(e||(t=t.toLowerCase()),t.replace(ri,"").replace(/ /g,"-"))}const oi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},li=t=>String(t).replace(/[&<>"']/g,e=>oi[e]??e),ai=t=>Array.from(t).filter(e=>{const n=e.codePointAt(0)??0;return n>31&&n!==127}).join(""),at=t=>{if(t==null||t==="")return;const e=ai(String(t)).trim();if(!/^(?:javascript|vbscript|file):/i.test(e)&&!/^data:/i.test(e))return e},ci=new Set(["alt"]),pi=t=>Object.entries(t).filter(([e,n])=>n!=null&&n!==!1&&(n!==""||ci.has(e))).map(([e,n])=>n===!0?` ${e}`:` ${e}="${li(n)}"`).join(""),O=(...t)=>t.filter(Boolean).join(" ").split(/\s+/).filter(Boolean).join(" "),fi={h1:A.styles.headingStyle.h1,h2:A.styles.headingStyle.h2,h3:A.styles.headingStyle.h3,h4:A.styles.headingStyle.h4,h5:A.styles.headingStyle.h5,h6:A.styles.headingStyle.h6,ul:A.styles.ulStyle,ol:A.styles.olStyle,pre:A.styles.preStyle,code:A.styles.codeStyle,table:A.styles.tableBorderStyle,caption:A.styles.captionStyle,th:O(A.styles.thStyle,A.styles.tableBorderStyle),tr:A.styles.tableBorderStyle,td:O(A.styles.tdStyle,A.styles.tableBorderStyle),a:A.styles.linkStyle},hi=t=>t.hasAttribute("data-styled"),di=t=>Array.from(new Set(["noopener","noreferrer",...(t??"").split(/\s+/).filter(Boolean)])).join(" "),Di=(t,e)=>{const n=O(t.getAttribute("class")??"",e);n&&t.setAttribute("class",n)},gi=new Set(["h1","h2","h3","h4","h5","h6"]),mi=(t,e)=>{if(t.querySelector("[data-new-tab]"))return;const n=e.createElement("span");n.setAttribute("aria-hidden","true"),n.setAttribute("data-new-tab","true"),n.setAttribute("class",O(A.styles.iconSizeStyle[16],A.styles.iconStyle,"ml-0.5")),n.textContent="open_in_new";const r=e.createElement("span");r.setAttribute("class","sr-only"),r.textContent="Opens in new tab",t.append(n,r)},Fi=t=>Math.min(6,Math.max(1,t)),Ai=(t,e,n)=>{const{shiftHeading:r,tocMaxDepth:s}=n,u=new ii,l=[];if(r!==0)for(const o of Array.from(t.querySelectorAll("h1,h2,h3,h4,h5,h6"))){const c=Number(o.tagName[1]),h=e.createElement(`h${Fi(c+r)}`);for(const g of Array.from(o.attributes))h.setAttribute(g.name,g.value);h.innerHTML=o.innerHTML,o.replaceWith(h)}for(const o of Array.from(t.querySelectorAll("*"))){const c=o.tagName.toLowerCase();if(gi.has(c)){const g=o.textContent??"",m=o.getAttribute("id");m&&u.slug(m);const k=m||u.slug(g);o.setAttribute("id",k),l.push({id:k,depth:Number(c[1])-r,value:g})}if(hi(o))continue;c==="a"&&((o.getAttribute("href")??"").startsWith("http")||o.getAttribute("target")==="_blank")&&(o.setAttribute("target","_blank"),o.setAttribute("rel",di(o.getAttribute("rel"))),mi(o,e));const h=fi[c];h&&Di(o,h)}for(const o of Array.from(t.querySelectorAll("table"))){if(o.parentElement?.dataset?.tableContainer==="true")continue;const h=e.createElement("div");h.setAttribute("class",O(A.styles.overflowContainerStyle)),h.dataset.tableContainer="true",o.replaceWith(h),h.appendChild(o)}return{headings:l.filter(o=>o.depth<=s)}},Kt=/([#.])?([A-Za-z_:][-A-Za-z0-9_.:]*)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'{}]+)))?/g,vr="#id",Ei=t=>{const e={};if(!t)return e;Kt.lastIndex=0;let n=Kt.exec(t);for(;n!==null;){const[,r,s,u,l,o]=n,c=u??l??o;r==="#"?e[vr]=s:r==="."?e.class=e.class?`${e.class} ${s}`:s:e[s]=c??"",n=Kt.exec(t)}return e},ir=(t,e,n,r)=>{if(t[e]!==n)return null;let s=0;for(let u=e;u<t.length;u++){const l=t[u];if(l==="\\"){u++;continue}if(l===`
71
- `)return null;if(l===n)s++;else if(l===r&&(s--,s===0))return{value:t.slice(e+1,u),end:u+1}}return null},Or=(t,e)=>{let n=null;const r=ir(t,e,"[","]");r&&(n=r.value,e=r.end);let s={};const u=ir(t,e,"{","}");return u&&(s=Ei(u.value),e=u.end),{label:n,attrs:s,end:e}},J="container",se="leaf",Lt="text",bi={card:[J],"card-img":[se],"card-title":[se,J],"card-description":[se,J],"card-footer":[se,J],faq:[J],"faq-q":[se,J],"faq-a":[se,J],cell:[J],"cell-img":[se],img:[se],youtube:[se,J],"link-button":[Lt]},Lr=/^grid-cols-(?:1[0-2]|[1-9])$/,$r=(t,e)=>Lr.test(t)?e===J:(bi[t]??[]).includes(e),ki=O(A.styles.cardImgStyle,"w-full aspect-[352/226]"),yi=(t,e)=>`<span aria-hidden="true" class="${O(A.styles.iconSizeStyle[16],A.styles.iconStyle)}">${t}</span><span class="sr-only">${e}</span>`,Ci={card:({token:t,attrs:e,root:n,body:r,nl:s})=>{const u=!!t.linked,l=O(A.styles.cardStyle,u&&A.styles.linkCardPositionStyle,u&&A.styles.linkCardHoverStyle,u&&A.styles.linkCardFocusStyle,e.class),o=`<div${n({class:l})}>${r()}</div>`;return t.listed?`<li class="sm:grid">${o}</li>${s}`:`${o}${s}`},"card-img":({attrs:t,root:e,nl:n})=>`<img${e({class:O(ki,t.class),src:at(t.src),alt:t.alt??""})}>${n}`,"card-title":({token:t,attrs:e,root:n,own:r,body:s,nl:u,options:l})=>{const o=l.cardHeadingLevel,c=t.inherited?at(t.inherited.href):void 0;return c?`<${o}${n({class:O(A.styles.cardHeaderStyle,A.styles.linkCardHeadingStyle)})}><a${r({class:O(A.styles.linkCardOverlayStyle),href:c})}>${s()}</a></${o}>${u}`:`<${o}${n({class:O(A.styles.cardHeaderStyle,e.class)})}>${s()}</${o}>${u}`},"card-description":({attrs:t,root:e,body:n,nl:r})=>`<div${e({class:O(A.styles.cardBodyStyle,t.class)})}>${n()}</div>${r}`,"card-footer":({token:t,attrs:e,root:n,body:r,nl:s})=>{const u=!!t.inherited,l=O(A.styles.cardFooterPositionStyle,A.styles.cardBodyStyle,u&&A.styles.linkCardFooterStyle,e.class);if(u){const o=`<span class="${O(A.styles.linkCardArrowStyle,A.styles.linkCardArrowHoverStyle)}">${yi("arrow_forward","")}</span>`;return`<div${n({class:l})}><span>${r()}</span>${o}</div>${s}`}return`<div${n({class:l})}>${r()}</div>${s}`}},xi={faq:({root:t,body:e,nl:n})=>`<dl${t({class:O(A.styles.faqStyle)})}>${e()}</dl>${n}`,"faq-q":({root:t,body:e,nl:n})=>`<dt${t({class:O(A.styles.questionStyle,A.styles.faqMarkerStyle)})}><span aria-hidden="true">Q</span><span>${e()}</span></dt>${n}`,"faq-a":({root:t,body:e,nl:n})=>`<dd${t({class:O(A.styles.answerStyle)})}><span class="${O(A.styles.faqMarkerStyle,"!leading-none")}" aria-hidden="true">A</span><span>${e()}</span></dd>${n}`},Ti=(t,e)=>{const n=[];return t&&n.push(`width:${t}px`),e&&n.push(`height:${e}px`),t&&n.push("max-width:100%"),n.length>0?n.join(";"):void 0},_i={img:({attrs:t,root:e,nl:n})=>`<img${e({class:O(t.class),src:at(t.src),alt:t.alt??"",style:Ti(t.width,t.height)})}>${n}`},wi={1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-6",8:"md:grid-cols-6",9:"md:grid-cols-6",10:"md:grid-cols-6",11:"md:grid-cols-6",12:"md:grid-cols-12"},Si=({token:t,root:e,body:n,nl:r})=>{const s=Number(t.name.slice(10)),u=O("flex flex-col md:grid",wi[s],"gap-8"),l=t.listed?"ul":"div";return`<${l}${e({class:u})}>${n()}</${l}>${r}`},Ri={cell:({attrs:t,root:e,body:n,nl:r})=>`<div${e({class:t.class})}>${n()}</div>${r}`,"cell-img":({attrs:t,root:e,nl:n})=>`<img${e({class:O("mb-4",t.class),src:at(t.src),alt:t.alt??""})}>${n}`},Bi=O(A.styles.buttonBaseStyle,A.styles.getButtonVariantStyle("secondary"),A.styles.getButtonSizeStyle("lg")),vi={"link-button":({attrs:t,root:e,body:n})=>`<a${e({class:Bi,href:at(t.href)})}>${n()}</a>`},Oi="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",Li="strict-origin-when-cross-origin",$i=/^[\w-]{11}$/,Pi=/(?:youtu\.be\/|[?&]v=|\/embed\/|\/shorts\/)([\w-]{11})/,Ii=t=>t?$i.test(t)?t:Pi.exec(t)?.[1]??t:"",Ni={youtube:({token:t,attrs:e,root:n,nl:r,parser:s})=>{const u=s.parseInline(t.tokens,s.textRenderer);return`<iframe${n({title:u,src:`https://www.youtube-nocookie.com/embed/${encodeURIComponent(Ii(e.video))}`,class:"aspect-video w-full max-w-[470px]",style:e.width?`width:${e.width}px`:void 0,frameborder:"0",allow:Oi,referrerpolicy:Li,allowfullscreen:!0,loading:"lazy"})}></iframe>${r}`}},Mi={...Ci,...Ri,...xi,..._i,...Ni,...vi},zi=t=>Mi[t]??(Lr.test(t)?Si:void 0);function Ui(t,e){const{name:n,kind:r,attrs:s,tokens:u}=t,l=r===Lt?"":`
72
- `,o=g=>pi({...g,"data-styled":n}),c={token:t,attrs:s,nl:l,own:o,root:g=>o({...g,id:s[vr]}),body:()=>r===J?this.parser.parse(u):this.parser.parseInline(u),parser:this.parser,options:e},h=zi(n);return h?h(c):c.body()+l}const ji=/^(:{2,})([A-Za-z][A-Za-z0-9_-]*)/,Hi=/^:([A-Za-z][A-Za-z0-9_-]*)/,qi=(t,e)=>{const n=new RegExp(`^:{${e},}[ \\t]*$`);let r=0;for(const s of t.split(`
73
- `)){if(n.test(s))return{contentEnd:r,rawEnd:Math.min(r+s.length+1,t.length)};r+=s.length+1}return null},Gi=t=>{const e=/\n:{2,}[A-Za-z]/.exec(t);return e?e.index:void 0},Wi=t=>{const e=/:[A-Za-z][A-Za-z0-9_-]*\[/.exec(t);return e?e.index:void 0},Yi=t=>{if(!/^grid-cols-\d+$/.test(t.name))return;const e=t.tokens.filter(r=>r.type!=="space"),n=e.filter(r=>r.type==="directive"&&r.name==="card");if(!(n.length===0||n.length!==e.length)){t.listed=!0;for(const r of n)r.listed=!0}},Zi=t=>{if(t.name!=="card"||!t.attrs.href)return;const e=t.tokens;if(e.some(r=>r.type==="directive"&&r.name==="card-title")){t.linked=!0;for(const r of e)r.type==="directive"&&(r.name==="card-title"||r.name==="card-footer")&&(r.inherited={behavior:"link",href:t.attrs.href??""})}};function Xi(t){const e=ji.exec(t);if(!e)return;const[,n,r]=e,s=n.length>=3?J:se;if(!$r(r,s))return;const u=Or(t,e[0].length),l=/^[ \t]*(?:\n|$)/.exec(t.slice(u.end));if(!l)return;const o=u.end+l[0].length,c={type:"directive",kind:s,name:r,attrs:u.attrs,tokens:[],raw:t.slice(0,o)};if(s===se)return u.label&&this.lexer.inline(u.label,c.tokens),c;const h=t.slice(o),g=qi(h,n.length);return c.raw=t.slice(0,o+(g?g.rawEnd:h.length)),c.tokens=this.lexer.blockTokens(g?h.slice(0,g.contentEnd):h),Zi(c),Yi(c),c}function Vi(t){const e=Hi.exec(t);if(!e)return;const[,n]=e;if(!$r(n,Lt))return;const r=Or(t,e[0].length);if(r.label!==null)return{type:"directive",kind:Lt,name:n,attrs:r.attrs,tokens:this.lexer.inlineTokens(r.label),raw:t.slice(0,r.end)}}const Qi=t=>({extensions:[{name:"directive",level:"inline",start:Wi,tokenizer:Vi},{name:"directive",level:"block",start:Gi,tokenizer:Xi,renderer(e){return Ui.call(this,e,t)}}]});function ur(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function Ki(t){if(Array.isArray(t))return t}function Ji(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,u,l,o=[],c=!0,h=!1;try{if(u=(n=n.call(t)).next,e!==0)for(;!(c=(r=u.call(n)).done)&&(o.push(r.value),o.length!==e);c=!0);}catch(g){h=!0,s=g}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(h)throw s}}return o}}function eu(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
74
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tu(t,e){return Ki(t)||Ji(t,e)||nu(t,e)||eu()}function nu(t,e){if(t){if(typeof t=="string")return ur(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ur(t,e):void 0}}const Pr=Object.entries,or=Object.setPrototypeOf,ru=Object.isFrozen,su=Object.getPrototypeOf,iu=Object.getOwnPropertyDescriptor;let N=Object.freeze,z=Object.seal,He=Object.create,Ir=typeof Reflect<"u"&&Reflect,an=Ir.apply,cn=Ir.construct;N||(N=function(e){return e});z||(z=function(e){return e});an||(an=function(e,n){for(var r=arguments.length,s=new Array(r>2?r-2:0),u=2;u<r;u++)s[u-2]=arguments[u];return e.apply(n,s)});cn||(cn=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return new e(...r)});const Se=I(Array.prototype.forEach),uu=I(Array.prototype.lastIndexOf),lr=I(Array.prototype.pop),rt=I(Array.prototype.push),ou=I(Array.prototype.splice),qe=Array.isArray,lt=I(String.prototype.toLowerCase),Jt=I(String.prototype.toString),ar=I(String.prototype.match),st=I(String.prototype.replace),cr=I(String.prototype.indexOf),lu=I(String.prototype.trim),au=I(Number.prototype.toString),cu=I(Boolean.prototype.toString),pr=typeof BigInt>"u"?null:I(BigInt.prototype.toString),fr=typeof Symbol>"u"?null:I(Symbol.prototype.toString),Z=I(Object.prototype.hasOwnProperty),it=I(Object.prototype.toString),j=I(RegExp.prototype.test),we=pu(TypeError);function I(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return an(t,e,r)}}function pu(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return cn(t,n)}}function T(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lt;if(or&&or(t,null),!qe(e))return t;let r=e.length;for(;r--;){let s=e[r];if(typeof s=="string"){const u=n(s);u!==s&&(ru(e)||(e[r]=u),s=u)}t[s]=!0}return t}function fu(t){for(let e=0;e<t.length;e++)Z(t,e)||(t[e]=null);return t}function V(t){const e=He(null);for(const r of Pr(t)){var n=tu(r,2);const s=n[0],u=n[1];Z(t,s)&&(qe(u)?e[s]=fu(u):u&&typeof u=="object"&&u.constructor===Object?e[s]=V(u):e[s]=u)}return e}function hu(t){switch(typeof t){case"string":return t;case"number":return au(t);case"boolean":return cu(t);case"bigint":return pr?pr(t):"0";case"symbol":return fr?fr(t):"Symbol()";case"undefined":return it(t);case"function":case"object":{if(t===null)return it(t);const e=t,n=re(e,"toString");if(typeof n=="function"){const r=n(e);return typeof r=="string"?r:it(r)}return it(t)}default:return it(t)}}function re(t,e){for(;t!==null;){const r=iu(t,e);if(r){if(r.get)return I(r.get);if(typeof r.value=="function")return I(r.value)}t=su(t)}function n(){return null}return n}function du(t){try{return j(t,""),!0}catch{return!1}}const hr=N(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),en=N(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),tn=N(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Du=N(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),nn=N(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),gu=N(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),dr=N(["#text"]),Dr=N(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),rn=N(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),gr=N(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),St=N(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),mu=z(/{{[\w\W]*|^[\w\W]*}}/g),Fu=z(/<%[\w\W]*|^[\w\W]*%>/g),Au=z(/\${[\w\W]*/g),Eu=z(/^data-[\-\w.\u00B7-\uFFFF]+$/),bu=z(/^aria-[\-\w]+$/),mr=z(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ku=z(/^(?:\w+script|data):/i),yu=z(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Cu=z(/^html$/i),xu=z(/^[a-z][.\w]*(-[.\w]+)+$/i),Fr=z(/<[/\w!]/g),Ar=z(/<[/\w]/g),Tu=z(/<\/no(script|embed|frames)/i),_u=z(/\/>/i),X={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Nr=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],wu=N(T({},Nr)),Su=(function(){const t={};return Se(Nr,e=>{t[e]=z(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),N(t)})(),Ru=function(){return typeof window>"u"?null:window},Bu=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(r=n.getAttribute(s));const u="dompurify"+(r?"#"+r:"");try{return e.createPolicy(u,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+u+" could not be created."),null}},Er=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ee=function(e,n,r,s){return Z(e,n)&&qe(e[n])?T(s.base?V(s.base):{},e[n],s.transform):r},sn=function(e,n,r){const s=Z(e,n)?e[n]:void 0;return s&&typeof s=="object"?V(s):r()};function Mr(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ru();const e=d=>Mr(d);if(e.version="3.4.14",e.removed=[],!t||!t.document||t.document.nodeType!==X.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const r=n,s=r.currentScript;t.DocumentFragment;const u=t.HTMLTemplateElement,l=t.Node,o=t.Element,c=t.NodeFilter,h=t.NamedNodeMap;h===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const g=t.DOMParser,m=t.trustedTypes,k=o.prototype,L=re(k,"cloneNode"),x=re(k,"remove"),G=re(k,"nextSibling"),U=re(k,"childNodes"),te=re(k,"parentNode"),be=re(k,"shadowRoot"),ke=re(k,"attributes"),ne=l&&l.prototype?re(l.prototype,"nodeType"):null,Q=l&&l.prototype?re(l.prototype,"nodeName"):null,K=l&&l.prototype?re(l.prototype,"ownerDocument"):null,ye=function(i){return ne?ne(i):i.nodeType},We=function(i){return Q?Q(i):i.nodeName};if(typeof u=="function"){const d=n.createElement("template");d.content&&d.content.ownerDocument&&(n=d.content.ownerDocument)}let M,fe="",Ye,Oe=!1,de=0;const ft=function(){if(de>0)throw we('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},oe=function(i){ft(),de++;try{return M.createHTML(i)}finally{de--}},ht=function(i){ft(),de++;try{return M.createScriptURL(i)}finally{de--}},dt=function(){return Oe||(Ye=Bu(m,s),Oe=!0),Ye},Ce=n,Le=Ce.implementation,Ze=Ce.createNodeIterator,f=Ce.createDocumentFragment,y=Ce.getElementsByTagName,S=r.importNode;let b=Er();e.isSupported=typeof Pr=="function"&&typeof te=="function"&&Le&&Le.createHTMLDocument!==void 0;const $e=mu,Xe=Fu,$=Au,De=Eu,Ve=bu,Pt=ku,En=yu,Ur=xu;let bn=mr,R=null;const It=T({},[...hr,...en,...tn,...nn,...dr]);let B=null;const Nt=T({},[...Dr,...rn,...gr,...St]);let le=Object.seal(He(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Qe=null,kn=null;const ge=Object.seal(He(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let yn=!0,Mt=!0,Cn=!1,xn=!0,me=!1,xe=!0,Te=!1,zt=!1,Dt=null,gt=null,Ut=!1,Pe=!1,mt=!1,Ft=!1,Tn=!0,_n=!1;const wn="user-content-";let jt=!0,Ht=!1,Ie={},Ne=null;const Sn=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Rn=null;const Bn=T({},["audio","video","img","source","image","track"]);let vn=null;const On=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),At="http://www.w3.org/1998/Math/MathML",Et="http://www.w3.org/2000/svg",ae="http://www.w3.org/1999/xhtml";let Me=ae,qt=!1,Gt=null;const jr=T({},[At,Et,ae],Jt),Ln=N(["mi","mo","mn","ms","mtext"]);let Wt=T({},Ln);const $n=N(["annotation-xml"]);let Yt=T({},$n);const Hr=T({},["title","style","font","a","script"]);let Ke=null;const qr=["application/xhtml+xml","text/html"],Gr="text/html";let P=null,ze=null;const Wr=n.createElement("form"),Pn=function(i){return i instanceof RegExp||i instanceof Function},Zt=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ze&&ze===i)return;(!i||typeof i!="object")&&(i={}),i=V(i),Ke=qr.indexOf(i.PARSER_MEDIA_TYPE)===-1?Gr:i.PARSER_MEDIA_TYPE,P=Ke==="application/xhtml+xml"?Jt:lt,R=Ee(i,"ALLOWED_TAGS",It,{transform:P}),B=Ee(i,"ALLOWED_ATTR",Nt,{transform:P}),Gt=Ee(i,"ALLOWED_NAMESPACES",jr,{transform:Jt}),vn=Ee(i,"ADD_URI_SAFE_ATTR",On,{transform:P,base:On}),Rn=Ee(i,"ADD_DATA_URI_TAGS",Bn,{transform:P,base:Bn}),Ne=Ee(i,"FORBID_CONTENTS",Sn,{transform:P}),Qe=Ee(i,"FORBID_TAGS",V({}),{transform:P}),kn=Ee(i,"FORBID_ATTR",V({}),{transform:P}),Ie=Z(i,"USE_PROFILES")?i.USE_PROFILES&&typeof i.USE_PROFILES=="object"?V(i.USE_PROFILES):i.USE_PROFILES:!1,yn=i.ALLOW_ARIA_ATTR!==!1,Mt=i.ALLOW_DATA_ATTR!==!1,Cn=i.ALLOW_UNKNOWN_PROTOCOLS||!1,xn=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,me=i.SAFE_FOR_TEMPLATES||!1,xe=i.SAFE_FOR_XML!==!1,Te=i.WHOLE_DOCUMENT||!1,Pe=i.RETURN_DOM||!1,mt=i.RETURN_DOM_FRAGMENT||!1,Ft=i.RETURN_TRUSTED_TYPE||!1,Ut=i.FORCE_BODY||!1,Tn=i.SANITIZE_DOM!==!1,_n=i.SANITIZE_NAMED_PROPS||!1,jt=i.KEEP_CONTENT!==!1,Ht=i.IN_PLACE||!1,bn=du(i.ALLOWED_URI_REGEXP)?i.ALLOWED_URI_REGEXP:mr,Me=typeof i.NAMESPACE=="string"?i.NAMESPACE:ae,Wt=sn(i,"MATHML_TEXT_INTEGRATION_POINTS",()=>T({},Ln)),Yt=sn(i,"HTML_INTEGRATION_POINTS",()=>T({},$n));const a=sn(i,"CUSTOM_ELEMENT_HANDLING",()=>He(null));if(le=He(null),Z(a,"tagNameCheck")&&Pn(a.tagNameCheck)&&(le.tagNameCheck=a.tagNameCheck),Z(a,"attributeNameCheck")&&Pn(a.attributeNameCheck)&&(le.attributeNameCheck=a.attributeNameCheck),Z(a,"allowCustomizedBuiltInElements")&&typeof a.allowCustomizedBuiltInElements=="boolean"&&(le.allowCustomizedBuiltInElements=a.allowCustomizedBuiltInElements),z(le),me&&(Mt=!1),mt&&(Pe=!0),Ie&&(R=T({},dr),B=He(null),Ie.html===!0&&(T(R,hr),T(B,Dr)),Ie.svg===!0&&(T(R,en),T(B,rn),T(B,St)),Ie.svgFilters===!0&&(T(R,tn),T(B,rn),T(B,St)),Ie.mathMl===!0&&(T(R,nn),T(B,gr),T(B,St))),ge.tagCheck=null,ge.attributeCheck=null,Z(i,"ADD_TAGS")&&(typeof i.ADD_TAGS=="function"?ge.tagCheck=i.ADD_TAGS:qe(i.ADD_TAGS)&&(R===It&&(R=V(R)),T(R,i.ADD_TAGS,P))),Z(i,"ADD_ATTR")&&(typeof i.ADD_ATTR=="function"?ge.attributeCheck=i.ADD_ATTR:qe(i.ADD_ATTR)&&(B===Nt&&(B=V(B)),T(B,i.ADD_ATTR,P))),Z(i,"ADD_FORBID_CONTENTS")&&qe(i.ADD_FORBID_CONTENTS)&&(Ne===Sn&&(Ne=V(Ne)),T(Ne,i.ADD_FORBID_CONTENTS,P)),jt&&(R["#text"]=!0),Te&&T(R,["html","head","body"]),R.table&&(T(R,["tbody"]),delete Qe.tbody),i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!="function")throw we('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw we('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const p=M;M=i.TRUSTED_TYPES_POLICY;try{fe=oe("")}catch(D){throw M=p,D}}else i.TRUSTED_TYPES_POLICY===null?(M=void 0,fe=""):(M===void 0&&(M=dt()),M&&typeof fe=="string"&&(fe=oe("")));N&&N(i),ze=i},In=T({},[...en,...tn,...Du]),Nn=T({},[...nn,...gu]),Yr=function(i,a,p){return a.namespaceURI===ae?i==="svg":a.namespaceURI===At?i==="svg"&&(p==="annotation-xml"||Wt[p]):!!In[i]},Zr=function(i,a,p){return a.namespaceURI===ae?i==="math":a.namespaceURI===Et?i==="math"&&Yt[p]:!!Nn[i]},Xr=function(i,a,p){return a.namespaceURI===Et&&!Yt[p]||a.namespaceURI===At&&!Wt[p]?!1:!Nn[i]&&(Hr[i]||!In[i])},Vr=function(i){let a=te(i);(!a||!a.tagName)&&(a={namespaceURI:Me,tagName:"template"});const p=lt(i.tagName),D=lt(a.tagName);return Gt[i.namespaceURI]?i.namespaceURI===Et?Yr(p,a,D):i.namespaceURI===At?Zr(p,a,D):i.namespaceURI===ae?Xr(p,a,D):!!(Ke==="application/xhtml+xml"&&Gt[i.namespaceURI]):!1},Fe=function(i){rt(e.removed,{element:i});try{te(i).removeChild(i)}catch{if(x(i),!te(i))throw we("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Mn=function(i,a,p){try{i.removeAttributeNode(a)}catch{try{i.removeAttribute(p)}catch{}}},bt=function(i){kt(i);const a=U(i);if(a){const D=[];Se(a,F=>{rt(D,F)}),Se(D,F=>{try{x(F)}catch{}})}const p=ke(i);if(p)for(let D=p.length-1;D>=0;--D){const F=p[D],E=F&&F.name;typeof E=="string"&&Mn(i,F,E)}},_e=function(i,a,p){if(!p)try{p=a.getAttributeNode(i)}catch{p=null}rt(e.removed,{attribute:p||null,from:a});try{p?a.removeAttributeNode(p):a.removeAttribute(i)}catch{try{a.removeAttribute(i)}catch{}}if(i==="is")if(Pe||mt)try{Fe(a)}catch{}else try{a.setAttribute(i,"")}catch{}},Qr=function(i){const a=ke(i);if(a)for(let p=a.length-1;p>=0;--p){const D=a[p],F=D&&D.name;typeof F!="string"||B[P(F)]||Mn(i,D,F)}},kt=function(i){const a=[i];for(;a.length>0;){const p=a.pop();ye(p)===X.element&&Qr(p);const F=U(p);if(F)for(let E=F.length-1;E>=0;--E)a.push(F[E])}},zn=function(i,a){return xe?i==="patchsrc"?!0:i==="for"&&a!=="label"&&a!=="output":!1},Kr=function(i){if(!xe)return;const a=[i];for(;a.length>0;){const p=a.pop(),D=ye(p);if(D===X.processingInstruction||D===X.comment&&j(Ar,p.data)){try{x(p)}catch{}continue}if(D===X.element){const E=p,w=P(We(p));try{E.hasAttribute&&E.hasAttribute("patchsrc")&&E.removeAttribute("patchsrc"),E.hasAttribute&&E.hasAttribute("for")&&zn("for",w)&&E.removeAttribute("for")}catch{}}const F=U(p);if(F)for(let E=F.length-1;E>=0;--E)a.push(F[E])}},Un=function(i){let a=null,p=null;if(Ut)i="<remove></remove>"+i;else{const E=ar(i,/^[\r\n\t ]+/);p=E&&E[0]}Ke==="application/xhtml+xml"&&Me===ae&&(i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>");const D=M?oe(i):i;if(Me===ae)try{a=new g().parseFromString(D,Ke)}catch{}if(!a||!a.documentElement){a=Le.createDocument(Me,"template",null);try{a.documentElement.innerHTML=qt?fe:D}catch{}}const F=a.body||a.documentElement;return i&&p&&F.insertBefore(n.createTextNode(p),F.childNodes[0]||null),Me===ae?y.call(a,Te?"html":"body")[0]:Te?a.documentElement:F},jn=function(i){const a=K?K(i):i.ownerDocument;return Ze.call(a||i,i,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},yt=function(i){return i=st(i,$e," "),i=st(i,Xe," "),i=st(i,$," "),i},Xt=function(i){var a;i.normalize();const p=K?K(i):i.ownerDocument,D=Ze.call(p||i,i,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let F=D.nextNode();for(;F;)F.data=yt(F.data),F=D.nextNode();const E=(a=i.querySelectorAll)===null||a===void 0?void 0:a.call(i,"template");E&&Se(E,w=>{Ue(w.content)&&Xt(w.content)})},Ct=function(i){const a=Q?Q(i):null;return typeof a!="string"||P(a)!=="form"?!1:typeof i.nodeName!="string"||typeof i.textContent!="string"||typeof i.removeChild!="function"||i.attributes!==ke(i)||typeof i.removeAttribute!="function"||typeof i.setAttribute!="function"||typeof i.namespaceURI!="string"||typeof i.insertBefore!="function"||typeof i.hasChildNodes!="function"||i.nodeType!==ne(i)||i.childNodes!==U(i)},Ue=function(i){if(!ne||typeof i!="object"||i===null)return!1;try{return ne(i)===X.documentFragment}catch{return!1}},Je=function(i){if(!ne||typeof i!="object"||i===null)return!1;try{return typeof ne(i)=="number"}catch{return!1}};function ce(d,i,a){d.length!==0&&Se(d,p=>{p.call(e,i,a,ze)})}const Jr=function(i,a){return!!(xe&&i.hasChildNodes()&&!Je(i.firstElementChild)&&j(Fr,i.textContent)&&j(Fr,i.innerHTML)||xe&&i.namespaceURI===ae&&wu[a]&&(Je(i.firstElementChild)||typeof i.textContent=="string"&&j(Su[a],i.textContent))||i.nodeType===X.processingInstruction||xe&&i.nodeType===X.comment&&j(Ar,i.data))},xt=function(i,a){if(i instanceof RegExp)return j(i,a);if(i instanceof Function){for(var p=arguments.length,D=new Array(p>2?p-2:0),F=2;F<p;F++)D[F-2]=arguments[F];return!!i(a,...D)}return!1},es=function(i,a,p){if(!Qe[a]&&Yn(a)&&xt(le.tagNameCheck,a))return!1;if(jt&&!Ne[a]){const D=te(i),F=U(i);if(F&&D){const E=F.length;for(let w=E-1;w>=0;--w){const v=i===p?L(F[w],!0):F[w];D.insertBefore(v,G(i))}}}return Fe(i),!0},Hn=function(i,a,p,D){return i.length===0?a:a===p||a===D?V(a):a},qn=function(i,a){return i===a||te(i)!==null?!1:(Ht&&kt(i),!0)},Gn=function(i,a){if(ce(b.beforeSanitizeElements,i,null),qn(i,a))return!0;if(Ct(i))return Fe(i),!0;const p=P(We(i));if(R=Hn(b.uponSanitizeElement,R,It,Dt),ce(b.uponSanitizeElement,i,{tagName:p,allowedTags:R}),qn(i,a))return!0;if(Jr(i,p))return Fe(i),!0;if(Qe[p]||!(ge.tagCheck instanceof Function&&ge.tagCheck(p))&&!R[p]){const F=es(i,p,a);return F===!1&&ce(b.afterSanitizeElements,i,null),F}if(ye(i)===X.element&&!Vr(i)||(p==="noscript"||p==="noembed"||p==="noframes")&&j(Tu,i.innerHTML))return Fe(i),!0;if(me&&i.nodeType===X.text){const F=yt(i.textContent);i.textContent!==F&&(rt(e.removed,{element:i.cloneNode()}),i.textContent=F)}return ce(b.afterSanitizeElements,i,null),!1},Wn=function(i,a,p){if(kn[a]||zn(a,i)||Tn&&(a==="id"||a==="name")&&(p in n||p in Wr))return!1;const D=B[a]||ge.attributeCheck instanceof Function&&ge.attributeCheck(a,i);return Mt&&j(De,a)||yn&&j(Ve,a)?!0:D?vn[a]||j(bn,st(p,En,""))||(a==="src"||a==="xlink:href"||a==="href")&&i!=="script"&&cr(p,"data:")===0&&Rn[i]||Cn&&!j(Pt,st(p,En,""))?!0:!p:Yn(i)&&xt(le.tagNameCheck,i)&&xt(le.attributeNameCheck,a,i)||a==="is"&&le.allowCustomizedBuiltInElements&&xt(le.tagNameCheck,p)},ts=T({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Yn=function(i){return!ts[lt(i)]&&j(Ur,i)},ns=function(i,a,p,D){if(M&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!p)switch(m.getAttributeType(i,a)){case"TrustedHTML":return oe(D);case"TrustedScriptURL":return ht(D)}return D},rs=function(i,a,p,D){try{p?i.setAttributeNS(p,a,D):i.setAttribute(a,D),Ct(i)?Fe(i):lr(e.removed)}catch{_e(a,i)}},Zn=function(i){ce(b.beforeSanitizeAttributes,i,null);const a=i.attributes;if(!a||Ct(i))return;B=Hn(b.uponSanitizeAttribute,B,Nt,gt);const p={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let D=a.length;const F=P(i.nodeName);for(;D--;){const E=a[D],w=E.name,v=E.namespaceURI,W=E.value,Y=P(w),Qt=W;let q=w==="value"?Qt:lu(Qt);if(p.attrName=Y,p.attrValue=q,p.keepAttr=!0,p.forceKeepAttr=void 0,ce(b.uponSanitizeAttribute,i,p),q=p.attrValue,_n&&(Y==="id"||Y==="name")&&cr(q,wn)!==0&&(_e(w,i,E),q=wn+q),xe&&j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,q)){_e(w,i,E);continue}if(Y==="attributename"&&ar(q,"href")){_e(w,i,E);continue}if(!p.forceKeepAttr){if(!p.keepAttr){_e(w,i,E);continue}if(!xn&&j(_u,q)){_e(w,i,E);continue}if(me&&(q=yt(q)),!Wn(F,Y,q)){_e(w,i,E);continue}q=ns(F,Y,v,q),q!==Qt&&rs(i,w,v,q)}}ce(b.afterSanitizeAttributes,i,null)},Tt=function(i){let a=null;const p=jn(i);for(ce(b.beforeSanitizeShadowDOM,i,null);a=p.nextNode();)if(ce(b.uponSanitizeShadowNode,a,null),Gn(a,i),Zn(a),Ue(a.content)&&Tt(a.content),ye(a)===X.element){const D=be(a);Ue(D)&&(Vt(D),Tt(D))}ce(b.afterSanitizeShadowDOM,i,null)},Vt=function(i){const a=[{node:i,shadow:null}];for(;a.length>0;){const p=a.pop();if(p.shadow){Tt(p.shadow);continue}const D=p.node,E=ye(D)===X.element,w=U(D);if(w)for(let v=w.length-1;v>=0;--v)a.push({node:w[v],shadow:null});if(E){const v=Q?Q(D):null;if(typeof v=="string"&&P(v)==="template"){const W=D.content;Ue(W)&&a.push({node:W,shadow:null})}}if(E){const v=be(D);Ue(v)&&a.push({node:null,shadow:v},{node:v,shadow:null})}}};return e.sanitize=function(d){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=null,p=null,D=null,F=null;if(qt=!d,qt&&(d="<!-->"),typeof d!="string"&&!Je(d)&&(d=hu(d),typeof d!="string"))throw we("dirty is not a string, aborting");if(!e.isSupported)return d;zt?(R=Dt,B=gt):Zt(i),(b.uponSanitizeElement.length>0||b.uponSanitizeAttribute.length>0)&&(R=V(R)),b.uponSanitizeAttribute.length>0&&(B=V(B)),e.removed=[];const E=Ht&&typeof d!="string"&&Je(d);if(E){Kr(d);const W=We(d);if(typeof W=="string"){const Y=P(W);if(!R[Y]||Qe[Y])throw bt(d),we("root node is forbidden and cannot be sanitized in-place")}if(Ct(d))throw bt(d),we("root node is clobbered and cannot be sanitized in-place");try{Vt(d)}catch(Y){throw bt(d),Y}}else if(Je(d))a=Un("<!---->"),p=a.ownerDocument.importNode(d,!0),p.nodeType===X.element&&p.nodeName==="BODY"||p.nodeName==="HTML"?a=p:a.appendChild(p),Vt(p);else{if(!Pe&&!me&&!Te&&d.indexOf("<")===-1)return M&&Ft?oe(d):d;if(a=Un(d),!a)return Pe?null:Ft?fe:""}a&&Ut&&Fe(a.firstChild);const w=E?d:a;try{const W=jn(w);for(;D=W.nextNode();)Gn(D,w),Zn(D),Ue(D.content)&&Tt(D.content)}catch(W){throw E&&(bt(d),Se(e.removed,Y=>{Y.element&&kt(Y.element)})),W}if(E)return Se(e.removed,W=>{W.element&&kt(W.element)}),me&&Xt(d),d;if(Pe){if(me&&Xt(a),mt)for(F=f.call(a.ownerDocument);a.firstChild;)F.appendChild(a.firstChild);else F=a;return(B.shadowroot||B.shadowrootmode)&&(F=S.call(r,F,!0)),F}let v=Te?a.outerHTML:a.innerHTML;return Te&&R["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&j(Cu,a.ownerDocument.doctype.name)&&(v="<!DOCTYPE "+a.ownerDocument.doctype.name+`>
75
- `+v),me&&(v=yt(v)),M&&Ft?oe(v):v},e.setConfig=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zt(d),zt=!0,Dt=R,gt=B},e.clearConfig=function(){ze=null,zt=!1,Dt=null,gt=null,M=Ye,fe=""},e.isValidAttribute=function(d,i,a){ze||Zt({});const p=P(d),D=P(i);return Wn(p,D,a)},e.addHook=function(d,i){typeof i=="function"&&Z(b,d)&&rt(b[d],i)},e.removeHook=function(d,i){if(Z(b,d)){if(i!==void 0){const a=uu(b[d],i);return a===-1?void 0:ou(b[d],a,1)[0]}return lr(b[d])}},e.removeHooks=function(d){Z(b,d)&&(b[d]=[])},e.removeAllHooks=function(){b=Er()},e}var vu=Mr();const Ou=["caption","col","colgroup","small","u","iframe"],Lu=["target","role","colspan","rowspan","open","allow","allowfullscreen","frameborder","referrerpolicy","loading"],$u=new Set(["www.youtube-nocookie.com"]),Pu=t=>{if(!t)return!1;try{return $u.has(new URL(t).host)}catch{return!1}},Iu=new Set(["background-color","border","border-bottom","border-collapse","border-left","border-radius","border-right","border-top","color","color-scheme","font-size","font-weight","height","line-height","list-style","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","max-width","min-width","padding","padding-bottom","padding-left","padding-right","padding-top","text-align","text-indent","text-orientation","vertical-align","white-space","width","writing-mode"]),Nu={position:new Set(["relative","static"])},Mu=t=>t.split(";").map(e=>e.trim()).filter(Boolean).filter(e=>{const[n,...r]=e.split(":"),s=n.trim().toLowerCase(),u=r.join(":").trim().toLowerCase();return/url\(|expression\(|@import|behavior:/i.test(u)?!1:Iu.has(s)?!0:!!Nu[s]?.has(u)}).map(e=>`${e};`).join(" "),zu=t=>Array.from(t).filter(e=>(e.codePointAt(0)??0)>32).join("").toLowerCase();let ut=null;const Uu=()=>ut||(ut=vu(window),ut.addHook("afterSanitizeAttributes",t=>{const e=t;if(!e.getAttribute)return;if(e.tagName==="IFRAME"&&!Pu(e.getAttribute("src"))){e.remove();return}for(const r of["src","href"]){const s=e.getAttribute(r);s&&zu(s).startsWith("data:")&&e.removeAttribute(r)}const n=e.getAttribute("style");if(n){const r=Mu(n);r?e.setAttribute("style",r):e.removeAttribute("style")}if(e.getAttribute("target")==="_blank"){const r=(e.getAttribute("rel")??"").split(/\s+/);e.setAttribute("rel",Array.from(new Set(["noopener","noreferrer",...r.filter(Boolean)])).join(" "))}}),ut),ju=t=>Uu().sanitize(t,{ADD_TAGS:Ou,ADD_ATTR:Lu,RETURN_DOM_FRAGMENT:!0,ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.\-:]|$))/i}),Hu=t=>Math.min(6,Math.max(1,t)),zr=(t,e={})=>{const{shiftHeading:n=0,tocMaxDepth:r=2}=e,s=new Br({gfm:!0,breaks:!0},Qi({cardHeadingLevel:`h${Hu(3+n)}`})),u=ju(s.parse(t,{async:!1})),{headings:l}=Ai(u,document,{shiftHeading:n,tocMaxDepth:r}),o=document.createElement("div");return o.appendChild(u),{html:o.innerHTML,headings:l}},qu={html:"",headings:[]},An=({items:t})=>ee.jsx(ee.Fragment,{children:t.map(e=>ee.jsxs("li",{children:[ee.jsx(A.Link,{href:`#${e.id}`,children:e.value}),e.children?ee.jsx(A.Ul,{children:ee.jsx(An,{items:e.children})}):null]},e.id))}),Gu=({children:t,showToc:e,tocTitle:n="目次",shiftHeading:r=0,tocMaxDepth:s=2})=>{const[{html:u,headings:l},o]=Rt.useState(qu);return Rt.useEffect(()=>{o(zr(t,{shiftHeading:r,tocMaxDepth:s}))},[t,r,s]),Rt.useEffect(()=>{if(!u)return;const c=decodeURI(window.location.hash.slice(1));c&&document.getElementById(c)?.scrollIntoView()},[u]),ee.jsxs("div",{className:"py-8 flex flex-col gap-8",children:[e&&l.length>0&&ee.jsxs("nav",{className:"rounded-3xl p-10 bg-yellow-50",children:[ee.jsx("h2",{className:"mb-4 font-bold text-h-xs-m sm:text-h-xs",children:n}),ee.jsx(A.Ul,{children:ee.jsx(An,{items:l})})]}),ee.jsx("div",{className:"flex flex-col gap-8",dangerouslySetInnerHTML:{__html:u}})]})};exports.Markdown=Gu;exports.TableOfContents=An;exports.render=zr;
69
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${pe(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let r=this.parser.parseInline(n),s=tr(t);if(s===null)return r;t=s;let o='<a href="'+t+'"';return e&&(o+=' title="'+pe(e)+'"'),o+=">"+r+"</a>",o}image({href:t,title:e,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let s=tr(t);if(s===null)return pe(n);t=s;let o=`<img src="${t}" alt="${pe(n)}"`;return e&&(o+=` title="${pe(e)}"`),o+=">",o}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:pe(t.text)}},Fn=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}checkbox({raw:t}){return t}},oe=class ln{options;renderer;textRenderer;constructor(e){this.options=e||ve,this.options.renderer=this.options.renderer||new Ot,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Fn}static parse(e,n){return new ln(n).parse(e)}static parseInline(e,n){return new ln(n).parseInline(e)}parse(e){this.renderer.parser=this;let n="";for(let r=0;r<e.length;r++){let s=e[r];if(this.options.extensions?.renderers?.[s.type]){let l=s,u=this.options.extensions.renderers[l.type].call({parser:this},l);if(u!==!1||!["space","hr","heading","code","table","blockquote","list","checkbox","html","def","paragraph","text"].includes(l.type)){n+=u||"";continue}}let o=s;switch(o.type){case"space":{n+=this.renderer.space(o);break}case"hr":{n+=this.renderer.hr(o);break}case"heading":{n+=this.renderer.heading(o);break}case"code":{n+=this.renderer.code(o);break}case"table":{n+=this.renderer.table(o);break}case"blockquote":{n+=this.renderer.blockquote(o);break}case"list":{n+=this.renderer.list(o);break}case"checkbox":{n+=this.renderer.checkbox(o);break}case"html":{n+=this.renderer.html(o);break}case"def":{n+=this.renderer.def(o);break}case"paragraph":{n+=this.renderer.paragraph(o);break}case"text":{n+=this.renderer.text(o);break}default:{let l='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(l),"";throw new Error(l)}}}return n}parseInline(e,n=this.renderer){this.renderer.parser=this;let r="";for(let s=0;s<e.length;s++){let o=e[s];if(this.options.extensions?.renderers?.[o.type]){let u=this.options.extensions.renderers[o.type].call({parser:this},o);if(u!==!1||!["escape","html","link","image","checkbox","strong","em","codespan","br","del","text"].includes(o.type)){r+=u||"";continue}}let l=o;switch(l.type){case"escape":{r+=n.text(l);break}case"html":{r+=n.html(l);break}case"link":{r+=n.link(l);break}case"image":{r+=n.image(l);break}case"checkbox":{r+=n.checkbox(l);break}case"strong":{r+=n.strong(l);break}case"em":{r+=n.em(l);break}case"codespan":{r+=n.codespan(l);break}case"br":{r+=n.br(l);break}case"del":{r+=n.del(l);break}case"text":{r+=n.text(l);break}default:{let u='Token with "'+l.type+'" type was not found.';if(this.options.silent)return console.error(u),"";throw new Error(u)}}}return r}},ut=class{options;block;constructor(t){this.options=t||ve}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(t=this.block){return t?ie.lex:ie.lexInline}provideParser(t=this.block){return t?oe.parse:oe.parseInline}},vr=class{defaults=pn();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=oe;Renderer=Ot;TextRenderer=Fn;Lexer=ie;Tokenizer=vt;Hooks=ut;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let r of t)switch(n=n.concat(e.call(this,r)),r.type){case"table":{let s=r;for(let o of s.header)n=n.concat(this.walkTokens(o.tokens,e));for(let o of s.rows)for(let l of o)n=n.concat(this.walkTokens(l.tokens,e));break}case"list":{let s=r;n=n.concat(this.walkTokens(s.items,e));break}default:{let s=r;this.defaults.extensions?.childTokens?.[s.type]?this.defaults.extensions.childTokens[s.type].forEach(o=>{let l=s[o].flat(1/0);n=n.concat(this.walkTokens(l,e))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let r={...n};if(r.async=this.defaults.async||r.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let o=e.renderers[s.name];o?e.renderers[s.name]=function(...l){let u=s.renderer.apply(this,l);return u===!1&&(u=o.apply(this,l)),u}:e.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let o=e[s.level];o?o.unshift(s.tokenizer):e[s.level]=[s.tokenizer],s.start&&(s.level==="block"?e.startBlock?e.startBlock.push(s.start):e.startBlock=[s.start]:s.level==="inline"&&(e.startInline?e.startInline.push(s.start):e.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(e.childTokens[s.name]=s.childTokens)}),r.extensions=e),n.renderer){let s=this.defaults.renderer||new Ot(this.defaults);for(let o in n.renderer){if(!(o in s))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;let l=o,u=n.renderer[l],c=s[l];s[l]=(...h)=>{let g=u.apply(s,h);return g===!1&&(g=c.apply(s,h)),g||""}}r.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new vt(this.defaults);for(let o in n.tokenizer){if(!(o in s))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;let l=o,u=n.tokenizer[l],c=s[l];s[l]=(...h)=>{let g=u.apply(s,h);return g===!1&&(g=c.apply(s,h)),g}}r.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new ut;for(let o in n.hooks){if(!(o in s))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;let l=o,u=n.hooks[l],c=s[l];ut.passThroughHooks.has(o)?s[l]=h=>{if(this.defaults.async&&ut.passThroughHooksRespectAsync.has(o))return(async()=>{let m=await u.call(s,h);return c.call(s,m)})();let g=u.call(s,h);return c.call(s,g)}:s[l]=(...h)=>{if(this.defaults.async)return(async()=>{let m=await u.apply(s,h);return m===!1&&(m=await c.apply(s,h)),m})();let g=u.apply(s,h);return g===!1&&(g=c.apply(s,h)),g}}r.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,o=n.walkTokens;r.walkTokens=function(l){let u=[];return u.push(o.call(this,l)),s&&(u=u.concat(s.call(this,l))),u}}this.defaults={...this.defaults,...r}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return ie.lex(t,e??this.defaults)}parser(t,e){return oe.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let r={...n},s={...this.defaults,...r},o=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&r.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||e===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let l=s.hooks?await s.hooks.preprocess(e):e,u=await(s.hooks?await s.hooks.provideLexer(t):t?ie.lex:ie.lexInline)(l,s),c=s.hooks?await s.hooks.processAllTokens(u):u;s.walkTokens&&await Promise.all(this.walkTokens(c,s.walkTokens));let h=await(s.hooks?await s.hooks.provideParser(t):t?oe.parse:oe.parseInline)(c,s);return s.hooks?await s.hooks.postprocess(h):h})().catch(o);try{s.hooks&&(e=s.hooks.preprocess(e));let l=(s.hooks?s.hooks.provideLexer(t):t?ie.lex:ie.lexInline)(e,s);s.hooks&&(l=s.hooks.processAllTokens(l)),s.walkTokens&&this.walkTokens(l,s.walkTokens);let u=(s.hooks?s.hooks.provideParser(t):t?oe.parse:oe.parseInline)(l,s);return s.hooks&&(u=s.hooks.postprocess(u)),u}catch(l){return o(l)}}}onError(t,e){return n=>{if(n.message+=`
70
+ Please report this to https://github.com/markedjs/marked.`,t){let r="<p>An error occurred:</p><pre>"+pe(n.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(n);throw n}}},Be=new vr;function _(t,e){return Be.parse(t,e)}_.options=_.setOptions=function(t){return Be.setOptions(t),_.defaults=Be.defaults,kr(_.defaults),_};_.getDefaults=pn;_.defaults=ve;function ri(...t){return Be.use(...t),_.defaults=Be.defaults,kr(_.defaults),_}_.use=ri;_.walkTokens=function(t,e){return Be.walkTokens(t,e)};_.parseInline=Be.parseInline;_.Parser=oe;_.parser=oe.parse;_.Renderer=Ot;_.TextRenderer=Fn;_.Lexer=ie;_.lexer=ie.lex;_.Tokenizer=vt;_.Hooks=ut;_.parse=_;_.options;_.setOptions;_.walkTokens;_.parseInline;oe.parse;ie.lex;const si=t=>{const e=[],n=[];let r=-1,s=-1;for(const{children:o,...l}of t){if(r<l.depth&&l.depth<=s+1){const u=l.depth-r;s=l.depth;const c=n[u-1];c.children??=[],c.children.push(l),n[u]=l;continue}e.push(l),n[0]=l,r=s=l.depth}return e};var ir;(t=>{t.clickable=`
71
+ px-2
72
+ min-h-[calc(44/16*1rem)]
73
+ border
74
+ border-transparent
75
+ rounded-lg
76
+ hover:bg-solid-gray-50
77
+ `,t.selected=`
78
+ rounded-full
79
+ bg-yellow-50
80
+ `;const e=`
81
+ focus-visible:outline-4
82
+ focus-visible:outline-black
83
+ focus-visible:ring-yellow-300
84
+ `;t.focusRectCondensed=`
85
+ ${e}
86
+ focus-visible:-outline-offset-4
87
+ focus-visible:ring-[calc(6/16*1rem)]
88
+ focus-visible:ring-inset
89
+ `,t.focusRectCondensedWithBg=`
90
+ ${t.focusRectCondensed}
91
+ focus-visible:bg-yellow-300
92
+ `,t.focusRect=`
93
+ ${e}
94
+ focus-visible:outline-offset-[calc(2/16*1rem)]
95
+ focus-visible:ring-[calc(2/16*1rem)]
96
+ `,t.focusRounded=`
97
+ ${t.focusRect}
98
+ focus-visible:rounded-sm
99
+ `,t.focusCard=`
100
+ ${t.focusRect}
101
+ focus-visible:rounded-2xl
102
+ sm:focus-visible:rounded-3xl
103
+ `,t.focusRectWithBg=`
104
+ ${t.focusRect}
105
+ focus-visible:bg-yellow-300
106
+ `,t.focusRoundedWithBg=`
107
+ ${t.focusRectWithBg}
108
+ focus-visible:rounded-sm
109
+ `,t.hoverUnderline=`
110
+ hover:underline
111
+ hover:underline-offset-[calc(3/16*1rem)]
112
+ `,t.underline=`
113
+ underline
114
+ underline-offset-[calc(3/16*1rem)]
115
+ hover:decoration-[calc(3/16*1rem)]
116
+ `,t.underlineNoDeco=`
117
+ underline
118
+ underline-offset-[calc(3/16*1rem)]
119
+ `,t.popover=`
120
+ min-w-fit
121
+ w-auto
122
+ py-2
123
+ bg-white
124
+ shadow-1
125
+ rounded-lg
126
+ border
127
+ border-solid-gray-420
128
+ has-[>:nth-child(7)]:rounded-r-none
129
+ `,(n=>{n.focus=`
130
+ peer-focus-visible:outline-4
131
+ peer-focus-visible:outline-black
132
+ peer-focus-visible:ring-yellow-300
133
+ `,n.focusRect=`
134
+ ${n.focus}
135
+ peer-focus-visible:outline-offset-[calc(2/16*1rem)]
136
+ peer-focus-visible:ring-[calc(2/16*1rem)]
137
+ `})(t.Peer||(t.Peer={}))})(ir||(ir={}));const ii=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-\uA95F\uA97D-\uA97F\uA9C1-\uA9CE\uA9DA-\uA9DF\uA9FF\uAA37-\uAA3F\uAA4E\uAA4F\uAA5A-\uAA5F\uAA77-\uAA79\uAAC3-\uAADA\uAADE\uAADF\uAAF0\uAAF1\uAAF7-\uAB00\uAB07\uAB08\uAB0F\uAB10\uAB17-\uAB1F\uAB27\uAB2F\uAB5B\uAB6A-\uAB6F\uABEB\uABEE\uABEF\uABFA-\uABFF\uD7A4-\uD7AF\uD7C7-\uD7CA\uD7FC-\uD7FF\uE000-\uF8FF\uFA6E\uFA6F\uFADA-\uFAFF\uFB07-\uFB12\uFB18-\uFB1C\uFB29\uFB37\uFB3D\uFB3F\uFB42\uFB45\uFBB2-\uFBD2\uFD3E-\uFD4F\uFD90\uFD91\uFDC8-\uFDEF\uFDFC-\uFDFF\uFE10-\uFE1F\uFE30-\uFE32\uFE35-\uFE4C\uFE50-\uFE6F\uFE75\uFEFD-\uFF0F\uFF1A-\uFF20\uFF3B-\uFF3E\uFF40\uFF5B-\uFF65\uFFBF-\uFFC1\uFFC8\uFFC9\uFFD0\uFFD1\uFFD8\uFFD9\uFFDD-\uFFFF]|\uD800[\uDC0C\uDC27\uDC3B\uDC3E\uDC4E\uDC4F\uDC5E-\uDC7F\uDCFB-\uDD3F\uDD75-\uDDFC\uDDFE-\uDE7F\uDE9D-\uDE9F\uDED1-\uDEDF\uDEE1-\uDEFF\uDF20-\uDF2C\uDF4B-\uDF4F\uDF7B-\uDF7F\uDF9E\uDF9F\uDFC4-\uDFC7\uDFD0\uDFD6-\uDFFF]|\uD801[\uDC9E\uDC9F\uDCAA-\uDCAF\uDCD4-\uDCD7\uDCFC-\uDCFF\uDD28-\uDD2F\uDD64-\uDDFF\uDF37-\uDF3F\uDF56-\uDF5F\uDF68-\uDFFF]|\uD802[\uDC06\uDC07\uDC09\uDC36\uDC39-\uDC3B\uDC3D\uDC3E\uDC56-\uDC5F\uDC77-\uDC7F\uDC9F-\uDCDF\uDCF3\uDCF6-\uDCFF\uDD16-\uDD1F\uDD3A-\uDD7F\uDDB8-\uDDBD\uDDC0-\uDDFF\uDE04\uDE07-\uDE0B\uDE14\uDE18\uDE36\uDE37\uDE3B-\uDE3E\uDE40-\uDE5F\uDE7D-\uDE7F\uDE9D-\uDEBF\uDEC8\uDEE7-\uDEFF\uDF36-\uDF3F\uDF56-\uDF5F\uDF73-\uDF7F\uDF92-\uDFFF]|\uD803[\uDC49-\uDC7F\uDCB3-\uDCBF\uDCF3-\uDCFF\uDD28-\uDD2F\uDD3A-\uDE7F\uDEAA\uDEAD-\uDEAF\uDEB2-\uDEFF\uDF1D-\uDF26\uDF28-\uDF2F\uDF51-\uDFAF\uDFC5-\uDFDF\uDFF7-\uDFFF]|\uD804[\uDC47-\uDC65\uDC70-\uDC7E\uDCBB-\uDCCF\uDCE9-\uDCEF\uDCFA-\uDCFF\uDD35\uDD40-\uDD43\uDD48-\uDD4F\uDD74\uDD75\uDD77-\uDD7F\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDFF\uDE12\uDE38-\uDE3D\uDE3F-\uDE7F\uDE87\uDE89\uDE8E\uDE9E\uDEA9-\uDEAF\uDEEB-\uDEEF\uDEFA-\uDEFF\uDF04\uDF0D\uDF0E\uDF11\uDF12\uDF29\uDF31\uDF34\uDF3A\uDF45\uDF46\uDF49\uDF4A\uDF4E\uDF4F\uDF51-\uDF56\uDF58-\uDF5C\uDF64\uDF65\uDF6D-\uDF6F\uDF75-\uDFFF]|\uD805[\uDC4B-\uDC4F\uDC5A-\uDC5D\uDC62-\uDC7F\uDCC6\uDCC8-\uDCCF\uDCDA-\uDD7F\uDDB6\uDDB7\uDDC1-\uDDD7\uDDDE-\uDDFF\uDE41-\uDE43\uDE45-\uDE4F\uDE5A-\uDE7F\uDEB9-\uDEBF\uDECA-\uDEFF\uDF1B\uDF1C\uDF2C-\uDF2F\uDF3A-\uDFFF]|\uD806[\uDC3B-\uDC9F\uDCEA-\uDCFE\uDD07\uDD08\uDD0A\uDD0B\uDD14\uDD17\uDD36\uDD39\uDD3A\uDD44-\uDD4F\uDD5A-\uDD9F\uDDA8\uDDA9\uDDD8\uDDD9\uDDE2\uDDE5-\uDDFF\uDE3F-\uDE46\uDE48-\uDE4F\uDE9A-\uDE9C\uDE9E-\uDEBF\uDEF9-\uDFFF]|\uD807[\uDC09\uDC37\uDC41-\uDC4F\uDC5A-\uDC71\uDC90\uDC91\uDCA8\uDCB7-\uDCFF\uDD07\uDD0A\uDD37-\uDD39\uDD3B\uDD3E\uDD48-\uDD4F\uDD5A-\uDD5F\uDD66\uDD69\uDD8F\uDD92\uDD99-\uDD9F\uDDAA-\uDEDF\uDEF7-\uDFAF\uDFB1-\uDFFF]|\uD808[\uDF9A-\uDFFF]|\uD809[\uDC6F-\uDC7F\uDD44-\uDFFF]|[\uD80A\uD80B\uD80E-\uD810\uD812-\uD819\uD824-\uD82B\uD82D\uD82E\uD830-\uD833\uD837\uD839\uD83D\uD83F\uD87B-\uD87D\uD87F\uD885-\uDB3F\uDB41-\uDBFF][\uDC00-\uDFFF]|\uD80D[\uDC2F-\uDFFF]|\uD811[\uDE47-\uDFFF]|\uD81A[\uDE39-\uDE3F\uDE5F\uDE6A-\uDECF\uDEEE\uDEEF\uDEF5-\uDEFF\uDF37-\uDF3F\uDF44-\uDF4F\uDF5A-\uDF62\uDF78-\uDF7C\uDF90-\uDFFF]|\uD81B[\uDC00-\uDE3F\uDE80-\uDEFF\uDF4B-\uDF4E\uDF88-\uDF8E\uDFA0-\uDFDF\uDFE2\uDFE5-\uDFEF\uDFF2-\uDFFF]|\uD821[\uDFF8-\uDFFF]|\uD823[\uDCD6-\uDCFF\uDD09-\uDFFF]|\uD82C[\uDD1F-\uDD4F\uDD53-\uDD63\uDD68-\uDD6F\uDEFC-\uDFFF]|\uD82F[\uDC6B-\uDC6F\uDC7D-\uDC7F\uDC89-\uDC8F\uDC9A-\uDC9C\uDC9F-\uDFFF]|\uD834[\uDC00-\uDD64\uDD6A-\uDD6C\uDD73-\uDD7A\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDE41\uDE45-\uDFFF]|\uD835[\uDC55\uDC9D\uDCA0\uDCA1\uDCA3\uDCA4\uDCA7\uDCA8\uDCAD\uDCBA\uDCBC\uDCC4\uDD06\uDD0B\uDD0C\uDD15\uDD1D\uDD3A\uDD3F\uDD45\uDD47-\uDD49\uDD51\uDEA6\uDEA7\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3\uDFCC\uDFCD]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85-\uDE9A\uDEA0\uDEB0-\uDFFF]|\uD838[\uDC07\uDC19\uDC1A\uDC22\uDC25\uDC2B-\uDCFF\uDD2D-\uDD2F\uDD3E\uDD3F\uDD4A-\uDD4D\uDD4F-\uDEBF\uDEFA-\uDFFF]|\uD83A[\uDCC5-\uDCCF\uDCD7-\uDCFF\uDD4C-\uDD4F\uDD5A-\uDFFF]|\uD83B[\uDC00-\uDDFF\uDE04\uDE20\uDE23\uDE25\uDE26\uDE28\uDE33\uDE38\uDE3A\uDE3C-\uDE41\uDE43-\uDE46\uDE48\uDE4A\uDE4C\uDE50\uDE53\uDE55\uDE56\uDE58\uDE5A\uDE5C\uDE5E\uDE60\uDE63\uDE65\uDE66\uDE6B\uDE73\uDE78\uDE7D\uDE7F\uDE8A\uDE9C-\uDEA0\uDEA4\uDEAA\uDEBC-\uDFFF]|\uD83C[\uDC00-\uDD2F\uDD4A-\uDD4F\uDD6A-\uDD6F\uDD8A-\uDFFF]|\uD83E[\uDC00-\uDFEF\uDFFA-\uDFFF]|\uD869[\uDEDE-\uDEFF]|\uD86D[\uDF35-\uDF3F]|\uD86E[\uDC1E\uDC1F]|\uD873[\uDEA2-\uDEAF]|\uD87A[\uDFE1-\uDFFF]|\uD87E[\uDE1E-\uDFFF]|\uD884[\uDF4B-\uDFFF]|\uDB40[\uDC00-\uDCFF\uDDF0-\uDFFF]/g,oi=Object.hasOwnProperty;class ui{constructor(){this.occurrences,this.reset()}slug(e,n){const r=this;let s=li(e,n===!0);const o=s;for(;oi.call(r.occurrences,s);)r.occurrences[o]++,s=o+"-"+r.occurrences[o];return r.occurrences[s]=0,s}reset(){this.occurrences=Object.create(null)}}function li(t,e){return typeof t!="string"?"":(e||(t=t.toLowerCase()),t.replace(ii,"").replace(/ /g,"-"))}const ai={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ci=t=>String(t).replace(/[&<>"']/g,e=>ai[e]??e),pi=t=>Array.from(t).filter(e=>{const n=e.codePointAt(0)??0;return n>31&&n!==127}).join(""),at=t=>{if(t==null||t==="")return;const e=pi(String(t)).trim();if(!/^(?:javascript|vbscript|file):/i.test(e)&&!/^data:/i.test(e))return e},fi=new Set(["alt"]),hi=t=>Object.entries(t).filter(([e,n])=>n!=null&&n!==!1&&(n!==""||fi.has(e))).map(([e,n])=>n===!0?` ${e}`:` ${e}="${ci(n)}"`).join(""),O=(...t)=>t.filter(Boolean).join(" ").split(/\s+/).filter(Boolean).join(" "),di={h1:A.styles.headingStyle.h1,h2:A.styles.headingStyle.h2,h3:A.styles.headingStyle.h3,h4:A.styles.headingStyle.h4,h5:A.styles.headingStyle.h5,h6:A.styles.headingStyle.h6,ul:A.styles.ulStyle,ol:A.styles.olStyle,pre:A.styles.preStyle,code:A.styles.codeStyle,table:A.styles.tableBorderStyle,caption:A.styles.captionStyle,th:O(A.styles.thStyle,A.styles.tableBorderStyle),tr:A.styles.tableBorderStyle,td:O(A.styles.tdStyle,A.styles.tableBorderStyle),a:A.styles.linkStyle},Di=t=>t.hasAttribute("data-styled"),gi=t=>Array.from(new Set(["noopener","noreferrer",...(t??"").split(/\s+/).filter(Boolean)])).join(" "),mi=(t,e)=>{const n=O(t.getAttribute("class")??"",e);n&&t.setAttribute("class",n)},Fi=new Set(["h1","h2","h3","h4","h5","h6"]),Ai=(t,e)=>{if(t.querySelector("[data-new-tab]"))return;const n=e.createElement("span");n.setAttribute("aria-hidden","true"),n.setAttribute("data-new-tab","true"),n.setAttribute("class",O(A.styles.iconSizeStyle[16],A.styles.iconStyle,"ml-0.5")),n.textContent="open_in_new";const r=e.createElement("span");r.setAttribute("class","sr-only"),r.textContent="Opens in new tab",t.append(n,r)},Ei=t=>Math.min(6,Math.max(1,t)),bi=(t,e,n)=>{const{shiftHeading:r,tocMaxDepth:s}=n,o=new ui,l=[];if(r!==0)for(const u of Array.from(t.querySelectorAll("h1,h2,h3,h4,h5,h6"))){const c=Number(u.tagName[1]),h=e.createElement(`h${Ei(c+r)}`);for(const g of Array.from(u.attributes))h.setAttribute(g.name,g.value);h.innerHTML=u.innerHTML,u.replaceWith(h)}for(const u of Array.from(t.querySelectorAll("*"))){const c=u.tagName.toLowerCase();if(Fi.has(c)){const g=u.textContent??"",m=u.getAttribute("id");m&&o.slug(m);const k=m||o.slug(g);u.setAttribute("id",k),l.push({id:k,depth:Number(c[1])-r,value:g})}if(Di(u))continue;c==="a"&&((u.getAttribute("href")??"").startsWith("http")||u.getAttribute("target")==="_blank")&&(u.setAttribute("target","_blank"),u.setAttribute("rel",gi(u.getAttribute("rel"))),Ai(u,e));const h=di[c];h&&mi(u,h)}for(const u of Array.from(t.querySelectorAll("table"))){if(u.parentElement?.dataset?.tableContainer==="true")continue;const h=e.createElement("div");h.setAttribute("class",O(A.styles.overflowContainerStyle)),h.dataset.tableContainer="true",u.replaceWith(h),h.appendChild(u)}return{headings:si(l.filter(u=>u.depth<=s))}},Kt=/([#.])?([A-Za-z_:][-A-Za-z0-9_.:]*)(?:\s*=\s*(?:"([^"]*)"|'([^']*)'|([^\s"'{}]+)))?/g,Or="#id",ki=t=>{const e={};if(!t)return e;Kt.lastIndex=0;let n=Kt.exec(t);for(;n!==null;){const[,r,s,o,l,u]=n,c=o??l??u;r==="#"?e[Or]=s:r==="."?e.class=e.class?`${e.class} ${s}`:s:e[s]=c??"",n=Kt.exec(t)}return e},or=(t,e,n,r)=>{if(t[e]!==n)return null;let s=0;for(let o=e;o<t.length;o++){const l=t[o];if(l==="\\"){o++;continue}if(l===`
138
+ `)return null;if(l===n)s++;else if(l===r&&(s--,s===0))return{value:t.slice(e+1,o),end:o+1}}return null},Lr=(t,e)=>{let n=null;const r=or(t,e,"[","]");r&&(n=r.value,e=r.end);let s={};const o=or(t,e,"{","}");return o&&(s=ki(o.value),e=o.end),{label:n,attrs:s,end:e}},J="container",se="leaf",Lt="text",yi={card:[J],"card-img":[se],"card-title":[se,J],"card-description":[se,J],"card-footer":[se,J],faq:[J],"faq-q":[se,J],"faq-a":[se,J],cell:[J],"cell-img":[se],img:[se],youtube:[se,J],"link-button":[Lt]},$r=/^grid-cols-(?:1[0-2]|[1-9])$/,Pr=(t,e)=>$r.test(t)?e===J:(yi[t]??[]).includes(e),Ci=O(A.styles.cardImgStyle,"w-full aspect-[352/226]"),xi=(t,e)=>`<span aria-hidden="true" class="${O(A.styles.iconSizeStyle[16],A.styles.iconStyle)}">${t}</span><span class="sr-only">${e}</span>`,Ti={card:({token:t,attrs:e,root:n,body:r,nl:s})=>{const o=!!t.linked,l=O(A.styles.cardStyle,o&&A.styles.linkCardPositionStyle,o&&A.styles.linkCardHoverStyle,o&&A.styles.linkCardFocusStyle,e.class),u=`<div${n({class:l})}>${r()}</div>`;return t.listed?`<li class="sm:grid">${u}</li>${s}`:`${u}${s}`},"card-img":({attrs:t,root:e,nl:n})=>`<img${e({class:O(Ci,t.class),src:at(t.src),alt:t.alt??""})}>${n}`,"card-title":({token:t,attrs:e,root:n,own:r,body:s,nl:o,options:l})=>{const u=l.cardHeadingLevel,c=t.inherited?at(t.inherited.href):void 0;return c?`<${u}${n({class:O(A.styles.cardHeaderStyle,A.styles.linkCardHeadingStyle)})}><a${r({class:O(A.styles.linkCardOverlayStyle),href:c})}>${s()}</a></${u}>${o}`:`<${u}${n({class:O(A.styles.cardHeaderStyle,e.class)})}>${s()}</${u}>${o}`},"card-description":({attrs:t,root:e,body:n,nl:r})=>`<div${e({class:O(A.styles.cardBodyStyle,t.class)})}>${n()}</div>${r}`,"card-footer":({token:t,attrs:e,root:n,body:r,nl:s})=>{const o=!!t.inherited,l=O(A.styles.cardFooterPositionStyle,A.styles.cardBodyStyle,o&&A.styles.linkCardFooterStyle,e.class);if(o){const u=`<span class="${O(A.styles.linkCardArrowStyle,A.styles.linkCardArrowHoverStyle)}">${xi("arrow_forward","")}</span>`;return`<div${n({class:l})}><span>${r()}</span>${u}</div>${s}`}return`<div${n({class:l})}>${r()}</div>${s}`}},_i={faq:({root:t,body:e,nl:n})=>`<dl${t({class:O(A.styles.faqStyle)})}>${e()}</dl>${n}`,"faq-q":({root:t,body:e,nl:n})=>`<dt${t({class:O(A.styles.questionStyle,A.styles.faqMarkerStyle)})}><span aria-hidden="true">Q</span><span>${e()}</span></dt>${n}`,"faq-a":({root:t,body:e,nl:n})=>`<dd${t({class:O(A.styles.answerStyle)})}><span class="${O(A.styles.faqMarkerStyle,"!leading-none")}" aria-hidden="true">A</span><span>${e()}</span></dd>${n}`},wi=(t,e)=>{const n=[];return t&&n.push(`width:${t}px`),e&&n.push(`height:${e}px`),t&&n.push("max-width:100%"),n.length>0?n.join(";"):void 0},Si={img:({attrs:t,root:e,nl:n})=>`<img${e({class:O(t.class),src:at(t.src),alt:t.alt??"",style:wi(t.width,t.height)})}>${n}`},Ri={1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-6",8:"md:grid-cols-6",9:"md:grid-cols-6",10:"md:grid-cols-6",11:"md:grid-cols-6",12:"md:grid-cols-12"},Bi=({token:t,root:e,body:n,nl:r})=>{const s=Number(t.name.slice(10)),o=O("flex flex-col md:grid",Ri[s],"gap-8"),l=t.listed?"ul":"div";return`<${l}${e({class:o})}>${n()}</${l}>${r}`},vi={cell:({attrs:t,root:e,body:n,nl:r})=>`<div${e({class:t.class})}>${n()}</div>${r}`,"cell-img":({attrs:t,root:e,nl:n})=>`<img${e({class:O("mb-4",t.class),src:at(t.src),alt:t.alt??""})}>${n}`},Oi=O(A.styles.buttonBaseStyle,A.styles.getButtonVariantStyle("secondary"),A.styles.getButtonSizeStyle("lg")),Li={"link-button":({attrs:t,root:e,body:n})=>`<a${e({class:Oi,href:at(t.href)})}>${n()}</a>`},$i="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",Pi="strict-origin-when-cross-origin",Ii=/^[\w-]{11}$/,Ni=/(?:youtu\.be\/|[?&]v=|\/embed\/|\/shorts\/)([\w-]{11})/,Mi=t=>t?Ii.test(t)?t:Ni.exec(t)?.[1]??t:"",zi={youtube:({token:t,attrs:e,root:n,nl:r,parser:s})=>{const o=s.parseInline(t.tokens,s.textRenderer);return`<iframe${n({title:o,src:`https://www.youtube-nocookie.com/embed/${encodeURIComponent(Mi(e.video))}`,class:"aspect-video w-full max-w-[470px]",style:e.width?`width:${e.width}px`:void 0,frameborder:"0",allow:$i,referrerpolicy:Pi,allowfullscreen:!0,loading:"lazy"})}></iframe>${r}`}},Ui={...Ti,...vi,..._i,...Si,...zi,...Li},ji=t=>Ui[t]??($r.test(t)?Bi:void 0);function Hi(t,e){const{name:n,kind:r,attrs:s,tokens:o}=t,l=r===Lt?"":`
139
+ `,u=g=>hi({...g,"data-styled":n}),c={token:t,attrs:s,nl:l,own:u,root:g=>u({...g,id:s[Or]}),body:()=>r===J?this.parser.parse(o):this.parser.parseInline(o),parser:this.parser,options:e},h=ji(n);return h?h(c):c.body()+l}const qi=/^(:{2,})([A-Za-z][A-Za-z0-9_-]*)/,Wi=/^:([A-Za-z][A-Za-z0-9_-]*)/,Gi=(t,e)=>{const n=new RegExp(`^:{${e},}[ \\t]*$`);let r=0;for(const s of t.split(`
140
+ `)){if(n.test(s))return{contentEnd:r,rawEnd:Math.min(r+s.length+1,t.length)};r+=s.length+1}return null},Yi=t=>{const e=/\n:{2,}[A-Za-z]/.exec(t);return e?e.index:void 0},Zi=t=>{const e=/:[A-Za-z][A-Za-z0-9_-]*\[/.exec(t);return e?e.index:void 0},Xi=t=>{if(!/^grid-cols-\d+$/.test(t.name))return;const e=t.tokens.filter(r=>r.type!=="space"),n=e.filter(r=>r.type==="directive"&&r.name==="card");if(!(n.length===0||n.length!==e.length)){t.listed=!0;for(const r of n)r.listed=!0}},Vi=t=>{if(t.name!=="card"||!t.attrs.href)return;const e=t.tokens;if(e.some(r=>r.type==="directive"&&r.name==="card-title")){t.linked=!0;for(const r of e)r.type==="directive"&&(r.name==="card-title"||r.name==="card-footer")&&(r.inherited={behavior:"link",href:t.attrs.href??""})}};function Qi(t){const e=qi.exec(t);if(!e)return;const[,n,r]=e,s=n.length>=3?J:se;if(!Pr(r,s))return;const o=Lr(t,e[0].length),l=/^[ \t]*(?:\n|$)/.exec(t.slice(o.end));if(!l)return;const u=o.end+l[0].length,c={type:"directive",kind:s,name:r,attrs:o.attrs,tokens:[],raw:t.slice(0,u)};if(s===se)return o.label&&this.lexer.inline(o.label,c.tokens),c;const h=t.slice(u),g=Gi(h,n.length);return c.raw=t.slice(0,u+(g?g.rawEnd:h.length)),c.tokens=this.lexer.blockTokens(g?h.slice(0,g.contentEnd):h),Vi(c),Xi(c),c}function Ki(t){const e=Wi.exec(t);if(!e)return;const[,n]=e;if(!Pr(n,Lt))return;const r=Lr(t,e[0].length);if(r.label!==null)return{type:"directive",kind:Lt,name:n,attrs:r.attrs,tokens:this.lexer.inlineTokens(r.label),raw:t.slice(0,r.end)}}const Ji=t=>({extensions:[{name:"directive",level:"inline",start:Zi,tokenizer:Ki},{name:"directive",level:"block",start:Yi,tokenizer:Qi,renderer(e){return Hi.call(this,e,t)}}]});function ur(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function eo(t){if(Array.isArray(t))return t}function to(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r,s,o,l,u=[],c=!0,h=!1;try{if(o=(n=n.call(t)).next,e!==0)for(;!(c=(r=o.call(n)).done)&&(u.push(r.value),u.length!==e);c=!0);}catch(g){h=!0,s=g}finally{try{if(!c&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(h)throw s}}return u}}function no(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
141
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ro(t,e){return eo(t)||to(t,e)||so(t,e)||no()}function so(t,e){if(t){if(typeof t=="string")return ur(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ur(t,e):void 0}}const Ir=Object.entries,lr=Object.setPrototypeOf,io=Object.isFrozen,oo=Object.getPrototypeOf,uo=Object.getOwnPropertyDescriptor;let N=Object.freeze,z=Object.seal,He=Object.create,Nr=typeof Reflect<"u"&&Reflect,an=Nr.apply,cn=Nr.construct;N||(N=function(e){return e});z||(z=function(e){return e});an||(an=function(e,n){for(var r=arguments.length,s=new Array(r>2?r-2:0),o=2;o<r;o++)s[o-2]=arguments[o];return e.apply(n,s)});cn||(cn=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return new e(...r)});const Se=I(Array.prototype.forEach),lo=I(Array.prototype.lastIndexOf),ar=I(Array.prototype.pop),rt=I(Array.prototype.push),ao=I(Array.prototype.splice),qe=Array.isArray,lt=I(String.prototype.toLowerCase),Jt=I(String.prototype.toString),cr=I(String.prototype.match),st=I(String.prototype.replace),pr=I(String.prototype.indexOf),co=I(String.prototype.trim),po=I(Number.prototype.toString),fo=I(Boolean.prototype.toString),fr=typeof BigInt>"u"?null:I(BigInt.prototype.toString),hr=typeof Symbol>"u"?null:I(Symbol.prototype.toString),Z=I(Object.prototype.hasOwnProperty),it=I(Object.prototype.toString),j=I(RegExp.prototype.test),we=ho(TypeError);function I(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),s=1;s<n;s++)r[s-1]=arguments[s];return an(t,e,r)}}function ho(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return cn(t,n)}}function T(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:lt;if(lr&&lr(t,null),!qe(e))return t;let r=e.length;for(;r--;){let s=e[r];if(typeof s=="string"){const o=n(s);o!==s&&(io(e)||(e[r]=o),s=o)}t[s]=!0}return t}function Do(t){for(let e=0;e<t.length;e++)Z(t,e)||(t[e]=null);return t}function V(t){const e=He(null);for(const r of Ir(t)){var n=ro(r,2);const s=n[0],o=n[1];Z(t,s)&&(qe(o)?e[s]=Do(o):o&&typeof o=="object"&&o.constructor===Object?e[s]=V(o):e[s]=o)}return e}function go(t){switch(typeof t){case"string":return t;case"number":return po(t);case"boolean":return fo(t);case"bigint":return fr?fr(t):"0";case"symbol":return hr?hr(t):"Symbol()";case"undefined":return it(t);case"function":case"object":{if(t===null)return it(t);const e=t,n=re(e,"toString");if(typeof n=="function"){const r=n(e);return typeof r=="string"?r:it(r)}return it(t)}default:return it(t)}}function re(t,e){for(;t!==null;){const r=uo(t,e);if(r){if(r.get)return I(r.get);if(typeof r.value=="function")return I(r.value)}t=oo(t)}function n(){return null}return n}function mo(t){try{return j(t,""),!0}catch{return!1}}const dr=N(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),en=N(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),tn=N(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Fo=N(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),nn=N(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ao=N(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Dr=N(["#text"]),gr=N(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),rn=N(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mr=N(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),St=N(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Eo=z(/{{[\w\W]*|^[\w\W]*}}/g),bo=z(/<%[\w\W]*|^[\w\W]*%>/g),ko=z(/\${[\w\W]*/g),yo=z(/^data-[\-\w.\u00B7-\uFFFF]+$/),Co=z(/^aria-[\-\w]+$/),Fr=z(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xo=z(/^(?:\w+script|data):/i),To=z(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),_o=z(/^html$/i),wo=z(/^[a-z][.\w]*(-[.\w]+)+$/i),Ar=z(/<[/\w!]/g),Er=z(/<[/\w]/g),So=z(/<\/no(script|embed|frames)/i),Ro=z(/\/>/i),X={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Mr=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Bo=N(T({},Mr)),vo=(function(){const t={};return Se(Mr,e=>{t[e]=z(new RegExp("</"+e+"(?=[\\t\\n\\f\\r />])","i"))}),N(t)})(),Oo=function(){return typeof window>"u"?null:window},Lo=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const s="data-tt-policy-suffix";n&&n.hasAttribute(s)&&(r=n.getAttribute(s));const o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}},br=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Ee=function(e,n,r,s){return Z(e,n)&&qe(e[n])?T(s.base?V(s.base):{},e[n],s.transform):r},sn=function(e,n,r){const s=Z(e,n)?e[n]:void 0;return s&&typeof s=="object"?V(s):r()};function zr(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Oo();const e=d=>zr(d);if(e.version="3.4.14",e.removed=[],!t||!t.document||t.document.nodeType!==X.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const r=n,s=r.currentScript;t.DocumentFragment;const o=t.HTMLTemplateElement,l=t.Node,u=t.Element,c=t.NodeFilter,h=t.NamedNodeMap;h===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const g=t.DOMParser,m=t.trustedTypes,k=u.prototype,L=re(k,"cloneNode"),x=re(k,"remove"),W=re(k,"nextSibling"),U=re(k,"childNodes"),te=re(k,"parentNode"),be=re(k,"shadowRoot"),ke=re(k,"attributes"),ne=l&&l.prototype?re(l.prototype,"nodeType"):null,Q=l&&l.prototype?re(l.prototype,"nodeName"):null,K=l&&l.prototype?re(l.prototype,"ownerDocument"):null,ye=function(i){return ne?ne(i):i.nodeType},Ge=function(i){return Q?Q(i):i.nodeName};if(typeof o=="function"){const d=n.createElement("template");d.content&&d.content.ownerDocument&&(n=d.content.ownerDocument)}let M,fe="",Ye,Oe=!1,de=0;const ft=function(){if(de>0)throw we('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},ue=function(i){ft(),de++;try{return M.createHTML(i)}finally{de--}},ht=function(i){ft(),de++;try{return M.createScriptURL(i)}finally{de--}},dt=function(){return Oe||(Ye=Lo(m,s),Oe=!0),Ye},Ce=n,Le=Ce.implementation,Ze=Ce.createNodeIterator,f=Ce.createDocumentFragment,y=Ce.getElementsByTagName,S=r.importNode;let b=br();e.isSupported=typeof Ir=="function"&&typeof te=="function"&&Le&&Le.createHTMLDocument!==void 0;const $e=Eo,Xe=bo,$=ko,De=yo,Ve=Co,Pt=xo,En=To,jr=wo;let bn=Fr,R=null;const It=T({},[...dr,...en,...tn,...nn,...Dr]);let B=null;const Nt=T({},[...gr,...rn,...mr,...St]);let le=Object.seal(He(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Qe=null,kn=null;const ge=Object.seal(He(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let yn=!0,Mt=!0,Cn=!1,xn=!0,me=!1,xe=!0,Te=!1,zt=!1,Dt=null,gt=null,Ut=!1,Pe=!1,mt=!1,Ft=!1,Tn=!0,_n=!1;const wn="user-content-";let jt=!0,Ht=!1,Ie={},Ne=null;const Sn=T({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Rn=null;const Bn=T({},["audio","video","img","source","image","track"]);let vn=null;const On=T({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),At="http://www.w3.org/1998/Math/MathML",Et="http://www.w3.org/2000/svg",ae="http://www.w3.org/1999/xhtml";let Me=ae,qt=!1,Wt=null;const Hr=T({},[At,Et,ae],Jt),Ln=N(["mi","mo","mn","ms","mtext"]);let Gt=T({},Ln);const $n=N(["annotation-xml"]);let Yt=T({},$n);const qr=T({},["title","style","font","a","script"]);let Ke=null;const Wr=["application/xhtml+xml","text/html"],Gr="text/html";let P=null,ze=null;const Yr=n.createElement("form"),Pn=function(i){return i instanceof RegExp||i instanceof Function},Zt=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ze&&ze===i)return;(!i||typeof i!="object")&&(i={}),i=V(i),Ke=Wr.indexOf(i.PARSER_MEDIA_TYPE)===-1?Gr:i.PARSER_MEDIA_TYPE,P=Ke==="application/xhtml+xml"?Jt:lt,R=Ee(i,"ALLOWED_TAGS",It,{transform:P}),B=Ee(i,"ALLOWED_ATTR",Nt,{transform:P}),Wt=Ee(i,"ALLOWED_NAMESPACES",Hr,{transform:Jt}),vn=Ee(i,"ADD_URI_SAFE_ATTR",On,{transform:P,base:On}),Rn=Ee(i,"ADD_DATA_URI_TAGS",Bn,{transform:P,base:Bn}),Ne=Ee(i,"FORBID_CONTENTS",Sn,{transform:P}),Qe=Ee(i,"FORBID_TAGS",V({}),{transform:P}),kn=Ee(i,"FORBID_ATTR",V({}),{transform:P}),Ie=Z(i,"USE_PROFILES")?i.USE_PROFILES&&typeof i.USE_PROFILES=="object"?V(i.USE_PROFILES):i.USE_PROFILES:!1,yn=i.ALLOW_ARIA_ATTR!==!1,Mt=i.ALLOW_DATA_ATTR!==!1,Cn=i.ALLOW_UNKNOWN_PROTOCOLS||!1,xn=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,me=i.SAFE_FOR_TEMPLATES||!1,xe=i.SAFE_FOR_XML!==!1,Te=i.WHOLE_DOCUMENT||!1,Pe=i.RETURN_DOM||!1,mt=i.RETURN_DOM_FRAGMENT||!1,Ft=i.RETURN_TRUSTED_TYPE||!1,Ut=i.FORCE_BODY||!1,Tn=i.SANITIZE_DOM!==!1,_n=i.SANITIZE_NAMED_PROPS||!1,jt=i.KEEP_CONTENT!==!1,Ht=i.IN_PLACE||!1,bn=mo(i.ALLOWED_URI_REGEXP)?i.ALLOWED_URI_REGEXP:Fr,Me=typeof i.NAMESPACE=="string"?i.NAMESPACE:ae,Gt=sn(i,"MATHML_TEXT_INTEGRATION_POINTS",()=>T({},Ln)),Yt=sn(i,"HTML_INTEGRATION_POINTS",()=>T({},$n));const a=sn(i,"CUSTOM_ELEMENT_HANDLING",()=>He(null));if(le=He(null),Z(a,"tagNameCheck")&&Pn(a.tagNameCheck)&&(le.tagNameCheck=a.tagNameCheck),Z(a,"attributeNameCheck")&&Pn(a.attributeNameCheck)&&(le.attributeNameCheck=a.attributeNameCheck),Z(a,"allowCustomizedBuiltInElements")&&typeof a.allowCustomizedBuiltInElements=="boolean"&&(le.allowCustomizedBuiltInElements=a.allowCustomizedBuiltInElements),z(le),me&&(Mt=!1),mt&&(Pe=!0),Ie&&(R=T({},Dr),B=He(null),Ie.html===!0&&(T(R,dr),T(B,gr)),Ie.svg===!0&&(T(R,en),T(B,rn),T(B,St)),Ie.svgFilters===!0&&(T(R,tn),T(B,rn),T(B,St)),Ie.mathMl===!0&&(T(R,nn),T(B,mr),T(B,St))),ge.tagCheck=null,ge.attributeCheck=null,Z(i,"ADD_TAGS")&&(typeof i.ADD_TAGS=="function"?ge.tagCheck=i.ADD_TAGS:qe(i.ADD_TAGS)&&(R===It&&(R=V(R)),T(R,i.ADD_TAGS,P))),Z(i,"ADD_ATTR")&&(typeof i.ADD_ATTR=="function"?ge.attributeCheck=i.ADD_ATTR:qe(i.ADD_ATTR)&&(B===Nt&&(B=V(B)),T(B,i.ADD_ATTR,P))),Z(i,"ADD_FORBID_CONTENTS")&&qe(i.ADD_FORBID_CONTENTS)&&(Ne===Sn&&(Ne=V(Ne)),T(Ne,i.ADD_FORBID_CONTENTS,P)),jt&&(R["#text"]=!0),Te&&T(R,["html","head","body"]),R.table&&(T(R,["tbody"]),delete Qe.tbody),i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!="function")throw we('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw we('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const p=M;M=i.TRUSTED_TYPES_POLICY;try{fe=ue("")}catch(D){throw M=p,D}}else i.TRUSTED_TYPES_POLICY===null?(M=void 0,fe=""):(M===void 0&&(M=dt()),M&&typeof fe=="string"&&(fe=ue("")));N&&N(i),ze=i},In=T({},[...en,...tn,...Fo]),Nn=T({},[...nn,...Ao]),Zr=function(i,a,p){return a.namespaceURI===ae?i==="svg":a.namespaceURI===At?i==="svg"&&(p==="annotation-xml"||Gt[p]):!!In[i]},Xr=function(i,a,p){return a.namespaceURI===ae?i==="math":a.namespaceURI===Et?i==="math"&&Yt[p]:!!Nn[i]},Vr=function(i,a,p){return a.namespaceURI===Et&&!Yt[p]||a.namespaceURI===At&&!Gt[p]?!1:!Nn[i]&&(qr[i]||!In[i])},Qr=function(i){let a=te(i);(!a||!a.tagName)&&(a={namespaceURI:Me,tagName:"template"});const p=lt(i.tagName),D=lt(a.tagName);return Wt[i.namespaceURI]?i.namespaceURI===Et?Zr(p,a,D):i.namespaceURI===At?Xr(p,a,D):i.namespaceURI===ae?Vr(p,a,D):!!(Ke==="application/xhtml+xml"&&Wt[i.namespaceURI]):!1},Fe=function(i){rt(e.removed,{element:i});try{te(i).removeChild(i)}catch{if(x(i),!te(i))throw we("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Mn=function(i,a,p){try{i.removeAttributeNode(a)}catch{try{i.removeAttribute(p)}catch{}}},bt=function(i){kt(i);const a=U(i);if(a){const D=[];Se(a,F=>{rt(D,F)}),Se(D,F=>{try{x(F)}catch{}})}const p=ke(i);if(p)for(let D=p.length-1;D>=0;--D){const F=p[D],E=F&&F.name;typeof E=="string"&&Mn(i,F,E)}},_e=function(i,a,p){if(!p)try{p=a.getAttributeNode(i)}catch{p=null}rt(e.removed,{attribute:p||null,from:a});try{p?a.removeAttributeNode(p):a.removeAttribute(i)}catch{try{a.removeAttribute(i)}catch{}}if(i==="is")if(Pe||mt)try{Fe(a)}catch{}else try{a.setAttribute(i,"")}catch{}},Kr=function(i){const a=ke(i);if(a)for(let p=a.length-1;p>=0;--p){const D=a[p],F=D&&D.name;typeof F!="string"||B[P(F)]||Mn(i,D,F)}},kt=function(i){const a=[i];for(;a.length>0;){const p=a.pop();ye(p)===X.element&&Kr(p);const F=U(p);if(F)for(let E=F.length-1;E>=0;--E)a.push(F[E])}},zn=function(i,a){return xe?i==="patchsrc"?!0:i==="for"&&a!=="label"&&a!=="output":!1},Jr=function(i){if(!xe)return;const a=[i];for(;a.length>0;){const p=a.pop(),D=ye(p);if(D===X.processingInstruction||D===X.comment&&j(Er,p.data)){try{x(p)}catch{}continue}if(D===X.element){const E=p,w=P(Ge(p));try{E.hasAttribute&&E.hasAttribute("patchsrc")&&E.removeAttribute("patchsrc"),E.hasAttribute&&E.hasAttribute("for")&&zn("for",w)&&E.removeAttribute("for")}catch{}}const F=U(p);if(F)for(let E=F.length-1;E>=0;--E)a.push(F[E])}},Un=function(i){let a=null,p=null;if(Ut)i="<remove></remove>"+i;else{const E=cr(i,/^[\r\n\t ]+/);p=E&&E[0]}Ke==="application/xhtml+xml"&&Me===ae&&(i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>");const D=M?ue(i):i;if(Me===ae)try{a=new g().parseFromString(D,Ke)}catch{}if(!a||!a.documentElement){a=Le.createDocument(Me,"template",null);try{a.documentElement.innerHTML=qt?fe:D}catch{}}const F=a.body||a.documentElement;return i&&p&&F.insertBefore(n.createTextNode(p),F.childNodes[0]||null),Me===ae?y.call(a,Te?"html":"body")[0]:Te?a.documentElement:F},jn=function(i){const a=K?K(i):i.ownerDocument;return Ze.call(a||i,i,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},yt=function(i){return i=st(i,$e," "),i=st(i,Xe," "),i=st(i,$," "),i},Xt=function(i){var a;i.normalize();const p=K?K(i):i.ownerDocument,D=Ze.call(p||i,i,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let F=D.nextNode();for(;F;)F.data=yt(F.data),F=D.nextNode();const E=(a=i.querySelectorAll)===null||a===void 0?void 0:a.call(i,"template");E&&Se(E,w=>{Ue(w.content)&&Xt(w.content)})},Ct=function(i){const a=Q?Q(i):null;return typeof a!="string"||P(a)!=="form"?!1:typeof i.nodeName!="string"||typeof i.textContent!="string"||typeof i.removeChild!="function"||i.attributes!==ke(i)||typeof i.removeAttribute!="function"||typeof i.setAttribute!="function"||typeof i.namespaceURI!="string"||typeof i.insertBefore!="function"||typeof i.hasChildNodes!="function"||i.nodeType!==ne(i)||i.childNodes!==U(i)},Ue=function(i){if(!ne||typeof i!="object"||i===null)return!1;try{return ne(i)===X.documentFragment}catch{return!1}},Je=function(i){if(!ne||typeof i!="object"||i===null)return!1;try{return typeof ne(i)=="number"}catch{return!1}};function ce(d,i,a){d.length!==0&&Se(d,p=>{p.call(e,i,a,ze)})}const es=function(i,a){return!!(xe&&i.hasChildNodes()&&!Je(i.firstElementChild)&&j(Ar,i.textContent)&&j(Ar,i.innerHTML)||xe&&i.namespaceURI===ae&&Bo[a]&&(Je(i.firstElementChild)||typeof i.textContent=="string"&&j(vo[a],i.textContent))||i.nodeType===X.processingInstruction||xe&&i.nodeType===X.comment&&j(Er,i.data))},xt=function(i,a){if(i instanceof RegExp)return j(i,a);if(i instanceof Function){for(var p=arguments.length,D=new Array(p>2?p-2:0),F=2;F<p;F++)D[F-2]=arguments[F];return!!i(a,...D)}return!1},ts=function(i,a,p){if(!Qe[a]&&Yn(a)&&xt(le.tagNameCheck,a))return!1;if(jt&&!Ne[a]){const D=te(i),F=U(i);if(F&&D){const E=F.length;for(let w=E-1;w>=0;--w){const v=i===p?L(F[w],!0):F[w];D.insertBefore(v,W(i))}}}return Fe(i),!0},Hn=function(i,a,p,D){return i.length===0?a:a===p||a===D?V(a):a},qn=function(i,a){return i===a||te(i)!==null?!1:(Ht&&kt(i),!0)},Wn=function(i,a){if(ce(b.beforeSanitizeElements,i,null),qn(i,a))return!0;if(Ct(i))return Fe(i),!0;const p=P(Ge(i));if(R=Hn(b.uponSanitizeElement,R,It,Dt),ce(b.uponSanitizeElement,i,{tagName:p,allowedTags:R}),qn(i,a))return!0;if(es(i,p))return Fe(i),!0;if(Qe[p]||!(ge.tagCheck instanceof Function&&ge.tagCheck(p))&&!R[p]){const F=ts(i,p,a);return F===!1&&ce(b.afterSanitizeElements,i,null),F}if(ye(i)===X.element&&!Qr(i)||(p==="noscript"||p==="noembed"||p==="noframes")&&j(So,i.innerHTML))return Fe(i),!0;if(me&&i.nodeType===X.text){const F=yt(i.textContent);i.textContent!==F&&(rt(e.removed,{element:i.cloneNode()}),i.textContent=F)}return ce(b.afterSanitizeElements,i,null),!1},Gn=function(i,a,p){if(kn[a]||zn(a,i)||Tn&&(a==="id"||a==="name")&&(p in n||p in Yr))return!1;const D=B[a]||ge.attributeCheck instanceof Function&&ge.attributeCheck(a,i);return Mt&&j(De,a)||yn&&j(Ve,a)?!0:D?vn[a]||j(bn,st(p,En,""))||(a==="src"||a==="xlink:href"||a==="href")&&i!=="script"&&pr(p,"data:")===0&&Rn[i]||Cn&&!j(Pt,st(p,En,""))?!0:!p:Yn(i)&&xt(le.tagNameCheck,i)&&xt(le.attributeNameCheck,a,i)||a==="is"&&le.allowCustomizedBuiltInElements&&xt(le.tagNameCheck,p)},ns=T({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Yn=function(i){return!ns[lt(i)]&&j(jr,i)},rs=function(i,a,p,D){if(M&&typeof m=="object"&&typeof m.getAttributeType=="function"&&!p)switch(m.getAttributeType(i,a)){case"TrustedHTML":return ue(D);case"TrustedScriptURL":return ht(D)}return D},ss=function(i,a,p,D){try{p?i.setAttributeNS(p,a,D):i.setAttribute(a,D),Ct(i)?Fe(i):ar(e.removed)}catch{_e(a,i)}},Zn=function(i){ce(b.beforeSanitizeAttributes,i,null);const a=i.attributes;if(!a||Ct(i))return;B=Hn(b.uponSanitizeAttribute,B,Nt,gt);const p={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let D=a.length;const F=P(i.nodeName);for(;D--;){const E=a[D],w=E.name,v=E.namespaceURI,G=E.value,Y=P(w),Qt=G;let q=w==="value"?Qt:co(Qt);if(p.attrName=Y,p.attrValue=q,p.keepAttr=!0,p.forceKeepAttr=void 0,ce(b.uponSanitizeAttribute,i,p),q=p.attrValue,_n&&(Y==="id"||Y==="name")&&pr(q,wn)!==0&&(_e(w,i,E),q=wn+q),xe&&j(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,q)){_e(w,i,E);continue}if(Y==="attributename"&&cr(q,"href")){_e(w,i,E);continue}if(!p.forceKeepAttr){if(!p.keepAttr){_e(w,i,E);continue}if(!xn&&j(Ro,q)){_e(w,i,E);continue}if(me&&(q=yt(q)),!Gn(F,Y,q)){_e(w,i,E);continue}q=rs(F,Y,v,q),q!==Qt&&ss(i,w,v,q)}}ce(b.afterSanitizeAttributes,i,null)},Tt=function(i){let a=null;const p=jn(i);for(ce(b.beforeSanitizeShadowDOM,i,null);a=p.nextNode();)if(ce(b.uponSanitizeShadowNode,a,null),Wn(a,i),Zn(a),Ue(a.content)&&Tt(a.content),ye(a)===X.element){const D=be(a);Ue(D)&&(Vt(D),Tt(D))}ce(b.afterSanitizeShadowDOM,i,null)},Vt=function(i){const a=[{node:i,shadow:null}];for(;a.length>0;){const p=a.pop();if(p.shadow){Tt(p.shadow);continue}const D=p.node,E=ye(D)===X.element,w=U(D);if(w)for(let v=w.length-1;v>=0;--v)a.push({node:w[v],shadow:null});if(E){const v=Q?Q(D):null;if(typeof v=="string"&&P(v)==="template"){const G=D.content;Ue(G)&&a.push({node:G,shadow:null})}}if(E){const v=be(D);Ue(v)&&a.push({node:null,shadow:v},{node:v,shadow:null})}}};return e.sanitize=function(d){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=null,p=null,D=null,F=null;if(qt=!d,qt&&(d="<!-->"),typeof d!="string"&&!Je(d)&&(d=go(d),typeof d!="string"))throw we("dirty is not a string, aborting");if(!e.isSupported)return d;zt?(R=Dt,B=gt):Zt(i),(b.uponSanitizeElement.length>0||b.uponSanitizeAttribute.length>0)&&(R=V(R)),b.uponSanitizeAttribute.length>0&&(B=V(B)),e.removed=[];const E=Ht&&typeof d!="string"&&Je(d);if(E){Jr(d);const G=Ge(d);if(typeof G=="string"){const Y=P(G);if(!R[Y]||Qe[Y])throw bt(d),we("root node is forbidden and cannot be sanitized in-place")}if(Ct(d))throw bt(d),we("root node is clobbered and cannot be sanitized in-place");try{Vt(d)}catch(Y){throw bt(d),Y}}else if(Je(d))a=Un("<!---->"),p=a.ownerDocument.importNode(d,!0),p.nodeType===X.element&&p.nodeName==="BODY"||p.nodeName==="HTML"?a=p:a.appendChild(p),Vt(p);else{if(!Pe&&!me&&!Te&&d.indexOf("<")===-1)return M&&Ft?ue(d):d;if(a=Un(d),!a)return Pe?null:Ft?fe:""}a&&Ut&&Fe(a.firstChild);const w=E?d:a;try{const G=jn(w);for(;D=G.nextNode();)Wn(D,w),Zn(D),Ue(D.content)&&Tt(D.content)}catch(G){throw E&&(bt(d),Se(e.removed,Y=>{Y.element&&kt(Y.element)})),G}if(E)return Se(e.removed,G=>{G.element&&kt(G.element)}),me&&Xt(d),d;if(Pe){if(me&&Xt(a),mt)for(F=f.call(a.ownerDocument);a.firstChild;)F.appendChild(a.firstChild);else F=a;return(B.shadowroot||B.shadowrootmode)&&(F=S.call(r,F,!0)),F}let v=Te?a.outerHTML:a.innerHTML;return Te&&R["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&j(_o,a.ownerDocument.doctype.name)&&(v="<!DOCTYPE "+a.ownerDocument.doctype.name+`>
142
+ `+v),me&&(v=yt(v)),M&&Ft?ue(v):v},e.setConfig=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zt(d),zt=!0,Dt=R,gt=B},e.clearConfig=function(){ze=null,zt=!1,Dt=null,gt=null,M=Ye,fe=""},e.isValidAttribute=function(d,i,a){ze||Zt({});const p=P(d),D=P(i);return Gn(p,D,a)},e.addHook=function(d,i){typeof i=="function"&&Z(b,d)&&rt(b[d],i)},e.removeHook=function(d,i){if(Z(b,d)){if(i!==void 0){const a=lo(b[d],i);return a===-1?void 0:ao(b[d],a,1)[0]}return ar(b[d])}},e.removeHooks=function(d){Z(b,d)&&(b[d]=[])},e.removeAllHooks=function(){b=br()},e}var $o=zr();const Po=["caption","col","colgroup","small","u","iframe"],Io=["target","role","colspan","rowspan","open","allow","allowfullscreen","frameborder","referrerpolicy","loading"],No=new Set(["www.youtube-nocookie.com"]),Mo=t=>{if(!t)return!1;try{return No.has(new URL(t).host)}catch{return!1}},zo=new Set(["background-color","border","border-bottom","border-collapse","border-left","border-radius","border-right","border-top","color","color-scheme","font-size","font-weight","height","line-height","list-style","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","max-width","min-width","padding","padding-bottom","padding-left","padding-right","padding-top","text-align","text-indent","text-orientation","vertical-align","white-space","width","writing-mode"]),Uo={position:new Set(["relative","static"])},jo=t=>t.split(";").map(e=>e.trim()).filter(Boolean).filter(e=>{const[n,...r]=e.split(":"),s=n.trim().toLowerCase(),o=r.join(":").trim().toLowerCase();return/url\(|expression\(|@import|behavior:/i.test(o)?!1:zo.has(s)?!0:!!Uo[s]?.has(o)}).map(e=>`${e};`).join(" "),Ho=t=>Array.from(t).filter(e=>(e.codePointAt(0)??0)>32).join("").toLowerCase();let ot=null;const qo=()=>ot||(ot=$o(window),ot.addHook("afterSanitizeAttributes",t=>{const e=t;if(!e.getAttribute)return;if(e.tagName==="IFRAME"&&!Mo(e.getAttribute("src"))){e.remove();return}for(const r of["src","href"]){const s=e.getAttribute(r);s&&Ho(s).startsWith("data:")&&e.removeAttribute(r)}const n=e.getAttribute("style");if(n){const r=jo(n);r?e.setAttribute("style",r):e.removeAttribute("style")}if(e.getAttribute("target")==="_blank"){const r=(e.getAttribute("rel")??"").split(/\s+/);e.setAttribute("rel",Array.from(new Set(["noopener","noreferrer",...r.filter(Boolean)])).join(" "))}}),ot),Wo=t=>qo().sanitize(t,{ADD_TAGS:Po,ADD_ATTR:Io,RETURN_DOM_FRAGMENT:!0,ALLOWED_URI_REGEXP:/^(?:(?:https?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.\-:]|$))/i}),Go=t=>Math.min(6,Math.max(1,t)),Ur=(t,e={})=>{const{shiftHeading:n=0,tocMaxDepth:r=2}=e,s=new vr({gfm:!0,breaks:!0},Ji({cardHeadingLevel:`h${Go(3+n)}`})),o=Wo(s.parse(t,{async:!1})),{headings:l}=bi(o,document,{shiftHeading:n,tocMaxDepth:r}),u=document.createElement("div");return u.appendChild(o),{html:u.innerHTML,headings:l}},Yo={html:"",headings:[]},An=({items:t})=>ee.jsx(ee.Fragment,{children:t.map(e=>ee.jsxs("li",{children:[ee.jsx(A.Link,{href:`#${e.id}`,children:e.value}),e.children?ee.jsx(A.Ul,{children:ee.jsx(An,{items:e.children})}):null]},e.id))}),Zo=({children:t,showToc:e,tocTitle:n="目次",shiftHeading:r=0,tocMaxDepth:s=2})=>{const[{html:o,headings:l},u]=Rt.useState(Yo);return Rt.useEffect(()=>{u(Ur(t,{shiftHeading:r,tocMaxDepth:s}))},[t,r,s]),Rt.useEffect(()=>{if(!o)return;const c=decodeURI(window.location.hash.slice(1));c&&document.getElementById(c)?.scrollIntoView()},[o]),ee.jsxs("div",{className:"py-8 flex flex-col gap-8",children:[e&&l.length>0&&ee.jsxs("nav",{className:"rounded-3xl p-10 bg-yellow-50",children:[ee.jsx("h2",{className:"mb-4 font-bold text-h-xs-m sm:text-h-xs",children:n}),ee.jsx(A.Ul,{children:ee.jsx(An,{items:l})})]}),ee.jsx("div",{className:"flex flex-col gap-8",dangerouslySetInnerHTML:{__html:o}})]})};exports.Markdown=Zo;exports.TableOfContents=An;exports.render=Ur;