UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

2 lines 94.7 kB
/*! For license information please see markdown-worker.5e6e5fb6aa3f074e.js.LICENSE.txt */
var e={37314(e,t,r){var n=r(10828),i=r(65046);r(37121);function o(e){return null==e}function s(e){(e=function(e){var t={};for(var r in e)t[r]=e[r];return t}(e||{})).whiteList=e.whiteList||n.whiteList,e.onAttr=e.onAttr||n.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||n.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||n.safeAttrValue,this.options=e}s.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this.options,r=t.whiteList,n=t.onAttr,s=t.onIgnoreAttr,a=t.safeAttrValue;return i(e,function(e,t,i,l,c){var u=r[i],p=!1;if(!0===u?p=u:"function"==typeof u?p=u(l):u instanceof RegExp&&(p=u.test(l)),!0!==p&&(p=!1),l=a(i,l)){var h,f={position:t,sourcePosition:e,source:c,isWhite:p};return p?o(h=n(i,l,f))?i+":"+l:h:o(h=s(i,l,f))?void 0:h}})},e.exports=s},10828(e,t){function r(){var e={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1};return e}var n=/javascript\s*\:/gim;t.whiteList=r(),t.getDefaultWhiteList=r,t.onAttr=function(e,t,r){},t.onIgnoreAttr=function(e,t,r){},t.safeAttrValue=function(e,t){return n.test(t)?"":t}},45337(e,t,r){var n=r(10828),i=r(37314);for(var o in(t=e.exports=function(e,t){return new i(t).process(e)}).FilterCSS=i,n)t[o]=n[o];"undefined"!=typeof window&&(window.filterCSS=e.exports)},65046(e,t,r){var n=r(37121);e.exports=function(e,t){";"!==(e=n.trimRight(e))[e.length-1]&&(e+=";");var r=e.length,i=!1,o=0,s=0,a="";function l(){if(!i){var r=n.trim(e.slice(o,s)),l=r.indexOf(":");if(-1!==l){var c=n.trim(r.slice(0,l)),u=n.trim(r.slice(l+1));if(c){var p=t(o,a.length,c,u,r);p&&(a+=p+"; ")}}}o=s+1}for(;s<r;s++){var c=e[s];if("/"===c&&"*"===e[s+1]){var u=e.indexOf("*/",s+2);if(-1===u)break;o=(s=u+1)+1,i=!1}else"("===c?i=!0:")"===c?i=!1:";"===c?i||l():"\n"===c&&l()}return n.trim(a)}},37121(e,t,r){r(18111),r(7588),e.exports={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}}},56735(e,t,r){r(44114),r(18111),r(22489),r(7588);var n=r(45337).FilterCSS,i=r(45337).getDefaultWhiteList,o=r(12808);function s(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var a=new n;function l(e){return e.replace(c,"&lt;").replace(u,"&gt;")}var c=/</g,u=/>/g,p=/"/g,h=/&quot;/g,f=/&#([a-zA-Z0-9]*);?/gim,g=/&colon;?/gim,d=/&newline;?/gim,b=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,k=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,x=/u\s*r\s*l\s*\(.*/gi;function m(e){return e.replace(p,"&quot;")}function w(e){return e.replace(h,'"')}function v(e){return e.replace(f,function(e,t){return"x"===t[0]||"X"===t[0]?String.fromCharCode(parseInt(t.substr(1),16)):String.fromCharCode(parseInt(t,10))})}function y(e){return e.replace(g,":").replace(d," ")}function S(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return o.trim(t)}function T(e){return e=S(e=y(e=v(e=w(e))))}function A(e){return e=l(e=m(e))}t.whiteList={a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height","loading"],ins:["datetime"],kbd:[],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]},t.getDefaultWhiteList=s,t.onTag=function(e,t,r){},t.onIgnoreTag=function(e,t,r){},t.onTagAttr=function(e,t,r){},t.onIgnoreTagAttr=function(e,t,r){},t.safeAttrValue=function(e,t,r,n){if(r=T(r),"href"===t||"src"===t){if("#"===(r=o.trim(r)))return"#";if("http://"!==r.substr(0,7)&&"https://"!==r.substr(0,8)&&"mailto:"!==r.substr(0,7)&&"tel:"!==r.substr(0,4)&&"data:image/"!==r.substr(0,11)&&"ftp://"!==r.substr(0,6)&&"./"!==r.substr(0,2)&&"../"!==r.substr(0,3)&&"#"!==r[0]&&"/"!==r[0])return""}else if("background"===t){if(b.lastIndex=0,b.test(r))return""}else if("style"===t){if(k.lastIndex=0,k.test(r))return"";if(x.lastIndex=0,x.test(r)&&(b.lastIndex=0,b.test(r)))return"";!1!==n&&(r=(n=n||a).process(r))}return r=A(r)},t.escapeHtml=l,t.escapeQuote=m,t.unescapeQuote=w,t.escapeHtmlEntities=v,t.escapeDangerHtml5Entities=y,t.clearNonPrintableCharacter=S,t.friendlyAttrValue=T,t.escapeAttrValue=A,t.onIgnoreTagStripAll=function(){return""},t.StripTagBody=function(e,t){"function"!=typeof t&&(t=function(){});var r=!Array.isArray(e),n=[],i=!1;return{onIgnoreTag:function(s,a,l){if(function(t){return!!r||-1!==o.indexOf(e,t)}(s)){if(l.isClosing){var c="[/removed]",u=l.position+10;return n.push([!1!==i?i:l.position,u]),i=!1,c}return i||(i=l.position),"[removed]"}return t(s,a,l)},remove:function(e){var t="",r=0;return o.forEach(n,function(n){t+=e.slice(r,n[0]),r=n[1]}),t+=e.slice(r)}}},t.stripCommentTag=function(e){for(var t="",r=0;r<e.length;){var n=e.indexOf("\x3c!--",r);if(-1===n){t+=e.slice(r);break}t+=e.slice(r,n);var i=e.indexOf("--\x3e",n);if(-1===i)break;r=i+3}return t},t.stripBlankChar=function(e){var t=e.split("");return(t=t.filter(function(e){var t=e.charCodeAt(0);return 127!==t&&(!(t<=31)||(10===t||13===t))})).join("")},t.attributeWrapSign='"',t.cssFilter=a,t.getDefaultCSSWhiteList=i},75158(e,t,r){var n=r(56735),i=r(84727),o=r(77984);function s(e,t){return new o(t).process(e)}(t=e.exports=s).filterXSS=s,t.FilterXSS=o,function(){for(var e in n)t[e]=n[e];for(var r in i)t[r]=i[r]}(),"undefined"!=typeof window&&(window.filterXSS=e.exports),"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=e.exports)},84727(e,t,r){r(44114);var n=r(12808);function i(e){var t,r=n.spaceIndex(e);return t=-1===r?e.slice(1,-1):e.slice(1,r+1),"/"===(t=n.trim(t).toLowerCase()).slice(0,1)&&(t=t.slice(1)),"/"===t.slice(-1)&&(t=t.slice(0,-1)),t}function o(e){return"</"===e.slice(0,2)}var s=/[^a-zA-Z0-9\\_:.-]/gim;function a(e,t){for(;t<e.length;t++){var r=e[t];if(" "!==r)return"="===r?t:-1}}function l(e,t){for(;t<e.length;t++){var r=e[t];if(" "!==r)return"'"===r||'"'===r?t:-1}}function c(e,t){for(;t>0;t--){var r=e[t];if(" "!==r)return"="===r?t:-1}}function u(e){return function(e){return'"'===e[0]&&'"'===e[e.length-1]||"'"===e[0]&&"'"===e[e.length-1]}(e)?e.substr(1,e.length-2):e}t.parseTag=function(e,t,r){var n="",s=0,a=!1,l=!1,c=0,u=e.length,p="",h="";e:for(c=0;c<u;c++){var f=e.charAt(c);if(!1===a){if("<"===f){a=c;continue}}else if(!1===l){if("<"===f){n+=r(e.slice(s,c)),a=c,s=c;continue}if(">"===f||c===u-1){n+=r(e.slice(s,a)),p=i(h=e.slice(a,c+1)),n+=t(a,n.length,p,h,o(h)),s=c+1,a=!1;continue}if('"'===f||"'"===f)for(var g=1,d=e.charAt(c-g);""===d.trim()||"="===d;){if("="===d){l=f;continue e}d=e.charAt(c-++g)}}else if(f===l){l=!1;continue}}return s<u&&(n+=r(e.substr(s))),n},t.parseAttr=function(e,t){var r=0,i=0,o=[],p=!1,h=e.length;function f(e,r){if(!((e=(e=n.trim(e)).replace(s,"").toLowerCase()).length<1)){var i=t(e,r||"");i&&o.push(i)}}for(var g=0;g<h;g++){var d,b=e.charAt(g);if(!1!==p||"="!==b)if(!1===p||g!==i)if(/\s|\n|\t/.test(b)){if(e=e.replace(/\s|\n|\t/g," "),!1===p){if(-1===(d=a(e,g))){f(n.trim(e.slice(r,g))),p=!1,r=g+1;continue}g=d-1;continue}if(-1===(d=c(e,g-1))){f(p,u(n.trim(e.slice(r,g)))),p=!1,r=g+1;continue}}else;else{if(-1===(d=e.indexOf(b,g+1)))break;f(p,n.trim(e.slice(i+1,d))),p=!1,r=(g=d)+1}else p=e.slice(r,g),r=g+1,i='"'===e.charAt(r)||"'"===e.charAt(r)?r:l(e,g+1)}return r<e.length&&(!1===p?f(e.slice(r)):f(p,u(n.trim(e.slice(r))))),n.trim(o.join(" "))}},12808(e,t,r){r(18111),r(7588),e.exports={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/.exec(e);return t?t.index:-1}}},77984(e,t,r){r(18111),r(61701);var n=r(45337).FilterCSS,i=r(56735),o=r(84727),s=o.parseTag,a=o.parseAttr,l=r(12808);function c(e){return null==e}function u(e){(e=function(e){var t={};for(var r in e)t[r]=e[r];return t}(e||{})).stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=i.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=function(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(e){return e.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}(e.whiteList||e.allowList):e.whiteList=i.whiteList,this.attributeWrapSign=!0===e.singleQuotedAttributeValue?"'":i.attributeWrapSign,e.onTag=e.onTag||i.onTag,e.onTagAttr=e.onTagAttr||i.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||i.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||i.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||i.safeAttrValue,e.escapeHtml=e.escapeHtml||i.escapeHtml,this.options=e,!1===e.css?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new n(e.css))}u.prototype.process=function(e){if(!(e=(e=e||"").toString()))return"";var t=this,r=t.options,n=r.whiteList,o=r.onTag,u=r.onIgnoreTag,p=r.onTagAttr,h=r.onIgnoreTagAttr,f=r.safeAttrValue,g=r.escapeHtml,d=t.attributeWrapSign,b=t.cssFilter;r.stripBlankChar&&(e=i.stripBlankChar(e)),r.allowCommentTag||(e=i.stripCommentTag(e));var k=!1;r.stripIgnoreTagBody&&(k=i.StripTagBody(r.stripIgnoreTagBody,u),u=k.onIgnoreTag);var x=s(e,function(e,t,r,i,s){var k={sourcePosition:e,position:t,isClosing:s,isWhite:Object.prototype.hasOwnProperty.call(n,r)},x=o(r,i,k);if(!c(x))return x;if(k.isWhite){if(k.isClosing)return"</"+r+">";var m=function(e){var t=l.spaceIndex(e);if(-1===t)return{html:"",closing:"/"===e[e.length-2]};var r="/"===(e=l.trim(e.slice(t+1,-1)))[e.length-1];return r&&(e=l.trim(e.slice(0,-1))),{html:e,closing:r}}(i),w=n[r],v=a(m.html,function(e,t){var n=-1!==l.indexOf(w,e),i=p(r,e,t,n);return c(i)?n?(t=f(r,e,t,b))?e+"="+d+t+d:e:c(i=h(r,e,t,n))?void 0:i:i});return i="<"+r,v&&(i+=" "+v),m.closing&&(i+=" /"),i+=">"}return c(x=u(r,i,k))?g(i):x},g);return k&&(x=k.remove(x)),x},e.exports=u},79306(e,t,r){var n=r(94901),i=r(16823),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not a function")}},97080(e,t,r){var n=r(94402).has;e.exports=function(e){return n(e),e}},84328(e,t,r){var n=r(44995),i=new n.WeakMap,o=n.set,s=n.remove;e.exports=function(e){return o(i,e,1),s(i,e),e}},76557(e,t,r){var n=r(44995).has;e.exports=function(e){return n(e),e}},6469(e,t,r){var n=r(78227),i=r(2360),o=r(24913).f,s=n("unscopables"),a=Array.prototype;void 0===a[s]&&o(a,s,{configurable:!0,value:i(null)}),e.exports=function(e){a[s][e]=!0}},90679(e,t,r){var n=r(1625),i=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw new i("Incorrect invocation")}},28551(e,t,r){var n=r(20034),i=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(i(e)+" is not an object")}},19617(e,t,r){var n=r(25397),i=r(35610),o=r(26198),s=function(e){return function(t,r,s){var a=n(t),l=o(a);if(0===l)return!e&&-1;var c,u=i(s,l);if(e&&r!=r){for(;l>u;)if((c=a[u++])!=c)return!0}else for(;l>u;u++)if((e||u in a)&&a[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},34527(e,t,r){var n=r(43724),i=r(34376),o=TypeError,s=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=a?function(e,t){if(i(e)&&!s(e,"length").writable)throw new o("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},96319(e,t,r){var n=r(28551),i=r(9539);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){i(e,"throw",t)}}},22195(e,t,r){var n=r(79504),i=n({}.toString),o=n("".slice);e.exports=function(e){return o(i(e),8,-1)}},36955(e,t,r){var n=r(92140),i=r(94901),o=r(22195),s=r(78227)("toStringTag"),a=Object,l="Arguments"===o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?r:l?o(t):"Object"===(n=o(t))&&i(t.callee)?"Arguments":n}},77740(e,t,r){var n=r(39297),i=r(35031),o=r(77347),s=r(24913);e.exports=function(e,t,r){for(var a=i(t),l=s.f,c=o.f,u=0;u<a.length;u++){var p=a[u];n(e,p)||r&&n(r,p)||l(e,p,c(t,p))}}},12211(e,t,r){var n=r(79039);e.exports=!n(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},62529(e){e.exports=function(e,t){return{value:e,done:t}}},66699(e,t,r){var n=r(43724),i=r(24913),o=r(6980);e.exports=n?function(e,t,r){return i.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},6980(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},97040(e,t,r){var n=r(43724),i=r(24913),o=r(6980);e.exports=function(e,t,r){n?i.f(e,t,o(0,r)):e[t]=r}},62106(e,t,r){var n=r(50283),i=r(24913);e.exports=function(e,t,r){return r.get&&n(r.get,t,{getter:!0}),r.set&&n(r.set,t,{setter:!0}),i.f(e,t,r)}},36840(e,t,r){var n=r(94901),i=r(24913),o=r(50283),s=r(39433);e.exports=function(e,t,r,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:t;if(n(r)&&o(r,c,a),a.global)l?e[t]=r:s(t,r);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=r:i.f(e,t,{value:r,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},56279(e,t,r){var n=r(36840);e.exports=function(e,t,r){for(var i in t)n(e,i,t[i],r);return e}},39433(e,t,r){var n=r(44576),i=Object.defineProperty;e.exports=function(e,t){try{i(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},43724(e,t,r){var n=r(79039);e.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},4055(e,t,r){var n=r(44576),i=r(20034),o=n.document,s=i(o)&&i(o.createElement);e.exports=function(e){return s?o.createElement(e):{}}},96837(e){var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw new t("Maximum allowed index exceeded");return e}},88727(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},82839(e,t,r){var n=r(44576).navigator,i=n&&n.userAgent;e.exports=i?String(i):""},39519(e,t,r){var n,i,o=r(44576),s=r(82839),a=o.process,l=o.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(i=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!i&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(i=+n[1]),e.exports=i},46518(e,t,r){var n=r(44576),i=r(77347).f,o=r(66699),s=r(36840),a=r(39433),l=r(77740),c=r(92796);e.exports=function(e,t){var r,u,p,h,f,g=e.target,d=e.global,b=e.stat;if(r=d?n:b?n[g]||a(g,{}):n[g]&&n[g].prototype)for(u in t){if(h=t[u],p=e.dontCallGetSet?(f=i(r,u))&&f.value:r[u],!c(d?u:g+(b?".":"#")+u,e.forced)&&void 0!==p){if(typeof h==typeof p)continue;l(h,p)}(e.sham||p&&p.sham)&&o(h,"sham",!0),s(r,u,h,e)}}},79039(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},18745(e,t,r){var n=r(40616),i=Function.prototype,o=i.apply,s=i.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},76080(e,t,r){var n=r(27476),i=r(79306),o=r(40616),s=n(n.bind);e.exports=function(e,t){return i(e),void 0===t?e:o?s(e,t):function(){return e.apply(t,arguments)}}},40616(e,t,r){var n=r(79039);e.exports=!n(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},69565(e,t,r){var n=r(40616),i=Function.prototype.call;e.exports=n?i.bind(i):function(){return i.apply(i,arguments)}},10350(e,t,r){var n=r(43724),i=r(39297),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=i(o,"name"),l=a&&"something"===function(){}.name,c=a&&(!n||n&&s(o,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},46706(e,t,r){var n=r(79504),i=r(79306);e.exports=function(e,t,r){try{return n(i(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},27476(e,t,r){var n=r(22195),i=r(79504);e.exports=function(e){if("Function"===n(e))return i(e)}},79504(e,t,r){var n=r(40616),i=Function.prototype,o=i.call,s=n&&i.bind.bind(o,o);e.exports=n?s:function(e){return function(){return o.apply(e,arguments)}}},97751(e,t,r){var n=r(44576),i=r(94901);e.exports=function(e,t){return arguments.length<2?(r=n[e],i(r)?r:void 0):n[e]&&n[e][t];var r}},1767(e){e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},50851(e,t,r){var n=r(36955),i=r(55966),o=r(64117),s=r(26269),a=r(78227)("iterator");e.exports=function(e){if(!o(e))return i(e,a)||i(e,"@@iterator")||s[n(e)]}},70081(e,t,r){var n=r(69565),i=r(79306),o=r(28551),s=r(16823),a=r(50851),l=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(i(r))return o(n(r,e));throw new l(s(e)+" is not iterable")}},55966(e,t,r){var n=r(79306),i=r(64117);e.exports=function(e,t){var r=e[t];return i(r)?void 0:n(r)}},83789(e,t,r){var n=r(79306),i=r(28551),o=r(69565),s=r(91291),a=r(1767),l="Invalid size",c=RangeError,u=TypeError,p=Math.max,h=function(e,t){this.set=e,this.size=p(t,0),this.has=n(e.has),this.keys=n(e.keys)};h.prototype={getIterator:function(){return a(i(o(this.keys,this.set)))},includes:function(e){return o(this.has,this.set,e)}},e.exports=function(e){i(e);var t=+e.size;if(t!=t)throw new u(l);var r=s(t);if(r<0)throw new c(l);return new h(e,r)}},44576(e){var t=function(e){return e&&e.Math===Math&&e};e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||t("object"==typeof this&&this)||function(){return this}()||Function("return this")()},39297(e,t,r){var n=r(79504),i=r(48981),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(i(e),t)}},30421(e){e.exports={}},20397(e,t,r){var n=r(97751);e.exports=n("document","documentElement")},35917(e,t,r){var n=r(43724),i=r(79039),o=r(4055);e.exports=!n&&!i(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},47055(e,t,r){var n=r(79504),i=r(79039),o=r(22195),s=Object,a=n("".split);e.exports=i(function(){return!s("z").propertyIsEnumerable(0)})?function(e){return"String"===o(e)?a(e,""):s(e)}:s},33706(e,t,r){var n=r(79504),i=r(94901),o=r(77629),s=n(Function.toString);i(o.inspectSource)||(o.inspectSource=function(e){return s(e)}),e.exports=o.inspectSource},91181(e,t,r){var n,i,o,s=r(58622),a=r(44576),l=r(20034),c=r(66699),u=r(39297),p=r(77629),h=r(66119),f=r(30421),g="Object already initialized",d=a.TypeError,b=a.WeakMap;if(s||p.state){var k=p.state||(p.state=new b);k.get=k.get,k.has=k.has,k.set=k.set,n=function(e,t){if(k.has(e))throw new d(g);return t.facade=e,k.set(e,t),t},i=function(e){return k.get(e)||{}},o=function(e){return k.has(e)}}else{var x=h("state");f[x]=!0,n=function(e,t){if(u(e,x))throw new d(g);return t.facade=e,c(e,x,t),t},i=function(e){return u(e,x)?e[x]:{}},o=function(e){return u(e,x)}}e.exports={set:n,get:i,has:o,enforce:function(e){return o(e)?i(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!l(t)||(r=i(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return r}}}},44209(e,t,r){var n=r(78227),i=r(26269),o=n("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||s[o]===e)}},34376(e,t,r){var n=r(22195);e.exports=Array.isArray||function(e){return"Array"===n(e)}},94901(e){var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},92796(e,t,r){var n=r(79039),i=r(94901),o=/#|\.prototype\./,s=function(e,t){var r=l[a(e)];return r===u||r!==c&&(i(t)?n(t):!!t)},a=s.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";e.exports=s},64117(e){e.exports=function(e){return null==e}},20034(e,t,r){var n=r(94901);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},96395(e){e.exports=!1},10757(e,t,r){var n=r(97751),i=r(94901),o=r(1625),s=r(7040),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return i(t)&&o(t.prototype,a(e))}},40507(e,t,r){var n=r(69565);e.exports=function(e,t,r){for(var i,o,s=r?e:e.iterator,a=e.next;!(i=n(a,s)).done;)if(void 0!==(o=t(i.value)))return o}},72652(e,t,r){var n=r(76080),i=r(69565),o=r(28551),s=r(16823),a=r(44209),l=r(26198),c=r(1625),u=r(70081),p=r(50851),h=r(9539),f=TypeError,g=function(e,t){this.stopped=e,this.result=t},d=g.prototype;e.exports=function(e,t,r){var b,k,x,m,w,v,y,S=r&&r.that,T=!(!r||!r.AS_ENTRIES),A=!(!r||!r.IS_RECORD),R=!(!r||!r.IS_ITERATOR),I=!(!r||!r.INTERRUPTED),E=n(t,S),z=function(e){var t=b;return b=void 0,t&&h(t,"normal"),new g(!0,e)},$=function(e){return T?(o(e),I?E(e[0],e[1],z):E(e[0],e[1])):I?E(e,z):E(e)};if(A)b=e.iterator;else if(R)b=e;else{if(!(k=p(e)))throw new f(s(e)+" is not iterable");if(a(k)){for(x=0,m=l(e);m>x;x++)if((w=$(e[x]))&&c(d,w))return w;return new g(!1)}b=u(e,k)}for(v=A?e.next:b.next;!(y=i(v,b)).done;){var O=y.value;try{w=$(O)}catch(e){if(!b)throw e;h(b,"throw",e)}if("object"==typeof w&&w&&c(d,w))return w}return new g(!1)}},91385(e,t,r){var n=r(9539);e.exports=function(e,t,r){for(var i=e.length-1;i>=0;i--)if(void 0!==e[i])try{r=n(e[i].iterator,t,r)}catch(e){t="throw",r=e}if("throw"===t)throw r;return r}},9539(e,t,r){var n=r(69565),i=r(28551),o=r(55966);e.exports=function(e,t,r){var s,a;i(e);try{if(!(s=o(e,"return"))){if("throw"===t)throw r;return r}s=n(s,e)}catch(e){a=!0,s=e}if("throw"===t)throw r;if(a)throw s;return i(s),r}},19462(e,t,r){var n=r(69565),i=r(2360),o=r(66699),s=r(56279),a=r(78227),l=r(91181),c=r(55966),u=r(57657).IteratorPrototype,p=r(62529),h=r(9539),f=r(91385),g=a("toStringTag"),d="IteratorHelper",b="WrapForValidIterator",k="normal",x="throw",m=l.set,w=function(e){var t=l.getterFor(e?b:d);return s(i(u),{next:function(){var r=t(this);if(e)return r.nextHandler();if(r.done)return p(void 0,!0);try{var n=r.nextHandler();return r.returnHandlerResult?n:p(n,r.done)}catch(e){throw r.done=!0,e}},return:function(){var r=t(this),i=r.iterator,o=r.done;if(r.done=!0,e){var s=c(i,"return");return s?n(s,i):p(void 0,!0)}if(o)return p(void 0,!0);if(r.inner)try{h(r.inner.iterator,k)}catch(e){return h(i,x,e)}if(r.openIters)try{f(r.openIters,k)}catch(e){if(i)return h(i,x,e);throw e}return i&&h(i,k),p(void 0,!0)}})},v=w(!0),y=w(!1);o(y,g,"Iterator Helper"),e.exports=function(e,t,r){var n=function(n,i){i?(i.iterator=n.iterator,i.next=n.next):i=n,i.type=t?b:d,i.returnHandlerResult=!!r,i.nextHandler=e,i.counter=0,i.done=!1,m(this,i)};return n.prototype=t?v:y,n}},30684(e){e.exports=function(e,t){var r="function"==typeof Iterator&&Iterator.prototype[e];if(r)try{r.call({next:null},t).next()}catch(e){return!0}}},84549(e,t,r){var n=r(44576);e.exports=function(e,t){var r=n.Iterator,i=r&&r.prototype,o=i&&i[e],s=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(e){e instanceof t||(s=!1)}if(!s)return o}},57657(e,t,r){var n,i,o,s=r(79039),a=r(94901),l=r(20034),c=r(2360),u=r(42787),p=r(36840),h=r(78227),f=r(96395),g=h("iterator"),d=!1;[].keys&&("next"in(o=[].keys())?(i=u(u(o)))!==Object.prototype&&(n=i):d=!0),!l(n)||s(function(){var e={};return n[g].call(e)!==e})?n={}:f&&(n=c(n)),a(n[g])||p(n,g,function(){return this}),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},26269(e){e.exports={}},26198(e,t,r){var n=r(18014);e.exports=function(e){return n(e.length)}},50283(e,t,r){var n=r(79504),i=r(79039),o=r(94901),s=r(39297),a=r(43724),l=r(10350).CONFIGURABLE,c=r(33706),u=r(91181),p=u.enforce,h=u.get,f=String,g=Object.defineProperty,d=n("".slice),b=n("".replace),k=n([].join),x=a&&!i(function(){return 8!==g(function(){},"length",{value:8}).length}),m=String(String).split("String"),w=e.exports=function(e,t,r){"Symbol("===d(f(t),0,7)&&(t="["+b(f(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!s(e,"name")||l&&e.name!==t)&&(a?g(e,"name",{value:t,configurable:!0}):e.name=t),x&&r&&s(r,"arity")&&e.length!==r.arity&&g(e,"length",{value:r.arity});try{r&&s(r,"constructor")&&r.constructor?a&&g(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=p(e);return s(n,"source")||(n.source=k(m,"string"==typeof t?t:"")),e};Function.prototype.toString=w(function(){return o(this)&&h(this).source||c(this)},"toString")},72248(e,t,r){var n=r(79504),i=Map.prototype;e.exports={Map,set:n(i.set),get:n(i.get),has:n(i.has),remove:n(i.delete),proto:i}},80741(e){var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},2360(e,t,r){var n,i=r(28551),o=r(96801),s=r(88727),a=r(30421),l=r(20397),c=r(4055),u=r(66119),p="prototype",h="script",f=u("IE_PROTO"),g=function(){},d=function(e){return"<"+h+">"+e+"</"+h+">"},b=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},k=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;k="undefined"!=typeof document?document.domain&&n?b(n):(t=c("iframe"),r="java"+h+":",t.style.display="none",l.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):b(n);for(var i=s.length;i--;)delete k[p][s[i]];return k()};a[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(g[p]=i(e),r=new g,g[p]=null,r[f]=e):r=k(),void 0===t?r:o.f(r,t)}},96801(e,t,r){var n=r(43724),i=r(48686),o=r(24913),s=r(28551),a=r(25397),l=r(71072);t.f=n&&!i?Object.defineProperties:function(e,t){s(e);for(var r,n=a(t),i=l(t),c=i.length,u=0;c>u;)o.f(e,r=i[u++],n[r]);return e}},24913(e,t,r){var n=r(43724),i=r(35917),o=r(48686),s=r(28551),a=r(56969),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",f="writable";t.f=n?o?function(e,t,r){if(s(e),t=a(t),s(r),"function"==typeof e&&"prototype"===t&&"value"in r&&f in r&&!r[f]){var n=u(e,t);n&&n[f]&&(e[t]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:p in r?r[p]:n[p],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(s(e),t=a(t),s(r),i)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new l("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},77347(e,t,r){var n=r(43724),i=r(69565),o=r(48773),s=r(6980),a=r(25397),l=r(56969),c=r(39297),u=r(35917),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(e,t){if(e=a(e),t=l(t),u)try{return p(e,t)}catch(e){}if(c(e,t))return s(!i(o.f,e,t),e[t])}},38480(e,t,r){var n=r(61828),i=r(88727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,i)}},33717(e,t){t.f=Object.getOwnPropertySymbols},42787(e,t,r){var n=r(39297),i=r(94901),o=r(48981),s=r(66119),a=r(12211),l=s("IE_PROTO"),c=Object,u=c.prototype;e.exports=a?c.getPrototypeOf:function(e){var t=o(e);if(n(t,l))return t[l];var r=t.constructor;return i(r)&&t instanceof r?r.prototype:t instanceof c?u:null}},1625(e,t,r){var n=r(79504);e.exports=n({}.isPrototypeOf)},61828(e,t,r){var n=r(79504),i=r(39297),o=r(25397),s=r(19617).indexOf,a=r(30421),l=n([].push);e.exports=function(e,t){var r,n=o(e),c=0,u=[];for(r in n)!i(a,r)&&i(n,r)&&l(u,r);for(;t.length>c;)i(n,r=t[c++])&&(~s(u,r)||l(u,r));return u}},71072(e,t,r){var n=r(61828),i=r(88727);e.exports=Object.keys||function(e){return n(e,i)}},48773(e,t){var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,i=n&&!r.call({1:2},1);t.f=i?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},84270(e,t,r){var n=r(69565),i=r(94901),o=r(20034),s=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&i(r=e.toString)&&!o(a=n(r,e)))return a;if(i(r=e.valueOf)&&!o(a=n(r,e)))return a;if("string"!==t&&i(r=e.toString)&&!o(a=n(r,e)))return a;throw new s("Can't convert object to primitive value")}},35031(e,t,r){var n=r(97751),i=r(79504),o=r(38480),s=r(33717),a=r(28551),l=i([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(a(e)),r=s.f;return r?l(t,r(e)):t}},67750(e,t,r){var n=r(64117),i=TypeError;e.exports=function(e){if(n(e))throw new i("Can't call method on "+e);return e}},89286(e,t,r){var n=r(94402),i=r(38469),o=n.Set,s=n.add;e.exports=function(e){var t=new o;return i(e,function(e){s(t,e)}),t}},83440(e,t,r){var n=r(97080),i=r(94402),o=r(89286),s=r(25170),a=r(83789),l=r(38469),c=r(40507),u=i.has,p=i.remove;e.exports=function(e){var t=n(this),r=a(e),i=o(t);return s(i)<=r.size?l(i,function(e){r.includes(e)&&p(i,e)}):c(r.getIterator(),function(e){u(i,e)&&p(i,e)}),i}},94402(e,t,r){var n=r(79504),i=Set.prototype;e.exports={Set,add:n(i.add),has:n(i.has),remove:n(i.delete),proto:i}},68750(e,t,r){var n=r(97080),i=r(94402),o=r(25170),s=r(83789),a=r(38469),l=r(40507),c=i.Set,u=i.add,p=i.has;e.exports=function(e){var t=n(this),r=s(e),i=new c;return o(t)>r.size?l(r.getIterator(),function(e){p(t,e)&&u(i,e)}):a(t,function(e){r.includes(e)&&u(i,e)}),i}},64449(e,t,r){var n=r(97080),i=r(94402).has,o=r(25170),s=r(83789),a=r(38469),l=r(40507),c=r(9539);e.exports=function(e){var t=n(this),r=s(e);if(o(t)<=r.size)return!1!==a(t,function(e){if(r.includes(e))return!1},!0);var u=r.getIterator();return!1!==l(u,function(e){if(i(t,e))return c(u.iterator,"normal",!1)})}},53838(e,t,r){var n=r(97080),i=r(25170),o=r(38469),s=r(83789);e.exports=function(e){var t=n(this),r=s(e);return!(i(t)>r.size)&&!1!==o(t,function(e){if(!r.includes(e))return!1},!0)}},28527(e,t,r){var n=r(97080),i=r(94402).has,o=r(25170),s=r(83789),a=r(40507),l=r(9539);e.exports=function(e){var t=n(this),r=s(e);if(o(t)<r.size)return!1;var c=r.getIterator();return!1!==a(c,function(e){if(!i(t,e))return l(c.iterator,"normal",!1)})}},38469(e,t,r){var n=r(79504),i=r(40507),o=r(94402),s=o.Set,a=o.proto,l=n(a.forEach),c=n(a.keys),u=c(new s).next;e.exports=function(e,t,r){return r?i({iterator:c(e),next:u},t):l(e,t)}},84916(e,t,r){var n=r(97751),i=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},o=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};e.exports=function(e,t){var r=n("Set");try{(new r)[e](i(0));try{return(new r)[e](i(-1)),!1}catch(n){if(!t)return!0;try{return(new r)[e](o(-1/0)),!1}catch(n){return t(new r([1,2])[e](o(1/0)))}}}catch(e){return!1}}},39835(e){e.exports=function(e){try{var t=new Set,r={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},n=t[e](r);return 1===n.size&&4===n.values().next().value}catch(e){return!1}}},25170(e,t,r){var n=r(46706),i=r(94402);e.exports=n(i.proto,"size","get")||function(e){return e.size}},83650(e,t,r){var n=r(97080),i=r(94402),o=r(89286),s=r(83789),a=r(40507),l=i.add,c=i.has,u=i.remove;e.exports=function(e){var t=n(this),r=s(e).getIterator(),i=o(t);return a(r,function(e){c(t,e)?u(i,e):l(i,e)}),i}},44204(e,t,r){var n=r(97080),i=r(94402).add,o=r(89286),s=r(83789),a=r(40507);e.exports=function(e){var t=n(this),r=s(e).getIterator(),l=o(t);return a(r,function(e){i(l,e)}),l}},66119(e,t,r){var n=r(25745),i=r(33392),o=n("keys");e.exports=function(e){return o[e]||(o[e]=i(e))}},77629(e,t,r){var n=r(96395),i=r(44576),o=r(39433),s="__core-js_shared__",a=e.exports=i[s]||o(s,{});(a.versions||(a.versions=[])).push({version:"3.49.0",mode:n?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"})},25745(e,t,r){var n=r(77629);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},4495(e,t,r){var n=r(39519),i=r(79039),o=r(44576).String;e.exports=!!Object.getOwnPropertySymbols&&!i(function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},35610(e,t,r){var n=r(91291),i=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?i(r+t,0):o(r,t)}},25397(e,t,r){var n=r(47055),i=r(67750);e.exports=function(e){return n(i(e))}},91291(e,t,r){var n=r(80741);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},18014(e,t,r){var n=r(91291),i=Math.min;e.exports=function(e){var t=n(e);return t>0?i(t,9007199254740991):0}},48981(e,t,r){var n=r(67750),i=Object;e.exports=function(e){return i(n(e))}},72777(e,t,r){var n=r(69565),i=r(20034),o=r(10757),s=r(55966),a=r(84270),l=r(78227),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!i(e)||o(e))return e;var r,l=s(e,u);if(l){if(void 0===t&&(t="default"),r=n(l,e,t),!i(r)||o(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},56969(e,t,r){var n=r(72777),i=r(10757);e.exports=function(e){var t=n(e,"string");return i(t)?t:t+""}},92140(e,t,r){var n={};n[r(78227)("toStringTag")]="z",e.exports="[object z]"===String(n)},16823(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},33392(e,t,r){var n=r(79504),i=0,o=Math.random(),s=n(1.1.toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++i+o,36)}},7040(e,t,r){var n=r(4495);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},48686(e,t,r){var n=r(43724),i=r(79039);e.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},58622(e,t,r){var n=r(44576),i=r(94901),o=n.WeakMap;e.exports=i(o)&&/native code/.test(String(o))},44995(e,t,r){var n=r(79504),i=WeakMap.prototype;e.exports={WeakMap,set:n(i.set),get:n(i.get),has:n(i.has),remove:n(i.delete)}},78227(e,t,r){var n=r(44576),i=r(25745),o=r(39297),s=r(33392),a=r(4495),l=r(7040),c=n.Symbol,u=i("wks"),p=l?c.for||c:c&&c.withoutSetter||s;e.exports=function(e){return o(u,e)||(u[e]=a&&o(c,e)?c[e]:p("Symbol."+e)),u[e]}},74423(e,t,r){var n=r(46518),i=r(19617).includes,o=r(79039),s=r(6469),a=o(function(){return!Array(1).includes()}),l=o(function(){return[,1].includes(void 0,1)});n({target:"Array",proto:!0,forced:a||l},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),s("includes")},44114(e,t,r){var n=r(46518),i=r(48981),o=r(26198),s=r(34527),a=r(96837);n({target:"Array",proto:!0,arity:1,forced:r(79039)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=i(this),r=o(t),n=arguments.length;a(r+n);for(var l=0;l<n;l++)t[r]=arguments[l],r++;return s(t,r),r}})},18111(e,t,r){var n=r(46518),i=r(44576),o=r(90679),s=r(28551),a=r(94901),l=r(42787),c=r(62106),u=r(97040),p=r(79039),h=r(39297),f=r(78227),g=r(57657).IteratorPrototype,d=r(43724),b=r(96395),k="constructor",x="Iterator",m=f("toStringTag"),w=TypeError,v=i[x],y=b||!a(v)||v.prototype!==g||!p(function(){v({})}),S=function(){if(o(this,g),l(this)===g)throw new w("Abstract class Iterator not directly constructable")},T=function(e,t){d?c(g,e,{configurable:!0,get:function(){return t},set:function(t){if(s(this),this===g)throw new w("You can't redefine this property");h(this,e)?this[e]=t:u(this,e,t)}}):g[e]=t};h(g,m)||T(m,x),!y&&h(g,k)&&g[k]!==Object||T(k,S),S.prototype=g,n({global:!0,constructor:!0,forced:y},{Iterator:S})},22489(e,t,r){var n=r(46518),i=r(69565),o=r(79306),s=r(28551),a=r(1767),l=r(19462),c=r(96319),u=r(96395),p=r(9539),h=r(30684),f=r(84549),g=!u&&!h("filter",function(){}),d=!u&&!g&&f("filter",TypeError),b=u||g||d,k=l(function(){for(var e,t,r=this.iterator,n=this.predicate,o=this.next;;){if(e=s(i(o,r)),this.done=!!e.done)return;if(t=e.value,c(r,n,[t,this.counter++],!0))return t}});n({target:"Iterator",proto:!0,real:!0,forced:b},{filter:function(e){s(this);try{o(e)}catch(e){p(this,"throw",e)}return d?i(d,this,e):new k(a(this),{predicate:e})}})},7588(e,t,r){var n=r(46518),i=r(69565),o=r(72652),s=r(79306),a=r(28551),l=r(1767),c=r(9539),u=r(84549)("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{forEach:function(e){a(this);try{s(e)}catch(e){c(this,"throw",e)}if(u)return i(u,this,e);var t=l(this),r=0;o(t,function(t){e(t,r++)},{IS_RECORD:!0})}})},61701(e,t,r){var n=r(46518),i=r(69565),o=r(79306),s=r(28551),a=r(1767),l=r(19462),c=r(96319),u=r(9539),p=r(30684),h=r(84549),f=r(96395),g=!f&&!p("map",function(){}),d=!f&&!g&&h("map",TypeError),b=f||g||d,k=l(function(){var e=this.iterator,t=s(i(this.next,e));if(!(this.done=!!t.done))return c(e,this.mapper,[t.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:b},{map:function(e){s(this);try{o(e)}catch(e){u(this,"throw",e)}return d?i(d,this,e):new k(a(this),{mapper:e})}})},18237(e,t,r){var n=r(46518),i=r(72652),o=r(79306),s=r(28551),a=r(1767),l=r(9539),c=r(84549),u=r(18745),p=r(79039),h=TypeError,f=p(function(){[].keys().reduce(function(){},void 0)}),g=!f&&c("reduce",h);n({target:"Iterator",proto:!0,real:!0,forced:f||g},{reduce:function(e){s(this);try{o(e)}catch(e){l(this,"throw",e)}var t=arguments.length<2,r=t?void 0:arguments[1];if(g)return u(g,this,t?[e]:[e,r]);var n=a(this),c=0;if(i(n,function(n){t?(t=!1,r=n):r=e(r,n,c),c++},{IS_RECORD:!0}),t)throw new h("Reduce of empty iterator with no initial value");return r}})},13579(e,t,r){var n=r(46518),i=r(69565),o=r(72652),s=r(79306),a=r(28551),l=r(1767),c=r(9539),u=r(84549)("some",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:u},{some:function(e){a(this);try{s(e)}catch(e){c(this,"throw",e)}if(u)return i(u,this,e);var t=l(this),r=0;return o(t,function(t,n){if(e(t,r++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},92731(e,t,r){var n=r(46518),i=r(79306),o=r(72248),s=r(96395),a=o.get,l=o.has,c=o.set;n({target:"Map",proto:!0,real:!0,forced:s},{getOrInsertComputed:function(e,t){var r=l(this,e);if(i(t),r)return a(this,e);0===e&&1/e==-1/0&&(e=0);var n=t(e);return c(this,e,n),n}})},45367(e,t,r){var n=r(46518),i=r(72248),o=r(96395),s=i.get,a=i.has,l=i.set;n({target:"Map",proto:!0,real:!0,forced:o},{getOrInsert:function(e,t){return a(this,e)?s(this,e):(l(this,e,t),t)}})},17642(e,t,r){var n=r(46518),i=r(83440),o=r(79039);n({target:"Set",proto:!0,real:!0,forced:!r(84916)("difference",function(e){return 0===e.size})||o(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var r=e++>1;return t.has(1)&&t.clear(),{done:r,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size})},{difference:i})},58004(e,t,r){var n=r(46518),i=r(79039),o=r(68750);n({target:"Set",proto:!0,real:!0,forced:!r(84916)("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||i(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:o})},33853(e,t,r){var n=r(46518),i=r(64449);n({target:"Set",proto:!0,real:!0,forced:!r(84916)("isDisjointFrom",function(e){return!e})},{isDisjointFrom:i})},45876(e,t,r){var n=r(46518),i=r(53838);n({target:"Set",proto:!0,real:!0,forced:!r(84916)("isSubsetOf",function(e){return e})},{isSubsetOf:i})},32475(e,t,r){var n=r(46518),i=r(28527);n({target:"Set",proto:!0,real:!0,forced:!r(84916)("isSupersetOf",function(e){return!e})},{isSupersetOf:i})},15024(e,t,r){var n=r(46518),i=r(83650),o=r(39835);n({target:"Set",proto:!0,real:!0,forced:!r(84916)("symmetricDifference")||!o("symmetricDifference")},{symmetricDifference:i})},31698(e,t,r){var n=r(46518),i=r(44204),o=r(39835);n({target:"Set",proto:!0,real:!0,forced:!r(84916)("union")||!o("union")},{union:i})},29452(e,t,r){var n=r(46518),i=r(79306),o=r(76557),s=r(84328),a=r(44995),l=r(96395),c=a.get,u=a.has,p=a.set;n({target:"WeakMap",proto:!0,real:!0,forced:l||!function(){try{WeakMap.prototype.getOrInsertComputed&&(new WeakMap).getOrInsertComputed(1,function(){throw 1})}catch(e){return e instanceof TypeError}}()},{getOrInsertComputed:function(e,t){if(l||o(this),s(e),i(t),u(this,e))return c(this,e);var r=t(e);return p(this,e,r),r}})},88454(e,t,r){var n=r(46518),i=r(44995),o=r(96395),s=i.get,a=i.has,l=i.set;n({target:"WeakMap",proto:!0,real:!0,forced:o},{getOrInsert:function(e,t){return a(this,e)?s(this,e):(l(this,e,t),t)}})}},t={};function r(n){var i=t[n];if(void 0!==i)return i.exports;var o=t[n]={exports:{}};return e[n].call(o.exports,o,o.exports,r),o.exports}(()=>{r(44114),r(18111),r(61701),r(18237),r(45367),r(92731),r(88454),r(29452);const e=Symbol("Comlink.proxy"),t=Symbol("Comlink.endpoint"),n=Symbol("Comlink.releaseProxy"),i=Symbol("Comlink.finalizer"),o=Symbol("Comlink.thrown"),s=e=>"object"==typeof e&&null!==e||"function"==typeof e,a={canHandle:t=>s(t)&&t[e],serialize(e){const{port1:t,port2:r}=new MessageChannel;return c(e,t),[r,[r]]},deserialize:e=>(e.start(),function(e,t){const r=new Map;return e.addEventListener("message",function(e){const{data:t}=e;if(!t||!t.id)return;const n=r.get(t.id);if(n)try{n(t)}finally{r.delete(t.id)}}),d(e,r,[],t)}(e))},l=new Map([["proxy",a],["throw",{canHandle:e=>s(e)&&o in e,serialize({value:e}){let t;return t=e instanceof Error?{isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:{isError:!1,value:e},[t,[]]},deserialize(e){if(e.isError)throw Object.assign(new Error(e.value.message),e.value);throw e.value}}]]);function c(t,r=globalThis,n=["*"]){r.addEventListener("message",function s(a){if(!a||!a.data)return;if(!function(e,t){for(const r of e){if(t===r||"*"===r)return!0;if(r instanceof RegExp&&r.test(t))return!0}return!1}(n,a.origin))return void console.warn(`Invalid origin '${a.origin}' for comlink proxy`);const{id:l,type:p,path:h}=Object.assign({path:[]},a.data),f=(a.data.argumentList||[]).map(m);let g;try{const r=h.slice(0,-1).reduce((e,t)=>e[t],t),n=h.reduce((e,t)=>e[t],t);switch(p){case"GET":g=n;break;case"SET":r[h.slice(-1)[0]]=m(a.data.value),g=!0;break;case"APPLY":g=n.apply(r,f);break;case"CONSTRUCT":g=function(t){return Object.assign(t,{[e]:!0})}(new n(...f));break;case"ENDPOINT":{const{port1:e,port2:r}=new MessageChannel;c(t,r),g=function(e,t){return k.set(e,t),e}(e,[e])}break;case"RELEASE":g=void 0;break;default:return}}catch(e){g={value:e,[o]:0}}Promise.resolve(g).catch(e=>({value:e,[o]:0})).then(e=>{const[n,o]=x(e);r.postMessage(Object.assign(Object.assign({},n),{id:l}),o),"RELEASE"===p&&(r.removeEventListener("message",s),u(r),i in t&&"function"==typeof t[i]&&t[i]())}).catch(e=>{const[t,n]=x({value:new TypeError("Unserializable return value"),[o]:0});r.postMessage(Object.assign(Object.assign({},t),{id:l}),n)})}),r.start&&r.start()}function u(e){(function(e){return"MessagePort"===e.constructor.name})(e)&&e.close()}function p(e){if(e)throw new Error("Proxy has been released and is not useable")}function h(e){return w(e,new Map,{type:"RELEASE"}).then(()=>{u(e)})}const f=new WeakMap,g="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(f.get(e)||0)-1;f.set(e,t),0===t&&h(e)});function d(e,r,i=[],o=function(){}){let s=!1;const a=new Proxy(o,{get(t,o){if(p(s),o===n)return()=>{!function(e){g&&g.unregister(e)}(a),h(e),r.clear(),s=!0};if("then"===o){if(0===i.length)return{then:()=>a};const t=w(e,r,{type:"GET",path:i.map(e=>e.toString())}).then(m);return t.then.bind(t)}return d(e,r,[...i,o])},set(t,n,o){p(s);const[a,l]=x(o);return w(e,r,{type:"SET",path:[...i,n].map(e=>e.toString()),value:a},l).then(m)},apply(n,o,a){p(s);const l=i[i.length-1];if(l===t)return w(e,r,{type:"ENDPOINT"}).then(m);if("bind"===l)return d(e,r,i.slice(0,-1));const[c,u]=b(a);return w(e,r,{type:"APPLY",path:i.map(e=>e.toString()),argumentList:c},u).then(m)},construct(t,n){p(s);const[o,a]=b(n);return w(e,r,{type:"CONSTRUCT",path:i.map(e=>e.toString()),argumentList:o},a).then(m)}});return function(e,t){const r=(f.get(t)||0)+1;f.set(t,r),g&&g.register(e,t,e)}(a,e),a}function b(e){const t=e.map(x);return[t.map(e=>e[0]),(r=t.map(e=>e[1]),Array.prototype.concat.apply([],r))];var r}const k=new WeakMap;function x(e){for(const[t,r]of l)if(r.canHandle(e)){const[n,i]=r.serialize(e);return[{type:"HANDLER",name:t,value:n},i]}return[{type:"RAW",value:e},k.get(e)||[]]}function m(e){switch(e.type){case"HANDLER":return l.get(e.name).deserialize(e.value);case"RAW":return e.value}}function w(e,t,r,n){return new Promise(i=>{const o=new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-");t.set(o,i),e.start&&e.start(),e.postMessage(Object.assign({id:o},r),n)})}var v;r(74423),r(22489),r(7588),r(13579),r(17642),r(58004),r(33853),r(45876),r(32475),r(15024),r(31698);function y(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var S={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function T(e){S=e}var A={exec:()=>null};function R(e){let t=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),i=t[n];return i||(i=e(n),t[n]=i),i}}function I(e,t=""){let r="string"==typeof e?e:e.source,n={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(z.caret,"$1"),r=r.replace(e,i),n},getRegex:()=>new RegExp(r,t)};return n}var E=((e="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+e)}catch{return!1}})(),z={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:R(e=>new RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`)),hrRegex:R(e=>new RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:R(e=>new RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),headingBeginRegex:R(e=>new RegExp(`^ {0,${e}}#`)),htmlBeginRegex:R(e=>new RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:R(e=>new RegExp(`^ {0,${e}}>`))},$=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,O=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,P=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,C=I(P).replace(/bull/g,O).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),L=I(P).replace(/bull/g,O).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),j=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,_=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,D=I(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",_).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),M=I(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,O).getRegex(),B="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",q=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,W=I("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",q).replace("tag",B).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),F=I(j).replace("hr",$).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",B).getRegex(),N={blockquote:I(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",F).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:D,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:$,html:W,lheading:C,list:M,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:F,table:A,text:/^[^\n]+/},H=I("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",B).getRegex(),Z={...N,lheading:L,table:H,paragraph:I(j).replace("hr",$).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",H).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",B).getRegex()},G={...N,html:I("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",q).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:A,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:I(j).replace("hr",$).replace("heading"," *#{1,6} *[^\n]").replace("lheading",C).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Q=/^( {2,}|\\)\n(?!\s*$)/,V=/[\p{P}\p{S}]/u,U=/[\s\p{P}\p{S}]/u,X=/[^\s\p{P}\p{S}]/u,Y=I(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,U).getRegex(),J=/(?!~)[\p{P}\p{S}]/u,K=I(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",E?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ee=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,te=I(ee,"u").replace(/punct/g,V).getRegex(),re=I(ee,"u").replace(/punct/g,J).getRegex(),ne="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",ie=I(ne,"gu").replace(/notPunctSpace/g,X).replace(/punctSpace/g,U).replace(/punct/g,V).getRegex(),oe=I(ne,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,J).getRegex(),se=I("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,X).replace(/punctSpace/g,U).replace(/punct/g,V).getRegex(),ae=I(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,V).getRegex(),le=I("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,X).replace(/punctSpace/g,U).replace(/punct/g,V).getRegex(),ce=I(/\\(punct)/,"gu").replace(/punct/g,V).getRegex(),ue=I(/^<(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(),pe=I(q).replace("(?:--\x3e|$)","--\x3e").getRegex(),he=I("^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",pe).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),fe=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,ge=I(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",fe).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),de=I(/^!?\[(label)\]\[(ref)\]/).replace("label",fe).replace("ref",_).getRegex(),be=I(/^!?\[(ref)\](?:\[\])?/).replace("ref",_).getRegex(),ke=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,xe={_backpedal:A,anyPunctuation:ce,autolink:ue,blockSkip:K,br:Q,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:A,delLDelim:A,delRDelim:A,emStrongLDelim:te,emStrongRDelimAst:ie,emStrongRDelimUnd:se,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:ge,nolink:be,punctuation:Y,reflink:de,reflinkSearch:I("reflink|nolink(?!\\()","g").replace("reflink",de).replace("nolink",be).getRegex(),tag:he,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:A},me={...xe,link:I(/^!?\[(label)\]\((.*?)\)/).replace("label",fe).getRegex(),reflink:I(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",fe).getRegex()},we={...xe,emStrongRDelimAst:oe,emStrongLDelim:re,delLDelim:ae,delRDelim:le,url:I(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",ke).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:I(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",ke).getRegex()},ve={...we,br:I(Q).replace("{2,}","*").getRegex(),text:I(we.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ye={normal:N,gfm:Z,pedantic:G},Se={normal:xe,gfm:we,breaks:ve,pedantic:me},Te={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ae=e=>Te[e];function Re(e,t){if(t){if(z.escapeTest.test(e))return e.replace(z.escapeReplace,Ae)}else if(z.escapeTestNoEncode.test(e))return e.replace(z.escapeReplaceNoEncode,Ae);return e}function Ie(e){try{e=encodeURI(e).replace(z.percentDecode,"%")}catch{return null}return e}function Ee(e,t){let r=e.replace(z.findPipe,(e,t,r)=>{let n=!1,i=t;for(;--i>=0&&"\\"===r[i];)n=!n;return n?"|":" |"}).split(z.splitPipe),n=0;if(r[0].trim()||r.shift(),r.length>0&&!r.at(-1)?.trim()&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(z.slashPipe,"|");return r}function ze(e,t,r){let n=e.length;if(0===n)return"";let i=0;for(;i<n;){let o=e.charAt(n-i-1);if(o!==t||r){if(o===t||!r)break;i++}else i++}return e.slice(0,n-i)}function $e(e){let t=e.split("\n"),r=t.length-1;for(;r>=0&&z.blankLine.test(t[r]);)r--;return t.length-r<=2?e:t.slice(0,r+1).join("\n")}function Oe(e,t=0){let r=t,n="";for(let t of e)if("\t"===t){let e=4-r%4;n+=" ".repeat(e),r+=e}else n+=t,r++;return n}function Pe(e,t,r,n,i){let o=t.href,s=t.title||null,a=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:r,href:o,title:s,text:a,tokens:n.inlineTokens(a)};return n.state.inLink=!1,l}var Ce=class{space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=this.options.pedantic?t[0]:$e(t[0]),r=e.replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e,codeBlockStyle:"indented",text:r}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],r=function(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(null===n)return t;let i=n[1];return t.split("\n").map(e=>{let t=e.match(r.other.beginningSpace);if(null===t)return e;let[n]=t;return n.length>=i.length?e.slice(i.length):e}).join("\n")}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:r}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=ze(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:ze(t[0],"\n"),depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:ze(t[0],"\n")}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=ze(t[0],"\n").split("\n"),r="",n="",i=[];for(;e.length>0;){let t,o=!1,s=[];for(t=0;t<e.length;t++)if(this.rules.other.blockquoteStart.test(e[t]))s.push(e[t]),o=!0;else{if(o)break;s.push(e[t])}e=e.slice(t);let a=s.join("\n"),l=a.replace(this.rules.other.blockquoteSetextReplace,"\n    $1").replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}\n${a}`:a,n=n?`${n}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===e.length)break;let u=i.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){let t=u,o=t.raw+"\n"+e.join("\n"),s=this.blockquote(o);i[i.length-1]=s,r=r.substring(0,r.length-t.raw.length)+s.raw,n=n.substring(0,n.length-t.text.length)+s.text;break}if("list"===u?.type){let t=u,o=t.raw+"\n"+e.join("\n"),s=this.list(o);i[i.length-1]=s,r=r.substring(0,r.length-u.raw.length)+s.raw,n=n.substring(0,n.length-t.raw.length)+s.raw,e=o.substring(i.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:r,tokens:i,text:n}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim(),n=r.length>1,i={type:"list",raw:"",ordered:n,start:n?+r.slice(0,-1):"",loose:!1,items:[]};r=n?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=n?r:"[*+-]");let o=this.rules.other.listItemRegex(r),s=!1;for(;e;){let r=!1,n="",a="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;n=t[0],e=e.substring(n.length);let l=Oe(t[2].split("\n",1)[0],t[1].length),c=e.split("\n",1)[0],u=!l.trim(),p=0;if(this.options.pedantic?(p=2,a=l.trimStart()):u?p=t[1].length+1:(p=l.search(this.rules.other.nonSpaceChar),p=p>4?1:p,a=l.slice(p),p+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),r=!0),!r){let t=this.rules.other.nextBulletRegex(p),r=this.rules.other.hrRegex(p),i=this.rules.other.fencesBeginRegex(p),o=this.rules.other.headingBeginRegex(p),s=this.rules.other.htmlBeginRegex(p),h=this.rules.other.blockquoteBeginRegex(p);for(;e;){let f,g=e.split("\n",1)[0];if(c=g,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting,"  "),f=c):f=c.replace(this.rules.other.tabCharGlobal,"    "),i.test(c)||o.test(c)||s.test(c)||h.test(c)||t.test(c)||r.test(c))break;if(f.search(this.rules.other.nonSpaceChar)>=p||!c.trim())a+="\n"+f.slice(p);else{if(u||l.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||o.test(l)||r.test(l))break;a+="\n"+c}u=!c.trim(),n+=g+"\n",e=e.substring(g.length+1),l=f.slice(p)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(n)&&(s=!0)),i.items.push({type:"list_item",raw:n,task:!!this.options.gfm&&this.rules.other.listIsTask.test(a),loose:!1,text:a,tokens:[]}),i.raw+=n}let a=i.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),i.raw=i.raw.trimEnd();for(let e of i.items){this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]);let t=e.tokens[0];if(!e.task||"text"!==t?.type&&"paragraph"!==t?.type)e.task&&(e.task=!1);else{e.text=e.text.replace(this.rules.other.listReplaceTask,""),t.raw=t.raw.replace(this.rules.other.listReplaceTask,""),t.text=t.text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}let r=this.rules.other.listTaskCheckbox.exec(e.raw);if(r){let t={type:"checkbox",raw:r[0]+" ",checked:"[ ]"!==r[0]};e.checked=t.checked,i.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=t.raw+e.tokens[0].raw,e.tokens[0].text=t.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(t)):e.tokens.unshift({type:"paragraph",raw:t.raw,text:t.raw,tokens:[t]}):e.tokens.unshift(t)}}if(!i.loose){let t=e.tokens.filter(e=>"space"===e.type),r=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));i.loose=r}}if(i.loose)for(let e of i.items){e.loose=!0;for(let t of e.tokens)"text"===t.type&&(t.type="paragraph")}return i}}html(e){let t=this.rules.block.html.exec(e);if(t){let e=$e(t[0]);return{type:"html",block:!0,raw:e,pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:e}}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",n=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:ze(t[0],"\n"),href:r,title:n}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let r=Ee(t[1]),n=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],o={type:"table",raw:ze(t[0],"\n"),header:[],align:[],rows:[]};if(r.length===n.length){for(let e of n)this.rules.other.tableAlignRight.test(e)?o.align.push("right"):this.rules.other.tableAlignCenter.test(e)?o.align.push("center"):this.rules.other.tableAlignLeft.test(e)?o.align.push("left"):o.align.push(null);for(let e=0;e<r.length;e++)o.header.push({text:r[e],tokens:this.lexer.inline(r[e]),header:!0,align:o.align[e]});for(let e of i)o.rows.push(Ee(e,o.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:o.align[t]})));return o}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t){let e=t[1].trim();return{type:"heading",raw:ze(t[0],"\n"),depth:"="===t[2].charAt(0)?1:2,text:e,tokens:this.lexer.inline(e)}}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=ze(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(t[1]))return-1;let r=0;for(let n=0;n<e.length;n++)if("\\"===e[n])n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let r=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,r).trim(),t[3]=""}}let r=t[2],n="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(r);e&&(r=e[1],n=e[3])}else n=t[3]?t[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(r=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?r.slice(1):r.slice(1,-1)),Pe(t,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:n&&n.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let e=t[(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=r[0].charAt(0);return{type:"text",raw:e,text:e}}return Pe(r,e,r[0],this.lexer,this.rules)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(n&&(n[1]||n[2]||n[3]||n[4])&&(!n[4]||!r.match(this.rules.other.unicodeAlphaNumeric))&&(!n[1]&&!n[3]||!r||this.rules.inline.punctuation.exec(r))){let r,i,o=[...n[0]].length-1,s=o,a=0,l="*"===n[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+o);null!==(n=l.exec(t));){if(r=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!r)continue;if(i=[...r].length,n[3]||n[4]){s+=i;continue}if((n[5]||n[6])&&o%3&&!((o+i)%3)){a+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s+a);let t=[...n[0]][0].length,l=e.slice(0,o+n.index+t+i);if(Math.min(o,i)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(e),n=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return r&&n&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,r=""){let n=this.rules.inline.delLDelim.exec(e);if(n&&(!n[1]||!r||this.rules.inline.punctuation.exec(r))){let r,i,o=[...n[0]].length-1,s=o,a=this.rules.inline.delRDelim;for(a.lastIndex=0,t=t.slice(-1*e.length+o);null!==(n=a.exec(t));){if(r=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!r||(i=[...r].length,i!==o))continue;if(n[3]||n[4]){s+=i;continue}if(s-=i,s>0)continue;i=Math.min(i,i+s);let t=[...n[0]][0].length,a=e.slice(0,o+n.index+t+i),l=a.slice(o,-o);return{type:"del",raw:a,text:l,tokens:this.lexer.inlineTokens(l)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,r;return"@"===t[2]?(e=t[1],r="mailto:"+e):(e=t[1],r=e),{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,r;if("@"===t[2])e=t[0],r="mailto:"+e;else{let n;do{n=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??""}while(n!==t[0]);e=t[0],r="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}constructor(e){this.options=e||S}},Le=class e{static get rules(){return{block:ye,inline:Se}}static lex(t,r){return new e(r).lex(t)}static lexInline(t,r){return new e(r).inlineTokens(t)}lex(e){e=e.replace(z.carriageReturn,"\n"),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],r=!1){this.tokenizer.lexer=this,this.options.pedantic&&(e=e.replace(z.tabCharGlobal,"    ").replace(z.spaceLine,""));let n=1/0;for(;e;){if(!(e.length<n)){this.infiniteLoopError(e.charCodeAt(0));break}let i;if(n=e.length,this.options.extensions?.block?.some(r=>!!(i=r.call({lexer:this},e,t))&&(e=e.substring(i.raw.length),t.push(i),!0)))continue;if(i=this.tokenizer.space(e)){e=e.substring(i.raw.length);let r=t.at(-1);1===i.raw.length&&void 0!==r?r.raw+="\n":t.push(i);continue}if(i=this.tokenizer.code(e)){e=e.substring(i.raw.length);let r=t.at(-1);"paragraph"===r?.type||"text"===r?.type?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+i.raw,r.text+="\n"+i.text,this.inlineQueue.at(-1).src=r.text):t.push(i);continue}if(i=this.tokenizer.fences(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.heading(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.hr(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.blockquote(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.list(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.html(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.def(e)){e=e.substring(i.raw.length);let r=t.at(-1);"paragraph"===r?.type||"text"===r?.type?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+i.raw,r.text+="\n"+i.raw,this.inlineQueue.at(-1).src=r.text):this.tokens.links[i.tag]||(this.tokens.links[i.tag]={href:i.href,title:i.title},t.push(i));continue}if(i=this.tokenizer.table(e)){e=e.substring(i.raw.length),t.push(i);continue}if(i=this.tokenizer.lheading(e)){e=e.substring(i.raw.length),t.push(i);continue}let o=e;if(this.options.extensions?.startBlock){let t,r=1/0,n=e.slice(1);this.options.extensions.startBlock.forEach(e=>{t=e.call({lexer:this},n),"number"==typeof t&&t>=0&&(r=Math.min(r,t))}),r<1/0&&r>=0&&(o=e.substring(0,r+1))}if(this.state.top&&(i=this.tokenizer.paragraph(o))){let n=t.at(-1);r&&"paragraph"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+i.raw,n.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(i),r=o.length!==e.length,e=e.substring(i.raw.length);continue}if(i=this.tokenizer.text(e)){e=e.substring(i.raw.length);let r=t.at(-1);"text"===r?.type?(r.raw+=(r.raw.endsWith("\n")?"":"\n")+i.raw,r.text+="\n"+i.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=r.text):t.push(i);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){this.tokenizer.lexer=this;let r,n=e,i=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!==(i=this.tokenizer.rules.inline.reflinkSearch.exec(n));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!==(i=this.tokenizer.rules.inline.anyPunctuation.exec(n));)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!==(i=this.tokenizer.rules.inline.blockSkip.exec(n));)r=i[2]?i[2].length:0,n=n.slice(0,i.index+r)+"["+"a".repeat(i[0].length-r-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let o=!1,s="",a=1/0;for(;e;){if(!(e.length<a)){this.infiniteLoopError(e.charCodeAt(0));break}let r;if(a=e.length,o||(s=""),o=!1,this.options.extensions?.inline?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);"text"===r.type&&"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,s)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e,n,s)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t,r=1/0,n=e.slice(1);this.options.extensions.startInline.forEach(e=>{t=e.call({lexer:this},n),"number"==typeof t&&t>=0&&(r=Math.min(r,t))}),r<1/0&&r>=0&&(i=e.substring(0,r+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),"_"!==r.raw.slice(-1)&&(s=r.raw.slice(-1)),o=!0;let n=t.at(-1);"text"===n?.type?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){this.infiniteLoopError(e.charCodeAt(0));break}}return t}infiniteLoopError(e){let t="Infinite loop on byte: "+e;if(!this.options.silent)throw new Error(t);console.error(t)}constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||S,this.options.tokenizer=this.options.tokenizer||new Ce,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 t={other:z,block:ye.normal,inline:Se.normal};this.options.pedantic?(t.block=ye.pedantic,t.inline=Se.pedantic):this.options.gfm&&(t.block=ye.gfm,this.options.breaks?t.inline=Se.breaks:t.inline=Se.gfm),this.tokenizer.rules=t}},je=class{space(e){return""}code({text:e,lang:t,escaped:r}){let n=(t||"").match(z.notSpaceStart)?.[0],i=e.replace(z.endingNewline,"")+"\n";return n?'<pre><code class="language-'+Re(n)+'">'+(r?i:Re(i,!0))+"</code></pre>\n":"<pre><code>"+(r?i:Re(i,!0))+"</code></pre>\n"}blockquote({tokens:e}){return`<blockquote>\n${this.parser.parse(e)}</blockquote>\n`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>\n`}hr(e){return"<hr>\n"}list(e){let t=e.ordered,r=e.start,n="";for(let t=0;t<e.items.length;t++){let r=e.items[t];n+=this.listitem(r)}let i=t?"ol":"ul";return"<"+i+(t&&1!==r?' start="'+r+'"':"")+">\n"+n+"</"+i+">\n"}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li>\n`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>\n`}table(e){let t="",r="";for(let t=0;t<e.header.length;t++)r+=this.tablecell(e.header[t]);t+=this.tablerow({text:r});let n="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];r="";for(let e=0;e<i.length;e++)r+=this.tablecell(i[e]);n+=this.tablerow({text:r})}return n&&(n=`<tbody>${n}</tbody>`),"<table>\n<thead>\n"+t+"</thead>\n"+n+"</table>\n"}tablerow({text:e}){return`<tr>\n${e}</tr>\n`}tablecell(e){let t=this.parser.parseInline(e.tokens),r=e.header?"th":"td";return(e.align?`<${r} align="${e.align}">`:`<${r}>`)+t+`</${r}>\n`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${Re(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:r}){let n=this.parser.parseInline(r),i=Ie(e);if(null===i)return n;let o='<a href="'+(e=i)+'"';return t&&(o+=' title="'+Re(t)+'"'),o+=">"+n+"</a>",o}image({href:e,title:t,text:r,tokens:n}){n&&(r=this.parser.parseInline(n,this.parser.textRenderer));let i=Ie(e);if(null===i)return Re(r);let o=`<img src="${e=i}" alt="${Re(r)}"`;return t&&(o+=` title="${Re(t)}"`),o+=">",o}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:Re(e.text)}constructor(e){this.options=e||S}},_e=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},De=class e{static parse(t,r){return new e(r).parse(t)}static parseInline(t,r){return new e(r).parseInline(t)}parse(e){this.renderer.parser=this;let t="";for(let r=0;r<e.length;r++){let n=e[r];if(this.options.extensions?.renderers?.[n.type]){let e=n,r=this.options.extensions.renderers[e.type].call({parser:this},e);if(!1!==r||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(e.type)){t+=r||"";continue}}let i=n;switch(i.type){case"space":t+=this.renderer.space(i);break;case"hr":t+=this.renderer.hr(i);break;case"heading":t+=this.renderer.heading(i);break;case"code":t+=this.renderer.code(i);break;case"table":t+=this.renderer.table(i);break;case"blockquote":t+=this.renderer.blockquote(i);break;case"list":t+=this.renderer.list(i);break;case"checkbox":t+=this.renderer.checkbox(i);break;case"html":t+=this.renderer.html(i);break;case"def":t+=this.renderer.def(i);break;case"paragraph":t+=this.renderer.paragraph(i);break;case"text":t+=this.renderer.text(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return t}parseInline(e,t=this.renderer){this.renderer.parser=this;let r="";for(let n=0;n<e.length;n++){let i=e[n];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){r+=e||"";continue}}let o=i;switch(o.type){case"escape":case"text":r+=t.text(o);break;case"html":r+=t.html(o);break;case"link":r+=t.link(o);break;case"image":r+=t.image(o);break;case"checkbox":r+=t.checkbox(o);break;case"strong":r+=t.strong(o);break;case"em":r+=t.em(o);break;case"codespan":r+=t.codespan(o);break;case"br":r+=t.br(o);break;case"del":r+=t.del(o);break;default:{let e='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw new Error(e)}}}return r}constructor(e){this.options=e||S,this.options.renderer=this.options.renderer||new je,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new _e}},Me=((v=class{preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(e=this.block){return e?Le.lex:Le.lexInline}provideParser(e=this.block){return e?De.parse:De.parseInline}constructor(e){this.options=e||S}}).passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]),v.passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]),v),Be=new class{walkTokens(e,t){let r=[];for(let n of e)switch(r=r.concat(t.call(this,n)),n.type){case"table":{let e=n;for(let n of e.header)r=r.concat(this.walkTokens(n.tokens,t));for(let n of e.rows)for(let e of n)r=r.concat(this.walkTokens(e.tokens,t));break}case"list":{let e=n;r=r.concat(this.walkTokens(e.items,t));break}default:{let e=n;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(n=>{let i=e[n].flat(1/0);r=r.concat(this.walkTokens(i,t))}):e.tokens&&(r=r.concat(this.walkTokens(e.tokens,t)))}}return r}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let r={...e};if(r.async=this.defaults.async||r.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw new Error("extension name required");if("renderer"in e){let r=t.renderers[e.name];t.renderers[e.name]=r?function(...t){let n=e.renderer.apply(this,t);return!1===n&&(n=r.apply(this,t)),n}:e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");let r=t[e.level];r?r.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),r.extensions=t),e.renderer){let t=this.defaults.renderer||new je(this.defaults);for(let r in e.renderer){if(!(r in t))throw new Error(`renderer '${r}' does not exist`);if(["options","parser"].includes(r))continue;let n=r,i=e.renderer[n],o=t[n];t[n]=(...e)=>{let r=i.apply(t,e);return!1===r&&(r=o.apply(t,e)),r||""}}r.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new Ce(this.defaults);for(let r in e.tokenizer){if(!(r in t))throw new Error(`tokenizer '${r}' does not exist`);if(["options","rules","lexer"].includes(r))continue;let n=r,i=e.tokenizer[n],o=t[n];t[n]=(...e)=>{let r=i.apply(t,e);return!1===r&&(r=o.apply(t,e)),r}}r.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new Me;for(let r in e.hooks){if(!(r in t))throw new Error(`hook '${r}' does not exist`);if(["options","block"].includes(r))continue;let n=r,i=e.hooks[n],o=t[n];Me.passThroughHooks.has(r)?t[n]=e=>{if(this.defaults.async&&Me.passThroughHooksRespectAsync.has(r))return(async()=>{let r=await i.call(t,e);return o.call(t,r)})();let n=i.call(t,e);return o.call(t,n)}:t[n]=(...e)=>{if(this.defaults.async)return(async()=>{let r=await i.apply(t,e);return!1===r&&(r=await o.apply(t,e)),r})();let r=i.apply(t,e);return!1===r&&(r=o.apply(t,e)),r}}r.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,n=e.walkTokens;r.walkTokens=function(e){let r=[];return r.push(n.call(this,e)),t&&(r=r.concat(t.call(this,e))),r}}this.defaults={...this.defaults,...r}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Le.lex(e,t??this.defaults)}parser(e,t){return De.parse(e,t??this.defaults)}parseMarkdown(e){return(t,r)=>{let n={...r},i={...this.defaults,...n},o=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===n.async)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 t>"u"||null===t)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let r=i.hooks?await i.hooks.preprocess(t):t,n=await(i.hooks?await i.hooks.provideLexer(e):e?Le.lex:Le.lexInline)(r,i),o=i.hooks?await i.hooks.processAllTokens(n):n;i.walkTokens&&await Promise.all(this.walkTokens(o,i.walkTokens));let s=await(i.hooks?await i.hooks.provideParser(e):e?De.parse:De.parseInline)(o,i);return i.hooks?await i.hooks.postprocess(s):s})().catch(o);try{i.hooks&&(t=i.hooks.preprocess(t));let r=(i.hooks?i.hooks.provideLexer(e):e?Le.lex:Le.lexInline)(t,i);i.hooks&&(r=i.hooks.processAllTokens(r)),i.walkTokens&&this.walkTokens(r,i.walkTokens);let n=(i.hooks?i.hooks.provideParser(e):e?De.parse:De.parseInline)(r,i);return i.hooks&&(n=i.hooks.postprocess(n)),n}catch(e){return o(e)}}}onError(e,t){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){let e="<p>An error occurred:</p><pre>"+Re(r.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(r);throw r}}constructor(...e){this.defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null},this.options=this.setOptions,this.parse=this.parseMarkdown(!0),this.parseInline=this.parseMarkdown(!1),this.Parser=De,this.Renderer=je,this.TextRenderer=_e,this.Lexer=Le,this.Tokenizer=Ce,this.Hooks=Me,this.use(...e)}};function qe(e,t){return Be.parse(e,t)}qe.options=qe.setOptions=function(e){return Be.setOptions(e),qe.defaults=Be.defaults,T(qe.defaults),qe},qe.getDefaults=y,qe.defaults=S,qe.use=function(...e){return Be.use(...e),qe.defaults=Be.defaults,T(qe.defaults),qe},qe.walkTokens=function(e,t){return Be.walkTokens(e,t)},qe.parseInline=Be.parseInline,qe.Parser=De,qe.parser=De.parse,qe.Renderer=je,qe.TextRenderer=_e,qe.Lexer=Le,qe.lexer=Le.lex,qe.Tokenizer=Ce,qe.Hooks=Me,qe.parse=qe;qe.options,qe.setOptions,qe.use,qe.walkTokens,qe.parseInline,De.parse,Le.lex;var We=r(75158);let Fe,Ne;c({renderMarkdown:async(e,t,r={})=>{let n;Fe||(Fe={...(0,We.getDefaultWhiteList)(),table:[...(0,We.getDefaultWhiteList)().table??[],"role"],input:["type","disabled","checked"],"ha-icon":["icon"],"ha-svg-icon":["path"],"ha-alert":["alert-type","title"],"ha-qr-code":["data","scale","width","margin","error-correction-level","center-image"]}),r.allowSvg?(Ne||(Ne={...Fe,svg:["xmlns","height","width"],path:["transform","stroke","d"],img:["src"]}),n=Ne):n=Fe,r.allowDataUrl&&n.a&&n.a.push("download"),qe.setOptions(t),qe.use({renderer:{table(...e){return`<div>${(new qe.Renderer).table.apply(this,e)}</div>`}}});return qe.lexer(e).map(e=>(0,We.filterXSS)(qe.parser([e]),{whiteList:n,onTagAttr:(e,t,n)=>{if("input"===e){if("type"===t&&"checkbox"===n||"checked"===t||"disabled"===t)return;return""}if(r.allowDataUrl&&"a"===e&&"href"===t&&n.startsWith("data:"))return`href="${n}"`}}))}})})();