1import{a as Ke,b as Ye,e as Ge}from"./chunk-ZCU6L6R5.js";import{a as We}from"./chunk-TTKWR7WD.js";import{a as J,b as He,c as Be,d as T,f as qe,m as fe,n as Ze,o as ge,p as Ve,q as K,r as Qe}from"./chunk-X36RJBRU.js";import{Aa as A,Ga as Ne,Ma as de,N as j,Oa as je,Q as v,R as ae,Sa as V,U as le,V as w,X as B,Zb as Fe,_ as ce,_b as Ue,a as b,aa as ue,b as D,d as _,ga as Me,ha as _e,la as Ie,ma as he,na as $e,oa as q,pa as pe,qa as Z,r as Re,ra as F,sa as U,ta as Ce,ua as De,va as Ae,wa as Oe,xa as ze,ya as Pe,za as Le}from"./chunk-IEVCDHOY.js";var we=class extends Be{constructor(){super(...arguments),this.supportsDOMEvents=!0}},ke=class s extends we{static makeCurrent(){He(new s)}onAndCancel(t,r,e){return t.addEventListener(r,e),()=>{t.removeEventListener(r,e)}}dispatchEvent(t,r){t.dispatchEvent(r)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,r){return r=r||this.getDefaultDocument(),r.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,r){return r==="window"?window:r==="document"?t:r==="body"?t.body:null}getBaseHref(t){let r=bt();return r==null?null:xt(r)}resetBaseElement(){Y=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return qe(document.cookie,t)}},Y=null;function bt(){return Y=Y||document.querySelector("base"),Y?Y.getAttribute("href"):null}function xt(s){return new URL(s,document.baseURI).pathname}var St=(()=>{let t=class t{build(){return new XMLHttpRequest}};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=v({token:t,factory:t.\u0275fac});let s=t;return s})(),be=new le(""),nt=(()=>{let t=class t{constructor(e,n){this._zone=n,this._eventNameToPlugin=new Map,e.forEach(i=>{i.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,n,i){return this._findPluginFor(n).addEventListener(e,n,i)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(o=>o.supports(e)),!n)throw new j(5101,!1);return this._eventNameToPlugin.set(e,n),n}};t.\u0275fac=function(n){return new(n||t)(w(be),w(V))},t.\u0275prov=v({token:t,factory:t.\u0275fac});let s=t;return s})(),ee=class{constructor(t){this._doc=t}},me="ng-app-id",rt=(()=>{let t=class t{constructor(e,n,i,o={}){this.doc=e,this.appId=n,this.nonce=i,this.platformId=o,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=ge(o),this.resetHostNodes()}addStyles(e){for(let n of e)this.changeUsageCount(n,1)===1&&this.onStyleAdded(n)}removeStyles(e){for(let n of e)this.changeUsageCount(n,-1)<=0&&this.onStyleRemoved(n)}ngOnDestroy(){let e=this.styleNodesInDOM;e&&(e.forEach(n=>n.remove()),e.clear());for(let n of this.getAllStyles())this.onStyleRemoved(n);this.resetHostNodes()}addHost(e){this.hostNodes.add(e);for(let n of this.getAllStyles())this.addStyleToHost(e,n)}removeHost(e){this.hostNodes.delete(e)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(e){for(let n of this.hostNodes)this.addStyleToHost(n,e)}onStyleRemoved(e){let n=this.styleRef;n.get(e)?.elements?.forEach(i=>i.remove()),n.delete(e)}collectServerRenderedStyles(){let e=this.doc.head?.querySelectorAll(`style[${me}="${this.appId}"]`);if(e?.length){let n=new Map;return e.forEach(i=>{i.textContent!=null&&n.set(i.textContent,i)}),n}return null}changeUsageCount(e,n){let i=this.styleRef;if(i.has(e)){let o=i.get(e);return o.usage+=n,o.usage}return i.set(e,{usage:n,elements:[]}),n}getStyleElement(e,n){let i=this.styleNodesInDOM,o=i?.get(n);if(o?.parentNode===e)return i.delete(n),o.removeAttribute(me),o;{let a=this.doc.createElement("style");return this.nonce&&a.setAttribute("nonce",this.nonce),a.textContent=n,this.platformIsServer&&a.setAttribute(me,this.appId),e.appendChild(a),a}}addStyleToHost(e,n){let i=this.getStyleElement(e,n),o=this.styleRef,a=o.get(n)?.elements;a?a.push(i):o.set(n,{elements:[i],usage:1})}resetHostNodes(){let e=this.hostNodes;e.clear(),e.add(this.doc.head)}};t.\u0275fac=function(n){return new(n||t)(w(T),w(he),w(pe,8),w(q))},t.\u0275prov=v({token:t,factory:t.\u0275fac});let s=t;return s})(),ye={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ve=/%COMP%/g,it="%COMP%",vt=`_nghost-${it}`,Et=`_ngcontent-${it}`,Tt=!0,Rt=new le("",{providedIn:"root",factory:()=>Tt});function Mt(s){return Et.replace(ve,s)}function _t(s){return vt.replace(ve,s)}function st(s,t){return t.map(r=>r.replace(ve,s))}var Xe=(()=>{let t=class t{constructor(e,n,i,o,a,l,h,f=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=i,this.removeStylesOnCompDestroy=o,this.doc=a,this.platformId=l,this.ngZone=h,this.nonce=f,this.rendererByCompId=new Map,this.platformIsServer=ge(l),this.defaultRenderer=new G(e,a,h,this.platformIsServer)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;this.platformIsServer&&n.encapsulation===B.ShadowDom&&(n=D(b({},n),{encapsulation:B.Emulated}));let i=this.getOrCreateRenderer(e,n);
1return i instanceof te?i.applyToHost(e):i instanceof Q&&i.applyStyles(),i}getOrCreateRenderer(e,n){let i=this.rendererByCompId,o=i.get(n.id);if(!o){let a=this.doc,l=this.ngZone,h=this.eventManager,f=this.sharedStylesHost,p=this.removeStylesOnCompDestroy,m=this.platformIsServer;switch(n.encapsulation){case B.Emulated:o=new te(h,f,n,this.appId,p,a,l,m);break;case B.ShadowDom:return new xe(h,f,e,n,a,l,this.nonce,m);default:o=new Q(h,f,n,p,a,l,m);break}i.set(n.id,o)}return o}ngOnDestroy(){this.rendererByCompId.clear()}};t.\u0275fac=function(n){return new(n||t)(w(nt),w(rt),w(he),w(Rt),w(T),w(q),w(V),w(pe))},t.\u0275prov=v({token:t,factory:t.\u0275fac});let s=t;return s})(),G=class{constructor(t,r,e,n){this.eventManager=t,this.doc=r,this.ngZone=e,this.platformIsServer=n,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(t,r){return r?this.doc.createElementNS(ye[r]||r,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,r){(Je(t)?t.content:t).appendChild(r)}insertBefore(t,r,e){t&&(Je(t)?t.content:t).insertBefore(r,e)}removeChild(t,r){t&&t.removeChild(r)}selectRootElement(t,r){let e=typeof t=="string"?this.doc.querySelector(t):t;if(!e)throw new j(-5104,!1);return r||(e.textContent=""),e}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,r,e,n){if(n){r=n+":"+r;let i=ye[n];i?t.setAttributeNS(i,r,e):t.setAttribute(r,e)}else t.setAttribute(r,e)}removeAttribute(t,r,e){if(e){let n=ye[e];n?t.removeAttributeNS(n,r):t.removeAttribute(`${e}:${r}`)}else t.removeAttribute(r)}addClass(t,r){t.classList.add(r)}removeClass(t,r){t.classList.remove(r)}setStyle(t,r,e,n){n&(Z.DashCase|Z.Important)?t.style.setProperty(r,e,n&Z.Important?"important":""):t.style[r]=e}removeStyle(t,r,e){e&Z.DashCase?t.style.removeProperty(r):t.style[r]=""}setProperty(t,r,e){t!=null&&(t[r]=e)}setValue(t,r){t.nodeValue=r}listen(t,r,e){if(typeof t=="string"&&(t=J().getGlobalEventTarget(this.doc,t),!t))throw new Error(`Unsupported event target ${t} for event ${r}`);return this.eventManager.addEventListener(t,r,this.decoratePreventDefault(e))}decoratePreventDefault(t){return r=>{if(r==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(r)):t(r))===!1&&r.preventDefault()}}};function Je(s){return s.tagName==="TEMPLATE"&&s.content!==void 0}var xe=class extends G{constructor(t,r,e,n,i,o,a,l){super(t,i,o,l),this.sharedStylesHost=r,this.hostEl=e,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let h=st(n.id,n.styles);for(let f of h){let p=document.createElement("style");a&&p.setAttribute("nonce",a),p.textContent=f,this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,r){return super.appendChild(this.nodeOrShadowRoot(t),r)}insertBefore(t,r,e){return super.insertBefore(this.nodeOrShadowRoot(t),r,e)}removeChild(t,r){return super.removeChild(this.nodeOrShadowRoot(t),r)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},Q=class extends G{constructor(t,r,e,n,i,o,a,l){super(t,i,o,a),this.sharedStylesHost=r,this.removeStylesOnCompDestroy=n,this.styles=l?st(l,e.styles):e.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}},te=class extends Q{constructor(t,r,e,n,i,o,a,l){let h=n+"-"+e.id;super(t,r,e,i,o,a,l,h),this.contentAttr=Mt(h),this.hostAttr=_t(h)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,r){let e=super.createElement(t,r);return super.setAttribute(e,this.contentAttr,""),e}},It=(()=>{let t=class t extends ee{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,i){return e.addEventListener(n,i,!1),()=>this.removeEventListener(e,n,i)}removeEventListener(e,n,i){return e.removeEventListener(n,i)}};t.\u0275fac=function(n){return new(n||t)(w(T))},t.\u0275prov=v({token:t,factory:t.\u0275fac});let s=t;return s})(),et=["alt","control","meta","shift"],$t={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ct={alt:s=>s.altKey,control:s=>s.ctrlKey,meta:s=>s.metaKey,shift:s=>s.shiftKey},Dt=(()=>{let t=class t extends ee{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,i){let o=t.parseEventName(n),a=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>J().onAndCancel(e,o.domEventName,a))}static parseEventName(e){let n=e.toLowerCase().split("."),i=n.shift();if(n.length===0||!(i==="keydown"||i==="keyup"))return null;let o=t._normalizeKey(n.pop()),a="",l=n.indexOf("code");if(l>-1&&(n.splice(l,1),a="code."),et.forEach(f=>{let p=n.indexOf(f);p>-1&&(n.splice(p,1),a+=f+".")}),a+=o,n.length!=0||o.length===0)return null;let h={};return h.domEventName=i,h.fullKey=a,h}static matchEventFullKeyCode(e,n){let i=$t[e.key]||e.key,o="";return n.indexOf("code.")>-1&&(i=e.code,o="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),et.forEach(a=>{if(a!==i){let l=Ct[a];l(e)&&(o+=a+".")}}),o+=i,o===n)}static eventCallback(e,n,i){return o=>{t.matchEventFullKeyCode(o,e)&&i.runGuarded(()=>n(o))}}static _normalizeKey(e){return e==="esc"?"escape":e}};t.\u0275fac=function(n){return new(n||t)(w(T))},t.\u0275prov=v({token:t,factory:t.\u0275fac});let s=t;return s})();function An(s,t){return Fe(b({rootComponent:s},At(t)))}function At(s){return{appProviders:[...Nt,...s?.providers??[]],platformProviders:Lt}}function Ot(){ke.makeCurrent()}function zt(){return new de}function Pt(){return Ie(document),document}var Lt=[{provide:q,useValue:Ze},{provide:$e,useValue:Ot,multi:!0},{provide:T,useFactory:Pt,deps:[]}];var Nt=[{provide:_e,useValue:"root"},{provide:de,useFactory:zt,deps:[]},{provide:be,useClass:It,multi:!0,deps:[T,V,q]},{provide:be,useClass:Dt,multi:!0,deps:[T]},Xe,rt,nt,{provide:Ne,useExisting:Xe},{provide:Ve,useClass:St,deps:[]},[]];var On=(()=>{let t=class t{constructor(e){this._doc=e,this._dom=J()}addTag(e,n=!1){return e?this._getOrCreateElement(e,n):null}addTags(e,n=!1){return e?e.reduce((i,o)=>(o&&i.push(this._getOrCreateElement(o,n)),i),[]):[]}getTag(e){return e&&this._doc.querySelector(`meta[${e}]`)||null}getTags(e){if(!e)return[];let n=this._doc.querySelectorAll(`meta[${e}]`);return n?[].slice.call(n):[]}updateTag(e,n){if(!e)return null;n=n||this._parseSelector(e);let i=this.getTag(n);return i?this._setMetaElementAttributes(e,i):this._getOrCreateElement(e,!0)}removeTag(e){this.removeTagElement(this.getTag(e))}removeTagElement(e){e&&this._dom.remove(e)}_getOrCreateElement(e,n=!1){if(!n){let a=this._parseSelector(e),l=this.getTags(a).filter(h=>this._containsAttributes(e,h))[0];if(l!==void 0)return l}let i=this._dom.createElement("meta");return this._setMetaElementAttributes(e,i),this._doc.getElementsByTagName("head")[0].appendChild(i),i}_setMetaElementAttributes(e,n){return Object.keys(e).forEach(i=>
1n.setAttribute(this._getMetaKeyMap(i),e[i])),n}_parseSelector(e){let n=e.name?"name":"property";return`${n}="${e[n]}"`}_containsAttributes(e,n){return Object.keys(e).every(i=>n.getAttribute(this._getMetaKeyMap(i))===e[i])}_getMetaKeyMap(e){return jt[e]||e}};t.\u0275fac=function(n){return new(n||t)(w(T))},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let s=t;return s})(),jt={httpEquiv:"http-equiv"},zn=(()=>{let t=class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}};t.\u0275fac=function(n){return new(n||t)(w(T))},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let s=t;return s})();var Ee=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=v({token:t,factory:function(n){let i=null;return n?i=new(n||t):i=w(Ft),i},providedIn:"root"});let s=t;return s})(),Ft=(()=>{let t=class t extends Ee{constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case A.NONE:return n;case A.HTML:return U(n,"HTML")?F(n):Le(this._doc,String(n)).toString();case A.STYLE:return U(n,"Style")?F(n):n;case A.SCRIPT:if(U(n,"Script"))return F(n);throw new j(5200,!1);case A.URL:return U(n,"URL")?F(n):Pe(String(n));case A.RESOURCE_URL:if(U(n,"ResourceURL"))return F(n);throw new j(5201,!1);default:throw new j(5202,!1)}}bypassSecurityTrustHtml(e){return Ce(e)}bypassSecurityTrustStyle(e){return De(e)}bypassSecurityTrustScript(e){return Ae(e)}bypassSecurityTrustUrl(e){return Oe(e)}bypassSecurityTrustResourceUrl(e){return ze(e)}};t.\u0275fac=function(n){return new(n||t)(w(T))},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let s=t;return s})(),Se=function(s){return s[s.NoHttpTransferCache=0]="NoHttpTransferCache",s[s.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",s}(Se||{});function Pn(...s){let t=[],r=new Set,e=r.has(Se.HttpTransferCacheOptions);for(let{\u0275providers:n,\u0275kind:i}of s)r.add(i),n.length&&t.push(n);return Me([[],Ue(),r.has(Se.NoHttpTransferCache)||e?[]:Ge({}),t])}function pt(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}var L=pt();function Ht(s){L=s}var dt=/[&<>"']/,Bt=new RegExp(dt.source,"g"),ft=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,qt=new RegExp(ft.source,"g"),Zt={"&":"&","<":"<",">":">",'"':""","'":"'"},ot=s=>Zt[s];function S(s,t){if(t){if(dt.test(s))return s.replace(Bt,ot)}else if(ft.test(s))return s.replace(qt,ot);return s}var Vt=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function gt(s){return s.replace(Vt,(t,r)=>(r=r.toLowerCase(),r==="colon"?":":r.charAt(0)==="#"?r.charAt(1)==="x"?String.fromCharCode(parseInt(r.substring(2),16)):String.fromCharCode(+r.substring(1)):""))}var Kt=/(^|[^\[])\^/g;function y(s,t){s=typeof s=="string"?s:s.source,t=t||"";let r={replace:(e,n)=>(n=n.source||n,n=n.replace(Kt,"$1"),s=s.replace(e,n),r),getRegex:()=>new RegExp(s,t)};return r}var Yt=/[^\w:]/g,Gt=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function at(s,t,r){if(s){let e;try{e=decodeURIComponent(gt(r)).replace(Yt,"").toLowerCase()}catch{return null}if(e.indexOf("javascript:")===0||e.indexOf("vbscript:")===0||e.indexOf("data:")===0)return null}t&&!Gt.test(r)&&(r=Jt(t,r));try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}var ne={},Qt=/^[^:]+:\/*[^/]*$/,Wt=/^([^:]+:)[\s\S]*$/,Xt=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Jt(s,t){ne[" "+s]||(Qt.test(s)?ne[" "+s]=s+"/":ne[" "+s]=re(s,"/",!0)),s=ne[" "+s];let r=s.indexOf(":")===-1;return t.substring(0,2)==="//"?r?t:s.replace(Wt,"$1")+t:t.charAt(0)==="/"?r?t:s.replace(Xt,"$1")+t:s+t}var ie={exec:function(){}};function lt(s,t){let r=s.replace(/\|/g,(i,o,a)=>{let l=!1,h=o;for(;--h>=0&&a[h]==="\\";)l=!l;return l?"|":" |"}),e=r.split(/ \|/),n=0;if(e[0].trim()||e.shift(),e.length>0&&!e[e.length-1].trim()&&e.pop(),e.length>t)e.splice(t);else for(;e.length<t;)e.push("");for(;n<e.length;n++)e[n]=e[n].trim().replace(/\\\|/g,"|");return e}function re(s,t,r){let e=s.length;if(e===0)return"";let n=0;for(;n<e;){let i=s.charAt(e-n-1);if(i===t&&!r)n++;else if(i!==t&&r)n++;else break}return s.slice(0,e-n)}function en(s,t){if(s.indexOf(t[1])===-1)return-1;let r=s.length,e=0,n=0;for(;n<r;n++)if(s[n]==="\\")n++;else if(s[n]===t[0])e++;else if(s[n]===t[1]&&(e--,e<0))return n;return-1}function tn(s){s&&s.sanitize&&!s.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function ct(s,t){if(t<1)return"";let r="";for(;t>1;)t&1&&(r+=s),t>>=1,s+=s;return r+s}function ut(s,t,r,e){let n=t.href,i=t.title?S(t.title):null,o=s[1].replace(/\\([\[\]])/g,"$1");if(s[0].charAt(0)!=="!"){e.state.inLink=!0;let a={type:"link",raw:r,href:n,title:i,text:o,tokens:e.inlineTokens(o)};return e.state.inLink=!1,a}return{type:"image",raw:r,href:n,title:i,text:S(o)}}function nn(s,t){let r=s.match(/^(\s+)(?:```)/);if(r===null)return t;let e=r[1];return t.split(` 2`).map(n=>{let i=n.match(/^\s+/);if(i===null)return n;let[o]=i;return o.length>=e.length?n.slice(e.length):n}).join(` 3`)}var W=class{constructor(t){this.options=t||L}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let e=r[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?e:re(e,` 4`)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let e=r[0],n=nn(e,r[3]||"");return{type:"code",raw:e,lang:r[2]?r[2].trim().replace(this.rules.inline._escapes,"$1"):r[2],text:n}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let e=r[2].trim();if(/#$/.test(e)){let n=re(e,"#");(this.options.pedantic||!n||/ $/.test(n))&&(e=n.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:r[0]}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let e=r[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;let i=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:r[0],tokens:i,text:e}}}list(t){let r=this.rules.block.list.exec(t);if(r){let e,n,i,o,a,l,h,f,p,m,d,I,E=r[1].trim(),C=E.length>1,k={type:"list",raw:"",ordered:C,start:C?+E.slice(0,-1):"",loose:!1,items:[]};E=C?`\\d{1,9}\\${E.slice(-1)}`:`\\${E}`,this.options.pedantic&&(E=C?E:"[*+-]");let x=new RegExp(`^( {0,3}${E})((?:[ ][^\\n]*)?(?:\\n|$))`);for(;t&&(I=!1,!(!(r=x.exec(t))||this.rules.block.hr.test(t)));){if(e=r[0],t=t.substring(e.length),f=r[2].split(` 5`,1)[0].replace(/^\t+/,$=>" ".repeat(3*$.length)),p=t.split(` 6`,1)[0],this.options.pedantic?(o=2,d=f.trimLeft()):(o=r[2].search(/[^ ]/),o=o>4?1:o,d=f.slice(o),o+=r[1].length),l=!1,!f&&/^ *$/.test(p)&&(e+=p+` 7`,t=t.substring(p.length+1),I=!0),!I){let $=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),R=new RegExp(`^ {0,${Math.min(3,o-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),M=new RegExp(`^ {0,${Math.min(3,o-1)}}(?:\`\`\`|~~~)`),H=new RegExp(`^ {0,${Math.min(3,o-1)}}#`);for(;t&&(m=t.split(` 8`,1)[0],p=m,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(M.test(p)||H.test(p)||$.test(p)||R.test(t)));){if(p.search(/[^ ]/)>=o||!p.trim())d+=` 9`+p.slice(o);else{if(l||f.search(/[^ ]/)>=4||M.test(f)||H.test(f)||R.test(f))break;d+=` 10`+p}!l&&!p.trim()&&(l=!0),e+=m+` 11`,t=t.substring(m.length+1),f=p.slice(o)}}k.loose||(h?k.loose=!0:/\n *\n *$/.test(e)&&(h=!0)),this.options.gfm&&(n=/^\[[ xX]\] /.exec(d),n&&(i=n[0]!=="[ ] ",d=d.replace(/^\[[ xX]\] +/,""))),k.items.push({type:"list_item",raw:e,task:!!n,checked:i,loose:!1,text:d}),k.raw+=e}k.items[k.items.length-1].raw=e.trimRight(),k.items[k.items.length-1].text=d.trimRight(),k.raw=k.raw.trimRight();let N=k.items.length;for(a=0;a<N;a++)if(this.lexer.state.top=!1,k.items[a].tokens=this.lexer.blockTokens(k.items[a].text,[]),!k.loose){let $=k.items[a].tokens.filter(M=>M.type==="space"),R=$.length>0&&$.some(M=>/\n.*\n/.test(M.raw));k.loose=R}if(k.loose)for(a=0;a<N;a++)k.items[a].loose=!0;return k}}html(t){let r=this.rules.block.html.exec(t);if(r){let e={type:"html",raw:r[0],pre:!this.options.sanitizer&&(r[1]==="pre"||r[1]==="script"||r[1]==="style"),text:r[0]};if(this.options.sanitize){let n=this.options.sanitizer?this.options.sanitizer(r[0]):S(r[0]);e.type="paragraph",e.text=n,e.tokens=this.lexer.inline(n)}return e}}def(t){let r=this.rules.block.def.exec(t);if(r){let e=r[1].toLowerCase().replace(/\s+/g," "),n=r[2]?r[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline._escapes,"$1"):r[3];return{type:"def",tag:e,raw:r[0],href:n,title:i}}}table(t){let r=this.rules.block.table.exec(t);if(r){let e={type:"table",header:lt(r[1]).map(n=>({text:n})),align:r[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:r[3]&&r[3].trim()?r[3].replace(/\n[ \t]*$/,"").split(` 12`):[]};if(e.header.length===e.align.length){e.raw=r[0];let n=e.align.length,i,o,a,l;for(i=0;i<n;i++)/^ *-+: *$/.test(e.align[i])?e.align[i]="right":/^ *:-+: *$/.test(e.align[i])?e.align[i]="center"
vendor: 4,685 bytes, lines 12-13
12:/^ *:-+ *$/.test(e.align[i])?e.align[i]="left":e.align[i]=null;for(n=e.rows.length,i=0;i<n;i++)e.rows[i]=lt(e.rows[i],e.header.length).map(h=>({text:h}));for(n=e.header.length,o=0;o<n;o++)e.header[o].tokens=this.lexer.inline(e.header[o].text);for(n=e.rows.length,o=0;o<n;o++)for(l=e.rows[o],a=0;a<l.length;a++)l[a].tokens=this.lexer.inline(l[a].text);return e}}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let e=r[1].charAt(r[1].length-1)===` 13`?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:e,tokens:this.lexer.inline(e)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:S(r[1])}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&/^<a /i.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):S(r[0]):r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let e=r[2].trim();if(!this.options.pedantic&&/^</.test(e)){if(!/>$/.test(e))return;let o=re(e.slice(0,-1),"\\");if((e.length-o.length)%2===0)return}else{let o=en(r[2],"()");if(o>-1){let l=(r[0].indexOf("!")===0?5:4)+r[1].length+o;r[2]=r[2].substring(0,o),r[0]=r[0].substring(0,l).trim(),r[3]=""}}let n=r[2],i="";if(this.options.pedantic){let o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);o&&(n=o[1],i=o[3])}else i=r[3]?r[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(this.options.pedantic&&!/>$/.test(e)?n=n.slice(1):n=n.slice(1,-1)),ut(r,{href:n&&n.replace(this.rules.inline._escapes,"$1"),title:i&&i.replace(this.rules.inline._escapes,"$1")},r[0],this.lexer)}}reflink(t,r){let e;if((e=this.rules.inline.reflink.exec(t))||(e=this.rules.inline.nolink.exec(t))){let n=(e[2]||e[1]).replace(/\s+/g," ");if(n=r[n.toLowerCase()],!n){let i=e[0].charAt(0);return{type:"text",raw:i,text:i}}return ut(e,n,e[0],this.lexer)}}emStrong(t,r,e=""){let n=this.rules.inline.emStrong.lDelim.exec(t);if(!n||n[3]&&e.match(/[\p{L}\p{N}]/u))return;let i=n[1]||n[2]||"";if(!i||i&&(e===""||this.rules.inline.punctuation.exec(e))){let o=n[0].length-1,a,l,h=o,f=0,p=n[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(p.lastIndex=0,r=r.slice(-1*t.length+o);(n=p.exec(r))!=null;){if(a=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!a)continue;if(l=a.length,n[3]||n[4]){h+=l;continue}else if((n[5]||n[6])&&o%3&&!((o+l)%3)){f+=l;continue}if(h-=l,h>0)continue;l=Math.min(l,l+h+f);let m=t.slice(0,o+n.index+(n[0].length-a.length)+l);if(Math.min(o,l)%2){let I=m.slice(1,-1);return{type:"em",raw:m,text:I,tokens:this.lexer.inlineTokens(I)}}let d=m.slice(2,-2);return{type:"strong",raw:m,text:d,tokens:this.lexer.inlineTokens(d)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let e=r[2].replace(/\n/g," "),n=/[^ ]/.test(e),i=/^ /.test(e)&&/ $/.test(e);return n&&i&&(e=e.substring(1,e.length-1)),e=S(e,!0),{type:"codespan",raw:r[0],text:e}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t,r){let e=this.rules.inline.autolink.exec(t);if(e){let n,i;return e[2]==="@"?(n=S(this.options.mangle?r(e[1]):e[1]),i="mailto:"+n):(n=S(e[1]),i=n),{type:"link",raw:e[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(t,r){let e;if(e=this.rules.inline.url.exec(t)){let n,i;if(e[2]==="@")n=S(this.options.mangle?r(e[0]):e[0]),i="mailto:"+n;else{let o;do o=e[0],e[0]=this.rules.inline._backpedal.exec(e[0])[0];while(o!==e[0]);n=S(e[0]),e[1]==="www."?i="http://"+e[0]:i=e[0]}return{type:"link",raw:e[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(t,r){let e=this.rules.inline.text.exec(t);if(e){let n;return this.lexer.state.inRawBlock?n=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(e[0]):S(e[0]):e[0]:n=S(this.options.smartypants?r(e[0]):e[0]),{type:"text",raw:e[0],text:n}}}},g={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}
13(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:ie,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};g._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;g._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;g.def=y(g.def).replace("label",g._label).replace("title",g._title).getRegex();g.bullet=/(?:[*+-]|\d{1,9}[.)])/;g.listItemStart=y(/^( *)(bull) */).replace("bull",g.bullet).getRegex();g.list=y(g.list).replace(/bull/g,g.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+g.def.source+")").getRegex();g._tag="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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";g._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;g.html=y(g.html,"i").replace("comment",g._comment).replace("tag",g._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();g.paragraph=y(g._paragraph).replace("hr",g.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",g._tag).getRegex();g.blockquote=y(g.blockquote).replace("paragraph",g.paragraph).getRegex();g.normal=b({},g);g.gfm=D(b({},g.normal),{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"});g.gfm.table=y(g.gfm.table).replace("hr",g.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",g._tag).getRegex();g.gfm.paragraph=y(g._paragraph).replace("hr",g.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",g.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",g._tag).getRegex();g.pedantic=D(b({},g.normal),{html:y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",g._comment).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:ie,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:y(g.normal._paragraph).replace("hr",g.hr).replace("heading",` *#{1,6} *[^ 14]`).replace("lheading",g.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var c={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:ie,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:ie,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};c._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";c.punctuation=y(c.punctuation).replace(/punctuation/g,c._punctuation).getRegex();c.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;c.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;c._comment=y(g._comment).replace("(?:-->|$)","-->").getRegex();c.emStrong.lDelim=y(c.emStrong.lDelim).replace(/punct/g,c._punctuation).getRegex();c.emStrong.rDelimAst=y(c.emStrong.rDelimAst,"g").replace(/punct/g,c._punctuation).getRegex();c.emStrong.rDelimUnd=y(c.emStrong.rDelimUnd,"g").replace(/punct/g,c._punctuation).getRegex();c._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;c._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;c._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])?)+(?![-_])/;c.autolink=y(c.autolink).replace("scheme",c._scheme).replace("email",c._email).getRegex();c._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;c.tag=y(c.tag).replace("comment",c._comment).replace("attribute",c._attribute).getRegex();c._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;c._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;c._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;c.link=y(c.link).replace("label",c._label).replace("href",c._href).replace("title",c._title).getRegex();c.reflink=y(c.reflink).replace("label",c._label).replace("ref",g._label).getRegex();c.nolink=y(c.nolink).replace("ref",g._label).getRegex();c.reflinkSearch=y(c.reflinkSearch,"g").replace("reflink",c.reflink).replace("nolink",c.nolink).getRegex();c.normal=b({},c);c.pedantic=D(b({},c.normal),{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:y(/^!?\[(label)\]\((.*?)\)/).replace("label",c._label).getRegex(),reflink:y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",c._label).getRegex()});c.gfm=D(b({},c.normal),{escape:y(c.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/});c.gfm.url=y(c.gfm.url,"i").replace("email",c.gfm._extended_email).getRegex();c.breaks=D(b({},c.gfm),{br:y(c.br).replace("{2,}","*").getRegex(),text:y(c.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});function rn(s){return s.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201C").replace(/"/g,"\u201D").replace(/\.{3}/g,"\u2026")}function ht(s){let t="",r,e,n=s.length;for(r=0;r<n;r++)e=s.charCodeAt(r),Math.random()>.5&&(e="x"+e.toString(16)),t+="&#"+e+";";return t}var O=class s{constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||L,this.options.tokenizer=this.options.tokenizer||new W,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={block:g.normal,inline:c.normal};this.options.pedantic?(r.block=g.pedantic,r.inline=c.pedantic):this.options.gfm&&(r.block=g.gfm,this.options.breaks?r.inline=c.breaks:r.inline=c.gfm),this.tokenizer.rules=r}static get rules(){return{block:g,inline:c}}static lex(t,r){return new s(r).lex(t)}static lexInline(t,r){return new s(r).inlineTokens(t)}lex(t){t=t.replace(/\r\n|\r/g,` 15`),this.blockTokens(t,this.tokens);let r;for(;
vendor: 11,447 bytes, lines 15-46
15r=this.inlineQueue.shift();)this.inlineTokens(r.src,r.tokens);return this.tokens}blockTokens(t,r=[]){this.options.pedantic?t=t.replace(/\t/g," ").replace(/^ +$/gm,""):t=t.replace(/^( *)(\t+)/gm,(a,l,h)=>l+" ".repeat(h.length));let e,n,i,o;for(;t;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(e=a.call({lexer:this},t,r))?(t=t.substring(e.raw.length),r.push(e),!0):!1))){if(e=this.tokenizer.space(t)){t=t.substring(e.raw.length),e.raw.length===1&&r.length>0?r[r.length-1].raw+=` 16`:r.push(e);continue}if(e=this.tokenizer.code(t)){t=t.substring(e.raw.length),n=r[r.length-1],n&&(n.type==="paragraph"||n.type==="text")?(n.raw+=` 17`+e.raw,n.text+=` 18`+e.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text):r.push(e);continue}if(e=this.tokenizer.fences(t)){t=t.substring(e.raw.length),r.push(e);continue}if(e=this.tokenizer.heading(t)){t=t.substring(e.raw.length),r.push(e);continue}if(e=this.tokenizer.hr(t)){t=t.substring(e.raw.length),r.push(e);continue}if(e=this.tokenizer.blockquote(t)){t=t.substring(e.raw.length),r.push(e);continue}if(e=this.tokenizer.list(t)){t=t.substring(e.raw.length),r.push(e);continue}if(e=this.tokenizer.html(t)){t=t.substring(e.raw.length),r.push(e);continue}if(e=this.tokenizer.def(t)){t=t.substring(e.raw.length),n=r[r.length-1],n&&(n.type==="paragraph"||n.type==="text")?(n.raw+=` 19`+e.raw,n.text+=` 20`+e.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text):this.tokens.links[e.tag]||(this.tokens.links[e.tag]={href:e.href,title:e.title});continue}if(e=this.tokenizer.table(t)){t=t.substring(e.raw.length),r.push(e);continue}if(e=this.tokenizer.lheading(t)){t=t.substring(e.raw.length),r.push(e);continue}if(i=t,this.options.extensions&&this.options.extensions.startBlock){let a=1/0,l=t.slice(1),h;this.options.extensions.startBlock.forEach(function(f){h=f.call({lexer:this},l),typeof h=="number"&&h>=0&&(a=Math.min(a,h))}),a<1/0&&a>=0&&(i=t.substring(0,a+1))}if(this.state.top&&(e=this.tokenizer.paragraph(i))){n=r[r.length-1],o&&n.type==="paragraph"?(n.raw+=` 21`+e.raw,n.text+=` 22`+e.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):r.push(e),o=i.length!==t.length,t=t.substring(e.raw.length);continue}if(e=this.tokenizer.text(t)){t=t.substring(e.raw.length),n=r[r.length-1],n&&n.type==="text"?(n.raw+=` 23`+e.raw,n.text+=` 24`+e.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):r.push(e);continue}if(t){let a="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){let e,n,i,o=t,a,l,h;if(this.tokens.links){let f=Object.keys(this.tokens.links);if(f.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)f.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,a.index)+"["+ct("a",a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,a.index)+"["+ct("a",a[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.escapedEmSt.exec(o))!=null;)o=o.slice(0,a.index+a[0].length-2)+"++"+o.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;t;)if(l||(h=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(e=f.call({lexer:this},t,r))?(t=t.substring(e.raw.length),r.push(e),!0):!1))){if(e=this.tokenizer.escape(t)){t=t.substring(e.raw.length),r.push(e);continue}if(e=this.tokenizer.tag(t)){t=t.substring(e.raw.length),n=r[r.length-1],n&&e.type==="text"&&n.type==="text"?(n.raw+=e.raw,n.text+=e.text):r.push(e);continue}if(e=this.tokenizer.link(t)){t=t.substring(e.raw.length),r.push(e);continue}if(e=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(e.raw.length),n=r[r.length-1],n&&e.type==="text"&&n.type==="text"?(n.raw+=e.raw,n.text+=e.text):r.push(e);continue}if(e=this.tokenizer.emStrong(t,o,h)){t=t.substring(e.raw.length),r.push(e);continue}if(e=this.tokenizer.codespan(t)){t=t.substring(e.raw.length),r.push(e);continue}if(e=this.tokenizer.br(t)){t=t.substring(e.raw.length),r.push(e);continue}if(e=this.tokenizer.del(t)){t=t.substring(e.raw.length),r.push(e);continue}if(e=this.tokenizer.autolink(t,ht)){t=t.substring(e.raw.length),r.push(e);continue}if(!this.state.inLink&&(e=this.tokenizer.url(t,ht))){t=t.substring(e.raw.length),r.push(e);continue}if(i=t,this.options.extensions&&this.options.extensions.startInline){let f=1/0,p=t.slice(1),m;this.options.extensions.startInline.forEach(function(d){m=d.call({lexer:this},p),typeof m=="number"&&m>=0&&(f=Math.min(f,m))}),f<1/0&&f>=0&&(i=t.substring(0,f+1))}if(e=this.tokenizer.inlineText(i,rn)){t=t.substring(e.raw.length),e.raw.slice(-1)!=="_"&&(h=e.raw.slice(-1)),l=!0,n=r[r.length-1],n&&n.type==="text"?(n.raw+=e.raw,n.text+=e.text):r.push(e);continue}if(t){let f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return r}},z=class{constructor(t){this.options=t||L}code(t,r,e){let n=(r||"").match(/\S*/)[0];if(this.options.highlight){let i=this.options.highlight(t,n);i!=null&&i!==t&&(e=!0,t=i)}return t=t.replace(/\n$/,"")+` 25`,n?'<pre><code class="'+this.options.langPrefix+S(n)+'">'+(e?t:S(t,!0))+`</code></pre> 26`:"<pre><code>"+(e?t:S(t,!0))+`</code></pre> 27`}blockquote(t){return`<blockquote> 28${t}</blockquote> 29`}html(t){return t}heading(t,r,e,n){if(this.options.headerIds){let i=this.options.headerPrefix+n.slug(e);return`<h${r} id="${i}">${t}</h${r}> 30`}return`<h${r}>${t}</h${r}> 31`}hr(){return this.options.xhtml?`<hr/> 32`:`<hr> 33`}list(t,r,e){let n=r?"ol":"ul",i=r&&e!==1?' start="'+e+'"':"";return"<"+n+i+`> 34`+t+"</"+n+`> 35`}listitem(t){return`<li>${t}</li> 36`}checkbox(t){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(t){return`<p>${t}</p> 37`}table(t,r){return r&&(r=`<tbody>${r}</tbody>`),`<table> 38<thead> 39`+t+`</thead> 40`+r+`</table> 41`}tablerow(t){return`<tr> 42${t}</tr> 43`}tablecell(t,r){let e=r.header?"th":"td";return(r.align?`<${e} align="${r.align}">`:`<${e}>`)+t+`</${e}> 44`}strong(t){return`<strong>${t}</strong>`}em(t){return`<em>${t}</em>`}codespan(t){return`<code>${t}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(t){return`<del>${t}</del>`}link(t,r,e){if(t=at(this.options.sanitize,this.options.baseUrl,t),t===null)return e;let n='<a href="'+t+'"';return r&&(n+=' title="'+r+'"'),n+=">"+e+"</a>",n}image(t,r,e){if(t=at(this.options.sanitize,this.options.baseUrl,t),t===null)return e;let n=`<img src="${t}" alt="${e}"`;return r&&(n+=` title="${r}"`),n+=this.options.xhtml?"/>":">",n}text(t){return t}},se=class{strong(t){return t}em(t){return t}codespan(t){return t}del(t){return t}html(t){return t}text(t){return t}link(t,r,e){return""+e}image(t,r,e){return""+e}br(){return""}},oe=class{constructor(){this.seen={}}serialize(t){return t.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(t,r){let e=t,n=0;if(this.seen.hasOwnProperty(e)){n=this.seen[t];do n++,e=t+"-"+n;while(this.seen.hasOwnProperty(e))}return r||(this.seen[t]=n,this.seen[e]=0),e}slug(t,r={}){let e=this.serialize(t);return this.getNextSafeSlug(e,r.dryrun)}},P=class s{constructor(t){this.options=t||L,this.options.renderer=this.options.renderer||new z,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new se,this.slugger=new oe}static parse(t,r){return new s(r).parse(t)}static parseInline(t,r){return new s(r).parseInline(t)}parse(t,r=!0){let e="",n,i,o,a,l,h,f,p,m,d,I,E,C,k,x,N,$,R,M,H=t.length;for(n=0;n<H;n++){if(d=t[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type]&&(M=this.options.extensions.renderers[d.type].call({parser:this},d),M!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type))){e+=M||"";continue}switch(d.type){case"space":continue;case"hr":{e+=this.renderer.hr();continue}case"heading":{e+=this.renderer.heading(this.parseInline(d.tokens),d.depth,gt(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue}case"code":{e+=this.renderer.code(d.text,d.lang,d.escaped);continue}case"table":{for(p="",f="",a=d.header.length,i=0;i<a;i++)f+=this.renderer.tablecell(this.parseInline(d.header[i].tokens),{header:!0,align:d.align[i]});for(p+=this.renderer.tablerow(f),m="",a=d.rows.length,i=0;i<a;i++){for(h=d.rows[i],f="",l=h.length,o=0;o<l;o++)f+=this.renderer.tablecell(this.parseInline(h[o].tokens),{header:!1,align:d.align[o]});m+=this.renderer.tablerow(f)}e+=this.renderer.table(p,m);continue}case"blockquote":{m=this.parse(d.tokens),e+=this.renderer.blockquote(m);continue}case"list":{for(I=d.ordered,E=d.start,C=d.loose,a=d.items.length,m="",i=0;i<a;i++)x=d.items[i],N=x.checked,$=x.task,k="",x.task&&(R=this.renderer.checkbox(N),C?x.tokens.length>0&&x.tokens[0].type==="paragraph"?(x.tokens[0].text=R+" "+x.tokens[0].text,x.tokens[0].tokens&&x.tokens[0].tokens.length>0&&x.tokens[0].tokens[0].type==="text"&&(x.tokens[0].tokens[0].text=R+" "+x.tokens[0].tokens[0].text)):x.tokens.unshift({type:"text",text:R}):k+=R),k+=this.parse(x.tokens,C),m+=this.renderer.listitem(k,$,N);e+=this.renderer.list(m,I,E);continue}case"html":{e+=this.renderer.html(d.text);continue}case"paragraph":{e+=this.renderer.paragraph(this.parseInline(d.tokens));continue}case"text":{for(m=d.tokens?this.parseInline(d.tokens):d.text;n+1<H&&t[n+1].type==="text";)d=t[++n],m+=` 45`+(d.tokens?this.parseInline(d.tokens):d.text);e+=r?this.renderer.paragraph(m):m;continue}default:{let Te='Token with "'+d.type+'" type was not found.';if(this.options.silent){console.error(Te);return}else throw new Error(Te)}}}return e}parseInline(t,r){r=r||this.renderer;let e="",n,i,o,a=t.length;for(n=0;n<a;n++){if(i=t[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]&&(o=this.options.extensions.renderers[i.type].call({parser:this},i),o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type))){e+=o||"";continue}switch(i.type){case"escape":{e+=r.text(i.text);break}case"html":{e+=r.html(i.text);break}case"link":{e+=r.link(i.href,i.title,this.parseInline(i.tokens,r));break}case"image":{e+=r.image(i.href,i.title,i.text);break}case"strong":{e+=r.strong(this.parseInline(i.tokens,r));break}case"em":{e+=r.em(this.parseInline(i.tokens,r));break}case"codespan":{e+=r.codespan(i.text);break}case"br":{e+=r.br();break}case"del":{e+=r.del(this.parseInline(i.tokens,r));break}case"text":{e+=r.text(i.text);break}default:{let l='Token with "'+i.type+'" type was not found.';if(this.options.silent){console.error(l);return}else throw new Error(l)}}}return e}},X=class{constructor(t){this.options=t||L}static passThroughHooks=new Set(["preprocess","postprocess"]);preprocess(t){return t}postprocess(t){return t}};function sn(s,t,r){return e=>{if(e.message+=` 46Please report this to https://github.com/markedjs/marked.`,s){let n="<p>An error occurred:</p><pre>"+S(e.message+"",!0)+"</pre>";if(t)return Promise.resolve(n);if(r){r(null,n);return}return n}if(t)return Promise.reject(e);
vendor: 4,105 bytes, line 46
46if(r){r(e);return}throw e}}function mt(s,t){return(r,e,n)=>{typeof e=="function"&&(n=e,e=null);let i=b({},e);e=b(b({},u.defaults),i);let o=sn(e.silent,e.async,n);if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(tn(e),e.hooks&&(e.hooks.options=e),n){let a=e.highlight,l;try{e.hooks&&(r=e.hooks.preprocess(r)),l=s(r,e)}catch(p){return o(p)}let h=function(p){let m;if(!p)try{e.walkTokens&&u.walkTokens(l,e.walkTokens),m=t(l,e),e.hooks&&(m=e.hooks.postprocess(m))}catch(d){p=d}return e.highlight=a,p?o(p):n(null,m)};if(!a||a.length<3||(delete e.highlight,!l.length))return h();let f=0;u.walkTokens(l,function(p){p.type==="code"&&(f++,setTimeout(()=>{a(p.text,p.lang,function(m,d){if(m)return h(m);d!=null&&d!==p.text&&(p.text=d,p.escaped=!0),f--,f===0&&h()})},0))}),f===0&&h();return}if(e.async)return Promise.resolve(e.hooks?e.hooks.preprocess(r):r).then(a=>s(a,e)).then(a=>e.walkTokens?Promise.all(u.walkTokens(a,e.walkTokens)).then(()=>a):a).then(a=>t(a,e)).then(a=>e.hooks?e.hooks.postprocess(a):a).catch(o);try{e.hooks&&(r=e.hooks.preprocess(r));let a=s(r,e);e.walkTokens&&u.walkTokens(a,e.walkTokens);let l=t(a,e);return e.hooks&&(l=e.hooks.postprocess(l)),l}catch(a){return o(a)}}}function u(s,t,r){return mt(O.lex,P.parse)(s,t,r)}u.options=u.setOptions=function(s){return u.defaults=b(b({},u.defaults),s),Ht(u.defaults),u};u.getDefaults=pt;u.defaults=L;u.use=function(...s){let t=u.defaults.extensions||{renderers:{},childTokens:{}};s.forEach(r=>{let e=b({},r);if(e.async=u.defaults.async||e.async||!1,r.extensions&&(r.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if(n.renderer){let i=t.renderers[n.name];i?t.renderers[n.name]=function(...o){let a=n.renderer.apply(this,o);return a===!1&&(a=i.apply(this,o)),a}:t.renderers[n.name]=n.renderer}if(n.tokenizer){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");t[n.level]?t[n.level].unshift(n.tokenizer):t[n.level]=[n.tokenizer],n.start&&(n.level==="block"?t.startBlock?t.startBlock.push(n.start):t.startBlock=[n.start]:n.level==="inline"&&(t.startInline?t.startInline.push(n.start):t.startInline=[n.start]))}n.childTokens&&(t.childTokens[n.name]=n.childTokens)}),e.extensions=t),r.renderer){let n=u.defaults.renderer||new z;for(let i in r.renderer){let o=n[i];n[i]=(...a)=>{let l=r.renderer[i].apply(n,a);return l===!1&&(l=o.apply(n,a)),l}}e.renderer=n}if(r.tokenizer){let n=u.defaults.tokenizer||new W;for(let i in r.tokenizer){let o=n[i];n[i]=(...a)=>{let l=r.tokenizer[i].apply(n,a);return l===!1&&(l=o.apply(n,a)),l}}e.tokenizer=n}if(r.hooks){let n=u.defaults.hooks||new X;for(let i in r.hooks){let o=n[i];X.passThroughHooks.has(i)?n[i]=a=>{if(u.defaults.async)return Promise.resolve(r.hooks[i].call(n,a)).then(h=>o.call(n,h));let l=r.hooks[i].call(n,a);return o.call(n,l)}:n[i]=(...a)=>{let l=r.hooks[i].apply(n,a);return l===!1&&(l=o.apply(n,a)),l}}e.hooks=n}if(r.walkTokens){let n=u.defaults.walkTokens;e.walkTokens=function(i){let o=[];return o.push(r.walkTokens.call(this,i)),n&&(o=o.concat(n.call(this,i))),o}}u.setOptions(e)})};u.walkTokens=function(s,t){let r=[];for(let e of s)switch(r=r.concat(t.call(u,e)),e.type){case"table":{for(let n of e.header)r=r.concat(u.walkTokens(n.tokens,t));for(let n of e.rows)for(let i of n)r=r.concat(u.walkTokens(i.tokens,t));break}case"list":{r=r.concat(u.walkTokens(e.items,t));break}default:u.defaults.extensions&&u.defaults.extensions.childTokens&&u.defaults.extensions.childTokens[e.type]?u.defaults.extensions.childTokens[e.type].forEach(function(n){r=r.concat(u.walkTokens(e[n],t))}):e.tokens&&(r=r.concat(u.walkTokens(e.tokens,t)))}return r};u.parseInline=mt(O.lexInline,P.parseInline);u.Parser=P;u.parser=P.parse;u.Renderer=z;u.TextRenderer=se;u.Lexer=O;u.lexer=O.lex;u.Tokenizer=W;u.Slugger=oe;u.Hooks=X;u.parse=u;var Nn=u.options,jn=u.setOptions,Fn=u.use,Un=u.walkTokens,Hn=u.parseInline;var Bn=P.parse,qn=O.lex;
46var yt=new u.Renderer;yt.link=function(s,t,r){return u.Renderer.prototype.link.apply(this,arguments)};u.setOptions({renderer:yt});function on(s){return s=s.replace(/(<\s*\/?\s*)h1(\s*([^>]*)?\s*>)/gi,"$1h2$2"),s=s.replace(/(<\s*\/?\s*)h3(\s*([^>]*)?\s*>)/gi,"$1h2$2"),s=s.replace(/(<\s*\/?\s*)h4(\s*([^>]*)?\s*>)/gi,"$1h2$2"),s=s.replace(/(<\s*\/?\s*)h5(\s*([^>]*)?\s*>)/gi,"$1h2$2"),s=s.replace(/(<\s*)text-primary(\s*([^>]*)?\s*>)/gi,'$1span class="text-primary"$2'),s=s.replace(/(<\s*\/\s*)text-primary(\s*([^>]*)?\s*>)/gi,"$1span$2"),s}var er=(()=>{class s{constructor(){let r=new z;r.link=function(e,n,i){return u.Renderer.prototype.link.apply(this,arguments)},u.setOptions({renderer:r})}transform(r,e="normal"){return typeof r!="string"?"":(r=r.replace(/\|\s*\n\s*\|/g,`| 47|`),e==="withReplace"&&(r=on(r)),u.parse(r))}}return s.\u0275fac=function(r){return new(r||s)},s.\u0275pipe=ue({name:"markdown",type:s,pure:!0,standalone:!0}),s})(),wt=(()=>{class s{constructor(r){this.sanitizer=r}transform(r,e){switch(e){case"html":return this.sanitizer.bypassSecurityTrustHtml(r);case"style":return this.sanitizer.bypassSecurityTrustStyle(r);case"script":return this.sanitizer.bypassSecurityTrustScript(r);case"url":return this.sanitizer.bypassSecurityTrustUrl(r);case"resourceUrl":return this.sanitizer.bypassSecurityTrustResourceUrl(r);default:throw new Error(`Tipo de bypass invalido: ${e}`)}}}return s.\u0275fac=function(r){return new(r||s)(je(Ee,16))},s.\u0275pipe=ue({name:"safeSanitize",type:s,pure:!0,standalone:!0}),s})();var tr=(()=>{class s{}return s.\u0275fac=function(r){return new(r||s)},s.\u0275mod=ce({type:s}),s.\u0275inj=ae({imports:[fe]}),s})();var lr=(()=>{let t=class t{constructor(e,n,i){this.http=e,this.stateManagement=n,this.safeSanitize=i}query(e){let n=new Ke().set("content-type","application/json").set("Authorization",`bearer ${K.cms.token}`),i=this.http.get(`${K.cms.baseUrl}/api/${e}${K.isDraftEnv?K.draftQuery:""}`,{headers:n});return Re(i)}getPageBySlug(e){return _(this,null,function*(){let{data:[n],meta:i}=yield this.query(`pages?filters[slug][$eq]=${e}&populate=deep`);if(!n||i.pagination.total===0)return null;let o=b({id:n.id},n.attributes);return this.stateManagement.setPage(o),o})}searchAllByKeyword(e){return _(this,null,function*(){let[n,i]=yield Promise.all([this.searchPagesByKeywords(e),this.searchArticlesByKeywords(e)]);return[...n.data,...i.data]?.map(a=>b({id:a.id},a.attributes))})}searchPagesByKeywords(e){return _(this,null,function*(){return yield this.query(`pages?filters[seo][keywords][$contains]=${e}&populate=*,seo`)})}searchArticlesByKeywords(e){return _(this,null,function*(){return yield this.query(`articles?filters[seo][keywords][$contains]=${e}&populate=*,seo`)})}searchTableListFiles(e,n){return _(this,null,function*(){let{category:i,search:o,year:a}=e,l=[];if(l.push(`filters[type][$eq]=${n}`),i&&i!=="All"&&l.push(`filters[category][$eq]=${i}`),o&&l.push(`filters[description][$contains]=${o}`),a&&a!=="All"){let p=new Date(`${a}-01-01`),m=new Date(`${a}-12-31`);l.push(`filters[date][$gte]=${p.toISOString()}`),l.push(`filters[date][$lte]=${m.toISOString()}`)}l.push("&sort=date:desc");let{data:h,meta:f}=yield this.query(`table-list-files?pagination[pageSize]=100&populate=deep&${l.join("&")}`);return f.pagination.total===0?[]:h?.map(p=>p.attributes).map(p=>(p.files.forEach(m=>{m.fileUrl=m.fileUrl||Qe(m.file)}),p))})}getGlobal(){return _(this,null,function*(){let e=yield this.query("global-mic?populate=deep");if(!e)return{};let n=b({id:e.id},e.data.attributes);return this.global=n,this.stateManagement.setGlobal(n),this.injectCustom(),n})}injectCustom(){try{let{headScripts:e,bodyScripts:n}=this.global.settings??{};e?.forEach(this.appendScript),n?.forEach(this.appendScript)}catch(e){console.error(e)}}appendScript(e){let{type:n,value:i}=e,o=document.createElement("script");o.type="text/javascript",n=="script-inline"&&(o.text=i),n=="raw-external"&&(o.src=i),document.body.appendChild(o)}getCategory(e){return _(this,null,function*(){let{data:n,meta:i}=yield this.query(`categories?filters[slug][$eq]=${e}`);return!n||i.pagination.total===0?null:b({},n[0].attributes)})}
47getArticles(e,n){return _(this,null,function*(){let i=n?`&pagination[pageSize]=${n}`:"",{data:o,meta:a}=yield this.query(`articles?filters[category][slug][$eq]=${e}&sort=date:desc&populate=slug,externalUrl,title,description,image.file${i}`);return!o||a.pagination.total===0?null:o})}getArticle(e,n){return _(this,null,function*(){let{data:i,meta:o}=yield this.query(`articles?filters[slug][$eq]=${e}&populate=*`);return!i||o.pagination.total===0?null:b({},i[0].attributes)})}normalizeComponent(e){return e}};t.\u0275fac=function(n){return new(n||t)(w(Ye),w(We),w(wt))},t.\u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"});let s=t;return s})();export{An as a,On as b,zn as c,Pn as d,er as e,wt as f,tr as g,lr as h};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.