@pb33f/cowboy-components 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- (function(c,h){typeof exports=="object"&&typeof module<"u"?h(require("lit"),require("lit/decorators.js"),require("prismjs"),require("@shoelace-style/shoelace/dist/utilities/base-path.js")):typeof define=="function"&&define.amd?define(["lit","lit/decorators.js","prismjs","@shoelace-style/shoelace/dist/utilities/base-path.js"],h):(c=typeof globalThis<"u"?globalThis:c||self,h(c.lit,c["lit/decorators"].js,c.prismjs,c.basePath))})(this,function(c,h,y,wt){"use strict";var tn=Object.defineProperty;var rn=(c,h,y)=>h in c?tn(c,h,{enumerable:!0,configurable:!0,writable:!0,value:y}):c[h]=y;var x=(c,h,y)=>(rn(c,typeof h!="symbol"?h+"":h,y),y),nn=(c,h,y)=>{if(!h.has(c))throw TypeError("Cannot "+y)};var qe=(c,h,y)=>{if(h.has(c))throw TypeError("Cannot add the same private member more than once");h instanceof WeakSet?h.add(c):h.set(c,y)};var ye=(c,h,y)=>(nn(c,h,"access private method"),y);var ie,Be,ke,vt;const $t=c.css`
1
+ (function(c,h){typeof exports=="object"&&typeof module<"u"?h(require("lit"),require("lit/decorators.js"),require("prismjs"),require("@shoelace-style/shoelace/dist/utilities/base-path.js")):typeof define=="function"&&define.amd?define(["lit","lit/decorators.js","prismjs","@shoelace-style/shoelace/dist/utilities/base-path.js"],h):(c=typeof globalThis<"u"?globalThis:c||self,h(c.lit,c["lit/decorators"].js,c.prismjs,c.basePath))})(this,function(c,h,y,wt){"use strict";var rn=Object.defineProperty;var nn=(c,h,y)=>h in c?rn(c,h,{enumerable:!0,configurable:!0,writable:!0,value:y}):c[h]=y;var k=(c,h,y)=>(nn(c,typeof h!="symbol"?h+"":h,y),y),on=(c,h,y)=>{if(!h.has(c))throw TypeError("Cannot "+y)};var qe=(c,h,y)=>{if(h.has(c))throw TypeError("Cannot add the same private member more than once");h instanceof WeakSet?h.add(c):h.set(c,y)};var ye=(c,h,y)=>(on(c,h,"access private method"),y);var ie,Be,xe,vt;const $t=c.css`
2
2
  :host {
3
3
  display: flex;
4
4
  column-gap: 10px;
@@ -252,8 +252,8 @@
252
252
  * Copyright 2017 Google LLC
253
253
  * SPDX-License-Identifier: BSD-3-Clause
254
254
  */const Q=globalThis,le=Q.trustedTypes,Qe=le?le.createPolicy("lit-html",{createHTML:i=>i}):void 0,je="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,We="?"+E,It=`<${We}>`,R=document,ce=()=>R.createComment(""),j=i=>i===null||typeof i!="object"&&typeof i!="function",Ge=Array.isArray,Ot=i=>Ge(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",$e=`[
255
- \f\r]`,W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Fe=/-->/g,Xe=/>/g,P=RegExp(`>|${$e}(?:([^\\s"'>=/]+)(${$e}*=${$e}*(?:[^
256
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Je=/'/g,Ke=/"/g,Ye=/^(?:script|style|textarea|title)$/i,q=Symbol.for("lit-noChange"),k=Symbol.for("lit-nothing"),et=new WeakMap,S=R.createTreeWalker(R,129);function tt(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Qe!==void 0?Qe.createHTML(e):e}const Dt=(i,e)=>{const t=i.length-1,r=[];let n,s=e===2?"<svg>":"",o=W;for(let l=0;l<t;l++){const a=i[l];let d,p,u=-1,m=0;for(;m<a.length&&(o.lastIndex=m,p=o.exec(a),p!==null);)m=o.lastIndex,o===W?p[1]==="!--"?o=Fe:p[1]!==void 0?o=Xe:p[2]!==void 0?(Ye.test(p[2])&&(n=RegExp("</"+p[2],"g")),o=P):p[3]!==void 0&&(o=P):o===P?p[0]===">"?(o=n??W,u=-1):p[1]===void 0?u=-2:(u=o.lastIndex-p[2].length,d=p[1],o=p[3]===void 0?P:p[3]==='"'?Ke:Je):o===Ke||o===Je?o=P:o===Fe||o===Xe?o=W:(o=P,n=void 0);const f=o===P&&i[l+1].startsWith("/>")?" ":"";s+=o===W?a+It:u>=0?(r.push(d),a.slice(0,u)+je+a.slice(u)+E+f):a+E+(u===-2?l:f)}return[tt(i,s+(i[t]||"<?>")+(e===2?"</svg>":"")),r]};class G{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let s=0,o=0;const l=e.length-1,a=this.parts,[d,p]=Dt(e,t);if(this.el=G.createElement(d,r),S.currentNode=this.el.content,t===2){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=S.nextNode())!==null&&a.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(const u of n.getAttributeNames())if(u.endsWith(je)){const m=p[o++],f=n.getAttribute(u).split(E),_=/([.?@])?(.*)/.exec(m);a.push({type:1,index:s,name:_[2],strings:f,ctor:_[1]==="."?Mt:_[1]==="?"?Nt:_[1]==="@"?qt:he}),n.removeAttribute(u)}else u.startsWith(E)&&(a.push({type:6,index:s}),n.removeAttribute(u));if(Ye.test(n.tagName)){const u=n.textContent.split(E),m=u.length-1;if(m>0){n.textContent=le?le.emptyScript:"";for(let f=0;f<m;f++)n.append(u[f],ce()),S.nextNode(),a.push({type:2,index:++s});n.append(u[m],ce())}}}else if(n.nodeType===8)if(n.data===We)a.push({type:2,index:s});else{let u=-1;for(;(u=n.data.indexOf(E,u+1))!==-1;)a.push({type:7,index:s}),u+=E.length-1}s++}}static createElement(e,t){const r=R.createElement("template");return r.innerHTML=e,r}}function B(i,e,t=i,r){var o,l;if(e===q)return e;let n=r!==void 0?(o=t._$Co)==null?void 0:o[r]:t._$Cl;const s=j(e)?void 0:e._$litDirective$;return(n==null?void 0:n.constructor)!==s&&((l=n==null?void 0:n._$AO)==null||l.call(n,!1),s===void 0?n=void 0:(n=new s(i),n._$AT(i,t,r)),r!==void 0?(t._$Co??(t._$Co=[]))[r]=n:t._$Cl=n),n!==void 0&&(e=B(i,n._$AS(i,e.values),n,r)),e}class Ht{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,n=((e==null?void 0:e.creationScope)??R).importNode(t,!0);S.currentNode=n;let s=S.nextNode(),o=0,l=0,a=r[0];for(;a!==void 0;){if(o===a.index){let d;a.type===2?d=new pe(s,s.nextSibling,this,e):a.type===1?d=new a.ctor(s,a.name,a.strings,this,e):a.type===6&&(d=new Bt(s,this,e)),this._$AV.push(d),a=r[++l]}o!==(a==null?void 0:a.index)&&(s=S.nextNode(),o++)}return S.currentNode=R,n}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class pe{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=(n==null?void 0:n.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=B(this,e,t),j(e)?e===k||e==null||e===""?(this._$AH!==k&&this._$AR(),this._$AH=k):e!==this._$AH&&e!==q&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Ot(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==k&&j(this._$AH)?this._$AA.nextSibling.data=e:this.$(R.createTextNode(e)),this._$AH=e}g(e){var s;const{values:t,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=G.createElement(tt(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===n)this._$AH.p(t);else{const o=new Ht(n,this),l=o.u(this.options);o.p(t),this.$(l),this._$AH=o}}_$AC(e){let t=et.get(e.strings);return t===void 0&&et.set(e.strings,t=new G(e)),t}T(e){Ge(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,n=0;for(const s of e)n===t.length?t.push(r=new pe(this.k(ce()),this.k(ce()),this,this.options)):r=t[n],r._$AI(s),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e&&e!==this._$AB;){const n=e.nextSibling;e.remove(),e=n}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class he{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,s){this.type=1,this._$AH=k,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=k}_$AI(e,t=this,r,n){const s=this.strings;let o=!1;if(s===void 0)e=B(this,e,t,0),o=!j(e)||e!==this._$AH&&e!==q,o&&(this._$AH=e);else{const l=e;let a,d;for(e=s[0],a=0;a<s.length-1;a++)d=B(this,l[r+a],t,a),d===q&&(d=this._$AH[a]),o||(o=!j(d)||d!==this._$AH[a]),d===k?e=k:e!==k&&(e+=(d??"")+s[a+1]),this._$AH[a]=d}o&&!n&&this.O(e)}O(e){e===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Mt extends he{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===k?void 0:e}}class Nt extends he{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==k)}}class qt extends he{constructor(e,t,r,n,s){super(e,t,r,n,s),this.type=5}_$AI(e,t=this){if((e=B(this,e,t,0)??k)===q)return;const r=this._$AH,n=e===k&&r!==k||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==k&&(r===k||n);n&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,e):this._$AH.handleEvent(e)}}class Bt{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){B(this,e)}}const _e=Q.litHtmlPolyfillSupport;_e==null||_e(G,pe),(Q.litHtmlVersions??(Q.litHtmlVersions=[])).push("3.1.0");/**
255
+ \f\r]`,W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Fe=/-->/g,Je=/>/g,P=RegExp(`>|${$e}(?:([^\\s"'>=/]+)(${$e}*=${$e}*(?:[^
256
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Xe=/'/g,Ke=/"/g,Ye=/^(?:script|style|textarea|title)$/i,q=Symbol.for("lit-noChange"),x=Symbol.for("lit-nothing"),et=new WeakMap,S=R.createTreeWalker(R,129);function tt(i,e){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Qe!==void 0?Qe.createHTML(e):e}const Mt=(i,e)=>{const t=i.length-1,r=[];let n,s=e===2?"<svg>":"",o=W;for(let l=0;l<t;l++){const a=i[l];let d,p,u=-1,m=0;for(;m<a.length&&(o.lastIndex=m,p=o.exec(a),p!==null);)m=o.lastIndex,o===W?p[1]==="!--"?o=Fe:p[1]!==void 0?o=Je:p[2]!==void 0?(Ye.test(p[2])&&(n=RegExp("</"+p[2],"g")),o=P):p[3]!==void 0&&(o=P):o===P?p[0]===">"?(o=n??W,u=-1):p[1]===void 0?u=-2:(u=o.lastIndex-p[2].length,d=p[1],o=p[3]===void 0?P:p[3]==='"'?Ke:Xe):o===Ke||o===Xe?o=P:o===Fe||o===Je?o=W:(o=P,n=void 0);const f=o===P&&i[l+1].startsWith("/>")?" ":"";s+=o===W?a+It:u>=0?(r.push(d),a.slice(0,u)+je+a.slice(u)+E+f):a+E+(u===-2?l:f)}return[tt(i,s+(i[t]||"<?>")+(e===2?"</svg>":"")),r]};class G{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let s=0,o=0;const l=e.length-1,a=this.parts,[d,p]=Mt(e,t);if(this.el=G.createElement(d,r),S.currentNode=this.el.content,t===2){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=S.nextNode())!==null&&a.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(const u of n.getAttributeNames())if(u.endsWith(je)){const m=p[o++],f=n.getAttribute(u).split(E),_=/([.?@])?(.*)/.exec(m);a.push({type:1,index:s,name:_[2],strings:f,ctor:_[1]==="."?Ht:_[1]==="?"?Nt:_[1]==="@"?qt:he}),n.removeAttribute(u)}else u.startsWith(E)&&(a.push({type:6,index:s}),n.removeAttribute(u));if(Ye.test(n.tagName)){const u=n.textContent.split(E),m=u.length-1;if(m>0){n.textContent=le?le.emptyScript:"";for(let f=0;f<m;f++)n.append(u[f],ce()),S.nextNode(),a.push({type:2,index:++s});n.append(u[m],ce())}}}else if(n.nodeType===8)if(n.data===We)a.push({type:2,index:s});else{let u=-1;for(;(u=n.data.indexOf(E,u+1))!==-1;)a.push({type:7,index:s}),u+=E.length-1}s++}}static createElement(e,t){const r=R.createElement("template");return r.innerHTML=e,r}}function B(i,e,t=i,r){var o,l;if(e===q)return e;let n=r!==void 0?(o=t._$Co)==null?void 0:o[r]:t._$Cl;const s=j(e)?void 0:e._$litDirective$;return(n==null?void 0:n.constructor)!==s&&((l=n==null?void 0:n._$AO)==null||l.call(n,!1),s===void 0?n=void 0:(n=new s(i),n._$AT(i,t,r)),r!==void 0?(t._$Co??(t._$Co=[]))[r]=n:t._$Cl=n),n!==void 0&&(e=B(i,n._$AS(i,e.values),n,r)),e}class Dt{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,n=((e==null?void 0:e.creationScope)??R).importNode(t,!0);S.currentNode=n;let s=S.nextNode(),o=0,l=0,a=r[0];for(;a!==void 0;){if(o===a.index){let d;a.type===2?d=new pe(s,s.nextSibling,this,e):a.type===1?d=new a.ctor(s,a.name,a.strings,this,e):a.type===6&&(d=new Bt(s,this,e)),this._$AV.push(d),a=r[++l]}o!==(a==null?void 0:a.index)&&(s=S.nextNode(),o++)}return S.currentNode=R,n}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class pe{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=x,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=(n==null?void 0:n.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=B(this,e,t),j(e)?e===x||e==null||e===""?(this._$AH!==x&&this._$AR(),this._$AH=x):e!==this._$AH&&e!==q&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Ot(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==x&&j(this._$AH)?this._$AA.nextSibling.data=e:this.$(R.createTextNode(e)),this._$AH=e}g(e){var s;const{values:t,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=G.createElement(tt(r.h,r.h[0]),this.options)),r);if(((s=this._$AH)==null?void 0:s._$AD)===n)this._$AH.p(t);else{const o=new Dt(n,this),l=o.u(this.options);o.p(t),this.$(l),this._$AH=o}}_$AC(e){let t=et.get(e.strings);return t===void 0&&et.set(e.strings,t=new G(e)),t}T(e){Ge(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,n=0;for(const s of e)n===t.length?t.push(r=new pe(this.k(ce()),this.k(ce()),this,this.options)):r=t[n],r._$AI(s),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e&&e!==this._$AB;){const n=e.nextSibling;e.remove(),e=n}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class he{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,s){this.type=1,this._$AH=x,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=s,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=x}_$AI(e,t=this,r,n){const s=this.strings;let o=!1;if(s===void 0)e=B(this,e,t,0),o=!j(e)||e!==this._$AH&&e!==q,o&&(this._$AH=e);else{const l=e;let a,d;for(e=s[0],a=0;a<s.length-1;a++)d=B(this,l[r+a],t,a),d===q&&(d=this._$AH[a]),o||(o=!j(d)||d!==this._$AH[a]),d===x?e=x:e!==x&&(e+=(d??"")+s[a+1]),this._$AH[a]=d}o&&!n&&this.O(e)}O(e){e===x?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class Ht extends he{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===x?void 0:e}}class Nt extends he{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==x)}}class qt extends he{constructor(e,t,r,n,s){super(e,t,r,n,s),this.type=5}_$AI(e,t=this){if((e=B(this,e,t,0)??x)===q)return;const r=this._$AH,n=e===x&&r!==x||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,s=e!==x&&(r===x||n);n&&this.element.removeEventListener(this.name,this,r),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,e):this._$AH.handleEvent(e)}}class Bt{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){B(this,e)}}const _e=Q.litHtmlPolyfillSupport;_e==null||_e(G,pe),(Q.litHtmlVersions??(Q.litHtmlVersions=[])).push("3.1.0");/**
257
257
  * @license
258
258
  * Copyright 2017 Google LLC
259
259
  * SPDX-License-Identifier: BSD-3-Clause
@@ -261,7 +261,7 @@
261
261
  * @license
262
262
  * Copyright 2017 Google LLC
263
263
  * SPDX-License-Identifier: BSD-3-Clause
264
- */class Ae extends Vt{constructor(e){if(super(e),this.et=k,e.type!==Zt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===k||e==null)return this.vt=void 0,this.et=e;if(e===q)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;const t=[e];return t.raw=t,this.vt={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Ae.directiveName="unsafeHTML",Ae.resultType=1;const F=Ut(Ae),Qt=c.css`
264
+ */class Ae extends Vt{constructor(e){if(super(e),this.et=x,e.type!==Zt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===x||e==null)return this.vt=void 0,this.et=e;if(e===q)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;const t=[e];return t.raw=t,this.vt={_$litType$:this.constructor.resultType,strings:t,values:[]}}}Ae.directiveName="unsafeHTML",Ae.resultType=1;const F=Ut(Ae),Qt=c.css`
265
265
 
266
266
  code,
267
267
  pre {
@@ -373,7 +373,7 @@
373
373
  }
374
374
 
375
375
 
376
- `,X=c.css`
376
+ `,J=c.css`
377
377
 
378
378
  a, a:visited, a:active {
379
379
  text-decoration: none;
@@ -487,7 +487,134 @@
487
487
  }
488
488
  }
489
489
 
490
- `;var jt=Object.defineProperty,Wt=Object.getOwnPropertyDescriptor,de=(i,e,t,r)=>{for(var n=r>1?void 0:r?Wt(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&jt(e,t,n),n};let I=class extends c.LitElement{constructor(){super(),this._data=new Map,this.keyLabel="Key",this.valueLabel="Value"}set data(i){i&&i.size>0&&(this._data=i)}render(){var s;let i=c.html``;this._data&&(i=c.html`
490
+ `,jt=c.css`
491
+ /**
492
+ * okaidia theme for JavaScript, CSS and HTML
493
+ * Loosely based on Monokai textmate theme by http://www.monokai.nl/
494
+ * @author ocodia
495
+ */
496
+
497
+ code[class*="language-"],
498
+ pre[class*="language-"] {
499
+ color: #f8f8f2;
500
+ background: none;
501
+ text-shadow: 0 1px rgba(0, 0, 0, 0.3);
502
+ font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
503
+ font-size: 1em;
504
+ text-align: left;
505
+ white-space: pre;
506
+ word-spacing: normal;
507
+ word-break: normal;
508
+ word-wrap: normal;
509
+ line-height: 1.5;
510
+
511
+ -moz-tab-size: 4;
512
+ -o-tab-size: 4;
513
+ tab-size: 4;
514
+
515
+ -webkit-hyphens: none;
516
+ -moz-hyphens: none;
517
+ -ms-hyphens: none;
518
+ hyphens: none;
519
+ }
520
+
521
+ /* Code blocks */
522
+
523
+ pre[class*="language-"] {
524
+ padding: 1em;
525
+ margin: .5em 0;
526
+ overflow: auto;
527
+ border-radius: 0.3em;
528
+ }
529
+
530
+ :not(pre) > code[class*="language-"],
531
+ pre[class*="language-"] {
532
+ background: #272822;
533
+ }
534
+
535
+ /* Inline code */
536
+
537
+ :not(pre) > code[class*="language-"] {
538
+ padding: .1em;
539
+ border-radius: .3em;
540
+ white-space: normal;
541
+ }
542
+
543
+ .token.comment,
544
+ .token.prolog,
545
+ .token.doctype,
546
+ .token.cdata {
547
+ color: #8292a2;
548
+ }
549
+
550
+ .token.punctuation {
551
+ color: #f8f8f2;
552
+ }
553
+
554
+ .token.namespace {
555
+ opacity: .7;
556
+ }
557
+
558
+ .token.property,
559
+ .token.tag,
560
+ .token.constant,
561
+ .token.symbol,
562
+ .token.deleted {
563
+ color: #f92672;
564
+ }
565
+
566
+ .token.boolean,
567
+ .token.number {
568
+ color: #ae81ff;
569
+ }
570
+
571
+ .token.selector,
572
+ .token.attr-name,
573
+ .token.string,
574
+ .token.char,
575
+ .token.builtin,
576
+ .token.inserted {
577
+ color: #a6e22e;
578
+ }
579
+
580
+ .token.operator,
581
+ .token.entity,
582
+ .token.url,
583
+ .language-css .token.string,
584
+ .style .token.string,
585
+ .token.variable {
586
+ color: #f8f8f2;
587
+ }
588
+
589
+ .token.atrule,
590
+ .token.attr-value,
591
+ .token.function,
592
+ .token.class-name {
593
+ color: #e6db74;
594
+ }
595
+
596
+ .token.keyword {
597
+ color: #66d9ef;
598
+ }
599
+
600
+ .token.regex,
601
+ .token.important {
602
+ color: #fd971f;
603
+ }
604
+
605
+ .token.important,
606
+ .token.bold {
607
+ font-weight: bold;
608
+ }
609
+
610
+ .token.italic {
611
+ font-style: italic;
612
+ }
613
+
614
+ .token.entity {
615
+ cursor: help;
616
+ }
617
+ `;var Wt=Object.defineProperty,Gt=Object.getOwnPropertyDescriptor,de=(i,e,t,r)=>{for(var n=r>1?void 0:r?Gt(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&Wt(e,t,n),n};y.manual=!0,document.removeEventListener("DOMContentLoaded",y.highlightAll);let I=class extends c.LitElement{constructor(){super(),this._data=new Map,this.keyLabel="Key",this.valueLabel="Value"}set data(i){i&&i.size>0&&(this._data=i)}render(){var s;let i=c.html``;this._data&&(i=c.html`
491
618
  ${Ve(this._data,o=>typeof o[1]=="object"?c.html`
492
619
  <tr>
493
620
  <td><code>${o[0]}</code></td>
@@ -522,7 +649,7 @@
522
649
  </tbody>
523
650
  </table>
524
651
  </div>
525
- `,n=((s=this._data)==null?void 0:s.size)>0?r:e;return c.html`${n}`}};I.styles=[Qt,X,St],de([h.property()],I.prototype,"keyLabel",2),de([h.property()],I.prototype,"valueLabel",2),de([h.state()],I.prototype,"_data",2),I=de([h.customElement("pb33f-kv-view")],I);const Gt=c.css`
652
+ `,n=((s=this._data)==null?void 0:s.size)>0?r:e;return c.html`${n}`}};I.styles=[Qt,J,jt,St],de([h.property()],I.prototype,"keyLabel",2),de([h.property()],I.prototype,"valueLabel",2),de([h.state()],I.prototype,"_data",2),I=de([h.customElement("pb33f-kv-view")],I);const Ft=c.css`
526
653
  .prop-type-table > table > thead > tr > th {
527
654
  font-family: var(--font-stack-bold), sans-serif;
528
655
  background-color: var(--table-header-background-solid);
@@ -628,7 +755,7 @@
628
755
  margin-bottom: 10px;
629
756
  }
630
757
 
631
- `;var Ft=Object.defineProperty,Xt=Object.getOwnPropertyDescriptor,J=(i,e,t,r)=>{for(var n=r>1?void 0:r?Xt(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&Ft(e,t,n),n};let O=class extends c.LitElement{constructor(){super(),this.propertyLabel="Property",this.typeLabel="Type",this.valueLabel="Value",this._data=[]}set data(i){this._data=i}render(){var n;let i=c.html``;this._data&&(i=c.html`
758
+ `;var Jt=Object.defineProperty,Xt=Object.getOwnPropertyDescriptor,X=(i,e,t,r)=>{for(var n=r>1?void 0:r?Xt(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&Jt(e,t,n),n};let O=class extends c.LitElement{constructor(){super(),this.propertyLabel="Property",this.typeLabel="Type",this.valueLabel="Value",this._data=[]}set data(i){this._data=i}render(){var n;let i=c.html``;this._data&&(i=c.html`
632
759
  ${Ve(this._data,s=>{var l,a;if(s.type!=="field")return c.html`
633
760
  <tr>
634
761
  <td><code>${s.name}</code></td>
@@ -666,7 +793,7 @@
666
793
  </tbody>
667
794
  </table>
668
795
  </div>
669
- `,r=((n=this._data)==null?void 0:n.length)>0?t:e;return c.html`${r}`}};O.styles=[X,Gt],J([h.property()],O.prototype,"propertyLabel",2),J([h.property()],O.prototype,"typeLabel",2),J([h.property()],O.prototype,"valueLabel",2),J([h.state()],O.prototype,"_data",2),O=J([h.customElement("pb33f-http-http-property-view")],O);const Jt=c.css`
796
+ `,r=((n=this._data)==null?void 0:n.length)>0?t:e;return c.html`${r}`}};O.styles=[J,Ft],X([h.property()],O.prototype,"propertyLabel",2),X([h.property()],O.prototype,"typeLabel",2),X([h.property()],O.prototype,"valueLabel",2),X([h.state()],O.prototype,"_data",2),O=X([h.customElement("pb33f-http-http-property-view")],O);const Kt=c.css`
670
797
 
671
798
  pb33f-timeline-item {
672
799
  width: 100%;
@@ -717,7 +844,7 @@
717
844
 
718
845
  }
719
846
  }
720
- `;var Kt=Object.defineProperty,Yt=Object.getOwnPropertyDescriptor,er=(i,e,t,r)=>{for(var n=r>1?void 0:r?Yt(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&Kt(e,t,n),n};let Te=class extends c.LitElement{constructor(){super()}render(){return c.html`
847
+ `;var Yt=Object.defineProperty,er=Object.getOwnPropertyDescriptor,tr=(i,e,t,r)=>{for(var n=r>1?void 0:r?er(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&Yt(e,t,n),n};let Te=class extends c.LitElement{constructor(){super()}render(){return c.html`
721
848
  <div class="start">
722
849
  <div class="ball-start"></div>
723
850
  </div>
@@ -725,7 +852,7 @@
725
852
  <div class="end">
726
853
  <div class="ball-end"></div>
727
854
  </div>
728
- `}};Te.styles=Jt,Te=er([h.customElement("pb33f-timeline")],Te);const tr=c.css`
855
+ `}};Te.styles=Kt,Te=tr([h.customElement("pb33f-timeline")],Te);const rr=c.css`
729
856
  :host {
730
857
  display: flex;
731
858
  position: relative;
@@ -786,7 +913,7 @@
786
913
  }
787
914
 
788
915
 
789
- `;var rr=Object.defineProperty,nr=Object.getOwnPropertyDescriptor,or=(i,e,t,r)=>{for(var n=r>1?void 0:r?nr(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&rr(e,t,n),n};let ze=class extends c.LitElement{constructor(){super()}render(){return c.html`
916
+ `;var nr=Object.defineProperty,or=Object.getOwnPropertyDescriptor,sr=(i,e,t,r)=>{for(var n=r>1?void 0:r?or(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&nr(e,t,n),n};let ze=class extends c.LitElement{constructor(){super()}render(){return c.html`
790
917
  <div class="icon">
791
918
  <div class="timeline"></div>
792
919
  <div class="timeline-icon">
@@ -796,7 +923,7 @@
796
923
  <div class="content">
797
924
  <slot name="time" class="request-time"></slot>
798
925
  <slot name="content" class="timeline-content"></slot>
799
- </div>`}};ze.styles=tr,ze=or([h.customElement("pb33f-timeline-item")],ze);function sr(i){switch(i.toLowerCase()){case"get":return"success";case"post":return"primary";case"put":return"primary";case"delete":return"danger";case"patch":return"warning";default:return"neutral"}}const ir=c.css`
926
+ </div>`}};ze.styles=rr,ze=sr([h.customElement("pb33f-timeline-item")],ze);function ir(i){switch(i.toLowerCase()){case"get":return"success";case"post":return"primary";case"put":return"primary";case"delete":return"danger";case"patch":return"warning";default:return"neutral"}}const ar=c.css`
800
927
  sl-tag.method {
801
928
  width: 80px;
802
929
  text-align: center;
@@ -816,10 +943,10 @@
816
943
  width: 100%;
817
944
  display: inline-block;
818
945
  }
819
- `;var ar=Object.defineProperty,lr=Object.getOwnPropertyDescriptor,Le=(i,e,t,r)=>{for(var n=r>1?void 0:r?lr(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&ar(e,t,n),n};let K=class extends c.LitElement{constructor(){super(),this.lower=!1,this.method="GET"}render(){return c.html`
820
- <sl-tag variant="${sr(this.method)}" class="method">
946
+ `;var lr=Object.defineProperty,cr=Object.getOwnPropertyDescriptor,Le=(i,e,t,r)=>{for(var n=r>1?void 0:r?cr(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&lr(e,t,n),n};let K=class extends c.LitElement{constructor(){super(),this.lower=!1,this.method="GET"}render(){return c.html`
947
+ <sl-tag variant="${ir(this.method)}" class="method">
821
948
  ${this.lower?this.method.toLowerCase():this.method.toUpperCase()}</sl-tag>
822
- `}};K.styles=ir,Le([h.property()],K.prototype,"method",2),Le([h.property({type:Boolean})],K.prototype,"lower",2),K=Le([h.customElement("pb33f-http-method")],K);const cr=c.css`
949
+ `}};K.styles=ar,Le([h.property()],K.prototype,"method",2),Le([h.property({type:Boolean})],K.prototype,"lower",2),K=Le([h.customElement("pb33f-http-method")],K);const pr=c.css`
823
950
 
824
951
  .mailing-list {
825
952
  padding-left: 10px;
@@ -917,7 +1044,7 @@
917
1044
  }
918
1045
 
919
1046
 
920
- `;var pr=Object.defineProperty,hr=Object.getOwnPropertyDescriptor,A=(i,e,t,r)=>{for(var n=r>1?void 0:r?hr(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&pr(e,t,n),n};let v=class extends c.LitElement{constructor(){super(),this.error="",this.email=sessionStorage.getItem("pb33f_mailing_list_email"),this.apiURL="https://api.pb33f.io/mailing-list/subscribe",this.promiseMessage="No junk, no sales, no spam. Just updates about pb33f.",this.thanksMessage="We promise to only send you updates about pb33f."}updated(){this.email?(this.subscribed.classList.add("show"),this.unsubscribed.classList.add("hide")):(this.subscribed.classList.add("hide"),this.unsubscribed.classList.add("show"))}subscribe(){if(this.emailInput.value==""){this.emailInput.classList.add("error-input"),this.error="Email is empty",this.mailingListError.classList.add("show"),this.mailingListPromise.classList.add("hide");return}if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(this.emailInput.value)){this.emailInput.classList.add("error-input"),this.error="Not a valid email address",this.mailingListError.classList.add("show"),this.mailingListPromise.classList.add("hide");return}async function e(t,r){const n=await fetch(`${r}?email=${t}`);if(!n.ok){let s=await n.json();return Promise.reject(s)}return n.json()}this.emailSubmit.disabled=!0,this.emailSubmit.loading=!0,this.mailingListError.classList.remove("show"),this.emailInput.classList.remove("error-input"),e(this.emailInput.value,this.apiURL).then(t=>{this.email=t.email,this.subscribed.classList.remove("hide"),this.subscribed.classList.add("show"),this.unsubscribed.classList.add("hide"),sessionStorage.setItem("pb33f_mailing_list_email",this.email)},t=>{this.emailSubmit.disabled=!1,this.emailSubmit.loading=!1,this.emailInput.classList.add("error-input"),this.mailingListError.classList.add("show"),this.mailingListPromise.classList.add("hide"),this.error=t.detail})}render(){return c.html`
1047
+ `;var hr=Object.defineProperty,dr=Object.getOwnPropertyDescriptor,A=(i,e,t,r)=>{for(var n=r>1?void 0:r?dr(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&hr(e,t,n),n};let v=class extends c.LitElement{constructor(){super(),this.error="",this.email=sessionStorage.getItem("pb33f_mailing_list_email"),this.apiURL="https://api.pb33f.io/mailing-list/subscribe",this.promiseMessage="No junk, no sales, no spam. Just updates about pb33f.",this.thanksMessage="We promise to only send you updates about pb33f."}updated(){this.email?(this.subscribed.classList.add("show"),this.unsubscribed.classList.add("hide")):(this.subscribed.classList.add("hide"),this.unsubscribed.classList.add("show"))}subscribe(){if(this.emailInput.value==""){this.emailInput.classList.add("error-input"),this.error="Email is empty",this.mailingListError.classList.add("show"),this.mailingListPromise.classList.add("hide");return}if(!/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(this.emailInput.value)){this.emailInput.classList.add("error-input"),this.error="Not a valid email address",this.mailingListError.classList.add("show"),this.mailingListPromise.classList.add("hide");return}async function e(t,r){const n=await fetch(`${r}?email=${t}`);if(!n.ok){let s=await n.json();return Promise.reject(s)}return n.json()}this.emailSubmit.disabled=!0,this.emailSubmit.loading=!0,this.mailingListError.classList.remove("show"),this.emailInput.classList.remove("error-input"),e(this.emailInput.value,this.apiURL).then(t=>{this.email=t.email,this.subscribed.classList.remove("hide"),this.subscribed.classList.add("show"),this.unsubscribed.classList.add("hide"),sessionStorage.setItem("pb33f_mailing_list_email",this.email)},t=>{this.emailSubmit.disabled=!1,this.emailSubmit.loading=!1,this.emailInput.classList.add("error-input"),this.mailingListError.classList.add("show"),this.mailingListPromise.classList.add("hide"),this.error=t.detail})}render(){return c.html`
921
1048
  <div class="mailing-list">
922
1049
  <div class="subscribed">
923
1050
  <header>
@@ -940,21 +1067,21 @@
940
1067
  </div>
941
1068
  </div>
942
1069
  </div>
943
- `}};v.styles=[X,cr],A([h.property()],v.prototype,"apiURL",2),A([h.property()],v.prototype,"thanksMessage",2),A([h.property()],v.prototype,"promiseMessage",2),A([h.state()],v.prototype,"email",2),A([h.query("#email-input")],v.prototype,"emailInput",2),A([h.query(".subscribed")],v.prototype,"subscribed",2),A([h.query(".unsubscribed")],v.prototype,"unsubscribed",2),A([h.query(".mailing-list-promise")],v.prototype,"mailingListPromise",2),A([h.query("#email-submit")],v.prototype,"emailSubmit",2),A([h.query(".mailing-list-error")],v.prototype,"mailingListError",2),A([h.property()],v.prototype,"error",2),v=A([h.customElement("pb33f-mailing-list")],v);function Ce(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let D=Ce();function rt(i){D=i}const nt=/[&<>"']/,dr=new RegExp(nt.source,"g"),ot=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,ur=new RegExp(ot.source,"g"),mr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},st=i=>mr[i];function w(i,e){if(e){if(nt.test(i))return i.replace(dr,st)}else if(ot.test(i))return i.replace(ur,st);return i}const fr=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function br(i){return i.replace(fr,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const gr=/(^|[^\[])\^/g;function g(i,e){let t=typeof i=="string"?i:i.source;e=e||"";const r={replace:(n,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(gr,"$1"),t=t.replace(n,o),r},getRegex:()=>new RegExp(t,e)};return r}function it(i){try{i=encodeURI(i).replace(/%25/g,"%")}catch{return null}return i}const Y={exec:()=>null};function at(i,e){const t=i.replace(/\|/g,(s,o,l)=>{let a=!1,d=o;for(;--d>=0&&l[d]==="\\";)a=!a;return a?"|":" |"}),r=t.split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function ue(i,e,t){const r=i.length;if(r===0)return"";let n=0;for(;n<r;){const s=i.charAt(r-n-1);if(s===e&&!t)n++;else if(s!==e&&t)n++;else break}return i.slice(0,r-n)}function xr(i,e){if(i.indexOf(e[1])===-1)return-1;let t=0;for(let r=0;r<i.length;r++)if(i[r]==="\\")r++;else if(i[r]===e[0])t++;else if(i[r]===e[1]&&(t--,t<0))return r;return-1}function lt(i,e,t,r){const n=e.href,s=e.title?w(e.title):null,o=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){r.state.inLink=!0;const l={type:"link",raw:t,href:n,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,l}return{type:"image",raw:t,href:n,title:s,text:w(o)}}function kr(i,e){const t=i.match(/^(\s+)(?:```)/);if(t===null)return e;const r=t[1];return e.split(`
1070
+ `}};v.styles=[J,pr],A([h.property()],v.prototype,"apiURL",2),A([h.property()],v.prototype,"thanksMessage",2),A([h.property()],v.prototype,"promiseMessage",2),A([h.state()],v.prototype,"email",2),A([h.query("#email-input")],v.prototype,"emailInput",2),A([h.query(".subscribed")],v.prototype,"subscribed",2),A([h.query(".unsubscribed")],v.prototype,"unsubscribed",2),A([h.query(".mailing-list-promise")],v.prototype,"mailingListPromise",2),A([h.query("#email-submit")],v.prototype,"emailSubmit",2),A([h.query(".mailing-list-error")],v.prototype,"mailingListError",2),A([h.property()],v.prototype,"error",2),v=A([h.customElement("pb33f-mailing-list")],v);function Ce(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let M=Ce();function rt(i){M=i}const nt=/[&<>"']/,ur=new RegExp(nt.source,"g"),ot=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,mr=new RegExp(ot.source,"g"),fr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},st=i=>fr[i];function w(i,e){if(e){if(nt.test(i))return i.replace(ur,st)}else if(ot.test(i))return i.replace(mr,st);return i}const gr=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function br(i){return i.replace(gr,(e,t)=>(t=t.toLowerCase(),t==="colon"?":":t.charAt(0)==="#"?t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const kr=/(^|[^\[])\^/g;function b(i,e){let t=typeof i=="string"?i:i.source;e=e||"";const r={replace:(n,s)=>{let o=typeof s=="string"?s:s.source;return o=o.replace(kr,"$1"),t=t.replace(n,o),r},getRegex:()=>new RegExp(t,e)};return r}function it(i){try{i=encodeURI(i).replace(/%25/g,"%")}catch{return null}return i}const Y={exec:()=>null};function at(i,e){const t=i.replace(/\|/g,(s,o,l)=>{let a=!1,d=o;for(;--d>=0&&l[d]==="\\";)a=!a;return a?"|":" |"}),r=t.split(/ \|/);let n=0;if(r[0].trim()||r.shift(),r.length>0&&!r[r.length-1].trim()&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;n<r.length;n++)r[n]=r[n].trim().replace(/\\\|/g,"|");return r}function ue(i,e,t){const r=i.length;if(r===0)return"";let n=0;for(;n<r;){const s=i.charAt(r-n-1);if(s===e&&!t)n++;else if(s!==e&&t)n++;else break}return i.slice(0,r-n)}function xr(i,e){if(i.indexOf(e[1])===-1)return-1;let t=0;for(let r=0;r<i.length;r++)if(i[r]==="\\")r++;else if(i[r]===e[0])t++;else if(i[r]===e[1]&&(t--,t<0))return r;return-1}function lt(i,e,t,r){const n=e.href,s=e.title?w(e.title):null,o=i[1].replace(/\\([\[\]])/g,"$1");if(i[0].charAt(0)!=="!"){r.state.inLink=!0;const l={type:"link",raw:t,href:n,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,l}return{type:"image",raw:t,href:n,title:s,text:w(o)}}function yr(i,e){const t=i.match(/^(\s+)(?:```)/);if(t===null)return e;const r=t[1];return e.split(`
944
1071
  `).map(n=>{const s=n.match(/^\s+/);if(s===null)return n;const[o]=s;return o.length>=r.length?n.slice(r.length):n}).join(`
945
- `)}class me{constructor(e){x(this,"options");x(this,"rules");x(this,"lexer");this.options=e||D}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:ue(r,`
946
- `)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],n=kr(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(/#$/.test(r)){const n=ue(r,"#");(this.options.pedantic||!n||/ $/.test(n))&&(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const r=ue(t[0].replace(/^ *>[ \t]?/gm,""),`
1072
+ `)}class me{constructor(e){k(this,"options");k(this,"rules");k(this,"lexer");this.options=e||M}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:ue(r,`
1073
+ `)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],n=yr(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(/#$/.test(r)){const n=ue(r,"#");(this.options.pedantic||!n||/ $/.test(n))&&(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const r=ue(t[0].replace(/^ *>[ \t]?/gm,""),`
947
1074
  `),n=this.lexer.state.top;this.lexer.state.top=!0;const s=this.lexer.blockTokens(r);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:s,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r=t[1].trim();const n=r.length>1,s={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:"[*+-]");const o=new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`);let l="",a="",d=!1;for(;e;){let p=!1;if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;l=t[0],e=e.substring(l.length);let u=t[2].split(`
948
- `,1)[0].replace(/^\t+/,Me=>" ".repeat(3*Me.length)),m=e.split(`
1075
+ `,1)[0].replace(/^\t+/,He=>" ".repeat(3*He.length)),m=e.split(`
949
1076
  `,1)[0],f=0;this.options.pedantic?(f=2,a=u.trimStart()):(f=t[2].search(/[^ ]/),f=f>4?1:f,a=u.slice(f),f+=t[1].length);let _=!1;if(!u&&/^ *$/.test(m)&&(l+=m+`
950
- `,e=e.substring(m.length+1),p=!0),!p){const Me=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),xt=new RegExp(`^ {0,${Math.min(3,f-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),kt=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:\`\`\`|~~~)`),yt=new RegExp(`^ {0,${Math.min(3,f-1)}}#`);for(;e;){const Ne=e.split(`
951
- `,1)[0];if(m=Ne,this.options.pedantic&&(m=m.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),kt.test(m)||yt.test(m)||Me.test(m)||xt.test(e))break;if(m.search(/[^ ]/)>=f||!m.trim())a+=`
952
- `+m.slice(f);else{if(_||u.search(/[^ ]/)>=4||kt.test(u)||yt.test(u)||xt.test(u))break;a+=`
1077
+ `,e=e.substring(m.length+1),p=!0),!p){const He=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),kt=new RegExp(`^ {0,${Math.min(3,f-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),xt=new RegExp(`^ {0,${Math.min(3,f-1)}}(?:\`\`\`|~~~)`),yt=new RegExp(`^ {0,${Math.min(3,f-1)}}#`);for(;e;){const Ne=e.split(`
1078
+ `,1)[0];if(m=Ne,this.options.pedantic&&(m=m.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),xt.test(m)||yt.test(m)||He.test(m)||kt.test(e))break;if(m.search(/[^ ]/)>=f||!m.trim())a+=`
1079
+ `+m.slice(f);else{if(_||u.search(/[^ ]/)>=4||xt.test(u)||yt.test(u)||kt.test(u))break;a+=`
953
1080
  `+m}!_&&!m.trim()&&(_=!0),l+=Ne+`
954
1081
  `,e=e.substring(Ne.length+1),u=m.slice(f)}}s.loose||(d?s.loose=!0:/\n *\n *$/.test(l)&&(d=!0));let z=null,N;this.options.gfm&&(z=/^\[[ xX]\] /.exec(a),z&&(N=z[0]!=="[ ] ",a=a.replace(/^\[[ xX]\] +/,""))),s.items.push({type:"list_item",raw:l,task:!!z,checked:N,loose:!1,text:a,tokens:[]}),s.raw+=l}s.items[s.items.length-1].raw=l.trimEnd(),s.items[s.items.length-1].text=a.trimEnd(),s.raw=s.raw.trimEnd();for(let p=0;p<s.items.length;p++)if(this.lexer.state.top=!1,s.items[p].tokens=this.lexer.blockTokens(s.items[p].text,[]),!s.loose){const u=s.items[p].tokens.filter(f=>f.type==="space"),m=u.length>0&&u.some(f=>/\n.*\n/.test(f.raw));s.loose=m}if(s.loose)for(let p=0;p<s.items.length;p++)s.items[p].loose=!0;return s}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const r=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:r,raw:t[0],href:n,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;const r=at(t[1]),n=t[2].replace(/^\||\| *$/g,"").split("|"),s=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
955
1082
  `):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(r.length===n.length){for(const l of n)/^ *-+: *$/.test(l)?o.align.push("right"):/^ *:-+: *$/.test(l)?o.align.push("center"):/^ *:-+ *$/.test(l)?o.align.push("left"):o.align.push(null);for(const l of r)o.header.push({text:l,tokens:this.lexer.inline(l)});for(const l of s)o.rows.push(at(l,o.header.length).map(a=>({text:a,tokens:this.lexer.inline(a)})));return o}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const r=t[1].charAt(t[1].length-1)===`
956
- `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const 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){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:w(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.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){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const o=ue(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{const o=xr(t[2],"()");if(o>-1){const a=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let n=t[2],s="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);o&&(n=o[1],s=o[3])}else s=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(this.options.pedantic&&!/>$/.test(r)?n=n.slice(1):n=n.slice(1,-1)),lt(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){const n=(r[2]||r[1]).replace(/\s+/g," "),s=t[n.toLowerCase()];if(!s){const o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return lt(r,s,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!n||n[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(n[1]||n[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const o=[...n[0]].length-1;let l,a,d=o,p=0;const u=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+o);(n=u.exec(t))!=null;){if(l=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!l)continue;if(a=[...l].length,n[3]||n[4]){d+=a;continue}else if((n[5]||n[6])&&o%3&&!((o+a)%3)){p+=a;continue}if(d-=a,d>0)continue;a=Math.min(a,a+d+p);const m=[...n[0]][0].length,f=e.slice(0,o+n.index+m+a);if(Math.min(o,a)%2){const z=f.slice(1,-1);return{type:"em",raw:f,text:z,tokens:this.lexer.inlineTokens(z)}}const _=f.slice(2,-2);return{type:"strong",raw:f,text:_,tokens:this.lexer.inlineTokens(_)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(/\n/g," ");const n=/[^ ]/.test(r),s=/^ /.test(r)&&/ $/.test(r);return n&&s&&(r=r.substring(1,r.length-1)),r=w(r,!0),{type:"codespan",raw:t[0],text:r}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let r,n;return t[2]==="@"?(r=w(t[1]),n="mailto:"+r):(r=w(t[1]),n=r),{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let t;if(t=this.rules.inline.url.exec(e)){let n,s;if(t[2]==="@")n=w(t[0]),s="mailto:"+n;else{let o;do o=t[0],t[0]=((r=this.rules.inline._backpedal.exec(t[0]))==null?void 0:r[0])??"";while(o!==t[0]);n=w(t[0]),t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let r;return this.lexer.state.inRawBlock?r=t[0]:r=w(t[0]),{type:"text",raw:t[0],text:r}}}}const yr=/^(?: *(?:\n|$))+/,vr=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,wr=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ee=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,$r=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ct=/(?:[*+-]|\d{1,9}[.)])/,pt=g(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,ct).getRegex(),Ee=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,_r=/^[^\n]+/,Re=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Ar=g(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",Re).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Tr=g(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ct).getRegex(),fe="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",Pe=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,zr=g("^ {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|$))","i").replace("comment",Pe).replace("tag",fe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ht=g(Ee).replace("hr",ee).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[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",fe).getRegex(),Se={blockquote:g(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ht).getRegex(),code:vr,def:Ar,fences:wr,heading:$r,hr:ee,html:zr,lheading:pt,list:Tr,newline:yr,paragraph:ht,table:Y,text:_r},dt=g("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ee).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",fe).getRegex(),Lr={...Se,table:dt,paragraph:g(Ee).replace("hr",ee).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",dt).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",fe).getRegex()},Cr={...Se,html:g(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Pe).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:Y,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:g(Ee).replace("hr",ee).replace("heading",` *#{1,6} *[^
957
- ]`).replace("lheading",pt).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ut=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Er=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,mt=/^( {2,}|\\)\n(?!\s*$)/,Rr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,te="\\p{P}$+<=>`^|~",Pr=g(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,te).getRegex(),Sr=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Ir=g(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,te).getRegex(),Or=g("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,te).getRegex(),Dr=g("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,te).getRegex(),Hr=g(/\\([punct])/,"gu").replace(/punct/g,te).getRegex(),Mr=g(/^<(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(),Nr=g(Pe).replace("(?:-->|$)","-->").getRegex(),qr=g("^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",Nr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),be=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Br=g(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",be).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ft=g(/^!?\[(label)\]\[(ref)\]/).replace("label",be).replace("ref",Re).getRegex(),bt=g(/^!?\[(ref)\](?:\[\])?/).replace("ref",Re).getRegex(),Zr=g("reflink|nolink(?!\\()","g").replace("reflink",ft).replace("nolink",bt).getRegex(),Ie={_backpedal:Y,anyPunctuation:Hr,autolink:Mr,blockSkip:Sr,br:mt,code:Er,del:Y,emStrongLDelim:Ir,emStrongRDelimAst:Or,emStrongRDelimUnd:Dr,escape:ut,link:Br,nolink:bt,punctuation:Pr,reflink:ft,reflinkSearch:Zr,tag:qr,text:Rr,url:Y},Ur={...Ie,link:g(/^!?\[(label)\]\((.*?)\)/).replace("label",be).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",be).getRegex()},Oe={...Ie,escape:g(ut).replace("])","~|])").getRegex(),url:g(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").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~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Vr={...Oe,br:g(mt).replace("{2,}","*").getRegex(),text:g(Oe.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ge={normal:Se,gfm:Lr,pedantic:Cr},re={normal:Ie,gfm:Oe,breaks:Vr,pedantic:Ur};class L{constructor(e){x(this,"tokens");x(this,"options");x(this,"state");x(this,"tokenizer");x(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||D,this.options.tokenizer=this.options.tokenizer||new me,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:ge.normal,inline:re.normal};this.options.pedantic?(t.block=ge.pedantic,t.inline=re.pedantic):this.options.gfm&&(t.block=ge.gfm,this.options.breaks?t.inline=re.breaks:t.inline=re.gfm),this.tokenizer.rules=t}static get rules(){return{block:ge,inline:re}}static lex(e,t){return new L(t).lex(e)}static lexInline(e,t){return new L(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
1083
+ `?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const 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){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:w(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.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){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/>$/.test(r))return;const o=ue(r.slice(0,-1),"\\");if((r.length-o.length)%2===0)return}else{const o=xr(t[2],"()");if(o>-1){const a=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,a).trim(),t[3]=""}}let n=t[2],s="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);o&&(n=o[1],s=o[3])}else s=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(this.options.pedantic&&!/>$/.test(r)?n=n.slice(1):n=n.slice(1,-1)),lt(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){const n=(r[2]||r[1]).replace(/\s+/g," "),s=t[n.toLowerCase()];if(!s){const o=r[0].charAt(0);return{type:"text",raw:o,text:o}}return lt(r,s,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!n||n[3]&&r.match(/[\p{L}\p{N}]/u))return;if(!(n[1]||n[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const o=[...n[0]].length-1;let l,a,d=o,p=0;const u=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+o);(n=u.exec(t))!=null;){if(l=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!l)continue;if(a=[...l].length,n[3]||n[4]){d+=a;continue}else if((n[5]||n[6])&&o%3&&!((o+a)%3)){p+=a;continue}if(d-=a,d>0)continue;a=Math.min(a,a+d+p);const m=[...n[0]][0].length,f=e.slice(0,o+n.index+m+a);if(Math.min(o,a)%2){const z=f.slice(1,-1);return{type:"em",raw:f,text:z,tokens:this.lexer.inlineTokens(z)}}const _=f.slice(2,-2);return{type:"strong",raw:f,text:_,tokens:this.lexer.inlineTokens(_)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(/\n/g," ");const n=/[^ ]/.test(r),s=/^ /.test(r)&&/ $/.test(r);return n&&s&&(r=r.substring(1,r.length-1)),r=w(r,!0),{type:"codespan",raw:t[0],text:r}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let r,n;return t[2]==="@"?(r=w(t[1]),n="mailto:"+r):(r=w(t[1]),n=r),{type:"link",raw:t[0],text:r,href:n,tokens:[{type:"text",raw:r,text:r}]}}}url(e){var r;let t;if(t=this.rules.inline.url.exec(e)){let n,s;if(t[2]==="@")n=w(t[0]),s="mailto:"+n;else{let o;do o=t[0],t[0]=((r=this.rules.inline._backpedal.exec(t[0]))==null?void 0:r[0])??"";while(o!==t[0]);n=w(t[0]),t[1]==="www."?s="http://"+t[0]:s=t[0]}return{type:"link",raw:t[0],text:n,href:s,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let r;return this.lexer.state.inRawBlock?r=t[0]:r=w(t[0]),{type:"text",raw:t[0],text:r}}}}const vr=/^(?: *(?:\n|$))+/,wr=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,$r=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ee=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,_r=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ct=/(?:[*+-]|\d{1,9}[.)])/,pt=b(/^(?!bull )((?:.|\n(?!\s*?\n|bull ))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,ct).getRegex(),Ee=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ar=/^[^\n]+/,Re=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Tr=b(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",Re).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),zr=b(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ct).getRegex(),fe="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",Pe=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,Lr=b("^ {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|$))","i").replace("comment",Pe).replace("tag",fe).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ht=b(Ee).replace("hr",ee).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[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",fe).getRegex(),Se={blockquote:b(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",ht).getRegex(),code:wr,def:Tr,fences:$r,heading:_r,hr:ee,html:Lr,lheading:pt,list:zr,newline:vr,paragraph:ht,table:Y,text:Ar},dt=b("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ee).replace("heading"," {0,3}#{1,6}(?:\\s|$)").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",fe).getRegex(),Cr={...Se,table:dt,paragraph:b(Ee).replace("hr",ee).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",dt).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",fe).getRegex()},Er={...Se,html:b(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Pe).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:Y,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:b(Ee).replace("hr",ee).replace("heading",` *#{1,6} *[^
1084
+ ]`).replace("lheading",pt).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ut=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Rr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,mt=/^( {2,}|\\)\n(?!\s*$)/,Pr=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,te="\\p{P}$+<=>`^|~",Sr=b(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,te).getRegex(),Ir=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,Or=b(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,te).getRegex(),Mr=b("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,te).getRegex(),Dr=b("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,te).getRegex(),Hr=b(/\\([punct])/,"gu").replace(/punct/g,te).getRegex(),Nr=b(/^<(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(),qr=b(Pe).replace("(?:-->|$)","-->").getRegex(),Br=b("^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",qr).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),ge=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Zr=b(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",ge).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),ft=b(/^!?\[(label)\]\[(ref)\]/).replace("label",ge).replace("ref",Re).getRegex(),gt=b(/^!?\[(ref)\](?:\[\])?/).replace("ref",Re).getRegex(),Ur=b("reflink|nolink(?!\\()","g").replace("reflink",ft).replace("nolink",gt).getRegex(),Ie={_backpedal:Y,anyPunctuation:Hr,autolink:Nr,blockSkip:Ir,br:mt,code:Rr,del:Y,emStrongLDelim:Or,emStrongRDelimAst:Mr,emStrongRDelimUnd:Dr,escape:ut,link:Zr,nolink:gt,punctuation:Sr,reflink:ft,reflinkSearch:Ur,tag:Br,text:Pr,url:Y},Vr={...Ie,link:b(/^!?\[(label)\]\((.*?)\)/).replace("label",ge).getRegex(),reflink:b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ge).getRegex()},Oe={...Ie,escape:b(ut).replace("])","~|])").getRegex(),url:b(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").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~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},Qr={...Oe,br:b(mt).replace("{2,}","*").getRegex(),text:b(Oe.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},be={normal:Se,gfm:Cr,pedantic:Er},re={normal:Ie,gfm:Oe,breaks:Qr,pedantic:Vr};class L{constructor(e){k(this,"tokens");k(this,"options");k(this,"state");k(this,"tokenizer");k(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||M,this.options.tokenizer=this.options.tokenizer||new me,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:be.normal,inline:re.normal};this.options.pedantic?(t.block=be.pedantic,t.inline=re.pedantic):this.options.gfm&&(t.block=be.gfm,this.options.breaks?t.inline=re.breaks:t.inline=re.gfm),this.tokenizer.rules=t}static get rules(){return{block:be,inline:re}}static lex(e,t){return new L(t).lex(e)}static lexInline(e,t){return new L(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
958
1085
  `),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const r=this.inlineQueue[t];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[]){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(l,a,d)=>a+" ".repeat(d.length));let r,n,s,o;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(l=>(r=l.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),r.raw.length===1&&t.length>0?t[t.length-1].raw+=`
959
1086
  `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&(n.type==="paragraph"||n.type==="text")?(n.raw+=`
960
1087
  `+r.raw,n.text+=`
@@ -964,7 +1091,7 @@
964
1091
  `+r.raw,n.text+=`
965
1092
  `+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),o=s.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&n.type==="text"?(n.raw+=`
966
1093
  `+r.raw,n.text+=`
967
- `+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);continue}if(e){const l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n,s,o=e,l,a,d;if(this.tokens.links){const p=Object.keys(this.tokens.links);if(p.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)p.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,l.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(a||(d=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(p=>(r=p.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){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),n=t[t.length-1],n&&r.type==="text"&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):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),n=t[t.length-1],n&&r.type==="text"&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,o,d)){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)){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}if(s=e,this.options.extensions&&this.options.extensions.startInline){let p=1/0;const u=e.slice(1);let m;this.options.extensions.startInline.forEach(f=>{m=f.call({lexer:this},u),typeof m=="number"&&m>=0&&(p=Math.min(p,m))}),p<1/0&&p>=0&&(s=e.substring(0,p+1))}if(r=this.tokenizer.inlineText(s)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(d=r.raw.slice(-1)),a=!0,n=t[t.length-1],n&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){const p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return t}}class xe{constructor(e){x(this,"options");this.options=e||D}code(e,t,r){var s;const n=(s=(t||"").match(/^\S*/))==null?void 0:s[0];return e=e.replace(/\n$/,"")+`
1094
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);continue}if(e){const l="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(l);break}else throw new Error(l)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n,s,o=e,l,a,d;if(this.tokens.links){const p=Object.keys(this.tokens.links);if(p.length>0)for(;(l=this.tokenizer.rules.inline.reflinkSearch.exec(o))!=null;)p.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(o=o.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(l=this.tokenizer.rules.inline.blockSkip.exec(o))!=null;)o=o.slice(0,l.index)+"["+"a".repeat(l[0].length-2)+"]"+o.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(l=this.tokenizer.rules.inline.anyPunctuation.exec(o))!=null;)o=o.slice(0,l.index)+"++"+o.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(a||(d=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(p=>(r=p.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){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),n=t[t.length-1],n&&r.type==="text"&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):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),n=t[t.length-1],n&&r.type==="text"&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,o,d)){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)){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}if(s=e,this.options.extensions&&this.options.extensions.startInline){let p=1/0;const u=e.slice(1);let m;this.options.extensions.startInline.forEach(f=>{m=f.call({lexer:this},u),typeof m=="number"&&m>=0&&(p=Math.min(p,m))}),p<1/0&&p>=0&&(s=e.substring(0,p+1))}if(r=this.tokenizer.inlineText(s)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(d=r.raw.slice(-1)),a=!0,n=t[t.length-1],n&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){const p="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return t}}class ke{constructor(e){k(this,"options");this.options=e||M}code(e,t,r){var s;const n=(s=(t||"").match(/^\S*/))==null?void 0:s[0];return e=e.replace(/\n$/,"")+`
968
1095
  `,n?'<pre><code class="language-'+w(n)+'">'+(r?e:w(e,!0))+`</code></pre>
969
1096
  `:"<pre><code>"+(r?e:w(e,!0))+`</code></pre>
970
1097
  `}blockquote(e){return`<blockquote>
@@ -982,9 +1109,9 @@ ${e}</blockquote>
982
1109
  `}tablerow(e){return`<tr>
983
1110
  ${e}</tr>
984
1111
  `}tablecell(e,t){const r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+e+`</${r}>
985
- `}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return"<br>"}del(e){return`<del>${e}</del>`}link(e,t,r){const n=it(e);if(n===null)return r;e=n;let s='<a href="'+e+'"';return t&&(s+=' title="'+t+'"'),s+=">"+r+"</a>",s}image(e,t,r){const n=it(e);if(n===null)return r;e=n;let s=`<img src="${e}" alt="${r}"`;return t&&(s+=` title="${t}"`),s+=">",s}text(e){return e}}class De{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}}class C{constructor(e){x(this,"options");x(this,"renderer");x(this,"textRenderer");this.options=e||D,this.options.renderer=this.options.renderer||new xe,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new De}static parse(e,t){return new C(t).parse(e)}static parseInline(e,t){return new C(t).parseInline(e)}parse(e,t=!0){let r="";for(let n=0;n<e.length;n++){const s=e[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const o=s,l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(o.type)){r+=l||"";continue}}switch(s.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{const o=s;r+=this.renderer.heading(this.parseInline(o.tokens),o.depth,br(this.parseInline(o.tokens,this.textRenderer)));continue}case"code":{const o=s;r+=this.renderer.code(o.text,o.lang,!!o.escaped);continue}case"table":{const o=s;let l="",a="";for(let p=0;p<o.header.length;p++)a+=this.renderer.tablecell(this.parseInline(o.header[p].tokens),{header:!0,align:o.align[p]});l+=this.renderer.tablerow(a);let d="";for(let p=0;p<o.rows.length;p++){const u=o.rows[p];a="";for(let m=0;m<u.length;m++)a+=this.renderer.tablecell(this.parseInline(u[m].tokens),{header:!1,align:o.align[m]});d+=this.renderer.tablerow(a)}r+=this.renderer.table(l,d);continue}case"blockquote":{const o=s,l=this.parse(o.tokens);r+=this.renderer.blockquote(l);continue}case"list":{const o=s,l=o.ordered,a=o.start,d=o.loose;let p="";for(let u=0;u<o.items.length;u++){const m=o.items[u],f=m.checked,_=m.task;let z="";if(m.task){const N=this.renderer.checkbox(!!f);d?m.tokens.length>0&&m.tokens[0].type==="paragraph"?(m.tokens[0].text=N+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&m.tokens[0].tokens[0].type==="text"&&(m.tokens[0].tokens[0].text=N+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:N+" "}):z+=N+" "}z+=this.parse(m.tokens,d),p+=this.renderer.listitem(z,_,!!f)}r+=this.renderer.list(p,l,a);continue}case"html":{const o=s;r+=this.renderer.html(o.text,o.block);continue}case"paragraph":{const o=s;r+=this.renderer.paragraph(this.parseInline(o.tokens));continue}case"text":{let o=s,l=o.tokens?this.parseInline(o.tokens):o.text;for(;n+1<e.length&&e[n+1].type==="text";)o=e[++n],l+=`
986
- `+(o.tokens?this.parseInline(o.tokens):o.text);r+=t?this.renderer.paragraph(l):l;continue}default:{const o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}parseInline(e,t){t=t||this.renderer;let r="";for(let n=0;n<e.length;n++){const s=e[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=o||"";continue}}switch(s.type){case"escape":{const o=s;r+=t.text(o.text);break}case"html":{const o=s;r+=t.html(o.text);break}case"link":{const o=s;r+=t.link(o.href,o.title,this.parseInline(o.tokens,t));break}case"image":{const o=s;r+=t.image(o.href,o.title,o.text);break}case"strong":{const o=s;r+=t.strong(this.parseInline(o.tokens,t));break}case"em":{const o=s;r+=t.em(this.parseInline(o.tokens,t));break}case"codespan":{const o=s;r+=t.codespan(o.text);break}case"br":{r+=t.br();break}case"del":{const o=s;r+=t.del(this.parseInline(o.tokens,t));break}case"text":{const o=s;r+=t.text(o.text);break}default:{const o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}}class ne{constructor(e){x(this,"options");this.options=e||D}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}x(ne,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class Qr{constructor(...e){qe(this,ie);qe(this,ke);x(this,"defaults",Ce());x(this,"options",this.setOptions);x(this,"parse",ye(this,ie,Be).call(this,L.lex,C.parse));x(this,"parseInline",ye(this,ie,Be).call(this,L.lexInline,C.parseInline));x(this,"Parser",C);x(this,"Renderer",xe);x(this,"TextRenderer",De);x(this,"Lexer",L);x(this,"Tokenizer",me);x(this,"Hooks",ne);this.use(...e)}walkTokens(e,t){var n,s;let r=[];for(const o of e)switch(r=r.concat(t.call(this,o)),o.type){case"table":{const l=o;for(const a of l.header)r=r.concat(this.walkTokens(a.tokens,t));for(const a of l.rows)for(const d of a)r=r.concat(this.walkTokens(d.tokens,t));break}case"list":{const l=o;r=r.concat(this.walkTokens(l.items,t));break}default:{const l=o;(s=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&s[l.type]?this.defaults.extensions.childTokens[l.type].forEach(a=>{r=r.concat(this.walkTokens(l[a],t))}):l.tokens&&(r=r.concat(this.walkTokens(l.tokens,t)))}}return r}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{const n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const o=t.renderers[s.name];o?t.renderers[s.name]=function(...l){let a=s.renderer.apply(this,l);return a===!1&&(a=o.apply(this,l)),a}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=t[s.level];o?o.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),n.extensions=t),r.renderer){const s=this.defaults.renderer||new xe(this.defaults);for(const o in r.renderer){if(!(o in s))throw new Error(`renderer '${o}' does not exist`);if(o==="options")continue;const l=o,a=r.renderer[l],d=s[l];s[l]=(...p)=>{let u=a.apply(s,p);return u===!1&&(u=d.apply(s,p)),u||""}}n.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new me(this.defaults);for(const o in r.tokenizer){if(!(o in s))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const l=o,a=r.tokenizer[l],d=s[l];s[l]=(...p)=>{let u=a.apply(s,p);return u===!1&&(u=d.apply(s,p)),u}}n.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new ne;for(const o in r.hooks){if(!(o in s))throw new Error(`hook '${o}' does not exist`);if(o==="options")continue;const l=o,a=r.hooks[l],d=s[l];ne.passThroughHooks.has(o)?s[l]=p=>{if(this.defaults.async)return Promise.resolve(a.call(s,p)).then(m=>d.call(s,m));const u=a.call(s,p);return d.call(s,u)}:s[l]=(...p)=>{let u=a.apply(s,p);return u===!1&&(u=d.apply(s,p)),u}}n.hooks=s}if(r.walkTokens){const s=this.defaults.walkTokens,o=r.walkTokens;n.walkTokens=function(l){let a=[];return a.push(o.call(this,l)),s&&(a=a.concat(s.call(this,l))),a}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return L.lex(e,t??this.defaults)}parser(e,t){return C.parse(e,t??this.defaults)}}ie=new WeakSet,Be=function(e,t){return(r,n)=>{const s={...n},o={...this.defaults,...s};this.defaults.async===!0&&s.async===!1&&(o.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),o.async=!0);const l=ye(this,ke,vt).call(this,!!o.silent,!!o.async);if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(r):r).then(a=>e(a,o)).then(a=>o.hooks?o.hooks.processAllTokens(a):a).then(a=>o.walkTokens?Promise.all(this.walkTokens(a,o.walkTokens)).then(()=>a):a).then(a=>t(a,o)).then(a=>o.hooks?o.hooks.postprocess(a):a).catch(l);try{o.hooks&&(r=o.hooks.preprocess(r));let a=e(r,o);o.hooks&&(a=o.hooks.processAllTokens(a)),o.walkTokens&&this.walkTokens(a,o.walkTokens);let d=t(a,o);return o.hooks&&(d=o.hooks.postprocess(d)),d}catch(a){return l(a)}}},ke=new WeakSet,vt=function(e,t){return r=>{if(r.message+=`
987
- Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An error occurred:</p><pre>"+w(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}};const H=new Qr;function b(i,e){return H.parse(i,e)}b.options=b.setOptions=function(i){return H.setOptions(i),b.defaults=H.defaults,rt(b.defaults),b},b.getDefaults=Ce,b.defaults=D,b.use=function(...i){return H.use(...i),b.defaults=H.defaults,rt(b.defaults),b},b.walkTokens=function(i,e){return H.walkTokens(i,e)},b.parseInline=H.parseInline,b.Parser=C,b.parser=C.parse,b.Renderer=xe,b.TextRenderer=De,b.Lexer=L,b.lexer=L.lex,b.Tokenizer=me,b.Hooks=ne,b.parse=b,b.options,b.setOptions,b.use,b.walkTokens,b.parseInline,C.parse,L.lex;const jr=c.css`
1112
+ `}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return"<br>"}del(e){return`<del>${e}</del>`}link(e,t,r){const n=it(e);if(n===null)return r;e=n;let s='<a href="'+e+'"';return t&&(s+=' title="'+t+'"'),s+=">"+r+"</a>",s}image(e,t,r){const n=it(e);if(n===null)return r;e=n;let s=`<img src="${e}" alt="${r}"`;return t&&(s+=` title="${t}"`),s+=">",s}text(e){return e}}class Me{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,r){return""+r}image(e,t,r){return""+r}br(){return""}}class C{constructor(e){k(this,"options");k(this,"renderer");k(this,"textRenderer");this.options=e||M,this.options.renderer=this.options.renderer||new ke,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Me}static parse(e,t){return new C(t).parse(e)}static parseInline(e,t){return new C(t).parseInline(e)}parse(e,t=!0){let r="";for(let n=0;n<e.length;n++){const s=e[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const o=s,l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(o.type)){r+=l||"";continue}}switch(s.type){case"space":continue;case"hr":{r+=this.renderer.hr();continue}case"heading":{const o=s;r+=this.renderer.heading(this.parseInline(o.tokens),o.depth,br(this.parseInline(o.tokens,this.textRenderer)));continue}case"code":{const o=s;r+=this.renderer.code(o.text,o.lang,!!o.escaped);continue}case"table":{const o=s;let l="",a="";for(let p=0;p<o.header.length;p++)a+=this.renderer.tablecell(this.parseInline(o.header[p].tokens),{header:!0,align:o.align[p]});l+=this.renderer.tablerow(a);let d="";for(let p=0;p<o.rows.length;p++){const u=o.rows[p];a="";for(let m=0;m<u.length;m++)a+=this.renderer.tablecell(this.parseInline(u[m].tokens),{header:!1,align:o.align[m]});d+=this.renderer.tablerow(a)}r+=this.renderer.table(l,d);continue}case"blockquote":{const o=s,l=this.parse(o.tokens);r+=this.renderer.blockquote(l);continue}case"list":{const o=s,l=o.ordered,a=o.start,d=o.loose;let p="";for(let u=0;u<o.items.length;u++){const m=o.items[u],f=m.checked,_=m.task;let z="";if(m.task){const N=this.renderer.checkbox(!!f);d?m.tokens.length>0&&m.tokens[0].type==="paragraph"?(m.tokens[0].text=N+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&m.tokens[0].tokens[0].type==="text"&&(m.tokens[0].tokens[0].text=N+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:N+" "}):z+=N+" "}z+=this.parse(m.tokens,d),p+=this.renderer.listitem(z,_,!!f)}r+=this.renderer.list(p,l,a);continue}case"html":{const o=s;r+=this.renderer.html(o.text,o.block);continue}case"paragraph":{const o=s;r+=this.renderer.paragraph(this.parseInline(o.tokens));continue}case"text":{let o=s,l=o.tokens?this.parseInline(o.tokens):o.text;for(;n+1<e.length&&e[n+1].type==="text";)o=e[++n],l+=`
1113
+ `+(o.tokens?this.parseInline(o.tokens):o.text);r+=t?this.renderer.paragraph(l):l;continue}default:{const o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}parseInline(e,t){t=t||this.renderer;let r="";for(let n=0;n<e.length;n++){const s=e[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[s.type]){const o=this.options.extensions.renderers[s.type].call({parser:this},s);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){r+=o||"";continue}}switch(s.type){case"escape":{const o=s;r+=t.text(o.text);break}case"html":{const o=s;r+=t.html(o.text);break}case"link":{const o=s;r+=t.link(o.href,o.title,this.parseInline(o.tokens,t));break}case"image":{const o=s;r+=t.image(o.href,o.title,o.text);break}case"strong":{const o=s;r+=t.strong(this.parseInline(o.tokens,t));break}case"em":{const o=s;r+=t.em(this.parseInline(o.tokens,t));break}case"codespan":{const o=s;r+=t.codespan(o.text);break}case"br":{r+=t.br();break}case"del":{const o=s;r+=t.del(this.parseInline(o.tokens,t));break}case"text":{const o=s;r+=t.text(o.text);break}default:{const o='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return r}}class ne{constructor(e){k(this,"options");this.options=e||M}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}k(ne,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class jr{constructor(...e){qe(this,ie);qe(this,xe);k(this,"defaults",Ce());k(this,"options",this.setOptions);k(this,"parse",ye(this,ie,Be).call(this,L.lex,C.parse));k(this,"parseInline",ye(this,ie,Be).call(this,L.lexInline,C.parseInline));k(this,"Parser",C);k(this,"Renderer",ke);k(this,"TextRenderer",Me);k(this,"Lexer",L);k(this,"Tokenizer",me);k(this,"Hooks",ne);this.use(...e)}walkTokens(e,t){var n,s;let r=[];for(const o of e)switch(r=r.concat(t.call(this,o)),o.type){case"table":{const l=o;for(const a of l.header)r=r.concat(this.walkTokens(a.tokens,t));for(const a of l.rows)for(const d of a)r=r.concat(this.walkTokens(d.tokens,t));break}case"list":{const l=o;r=r.concat(this.walkTokens(l.items,t));break}default:{const l=o;(s=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&s[l.type]?this.defaults.extensions.childTokens[l.type].forEach(a=>{r=r.concat(this.walkTokens(l[a],t))}):l.tokens&&(r=r.concat(this.walkTokens(l.tokens,t)))}}return r}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(r=>{const n={...r};if(n.async=this.defaults.async||n.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const o=t.renderers[s.name];o?t.renderers[s.name]=function(...l){let a=s.renderer.apply(this,l);return a===!1&&(a=o.apply(this,l)),a}:t.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=t[s.level];o?o.unshift(s.tokenizer):t[s.level]=[s.tokenizer],s.start&&(s.level==="block"?t.startBlock?t.startBlock.push(s.start):t.startBlock=[s.start]:s.level==="inline"&&(t.startInline?t.startInline.push(s.start):t.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(t.childTokens[s.name]=s.childTokens)}),n.extensions=t),r.renderer){const s=this.defaults.renderer||new ke(this.defaults);for(const o in r.renderer){if(!(o in s))throw new Error(`renderer '${o}' does not exist`);if(o==="options")continue;const l=o,a=r.renderer[l],d=s[l];s[l]=(...p)=>{let u=a.apply(s,p);return u===!1&&(u=d.apply(s,p)),u||""}}n.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new me(this.defaults);for(const o in r.tokenizer){if(!(o in s))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const l=o,a=r.tokenizer[l],d=s[l];s[l]=(...p)=>{let u=a.apply(s,p);return u===!1&&(u=d.apply(s,p)),u}}n.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new ne;for(const o in r.hooks){if(!(o in s))throw new Error(`hook '${o}' does not exist`);if(o==="options")continue;const l=o,a=r.hooks[l],d=s[l];ne.passThroughHooks.has(o)?s[l]=p=>{if(this.defaults.async)return Promise.resolve(a.call(s,p)).then(m=>d.call(s,m));const u=a.call(s,p);return d.call(s,u)}:s[l]=(...p)=>{let u=a.apply(s,p);return u===!1&&(u=d.apply(s,p)),u}}n.hooks=s}if(r.walkTokens){const s=this.defaults.walkTokens,o=r.walkTokens;n.walkTokens=function(l){let a=[];return a.push(o.call(this,l)),s&&(a=a.concat(s.call(this,l))),a}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return L.lex(e,t??this.defaults)}parser(e,t){return C.parse(e,t??this.defaults)}}ie=new WeakSet,Be=function(e,t){return(r,n)=>{const s={...n},o={...this.defaults,...s};this.defaults.async===!0&&s.async===!1&&(o.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),o.async=!0);const l=ye(this,xe,vt).call(this,!!o.silent,!!o.async);if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(r):r).then(a=>e(a,o)).then(a=>o.hooks?o.hooks.processAllTokens(a):a).then(a=>o.walkTokens?Promise.all(this.walkTokens(a,o.walkTokens)).then(()=>a):a).then(a=>t(a,o)).then(a=>o.hooks?o.hooks.postprocess(a):a).catch(l);try{o.hooks&&(r=o.hooks.preprocess(r));let a=e(r,o);o.hooks&&(a=o.hooks.processAllTokens(a)),o.walkTokens&&this.walkTokens(a,o.walkTokens);let d=t(a,o);return o.hooks&&(d=o.hooks.postprocess(d)),d}catch(a){return l(a)}}},xe=new WeakSet,vt=function(e,t){return r=>{if(r.message+=`
1114
+ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An error occurred:</p><pre>"+w(r.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(r);throw r}};const D=new jr;function g(i,e){return D.parse(i,e)}g.options=g.setOptions=function(i){return D.setOptions(i),g.defaults=D.defaults,rt(g.defaults),g},g.getDefaults=Ce,g.defaults=M,g.use=function(...i){return D.use(...i),g.defaults=D.defaults,rt(g.defaults),g},g.walkTokens=function(i,e){return D.walkTokens(i,e)},g.parseInline=D.parseInline,g.Parser=C,g.parser=C.parse,g.Renderer=ke,g.TextRenderer=Me,g.Lexer=L,g.lexer=L.lex,g.Tokenizer=me,g.Hooks=ne,g.parse=g,g.options,g.setOptions,g.use,g.walkTokens,g.parseInline,C.parse,L.lex;const Wr=c.css`
988
1115
 
989
1116
  .summary {
990
1117
  font-size: 1.1rem;
@@ -1077,7 +1204,7 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
1077
1204
  }
1078
1205
  }
1079
1206
 
1080
- `,gt=c.css`
1207
+ `,bt=c.css`
1081
1208
 
1082
1209
  strong {
1083
1210
  display: block;
@@ -1164,13 +1291,13 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
1164
1291
  padding-bottom: var(--global-padding);
1165
1292
  }
1166
1293
 
1167
- `;var Wr=Object.defineProperty,Gr=Object.getOwnPropertyDescriptor,oe=(i,e,t,r)=>{for(var n=r>1?void 0:r?Gr(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&Wr(e,t,n),n};let M=class extends c.LitElement{constructor(){super(),this.apiURL="https://api.pb33f.io/release-notes/"}connectedCallback(){super.connectedCallback(),this.fetchChangelogSummary().then(i=>{this.summaries=i}).catch(i=>{this.error=i})}async fetchChangelogSummary(){const i=await fetch(`${this.apiURL}/${this.project}`);return i.ok?i.json():Promise.reject(`HTTP Error ${i.status}`)}render(){var i,e;if(this.error)return c.html`
1294
+ `;var Gr=Object.defineProperty,Fr=Object.getOwnPropertyDescriptor,oe=(i,e,t,r)=>{for(var n=r>1?void 0:r?Fr(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&Gr(e,t,n),n};let H=class extends c.LitElement{constructor(){super(),this.apiURL="https://api.pb33f.io/release-notes/"}connectedCallback(){super.connectedCallback(),this.fetchChangelogSummary().then(i=>{this.summaries=i}).catch(i=>{this.error=i})}async fetchChangelogSummary(){const i=await fetch(`${this.apiURL}/${this.project}`);return i.ok?i.json():Promise.reject(`HTTP Error ${i.status}`)}render(){var i,e;if(this.error)return c.html`
1168
1295
  <pb33f-attention-box headerText="unable to fetch changelog" type="error">
1169
1296
  ${this.error}
1170
1297
  </pb33f-attention-box>
1171
1298
  `;if(this.project&&((i=this.summaries)==null?void 0:i.length)>0){const t=n=>parseInt(n.split(".")[2]),r=[];for(let n=0;n<((e=this.summaries)==null?void 0:e.length);n++){const s=this.summaries[n];let o=t(s.tag_name),l=c.html``,a=!1;o==0&&(a=!0,l=c.html`
1172
- <sl-icon name="braces-asterisk" class="major-icon"></sl-icon>`);const d=b.parse(s.body).toString();let p=!1;n==0&&(p=!0),console.log(Date.parse(s.published_at)),console.log(new Date(s.published_at)),r.push(c.html`
1173
- <pb33f-timeline-item>
1299
+ <sl-icon name="braces-asterisk" class="major-icon"></sl-icon>`);const d=g.parse(s.body).toString();let p=!1;n==0&&(p=!0),r.push(c.html`
1300
+ <pb33f-timeline-item id="release_${s.name}">
1174
1301
  <span slot="icon">${l}</span>
1175
1302
  <span slot="time" class="${a?"major":null}">${s.publish_date}</span>
1176
1303
  <div slot="content">
@@ -1201,7 +1328,7 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
1201
1328
  </div>
1202
1329
  </pb33f-timeline-item>
1203
1330
  </pb33f-timeline>
1204
- `}};M.styles=[X,gt,jr],oe([h.property()],M.prototype,"apiURL",2),oe([h.property()],M.prototype,"project",2),oe([h.state()],M.prototype,"summaries",2),oe([h.state()],M.prototype,"error",2),M=oe([h.customElement("pb33f-changelog")],M);const Fr=c.css`
1331
+ `}};H.styles=[J,bt,Wr],oe([h.property()],H.prototype,"apiURL",2),oe([h.property()],H.prototype,"project",2),oe([h.state()],H.prototype,"summaries",2),oe([h.state()],H.prototype,"error",2),H=oe([h.customElement("pb33f-changelog")],H);const Jr=c.css`
1205
1332
 
1206
1333
  .summary {
1207
1334
  font-size: 1.1rem;
@@ -1210,8 +1337,8 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
1210
1337
  }
1211
1338
 
1212
1339
  sl-details::part(header) {
1213
- padding-top: 12px;
1214
- height: 15px;
1340
+ padding-top: 15px;
1341
+ height: 40px;
1215
1342
  }
1216
1343
 
1217
1344
  sl-details::part(base) {
@@ -1265,7 +1392,7 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
1265
1392
 
1266
1393
 
1267
1394
 
1268
- `;var Xr=Object.defineProperty,Jr=Object.getOwnPropertyDescriptor,T=(i,e,t,r)=>{for(var n=r>1?void 0:r?Jr(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&Xr(e,t,n),n};let $=class extends c.LitElement{constructor(){super()}render(){const i=new Map;if(this.link&&i.set("Release ",`<a href="${this.link}">${this.link}</a>`),this.author&&this.authorImage){let t=this.author;this.author=="daveshanley"&&(t="quobix"),i.set("Author",`<sl-avatar image="${this.authorImage}" label="Avatar of ${t}"></sl-avatar>
1395
+ `;var Xr=Object.defineProperty,Kr=Object.getOwnPropertyDescriptor,T=(i,e,t,r)=>{for(var n=r>1?void 0:r?Kr(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&Xr(e,t,n),n};let $=class extends c.LitElement{constructor(){super()}render(){const i=new Map;if(this.link&&i.set("Release ",`<a href="${this.link}">${this.link}</a>`),this.author&&this.authorImage){let t=this.author;this.author=="daveshanley"&&(t="quobix"),i.set("Author",`<sl-avatar image="${this.authorImage}" label="Avatar of ${t}"></sl-avatar>
1269
1396
  <a href="${this.authorLink}">${t}</a>`)}if(this.author&&!this.authorImage){let t=this.author;this.author=="daveshanley"&&(t="quobix"),i.set("Author",`<a href="${this.authorLink}">${t}</a>`)}this.tarball&&i.set("Tarball",`<a href="${this.tarball}">${this.tarball}</a>`);const e=new I;return e.data=i,e.keyLabel="",e.valueLabel="",c.html`
1270
1397
  <sl-details>
1271
1398
  <span class="summary ${this.milestone?"milestone":""} ${this.latest?"latest":""}" slot="summary">
@@ -1281,8 +1408,21 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
1281
1408
  <hr/>
1282
1409
  ${e}
1283
1410
  </sl-details>
1284
- `}};$.styles=[X,Fr],T([h.property()],$.prototype,"name",2),T([h.property()],$.prototype,"body",2),T([h.property()],$.prototype,"published",2),T([h.property()],$.prototype,"link",2),T([h.property()],$.prototype,"author",2),T([h.property()],$.prototype,"authorLink",2),T([h.property()],$.prototype,"authorImage",2),T([h.property()],$.prototype,"tarball",2),T([h.property({type:Boolean})],$.prototype,"milestone",2),T([h.property({type:Boolean})],$.prototype,"latest",2),$=T([h.customElement("pb33f-release")],$);const Kr=c.css`
1411
+ `}};$.styles=[J,Jr],T([h.property()],$.prototype,"name",2),T([h.property()],$.prototype,"body",2),T([h.property()],$.prototype,"published",2),T([h.property()],$.prototype,"link",2),T([h.property()],$.prototype,"author",2),T([h.property()],$.prototype,"authorLink",2),T([h.property()],$.prototype,"authorImage",2),T([h.property()],$.prototype,"tarball",2),T([h.property({type:Boolean})],$.prototype,"milestone",2),T([h.property({type:Boolean})],$.prototype,"latest",2),$=T([h.customElement("pb33f-release")],$);const Yr=c.css`
1412
+
1413
+ sl-alert::part(message) {
1414
+ padding-bottom: var(--global-padding);
1415
+ color: var(--font-color-sub1);
1416
+ }
1417
+
1418
+ sl-alert.error::part(message) {
1419
+ color: var(--error-font-color);
1420
+ }
1285
1421
 
1422
+ sl-alert.warning::part(message) {
1423
+ color: var(--warn-300);
1424
+ }
1425
+
1286
1426
  .attention {
1287
1427
  margin-top: var(--global-space);
1288
1428
  margin-bottom: var(--global-space);
@@ -1352,12 +1492,12 @@ Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An err
1352
1492
  box-shadow: 0 0 8px var(--warn-200);
1353
1493
  }
1354
1494
  }
1355
- `;var Yr=Object.defineProperty,en=Object.getOwnPropertyDescriptor,He=(i,e,t,r)=>{for(var n=r>1?void 0:r?en(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&Yr(e,t,n),n};let se=class extends c.LitElement{getIcon(){switch(this.type){case"context":return"braces-asterisk";case"info":return"info-square";case"warning":return"exclamation-triangle";case"error":return"exclamation-square";case"danger":return"exclamation-square";case"success":return"check-square"}}render(){return this.type||(this.type="context"),this.type==="danger"&&(this.type="error"),c.html`
1495
+ `;var en=Object.defineProperty,tn=Object.getOwnPropertyDescriptor,De=(i,e,t,r)=>{for(var n=r>1?void 0:r?tn(e,t):e,s=i.length-1,o;s>=0;s--)(o=i[s])&&(n=(r?o(e,t,n):o(n))||n);return r&&n&&en(e,t,n),n};let se=class extends c.LitElement{getIcon(){switch(this.type){case"context":return"braces-asterisk";case"info":return"info-square";case"warning":return"exclamation-triangle";case"error":return"exclamation-square";case"danger":return"exclamation-square";case"success":return"check-square"}}render(){this.type||(this.type="context"),this.type==="danger"&&(this.type="error");let i=c.html``;return this.headerText!=""&&(i=c.html`<strong>${this.headerText}</strong>`),c.html`
1356
1496
  <div class='attention ${this.type}'>
1357
1497
  <sl-alert class="${this.type}" open>
1358
1498
  <sl-icon slot="icon" name="${this.getIcon()}"></sl-icon>
1359
- <strong>${this.headerText}</strong>
1499
+ ${i}
1360
1500
  <slot></slot>
1361
1501
  </sl-alert>
1362
1502
  </div>
1363
- `}};se.styles=[gt,Kr],He([h.property()],se.prototype,"type",2),He([h.property()],se.prototype,"headerText",2),se=He([h.customElement("pb33f-attention-box")],se),wt.setBasePath("/shoelace")});
1503
+ `}};se.styles=[bt,Yr],De([h.property()],se.prototype,"type",2),De([h.property()],se.prototype,"headerText",2),se=De([h.customElement("pb33f-attention-box")],se),wt.setBasePath("/shoelace")});