@veracity/ai 0.0.5 → 0.0.6
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.
- package/dist/veracity-ai.es.js +143 -141
- package/dist/veracity-ai.umd.js +4 -4
- package/package.json +1 -1
package/dist/veracity-ai.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
(function(pe,z){typeof exports=="object"&&typeof module<"u"?z(exports):typeof define=="function"&&define.amd?define(["exports"],z):(pe=typeof globalThis<"u"?globalThis:pe||self,z(pe.VeracityAI={}))})(this,function(pe){"use strict";var Oo=Object.defineProperty;var Lo=(pe,z,ce)=>z in pe?Oo(pe,z,{enumerable:!0,configurable:!0,writable:!0,value:ce}):pe[z]=ce;var O=(pe,z,ce)=>(Lo(pe,typeof z!="symbol"?z+"":z,ce),ce);function z(e,n,...t){switch(typeof e){case"string":{const r=document.createElement(e);ce(r,n);for(const i of t)_t(r,i);return r}case"function":return e(n||{},t)}throw new Error(`Unable to create element of type '${typeof e}'`)}function ce(e,n){if(n)for(const t in n){const r=n[t];t in e?e[t]=r:t in e.style?e.style[t]=r:e.setAttribute(t,r)}}function $n(e){if(e instanceof Node)return e;if(e!=null&&e[Symbol.iterator]){const n=document.createDocumentFragment();for(const t of e)_t(n,t);return n}else return e?document.createTextNode(e):document.createComment(` ${e} `)}function _t(e,n){const t=$n(n);e.appendChild(t)}function St({as:e="div",size:n="avatar-lg",id:t,...r},i){const s=z(e,{...r},i);return e==="button"&&!("type"in r)&&(s.type="button"),s.classList.add("avatar"),n&&s.classList.add(n),t&&s.classList.add(...qn(t)),s}const At=[["bg-Land-Green-95","text-Land-Green-30"],["bg-Sunflower-85","text-Sunflower-20"],["bg-Energy-Red-95","text-Energy-Red-45"],["bg-Sea-Blue-Main-28","text-Sky-Blue-95"],["bg-Lavender-90","text-Lavender-50"],["bg-Eucalyptus-85","text-Eucalyptus-20"],["bg-Terracotta-85","text-Terracotta-20"]];function qn(e){const n=Vn(e);return At[Math.floor(Math.abs(n%At.length))]}function Vn(e){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return n}function ae(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function jn({size:e="48",...n}){const t=ae("svg");t.setAttribute("viewBox","0 0 48 48"),t.setAttribute("fill","currentColor"),t.setAttribute("width",e),t.setAttribute("height",e),ce(t,n);let r=ae("path");return r.setAttribute("d","M33.4942 11.8621H39.9088L27.3731 36.1775H20.9585L33.4942 11.8621Z"),t.appendChild(r),r=ae("path"),r.setAttribute("d","M22.4844 27.0056L19.3817 33.1261L8.0625 11.9116H14.3083L22.4844 27.0056Z"),t.appendChild(r),t.classList.add("icon"),t}function Wn(e){const n=z(St,e,z(jn,{size:"100%",class:"relative top-[3%]"}));return n.classList.add("bg-Dark-Blue-Main-18","text-White"),n}var tt=(e=>(e.ExtraSmall="20",e.Small="24",e.Medium="32",e.Large="40",e.ExtraLarge="48",e.ExtraExtraLarge="60",e.ExtraExtraExtraLarge="80",e.ExtraExtraExtraExtraLarge="120",e))(tt||{});function Ct({size:e="80",...n}){const t=ae("svg");t.setAttribute("viewBox","0 0 80 80"),t.setAttribute("fill","none"),t.setAttribute("width",e),t.setAttribute("height",e),ce(t,n),t.setAttribute("class",(t.getAttribute("class")??"")+" animate-spin");const r=ae("path");r.setAttribute("d","M40 6.15385C21.3073 6.15385 6.15385 21.3073 6.15385 40C6.15385 58.6927 21.3073 73.8462 40 73.8462C58.6927 73.8462 73.8462 58.6927 73.8462 40C73.8462 21.3073 58.6927 6.15385 40 6.15385ZM0 40C0 17.9086 17.9086 0 40 0C62.0914 0 80 17.9086 80 40C80 62.0914 62.0914 80 40 80C17.9086 80 0 62.0914 0 40Z"),r.setAttribute("fill","#99BEFF"),t.appendChild(r);const i=ae("path");return i.setAttribute("d","M36.9229 3.07692C36.9229 1.37759 38.3004 0 39.9998 0C45.2526 0 50.4541 1.03463 55.3071 3.04482C60.1601 5.05501 64.5697 8.00138 68.284 11.7157C71.9984 15.4301 74.9448 19.8396 76.955 24.6927C78.9651 29.5457 79.9998 34.7471 79.9998 40C79.9998 41.6993 78.6222 43.0769 76.9228 43.0769C75.2235 43.0769 73.8459 41.6993 73.8459 40C73.8459 35.5553 72.9705 31.154 71.2695 27.0476C69.5686 22.9412 67.0755 19.2101 63.9326 16.0672C60.7897 12.9242 57.0585 10.4312 52.9521 8.73023C48.8457 7.0293 44.4445 6.15385 39.9998 6.15385C38.3004 6.15385 36.9229 4.77626 36.9229 3.07692Z"),i.setAttribute("fill","#003591"),t.appendChild(i),t}const Kn={};function Zn(e,n){const t=n||Kn,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Tt(e,r,i)}function Tt(e,n,t){if(Qn(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return It(e.children,n,t)}return Array.isArray(e)?It(e,n,t):""}function It(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Tt(e[i],n,t);return r.join("")}function Qn(e){return!!(e&&typeof e=="object")}const Nt=document.createElement("i");function nt(e){const n="&"+e+";";Nt.innerHTML=n;const t=Nt.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function be(e,n,t,r){const i=e.length;let s=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);s<r.length;)o=r.slice(s,s+1e4),o.unshift(n,0),e.splice(...o),s+=1e4,n+=1e4}function ge(e,n){return e.length>0?(be(e,e.length,0,n),e):n}const vt={}.hasOwnProperty;function Yn(e){const n={};let t=-1;for(;++t<e.length;)Xn(n,e[t]);return n}function Xn(e,n){let t;for(t in n){const i=(vt.call(e,t)?e[t]:void 0)||(e[t]={}),s=n[t];let o;if(s)for(o in s){vt.call(i,o)||(i[o]=[]);const a=s[o];Jn(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Jn(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);be(e,0,0,r)}function Mt(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Le(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const we=Ae(/[A-Za-z]/),fe=Ae(/[\dA-Za-z]/),er=Ae(/[#-'*+\--9=?A-Z^-~]/);function rt(e){return e!==null&&(e<32||e===127)}const it=Ae(/\d/),tr=Ae(/[\dA-Fa-f]/),nr=Ae(/[!-/:-@[-`{-~]/);function R(e){return e!==null&&e<-2}function se(e){return e!==null&&(e<0||e===32)}function V(e){return e===-2||e===-1||e===32}const rr=Ae(new RegExp("\\p{P}|\\p{S}","u")),ir=Ae(/\s/);function Ae(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function K(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(u){return V(u)?(e.enter(t),a(u)):n(u)}function a(u){return V(u)&&s++<i?(e.consume(u),a):(e.exit(t),n(u))}}const sr={tokenize:or};function or(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),K(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),s(a)}function s(a){const u=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=u),t=u,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return R(a)?(e.consume(a),e.exit("chunkText"),s):(e.consume(a),o)}}const ar={tokenize:lr},Rt={tokenize:cr};function lr(e){const n=this,t=[];let r=0,i,s,o;return a;function a(C){if(r<t.length){const G=t[r];return n.containerState=G[1],e.attempt(G[0].continuation,u,c)(C)}return c(C)}function u(C){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&q();const G=n.events.length;let H=G,y;for(;H--;)if(n.events[H][0]==="exit"&&n.events[H][1].type==="chunkFlow"){y=n.events[H][1].end;break}_(r);let $=G;for(;$<n.events.length;)n.events[$][1].end=Object.assign({},y),$++;return be(n.events,H+1,0,n.events.slice(G)),n.events.length=$,c(C)}return a(C)}function c(C){if(r===t.length){if(!i)return f(C);if(i.currentConstruct&&i.currentConstruct.concrete)return A(C);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Rt,p,g)(C)}function p(C){return i&&q(),_(r),f(C)}function g(C){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,A(C)}function f(C){return n.containerState={},e.attempt(Rt,d,A)(C)}function d(C){return r++,t.push([n.currentConstruct,n.containerState]),f(C)}function A(C){if(C===null){i&&q(),_(0),e.consume(C);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{contentType:"flow",previous:s,_tokenizer:i}),M(C)}function M(C){if(C===null){P(e.exit("chunkFlow"),!0),_(0),e.consume(C);return}return R(C)?(e.consume(C),P(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(C),M)}function P(C,G){const H=n.sliceStream(C);if(G&&H.push(null),C.previous=s,s&&(s.next=C),s=C,i.defineSkip(C.start),i.write(H),n.parser.lazy[C.start.line]){let y=i.events.length;for(;y--;)if(i.events[y][1].start.offset<o&&(!i.events[y][1].end||i.events[y][1].end.offset>o))return;const $=n.events.length;let j=$,B,m;for(;j--;)if(n.events[j][0]==="exit"&&n.events[j][1].type==="chunkFlow"){if(B){m=n.events[j][1].end;break}B=!0}for(_(r),y=$;y<n.events.length;)n.events[y][1].end=Object.assign({},m),y++;be(n.events,j+1,0,n.events.slice($)),n.events.length=y}}function _(C){let G=t.length;for(;G-- >C;){const H=t[G];n.containerState=H[1],H[0].exit.call(n,e)}t.length=C}function q(){i.write([null]),s=void 0,i=void 0,n.containerState._closeFlow=void 0}}function cr(e,n,t){return K(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ot(e){if(e===null||se(e)||ir(e))return 1;if(rr(e))return 2}function st(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(n=s(n,t),r.push(s))}return n}const ot={name:"attention",tokenize:hr,resolveAll:ur};function ur(e,n){let t=-1,r,i,s,o,a,u,c,p;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const g=Object.assign({},e[r][1].end),f=Object.assign({},e[t][1].start);Lt(g,-u),Lt(f,u),o={type:u>1?"strongSequence":"emphasisSequence",start:g,end:Object.assign({},e[r][1].end)},a={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[t][1].start),end:f},s={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[t][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[t][1].start=Object.assign({},a.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ge(c,[["enter",e[r][1],n],["exit",e[r][1],n]])),c=ge(c,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",s,n]]),c=ge(c,st(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),c=ge(c,[["exit",s,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(p=2,c=ge(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):p=0,be(e,r-1,t-r+3,c),t=r+c.length-p-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function hr(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ot(r);let s;return o;function o(u){return s=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===s)return e.consume(u),a;const c=e.exit("attentionSequence"),p=Ot(u),g=!p||p===2&&i||t.includes(u),f=!i||i===2&&p||t.includes(r);return c._open=!!(s===42?g:g&&(i||!f)),c._close=!!(s===42?f:f&&(p||!g)),n(u)}}function Lt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const dr={name:"autolink",tokenize:pr};function pr(e,n,t){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(d){return we(d)?(e.consume(d),o):c(d)}function o(d){return d===43||d===45||d===46||fe(d)?(r=1,a(d)):c(d)}function a(d){return d===58?(e.consume(d),r=0,u):(d===43||d===45||d===46||fe(d))&&r++<32?(e.consume(d),a):(r=0,c(d))}function u(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),n):d===null||d===32||d===60||rt(d)?t(d):(e.consume(d),u)}function c(d){return d===64?(e.consume(d),p):er(d)?(e.consume(d),c):t(d)}function p(d){return fe(d)?g(d):t(d)}function g(d){return d===46?(e.consume(d),r=0,p):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),n):f(d)}function f(d){if((d===45||fe(d))&&r++<63){const A=d===45?f:g;return e.consume(d),A}return t(d)}}const je={tokenize:gr,partial:!0};function gr(e,n,t){return r;function r(s){return V(s)?K(e,i,"linePrefix")(s):i(s)}function i(s){return s===null||R(s)?n(s):t(s)}}const Bt={name:"blockQuote",tokenize:fr,continuation:{tokenize:mr},exit:br};function fr(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),s}return t(o)}function s(o){return V(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function mr(e,n,t){const r=this;return i;function i(o){return V(o)?K(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return e.attempt(Bt,n,t)(o)}}function br(e){e.exit("blockQuote")}const Dt={name:"characterEscape",tokenize:wr};function wr(e,n,t){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return nr(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(s)}}const zt={name:"characterReference",tokenize:yr};function yr(e,n,t){const r=this;let i=0,s,o;return a;function a(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),u}function u(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),s=31,o=fe,p(g))}function c(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,o=tr,p):(e.enter("characterReferenceValue"),s=7,o=it,p(g))}function p(g){if(g===59&&i){const f=e.exit("characterReferenceValue");return o===fe&&!nt(r.sliceSerialize(f))?t(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(g)&&i++<s?(e.consume(g),p):t(g)}}const Pt={tokenize:Er,partial:!0},Ft={name:"codeFenced",tokenize:xr,concrete:!0};function xr(e,n,t){const r=this,i={tokenize:H,partial:!0};let s=0,o=0,a;return u;function u(y){return c(y)}function c(y){const $=r.events[r.events.length-1];return s=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,a=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(y)}function p(y){return y===a?(o++,e.consume(y),p):o<3?t(y):(e.exit("codeFencedFenceSequence"),V(y)?K(e,g,"whitespace")(y):g(y))}function g(y){return y===null||R(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(Pt,M,G)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(y))}function f(y){return y===null||R(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(y)):V(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),K(e,d,"whitespace")(y)):y===96&&y===a?t(y):(e.consume(y),f)}function d(y){return y===null||R(y)?g(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),A(y))}function A(y){return y===null||R(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(y)):y===96&&y===a?t(y):(e.consume(y),A)}function M(y){return e.attempt(i,G,P)(y)}function P(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),_}function _(y){return s>0&&V(y)?K(e,q,"linePrefix",s+1)(y):q(y)}function q(y){return y===null||R(y)?e.check(Pt,M,G)(y):(e.enter("codeFlowValue"),C(y))}function C(y){return y===null||R(y)?(e.exit("codeFlowValue"),q(y)):(e.consume(y),C)}function G(y){return e.exit("codeFenced"),n(y)}function H(y,$,j){let B=0;return m;function m(D){return y.enter("lineEnding"),y.consume(D),y.exit("lineEnding"),I}function I(D){return y.enter("codeFencedFence"),V(D)?K(y,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):N(D)}function N(D){return D===a?(y.enter("codeFencedFenceSequence"),W(D)):j(D)}function W(D){return D===a?(B++,y.consume(D),W):B>=o?(y.exit("codeFencedFenceSequence"),V(D)?K(y,Z,"whitespace")(D):Z(D)):j(D)}function Z(D){return D===null||R(D)?(y.exit("codeFencedFence"),$(D)):j(D)}}}function Er(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const at={name:"codeIndented",tokenize:_r},kr={tokenize:Sr,partial:!0};function _r(e,n,t){const r=this;return i;function i(c){return e.enter("codeIndented"),K(e,s,"linePrefix",5)(c)}function s(c){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(c):t(c)}function o(c){return c===null?u(c):R(c)?e.attempt(kr,o,u)(c):(e.enter("codeFlowValue"),a(c))}function a(c){return c===null||R(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),a)}function u(c){return e.exit("codeIndented"),n(c)}}function Sr(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):R(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):K(e,s,"linePrefix",5)(o)}function s(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):R(o)?i(o):t(o)}}const Ar={name:"codeText",tokenize:Ir,resolve:Cr,previous:Tr};function Cr(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function Tr(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ir(e,n,t){let r=0,i,s;return o;function o(g){return e.enter("codeText"),e.enter("codeTextSequence"),a(g)}function a(g){return g===96?(e.consume(g),r++,a):(e.exit("codeTextSequence"),u(g))}function u(g){return g===null?t(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),u):g===96?(s=e.enter("codeTextSequence"),i=0,p(g)):R(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(g))}function c(g){return g===null||g===32||g===96||R(g)?(e.exit("codeTextData"),u(g)):(e.consume(g),c)}function p(g){return g===96?(e.consume(g),i++,p):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(g)):(s.type="codeTextData",c(g))}}function Ut(e){const n={};let t=-1,r,i,s,o,a,u,c;for(;++t<e.length;){for(;t in n;)t=n[t];if(r=e[t],t&&r[1].type==="chunkFlow"&&e[t-1][1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,s=0,s<u.length&&u[s][1].type==="lineEndingBlank"&&(s+=2),s<u.length&&u[s][1].type==="content"))for(;++s<u.length&&u[s][1].type!=="content";)u[s][1].type==="chunkText"&&(u[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Nr(e,t)),t=n[t],c=!0);else if(r[1]._container){for(s=t,i=void 0;s--&&(o=e[s],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=s);i&&(r[1].end=Object.assign({},e[i][1].start),a=e.slice(i,t),a.unshift(r),be(e,i,t-i+1,a))}}return!c}function Nr(e,n){const t=e[n][1],r=e[n][2];let i=n-1;const s=[],o=t._tokenizer||r.parser[t.contentType](t.start),a=o.events,u=[],c={};let p,g,f=-1,d=t,A=0,M=0;const P=[M];for(;d;){for(;e[++i][1]!==d;);s.push(i),d._tokenizer||(p=r.sliceStream(d),d.next||p.push(null),g&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(p),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),g=d,d=d.next}for(d=t;++f<a.length;)a[f][0]==="exit"&&a[f-1][0]==="enter"&&a[f][1].type===a[f-1][1].type&&a[f][1].start.line!==a[f][1].end.line&&(M=f+1,P.push(M),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):P.pop(),f=P.length;f--;){const _=a.slice(P[f],P[f+1]),q=s.pop();u.unshift([q,q+_.length-1]),be(e,q,2,_)}for(f=-1;++f<u.length;)c[A+u[f][0]]=A+u[f][1],A+=u[f][1]-u[f][0]-1;return c}const vr={tokenize:Or,resolve:Rr},Mr={tokenize:Lr,partial:!0};function Rr(e){return Ut(e),e}function Or(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?s(a):R(a)?e.check(Mr,o,s)(a):(e.consume(a),i)}function s(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function Lr(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),K(e,s,"linePrefix")}function s(o){if(o===null||R(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function Gt(e,n,t,r,i,s,o,a,u){const c=u||Number.POSITIVE_INFINITY;let p=0;return g;function g(_){return _===60?(e.enter(r),e.enter(i),e.enter(s),e.consume(_),e.exit(s),f):_===null||_===32||_===41||rt(_)?t(_):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),M(_))}function f(_){return _===62?(e.enter(s),e.consume(_),e.exit(s),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(_))}function d(_){return _===62?(e.exit("chunkString"),e.exit(a),f(_)):_===null||_===60||R(_)?t(_):(e.consume(_),_===92?A:d)}function A(_){return _===60||_===62||_===92?(e.consume(_),d):d(_)}function M(_){return!p&&(_===null||_===41||se(_))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(_)):p<c&&_===40?(e.consume(_),p++,M):_===41?(e.consume(_),p--,M):_===null||_===32||_===40||rt(_)?t(_):(e.consume(_),_===92?P:M)}function P(_){return _===40||_===41||_===92?(e.consume(_),M):M(_)}}function Ht(e,n,t,r,i,s){const o=this;let a=0,u;return c;function c(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(s),p}function p(d){return a>999||d===null||d===91||d===93&&!u||d===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(d):d===93?(e.exit(s),e.enter(i),e.consume(d),e.exit(i),e.exit(r),n):R(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),g(d))}function g(d){return d===null||d===91||d===93||R(d)||a++>999?(e.exit("chunkString"),p(d)):(e.consume(d),u||(u=!V(d)),d===92?f:g)}function f(d){return d===91||d===92||d===93?(e.consume(d),a++,g):g(d)}}function $t(e,n,t,r,i,s){let o;return a;function a(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,u):t(f)}function u(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),n):(e.enter(s),c(f))}function c(f){return f===o?(e.exit(s),u(o)):f===null?t(f):R(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),K(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(f))}function p(f){return f===o||f===null||R(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?g:p)}function g(f){return f===o||f===92?(e.consume(f),p):p(f)}}function Ge(e,n){let t;return r;function r(i){return R(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):V(i)?K(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Br={name:"definition",tokenize:zr},Dr={tokenize:Pr,partial:!0};function zr(e,n,t){const r=this;let i;return s;function s(d){return e.enter("definition"),o(d)}function o(d){return Ht.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function a(d){return i=Le(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),u):t(d)}function u(d){return se(d)?Ge(e,c)(d):c(d)}function c(d){return Gt(e,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function p(d){return e.attempt(Dr,g,g)(d)}function g(d){return V(d)?K(e,f,"whitespace")(d):f(d)}function f(d){return d===null||R(d)?(e.exit("definition"),r.parser.defined.push(i),n(d)):t(d)}}function Pr(e,n,t){return r;function r(a){return se(a)?Ge(e,i)(a):t(a)}function i(a){return $t(e,s,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function s(a){return V(a)?K(e,o,"whitespace")(a):o(a)}function o(a){return a===null||R(a)?n(a):t(a)}}const Fr={name:"hardBreakEscape",tokenize:Ur};function Ur(e,n,t){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return R(s)?(e.exit("hardBreakEscape"),n(s)):t(s)}}const Gr={name:"headingAtx",tokenize:$r,resolve:Hr};function Hr(e,n){let t=e.length-2,r=3,i,s;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},s={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},be(e,r,t-r+1,[["enter",i,n],["enter",s,n],["exit",s,n],["exit",i,n]])),e}function $r(e,n,t){let r=0;return i;function i(p){return e.enter("atxHeading"),s(p)}function s(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&r++<6?(e.consume(p),o):p===null||se(p)?(e.exit("atxHeadingSequence"),a(p)):t(p)}function a(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||R(p)?(e.exit("atxHeading"),n(p)):V(p)?K(e,a,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),a(p))}function c(p){return p===null||p===35||se(p)?(e.exit("atxHeadingText"),a(p)):(e.consume(p),c)}}const qr=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],qt=["pre","script","style","textarea"],Vr={name:"htmlFlow",tokenize:Zr,resolveTo:Kr,concrete:!0},jr={tokenize:Yr,partial:!0},Wr={tokenize:Qr,partial:!0};function Kr(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Zr(e,n,t){const r=this;let i,s,o,a,u;return c;function c(h){return p(h)}function p(h){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(h),g}function g(h){return h===33?(e.consume(h),f):h===47?(e.consume(h),s=!0,M):h===63?(e.consume(h),i=3,r.interrupt?n:l):we(h)?(e.consume(h),o=String.fromCharCode(h),P):t(h)}function f(h){return h===45?(e.consume(h),i=2,d):h===91?(e.consume(h),i=5,a=0,A):we(h)?(e.consume(h),i=4,r.interrupt?n:l):t(h)}function d(h){return h===45?(e.consume(h),r.interrupt?n:l):t(h)}function A(h){const oe="CDATA[";return h===oe.charCodeAt(a++)?(e.consume(h),a===oe.length?r.interrupt?n:N:A):t(h)}function M(h){return we(h)?(e.consume(h),o=String.fromCharCode(h),P):t(h)}function P(h){if(h===null||h===47||h===62||se(h)){const oe=h===47,ne=o.toLowerCase();return!oe&&!s&&qt.includes(ne)?(i=1,r.interrupt?n(h):N(h)):qr.includes(o.toLowerCase())?(i=6,oe?(e.consume(h),_):r.interrupt?n(h):N(h)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(h):s?q(h):C(h))}return h===45||fe(h)?(e.consume(h),o+=String.fromCharCode(h),P):t(h)}function _(h){return h===62?(e.consume(h),r.interrupt?n:N):t(h)}function q(h){return V(h)?(e.consume(h),q):m(h)}function C(h){return h===47?(e.consume(h),m):h===58||h===95||we(h)?(e.consume(h),G):V(h)?(e.consume(h),C):m(h)}function G(h){return h===45||h===46||h===58||h===95||fe(h)?(e.consume(h),G):H(h)}function H(h){return h===61?(e.consume(h),y):V(h)?(e.consume(h),H):C(h)}function y(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(e.consume(h),u=h,$):V(h)?(e.consume(h),y):j(h)}function $(h){return h===u?(e.consume(h),u=null,B):h===null||R(h)?t(h):(e.consume(h),$)}function j(h){return h===null||h===34||h===39||h===47||h===60||h===61||h===62||h===96||se(h)?H(h):(e.consume(h),j)}function B(h){return h===47||h===62||V(h)?C(h):t(h)}function m(h){return h===62?(e.consume(h),I):t(h)}function I(h){return h===null||R(h)?N(h):V(h)?(e.consume(h),I):t(h)}function N(h){return h===45&&i===2?(e.consume(h),ee):h===60&&i===1?(e.consume(h),x):h===62&&i===4?(e.consume(h),F):h===63&&i===3?(e.consume(h),l):h===93&&i===5?(e.consume(h),v):R(h)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(jr,Q,W)(h)):h===null||R(h)?(e.exit("htmlFlowData"),W(h)):(e.consume(h),N)}function W(h){return e.check(Wr,Z,Q)(h)}function Z(h){return e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),D}function D(h){return h===null||R(h)?W(h):(e.enter("htmlFlowData"),N(h))}function ee(h){return h===45?(e.consume(h),l):N(h)}function x(h){return h===47?(e.consume(h),o="",k):N(h)}function k(h){if(h===62){const oe=o.toLowerCase();return qt.includes(oe)?(e.consume(h),F):N(h)}return we(h)&&o.length<8?(e.consume(h),o+=String.fromCharCode(h),k):N(h)}function v(h){return h===93?(e.consume(h),l):N(h)}function l(h){return h===62?(e.consume(h),F):h===45&&i===2?(e.consume(h),l):N(h)}function F(h){return h===null||R(h)?(e.exit("htmlFlowData"),Q(h)):(e.consume(h),F)}function Q(h){return e.exit("htmlFlow"),n(h)}}function Qr(e,n,t){const r=this;return i;function i(o){return R(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):t(o)}function s(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function Yr(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(je,n,t)}}const Xr={name:"htmlText",tokenize:Jr};function Jr(e,n,t){const r=this;let i,s,o;return a;function a(l){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(l),u}function u(l){return l===33?(e.consume(l),c):l===47?(e.consume(l),H):l===63?(e.consume(l),C):we(l)?(e.consume(l),j):t(l)}function c(l){return l===45?(e.consume(l),p):l===91?(e.consume(l),s=0,A):we(l)?(e.consume(l),q):t(l)}function p(l){return l===45?(e.consume(l),d):t(l)}function g(l){return l===null?t(l):l===45?(e.consume(l),f):R(l)?(o=g,x(l)):(e.consume(l),g)}function f(l){return l===45?(e.consume(l),d):g(l)}function d(l){return l===62?ee(l):l===45?f(l):g(l)}function A(l){const F="CDATA[";return l===F.charCodeAt(s++)?(e.consume(l),s===F.length?M:A):t(l)}function M(l){return l===null?t(l):l===93?(e.consume(l),P):R(l)?(o=M,x(l)):(e.consume(l),M)}function P(l){return l===93?(e.consume(l),_):M(l)}function _(l){return l===62?ee(l):l===93?(e.consume(l),_):M(l)}function q(l){return l===null||l===62?ee(l):R(l)?(o=q,x(l)):(e.consume(l),q)}function C(l){return l===null?t(l):l===63?(e.consume(l),G):R(l)?(o=C,x(l)):(e.consume(l),C)}function G(l){return l===62?ee(l):C(l)}function H(l){return we(l)?(e.consume(l),y):t(l)}function y(l){return l===45||fe(l)?(e.consume(l),y):$(l)}function $(l){return R(l)?(o=$,x(l)):V(l)?(e.consume(l),$):ee(l)}function j(l){return l===45||fe(l)?(e.consume(l),j):l===47||l===62||se(l)?B(l):t(l)}function B(l){return l===47?(e.consume(l),ee):l===58||l===95||we(l)?(e.consume(l),m):R(l)?(o=B,x(l)):V(l)?(e.consume(l),B):ee(l)}function m(l){return l===45||l===46||l===58||l===95||fe(l)?(e.consume(l),m):I(l)}function I(l){return l===61?(e.consume(l),N):R(l)?(o=I,x(l)):V(l)?(e.consume(l),I):B(l)}function N(l){return l===null||l===60||l===61||l===62||l===96?t(l):l===34||l===39?(e.consume(l),i=l,W):R(l)?(o=N,x(l)):V(l)?(e.consume(l),N):(e.consume(l),Z)}function W(l){return l===i?(e.consume(l),i=void 0,D):l===null?t(l):R(l)?(o=W,x(l)):(e.consume(l),W)}function Z(l){return l===null||l===34||l===39||l===60||l===61||l===96?t(l):l===47||l===62||se(l)?B(l):(e.consume(l),Z)}function D(l){return l===47||l===62||se(l)?B(l):t(l)}function ee(l){return l===62?(e.consume(l),e.exit("htmlTextData"),e.exit("htmlText"),n):t(l)}function x(l){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),k}function k(l){return V(l)?K(e,v,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):v(l)}function v(l){return e.enter("htmlTextData"),o(l)}}const lt={name:"labelEnd",tokenize:si,resolveTo:ii,resolveAll:ri},ei={tokenize:oi},ti={tokenize:ai},ni={tokenize:li};function ri(e){let n=-1;for(;++n<e.length;){const t=e[n][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(e.splice(n+1,t.type==="labelImage"?4:2),t.type="data",n++)}return e}function ii(e,n){let t=e.length,r=0,i,s,o,a;for(;t--;)if(i=e[t][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const u={type:e[s][1].type==="labelLink"?"link":"image",start:Object.assign({},e[s][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[s][1].start),end:Object.assign({},e[o][1].end)},p={type:"labelText",start:Object.assign({},e[s+r+2][1].end),end:Object.assign({},e[o-2][1].start)};return a=[["enter",u,n],["enter",c,n]],a=ge(a,e.slice(s+1,s+r+3)),a=ge(a,[["enter",p,n]]),a=ge(a,st(n.parser.constructs.insideSpan.null,e.slice(s+r+4,o-3),n)),a=ge(a,[["exit",p,n],e[o-2],e[o-1],["exit",c,n]]),a=ge(a,e.slice(o+1)),a=ge(a,[["exit",u,n]]),be(e,s,e.length,a),e}function si(e,n,t){const r=this;let i=r.events.length,s,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return a;function a(f){return s?s._inactive?g(f):(o=r.parser.defined.includes(Le(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),u):t(f)}function u(f){return f===40?e.attempt(ei,p,o?p:g)(f):f===91?e.attempt(ti,p,o?c:g)(f):o?p(f):g(f)}function c(f){return e.attempt(ni,p,g)(f)}function p(f){return n(f)}function g(f){return s._balanced=!0,t(f)}}function oi(e,n,t){return r;function r(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),i}function i(g){return se(g)?Ge(e,s)(g):s(g)}function s(g){return g===41?p(g):Gt(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function o(g){return se(g)?Ge(e,u)(g):p(g)}function a(g){return t(g)}function u(g){return g===34||g===39||g===40?$t(e,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):p(g)}function c(g){return se(g)?Ge(e,p)(g):p(g)}function p(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),n):t(g)}}function ai(e,n,t){const r=this;return i;function i(a){return Ht.call(r,e,s,o,"reference","referenceMarker","referenceString")(a)}function s(a){return r.parser.defined.includes(Le(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function li(e,n,t){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),n):t(s)}}const ci={name:"labelStartImage",tokenize:ui,resolveAll:lt.resolveAll};function ui(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),s}function s(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const hi={name:"labelStartLink",tokenize:di,resolveAll:lt.resolveAll};function di(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const ct={name:"lineEnding",tokenize:pi};function pi(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),K(e,n,"linePrefix")}}const We={name:"thematicBreak",tokenize:gi};function gi(e,n,t){let r=0,i;return s;function s(c){return e.enter("thematicBreak"),o(c)}function o(c){return i=c,a(c)}function a(c){return c===i?(e.enter("thematicBreakSequence"),u(c)):r>=3&&(c===null||R(c))?(e.exit("thematicBreak"),n(c)):t(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),V(c)?K(e,a,"whitespace")(c):a(c))}}const le={name:"list",tokenize:bi,continuation:{tokenize:wi},exit:xi},fi={tokenize:Ei,partial:!0},mi={tokenize:yi,partial:!0};function bi(e,n,t){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(d){const A=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:it(d)){if(r.containerState.type||(r.containerState.type=A,e.enter(A,{_container:!0})),A==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(We,t,c)(d):c(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(d)}return t(d)}function u(d){return it(d)&&++o<10?(e.consume(d),u):(!r.interrupt||o<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),c(d)):t(d)}function c(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(je,r.interrupt?t:p,e.attempt(fi,f,g))}function p(d){return r.containerState.initialBlankLine=!0,s++,f(d)}function g(d){return V(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),f):t(d)}function f(d){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(d)}}function wi(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(je,i,s);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,K(e,n,"listItemIndent",r.containerState.size+1)(a)}function s(a){return r.containerState.furtherBlankLines||!V(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(mi,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,K(e,e.attempt(le,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function yi(e,n,t){const r=this;return K(e,i,"listItemIndent",r.containerState.size+1);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(s):t(s)}}function xi(e){e.exit(this.containerState.type)}function Ei(e,n,t){const r=this;return K(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const o=r.events[r.events.length-1];return!V(s)&&o&&o[1].type==="listItemPrefixWhitespace"?n(s):t(s)}}const Vt={name:"setextUnderline",tokenize:_i,resolveTo:ki};function ki(e,n){let t=e.length,r,i,s;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!s&&e[t][1].type==="definition"&&(s=t);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",s?(e.splice(i,0,["enter",o,n]),e.splice(s+1,0,["exit",e[r][1],n]),e[r][1].end=Object.assign({},e[s][1].end)):e[r][1]=o,e.push(["exit",o,n]),e}function _i(e,n,t){const r=this;let i;return s;function s(c){let p=r.events.length,g;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){g=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||g)?(e.enter("setextHeadingLine"),i=c,o(c)):t(c)}function o(c){return e.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===i?(e.consume(c),a):(e.exit("setextHeadingLineSequence"),V(c)?K(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||R(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}const Si={tokenize:Ai};function Ai(e){const n=this,t=e.attempt(je,r,e.attempt(this.parser.constructs.flowInitial,i,K(e,e.attempt(this.parser.constructs.flow,i,e.attempt(vr,i)),"linePrefix")));return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Ci={resolveAll:Wt()},Ti=jt("string"),Ii=jt("text");function jt(e){return{tokenize:n,resolveAll:Wt(e==="text"?Ni:void 0)};function n(t){const r=this,i=this.parser.constructs[e],s=t.attempt(i,o,a);return o;function o(p){return c(p)?s(p):a(p)}function a(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),u}function u(p){return c(p)?(t.exit("data"),s(p)):(t.consume(p),u)}function c(p){if(p===null)return!0;const g=i[p];let f=-1;if(g)for(;++f<g.length;){const d=g[f];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function Wt(e){return n;function n(t,r){let i=-1,s;for(;++i<=t.length;)s===void 0?t[i]&&t[i][1].type==="data"&&(s=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==s+2&&(t[s][1].end=t[i-1][1].end,t.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(t,r):t}}function Ni(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let s=i.length,o=-1,a=0,u;for(;s--;){const c=i[s];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(c===-2)u=!0,a++;else if(c!==-1){s++;break}}if(a){const c={type:t===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-a,offset:r.end.offset-a,_index:r.start._index+s,_bufferIndex:s?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(t,0,["enter",c,n],["exit",c,n]),t+=2)}t++}return e}function vi(e,n,t){let r=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},s=[];let o=[],a=[];const u={consume:q,enter:C,exit:G,attempt:$(H),check:$(y),interrupt:$(y,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:d,sliceSerialize:f,now:A,defineSkip:M,write:g};let p=n.tokenize.call(c,u);return n.resolveAll&&s.push(n),c;function g(I){return o=ge(o,I),P(),o[o.length-1]!==null?[]:(j(n,0),c.events=st(s,c.events,c),c.events)}function f(I,N){return Ri(d(I),N)}function d(I){return Mi(o,I)}function A(){const{line:I,column:N,offset:W,_index:Z,_bufferIndex:D}=r;return{line:I,column:N,offset:W,_index:Z,_bufferIndex:D}}function M(I){i[I.line]=I.column,m()}function P(){let I;for(;r._index<o.length;){const N=o[r._index];if(typeof N=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<N.length;)_(N.charCodeAt(r._bufferIndex));else _(N)}}function _(I){p=p(I)}function q(I){R(I)?(r.line++,r.column=1,r.offset+=I===-3?2:1,m()):I!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=I}function C(I,N){const W=N||{};return W.type=I,W.start=A(),c.events.push(["enter",W,c]),a.push(W),W}function G(I){const N=a.pop();return N.end=A(),c.events.push(["exit",N,c]),N}function H(I,N){j(I,N.from)}function y(I,N){N.restore()}function $(I,N){return W;function W(Z,D,ee){let x,k,v,l;return Array.isArray(Z)?Q(Z):"tokenize"in Z?Q([Z]):F(Z);function F(Y){return Ie;function Ie(me){const Ee=me!==null&&Y[me],ke=me!==null&&Y.null,qe=[...Array.isArray(Ee)?Ee:Ee?[Ee]:[],...Array.isArray(ke)?ke:ke?[ke]:[]];return Q(qe)(me)}}function Q(Y){return x=Y,k=0,Y.length===0?ee:h(Y[k])}function h(Y){return Ie;function Ie(me){return l=B(),v=Y,Y.partial||(c.currentConstruct=Y),Y.name&&c.parser.constructs.disable.null.includes(Y.name)?ne():Y.tokenize.call(N?Object.assign(Object.create(c),N):c,u,oe,ne)(me)}}function oe(Y){return I(v,l),D}function ne(Y){return l.restore(),++k<x.length?h(x[k]):ee}}}function j(I,N){I.resolveAll&&!s.includes(I)&&s.push(I),I.resolve&&be(c.events,N,c.events.length-N,I.resolve(c.events.slice(N),c)),I.resolveTo&&(c.events=I.resolveTo(c.events,c))}function B(){const I=A(),N=c.previous,W=c.currentConstruct,Z=c.events.length,D=Array.from(a);return{restore:ee,from:Z};function ee(){r=I,c.previous=N,c.currentConstruct=W,c.events.length=Z,a=D,m()}}function m(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Mi(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,s=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,s)];else{if(o=e.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}s>0&&o.push(e[i].slice(0,s))}return o}function Ri(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const s=e[t];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
|
|
1
|
+
(function(pe,z){typeof exports=="object"&&typeof module<"u"?z(exports):typeof define=="function"&&define.amd?define(["exports"],z):(pe=typeof globalThis<"u"?globalThis:pe||self,z(pe.VeracityAI={}))})(this,function(pe){"use strict";var Oo=Object.defineProperty;var Lo=(pe,z,ce)=>z in pe?Oo(pe,z,{enumerable:!0,configurable:!0,writable:!0,value:ce}):pe[z]=ce;var O=(pe,z,ce)=>(Lo(pe,typeof z!="symbol"?z+"":z,ce),ce);function z(e,n,...t){switch(typeof e){case"string":{const r=document.createElement(e);ce(r,n);for(const i of t)_t(r,i);return r}case"function":return e(n||{},t)}throw new Error(`Unable to create element of type '${typeof e}'`)}function ce(e,n){if(n)for(const t in n){const r=n[t];t in e?e[t]=r:t in e.style?e.style[t]=r:e.setAttribute(t,r)}}function $n(e){if(e instanceof Node)return e;if(typeof e=="string")return document.createTextNode(e);if(e!=null&&e[Symbol.iterator]){const n=document.createDocumentFragment();for(const t of e)_t(n,t);return n}else return e?document.createTextNode(e):document.createComment(` ${e} `)}function _t(e,n){const t=$n(n);e.appendChild(t)}function St({as:e="div",size:n="avatar-lg",id:t,...r},i){const s=z(e,{...r},i);return e==="button"&&!("type"in r)&&(s.type="button"),s.classList.add("avatar"),n&&s.classList.add(n),t&&s.classList.add(...qn(t)),s}const At=[["bg-Land-Green-95","text-Land-Green-30"],["bg-Sunflower-85","text-Sunflower-20"],["bg-Energy-Red-95","text-Energy-Red-45"],["bg-Sea-Blue-Main-28","text-Sky-Blue-95"],["bg-Lavender-90","text-Lavender-50"],["bg-Eucalyptus-85","text-Eucalyptus-20"],["bg-Terracotta-85","text-Terracotta-20"]];function qn(e){const n=jn(e);return At[Math.floor(Math.abs(n%At.length))]}function jn(e){let n=0;for(let t=0;t<e.length;t++)n=e.charCodeAt(t)+((n<<5)-n);return n}function ae(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function Vn({size:e="48",...n}){const t=ae("svg");t.setAttribute("viewBox","0 0 48 48"),t.setAttribute("fill","currentColor"),t.setAttribute("width",e),t.setAttribute("height",e),ce(t,n);let r=ae("path");return r.setAttribute("d","M33.4942 11.8621H39.9088L27.3731 36.1775H20.9585L33.4942 11.8621Z"),t.appendChild(r),r=ae("path"),r.setAttribute("d","M22.4844 27.0056L19.3817 33.1261L8.0625 11.9116H14.3083L22.4844 27.0056Z"),t.appendChild(r),t.classList.add("icon"),t}function Wn(e){const n=z(St,e,z(Vn,{size:"100%",class:"relative top-[3%]"}));return n.classList.add("bg-Dark-Blue-Main-18","text-White"),n}var tt=(e=>(e.ExtraSmall="20",e.Small="24",e.Medium="32",e.Large="40",e.ExtraLarge="48",e.ExtraExtraLarge="60",e.ExtraExtraExtraLarge="80",e.ExtraExtraExtraExtraLarge="120",e))(tt||{});function Ct({size:e="80",...n}){const t=ae("svg");t.setAttribute("viewBox","0 0 80 80"),t.setAttribute("fill","none"),t.setAttribute("width",e),t.setAttribute("height",e),ce(t,n),t.setAttribute("class",(t.getAttribute("class")??"")+" animate-spin");const r=ae("path");r.setAttribute("d","M40 6.15385C21.3073 6.15385 6.15385 21.3073 6.15385 40C6.15385 58.6927 21.3073 73.8462 40 73.8462C58.6927 73.8462 73.8462 58.6927 73.8462 40C73.8462 21.3073 58.6927 6.15385 40 6.15385ZM0 40C0 17.9086 17.9086 0 40 0C62.0914 0 80 17.9086 80 40C80 62.0914 62.0914 80 40 80C17.9086 80 0 62.0914 0 40Z"),r.setAttribute("fill","#99BEFF"),t.appendChild(r);const i=ae("path");return i.setAttribute("d","M36.9229 3.07692C36.9229 1.37759 38.3004 0 39.9998 0C45.2526 0 50.4541 1.03463 55.3071 3.04482C60.1601 5.05501 64.5697 8.00138 68.284 11.7157C71.9984 15.4301 74.9448 19.8396 76.955 24.6927C78.9651 29.5457 79.9998 34.7471 79.9998 40C79.9998 41.6993 78.6222 43.0769 76.9228 43.0769C75.2235 43.0769 73.8459 41.6993 73.8459 40C73.8459 35.5553 72.9705 31.154 71.2695 27.0476C69.5686 22.9412 67.0755 19.2101 63.9326 16.0672C60.7897 12.9242 57.0585 10.4312 52.9521 8.73023C48.8457 7.0293 44.4445 6.15385 39.9998 6.15385C38.3004 6.15385 36.9229 4.77626 36.9229 3.07692Z"),i.setAttribute("fill","#003591"),t.appendChild(i),t}const Kn={};function Zn(e,n){const t=n||Kn,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Tt(e,r,i)}function Tt(e,n,t){if(Qn(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return It(e.children,n,t)}return Array.isArray(e)?It(e,n,t):""}function It(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Tt(e[i],n,t);return r.join("")}function Qn(e){return!!(e&&typeof e=="object")}const Nt=document.createElement("i");function nt(e){const n="&"+e+";";Nt.innerHTML=n;const t=Nt.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function be(e,n,t,r){const i=e.length;let s=0,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);s<r.length;)o=r.slice(s,s+1e4),o.unshift(n,0),e.splice(...o),s+=1e4,n+=1e4}function ge(e,n){return e.length>0?(be(e,e.length,0,n),e):n}const vt={}.hasOwnProperty;function Yn(e){const n={};let t=-1;for(;++t<e.length;)Xn(n,e[t]);return n}function Xn(e,n){let t;for(t in n){const i=(vt.call(e,t)?e[t]:void 0)||(e[t]={}),s=n[t];let o;if(s)for(o in s){vt.call(i,o)||(i[o]=[]);const a=s[o];Jn(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Jn(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);be(e,0,0,r)}function Mt(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Le(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const we=Ae(/[A-Za-z]/),fe=Ae(/[\dA-Za-z]/),er=Ae(/[#-'*+\--9=?A-Z^-~]/);function rt(e){return e!==null&&(e<32||e===127)}const it=Ae(/\d/),tr=Ae(/[\dA-Fa-f]/),nr=Ae(/[!-/:-@[-`{-~]/);function R(e){return e!==null&&e<-2}function se(e){return e!==null&&(e<0||e===32)}function j(e){return e===-2||e===-1||e===32}const rr=Ae(new RegExp("\\p{P}|\\p{S}","u")),ir=Ae(/\s/);function Ae(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function K(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(u){return j(u)?(e.enter(t),a(u)):n(u)}function a(u){return j(u)&&s++<i?(e.consume(u),a):(e.exit(t),n(u))}}const sr={tokenize:or};function or(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),K(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),s(a)}function s(a){const u=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=u),t=u,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return R(a)?(e.consume(a),e.exit("chunkText"),s):(e.consume(a),o)}}const ar={tokenize:lr},Rt={tokenize:cr};function lr(e){const n=this,t=[];let r=0,i,s,o;return a;function a(C){if(r<t.length){const G=t[r];return n.containerState=G[1],e.attempt(G[0].continuation,u,c)(C)}return c(C)}function u(C){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&q();const G=n.events.length;let H=G,y;for(;H--;)if(n.events[H][0]==="exit"&&n.events[H][1].type==="chunkFlow"){y=n.events[H][1].end;break}_(r);let $=G;for(;$<n.events.length;)n.events[$][1].end=Object.assign({},y),$++;return be(n.events,H+1,0,n.events.slice(G)),n.events.length=$,c(C)}return a(C)}function c(C){if(r===t.length){if(!i)return f(C);if(i.currentConstruct&&i.currentConstruct.concrete)return A(C);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Rt,p,g)(C)}function p(C){return i&&q(),_(r),f(C)}function g(C){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,A(C)}function f(C){return n.containerState={},e.attempt(Rt,d,A)(C)}function d(C){return r++,t.push([n.currentConstruct,n.containerState]),f(C)}function A(C){if(C===null){i&&q(),_(0),e.consume(C);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{contentType:"flow",previous:s,_tokenizer:i}),M(C)}function M(C){if(C===null){P(e.exit("chunkFlow"),!0),_(0),e.consume(C);return}return R(C)?(e.consume(C),P(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(C),M)}function P(C,G){const H=n.sliceStream(C);if(G&&H.push(null),C.previous=s,s&&(s.next=C),s=C,i.defineSkip(C.start),i.write(H),n.parser.lazy[C.start.line]){let y=i.events.length;for(;y--;)if(i.events[y][1].start.offset<o&&(!i.events[y][1].end||i.events[y][1].end.offset>o))return;const $=n.events.length;let V=$,B,m;for(;V--;)if(n.events[V][0]==="exit"&&n.events[V][1].type==="chunkFlow"){if(B){m=n.events[V][1].end;break}B=!0}for(_(r),y=$;y<n.events.length;)n.events[y][1].end=Object.assign({},m),y++;be(n.events,V+1,0,n.events.slice($)),n.events.length=y}}function _(C){let G=t.length;for(;G-- >C;){const H=t[G];n.containerState=H[1],H[0].exit.call(n,e)}t.length=C}function q(){i.write([null]),s=void 0,i=void 0,n.containerState._closeFlow=void 0}}function cr(e,n,t){return K(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ot(e){if(e===null||se(e)||ir(e))return 1;if(rr(e))return 2}function st(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const s=e[i].resolveAll;s&&!r.includes(s)&&(n=s(n,t),r.push(s))}return n}const ot={name:"attention",tokenize:hr,resolveAll:ur};function ur(e,n){let t=-1,r,i,s,o,a,u,c,p;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const g=Object.assign({},e[r][1].end),f=Object.assign({},e[t][1].start);Lt(g,-u),Lt(f,u),o={type:u>1?"strongSequence":"emphasisSequence",start:g,end:Object.assign({},e[r][1].end)},a={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[t][1].start),end:f},s={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[t][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},o.start),e[t][1].start=Object.assign({},a.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=ge(c,[["enter",e[r][1],n],["exit",e[r][1],n]])),c=ge(c,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",s,n]]),c=ge(c,st(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),c=ge(c,[["exit",s,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(p=2,c=ge(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):p=0,be(e,r-1,t-r+3,c),t=r+c.length-p-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function hr(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ot(r);let s;return o;function o(u){return s=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===s)return e.consume(u),a;const c=e.exit("attentionSequence"),p=Ot(u),g=!p||p===2&&i||t.includes(u),f=!i||i===2&&p||t.includes(r);return c._open=!!(s===42?g:g&&(i||!f)),c._close=!!(s===42?f:f&&(p||!g)),n(u)}}function Lt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const dr={name:"autolink",tokenize:pr};function pr(e,n,t){let r=0;return i;function i(d){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(d){return we(d)?(e.consume(d),o):c(d)}function o(d){return d===43||d===45||d===46||fe(d)?(r=1,a(d)):c(d)}function a(d){return d===58?(e.consume(d),r=0,u):(d===43||d===45||d===46||fe(d))&&r++<32?(e.consume(d),a):(r=0,c(d))}function u(d){return d===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),n):d===null||d===32||d===60||rt(d)?t(d):(e.consume(d),u)}function c(d){return d===64?(e.consume(d),p):er(d)?(e.consume(d),c):t(d)}function p(d){return fe(d)?g(d):t(d)}function g(d){return d===46?(e.consume(d),r=0,p):d===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(d),e.exit("autolinkMarker"),e.exit("autolink"),n):f(d)}function f(d){if((d===45||fe(d))&&r++<63){const A=d===45?f:g;return e.consume(d),A}return t(d)}}const Ve={tokenize:gr,partial:!0};function gr(e,n,t){return r;function r(s){return j(s)?K(e,i,"linePrefix")(s):i(s)}function i(s){return s===null||R(s)?n(s):t(s)}}const Bt={name:"blockQuote",tokenize:fr,continuation:{tokenize:mr},exit:br};function fr(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),s}return t(o)}function s(o){return j(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function mr(e,n,t){const r=this;return i;function i(o){return j(o)?K(e,s,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return e.attempt(Bt,n,t)(o)}}function br(e){e.exit("blockQuote")}const Dt={name:"characterEscape",tokenize:wr};function wr(e,n,t){return r;function r(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),i}function i(s){return nr(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(s)}}const zt={name:"characterReference",tokenize:yr};function yr(e,n,t){const r=this;let i=0,s,o;return a;function a(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),u}function u(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),s=31,o=fe,p(g))}function c(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,o=tr,p):(e.enter("characterReferenceValue"),s=7,o=it,p(g))}function p(g){if(g===59&&i){const f=e.exit("characterReferenceValue");return o===fe&&!nt(r.sliceSerialize(f))?t(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(g)&&i++<s?(e.consume(g),p):t(g)}}const Pt={tokenize:Er,partial:!0},Ft={name:"codeFenced",tokenize:xr,concrete:!0};function xr(e,n,t){const r=this,i={tokenize:H,partial:!0};let s=0,o=0,a;return u;function u(y){return c(y)}function c(y){const $=r.events[r.events.length-1];return s=$&&$[1].type==="linePrefix"?$[2].sliceSerialize($[1],!0).length:0,a=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),p(y)}function p(y){return y===a?(o++,e.consume(y),p):o<3?t(y):(e.exit("codeFencedFenceSequence"),j(y)?K(e,g,"whitespace")(y):g(y))}function g(y){return y===null||R(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(Pt,M,G)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),f(y))}function f(y){return y===null||R(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(y)):j(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),K(e,d,"whitespace")(y)):y===96&&y===a?t(y):(e.consume(y),f)}function d(y){return y===null||R(y)?g(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),A(y))}function A(y){return y===null||R(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(y)):y===96&&y===a?t(y):(e.consume(y),A)}function M(y){return e.attempt(i,G,P)(y)}function P(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),_}function _(y){return s>0&&j(y)?K(e,q,"linePrefix",s+1)(y):q(y)}function q(y){return y===null||R(y)?e.check(Pt,M,G)(y):(e.enter("codeFlowValue"),C(y))}function C(y){return y===null||R(y)?(e.exit("codeFlowValue"),q(y)):(e.consume(y),C)}function G(y){return e.exit("codeFenced"),n(y)}function H(y,$,V){let B=0;return m;function m(D){return y.enter("lineEnding"),y.consume(D),y.exit("lineEnding"),I}function I(D){return y.enter("codeFencedFence"),j(D)?K(y,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):N(D)}function N(D){return D===a?(y.enter("codeFencedFenceSequence"),W(D)):V(D)}function W(D){return D===a?(B++,y.consume(D),W):B>=o?(y.exit("codeFencedFenceSequence"),j(D)?K(y,Z,"whitespace")(D):Z(D)):V(D)}function Z(D){return D===null||R(D)?(y.exit("codeFencedFence"),$(D)):V(D)}}}function Er(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const at={name:"codeIndented",tokenize:_r},kr={tokenize:Sr,partial:!0};function _r(e,n,t){const r=this;return i;function i(c){return e.enter("codeIndented"),K(e,s,"linePrefix",5)(c)}function s(c){const p=r.events[r.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?o(c):t(c)}function o(c){return c===null?u(c):R(c)?e.attempt(kr,o,u)(c):(e.enter("codeFlowValue"),a(c))}function a(c){return c===null||R(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),a)}function u(c){return e.exit("codeIndented"),n(c)}}function Sr(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):R(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):K(e,s,"linePrefix",5)(o)}function s(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):R(o)?i(o):t(o)}}const Ar={name:"codeText",tokenize:Ir,resolve:Cr,previous:Tr};function Cr(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function Tr(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ir(e,n,t){let r=0,i,s;return o;function o(g){return e.enter("codeText"),e.enter("codeTextSequence"),a(g)}function a(g){return g===96?(e.consume(g),r++,a):(e.exit("codeTextSequence"),u(g))}function u(g){return g===null?t(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),u):g===96?(s=e.enter("codeTextSequence"),i=0,p(g)):R(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(g))}function c(g){return g===null||g===32||g===96||R(g)?(e.exit("codeTextData"),u(g)):(e.consume(g),c)}function p(g){return g===96?(e.consume(g),i++,p):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(g)):(s.type="codeTextData",c(g))}}function Ut(e){const n={};let t=-1,r,i,s,o,a,u,c;for(;++t<e.length;){for(;t in n;)t=n[t];if(r=e[t],t&&r[1].type==="chunkFlow"&&e[t-1][1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,s=0,s<u.length&&u[s][1].type==="lineEndingBlank"&&(s+=2),s<u.length&&u[s][1].type==="content"))for(;++s<u.length&&u[s][1].type!=="content";)u[s][1].type==="chunkText"&&(u[s][1]._isInFirstContentOfListItem=!0,s++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Nr(e,t)),t=n[t],c=!0);else if(r[1]._container){for(s=t,i=void 0;s--&&(o=e[s],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=s);i&&(r[1].end=Object.assign({},e[i][1].start),a=e.slice(i,t),a.unshift(r),be(e,i,t-i+1,a))}}return!c}function Nr(e,n){const t=e[n][1],r=e[n][2];let i=n-1;const s=[],o=t._tokenizer||r.parser[t.contentType](t.start),a=o.events,u=[],c={};let p,g,f=-1,d=t,A=0,M=0;const P=[M];for(;d;){for(;e[++i][1]!==d;);s.push(i),d._tokenizer||(p=r.sliceStream(d),d.next||p.push(null),g&&o.defineSkip(d.start),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(p),d._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),g=d,d=d.next}for(d=t;++f<a.length;)a[f][0]==="exit"&&a[f-1][0]==="enter"&&a[f][1].type===a[f-1][1].type&&a[f][1].start.line!==a[f][1].end.line&&(M=f+1,P.push(M),d._tokenizer=void 0,d.previous=void 0,d=d.next);for(o.events=[],d?(d._tokenizer=void 0,d.previous=void 0):P.pop(),f=P.length;f--;){const _=a.slice(P[f],P[f+1]),q=s.pop();u.unshift([q,q+_.length-1]),be(e,q,2,_)}for(f=-1;++f<u.length;)c[A+u[f][0]]=A+u[f][1],A+=u[f][1]-u[f][0]-1;return c}const vr={tokenize:Or,resolve:Rr},Mr={tokenize:Lr,partial:!0};function Rr(e){return Ut(e),e}function Or(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?s(a):R(a)?e.check(Mr,o,s)(a):(e.consume(a),i)}function s(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function Lr(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),K(e,s,"linePrefix")}function s(o){if(o===null||R(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function Gt(e,n,t,r,i,s,o,a,u){const c=u||Number.POSITIVE_INFINITY;let p=0;return g;function g(_){return _===60?(e.enter(r),e.enter(i),e.enter(s),e.consume(_),e.exit(s),f):_===null||_===32||_===41||rt(_)?t(_):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),M(_))}function f(_){return _===62?(e.enter(s),e.consume(_),e.exit(s),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(_))}function d(_){return _===62?(e.exit("chunkString"),e.exit(a),f(_)):_===null||_===60||R(_)?t(_):(e.consume(_),_===92?A:d)}function A(_){return _===60||_===62||_===92?(e.consume(_),d):d(_)}function M(_){return!p&&(_===null||_===41||se(_))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(_)):p<c&&_===40?(e.consume(_),p++,M):_===41?(e.consume(_),p--,M):_===null||_===32||_===40||rt(_)?t(_):(e.consume(_),_===92?P:M)}function P(_){return _===40||_===41||_===92?(e.consume(_),M):M(_)}}function Ht(e,n,t,r,i,s){const o=this;let a=0,u;return c;function c(d){return e.enter(r),e.enter(i),e.consume(d),e.exit(i),e.enter(s),p}function p(d){return a>999||d===null||d===91||d===93&&!u||d===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(d):d===93?(e.exit(s),e.enter(i),e.consume(d),e.exit(i),e.exit(r),n):R(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),p):(e.enter("chunkString",{contentType:"string"}),g(d))}function g(d){return d===null||d===91||d===93||R(d)||a++>999?(e.exit("chunkString"),p(d)):(e.consume(d),u||(u=!j(d)),d===92?f:g)}function f(d){return d===91||d===92||d===93?(e.consume(d),a++,g):g(d)}}function $t(e,n,t,r,i,s){let o;return a;function a(f){return f===34||f===39||f===40?(e.enter(r),e.enter(i),e.consume(f),e.exit(i),o=f===40?41:f,u):t(f)}function u(f){return f===o?(e.enter(i),e.consume(f),e.exit(i),e.exit(r),n):(e.enter(s),c(f))}function c(f){return f===o?(e.exit(s),u(o)):f===null?t(f):R(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),K(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),p(f))}function p(f){return f===o||f===null||R(f)?(e.exit("chunkString"),c(f)):(e.consume(f),f===92?g:p)}function g(f){return f===o||f===92?(e.consume(f),p):p(f)}}function Ge(e,n){let t;return r;function r(i){return R(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):j(i)?K(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Br={name:"definition",tokenize:zr},Dr={tokenize:Pr,partial:!0};function zr(e,n,t){const r=this;let i;return s;function s(d){return e.enter("definition"),o(d)}function o(d){return Ht.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(d)}function a(d){return i=Le(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),u):t(d)}function u(d){return se(d)?Ge(e,c)(d):c(d)}function c(d){return Gt(e,p,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(d)}function p(d){return e.attempt(Dr,g,g)(d)}function g(d){return j(d)?K(e,f,"whitespace")(d):f(d)}function f(d){return d===null||R(d)?(e.exit("definition"),r.parser.defined.push(i),n(d)):t(d)}}function Pr(e,n,t){return r;function r(a){return se(a)?Ge(e,i)(a):t(a)}function i(a){return $t(e,s,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function s(a){return j(a)?K(e,o,"whitespace")(a):o(a)}function o(a){return a===null||R(a)?n(a):t(a)}}const Fr={name:"hardBreakEscape",tokenize:Ur};function Ur(e,n,t){return r;function r(s){return e.enter("hardBreakEscape"),e.consume(s),i}function i(s){return R(s)?(e.exit("hardBreakEscape"),n(s)):t(s)}}const Gr={name:"headingAtx",tokenize:$r,resolve:Hr};function Hr(e,n){let t=e.length-2,r=3,i,s;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},s={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},be(e,r,t-r+1,[["enter",i,n],["enter",s,n],["exit",s,n],["exit",i,n]])),e}function $r(e,n,t){let r=0;return i;function i(p){return e.enter("atxHeading"),s(p)}function s(p){return e.enter("atxHeadingSequence"),o(p)}function o(p){return p===35&&r++<6?(e.consume(p),o):p===null||se(p)?(e.exit("atxHeadingSequence"),a(p)):t(p)}function a(p){return p===35?(e.enter("atxHeadingSequence"),u(p)):p===null||R(p)?(e.exit("atxHeading"),n(p)):j(p)?K(e,a,"whitespace")(p):(e.enter("atxHeadingText"),c(p))}function u(p){return p===35?(e.consume(p),u):(e.exit("atxHeadingSequence"),a(p))}function c(p){return p===null||p===35||se(p)?(e.exit("atxHeadingText"),a(p)):(e.consume(p),c)}}const qr=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],qt=["pre","script","style","textarea"],jr={name:"htmlFlow",tokenize:Zr,resolveTo:Kr,concrete:!0},Vr={tokenize:Yr,partial:!0},Wr={tokenize:Qr,partial:!0};function Kr(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Zr(e,n,t){const r=this;let i,s,o,a,u;return c;function c(h){return p(h)}function p(h){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(h),g}function g(h){return h===33?(e.consume(h),f):h===47?(e.consume(h),s=!0,M):h===63?(e.consume(h),i=3,r.interrupt?n:l):we(h)?(e.consume(h),o=String.fromCharCode(h),P):t(h)}function f(h){return h===45?(e.consume(h),i=2,d):h===91?(e.consume(h),i=5,a=0,A):we(h)?(e.consume(h),i=4,r.interrupt?n:l):t(h)}function d(h){return h===45?(e.consume(h),r.interrupt?n:l):t(h)}function A(h){const oe="CDATA[";return h===oe.charCodeAt(a++)?(e.consume(h),a===oe.length?r.interrupt?n:N:A):t(h)}function M(h){return we(h)?(e.consume(h),o=String.fromCharCode(h),P):t(h)}function P(h){if(h===null||h===47||h===62||se(h)){const oe=h===47,ne=o.toLowerCase();return!oe&&!s&&qt.includes(ne)?(i=1,r.interrupt?n(h):N(h)):qr.includes(o.toLowerCase())?(i=6,oe?(e.consume(h),_):r.interrupt?n(h):N(h)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(h):s?q(h):C(h))}return h===45||fe(h)?(e.consume(h),o+=String.fromCharCode(h),P):t(h)}function _(h){return h===62?(e.consume(h),r.interrupt?n:N):t(h)}function q(h){return j(h)?(e.consume(h),q):m(h)}function C(h){return h===47?(e.consume(h),m):h===58||h===95||we(h)?(e.consume(h),G):j(h)?(e.consume(h),C):m(h)}function G(h){return h===45||h===46||h===58||h===95||fe(h)?(e.consume(h),G):H(h)}function H(h){return h===61?(e.consume(h),y):j(h)?(e.consume(h),H):C(h)}function y(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(e.consume(h),u=h,$):j(h)?(e.consume(h),y):V(h)}function $(h){return h===u?(e.consume(h),u=null,B):h===null||R(h)?t(h):(e.consume(h),$)}function V(h){return h===null||h===34||h===39||h===47||h===60||h===61||h===62||h===96||se(h)?H(h):(e.consume(h),V)}function B(h){return h===47||h===62||j(h)?C(h):t(h)}function m(h){return h===62?(e.consume(h),I):t(h)}function I(h){return h===null||R(h)?N(h):j(h)?(e.consume(h),I):t(h)}function N(h){return h===45&&i===2?(e.consume(h),ee):h===60&&i===1?(e.consume(h),x):h===62&&i===4?(e.consume(h),F):h===63&&i===3?(e.consume(h),l):h===93&&i===5?(e.consume(h),v):R(h)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Vr,Q,W)(h)):h===null||R(h)?(e.exit("htmlFlowData"),W(h)):(e.consume(h),N)}function W(h){return e.check(Wr,Z,Q)(h)}function Z(h){return e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),D}function D(h){return h===null||R(h)?W(h):(e.enter("htmlFlowData"),N(h))}function ee(h){return h===45?(e.consume(h),l):N(h)}function x(h){return h===47?(e.consume(h),o="",k):N(h)}function k(h){if(h===62){const oe=o.toLowerCase();return qt.includes(oe)?(e.consume(h),F):N(h)}return we(h)&&o.length<8?(e.consume(h),o+=String.fromCharCode(h),k):N(h)}function v(h){return h===93?(e.consume(h),l):N(h)}function l(h){return h===62?(e.consume(h),F):h===45&&i===2?(e.consume(h),l):N(h)}function F(h){return h===null||R(h)?(e.exit("htmlFlowData"),Q(h)):(e.consume(h),F)}function Q(h){return e.exit("htmlFlow"),n(h)}}function Qr(e,n,t){const r=this;return i;function i(o){return R(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):t(o)}function s(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function Yr(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ve,n,t)}}const Xr={name:"htmlText",tokenize:Jr};function Jr(e,n,t){const r=this;let i,s,o;return a;function a(l){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(l),u}function u(l){return l===33?(e.consume(l),c):l===47?(e.consume(l),H):l===63?(e.consume(l),C):we(l)?(e.consume(l),V):t(l)}function c(l){return l===45?(e.consume(l),p):l===91?(e.consume(l),s=0,A):we(l)?(e.consume(l),q):t(l)}function p(l){return l===45?(e.consume(l),d):t(l)}function g(l){return l===null?t(l):l===45?(e.consume(l),f):R(l)?(o=g,x(l)):(e.consume(l),g)}function f(l){return l===45?(e.consume(l),d):g(l)}function d(l){return l===62?ee(l):l===45?f(l):g(l)}function A(l){const F="CDATA[";return l===F.charCodeAt(s++)?(e.consume(l),s===F.length?M:A):t(l)}function M(l){return l===null?t(l):l===93?(e.consume(l),P):R(l)?(o=M,x(l)):(e.consume(l),M)}function P(l){return l===93?(e.consume(l),_):M(l)}function _(l){return l===62?ee(l):l===93?(e.consume(l),_):M(l)}function q(l){return l===null||l===62?ee(l):R(l)?(o=q,x(l)):(e.consume(l),q)}function C(l){return l===null?t(l):l===63?(e.consume(l),G):R(l)?(o=C,x(l)):(e.consume(l),C)}function G(l){return l===62?ee(l):C(l)}function H(l){return we(l)?(e.consume(l),y):t(l)}function y(l){return l===45||fe(l)?(e.consume(l),y):$(l)}function $(l){return R(l)?(o=$,x(l)):j(l)?(e.consume(l),$):ee(l)}function V(l){return l===45||fe(l)?(e.consume(l),V):l===47||l===62||se(l)?B(l):t(l)}function B(l){return l===47?(e.consume(l),ee):l===58||l===95||we(l)?(e.consume(l),m):R(l)?(o=B,x(l)):j(l)?(e.consume(l),B):ee(l)}function m(l){return l===45||l===46||l===58||l===95||fe(l)?(e.consume(l),m):I(l)}function I(l){return l===61?(e.consume(l),N):R(l)?(o=I,x(l)):j(l)?(e.consume(l),I):B(l)}function N(l){return l===null||l===60||l===61||l===62||l===96?t(l):l===34||l===39?(e.consume(l),i=l,W):R(l)?(o=N,x(l)):j(l)?(e.consume(l),N):(e.consume(l),Z)}function W(l){return l===i?(e.consume(l),i=void 0,D):l===null?t(l):R(l)?(o=W,x(l)):(e.consume(l),W)}function Z(l){return l===null||l===34||l===39||l===60||l===61||l===96?t(l):l===47||l===62||se(l)?B(l):(e.consume(l),Z)}function D(l){return l===47||l===62||se(l)?B(l):t(l)}function ee(l){return l===62?(e.consume(l),e.exit("htmlTextData"),e.exit("htmlText"),n):t(l)}function x(l){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),k}function k(l){return j(l)?K(e,v,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):v(l)}function v(l){return e.enter("htmlTextData"),o(l)}}const lt={name:"labelEnd",tokenize:si,resolveTo:ii,resolveAll:ri},ei={tokenize:oi},ti={tokenize:ai},ni={tokenize:li};function ri(e){let n=-1;for(;++n<e.length;){const t=e[n][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(e.splice(n+1,t.type==="labelImage"?4:2),t.type="data",n++)}return e}function ii(e,n){let t=e.length,r=0,i,s,o,a;for(;t--;)if(i=e[t][1],s){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(s=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(o=t);const u={type:e[s][1].type==="labelLink"?"link":"image",start:Object.assign({},e[s][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[s][1].start),end:Object.assign({},e[o][1].end)},p={type:"labelText",start:Object.assign({},e[s+r+2][1].end),end:Object.assign({},e[o-2][1].start)};return a=[["enter",u,n],["enter",c,n]],a=ge(a,e.slice(s+1,s+r+3)),a=ge(a,[["enter",p,n]]),a=ge(a,st(n.parser.constructs.insideSpan.null,e.slice(s+r+4,o-3),n)),a=ge(a,[["exit",p,n],e[o-2],e[o-1],["exit",c,n]]),a=ge(a,e.slice(o+1)),a=ge(a,[["exit",u,n]]),be(e,s,e.length,a),e}function si(e,n,t){const r=this;let i=r.events.length,s,o;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){s=r.events[i][1];break}return a;function a(f){return s?s._inactive?g(f):(o=r.parser.defined.includes(Le(r.sliceSerialize({start:s.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelEnd"),u):t(f)}function u(f){return f===40?e.attempt(ei,p,o?p:g)(f):f===91?e.attempt(ti,p,o?c:g)(f):o?p(f):g(f)}function c(f){return e.attempt(ni,p,g)(f)}function p(f){return n(f)}function g(f){return s._balanced=!0,t(f)}}function oi(e,n,t){return r;function r(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),i}function i(g){return se(g)?Ge(e,s)(g):s(g)}function s(g){return g===41?p(g):Gt(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function o(g){return se(g)?Ge(e,u)(g):p(g)}function a(g){return t(g)}function u(g){return g===34||g===39||g===40?$t(e,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):p(g)}function c(g){return se(g)?Ge(e,p)(g):p(g)}function p(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),n):t(g)}}function ai(e,n,t){const r=this;return i;function i(a){return Ht.call(r,e,s,o,"reference","referenceMarker","referenceString")(a)}function s(a){return r.parser.defined.includes(Le(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function li(e,n,t){return r;function r(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),i}function i(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),n):t(s)}}const ci={name:"labelStartImage",tokenize:ui,resolveAll:lt.resolveAll};function ui(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),s}function s(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const hi={name:"labelStartLink",tokenize:di,resolveAll:lt.resolveAll};function di(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const ct={name:"lineEnding",tokenize:pi};function pi(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),K(e,n,"linePrefix")}}const We={name:"thematicBreak",tokenize:gi};function gi(e,n,t){let r=0,i;return s;function s(c){return e.enter("thematicBreak"),o(c)}function o(c){return i=c,a(c)}function a(c){return c===i?(e.enter("thematicBreakSequence"),u(c)):r>=3&&(c===null||R(c))?(e.exit("thematicBreak"),n(c)):t(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),j(c)?K(e,a,"whitespace")(c):a(c))}}const le={name:"list",tokenize:bi,continuation:{tokenize:wi},exit:xi},fi={tokenize:Ei,partial:!0},mi={tokenize:yi,partial:!0};function bi(e,n,t){const r=this,i=r.events[r.events.length-1];let s=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(d){const A=r.containerState.type||(d===42||d===43||d===45?"listUnordered":"listOrdered");if(A==="listUnordered"?!r.containerState.marker||d===r.containerState.marker:it(d)){if(r.containerState.type||(r.containerState.type=A,e.enter(A,{_container:!0})),A==="listUnordered")return e.enter("listItemPrefix"),d===42||d===45?e.check(We,t,c)(d):c(d);if(!r.interrupt||d===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(d)}return t(d)}function u(d){return it(d)&&++o<10?(e.consume(d),u):(!r.interrupt||o<2)&&(r.containerState.marker?d===r.containerState.marker:d===41||d===46)?(e.exit("listItemValue"),c(d)):t(d)}function c(d){return e.enter("listItemMarker"),e.consume(d),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||d,e.check(Ve,r.interrupt?t:p,e.attempt(fi,f,g))}function p(d){return r.containerState.initialBlankLine=!0,s++,f(d)}function g(d){return j(d)?(e.enter("listItemPrefixWhitespace"),e.consume(d),e.exit("listItemPrefixWhitespace"),f):t(d)}function f(d){return r.containerState.size=s+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(d)}}function wi(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Ve,i,s);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,K(e,n,"listItemIndent",r.containerState.size+1)(a)}function s(a){return r.containerState.furtherBlankLines||!j(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(mi,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,K(e,e.attempt(le,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function yi(e,n,t){const r=this;return K(e,i,"listItemIndent",r.containerState.size+1);function i(s){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(s):t(s)}}function xi(e){e.exit(this.containerState.type)}function Ei(e,n,t){const r=this;return K(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(s){const o=r.events[r.events.length-1];return!j(s)&&o&&o[1].type==="listItemPrefixWhitespace"?n(s):t(s)}}const jt={name:"setextUnderline",tokenize:_i,resolveTo:ki};function ki(e,n){let t=e.length,r,i,s;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!s&&e[t][1].type==="definition"&&(s=t);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",s?(e.splice(i,0,["enter",o,n]),e.splice(s+1,0,["exit",e[r][1],n]),e[r][1].end=Object.assign({},e[s][1].end)):e[r][1]=o,e.push(["exit",o,n]),e}function _i(e,n,t){const r=this;let i;return s;function s(c){let p=r.events.length,g;for(;p--;)if(r.events[p][1].type!=="lineEnding"&&r.events[p][1].type!=="linePrefix"&&r.events[p][1].type!=="content"){g=r.events[p][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||g)?(e.enter("setextHeadingLine"),i=c,o(c)):t(c)}function o(c){return e.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===i?(e.consume(c),a):(e.exit("setextHeadingLineSequence"),j(c)?K(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||R(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}const Si={tokenize:Ai};function Ai(e){const n=this,t=e.attempt(Ve,r,e.attempt(this.parser.constructs.flowInitial,i,K(e,e.attempt(this.parser.constructs.flow,i,e.attempt(vr,i)),"linePrefix")));return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Ci={resolveAll:Wt()},Ti=Vt("string"),Ii=Vt("text");function Vt(e){return{tokenize:n,resolveAll:Wt(e==="text"?Ni:void 0)};function n(t){const r=this,i=this.parser.constructs[e],s=t.attempt(i,o,a);return o;function o(p){return c(p)?s(p):a(p)}function a(p){if(p===null){t.consume(p);return}return t.enter("data"),t.consume(p),u}function u(p){return c(p)?(t.exit("data"),s(p)):(t.consume(p),u)}function c(p){if(p===null)return!0;const g=i[p];let f=-1;if(g)for(;++f<g.length;){const d=g[f];if(!d.previous||d.previous.call(r,r.previous))return!0}return!1}}}function Wt(e){return n;function n(t,r){let i=-1,s;for(;++i<=t.length;)s===void 0?t[i]&&t[i][1].type==="data"&&(s=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==s+2&&(t[s][1].end=t[i-1][1].end,t.splice(s+2,i-s-2),i=s+2),s=void 0);return e?e(t,r):t}}function Ni(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let s=i.length,o=-1,a=0,u;for(;s--;){const c=i[s];if(typeof c=="string"){for(o=c.length;c.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(c===-2)u=!0,a++;else if(c!==-1){s++;break}}if(a){const c={type:t===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-a,offset:r.end.offset-a,_index:r.start._index+s,_bufferIndex:s?o:r.start._bufferIndex+o},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(t,0,["enter",c,n],["exit",c,n]),t+=2)}t++}return e}function vi(e,n,t){let r=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},s=[];let o=[],a=[];const u={consume:q,enter:C,exit:G,attempt:$(H),check:$(y),interrupt:$(y,{interrupt:!0})},c={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:d,sliceSerialize:f,now:A,defineSkip:M,write:g};let p=n.tokenize.call(c,u);return n.resolveAll&&s.push(n),c;function g(I){return o=ge(o,I),P(),o[o.length-1]!==null?[]:(V(n,0),c.events=st(s,c.events,c),c.events)}function f(I,N){return Ri(d(I),N)}function d(I){return Mi(o,I)}function A(){const{line:I,column:N,offset:W,_index:Z,_bufferIndex:D}=r;return{line:I,column:N,offset:W,_index:Z,_bufferIndex:D}}function M(I){i[I.line]=I.column,m()}function P(){let I;for(;r._index<o.length;){const N=o[r._index];if(typeof N=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<N.length;)_(N.charCodeAt(r._bufferIndex));else _(N)}}function _(I){p=p(I)}function q(I){R(I)?(r.line++,r.column=1,r.offset+=I===-3?2:1,m()):I!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=I}function C(I,N){const W=N||{};return W.type=I,W.start=A(),c.events.push(["enter",W,c]),a.push(W),W}function G(I){const N=a.pop();return N.end=A(),c.events.push(["exit",N,c]),N}function H(I,N){V(I,N.from)}function y(I,N){N.restore()}function $(I,N){return W;function W(Z,D,ee){let x,k,v,l;return Array.isArray(Z)?Q(Z):"tokenize"in Z?Q([Z]):F(Z);function F(Y){return Ie;function Ie(me){const Ee=me!==null&&Y[me],ke=me!==null&&Y.null,qe=[...Array.isArray(Ee)?Ee:Ee?[Ee]:[],...Array.isArray(ke)?ke:ke?[ke]:[]];return Q(qe)(me)}}function Q(Y){return x=Y,k=0,Y.length===0?ee:h(Y[k])}function h(Y){return Ie;function Ie(me){return l=B(),v=Y,Y.partial||(c.currentConstruct=Y),Y.name&&c.parser.constructs.disable.null.includes(Y.name)?ne():Y.tokenize.call(N?Object.assign(Object.create(c),N):c,u,oe,ne)(me)}}function oe(Y){return I(v,l),D}function ne(Y){return l.restore(),++k<x.length?h(x[k]):ee}}}function V(I,N){I.resolveAll&&!s.includes(I)&&s.push(I),I.resolve&&be(c.events,N,c.events.length-N,I.resolve(c.events.slice(N),c)),I.resolveTo&&(c.events=I.resolveTo(c.events,c))}function B(){const I=A(),N=c.previous,W=c.currentConstruct,Z=c.events.length,D=Array.from(a);return{restore:ee,from:Z};function ee(){r=I,c.previous=N,c.currentConstruct=W,c.events.length=Z,a=D,m()}}function m(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Mi(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,s=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,s)];else{if(o=e.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}s>0&&o.push(e[i].slice(0,s))}return o}function Ri(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const s=e[t];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
|
|
2
2
|
`;break}case-3:{o=`\r
|
|
3
|
-
`;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(s)}i=s===-2,r.push(o)}return r.join("")}const Oi=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Br},disable:{null:[]},document:{42:le,43:le,45:le,48:le,49:le,50:le,51:le,52:le,53:le,54:le,55:le,56:le,57:le,62:Bt},flow:{35:Gr,42:We,45:[Vt,We],60:Vr,61:Vt,95:We,96:Ft,126:Ft},flowInitial:{[-2]:at,[-1]:at,32:at},insideSpan:{null:[ot,Ci]},string:{38:zt,92:Dt},text:{[-5]:ct,[-4]:ct,[-3]:ct,33:ci,38:zt,42:ot,60:[dr,Xr],91:hi,92:[Fr,Dt],93:lt,95:ot,96:Ar}},Symbol.toStringTag,{value:"Module"}));function Li(e){const t=Yn([Oi,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:t,content:i(sr),document:i(ar),flow:i(Si),string:i(Ti),text:i(Ii)};return r;function i(s){return o;function o(a){return vi(r,s,a)}}}function Bi(e){for(;!Ut(e););return e}const Kt=/[\0\t\n\r]/g;function Di(){let e=1,n="",t=!0,r;return i;function i(s,o,a){const u=[];let c,p,g,f,d;for(s=n+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),g=0,n="",t&&(s.charCodeAt(0)===65279&&g++,t=void 0);g<s.length;){if(Kt.lastIndex=g,c=Kt.exec(s),f=c&&c.index!==void 0?c.index:s.length,d=s.charCodeAt(f),!c){n=s.slice(g);break}if(d===10&&g===f&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),g<f&&(u.push(s.slice(g,f)),e+=f-g),d){case 0:{u.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,u.push(-2);e++<p;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}g=f+1}return a&&(r&&u.push(-5),n&&u.push(n),u.push(null)),u}}const zi=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Pi(e){return e.replace(zi,Fi)}function Fi(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),s=i===120||i===88;return Mt(t.slice(s?2:1),s?16:10)}return nt(t)||e}function Ke(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Zt(e.position):"start"in e||"end"in e?Zt(e):"line"in e||"column"in e?ut(e):""}function ut(e){return Qt(e&&e.line)+":"+Qt(e&&e.column)}function Zt(e){return ut(e&&e.start)+"-"+ut(e&&e.end)}function Qt(e){return e&&typeof e=="number"?e:1}const Yt={}.hasOwnProperty;function Ui(e,n,t){return typeof n!="string"&&(t=n,n=void 0),Gi(t)(Bi(Li(t).document().write(Di()(e,n,!0))))}function Gi(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Pe),autolinkProtocol:B,autolinkEmail:B,atxHeading:s(Me),blockQuote:s(Ee),characterEscape:B,characterReference:B,codeFenced:s(ke),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(ke,o),codeText:s(qe,o),codeTextData:B,data:B,codeFlowValue:B,definition:s(xt),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(Et),hardBreakEscape:s(Ve),hardBreakTrailing:s(Ve),htmlFlow:s(he,o),htmlFlowData:B,htmlText:s(he,o),htmlTextData:B,image:s(kt),label:o,link:s(Pe),listItem:s(et),listItemValue:f,listOrdered:s(L,g),listUnordered:s(L),paragraph:s(re),reference:h,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(Me),strong:s(X),thematicBreak:s(_e)},exit:{atxHeading:u(),atxHeadingSequence:H,autolink:u(),autolinkEmail:me,autolinkProtocol:Ie,blockQuote:u(),characterEscapeValue:m,characterReferenceMarkerHexadecimal:ne,characterReferenceMarkerNumeric:ne,characterReferenceValue:Y,codeFenced:u(P),codeFencedFence:M,codeFencedFenceInfo:d,codeFencedFenceMeta:A,codeFlowValue:m,codeIndented:u(_),codeText:u(D),codeTextData:m,data:m,definition:u(),definitionDestinationString:G,definitionLabelString:q,definitionTitleString:C,emphasis:u(),hardBreakEscape:u(N),hardBreakTrailing:u(N),htmlFlow:u(W),htmlFlowData:m,htmlText:u(Z),htmlTextData:m,image:u(x),label:v,labelText:k,lineEnding:I,link:u(ee),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:oe,resourceDestinationString:l,resourceTitleString:F,resource:Q,setextHeading:u(j),setextHeadingLineSequence:$,setextHeadingText:y,strong:u(),thematicBreak:u()}};Xt(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(b){let S={type:"root",children:[]};const w={stack:[S],tokenStack:[],config:n,enter:a,exit:c,buffer:o,resume:p,data:t},E=[];let T=-1;for(;++T<b.length;)if(b[T][1].type==="listOrdered"||b[T][1].type==="listUnordered")if(b[T][0]==="enter")E.push(T);else{const U=E.pop();T=i(b,U,T)}for(T=-1;++T<b.length;){const U=n[b[T][0]];Yt.call(U,b[T][1].type)&&U[b[T][1].type].call(Object.assign({sliceSerialize:b[T][2].sliceSerialize},w),b[T][1])}if(w.tokenStack.length>0){const U=w.tokenStack[w.tokenStack.length-1];(U[1]||Jt).call(w,void 0,U[0])}for(S.position={start:Ce(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:Ce(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},T=-1;++T<n.transforms.length;)S=n.transforms[T](S)||S;return S}function i(b,S,w){let E=S-1,T=-1,U=!1,te,ie,Re,Oe;for(;++E<=w;){const de=b[E];switch(de[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{de[0]==="enter"?T++:T--,Oe=void 0;break}case"lineEndingBlank":{de[0]==="enter"&&(te&&!Oe&&!T&&!Re&&(Re=E),Oe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Oe=void 0}if(!T&&de[0]==="enter"&&de[1].type==="listItemPrefix"||T===-1&&de[0]==="exit"&&(de[1].type==="listUnordered"||de[1].type==="listOrdered")){if(te){let Ue=E;for(ie=void 0;Ue--;){const Se=b[Ue];if(Se[1].type==="lineEnding"||Se[1].type==="lineEndingBlank"){if(Se[0]==="exit")continue;ie&&(b[ie][1].type="lineEndingBlank",U=!0),Se[1].type="lineEnding",ie=Ue}else if(!(Se[1].type==="linePrefix"||Se[1].type==="blockQuotePrefix"||Se[1].type==="blockQuotePrefixWhitespace"||Se[1].type==="blockQuoteMarker"||Se[1].type==="listItemIndent"))break}Re&&(!ie||Re<ie)&&(te._spread=!0),te.end=Object.assign({},ie?b[ie][1].start:de[1].end),b.splice(ie||E,0,["exit",te,de[2]]),E++,w++}if(de[1].type==="listItemPrefix"){const Ue={type:"listItem",_spread:!1,start:Object.assign({},de[1].start),end:void 0};te=Ue,b.splice(E,0,["enter",Ue,de[2]]),E++,w++,Re=void 0,Oe=!0}}}return b[S][1]._spread=U,w}function s(b,S){return w;function w(E){a.call(this,b(E),E),S&&S.call(this,E)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(b,S,w){this.stack[this.stack.length-1].children.push(b),this.stack.push(b),this.tokenStack.push([S,w]),b.position={start:Ce(S.start),end:void 0}}function u(b){return S;function S(w){b&&b.call(this,w),c.call(this,w)}}function c(b,S){const w=this.stack.pop(),E=this.tokenStack.pop();if(E)E[0].type!==b.type&&(S?S.call(this,b,E[0]):(E[1]||Jt).call(this,b,E[0]));else throw new Error("Cannot close `"+b.type+"` ("+Ke({start:b.start,end:b.end})+"): it’s not open");w.position.end=Ce(b.end)}function p(){return Zn(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function f(b){if(this.data.expectingFirstListItemValue){const S=this.stack[this.stack.length-2];S.start=Number.parseInt(this.sliceSerialize(b),10),this.data.expectingFirstListItemValue=void 0}}function d(){const b=this.resume(),S=this.stack[this.stack.length-1];S.lang=b}function A(){const b=this.resume(),S=this.stack[this.stack.length-1];S.meta=b}function M(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function P(){const b=this.resume(),S=this.stack[this.stack.length-1];S.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const b=this.resume(),S=this.stack[this.stack.length-1];S.value=b.replace(/(\r?\n|\r)$/g,"")}function q(b){const S=this.resume(),w=this.stack[this.stack.length-1];w.label=S,w.identifier=Le(this.sliceSerialize(b)).toLowerCase()}function C(){const b=this.resume(),S=this.stack[this.stack.length-1];S.title=b}function G(){const b=this.resume(),S=this.stack[this.stack.length-1];S.url=b}function H(b){const S=this.stack[this.stack.length-1];if(!S.depth){const w=this.sliceSerialize(b).length;S.depth=w}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function $(b){const S=this.stack[this.stack.length-1];S.depth=this.sliceSerialize(b).codePointAt(0)===61?1:2}function j(){this.data.setextHeadingSlurpLineEnding=void 0}function B(b){const w=this.stack[this.stack.length-1].children;let E=w[w.length-1];(!E||E.type!=="text")&&(E=Fe(),E.position={start:Ce(b.start),end:void 0},w.push(E)),this.stack.push(E)}function m(b){const S=this.stack.pop();S.value+=this.sliceSerialize(b),S.position.end=Ce(b.end)}function I(b){const S=this.stack[this.stack.length-1];if(this.data.atHardBreak){const w=S.children[S.children.length-1];w.position.end=Ce(b.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(S.type)&&(B.call(this,b),m.call(this,b))}function N(){this.data.atHardBreak=!0}function W(){const b=this.resume(),S=this.stack[this.stack.length-1];S.value=b}function Z(){const b=this.resume(),S=this.stack[this.stack.length-1];S.value=b}function D(){const b=this.resume(),S=this.stack[this.stack.length-1];S.value=b}function ee(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const S=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=S,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function x(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const S=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=S,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function k(b){const S=this.sliceSerialize(b),w=this.stack[this.stack.length-2];w.label=Pi(S),w.identifier=Le(S).toLowerCase()}function v(){const b=this.stack[this.stack.length-1],S=this.resume(),w=this.stack[this.stack.length-1];if(this.data.inReference=!0,w.type==="link"){const E=b.children;w.children=E}else w.alt=S}function l(){const b=this.resume(),S=this.stack[this.stack.length-1];S.url=b}function F(){const b=this.resume(),S=this.stack[this.stack.length-1];S.title=b}function Q(){this.data.inReference=void 0}function h(){this.data.referenceType="collapsed"}function oe(b){const S=this.resume(),w=this.stack[this.stack.length-1];w.label=S,w.identifier=Le(this.sliceSerialize(b)).toLowerCase(),this.data.referenceType="full"}function ne(b){this.data.characterReferenceType=b.type}function Y(b){const S=this.sliceSerialize(b),w=this.data.characterReferenceType;let E;w?(E=Mt(S,w==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):E=nt(S);const T=this.stack.pop();T.value+=E,T.position.end=Ce(b.end)}function Ie(b){m.call(this,b);const S=this.stack[this.stack.length-1];S.url=this.sliceSerialize(b)}function me(b){m.call(this,b);const S=this.stack[this.stack.length-1];S.url="mailto:"+this.sliceSerialize(b)}function Ee(){return{type:"blockquote",children:[]}}function ke(){return{type:"code",lang:null,meta:null,value:""}}function qe(){return{type:"inlineCode",value:""}}function xt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Et(){return{type:"emphasis",children:[]}}function Me(){return{type:"heading",depth:0,children:[]}}function Ve(){return{type:"break"}}function he(){return{type:"html",value:""}}function kt(){return{type:"image",title:null,url:"",alt:null}}function Pe(){return{type:"link",title:null,url:"",children:[]}}function L(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[]}}function et(b){return{type:"listItem",spread:b._spread,checked:null,children:[]}}function re(){return{type:"paragraph",children:[]}}function X(){return{type:"strong",children:[]}}function Fe(){return{type:"text",value:""}}function _e(){return{type:"thematicBreak"}}}function Ce(e){return{line:e.line,column:e.column,offset:e.offset}}function Xt(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Xt(e,r):Hi(e,r)}}function Hi(e,n){let t;for(t in n)if(Yt.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function Jt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Ke({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ke({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ke({start:n.start,end:n.end})+") is still open")}class $i{constructor(){this.map=[]}add(n,t,r){qi(this,n,t,r)}consume(n){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push([...n]),n.length=0;let i=r.pop();for(;i;)n.push(...i),i=r.pop();this.map.length=0}}function qi(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function Vi(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function ji(){return{flow:{null:{tokenize:Wi,resolveAll:Ki}}}}function Wi(e,n,t){const r=this;let i=0,s=0,o;return a;function a(m){let I=r.events.length-1;for(;I>-1;){const Z=r.events[I][1].type;if(Z==="lineEnding"||Z==="linePrefix")I--;else break}const N=I>-1?r.events[I][1].type:null,W=N==="tableHead"||N==="tableRow"?y:u;return W===y&&r.parser.lazy[r.now().line]?t(m):W(m)}function u(m){return e.enter("tableHead"),e.enter("tableRow"),c(m)}function c(m){return m===124||(o=!0,s+=1),p(m)}function p(m){return m===null?t(m):R(m)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):t(m):V(m)?K(e,p,"whitespace")(m):(s+=1,o&&(o=!1,i+=1),m===124?(e.enter("tableCellDivider"),e.consume(m),e.exit("tableCellDivider"),o=!0,p):(e.enter("data"),g(m)))}function g(m){return m===null||m===124||se(m)?(e.exit("data"),p(m)):(e.consume(m),m===92?f:g)}function f(m){return m===92||m===124?(e.consume(m),g):g(m)}function d(m){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(m):(e.enter("tableDelimiterRow"),o=!1,V(m)?K(e,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):A(m))}function A(m){return m===45||m===58?P(m):m===124?(o=!0,e.enter("tableCellDivider"),e.consume(m),e.exit("tableCellDivider"),M):H(m)}function M(m){return V(m)?K(e,P,"whitespace")(m):P(m)}function P(m){return m===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(m),e.exit("tableDelimiterMarker"),_):m===45?(s+=1,_(m)):m===null||R(m)?G(m):H(m)}function _(m){return m===45?(e.enter("tableDelimiterFiller"),q(m)):H(m)}function q(m){return m===45?(e.consume(m),q):m===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(m),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(m))}function C(m){return V(m)?K(e,G,"whitespace")(m):G(m)}function G(m){return m===124?A(m):m===null||R(m)?!o||i!==s?H(m):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(m)):H(m)}function H(m){return t(m)}function y(m){return e.enter("tableRow"),$(m)}function $(m){return m===124?(e.enter("tableCellDivider"),e.consume(m),e.exit("tableCellDivider"),$):m===null||R(m)?(e.exit("tableRow"),n(m)):V(m)?K(e,$,"whitespace")(m):(e.enter("data"),j(m))}function j(m){return m===null||m===124||se(m)?(e.exit("data"),$(m)):(e.consume(m),m===92?B:j)}function B(m){return m===92||m===124?(e.consume(m),j):j(m)}}function Ki(e,n){let t=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],a=!1,u=0,c,p,g;const f=new $i;for(;++t<e.length;){const d=e[t],A=d[1];d[0]==="enter"?A.type==="tableHead"?(a=!1,u!==0&&(en(f,n,u,c,p),p=void 0,u=0),c={type:"table",start:Object.assign({},A.start),end:Object.assign({},A.end)},f.add(t,0,[["enter",c,n]])):A.type==="tableRow"||A.type==="tableDelimiterRow"?(r=!0,g=void 0,s=[0,0,0,0],o=[0,t+1,0,0],a&&(a=!1,p={type:"tableBody",start:Object.assign({},A.start),end:Object.assign({},A.end)},f.add(t,0,[["enter",p,n]])),i=A.type==="tableDelimiterRow"?2:p?3:1):i&&(A.type==="data"||A.type==="tableDelimiterMarker"||A.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],g=Ze(f,n,s,i,void 0,g),s=[0,0,0,0]),o[2]=t)):A.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],g=Ze(f,n,s,i,void 0,g)),s=o,o=[s[1],t,0,0])):A.type==="tableHead"?(a=!0,u=t):A.type==="tableRow"||A.type==="tableDelimiterRow"?(u=t,s[1]!==0?(o[0]=o[1],g=Ze(f,n,s,i,t,g)):o[1]!==0&&(g=Ze(f,n,o,i,t,g)),i=0):i&&(A.type==="data"||A.type==="tableDelimiterMarker"||A.type==="tableDelimiterFiller")&&(o[3]=t)}for(u!==0&&en(f,n,u,c,p),f.consume(n.events),t=-1;++t<n.events.length;){const d=n.events[t];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=Vi(n.events,t))}return e}function Ze(e,n,t,r,i,s){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(s.end=Object.assign({},Be(n.events,t[0])),e.add(t[0],0,[["exit",s,n]]));const u=Be(n.events,t[1]);if(s={type:o,start:Object.assign({},u),end:Object.assign({},u)},e.add(t[1],0,[["enter",s,n]]),t[2]!==0){const c=Be(n.events,t[2]),p=Be(n.events,t[3]),g={type:a,start:Object.assign({},c),end:Object.assign({},p)};if(e.add(t[2],0,[["enter",g,n]]),r!==2){const f=n.events[t[2]],d=n.events[t[3]];if(f[1].end=Object.assign({},d[1].end),f[1].type="chunkText",f[1].contentType="text",t[3]>t[2]+1){const A=t[2]+1,M=t[3]-t[2]-1;e.add(A,M,[])}}e.add(t[3]+1,0,[["exit",g,n]])}return i!==void 0&&(s.end=Object.assign({},Be(n.events,i)),e.add(i,0,[["exit",s,n]]),s=void 0),s}function en(e,n,t,r,i){const s=[],o=Be(n.events,t);i&&(i.end=Object.assign({},o),s.push(["exit",i,n])),r.end=Object.assign({},o),s.push(["exit",r,n]),e.add(t+1,0,s)}function Be(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}function Yo(){}function Zi(){return{enter:{table:Qi,tableData:tn,tableHeader:tn,tableRow:Xi},exit:{codeText:Ji,table:Yi,tableData:ht,tableHeader:ht,tableRow:ht}}}function Qi(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function Yi(e){this.exit(e),this.data.inTable=void 0}function Xi(e){this.enter({type:"tableRow",children:[]},e)}function ht(e){this.exit(e)}function tn(e){this.enter({type:"tableCell",children:[]},e)}function Ji(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,es));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function es(e,n){return n==="|"?n:e}class ts extends Error{constructor(n="Operation was cancelled."){super(n)}}class nn{constructor(){O(this,"isCancellationRequested");O(this,"listeners",new Set)}addListener(n){this.isCancellationRequested?n():this.listeners.add(n)}cancel(){if(!this.isCancellationRequested){this.isCancellationRequested=!0;for(var n of this.listeners)n();this.listeners=null}}removeListener(n){this.listeners.delete(n)}throwIfCancellationRequested(){if(this.isCancellationRequested)throw new ts}}class ns{constructor(n,t){O(this,"node");O(this,"codeNode");O(this,"language");O(this,"code");O(this,"_ct");this.node=z("pre",null,this.codeNode=z("code",null)),this.updateCodeAsync(n,t,this._ct=new nn)}async updateCodeAsync(n,t,r){const i=is(n);if(i){if(await i.promise,r.isCancellationRequested)return;this.language=n,this.code=t,this.codeNode.innerHTML=xe.result.default.highlight(t,{language:n}).value}else this.language=n,this.code=t,this.codeNode.textContent=t}updateCode(n,t){this._ct.cancel(),!(this.language===n&&this.code===t)&&this.updateCodeAsync(n,t,this._ct=new nn)}}let xe;function rs(){return xe||(xe={promise:Promise.resolve().then(()=>uo)},xe.promise.then(e=>xe.result=e).catch(e=>xe.error=e),xe)}const rn={};function is(e){let n=rn[e];if(n)return n;rs();let t;switch(e){case"javascript":t=Promise.resolve().then(()=>bo);break;case"csharp":t=Promise.resolve().then(()=>yo);break;case"python":t=Promise.resolve().then(()=>Eo);break;case"css":t=Promise.resolve().then(()=>No);break;case"typescript":t=Promise.resolve().then(()=>Ro);break;default:return null}return n={promise:(async()=>{const r=await t;return(await xe.promise).default.registerLanguage(e,r.default),r.default})()},rn[e]=n,n.promise.then(r=>n.result=r).catch(r=>n.error=r),n}function dt(e,n){const t=Ui(n,{extensions:[ji()],mdastExtensions:[Zi()]}),r={},i={};sn(t,r,i),pt(t,e,r,i)}function sn(e,n,t){for(const r of e.children){switch(r.type){case"definition":const i=r.identifier;i&&(n[i]=r,t[i.toLowerCase()]=r);continue}r.children&&sn(r,n,t)}}function pt(e,n,t,r){var s;let i=n.firstChild;for(const o of e.children){let a;switch(o.type){case"code":let u=on.get(i);if(u)u.updateCode(o.lang,o.value);else{for(;i;){const p=i.nextSibling;i.remove(),i=p}u=new ns(o.lang,o.value),i=u.node,on.set(i,u),n.appendChild(i)}i=i.nextSibling;continue;case"html":if(!((i==null?void 0:i.nodeType)===Node.ELEMENT_NODE&&i.nodeName==="SPAN")){for(;i;){const p=i.nextSibling;i.remove(),i=p}n.appendChild(i=document.createElement("span"))}i.innerHTML=o.value,i=i.nextSibling;continue;case"inlineCode":if(!((i==null?void 0:i.nodeType)===Node.ELEMENT_NODE&&i.nodeName==="CODE")){for(;i;){const p=i.nextSibling;i.remove(),i=p}n.appendChild(i=document.createElement("code"))}i.textContent=o.value,i=i.nextSibling;continue;case"text":if((i==null?void 0:i.nodeType)===Node.TEXT_NODE)i.nodeValue=o.value;else{for(;i;){const p=i.nextSibling;i.remove(),i=p}n.appendChild(i=document.createTextNode(o.value))}i=i.nextSibling;continue;case"yaml":continue;case"break":if(!((i==null?void 0:i.nodeType)===Node.ELEMENT_NODE&&i.nodeName==="BR")){for(;i;){const p=i.nextSibling;i.remove(),i=p}n.appendChild(i=document.createElement("br"))}i=i.nextSibling;continue;case"thematicBreak":if(!((i==null?void 0:i.nodeType)===Node.ELEMENT_NODE&&i.nodeName==="HR")){for(;i;){const p=i.nextSibling;i.remove(),i=p}n.appendChild(i=document.createElement("hr"))}i=i.nextSibling;continue;case"image":if(!((i==null?void 0:i.nodeType)===Node.ELEMENT_NODE&&i.nodeName==="IMG")){for(;i;){const p=i.nextSibling;i.remove(),i=p}n.appendChild(i=document.createElement("img"))}i.src=o.url||"",i.alt=o.alt||"",i.title=o.title||"",i=i.nextSibling;continue;case"linkReference":if(!((i==null?void 0:i.nodeType)===Node.ELEMENT_NODE&&i.nodeName==="A")){for(;i;){const p=i.nextSibling;i.remove(),i=p}n.appendChild(i=document.createElement("a"))}pt(o,i,t,r);let c;switch(o.referenceType){case"shortcut":c=t[i.textContent.toLowerCase()];break;case"collapsed":c=r[i.textContent.toLowerCase()]||t[i.textContent.toLowerCase()];break;case"full":c=r[(s=o.identifier)==null?void 0:s.toLowerCase()];break}i.href=(c==null?void 0:c.url)||"",i.target="_blank",i.title=(c==null?void 0:c.title)||"",i=i.nextSibling;continue;case"definition":continue;case"footnoteDefinition":case"footnoteReference":case"imageReference":continue;case"blockquote":a="BLOCKQUOTE";break;case"delete":a="DEL";break;case"emphasis":a="EM";break;case"heading":a="H"+o.depth;break;case"link":a="A";break;case"list":a=o.ordered?"OL":"UL";break;case"listItem":a="LI";break;case"paragraph":a="P";break;case"strong":a="STRONG";break;case"table":a="TABLE";break;case"tableCell":a="TD";break;case"tableRow":a="TR";break;default:console.warn("Unknown MDAST node type: "+o.type);continue}if(!((i==null?void 0:i.nodeType)===Node.ELEMENT_NODE&&i.nodeName===a)){for(;i;){const u=i.nextSibling;i.remove(),i=u}n.appendChild(i=document.createElement(a))}a==="A"&&(i.href=o.url||"",i.target="_blank",i.title=o.title||""),pt(o,i,t,r),i=i.nextSibling}for(;i;){const o=i.nextSibling;i.remove(),i=o}}const on=new WeakMap;class ss{constructor(n){O(this,"node");O(this,"messageNode");this.node=z("div",{class:"shadow-md border border-Light rounded-lg"},this.messageNode=z("div",{class:"p-5"},n))}updateMarkdown(n){dt(this.messageNode,n)}}class an{constructor(n,t,r){O(this,"node");O(this,"chat");O(this,"message");O(this,"bubble");this.chat=n,this.message=t,this.node=z("li",{class:"relative"},r,(this.bubble=new ss(t)).node)}}class os extends an{constructor(n,t,r,i){super(n,t,z(St,{class:"absolute top-0 left-[-3.25rem] shadow-md",id:r},i)),this.bubble.node.style.background="hsla(207,100%,98%,1)"}toDto(){return{role:"user",content:this.message}}}class ln extends an{constructor(n,t,r){super(n,t,r),this.bubble.node.classList.add("bg-White"),this.bubble.messageNode.classList.add("prose","prose-sm","prose-neutral","prose-code:text-[1em]","max-w-none")}updateMessage(n){this.message=n,this.bubble.updateMarkdown(n)}toDto(){return{role:"assistant",content:this.message}}}var J=(e=>(e[e.Init=0]="Init",e[e.Done=1]="Done",e[e.Error=2]="Error",e[e.AgentManifest=3]="AgentManifest",e[e.AppendMessage=4]="AppendMessage",e[e.ToolCallUpdate=5]="ToolCallUpdate",e[e.Loop=6]="Loop",e[e.ToolCallStatus=7]="ToolCallStatus",e[e.ToolCallLog=8]="ToolCallLog",e[e.ToolCallDone=9]="ToolCallDone",e[e.ToolCallError=10]="ToolCallError",e))(J||{}),ue=(e=>(e.Progress="progress",e.Complete="complete",e.Info="info",e.Warning="warning",e.Error="error",e.Undetermined="undetermined",e))(ue||{}),ye=(e=>(e.ExtraSmall="16",e.Small="20",e.Medium="24",e.Large="28",e.ExtraLarge="32",e.ExtraExtraLarge="40",e))(ye||{});function as({size:e=ye.Medium,...n}){const t=ae("svg");t.setAttribute("viewBox","0 0 448 512"),t.setAttribute("fill","currentColor"),t.setAttribute("width",e),t.setAttribute("height",e),ce(t,n);const r=ae("path");return r.setAttribute("d","M413.505 91.951L133.49 371.966l-98.995-98.995c-4.686-4.686-12.284-4.686-16.971 0L6.211 284.284c-4.686 4.686-4.686 12.284 0 16.971l118.794 118.794c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-11.314-11.314c-4.686-4.686-12.284-4.686-16.97 0z"),t.appendChild(r),t.classList.add("icon"),t}function ls({size:e=ye.Medium,...n}){const t=ae("svg");t.setAttribute("viewBox","0 0 512 512"),t.setAttribute("fill","currentColor"),t.setAttribute("width",e),t.setAttribute("height",e),ce(t,n);const r=ae("path");return r.setAttribute("d","M256 40c118.621 0 216 96.075 216 216 0 119.291-96.61 216-216 216-119.244 0-216-96.562-216-216 0-119.203 96.602-216 216-216m0-32C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm-11.49 120h22.979c6.823 0 12.274 5.682 11.99 12.5l-7 168c-.268 6.428-5.556 11.5-11.99 11.5h-8.979c-6.433 0-11.722-5.073-11.99-11.5l-7-168c-.283-6.818 5.167-12.5 11.99-12.5zM256 340c-15.464 0-28 12.536-28 28s12.536 28 28 28 28-12.536 28-28-12.536-28-28-28z"),t.appendChild(r),t.classList.add("icon"),t}function cn({size:e=ye.Medium,...n}){const t=ae("svg");t.setAttribute("viewBox","0 0 512 512"),t.setAttribute("fill","currentColor"),t.setAttribute("width",e),t.setAttribute("height",e),ce(t,n);const r=ae("path");return r.setAttribute("d","M256 40c118.621 0 216 96.075 216 216 0 119.291-96.61 216-216 216-119.244 0-216-96.562-216-216 0-119.203 96.602-216 216-216m0-32C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm-36 344h12V232h-12c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h48c6.627 0 12 5.373 12 12v140h12c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12h-72c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12zm36-240c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"),t.appendChild(r),t.classList.add("icon"),t}function cs({size:e=ye.Medium,...n}){const t=ae("svg");t.setAttribute("viewBox","0 0 32 32"),t.setAttribute("fill","currentColor"),t.setAttribute("width",e),t.setAttribute("height",e),ce(t,n);const r=ae("path");return r.setAttribute("d","M14.75 21.75C15.0833 21.4167 15.5 21.25 16 21.25C16.5 21.25 16.9167 21.4167 17.25 21.75C17.5833 22.0833 17.75 22.5 17.75 23C17.75 23.5 17.5833 23.9167 17.25 24.25C16.9167 24.5833 16.5 24.75 16 24.75C15.5 24.75 15.0833 24.5833 14.75 24.25C14.4167 23.9167 14.25 23.5 14.25 23C14.25 22.5 14.4167 22.0833 14.75 21.75ZM16.5 19.75H15.5C15.2917 19.75 15.1042 19.6875 14.9375 19.5625C14.8125 19.3958 14.75 19.2083 14.75 19C14.75 18 15 17.1667 15.5 16.5C16 15.7917 16.5417 15.2917 17.125 15C17.75 14.7083 18.3125 14.3333 18.8125 13.875C19.3125 13.4167 19.5625 12.875 19.5625 12.25C19.5625 11.8333 19.4375 11.4375 19.1875 11.0625C18.9375 10.6875 18.5417 10.375 18 10.125C17.4583 9.875 16.7917 9.75 16 9.75C14.4583 9.75 13.2083 10.3542 12.25 11.5625C12 11.9375 11.6667 11.9792 11.25 11.6875L10.4375 11.125C10.0208 10.8333 9.95833 10.4792 10.25 10.0625C11.7083 8.1875 13.625 7.25 16 7.25C17.7083 7.25 19.1458 7.70833 20.3125 8.625C21.4792 9.54167 22.0625 10.75 22.0625 12.25C22.0625 13.2083 21.8125 14.0417 21.3125 14.75C20.8125 15.4167 20.25 15.8958 19.625 16.1875C19.0417 16.4792 18.5 16.875 18 17.375C17.5 17.8333 17.25 18.375 17.25 19C17.25 19.2083 17.1667 19.3958 17 19.5625C16.875 19.6875 16.7083 19.75 16.5 19.75ZM16 2.5C12.25 2.5 9.0625 3.83333 6.4375 6.5C3.8125 9.125 2.5 12.2917 2.5 16C2.5 19.75 3.8125 22.9375 6.4375 25.5625C9.10417 28.1875 12.2917 29.5 16 29.5C19.75 29.5 22.9375 28.1875 25.5625 25.5625C28.1875 22.8958 29.5 19.7083 29.5 16C29.5 12.25 28.1667 9.0625 25.5 6.4375C22.875 3.8125 19.7083 2.5 16 2.5ZM5 5.0625C8.04167 2.02083 11.7083 0.5 16 0.5C20.2917 0.5 23.9375 2.02083 26.9375 5.0625C29.9792 8.0625 31.5 11.7083 31.5 16C31.5 20.2917 29.9792 23.9583 26.9375 27C23.9375 30 20.2917 31.5 16 31.5C11.7083 31.5 8.04167 30 5 27C2 23.9583 0.5 20.2917 0.5 16C0.5 11.7083 2 8.0625 5 5.0625Z"),t.appendChild(r),t.classList.add("icon"),t}class us{constructor(n,t,r,i,s){O(this,"node");O(this,"_itemsNode");O(this,"_itemsByIndex",{});O(this,"_initialItem");this._initialItem=new un(n,t),this.node=z("li",{class:"first:pt-0 last:pb-0 pt-2 pb-2"},this._itemsNode=z("ol",{class:"flex flex-col gap-1"},this._initialItem.node))}log(n,t,r){}status(n,t,r,i){let s;if(this._initialItem)this._itemsByIndex[n]=s=this._initialItem,this._initialItem=null;else if(!(s=this._itemsByIndex[n])){this._itemsByIndex[n]=s=new un(r,i),this._itemsNode.appendChild(s.node);return}s.status(t,r,i)}done(){if(this._initialItem)this._initialItem.status(-1,ue.Complete,"Successfully invoked tool.");else for(const n in this._itemsByIndex){const t=this._itemsByIndex[n];t.icon===ue.Progress&&(t.icon=ue.Undetermined)}}error(){if(this._initialItem)this._initialItem.status(-1,ue.Error,"An error occurred while invoking the tool.");else for(const n in this._itemsByIndex){const t=this._itemsByIndex[n];t.icon===ue.Progress&&(t.icon=ue.Undetermined)}}}class un{constructor(n,t){O(this,"node");O(this,"_icon");O(this,"_iconNode");O(this,"_markdown");O(this,"_markdownNode");this._icon=n,this._markdown=t,this.node=z("li",{class:"flex gap-2 items-center px-5"},this._iconNode=hn(n),this._markdownNode=z("span",null)),dt(this._markdownNode,this._markdown)}get icon(){return this._icon}set icon(n){n!==this._icon&&(this._iconNode.replaceWith(this._iconNode=hn(n)),this._icon=n)}get markdown(){return this._markdown}set markdown(n){n!==this._markdown&&(dt(this._markdownNode,this._markdown=n),this._markdown=n)}status(n,t,r){this.icon=t,this.markdown=r}}function hn(e){switch(e){case ue.Progress:return z(Ct,{size:tt.Small});case ue.Complete:return z(as,{size:ye.Medium,class:"text-Land-Green-Main-41"});case ue.Info:return z(cn,{size:ye.Medium,class:"text-Sea-Blue-Main-28"});case ue.Warning:return z(cn,{size:ye.Medium,class:"text-Terracotta-Main-35"});case ue.Error:return z(ls,{size:ye.Medium,class:"text-Energy-Red-Main-54"})}return e!=null&&e.startsWith("https://")?z("img",{src:e,alt:"",class:"w-6 h-6"}):(e&&e!==ue.Undetermined&&console.warn(`Unknown icon '${e}'. Defaulting to undetermined.`),z(cs,{size:ye.Medium,class:"text-Sandstone-Main-79"}))}class gt{constructor(){O(this,"node");O(this,"toolCallsNode");O(this,"toolCallsByIndex",{});O(this,"toolCallsById",{});this.node=z("li",null,this.toolCallsNode=z("ol",{class:"flex flex-col divide-y divide-Light"}))}aggregate(n,t,r,i){let s=this.toolCallsByIndex[t];s||(this.toolCallsByIndex[t]=s=new us("progress","Invoking tool…"),this.toolCallsNode.appendChild(s.node)),n&&(this.toolCallsById[n]=s)}completeAggregation(){}log(n,t,r,i){var s;(s=this.toolCallsById[n])==null||s.log(t,r,i)}status(n,t,r,i,s){var o;(o=this.toolCallsById[n])==null||o.status(t,r,i,s)}done(n){var t;(t=this.toolCallsById[n])==null||t.done()}error(n){var t;(t=this.toolCallsById[n])==null||t.error()}}class hs{constructor(){O(this,"_reader");O(this,"_buffer",new Uint8Array(0));O(this,"_bufferOffset",0)}async initializeConnectionAsync(n,t){var r=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});this._reader=r.body.getReader()}async readBytesAsync(n){if(this._buffer.length-this._bufferOffset>=n){const r=this._buffer.subarray(this._bufferOffset,this._bufferOffset+n);return this._bufferOffset+=n,r}for(;this._buffer.length-this._bufferOffset<n;){const{done:r,value:i}=await this._reader.read();if(r){const s=this._buffer.subarray(this._bufferOffset);return this._buffer=new Uint8Array(0),this._bufferOffset=0,s}this._buffer=ds(this._buffer,i,this._bufferOffset),this._bufferOffset=0}const t=this._buffer.subarray(this._bufferOffset,this._bufferOffset+n);return this._bufferOffset+=n,t}async readLittleEndianInt32Async(){const n=await this.readBytesAsync(4),t=n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength);return new DataView(t).getInt32(0,!0)}async readLittleEndianDoubleAsync(){const n=await this.readBytesAsync(8),t=n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength);return new DataView(t).getFloat64(0,!0)}async readUtf8StringAsync(){const n=await this.readLittleEndianInt32Async();if(n===-1)return null;const t=await this.readBytesAsync(n);return new TextDecoder().decode(t)}async readMessageAsync(){let n=performance.now();const t=await this.readBytesAsync(1);if(t.length==0)return null;const r=t[0];let i;switch(r){case J.Init:case J.Done:return i=performance.now(),{type:r,elapsed:i-n};case J.Error:{const s=await this.readUtf8StringAsync();return i=performance.now(),{type:r,elapsed:i-n,errorMarkdown:s}}case J.AgentManifest:{const s=await this.readUtf8StringAsync(),o=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync(),u=await this.readUtf8StringAsync();return i=performance.now(),{type:r,elapsed:i-n,parentFunctionId:s,agentManifestName:o,agentManifestBackgroundColor:a,agentManifestIcon:u}}case J.AppendMessage:{const s=await this.readUtf8StringAsync(),o=await this.readUtf8StringAsync();return i=performance.now(),{type:r,elapsed:i-n,parentFunctionId:s,appendMessageMarkdown:o}}case J.ToolCallUpdate:{const s=await this.readUtf8StringAsync(),o=await this.readUtf8StringAsync(),a=await this.readLittleEndianInt32Async(),u=await this.readUtf8StringAsync(),c=await this.readUtf8StringAsync();return i=performance.now(),{type:r,elapsed:i-n,parentFunctionId:s,toolCallFunctionId:o,toolCallUpdateIndex:a,toolCallUpdateName:u,toolCallUpdateArguments:c}}case J.Loop:{const s=await this.readUtf8StringAsync();return i=performance.now(),{type:r,elapsed:i-n,parentFunctionId:s}}case J.ToolCallStatus:{const s=await this.readUtf8StringAsync(),o=await this.readLittleEndianInt32Async(),a=await this.readLittleEndianDoubleAsync(),u=await this.readUtf8StringAsync(),c=await this.readUtf8StringAsync();return i=performance.now(),{type:r,elapsed:i-n,toolCallFunctionId:s,toolCallStatusIndex:o,toolCallStatusProgress:a,toolCallIcon:u,toolCallMarkdown:c}}case J.ToolCallLog:{const s=await this.readUtf8StringAsync(),o=await this.readBytesAsync(1);if(o.length==0)return null;const a=o[0],u=await this.readLittleEndianDoubleAsync(),c=await this.readUtf8StringAsync();return i=performance.now(),{type:r,elapsed:i-n,toolCallFunctionId:s,toolCallLogLevel:a,toolCallTime:u,toolCallMarkdown:c}}case J.ToolCallDone:{const s=await this.readUtf8StringAsync();return i=performance.now(),{type:r,elapsed:i-n,toolCallFunctionId:s}}case J.ToolCallError:{const s=await this.readUtf8StringAsync();return i=performance.now(),{type:r,elapsed:i-n,toolCallFunctionId:s}}default:throw new Error(`Unexpected message type: ${r}`)}}}function ds(e,n,t){t>0&&e.copyWithin(0,t);let r=new Uint8Array(e.length-t+n.length);return r.set(e.subarray(0,e.length-t),0),r.set(n,e.length-t),r}class ps extends hs{constructor(t=1){super();O(this,"_latestReadMessagePromise");O(this,"_lettersRead",0);O(this,"_lettersReadTime",0);O(this,"_isDone");O(this,"_queue",[]);O(this,"_headIndex",0);this.chunkSize=t}async initializeConnectionAsync(t,r){await super.initializeConnectionAsync(t,r),this.readMessagesContinuouslyAsync()}async readMessagesContinuouslyAsync(){try{for(;;){const t=await(this._latestReadMessagePromise=this.readMessageAsync());if(!t)return;if(t.type===J.AppendMessage){t.appendMessageMarkdown&&(this._lettersRead+=t.appendMessageMarkdown.length),this._lettersReadTime+=t.elapsed;const r=this.peekParentFunctionId(t.parentFunctionId);if(r&&r.type===J.AppendMessage){t.appendMessageMarkdown&&(r.appendMessageMarkdown+=t.appendMessageMarkdown),r.elapsed+=t.elapsed;continue}}this.enqueue(t)}}finally{this._isDone=!0}}async readMessageFromQueueAsync(){return this.size()?this.dequeue():(await this._latestReadMessagePromise,this.dequeue())}async*readMessagesAsync(){for(;;){const t=await this.readMessageFromQueueAsync();if(!t)return;if(t.type===J.AppendMessage&&t.appendMessageMarkdown){const r=t.appendMessageMarkdown;for(let i=0;;){if(this.peek()||this._isDone){yield i?{...t,appendMessageMarkdown:r.substring(i)}:t;break}const s=r.substring(i,i+=this.chunkSize);if(yield{...t,appendMessageMarkdown:s},i<r.length){const o=this._lettersReadTime?this._lettersReadTime/this._lettersRead:0;o&&await new Promise(a=>setTimeout(a,o*s.length))}else break}}else yield t}}enqueue(t){this._queue.push(t)}dequeue(){if(this.isEmpty())return;const t=this._queue[this._headIndex];return this._queue[this._headIndex]=null,this._headIndex++,this._headIndex>this._queue.length/2&&(this._queue=this._queue.slice(this._headIndex),this._headIndex=0),t}peek(){return this.isEmpty()?void 0:this._queue[this._headIndex]}peekParentFunctionId(t){if(this.isEmpty())return;let r=this._headIndex;do{const i=this._queue[r];switch(i.type){case J.Init:case J.Done:case J.Error:return}if(i.parentFunctionId===t)return i}while(++r<this._queue.length)}isEmpty(){return this._headIndex>=this._queue.length}size(){return this._queue.length-this._headIndex}}const gs='*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Avenir Next,ui-sans-serif,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}b,strong{font-weight:600}:root{--Dark-Blue-5: hsl(223, 67%, 5%);--Dark-Blue-10: hsl(223, 67%, 10%);--Dark-Blue-15: hsl(223, 67%, 15%);--Dark-Blue-20: hsl(223, 67%, 20%);--Dark-Blue-25: hsl(223, 67%, 25%);--Dark-Blue-30: hsl(223, 67%, 30%);--Dark-Blue-35: hsl(223, 67%, 35%);--Dark-Blue-40: hsl(223, 67%, 40%);--Dark-Blue-45: hsl(223, 67%, 45%);--Dark-Blue-50: hsl(223, 67%, 50%);--Dark-Blue-55: hsl(223, 67%, 55%);--Dark-Blue-60: hsl(223, 67%, 60%);--Dark-Blue-65: hsl(223, 67%, 65%);--Dark-Blue-70: hsl(223, 67%, 70%);--Dark-Blue-75: hsl(223, 67%, 75%);--Dark-Blue-80: hsl(223, 67%, 80%);--Dark-Blue-85: hsl(223, 67%, 85%);--Dark-Blue-90: hsl(223, 67%, 90%);--Dark-Blue-95: hsl(223, 67%, 95%);--Dark-Blue-Main-18: hsl(223, 67%, 18%);--Sea-Blue-5: hsl(218, 100%, 5%);--Sea-Blue-10: hsl(218, 100%, 10%);--Sea-Blue-15: hsl(218, 100%, 15%);--Sea-Blue-20: hsl(218, 100%, 20%);--Sea-Blue-25: hsl(218, 100%, 25%);--Sea-Blue-30: hsl(218, 100%, 30%);--Sea-Blue-35: hsl(218, 100%, 35%);--Sea-Blue-40: hsl(218, 100%, 40%);--Sea-Blue-45: hsl(218, 100%, 45%);--Sea-Blue-50: hsl(218, 100%, 50%);--Sea-Blue-55: hsl(218, 100%, 55%);--Sea-Blue-60: hsl(218, 100%, 60%);--Sea-Blue-65: hsl(218, 100%, 65%);--Sea-Blue-70: hsl(218, 100%, 70%);--Sea-Blue-75: hsl(218, 100%, 75%);--Sea-Blue-80: hsl(218, 100%, 80%);--Sea-Blue-85: hsl(218, 100%, 85%);--Sea-Blue-90: hsl(218, 100%, 90%);--Sea-Blue-95: hsl(218, 100%, 95%);--Sea-Blue-Main-28: hsl(218, 100%, 28%);--Sky-Blue-5: hsl(196, 74%, 5%);--Sky-Blue-10: hsl(196, 74%, 10%);--Sky-Blue-15: hsl(196, 74%, 15%);--Sky-Blue-20: hsl(196, 74%, 20%);--Sky-Blue-25: hsl(196, 74%, 25%);--Sky-Blue-30: hsl(196, 74%, 30%);--Sky-Blue-35: hsl(196, 74%, 35%);--Sky-Blue-40: hsl(196, 74%, 40%);--Sky-Blue-45: hsl(196, 74%, 45%);--Sky-Blue-50: hsl(196, 74%, 50%);--Sky-Blue-55: hsl(196, 74%, 55%);--Sky-Blue-60: hsl(196, 74%, 60%);--Sky-Blue-65: hsl(196, 74%, 65%);--Sky-Blue-70: hsl(196, 74%, 70%);--Sky-Blue-75: hsl(196, 74%, 75%);--Sky-Blue-80: hsl(196, 74%, 80%);--Sky-Blue-85: hsl(196, 74%, 85%);--Sky-Blue-90: hsl(196, 74%, 90%);--Sky-Blue-95: hsl(196, 74%, 95%);--Sky-Blue-97: hsl(196, 74%, 97%);--Sky-Blue-Main-77: hsl(196, 74%, 77%);--Digi-Green-5: hsl(139, 100%, 5%);--Digi-Green-10: hsl(139, 100%, 10%);--Digi-Green-15: hsl(139, 100%, 15%);--Digi-Green-20: hsl(139, 100%, 20%);--Digi-Green-25: hsl(139, 100%, 25%);--Digi-Green-30: hsl(139, 100%, 30%);--Digi-Green-35: hsl(139, 100%, 35%);--Digi-Green-40: hsl(139, 100%, 40%);--Digi-Green-45: hsl(139, 100%, 45%);--Digi-Green-50: hsl(139, 100%, 50%);--Digi-Green-55: hsl(139, 100%, 55%);--Digi-Green-60: hsl(139, 100%, 60%);--Digi-Green-65: hsl(139, 100%, 65%);--Digi-Green-70: hsl(139, 100%, 70%);--Digi-Green-75: hsl(139, 100%, 75%);--Digi-Green-80: hsl(139, 100%, 80%);--Digi-Green-85: hsl(139, 100%, 85%);--Digi-Green-90: hsl(139, 100%, 90%);--Digi-Green-95: hsl(139, 100%, 95%);--Digi-Green-Main-78: hsl(139, 100%, 78%);--Sandstone-5: hsl(40, 3%, 5%);--Sandstone-10: hsl(40, 3%, 10%);--Sandstone-15: hsl(40, 3%, 15%);--Sandstone-20: hsl(40, 3%, 20%);--Sandstone-25: hsl(40, 3%, 25%);--Sandstone-30: hsl(40, 3%, 30%);--Sandstone-35: hsl(40, 3%, 35%);--Sandstone-40: hsl(40, 3%, 40%);--Sandstone-45: hsl(40, 3%, 45%);--Sandstone-50: hsl(40, 3%, 50%);--Sandstone-55: hsl(40, 3%, 55%);--Sandstone-60: hsl(40, 3%, 60%);--Sandstone-65: hsl(40, 3%, 65%);--Sandstone-70: hsl(40, 3%, 70%);--Sandstone-75: hsl(40, 3%, 75%);--Sandstone-80: hsl(40, 3%, 80%);--Sandstone-85: hsl(40, 3%, 85%);--Sandstone-90: hsl(40, 3%, 90%);--Sandstone-95: hsl(40, 3%, 95%);--Sandstone-97: hsl(40, 3%, 97%);--Sandstone-Main-79: hsl(40, 3%, 79%);--Warm-Grey-5: hsl(30, 8%, 5%);--Warm-Grey-10: hsl(30, 8%, 10%);--Warm-Grey-15: hsl(30, 8%, 15%);--Warm-Grey-20: hsl(30, 8%, 20%);--Warm-Grey-25: hsl(30, 8%, 25%);--Warm-Grey-30: hsl(30, 8%, 30%);--Warm-Grey-35: hsl(30, 8%, 35%);--Warm-Grey-40: hsl(30, 8%, 40%);--Warm-Grey-45: hsl(30, 8%, 45%);--Warm-Grey-50: hsl(30, 8%, 50%);--Warm-Grey-55: hsl(30, 8%, 55%);--Warm-Grey-60: hsl(30, 8%, 60%);--Warm-Grey-65: hsl(30, 8%, 65%);--Warm-Grey-70: hsl(30, 8%, 70%);--Warm-Grey-75: hsl(30, 8%, 75%);--Warm-Grey-80: hsl(30, 8%, 80%);--Warm-Grey-85: hsl(30, 8%, 85%);--Warm-Grey-90: hsl(30, 8%, 90%);--Warm-Grey-95: hsl(30, 8%, 95%);--Warm-Grey-Main-56: hsl(30, 8%, 56%);--Earth-5: hsl(35, 53%, 5%);--Earth-10: hsl(35, 53%, 10%);--Earth-15: hsl(35, 53%, 15%);--Earth-20: hsl(35, 53%, 20%);--Earth-25: hsl(35, 53%, 25%);--Earth-30: hsl(35, 53%, 30%);--Earth-35: hsl(35, 53%, 35%);--Earth-40: hsl(35, 53%, 40%);--Earth-45: hsl(35, 53%, 45%);--Earth-50: hsl(35, 53%, 50%);--Earth-55: hsl(35, 53%, 55%);--Earth-60: hsl(35, 53%, 60%);--Earth-65: hsl(35, 53%, 65%);--Earth-70: hsl(35, 53%, 70%);--Earth-75: hsl(35, 53%, 75%);--Earth-80: hsl(35, 53%, 80%);--Earth-85: hsl(35, 53%, 85%);--Earth-90: hsl(35, 53%, 90%);--Earth-95: hsl(35, 53%, 95%);--Earth-97: hsl(35, 53%, 97%);--Earth-Main-89: hsl(35, 53%, 89%);--Pine-5: hsl(195, 46%, 5%);--Pine-10: hsl(195, 46%, 10%);--Pine-15: hsl(195, 46%, 15%);--Pine-20: hsl(195, 46%, 20%);--Pine-25: hsl(195, 46%, 25%);--Pine-30: hsl(195, 46%, 30%);--Pine-35: hsl(195, 46%, 35%);--Pine-40: hsl(195, 46%, 40%);--Pine-45: hsl(195, 46%, 45%);--Pine-50: hsl(195, 46%, 50%);--Pine-55: hsl(195, 46%, 55%);--Pine-60: hsl(195, 46%, 60%);--Pine-65: hsl(195, 46%, 65%);--Pine-70: hsl(195, 46%, 70%);--Pine-75: hsl(195, 46%, 75%);--Pine-80: hsl(195, 46%, 80%);--Pine-85: hsl(195, 46%, 85%);--Pine-90: hsl(195, 46%, 90%);--Pine-95: hsl(195, 46%, 95%);--Pine-Main-30: hsl(195, 46%, 30%);--Eucalyptus-5: hsl(178, 80%, 5%);--Eucalyptus-10: hsl(178, 80%, 10%);--Eucalyptus-15: hsl(178, 80%, 15%);--Eucalyptus-20: hsl(178, 80%, 20%);--Eucalyptus-25: hsl(178, 80%, 25%);--Eucalyptus-30: hsl(178, 80%, 30%);--Eucalyptus-35: hsl(178, 80%, 35%);--Eucalyptus-40: hsl(178, 80%, 40%);--Eucalyptus-45: hsl(178, 80%, 45%);--Eucalyptus-50: hsl(178, 80%, 50%);--Eucalyptus-55: hsl(178, 80%, 55%);--Eucalyptus-60: hsl(178, 80%, 60%);--Eucalyptus-65: hsl(178, 80%, 65%);--Eucalyptus-70: hsl(178, 80%, 70%);--Eucalyptus-75: hsl(178, 80%, 75%);--Eucalyptus-80: hsl(178, 80%, 80%);--Eucalyptus-85: hsl(178, 80%, 85%);--Eucalyptus-90: hsl(178, 80%, 90%);--Eucalyptus-95: hsl(178, 80%, 95%);--Eucalyptus-Main-41: hsl(178, 80%, 41%);--Lavender-5: hsl(232, 58%, 5%);--Lavender-10: hsl(232, 58%, 10%);--Lavender-15: hsl(232, 58%, 15%);--Lavender-20: hsl(232, 58%, 20%);--Lavender-25: hsl(232, 58%, 25%);--Lavender-30: hsl(232, 58%, 30%);--Lavender-35: hsl(232, 58%, 35%);--Lavender-40: hsl(232, 58%, 40%);--Lavender-45: hsl(232, 58%, 45%);--Lavender-50: hsl(232, 58%, 50%);--Lavender-55: hsl(232, 58%, 55%);--Lavender-60: hsl(232, 58%, 60%);--Lavender-65: hsl(232, 58%, 65%);--Lavender-70: hsl(232, 58%, 70%);--Lavender-75: hsl(232, 58%, 75%);--Lavender-80: hsl(232, 58%, 80%);--Lavender-85: hsl(232, 58%, 85%);--Lavender-90: hsl(232, 58%, 90%);--Lavender-95: hsl(232, 58%, 95%);--Lavender-Main-77: hsl(232, 58%, 77%);--Terracotta-5: hsl(34, 100%, 5%);--Terracotta-10: hsl(34, 100%, 10%);--Terracotta-15: hsl(34, 100%, 15%);--Terracotta-20: hsl(34, 100%, 20%);--Terracotta-25: hsl(34, 100%, 25%);--Terracotta-30: hsl(34, 100%, 30%);--Terracotta-35: hsl(34, 100%, 35%);--Terracotta-40: hsl(34, 100%, 40%);--Terracotta-45: hsl(34, 100%, 45%);--Terracotta-50: hsl(34, 100%, 50%);--Terracotta-55: hsl(34, 100%, 55%);--Terracotta-60: hsl(34, 100%, 60%);--Terracotta-65: hsl(34, 100%, 65%);--Terracotta-70: hsl(34, 100%, 70%);--Terracotta-75: hsl(34, 100%, 75%);--Terracotta-80: hsl(34, 100%, 80%);--Terracotta-85: hsl(34, 100%, 85%);--Terracotta-90: hsl(34, 100%, 90%);--Terracotta-95: hsl(34, 100%, 95%);--Terracotta-Main-35: hsl(34, 100%, 35%);--Land-Green-5: hsl(114, 49%, 5%);--Land-Green-10: hsl(114, 49%, 10%);--Land-Green-15: hsl(114, 49%, 15%);--Land-Green-20: hsl(114, 49%, 20%);--Land-Green-25: hsl(114, 49%, 25%);--Land-Green-30: hsl(114, 49%, 30%);--Land-Green-35: hsl(114, 49%, 35%);--Land-Green-40: hsl(114, 49%, 40%);--Land-Green-45: hsl(114, 49%, 45%);--Land-Green-50: hsl(114, 49%, 50%);--Land-Green-55: hsl(114, 49%, 55%);--Land-Green-60: hsl(114, 49%, 60%);--Land-Green-65: hsl(114, 49%, 65%);--Land-Green-70: hsl(114, 49%, 70%);--Land-Green-75: hsl(114, 49%, 75%);--Land-Green-80: hsl(114, 49%, 80%);--Land-Green-85: hsl(114, 49%, 85%);--Land-Green-90: hsl(114, 49%, 90%);--Land-Green-95: hsl(114, 49%, 95%);--Land-Green-Main-41: hsl(114, 49%, 41%);--Sunflower-5: hsl(55, 100%, 5%);--Sunflower-10: hsl(55, 100%, 10%);--Sunflower-15: hsl(55, 100%, 15%);--Sunflower-20: hsl(55, 100%, 20%);--Sunflower-25: hsl(55, 100%, 25%);--Sunflower-30: hsl(55, 100%, 30%);--Sunflower-35: hsl(55, 100%, 35%);--Sunflower-40: hsl(55, 100%, 40%);--Sunflower-45: hsl(55, 100%, 45%);--Sunflower-50: hsl(55, 100%, 50%);--Sunflower-55: hsl(55, 100%, 55%);--Sunflower-60: hsl(55, 100%, 60%);--Sunflower-65: hsl(55, 100%, 65%);--Sunflower-70: hsl(55, 100%, 70%);--Sunflower-75: hsl(55, 100%, 75%);--Sunflower-80: hsl(55, 100%, 80%);--Sunflower-85: hsl(55, 100%, 85%);--Sunflower-90: hsl(55, 100%, 90%);--Sunflower-95: hsl(55, 100%, 95%);--Sunflower-Main-73: hsl(55, 100%, 73%);--Energy-Red-5: hsl(357, 83%, 5%);--Energy-Red-10: hsl(357, 83%, 10%);--Energy-Red-15: hsl(357, 83%, 15%);--Energy-Red-20: hsl(357, 83%, 20%);--Energy-Red-25: hsl(357, 83%, 25%);--Energy-Red-30: hsl(357, 83%, 30%);--Energy-Red-35: hsl(357, 83%, 35%);--Energy-Red-40: hsl(357, 83%, 40%);--Energy-Red-45: hsl(357, 83%, 45%);--Energy-Red-50: hsl(357, 83%, 50%);--Energy-Red-55: hsl(357, 83%, 55%);--Energy-Red-60: hsl(357, 83%, 60%);--Energy-Red-65: hsl(357, 83%, 65%);--Energy-Red-70: hsl(357, 83%, 70%);--Energy-Red-75: hsl(357, 83%, 75%);--Energy-Red-80: hsl(357, 83%, 80%);--Energy-Red-85: hsl(357, 83%, 85%);--Energy-Red-90: hsl(357, 83%, 90%);--Energy-Red-95: hsl(357, 83%, 95%);--Energy-Red-Main-54: hsl(357, 83%, 54%);--Cyan-5: hsl(196, 100%, 5%);--Cyan-10: hsl(196, 100%, 10%);--Cyan-15: hsl(196, 100%, 15%);--Cyan-20: hsl(196, 100%, 20%);--Cyan-25: hsl(196, 100%, 25%);--Cyan-30: hsl(196, 100%, 30%);--Cyan-35: hsl(196, 100%, 35%);--Cyan-40: hsl(196, 100%, 40%);--Cyan-45: hsl(196, 100%, 45%);--Cyan-50: hsl(196, 100%, 50%);--Cyan-55: hsl(196, 100%, 55%);--Cyan-60: hsl(196, 100%, 60%);--Cyan-65: hsl(196, 100%, 65%);--Cyan-70: hsl(196, 100%, 70%);--Cyan-75: hsl(196, 100%, 75%);--Cyan-80: hsl(196, 100%, 80%);--Cyan-85: hsl(196, 100%, 85%);--Cyan-90: hsl(196, 100%, 90%);--Cyan-95: hsl(196, 100%, 95%);--Cyan-Main-43: hsl(196, 100%, 43%);--Black: hsl(40 3% 10%);--White: hsl(40 3% 100%);--Light: hsl(40, 3%, 90%);--Default: hsl(40, 3%, 79%);--Medium: hsl(40, 3%, 75%);--Strong: hsl(218, 100%, 28%);--Emphasis: hsl(223, 67%, 18%);--vui-animation-duration-0: 0ms;--vui-animation-duration-100: .13s;--vui-animation-duration-200: .16s;--vui-animation-duration-300: .19s;--vui-animation-duration-400: .22s;--vui-animation-duration-500: .25s;--vui-animation-duration-600: .3s;--vui-animation-duration-700: .35s;--vui-animation-duration-800: .4s;--vui-animation-duration-900: .45s;--vui-animation-duration-1000: .5s;--vui-animation-duration-2000: 1s;--vui-animation-duration-4000: 2s;--vui-animation-ease-in-out: cubic-bezier(.45, 0, .4, 1);--vui-animation-ease-in: cubic-bezier(.5, 0, 1, 1);--vui-animation-ease-out: cubic-bezier(0, 0, .4, 1);--vui-animation-linear: cubic-bezier(0, 0, 1, 1);--vui-elevation-1: 0 6px 23px -10px hsla(223, 67%, 18%, .2);--vui-elevation-2: 0 9px 20px -6px hsla(223, 67%, 18%, .2);--vui-elevation-3: 0 12px 23px -4px hsla(223, 67%, 18%, .2);--vui-elevation-4: 0 15px 23px 0 hsla(223, 67%, 18%, .2)}h1,.h1{font-family:Avenir Next;font-size:3.125rem;font-style:normal;font-weight:400;line-height:1.24}@media only screen and (max-width: 992px){h1,.h1{font-size:1.9375rem;line-height:1.5483870967741935}}h1,.h1{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}h2,.h2{font-family:Avenir Next;font-size:2rem;font-style:normal;font-weight:400;line-height:1.3125}@media only screen and (max-width: 992px){h2,.h2{font-size:1.75rem;line-height:1.3571428571428572}}h2,.h2{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}h3,.h3{font-family:Avenir Next;font-size:1.5rem;font-style:normal;font-weight:400;line-height:1.3333333333333333}@media only screen and (max-width: 992px){h3,.h3{font-size:1.375rem;line-height:1.4545454545454546}}h3,.h3{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}h4,.h4{font-family:Avenir Next;font-size:1.25rem;font-style:normal;font-weight:600;line-height:1.2}@media only screen and (max-width: 992px){h4,.h4{font-size:1.125rem;line-height:1.3333333333333333}}h4,.h4{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}h5,.h5{font-family:Avenir Next;font-size:1.125rem;font-style:normal;font-weight:600;line-height:1.4444444444444444}@media only screen and (max-width: 992px){h5,.h5{font-size:1rem;line-height:1.375}}h5,.h5{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}h6,.h6{font-family:Avenir Next;font-size:1rem;font-style:normal;font-weight:600;line-height:1.375;color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.sideMenuItem>.icon{width:24px;height:24px}.avatar{font-family:Avenir Next;font-weight:500;font-style:normal;align-items:center;background:#e6e6e5;border-radius:9999px;color:#353431;display:inline-flex;justify-content:center;overflow:hidden;text-transform:uppercase}.avatar.avatar-xl{font-size:1.125rem;line-height:1.5555555555555556;height:3rem;width:3rem}.avatar.avatar-lg{font-size:1rem;line-height:1.5;height:2.5rem;width:2.5rem}.avatar.avatar-md{font-size:.875rem;line-height:1.4285714285714286;height:2rem;width:2rem}.avatar.avatar-sm{font-size:.75rem;line-height:1.3333333333333333;height:1.5rem;width:1.5rem}.avatar.avatar-xxl{font-size:1.125rem;line-height:1.5555555555555556;height:3.5rem;width:3.5rem}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding:.1875em .375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-left:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding:.1428571em .3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding:.6666667em 1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-left:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:1em;padding-bottom:.6666667em;padding-left:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding:.6666667em 1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-neutral{--tw-prose-body: #404040;--tw-prose-headings: #171717;--tw-prose-lead: #525252;--tw-prose-links: #171717;--tw-prose-bold: #171717;--tw-prose-counters: #737373;--tw-prose-bullets: #d4d4d4;--tw-prose-hr: #e5e5e5;--tw-prose-quotes: #171717;--tw-prose-quote-borders: #e5e5e5;--tw-prose-captions: #737373;--tw-prose-kbd: #171717;--tw-prose-kbd-shadows: 23 23 23;--tw-prose-code: #171717;--tw-prose-pre-code: #e5e5e5;--tw-prose-pre-bg: #262626;--tw-prose-th-borders: #d4d4d4;--tw-prose-td-borders: #e5e5e5;--tw-prose-invert-body: #d4d4d4;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #a3a3a3;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #a3a3a3;--tw-prose-invert-bullets: #525252;--tw-prose-invert-hr: #404040;--tw-prose-invert-quotes: #f5f5f5;--tw-prose-invert-quote-borders: #404040;--tw-prose-invert-captions: #a3a3a3;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d4d4d4;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #525252;--tw-prose-invert-td-borders: #404040}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.left-\\[-3\\.25rem\\]{left:-3.25rem}.top-0{top:0}.top-\\[3\\%\\]{top:3%}.inline{display:inline}.flex{display:flex}.table{display:table}.h-6{height:1.5rem}.h-\\[1\\.421875rem\\]{height:1.421875rem}.w-6{width:1.5rem}.max-w-none{max-width:none}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-Light>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:hsl(40 3% 90% / var(--tw-divide-opacity))}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-Light{--tw-border-opacity: 1;border-color:hsl(40 3% 90% / var(--tw-border-opacity))}.bg-Dark-Blue-Main-18{--tw-bg-opacity: 1;background-color:hsl(223 67% 18% / var(--tw-bg-opacity))}.bg-Energy-Red-95{--tw-bg-opacity: 1;background-color:hsl(357 83% 95% / var(--tw-bg-opacity))}.bg-Eucalyptus-85{--tw-bg-opacity: 1;background-color:hsl(178 80% 85% / var(--tw-bg-opacity))}.bg-Land-Green-95{--tw-bg-opacity: 1;background-color:hsl(114 49% 95% / var(--tw-bg-opacity))}.bg-Lavender-90{--tw-bg-opacity: 1;background-color:hsl(232 58% 90% / var(--tw-bg-opacity))}.bg-Sea-Blue-Main-28{--tw-bg-opacity: 1;background-color:hsl(218 100% 28% / var(--tw-bg-opacity))}.bg-Sunflower-85{--tw-bg-opacity: 1;background-color:hsl(55 100% 85% / var(--tw-bg-opacity))}.bg-Terracotta-85{--tw-bg-opacity: 1;background-color:hsl(34 100% 85% / var(--tw-bg-opacity))}.bg-White{--tw-bg-opacity: 1;background-color:hsl(40 3% 100% / var(--tw-bg-opacity))}.p-5{padding:1.25rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.pb-2{padding-bottom:.5rem}.pt-2{padding-top:.5rem}.text-\\[0\\.875rem\\]{font-size:.875rem}.text-Energy-Red-45{--tw-text-opacity: 1;color:hsl(357 83% 45% / var(--tw-text-opacity))}.text-Energy-Red-Main-54{--tw-text-opacity: 1;color:hsl(357 83% 54% / var(--tw-text-opacity))}.text-Eucalyptus-20{--tw-text-opacity: 1;color:hsl(178 80% 20% / var(--tw-text-opacity))}.text-Land-Green-30{--tw-text-opacity: 1;color:hsl(114 49% 30% / var(--tw-text-opacity))}.text-Land-Green-Main-41{--tw-text-opacity: 1;color:hsl(114 49% 41% / var(--tw-text-opacity))}.text-Lavender-50{--tw-text-opacity: 1;color:hsl(232 58% 50% / var(--tw-text-opacity))}.text-Sandstone-Main-79{--tw-text-opacity: 1;color:hsl(40 3% 79% / var(--tw-text-opacity))}.text-Sea-Blue-Main-28{--tw-text-opacity: 1;color:hsl(218 100% 28% / var(--tw-text-opacity))}.text-Sky-Blue-95{--tw-text-opacity: 1;color:hsl(196 74% 95% / var(--tw-text-opacity))}.text-Sunflower-20{--tw-text-opacity: 1;color:hsl(55 100% 20% / var(--tw-text-opacity))}.text-Terracotta-20{--tw-text-opacity: 1;color:hsl(34 100% 20% / var(--tw-text-opacity))}.text-Terracotta-Main-35{--tw-text-opacity: 1;color:hsl(34 100% 35% / var(--tw-text-opacity))}.text-White{--tw-text-opacity: 1;color:hsl(40 3% 100% / var(--tw-text-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.title{font-family:DNV Display;font-size:4rem;font-style:normal;font-weight:400;line-height:1.15625}@media only screen and (max-width: 992px){.title{font-size:2.625rem;line-height:1.2380952380952381}}.title{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}:is(.dark .title){color:var(--White, hsl(40 3% 100%))}.first\\:pt-0:first-child{padding-top:0}.last\\:pb-0:last-child{padding-bottom:0}.prose-code\\:text-\\[1em\\] :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:1em}',fs="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#ddd;background:#303030}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-section,.hljs-link{color:#fff}.hljs-string,.hljs-title,.hljs-name,.hljs-type,.hljs-attribute,.hljs-symbol,.hljs-bullet,.hljs-built_in,.hljs-addition,.hljs-variable,.hljs-template-tag,.hljs-template-variable{color:#d88}.hljs-comment,.hljs-quote,.hljs-deletion,.hljs-meta{color:#979797}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-title,.hljs-section,.hljs-doctag,.hljs-type,.hljs-name,.hljs-strong{font-weight:700}.hljs-emphasis{font-style:italic}";class ms{constructor(n){O(this,"node");O(this,"userId");O(this,"avatarLetters");O(this,"url");O(this,"messagesNode");O(this,"messages",[]);O(this,"statusNode");O(this,"_canSubmit",!0);O(this,"_generatingNode");O(this,"_functionIdToParentFunctionId",{});O(this,"_groupByFunctionId",{});this.userId=n.userId,this.avatarLetters=n.avatarLetters,this.url=n.url,this.node=z("div",null);const t=document.createElement("style");t.textContent=gs+`
|
|
4
|
-
`+fs;const r=this.node.attachShadow({mode:"closed"});r.appendChild(t),r.appendChild(z("div",{class:"flex flex-col gap-4"},this.messagesNode=z("ol",{class:"flex flex-col gap-4"}),this.statusNode=z("div",{class:"select-none text-[0.875rem] h-[1.421875rem] overflow-hidden"})))}get canSubmit(){return this._canSubmit}get generatingNode(){return this._generatingNode||(this._generatingNode=z("div",{class:"flex gap-2 items-center text-seaBlue-80"},z(Ct,{size:tt.ExtraSmall}),"Generating response…"))}setGeneratingStatus(){const n=this.generatingNode,t=this.statusNode.firstChild;t?t!==n&&t.replaceWith(this.generatingNode):this.statusNode.appendChild(this.generatingNode)}clearStatus(){var n;(n=this.statusNode.firstChild)==null||n.remove()}async submitMessageAsync(n){if(!this._canSubmit)throw new Error("Cannot submit message because another message is currently being processed");this._canSubmit=!1;try{this.setGeneratingStatus();const t=new os(this,n,this.userId,this.avatarLetters);this.messages.push(t),this.messagesNode.appendChild(t.node),this.setGeneratingStatus();const r=new ps;await r.initializeConnectionAsync(this.url,this.messages.map(s=>s.toDto()));let i;for await(const s of r.readMessagesAsync())switch(s.type){case J.Init:i=null;break;case J.AppendMessage:i instanceof ln||(i=new ln(this,void 0,z(Wn,{class:"absolute top-0 left-[-3.25rem] shadow-md"})),this.messages.push(i),this.messagesNode.appendChild(i.node));const o=i.message;i.updateMessage(o?o+s.appendMessageMarkdown:s.appendMessageMarkdown);break;case J.ToolCallUpdate:{s.toolCallFunctionId&&(this._functionIdToParentFunctionId[s.toolCallFunctionId]=s.parentFunctionId),i instanceof gt||(i=new gt,this.messagesNode.appendChild(i.node)),s.toolCallFunctionId&&(this._groupByFunctionId[s.toolCallFunctionId]=i),i.aggregate(s.toolCallFunctionId,s.toolCallUpdateIndex,s.toolCallUpdateName,s.toolCallUpdateArguments);break}case J.ToolCallStatus:{const a=this._groupByFunctionId[s.toolCallFunctionId];if(a)a.status(s.toolCallFunctionId,s.toolCallStatusIndex,s.toolCallStatusProgress,s.toolCallIcon,s.toolCallMarkdown);else debugger;break}case J.ToolCallLog:{const a=this._groupByFunctionId[s.toolCallFunctionId];if(a)a.log(s.toolCallFunctionId,s.toolCallLogLevel,s.toolCallTime,s.toolCallMarkdown);else debugger;break}case J.Loop:i instanceof gt&&i.completeAggregation(),i=null;break;case J.ToolCallDone:{const a=this._groupByFunctionId[s.toolCallFunctionId];if(a)a.done(s.toolCallFunctionId);else debugger;break}case J.ToolCallError:{const a=this._groupByFunctionId[s.toolCallFunctionId];if(a)a.error(s.toolCallFunctionId);else debugger;break}default:i=null;break}}finally{this.clearStatus(),this._canSubmit=!0}}}function bs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dn(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(n=>{const t=e[n],r=typeof t;(r==="object"||r==="function")&&!Object.isFrozen(t)&&dn(t)}),e}class pn{constructor(n){n.data===void 0&&(n.data={}),this.data=n.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function gn(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Te(e,...n){const t=Object.create(null);for(const r in e)t[r]=e[r];return n.forEach(function(r){for(const i in r)t[i]=r[i]}),t}const ws="</span>",fn=e=>!!e.scope,ys=(e,{prefix:n})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const t=e.split(".");return[`${n}${t.shift()}`,...t.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${n}${e}`};class xs{constructor(n,t){this.buffer="",this.classPrefix=t.classPrefix,n.walk(this)}addText(n){this.buffer+=gn(n)}openNode(n){if(!fn(n))return;const t=ys(n.scope,{prefix:this.classPrefix});this.span(t)}closeNode(n){fn(n)&&(this.buffer+=ws)}value(){return this.buffer}span(n){this.buffer+=`<span class="${n}">`}}const mn=(e={})=>{const n={children:[]};return Object.assign(n,e),n};class ft{constructor(){this.rootNode=mn(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(n){this.top.children.push(n)}openNode(n){const t=mn({scope:n});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(n){return this.constructor._walk(n,this.rootNode)}static _walk(n,t){return typeof t=="string"?n.addText(t):t.children&&(n.openNode(t),t.children.forEach(r=>this._walk(n,r)),n.closeNode(t)),n}static _collapse(n){typeof n!="string"&&n.children&&(n.children.every(t=>typeof t=="string")?n.children=[n.children.join("")]:n.children.forEach(t=>{ft._collapse(t)}))}}class Es extends ft{constructor(n){super(),this.options=n}addText(n){n!==""&&this.add(n)}startScope(n){this.openNode(n)}endScope(){this.closeNode()}__addSublanguage(n,t){const r=n.root;t&&(r.scope=`language:${t}`),this.add(r)}toHTML(){return new xs(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function He(e){return e?typeof e=="string"?e:e.source:null}function bn(e){return Ne("(?=",e,")")}function ks(e){return Ne("(?:",e,")*")}function _s(e){return Ne("(?:",e,")?")}function Ne(...e){return e.map(t=>He(t)).join("")}function Ss(e){const n=e[e.length-1];return typeof n=="object"&&n.constructor===Object?(e.splice(e.length-1,1),n):{}}function mt(...e){return"("+(Ss(e).capture?"":"?:")+e.map(r=>He(r)).join("|")+")"}function wn(e){return new RegExp(e.toString()+"|").exec("").length-1}function As(e,n){const t=e&&e.exec(n);return t&&t.index===0}const Cs=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function bt(e,{joinWith:n}){let t=0;return e.map(r=>{t+=1;const i=t;let s=He(r),o="";for(;s.length>0;){const a=Cs.exec(s);if(!a){o+=s;break}o+=s.substring(0,a.index),s=s.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?o+="\\"+String(Number(a[1])+i):(o+=a[0],a[0]==="("&&t++)}return o}).map(r=>`(${r})`).join(n)}const Ts=/\b\B/,yn="[a-zA-Z]\\w*",wt="[a-zA-Z_]\\w*",xn="\\b\\d+(\\.\\d+)?",En="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",kn="\\b(0b[01]+)",Is="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ns=(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=Ne(n,/.*\b/,e.binary,/\b.*/)),Te({scope:"meta",begin:n,end:/$/,relevance:0,"on:begin":(t,r)=>{t.index!==0&&r.ignoreMatch()}},e)},$e={begin:"\\\\[\\s\\S]",relevance:0},vs={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[$e]},Ms={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[$e]},Rs={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Qe=function(e,n,t={}){const r=Te({scope:"comment",begin:e,end:n,contains:[]},t);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=mt("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Ne(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Os=Qe("//","$"),Ls=Qe("/\\*","\\*/"),Bs=Qe("#","$"),Ds={scope:"number",begin:xn,relevance:0},zs={scope:"number",begin:En,relevance:0},Ps={scope:"number",begin:kn,relevance:0},Fs={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[$e,{begin:/\[/,end:/\]/,relevance:0,contains:[$e]}]},Us={scope:"title",begin:yn,relevance:0},Gs={scope:"title",begin:wt,relevance:0},Hs={begin:"\\.\\s*"+wt,relevance:0};var Ye=Object.freeze({__proto__:null,APOS_STRING_MODE:vs,BACKSLASH_ESCAPE:$e,BINARY_NUMBER_MODE:Ps,BINARY_NUMBER_RE:kn,COMMENT:Qe,C_BLOCK_COMMENT_MODE:Ls,C_LINE_COMMENT_MODE:Os,C_NUMBER_MODE:zs,C_NUMBER_RE:En,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(n,t)=>{t.data._beginMatch=n[1]},"on:end":(n,t)=>{t.data._beginMatch!==n[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:Bs,IDENT_RE:yn,MATCH_NOTHING_RE:Ts,METHOD_GUARD:Hs,NUMBER_MODE:Ds,NUMBER_RE:xn,PHRASAL_WORDS_MODE:Rs,QUOTE_STRING_MODE:Ms,REGEXP_MODE:Fs,RE_STARTERS_RE:Is,SHEBANG:Ns,TITLE_MODE:Us,UNDERSCORE_IDENT_RE:wt,UNDERSCORE_TITLE_MODE:Gs});function $s(e,n){e.input[e.index-1]==="."&&n.ignoreMatch()}function qs(e,n){e.className!==void 0&&(e.scope=e.className,delete e.className)}function Vs(e,n){n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=$s,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function js(e,n){Array.isArray(e.illegal)&&(e.illegal=mt(...e.illegal))}function Ws(e,n){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Ks(e,n){e.relevance===void 0&&(e.relevance=1)}const Zs=(e,n)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=t.keywords,e.begin=Ne(t.beforeMatch,bn(t.begin)),e.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},e.relevance=0,delete t.beforeMatch},Qs=["of","and","for","in","not","or","if","then","parent","list","value"],Ys="keyword";function _n(e,n,t=Ys){const r=Object.create(null);return typeof e=="string"?i(t,e.split(" ")):Array.isArray(e)?i(t,e):Object.keys(e).forEach(function(s){Object.assign(r,_n(e[s],n,s))}),r;function i(s,o){n&&(o=o.map(a=>a.toLowerCase())),o.forEach(function(a){const u=a.split("|");r[u[0]]=[s,Xs(u[0],u[1])]})}}function Xs(e,n){return n?Number(n):Js(e)?0:1}function Js(e){return Qs.includes(e.toLowerCase())}const Sn={},ve=e=>{console.error(e)},An=(e,...n)=>{console.log(`WARN: ${e}`,...n)},De=(e,n)=>{Sn[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),Sn[`${e}/${n}`]=!0)},Xe=new Error;function Cn(e,n,{key:t}){let r=0;const i=e[t],s={},o={};for(let a=1;a<=n.length;a++)o[a+r]=i[a],s[a+r]=!0,r+=wn(n[a-1]);e[t]=o,e[t]._emit=s,e[t]._multi=!0}function eo(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw ve("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Xe;if(typeof e.beginScope!="object"||e.beginScope===null)throw ve("beginScope must be object"),Xe;Cn(e,e.begin,{key:"beginScope"}),e.begin=bt(e.begin,{joinWith:""})}}function to(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw ve("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Xe;if(typeof e.endScope!="object"||e.endScope===null)throw ve("endScope must be object"),Xe;Cn(e,e.end,{key:"endScope"}),e.end=bt(e.end,{joinWith:""})}}function no(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function ro(e){no(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),eo(e),to(e)}function io(e){function n(o,a){return new RegExp(He(o),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(a?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,u){u.position=this.position++,this.matchIndexes[this.matchAt]=u,this.regexes.push([u,a]),this.matchAt+=wn(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(u=>u[1]);this.matcherRe=n(bt(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const u=this.matcherRe.exec(a);if(!u)return null;const c=u.findIndex((g,f)=>f>0&&g!==void 0),p=this.matchIndexes[c];return u.splice(0,c),Object.assign(u,p)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const u=new t;return this.rules.slice(a).forEach(([c,p])=>u.addRule(c,p)),u.compile(),this.multiRegexes[a]=u,u}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,u){this.rules.push([a,u]),u.type==="begin"&&this.count++}exec(a){const u=this.getMatcher(this.regexIndex);u.lastIndex=this.lastIndex;let c=u.exec(a);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const p=this.getMatcher(0);p.lastIndex=this.lastIndex+1,c=p.exec(a)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(o){const a=new r;return o.contains.forEach(u=>a.addRule(u.begin,{rule:u,type:"begin"})),o.terminatorEnd&&a.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&a.addRule(o.illegal,{type:"illegal"}),a}function s(o,a){const u=o;if(o.isCompiled)return u;[qs,Ws,ro,Zs].forEach(p=>p(o,a)),e.compilerExtensions.forEach(p=>p(o,a)),o.__beforeBegin=null,[Vs,js,Ks].forEach(p=>p(o,a)),o.isCompiled=!0;let c=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),c=o.keywords.$pattern,delete o.keywords.$pattern),c=c||/\w+/,o.keywords&&(o.keywords=_n(o.keywords,e.case_insensitive)),u.keywordPatternRe=n(c,!0),a&&(o.begin||(o.begin=/\B|\b/),u.beginRe=n(u.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(u.endRe=n(u.end)),u.terminatorEnd=He(u.end)||"",o.endsWithParent&&a.terminatorEnd&&(u.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(u.illegalRe=n(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(p){return so(p==="self"?o:p)})),o.contains.forEach(function(p){s(p,u)}),o.starts&&s(o.starts,a),u.matcher=i(u),u}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Te(e.classNameAliases||{}),s(e)}function Tn(e){return e?e.endsWithParent||Tn(e.starts):!1}function so(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(n){return Te(e,{variants:null},n)})),e.cachedVariants?e.cachedVariants:Tn(e)?Te(e,{starts:e.starts?Te(e.starts):null}):Object.isFrozen(e)?Te(e):e}var oo="11.9.0";class ao extends Error{constructor(n,t){super(n),this.name="HTMLInjectionError",this.html=t}}const yt=gn,In=Te,Nn=Symbol("nomatch"),lo=7,vn=function(e){const n=Object.create(null),t=Object.create(null),r=[];let i=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Es};function u(x){return a.noHighlightRe.test(x)}function c(x){let k=x.className+" ";k+=x.parentNode?x.parentNode.className:"";const v=a.languageDetectRe.exec(k);if(v){const l=B(v[1]);return l||(An(s.replace("{}",v[1])),An("Falling back to no-highlight mode for this block.",x)),l?v[1]:"no-highlight"}return k.split(/\s+/).find(l=>u(l)||B(l))}function p(x,k,v){let l="",F="";typeof k=="object"?(l=x,v=k.ignoreIllegals,F=k.language):(De("10.7.0","highlight(lang, code, ...args) has been deprecated."),De("10.7.0",`Please use highlight(code, options) instead.
|
|
5
|
-
https://github.com/highlightjs/highlight.js/issues/2277`),F=x,l=k),v===void 0&&(v=!0);const Q={code:l,language:F};D("before:highlight",Q);const h=Q.result?Q.result:g(Q.language,Q.code,v);return h.code=Q.code,D("after:highlight",h),h}function g(x,k,v,l){const F=Object.create(null);function Q(w,E){return w.keywords[E]}function h(){if(!L.keywords){re.addText(X);return}let w=0;L.keywordPatternRe.lastIndex=0;let E=L.keywordPatternRe.exec(X),T="";for(;E;){T+=X.substring(w,E.index);const U=he.case_insensitive?E[0].toLowerCase():E[0],te=Q(L,U);if(te){const[ie,Re]=te;if(re.addText(T),T="",F[U]=(F[U]||0)+1,F[U]<=lo&&(Fe+=Re),ie.startsWith("_"))T+=E[0];else{const Oe=he.classNameAliases[ie]||ie;Y(E[0],Oe)}}else T+=E[0];w=L.keywordPatternRe.lastIndex,E=L.keywordPatternRe.exec(X)}T+=X.substring(w),re.addText(T)}function oe(){if(X==="")return;let w=null;if(typeof L.subLanguage=="string"){if(!n[L.subLanguage]){re.addText(X);return}w=g(L.subLanguage,X,!0,et[L.subLanguage]),et[L.subLanguage]=w._top}else w=d(X,L.subLanguage.length?L.subLanguage:null);L.relevance>0&&(Fe+=w.relevance),re.__addSublanguage(w._emitter,w.language)}function ne(){L.subLanguage!=null?oe():h(),X=""}function Y(w,E){w!==""&&(re.startScope(E),re.addText(w),re.endScope())}function Ie(w,E){let T=1;const U=E.length-1;for(;T<=U;){if(!w._emit[T]){T++;continue}const te=he.classNameAliases[w[T]]||w[T],ie=E[T];te?Y(ie,te):(X=ie,h(),X=""),T++}}function me(w,E){return w.scope&&typeof w.scope=="string"&&re.openNode(he.classNameAliases[w.scope]||w.scope),w.beginScope&&(w.beginScope._wrap?(Y(X,he.classNameAliases[w.beginScope._wrap]||w.beginScope._wrap),X=""):w.beginScope._multi&&(Ie(w.beginScope,E),X="")),L=Object.create(w,{parent:{value:L}}),L}function Ee(w,E,T){let U=As(w.endRe,T);if(U){if(w["on:end"]){const te=new pn(w);w["on:end"](E,te),te.isMatchIgnored&&(U=!1)}if(U){for(;w.endsParent&&w.parent;)w=w.parent;return w}}if(w.endsWithParent)return Ee(w.parent,E,T)}function ke(w){return L.matcher.regexIndex===0?(X+=w[0],1):(S=!0,0)}function qe(w){const E=w[0],T=w.rule,U=new pn(T),te=[T.__beforeBegin,T["on:begin"]];for(const ie of te)if(ie&&(ie(w,U),U.isMatchIgnored))return ke(E);return T.skip?X+=E:(T.excludeBegin&&(X+=E),ne(),!T.returnBegin&&!T.excludeBegin&&(X=E)),me(T,w),T.returnBegin?0:E.length}function xt(w){const E=w[0],T=k.substring(w.index),U=Ee(L,w,T);if(!U)return Nn;const te=L;L.endScope&&L.endScope._wrap?(ne(),Y(E,L.endScope._wrap)):L.endScope&&L.endScope._multi?(ne(),Ie(L.endScope,w)):te.skip?X+=E:(te.returnEnd||te.excludeEnd||(X+=E),ne(),te.excludeEnd&&(X=E));do L.scope&&re.closeNode(),!L.skip&&!L.subLanguage&&(Fe+=L.relevance),L=L.parent;while(L!==U.parent);return U.starts&&me(U.starts,w),te.returnEnd?0:E.length}function Et(){const w=[];for(let E=L;E!==he;E=E.parent)E.scope&&w.unshift(E.scope);w.forEach(E=>re.openNode(E))}let Me={};function Ve(w,E){const T=E&&E[0];if(X+=w,T==null)return ne(),0;if(Me.type==="begin"&&E.type==="end"&&Me.index===E.index&&T===""){if(X+=k.slice(E.index,E.index+1),!i){const U=new Error(`0 width match regex (${x})`);throw U.languageName=x,U.badRule=Me.rule,U}return 1}if(Me=E,E.type==="begin")return qe(E);if(E.type==="illegal"&&!v){const U=new Error('Illegal lexeme "'+T+'" for mode "'+(L.scope||"<unnamed>")+'"');throw U.mode=L,U}else if(E.type==="end"){const U=xt(E);if(U!==Nn)return U}if(E.type==="illegal"&&T==="")return 1;if(b>1e5&&b>E.index*3)throw new Error("potential infinite loop, way more iterations than matches");return X+=T,T.length}const he=B(x);if(!he)throw ve(s.replace("{}",x)),new Error('Unknown language: "'+x+'"');const kt=io(he);let Pe="",L=l||kt;const et={},re=new a.__emitter(a);Et();let X="",Fe=0,_e=0,b=0,S=!1;try{if(he.__emitTokens)he.__emitTokens(k,re);else{for(L.matcher.considerAll();;){b++,S?S=!1:L.matcher.considerAll(),L.matcher.lastIndex=_e;const w=L.matcher.exec(k);if(!w)break;const E=k.substring(_e,w.index),T=Ve(E,w);_e=w.index+T}Ve(k.substring(_e))}return re.finalize(),Pe=re.toHTML(),{language:x,value:Pe,relevance:Fe,illegal:!1,_emitter:re,_top:L}}catch(w){if(w.message&&w.message.includes("Illegal"))return{language:x,value:yt(k),illegal:!0,relevance:0,_illegalBy:{message:w.message,index:_e,context:k.slice(_e-100,_e+100),mode:w.mode,resultSoFar:Pe},_emitter:re};if(i)return{language:x,value:yt(k),illegal:!1,relevance:0,errorRaised:w,_emitter:re,_top:L};throw w}}function f(x){const k={value:yt(x),illegal:!1,relevance:0,_top:o,_emitter:new a.__emitter(a)};return k._emitter.addText(x),k}function d(x,k){k=k||a.languages||Object.keys(n);const v=f(x),l=k.filter(B).filter(I).map(ne=>g(ne,x,!1));l.unshift(v);const F=l.sort((ne,Y)=>{if(ne.relevance!==Y.relevance)return Y.relevance-ne.relevance;if(ne.language&&Y.language){if(B(ne.language).supersetOf===Y.language)return 1;if(B(Y.language).supersetOf===ne.language)return-1}return 0}),[Q,h]=F,oe=Q;return oe.secondBest=h,oe}function A(x,k,v){const l=k&&t[k]||v;x.classList.add("hljs"),x.classList.add(`language-${l}`)}function M(x){let k=null;const v=c(x);if(u(v))return;if(D("before:highlightElement",{el:x,language:v}),x.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",x);return}if(x.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(x)),a.throwUnescapedHTML))throw new ao("One of your code blocks includes unescaped HTML.",x.innerHTML);k=x;const l=k.textContent,F=v?p(l,{language:v,ignoreIllegals:!0}):d(l);x.innerHTML=F.value,x.dataset.highlighted="yes",A(x,v,F.language),x.result={language:F.language,re:F.relevance,relevance:F.relevance},F.secondBest&&(x.secondBest={language:F.secondBest.language,relevance:F.secondBest.relevance}),D("after:highlightElement",{el:x,result:F,text:l})}function P(x){a=In(a,x)}const _=()=>{G(),De("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function q(){G(),De("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let C=!1;function G(){if(document.readyState==="loading"){C=!0;return}document.querySelectorAll(a.cssSelector).forEach(M)}function H(){C&&G()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",H,!1);function y(x,k){let v=null;try{v=k(e)}catch(l){if(ve("Language definition for '{}' could not be registered.".replace("{}",x)),i)ve(l);else throw l;v=o}v.name||(v.name=x),n[x]=v,v.rawDefinition=k.bind(null,e),v.aliases&&m(v.aliases,{languageName:x})}function $(x){delete n[x];for(const k of Object.keys(t))t[k]===x&&delete t[k]}function j(){return Object.keys(n)}function B(x){return x=(x||"").toLowerCase(),n[x]||n[t[x]]}function m(x,{languageName:k}){typeof x=="string"&&(x=[x]),x.forEach(v=>{t[v.toLowerCase()]=k})}function I(x){const k=B(x);return k&&!k.disableAutodetect}function N(x){x["before:highlightBlock"]&&!x["before:highlightElement"]&&(x["before:highlightElement"]=k=>{x["before:highlightBlock"](Object.assign({block:k.el},k))}),x["after:highlightBlock"]&&!x["after:highlightElement"]&&(x["after:highlightElement"]=k=>{x["after:highlightBlock"](Object.assign({block:k.el},k))})}function W(x){N(x),r.push(x)}function Z(x){const k=r.indexOf(x);k!==-1&&r.splice(k,1)}function D(x,k){const v=x;r.forEach(function(l){l[v]&&l[v](k)})}function ee(x){return De("10.7.0","highlightBlock will be removed entirely in v12.0"),De("10.7.0","Please use highlightElement now."),M(x)}Object.assign(e,{highlight:p,highlightAuto:d,highlightAll:G,highlightElement:M,highlightBlock:ee,configure:P,initHighlighting:_,initHighlightingOnLoad:q,registerLanguage:y,unregisterLanguage:$,listLanguages:j,getLanguage:B,registerAliases:m,autoDetection:I,inherit:In,addPlugin:W,removePlugin:Z}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=oo,e.regex={concat:Ne,lookahead:bn,either:mt,optional:_s,anyNumberOfTimes:ks};for(const x in Ye)typeof Ye[x]=="object"&&dn(Ye[x]);return Object.assign(e,Ye),e},ze=vn({});ze.newInstance=()=>vn({});var co=ze;ze.HighlightJS=ze,ze.default=ze;const Mn=bs(co),uo=Object.freeze(Object.defineProperty({__proto__:null,HighlightJS:Mn,default:Mn},Symbol.toStringTag,{value:"Module"})),Rn="[A-Za-z$_][0-9A-Za-z$_]*",ho=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],po=["true","false","null","undefined","NaN","Infinity"],On=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Ln=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Bn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],go=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],fo=[].concat(Bn,On,Ln);function mo(e){const n=e.regex,t=(k,{after:v})=>{const l="</"+k[0].slice(1);return k.input.indexOf(l,v)!==-1},r=Rn,i={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(k,v)=>{const l=k[0].length+k.index,F=k.input[l];if(F==="<"||F===","){v.ignoreMatch();return}F===">"&&(t(k,{after:l})||v.ignoreMatch());let Q;const h=k.input.substring(l);if(Q=h.match(/^\s*=/)){v.ignoreMatch();return}if((Q=h.match(/^\s+extends\s+/))&&Q.index===0){v.ignoreMatch();return}}},a={$pattern:Rn,keyword:ho,literal:po,built_in:fo,"variable.language":go},u="[0-9](_?[0-9])*",c=`\\.(${u})`,p="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${p})((${c})|\\.)?|(${c}))[eE][+-]?(${u})\\b`},{begin:`\\b(${p})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},A={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},M={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},P={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},q={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},C=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,A,M,P,{match:/\$\d+/},g];f.contains=C.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(C)});const G=[].concat(q,f.contains),H=G.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(G)}]),y={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:H},$={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,n.concat(r,"(",n.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},j={relevance:0,match:n.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...On,...Ln]}},B={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},m={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],illegal:/%/},I={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function N(k){return n.concat("(?!",k.join("|"),")")}const W={match:n.concat(/\b/,N([...Bn,"super","import"]),r,n.lookahead(/\(/)),className:"title.function",relevance:0},Z={begin:n.concat(/\./,n.lookahead(n.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},D={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},ee="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",x={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(ee)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:H,CLASS_REFERENCE:j},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),B,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,A,M,P,q,{match:/\$\d+/},g,j,{className:"attr",begin:r+n.lookahead(":"),relevance:0},x,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,e.REGEXP_MODE,{className:"function",begin:ee,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:H}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:s},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},m,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[y,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Z,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[y]},W,I,$,D,{match:/\$[(.]/}]}}const bo=Object.freeze(Object.defineProperty({__proto__:null,default:mo},Symbol.toStringTag,{value:"Module"}));function wo(e){const n=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],t=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(s),built_in:n,literal:r},a=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},p=e.inherit(c,{illegal:/\n/}),g={className:"subst",begin:/\{/,end:/\}/,keywords:o},f=e.inherit(g,{illegal:/\n/}),d={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,f]},A={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},g]},M=e.inherit(A,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});g.contains=[A,d,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.C_BLOCK_COMMENT_MODE],f.contains=[M,d,p,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const P={variants:[A,d,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},_={begin:"<",end:">",contains:[{beginKeywords:"in out"},a]},q=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",C={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},P,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},a,_,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,_,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+q+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:t.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,_],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[P,u,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},C]}}const yo=Object.freeze(Object.defineProperty({__proto__:null,default:wo},Symbol.toStringTag,{value:"Module"}));function xo(e){const n=e.regex,t=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],a={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:a,illegal:/#/},p={begin:/\{\{/,relevance:0},g={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u,p,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u,p,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,p,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,p,c]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",d=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,A=`\\b|${r.join("|")}`,M={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${d}))[eE][+-]?(${f})[jJ]?(?=${A})`},{begin:`(${d})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${A})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${A})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${A})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${A})`},{begin:`\\b(${f})[jJ](?=${A})`}]},P={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:a,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},_={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:["self",u,M,g,e.HASH_COMMENT_MODE]}]};return c.contains=[g,M,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:a,illegal:/(<\/|\?)|=>/,contains:[u,M,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},g,P,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,t],scope:{1:"keyword",3:"title.function"},contains:[_]},{variants:[{match:[/\bclass/,/\s+/,t,/\s*/,/\(\s*/,t,/\s*\)/]},{match:[/\bclass/,/\s+/,t]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[M,_,g]}]}}const Eo=Object.freeze(Object.defineProperty({__proto__:null,default:xo},Symbol.toStringTag,{value:"Module"})),ko=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),_o=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],So=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],Ao=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],Co=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],To=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function Io(e){const n=e.regex,t=ko(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",s=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",a=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,r,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Ao.join("|")+")"},{begin:":(:)?("+Co.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+To.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:n.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:s},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:So.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+_o.join("|")+")\\b"}]}}const No=Object.freeze(Object.defineProperty({__proto__:null,default:Io},Symbol.toStringTag,{value:"Module"})),Je="[A-Za-z$_][0-9A-Za-z$_]*",Dn=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],zn=["true","false","null","undefined","NaN","Infinity"],Pn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Fn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Un=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Gn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Hn=[].concat(Un,Pn,Fn);function vo(e){const n=e.regex,t=(k,{after:v})=>{const l="</"+k[0].slice(1);return k.input.indexOf(l,v)!==-1},r=Je,i={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(k,v)=>{const l=k[0].length+k.index,F=k.input[l];if(F==="<"||F===","){v.ignoreMatch();return}F===">"&&(t(k,{after:l})||v.ignoreMatch());let Q;const h=k.input.substring(l);if(Q=h.match(/^\s*=/)){v.ignoreMatch();return}if((Q=h.match(/^\s+extends\s+/))&&Q.index===0){v.ignoreMatch();return}}},a={$pattern:Je,keyword:Dn,literal:zn,built_in:Hn,"variable.language":Gn},u="[0-9](_?[0-9])*",c=`\\.(${u})`,p="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${p})((${c})|\\.)?|(${c}))[eE][+-]?(${u})\\b`},{begin:`\\b(${p})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},A={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},M={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},P={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},q={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},C=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,A,M,P,{match:/\$\d+/},g];f.contains=C.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(C)});const G=[].concat(q,f.contains),H=G.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(G)}]),y={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:H},$={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,n.concat(r,"(",n.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},j={relevance:0,match:n.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Pn,...Fn]}},B={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},m={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],illegal:/%/},I={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function N(k){return n.concat("(?!",k.join("|"),")")}const W={match:n.concat(/\b/,N([...Un,"super","import"]),r,n.lookahead(/\(/)),className:"title.function",relevance:0},Z={begin:n.concat(/\./,n.lookahead(n.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},D={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},ee="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",x={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(ee)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:H,CLASS_REFERENCE:j},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),B,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,A,M,P,q,{match:/\$\d+/},g,j,{className:"attr",begin:r+n.lookahead(":"),relevance:0},x,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,e.REGEXP_MODE,{className:"function",begin:ee,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:H}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:s},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},m,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[y,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Z,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[y]},W,I,$,D,{match:/\$[(.]/}]}}function Mo(e){const n=vo(e),t=Je,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[n.exports.CLASS_REFERENCE]},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[n.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},a=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],u={$pattern:Je,keyword:Dn.concat(a),literal:zn,built_in:Hn.concat(r),"variable.language":Gn},c={className:"meta",begin:"@"+t},p=(f,d,A)=>{const M=f.contains.findIndex(P=>P.label===d);if(M===-1)throw new Error("can not find mode to replace");f.contains.splice(M,1,A)};Object.assign(n.keywords,u),n.exports.PARAMS_CONTAINS.push(c),n.contains=n.contains.concat([c,i,s]),p(n,"shebang",e.SHEBANG()),p(n,"use_strict",o);const g=n.contains.find(f=>f.label==="func.def");return g.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}const Ro=Object.freeze(Object.defineProperty({__proto__:null,default:Mo},Symbol.toStringTag,{value:"Module"}));pe.AIChat=ms,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})});
|
|
3
|
+
`;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(s)}i=s===-2,r.push(o)}return r.join("")}const Oi=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Br},disable:{null:[]},document:{42:le,43:le,45:le,48:le,49:le,50:le,51:le,52:le,53:le,54:le,55:le,56:le,57:le,62:Bt},flow:{35:Gr,42:We,45:[jt,We],60:jr,61:jt,95:We,96:Ft,126:Ft},flowInitial:{[-2]:at,[-1]:at,32:at},insideSpan:{null:[ot,Ci]},string:{38:zt,92:Dt},text:{[-5]:ct,[-4]:ct,[-3]:ct,33:ci,38:zt,42:ot,60:[dr,Xr],91:hi,92:[Fr,Dt],93:lt,95:ot,96:Ar}},Symbol.toStringTag,{value:"Module"}));function Li(e){const t=Yn([Oi,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:t,content:i(sr),document:i(ar),flow:i(Si),string:i(Ti),text:i(Ii)};return r;function i(s){return o;function o(a){return vi(r,s,a)}}}function Bi(e){for(;!Ut(e););return e}const Kt=/[\0\t\n\r]/g;function Di(){let e=1,n="",t=!0,r;return i;function i(s,o,a){const u=[];let c,p,g,f,d;for(s=n+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),g=0,n="",t&&(s.charCodeAt(0)===65279&&g++,t=void 0);g<s.length;){if(Kt.lastIndex=g,c=Kt.exec(s),f=c&&c.index!==void 0?c.index:s.length,d=s.charCodeAt(f),!c){n=s.slice(g);break}if(d===10&&g===f&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),g<f&&(u.push(s.slice(g,f)),e+=f-g),d){case 0:{u.push(65533),e++;break}case 9:{for(p=Math.ceil(e/4)*4,u.push(-2);e++<p;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}g=f+1}return a&&(r&&u.push(-5),n&&u.push(n),u.push(null)),u}}const zi=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Pi(e){return e.replace(zi,Fi)}function Fi(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),s=i===120||i===88;return Mt(t.slice(s?2:1),s?16:10)}return nt(t)||e}function Ke(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Zt(e.position):"start"in e||"end"in e?Zt(e):"line"in e||"column"in e?ut(e):""}function ut(e){return Qt(e&&e.line)+":"+Qt(e&&e.column)}function Zt(e){return ut(e&&e.start)+"-"+ut(e&&e.end)}function Qt(e){return e&&typeof e=="number"?e:1}const Yt={}.hasOwnProperty;function Ui(e,n,t){return typeof n!="string"&&(t=n,n=void 0),Gi(t)(Bi(Li(t).document().write(Di()(e,n,!0))))}function Gi(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(Pe),autolinkProtocol:B,autolinkEmail:B,atxHeading:s(Me),blockQuote:s(Ee),characterEscape:B,characterReference:B,codeFenced:s(ke),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(ke,o),codeText:s(qe,o),codeTextData:B,data:B,codeFlowValue:B,definition:s(xt),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(Et),hardBreakEscape:s(je),hardBreakTrailing:s(je),htmlFlow:s(he,o),htmlFlowData:B,htmlText:s(he,o),htmlTextData:B,image:s(kt),label:o,link:s(Pe),listItem:s(et),listItemValue:f,listOrdered:s(L,g),listUnordered:s(L),paragraph:s(re),reference:h,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(Me),strong:s(X),thematicBreak:s(_e)},exit:{atxHeading:u(),atxHeadingSequence:H,autolink:u(),autolinkEmail:me,autolinkProtocol:Ie,blockQuote:u(),characterEscapeValue:m,characterReferenceMarkerHexadecimal:ne,characterReferenceMarkerNumeric:ne,characterReferenceValue:Y,codeFenced:u(P),codeFencedFence:M,codeFencedFenceInfo:d,codeFencedFenceMeta:A,codeFlowValue:m,codeIndented:u(_),codeText:u(D),codeTextData:m,data:m,definition:u(),definitionDestinationString:G,definitionLabelString:q,definitionTitleString:C,emphasis:u(),hardBreakEscape:u(N),hardBreakTrailing:u(N),htmlFlow:u(W),htmlFlowData:m,htmlText:u(Z),htmlTextData:m,image:u(x),label:v,labelText:k,lineEnding:I,link:u(ee),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:oe,resourceDestinationString:l,resourceTitleString:F,resource:Q,setextHeading:u(V),setextHeadingLineSequence:$,setextHeadingText:y,strong:u(),thematicBreak:u()}};Xt(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(b){let S={type:"root",children:[]};const w={stack:[S],tokenStack:[],config:n,enter:a,exit:c,buffer:o,resume:p,data:t},E=[];let T=-1;for(;++T<b.length;)if(b[T][1].type==="listOrdered"||b[T][1].type==="listUnordered")if(b[T][0]==="enter")E.push(T);else{const U=E.pop();T=i(b,U,T)}for(T=-1;++T<b.length;){const U=n[b[T][0]];Yt.call(U,b[T][1].type)&&U[b[T][1].type].call(Object.assign({sliceSerialize:b[T][2].sliceSerialize},w),b[T][1])}if(w.tokenStack.length>0){const U=w.tokenStack[w.tokenStack.length-1];(U[1]||Jt).call(w,void 0,U[0])}for(S.position={start:Ce(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:Ce(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},T=-1;++T<n.transforms.length;)S=n.transforms[T](S)||S;return S}function i(b,S,w){let E=S-1,T=-1,U=!1,te,ie,Re,Oe;for(;++E<=w;){const de=b[E];switch(de[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{de[0]==="enter"?T++:T--,Oe=void 0;break}case"lineEndingBlank":{de[0]==="enter"&&(te&&!Oe&&!T&&!Re&&(Re=E),Oe=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Oe=void 0}if(!T&&de[0]==="enter"&&de[1].type==="listItemPrefix"||T===-1&&de[0]==="exit"&&(de[1].type==="listUnordered"||de[1].type==="listOrdered")){if(te){let Ue=E;for(ie=void 0;Ue--;){const Se=b[Ue];if(Se[1].type==="lineEnding"||Se[1].type==="lineEndingBlank"){if(Se[0]==="exit")continue;ie&&(b[ie][1].type="lineEndingBlank",U=!0),Se[1].type="lineEnding",ie=Ue}else if(!(Se[1].type==="linePrefix"||Se[1].type==="blockQuotePrefix"||Se[1].type==="blockQuotePrefixWhitespace"||Se[1].type==="blockQuoteMarker"||Se[1].type==="listItemIndent"))break}Re&&(!ie||Re<ie)&&(te._spread=!0),te.end=Object.assign({},ie?b[ie][1].start:de[1].end),b.splice(ie||E,0,["exit",te,de[2]]),E++,w++}if(de[1].type==="listItemPrefix"){const Ue={type:"listItem",_spread:!1,start:Object.assign({},de[1].start),end:void 0};te=Ue,b.splice(E,0,["enter",Ue,de[2]]),E++,w++,Re=void 0,Oe=!0}}}return b[S][1]._spread=U,w}function s(b,S){return w;function w(E){a.call(this,b(E),E),S&&S.call(this,E)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(b,S,w){this.stack[this.stack.length-1].children.push(b),this.stack.push(b),this.tokenStack.push([S,w]),b.position={start:Ce(S.start),end:void 0}}function u(b){return S;function S(w){b&&b.call(this,w),c.call(this,w)}}function c(b,S){const w=this.stack.pop(),E=this.tokenStack.pop();if(E)E[0].type!==b.type&&(S?S.call(this,b,E[0]):(E[1]||Jt).call(this,b,E[0]));else throw new Error("Cannot close `"+b.type+"` ("+Ke({start:b.start,end:b.end})+"): it’s not open");w.position.end=Ce(b.end)}function p(){return Zn(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function f(b){if(this.data.expectingFirstListItemValue){const S=this.stack[this.stack.length-2];S.start=Number.parseInt(this.sliceSerialize(b),10),this.data.expectingFirstListItemValue=void 0}}function d(){const b=this.resume(),S=this.stack[this.stack.length-1];S.lang=b}function A(){const b=this.resume(),S=this.stack[this.stack.length-1];S.meta=b}function M(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function P(){const b=this.resume(),S=this.stack[this.stack.length-1];S.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function _(){const b=this.resume(),S=this.stack[this.stack.length-1];S.value=b.replace(/(\r?\n|\r)$/g,"")}function q(b){const S=this.resume(),w=this.stack[this.stack.length-1];w.label=S,w.identifier=Le(this.sliceSerialize(b)).toLowerCase()}function C(){const b=this.resume(),S=this.stack[this.stack.length-1];S.title=b}function G(){const b=this.resume(),S=this.stack[this.stack.length-1];S.url=b}function H(b){const S=this.stack[this.stack.length-1];if(!S.depth){const w=this.sliceSerialize(b).length;S.depth=w}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function $(b){const S=this.stack[this.stack.length-1];S.depth=this.sliceSerialize(b).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function B(b){const w=this.stack[this.stack.length-1].children;let E=w[w.length-1];(!E||E.type!=="text")&&(E=Fe(),E.position={start:Ce(b.start),end:void 0},w.push(E)),this.stack.push(E)}function m(b){const S=this.stack.pop();S.value+=this.sliceSerialize(b),S.position.end=Ce(b.end)}function I(b){const S=this.stack[this.stack.length-1];if(this.data.atHardBreak){const w=S.children[S.children.length-1];w.position.end=Ce(b.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(S.type)&&(B.call(this,b),m.call(this,b))}function N(){this.data.atHardBreak=!0}function W(){const b=this.resume(),S=this.stack[this.stack.length-1];S.value=b}function Z(){const b=this.resume(),S=this.stack[this.stack.length-1];S.value=b}function D(){const b=this.resume(),S=this.stack[this.stack.length-1];S.value=b}function ee(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const S=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=S,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function x(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const S=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=S,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function k(b){const S=this.sliceSerialize(b),w=this.stack[this.stack.length-2];w.label=Pi(S),w.identifier=Le(S).toLowerCase()}function v(){const b=this.stack[this.stack.length-1],S=this.resume(),w=this.stack[this.stack.length-1];if(this.data.inReference=!0,w.type==="link"){const E=b.children;w.children=E}else w.alt=S}function l(){const b=this.resume(),S=this.stack[this.stack.length-1];S.url=b}function F(){const b=this.resume(),S=this.stack[this.stack.length-1];S.title=b}function Q(){this.data.inReference=void 0}function h(){this.data.referenceType="collapsed"}function oe(b){const S=this.resume(),w=this.stack[this.stack.length-1];w.label=S,w.identifier=Le(this.sliceSerialize(b)).toLowerCase(),this.data.referenceType="full"}function ne(b){this.data.characterReferenceType=b.type}function Y(b){const S=this.sliceSerialize(b),w=this.data.characterReferenceType;let E;w?(E=Mt(S,w==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):E=nt(S);const T=this.stack.pop();T.value+=E,T.position.end=Ce(b.end)}function Ie(b){m.call(this,b);const S=this.stack[this.stack.length-1];S.url=this.sliceSerialize(b)}function me(b){m.call(this,b);const S=this.stack[this.stack.length-1];S.url="mailto:"+this.sliceSerialize(b)}function Ee(){return{type:"blockquote",children:[]}}function ke(){return{type:"code",lang:null,meta:null,value:""}}function qe(){return{type:"inlineCode",value:""}}function xt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Et(){return{type:"emphasis",children:[]}}function Me(){return{type:"heading",depth:0,children:[]}}function je(){return{type:"break"}}function he(){return{type:"html",value:""}}function kt(){return{type:"image",title:null,url:"",alt:null}}function Pe(){return{type:"link",title:null,url:"",children:[]}}function L(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[]}}function et(b){return{type:"listItem",spread:b._spread,checked:null,children:[]}}function re(){return{type:"paragraph",children:[]}}function X(){return{type:"strong",children:[]}}function Fe(){return{type:"text",value:""}}function _e(){return{type:"thematicBreak"}}}function Ce(e){return{line:e.line,column:e.column,offset:e.offset}}function Xt(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Xt(e,r):Hi(e,r)}}function Hi(e,n){let t;for(t in n)if(Yt.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function Jt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Ke({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ke({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ke({start:n.start,end:n.end})+") is still open")}class $i{constructor(){this.map=[]}add(n,t,r){qi(this,n,t,r)}consume(n){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push([...n]),n.length=0;let i=r.pop();for(;i;)n.push(...i),i=r.pop();this.map.length=0}}function qi(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function ji(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const s=r.length-1;r[s]=r[s]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function Vi(){return{flow:{null:{tokenize:Wi,resolveAll:Ki}}}}function Wi(e,n,t){const r=this;let i=0,s=0,o;return a;function a(m){let I=r.events.length-1;for(;I>-1;){const Z=r.events[I][1].type;if(Z==="lineEnding"||Z==="linePrefix")I--;else break}const N=I>-1?r.events[I][1].type:null,W=N==="tableHead"||N==="tableRow"?y:u;return W===y&&r.parser.lazy[r.now().line]?t(m):W(m)}function u(m){return e.enter("tableHead"),e.enter("tableRow"),c(m)}function c(m){return m===124||(o=!0,s+=1),p(m)}function p(m){return m===null?t(m):R(m)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),d):t(m):j(m)?K(e,p,"whitespace")(m):(s+=1,o&&(o=!1,i+=1),m===124?(e.enter("tableCellDivider"),e.consume(m),e.exit("tableCellDivider"),o=!0,p):(e.enter("data"),g(m)))}function g(m){return m===null||m===124||se(m)?(e.exit("data"),p(m)):(e.consume(m),m===92?f:g)}function f(m){return m===92||m===124?(e.consume(m),g):g(m)}function d(m){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(m):(e.enter("tableDelimiterRow"),o=!1,j(m)?K(e,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):A(m))}function A(m){return m===45||m===58?P(m):m===124?(o=!0,e.enter("tableCellDivider"),e.consume(m),e.exit("tableCellDivider"),M):H(m)}function M(m){return j(m)?K(e,P,"whitespace")(m):P(m)}function P(m){return m===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(m),e.exit("tableDelimiterMarker"),_):m===45?(s+=1,_(m)):m===null||R(m)?G(m):H(m)}function _(m){return m===45?(e.enter("tableDelimiterFiller"),q(m)):H(m)}function q(m){return m===45?(e.consume(m),q):m===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(m),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(m))}function C(m){return j(m)?K(e,G,"whitespace")(m):G(m)}function G(m){return m===124?A(m):m===null||R(m)?!o||i!==s?H(m):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(m)):H(m)}function H(m){return t(m)}function y(m){return e.enter("tableRow"),$(m)}function $(m){return m===124?(e.enter("tableCellDivider"),e.consume(m),e.exit("tableCellDivider"),$):m===null||R(m)?(e.exit("tableRow"),n(m)):j(m)?K(e,$,"whitespace")(m):(e.enter("data"),V(m))}function V(m){return m===null||m===124||se(m)?(e.exit("data"),$(m)):(e.consume(m),m===92?B:V)}function B(m){return m===92||m===124?(e.consume(m),V):V(m)}}function Ki(e,n){let t=-1,r=!0,i=0,s=[0,0,0,0],o=[0,0,0,0],a=!1,u=0,c,p,g;const f=new $i;for(;++t<e.length;){const d=e[t],A=d[1];d[0]==="enter"?A.type==="tableHead"?(a=!1,u!==0&&(en(f,n,u,c,p),p=void 0,u=0),c={type:"table",start:Object.assign({},A.start),end:Object.assign({},A.end)},f.add(t,0,[["enter",c,n]])):A.type==="tableRow"||A.type==="tableDelimiterRow"?(r=!0,g=void 0,s=[0,0,0,0],o=[0,t+1,0,0],a&&(a=!1,p={type:"tableBody",start:Object.assign({},A.start),end:Object.assign({},A.end)},f.add(t,0,[["enter",p,n]])),i=A.type==="tableDelimiterRow"?2:p?3:1):i&&(A.type==="data"||A.type==="tableDelimiterMarker"||A.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],g=Ze(f,n,s,i,void 0,g),s=[0,0,0,0]),o[2]=t)):A.type==="tableCellDivider"&&(r?r=!1:(s[1]!==0&&(o[0]=o[1],g=Ze(f,n,s,i,void 0,g)),s=o,o=[s[1],t,0,0])):A.type==="tableHead"?(a=!0,u=t):A.type==="tableRow"||A.type==="tableDelimiterRow"?(u=t,s[1]!==0?(o[0]=o[1],g=Ze(f,n,s,i,t,g)):o[1]!==0&&(g=Ze(f,n,o,i,t,g)),i=0):i&&(A.type==="data"||A.type==="tableDelimiterMarker"||A.type==="tableDelimiterFiller")&&(o[3]=t)}for(u!==0&&en(f,n,u,c,p),f.consume(n.events),t=-1;++t<n.events.length;){const d=n.events[t];d[0]==="enter"&&d[1].type==="table"&&(d[1]._align=ji(n.events,t))}return e}function Ze(e,n,t,r,i,s){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(s.end=Object.assign({},Be(n.events,t[0])),e.add(t[0],0,[["exit",s,n]]));const u=Be(n.events,t[1]);if(s={type:o,start:Object.assign({},u),end:Object.assign({},u)},e.add(t[1],0,[["enter",s,n]]),t[2]!==0){const c=Be(n.events,t[2]),p=Be(n.events,t[3]),g={type:a,start:Object.assign({},c),end:Object.assign({},p)};if(e.add(t[2],0,[["enter",g,n]]),r!==2){const f=n.events[t[2]],d=n.events[t[3]];if(f[1].end=Object.assign({},d[1].end),f[1].type="chunkText",f[1].contentType="text",t[3]>t[2]+1){const A=t[2]+1,M=t[3]-t[2]-1;e.add(A,M,[])}}e.add(t[3]+1,0,[["exit",g,n]])}return i!==void 0&&(s.end=Object.assign({},Be(n.events,i)),e.add(i,0,[["exit",s,n]]),s=void 0),s}function en(e,n,t,r,i){const s=[],o=Be(n.events,t);i&&(i.end=Object.assign({},o),s.push(["exit",i,n])),r.end=Object.assign({},o),s.push(["exit",r,n]),e.add(t+1,0,s)}function Be(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}function Yo(){}function Zi(){return{enter:{table:Qi,tableData:tn,tableHeader:tn,tableRow:Xi},exit:{codeText:Ji,table:Yi,tableData:ht,tableHeader:ht,tableRow:ht}}}function Qi(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function Yi(e){this.exit(e),this.data.inTable=void 0}function Xi(e){this.enter({type:"tableRow",children:[]},e)}function ht(e){this.exit(e)}function tn(e){this.enter({type:"tableCell",children:[]},e)}function Ji(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,es));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function es(e,n){return n==="|"?n:e}class ts extends Error{constructor(n="Operation was cancelled."){super(n)}}class nn{constructor(){O(this,"isCancellationRequested");O(this,"listeners",new Set)}addListener(n){this.isCancellationRequested?n():this.listeners.add(n)}cancel(){if(!this.isCancellationRequested){this.isCancellationRequested=!0;for(var n of this.listeners)n();this.listeners=null}}removeListener(n){this.listeners.delete(n)}throwIfCancellationRequested(){if(this.isCancellationRequested)throw new ts}}class ns{constructor(n,t){O(this,"node");O(this,"codeNode");O(this,"language");O(this,"code");O(this,"_ct");this.node=z("pre",null,this.codeNode=z("code",null)),this.updateCodeAsync(n,t,this._ct=new nn)}async updateCodeAsync(n,t,r){const i=is(n);if(i){if(await i.promise,r.isCancellationRequested)return;this.language=n,this.code=t,this.codeNode.innerHTML=xe.result.default.highlight(t,{language:n}).value}else this.language=n,this.code=t,this.codeNode.textContent=t}updateCode(n,t){this._ct.cancel(),!(this.language===n&&this.code===t)&&this.updateCodeAsync(n,t,this._ct=new nn)}}let xe;function rs(){return xe||(xe={promise:Promise.resolve().then(()=>uo)},xe.promise.then(e=>xe.result=e).catch(e=>xe.error=e),xe)}const rn={};function is(e){let n=rn[e];if(n)return n;rs();let t;switch(e){case"javascript":t=Promise.resolve().then(()=>bo);break;case"csharp":t=Promise.resolve().then(()=>yo);break;case"python":t=Promise.resolve().then(()=>Eo);break;case"css":t=Promise.resolve().then(()=>No);break;case"typescript":t=Promise.resolve().then(()=>Ro);break;default:return null}return n={promise:(async()=>{const r=await t;return(await xe.promise).default.registerLanguage(e,r.default),r.default})()},rn[e]=n,n.promise.then(r=>n.result=r).catch(r=>n.error=r),n}function dt(e,n){const t=Ui(n,{extensions:[Vi()],mdastExtensions:[Zi()]}),r={},i={};sn(t,r,i),pt(t,e,r,i)}function sn(e,n,t){for(const r of e.children){switch(r.type){case"definition":const i=r.identifier;i&&(n[i]=r,t[i.toLowerCase()]=r);continue}r.children&&sn(r,n,t)}}function pt(e,n,t,r){var s;let i=n.firstChild;for(const o of e.children){let a;switch(o.type){case"code":let u=on.get(i);if(u)u.updateCode(o.lang,o.value);else{for(;i;){const p=i.nextSibling;i.remove(),i=p}u=new ns(o.lang,o.value),i=u.node,on.set(i,u),n.appendChild(i)}i=i.nextSibling;continue;case"html":if(!((i==null?void 0:i.nodeType)===Node.ELEMENT_NODE&&i.nodeName==="SPAN")){for(;i;){const p=i.nextSibling;i.remove(),i=p}n.appendChild(i=document.createElement("span"))}i.innerHTML=o.value,i=i.nextSibling;continue;case"inlineCode":if(!((i==null?void 0:i.nodeType)===Node.ELEMENT_NODE&&i.nodeName==="CODE")){for(;i;){const p=i.nextSibling;i.remove(),i=p}n.appendChild(i=document.createElement("code"))}i.textContent=o.value,i=i.nextSibling;continue;case"text":if((i==null?void 0:i.nodeType)===Node.TEXT_NODE)i.nodeValue=o.value;else{for(;i;){const p=i.nextSibling;i.remove(),i=p}n.appendChild(i=document.createTextNode(o.value))}i=i.nextSibling;continue;case"yaml":continue;case"break":if(!((i==null?void 0:i.nodeType)===Node.ELEMENT_NODE&&i.nodeName==="BR")){for(;i;){const p=i.nextSibling;i.remove(),i=p}n.appendChild(i=document.createElement("br"))}i=i.nextSibling;continue;case"thematicBreak":if(!((i==null?void 0:i.nodeType)===Node.ELEMENT_NODE&&i.nodeName==="HR")){for(;i;){const p=i.nextSibling;i.remove(),i=p}n.appendChild(i=document.createElement("hr"))}i=i.nextSibling;continue;case"image":if(!((i==null?void 0:i.nodeType)===Node.ELEMENT_NODE&&i.nodeName==="IMG")){for(;i;){const p=i.nextSibling;i.remove(),i=p}n.appendChild(i=document.createElement("img"))}i.src=o.url||"",i.alt=o.alt||"",i.title=o.title||"",i=i.nextSibling;continue;case"linkReference":if(!((i==null?void 0:i.nodeType)===Node.ELEMENT_NODE&&i.nodeName==="A")){for(;i;){const p=i.nextSibling;i.remove(),i=p}n.appendChild(i=document.createElement("a"))}pt(o,i,t,r);let c;switch(o.referenceType){case"shortcut":c=t[i.textContent.toLowerCase()];break;case"collapsed":c=r[i.textContent.toLowerCase()]||t[i.textContent.toLowerCase()];break;case"full":c=r[(s=o.identifier)==null?void 0:s.toLowerCase()];break}i.href=(c==null?void 0:c.url)||"",i.target="_blank",i.title=(c==null?void 0:c.title)||"",i=i.nextSibling;continue;case"definition":continue;case"footnoteDefinition":case"footnoteReference":case"imageReference":continue;case"blockquote":a="BLOCKQUOTE";break;case"delete":a="DEL";break;case"emphasis":a="EM";break;case"heading":a="H"+o.depth;break;case"link":a="A";break;case"list":a=o.ordered?"OL":"UL";break;case"listItem":a="LI";break;case"paragraph":a="P";break;case"strong":a="STRONG";break;case"table":a="TABLE";break;case"tableCell":a="TD";break;case"tableRow":a="TR";break;default:console.warn("Unknown MDAST node type: "+o.type);continue}if(!((i==null?void 0:i.nodeType)===Node.ELEMENT_NODE&&i.nodeName===a)){for(;i;){const u=i.nextSibling;i.remove(),i=u}n.appendChild(i=document.createElement(a))}a==="A"&&(i.href=o.url||"",i.target="_blank",i.title=o.title||""),pt(o,i,t,r),i=i.nextSibling}for(;i;){const o=i.nextSibling;i.remove(),i=o}}const on=new WeakMap;class ss{constructor(n){O(this,"node");O(this,"messageNode");this.node=z("div",{class:"shadow-md border border-Light rounded-lg"},this.messageNode=z("div",{class:"p-5"},n))}updateMarkdown(n){dt(this.messageNode,n)}}class an{constructor(n,t,r){O(this,"node");O(this,"chat");O(this,"message");O(this,"bubble");this.chat=n,this.message=t,this.node=z("li",{class:"relative"},r,(this.bubble=new ss(t)).node)}}class os extends an{constructor(n,t,r,i){super(n,t,z(St,{class:"absolute top-0 left-[-3.25rem] shadow-md",id:r},i)),this.bubble.node.style.background="hsla(207,100%,98%,1)"}toDto(){return{role:"user",content:this.message}}}class ln extends an{constructor(n,t,r){super(n,t,r),this.bubble.node.classList.add("bg-White"),this.bubble.messageNode.classList.add("prose","prose-sm","prose-neutral","prose-code:text-[1em]","max-w-none")}updateMessage(n){this.message=n,this.bubble.updateMarkdown(n)}toDto(){return{role:"assistant",content:this.message}}}var J=(e=>(e[e.Init=0]="Init",e[e.Done=1]="Done",e[e.Error=2]="Error",e[e.AgentManifest=3]="AgentManifest",e[e.AppendMessage=4]="AppendMessage",e[e.ToolCallUpdate=5]="ToolCallUpdate",e[e.Loop=6]="Loop",e[e.ToolCallStatus=7]="ToolCallStatus",e[e.ToolCallLog=8]="ToolCallLog",e[e.ToolCallDone=9]="ToolCallDone",e[e.ToolCallError=10]="ToolCallError",e))(J||{}),ue=(e=>(e.Progress="progress",e.Complete="complete",e.Info="info",e.Warning="warning",e.Error="error",e.Undetermined="undetermined",e))(ue||{}),ye=(e=>(e.ExtraSmall="16",e.Small="20",e.Medium="24",e.Large="28",e.ExtraLarge="32",e.ExtraExtraLarge="40",e))(ye||{});function as({size:e=ye.Medium,...n}){const t=ae("svg");t.setAttribute("viewBox","0 0 448 512"),t.setAttribute("fill","currentColor"),t.setAttribute("width",e),t.setAttribute("height",e),ce(t,n);const r=ae("path");return r.setAttribute("d","M413.505 91.951L133.49 371.966l-98.995-98.995c-4.686-4.686-12.284-4.686-16.971 0L6.211 284.284c-4.686 4.686-4.686 12.284 0 16.971l118.794 118.794c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-11.314-11.314c-4.686-4.686-12.284-4.686-16.97 0z"),t.appendChild(r),t.classList.add("icon"),t}function ls({size:e=ye.Medium,...n}){const t=ae("svg");t.setAttribute("viewBox","0 0 512 512"),t.setAttribute("fill","currentColor"),t.setAttribute("width",e),t.setAttribute("height",e),ce(t,n);const r=ae("path");return r.setAttribute("d","M256 40c118.621 0 216 96.075 216 216 0 119.291-96.61 216-216 216-119.244 0-216-96.562-216-216 0-119.203 96.602-216 216-216m0-32C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm-11.49 120h22.979c6.823 0 12.274 5.682 11.99 12.5l-7 168c-.268 6.428-5.556 11.5-11.99 11.5h-8.979c-6.433 0-11.722-5.073-11.99-11.5l-7-168c-.283-6.818 5.167-12.5 11.99-12.5zM256 340c-15.464 0-28 12.536-28 28s12.536 28 28 28 28-12.536 28-28-12.536-28-28-28z"),t.appendChild(r),t.classList.add("icon"),t}function cn({size:e=ye.Medium,...n}){const t=ae("svg");t.setAttribute("viewBox","0 0 512 512"),t.setAttribute("fill","currentColor"),t.setAttribute("width",e),t.setAttribute("height",e),ce(t,n);const r=ae("path");return r.setAttribute("d","M256 40c118.621 0 216 96.075 216 216 0 119.291-96.61 216-216 216-119.244 0-216-96.562-216-216 0-119.203 96.602-216 216-216m0-32C119.043 8 8 119.083 8 256c0 136.997 111.043 248 248 248s248-111.003 248-248C504 119.083 392.957 8 256 8zm-36 344h12V232h-12c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12h48c6.627 0 12 5.373 12 12v140h12c6.627 0 12 5.373 12 12v8c0 6.627-5.373 12-12 12h-72c-6.627 0-12-5.373-12-12v-8c0-6.627 5.373-12 12-12zm36-240c-17.673 0-32 14.327-32 32s14.327 32 32 32 32-14.327 32-32-14.327-32-32-32z"),t.appendChild(r),t.classList.add("icon"),t}function cs({size:e=ye.Medium,...n}){const t=ae("svg");t.setAttribute("viewBox","0 0 32 32"),t.setAttribute("fill","currentColor"),t.setAttribute("width",e),t.setAttribute("height",e),ce(t,n);const r=ae("path");return r.setAttribute("d","M14.75 21.75C15.0833 21.4167 15.5 21.25 16 21.25C16.5 21.25 16.9167 21.4167 17.25 21.75C17.5833 22.0833 17.75 22.5 17.75 23C17.75 23.5 17.5833 23.9167 17.25 24.25C16.9167 24.5833 16.5 24.75 16 24.75C15.5 24.75 15.0833 24.5833 14.75 24.25C14.4167 23.9167 14.25 23.5 14.25 23C14.25 22.5 14.4167 22.0833 14.75 21.75ZM16.5 19.75H15.5C15.2917 19.75 15.1042 19.6875 14.9375 19.5625C14.8125 19.3958 14.75 19.2083 14.75 19C14.75 18 15 17.1667 15.5 16.5C16 15.7917 16.5417 15.2917 17.125 15C17.75 14.7083 18.3125 14.3333 18.8125 13.875C19.3125 13.4167 19.5625 12.875 19.5625 12.25C19.5625 11.8333 19.4375 11.4375 19.1875 11.0625C18.9375 10.6875 18.5417 10.375 18 10.125C17.4583 9.875 16.7917 9.75 16 9.75C14.4583 9.75 13.2083 10.3542 12.25 11.5625C12 11.9375 11.6667 11.9792 11.25 11.6875L10.4375 11.125C10.0208 10.8333 9.95833 10.4792 10.25 10.0625C11.7083 8.1875 13.625 7.25 16 7.25C17.7083 7.25 19.1458 7.70833 20.3125 8.625C21.4792 9.54167 22.0625 10.75 22.0625 12.25C22.0625 13.2083 21.8125 14.0417 21.3125 14.75C20.8125 15.4167 20.25 15.8958 19.625 16.1875C19.0417 16.4792 18.5 16.875 18 17.375C17.5 17.8333 17.25 18.375 17.25 19C17.25 19.2083 17.1667 19.3958 17 19.5625C16.875 19.6875 16.7083 19.75 16.5 19.75ZM16 2.5C12.25 2.5 9.0625 3.83333 6.4375 6.5C3.8125 9.125 2.5 12.2917 2.5 16C2.5 19.75 3.8125 22.9375 6.4375 25.5625C9.10417 28.1875 12.2917 29.5 16 29.5C19.75 29.5 22.9375 28.1875 25.5625 25.5625C28.1875 22.8958 29.5 19.7083 29.5 16C29.5 12.25 28.1667 9.0625 25.5 6.4375C22.875 3.8125 19.7083 2.5 16 2.5ZM5 5.0625C8.04167 2.02083 11.7083 0.5 16 0.5C20.2917 0.5 23.9375 2.02083 26.9375 5.0625C29.9792 8.0625 31.5 11.7083 31.5 16C31.5 20.2917 29.9792 23.9583 26.9375 27C23.9375 30 20.2917 31.5 16 31.5C11.7083 31.5 8.04167 30 5 27C2 23.9583 0.5 20.2917 0.5 16C0.5 11.7083 2 8.0625 5 5.0625Z"),t.appendChild(r),t.classList.add("icon"),t}class us{constructor(n,t,r,i,s){O(this,"node");O(this,"_itemsNode");O(this,"_itemsByIndex",{});O(this,"_initialItem");this._initialItem=new un(n,t),this.node=z("li",{class:"first:pt-0 last:pb-0 pt-2 pb-2"},this._itemsNode=z("ol",{class:"flex flex-col gap-1"},this._initialItem.node))}log(n,t,r){}status(n,t,r,i){let s;if(this._initialItem)this._itemsByIndex[n]=s=this._initialItem,this._initialItem=null;else if(!(s=this._itemsByIndex[n])){this._itemsByIndex[n]=s=new un(r,i),this._itemsNode.appendChild(s.node);return}s.status(t,r,i)}done(){if(this._initialItem)this._initialItem.status(-1,ue.Complete,"Successfully invoked tool.");else for(const n in this._itemsByIndex){const t=this._itemsByIndex[n];t.icon===ue.Progress&&(t.icon=ue.Undetermined)}}error(){if(this._initialItem)this._initialItem.status(-1,ue.Error,"An error occurred while invoking the tool.");else for(const n in this._itemsByIndex){const t=this._itemsByIndex[n];t.icon===ue.Progress&&(t.icon=ue.Undetermined)}}}class un{constructor(n,t){O(this,"node");O(this,"_icon");O(this,"_iconNode");O(this,"_markdown");O(this,"_markdownNode");this._icon=n,this._markdown=t,this.node=z("li",{class:"flex gap-2 items-center px-5"},this._iconNode=hn(n),this._markdownNode=z("span",null)),dt(this._markdownNode,this._markdown)}get icon(){return this._icon}set icon(n){n!==this._icon&&(this._iconNode.replaceWith(this._iconNode=hn(n)),this._icon=n)}get markdown(){return this._markdown}set markdown(n){n!==this._markdown&&(dt(this._markdownNode,this._markdown=n),this._markdown=n)}status(n,t,r){this.icon=t,this.markdown=r}}function hn(e){switch(e){case ue.Progress:return z(Ct,{size:tt.Small});case ue.Complete:return z(as,{size:ye.Medium,class:"text-Land-Green-Main-41"});case ue.Info:return z(cn,{size:ye.Medium,class:"text-Sea-Blue-Main-28"});case ue.Warning:return z(cn,{size:ye.Medium,class:"text-Terracotta-Main-35"});case ue.Error:return z(ls,{size:ye.Medium,class:"text-Energy-Red-Main-54"})}return e!=null&&e.startsWith("https://")?z("img",{src:e,alt:"",class:"w-6 h-6"}):(e&&e!==ue.Undetermined&&console.warn(`Unknown icon '${e}'. Defaulting to undetermined.`),z(cs,{size:ye.Medium,class:"text-Sandstone-Main-79"}))}class gt{constructor(){O(this,"node");O(this,"toolCallsNode");O(this,"toolCallsByIndex",{});O(this,"toolCallsById",{});this.node=z("li",null,this.toolCallsNode=z("ol",{class:"flex flex-col divide-y divide-Light"}))}aggregate(n,t,r,i){let s=this.toolCallsByIndex[t];s||(this.toolCallsByIndex[t]=s=new us("progress","Invoking tool…"),this.toolCallsNode.appendChild(s.node)),n&&(this.toolCallsById[n]=s)}completeAggregation(){}log(n,t,r,i){var s;(s=this.toolCallsById[n])==null||s.log(t,r,i)}status(n,t,r,i,s){var o;(o=this.toolCallsById[n])==null||o.status(t,r,i,s)}done(n){var t;(t=this.toolCallsById[n])==null||t.done()}error(n){var t;(t=this.toolCallsById[n])==null||t.error()}}class hs{constructor(){O(this,"_reader");O(this,"_buffer",new Uint8Array(0));O(this,"_bufferOffset",0)}async initializeConnectionAsync(n,t){var r=await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});this._reader=r.body.getReader()}async readBytesAsync(n){if(this._buffer.length-this._bufferOffset>=n){const r=this._buffer.subarray(this._bufferOffset,this._bufferOffset+n);return this._bufferOffset+=n,r}for(;this._buffer.length-this._bufferOffset<n;){const{done:r,value:i}=await this._reader.read();if(r){const s=this._buffer.subarray(this._bufferOffset);return this._buffer=new Uint8Array(0),this._bufferOffset=0,s}this._buffer=ds(this._buffer,i,this._bufferOffset),this._bufferOffset=0}const t=this._buffer.subarray(this._bufferOffset,this._bufferOffset+n);return this._bufferOffset+=n,t}async readLittleEndianInt32Async(){const n=await this.readBytesAsync(4),t=n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength);return new DataView(t).getInt32(0,!0)}async readLittleEndianDoubleAsync(){const n=await this.readBytesAsync(8),t=n.buffer.slice(n.byteOffset,n.byteOffset+n.byteLength);return new DataView(t).getFloat64(0,!0)}async readUtf8StringAsync(){const n=await this.readLittleEndianInt32Async();if(n===-1)return null;const t=await this.readBytesAsync(n);return new TextDecoder().decode(t)}async readMessageAsync(){let n=performance.now();const t=await this.readBytesAsync(1);if(t.length==0)return null;const r=t[0];let i;switch(r){case J.Init:case J.Done:return i=performance.now(),{type:r,elapsed:i-n};case J.Error:{const s=await this.readUtf8StringAsync();return i=performance.now(),{type:r,elapsed:i-n,errorMarkdown:s}}case J.AgentManifest:{const s=await this.readUtf8StringAsync(),o=await this.readUtf8StringAsync(),a=await this.readUtf8StringAsync(),u=await this.readUtf8StringAsync();return i=performance.now(),{type:r,elapsed:i-n,parentFunctionId:s,agentManifestName:o,agentManifestBackgroundColor:a,agentManifestIcon:u}}case J.AppendMessage:{const s=await this.readUtf8StringAsync(),o=await this.readUtf8StringAsync();return i=performance.now(),{type:r,elapsed:i-n,parentFunctionId:s,appendMessageMarkdown:o}}case J.ToolCallUpdate:{const s=await this.readUtf8StringAsync(),o=await this.readUtf8StringAsync(),a=await this.readLittleEndianInt32Async(),u=await this.readUtf8StringAsync(),c=await this.readUtf8StringAsync();return i=performance.now(),{type:r,elapsed:i-n,parentFunctionId:s,toolCallFunctionId:o,toolCallUpdateIndex:a,toolCallUpdateName:u,toolCallUpdateArguments:c}}case J.Loop:{const s=await this.readUtf8StringAsync();return i=performance.now(),{type:r,elapsed:i-n,parentFunctionId:s}}case J.ToolCallStatus:{const s=await this.readUtf8StringAsync(),o=await this.readLittleEndianInt32Async(),a=await this.readLittleEndianDoubleAsync(),u=await this.readUtf8StringAsync(),c=await this.readUtf8StringAsync();return i=performance.now(),{type:r,elapsed:i-n,toolCallFunctionId:s,toolCallStatusIndex:o,toolCallStatusProgress:a,toolCallIcon:u,toolCallMarkdown:c}}case J.ToolCallLog:{const s=await this.readUtf8StringAsync(),o=await this.readBytesAsync(1);if(o.length==0)return null;const a=o[0],u=await this.readLittleEndianDoubleAsync(),c=await this.readUtf8StringAsync();return i=performance.now(),{type:r,elapsed:i-n,toolCallFunctionId:s,toolCallLogLevel:a,toolCallTime:u,toolCallMarkdown:c}}case J.ToolCallDone:{const s=await this.readUtf8StringAsync();return i=performance.now(),{type:r,elapsed:i-n,toolCallFunctionId:s}}case J.ToolCallError:{const s=await this.readUtf8StringAsync();return i=performance.now(),{type:r,elapsed:i-n,toolCallFunctionId:s}}default:throw new Error(`Unexpected message type: ${r}`)}}}function ds(e,n,t){t>0&&e.copyWithin(0,t);let r=new Uint8Array(e.length-t+n.length);return r.set(e.subarray(0,e.length-t),0),r.set(n,e.length-t),r}class ps extends hs{constructor(t=1){super();O(this,"_latestReadMessagePromise");O(this,"_lettersRead",0);O(this,"_lettersReadTime",0);O(this,"_isDone");O(this,"_queue",[]);O(this,"_headIndex",0);this.chunkSize=t}async initializeConnectionAsync(t,r){await super.initializeConnectionAsync(t,r),this.readMessagesContinuouslyAsync()}async readMessagesContinuouslyAsync(){try{for(;;){const t=await(this._latestReadMessagePromise=this.readMessageAsync());if(!t)return;if(t.type===J.AppendMessage){t.appendMessageMarkdown&&(this._lettersRead+=t.appendMessageMarkdown.length),this._lettersReadTime+=t.elapsed;const r=this.peekParentFunctionId(t.parentFunctionId);if(r&&r.type===J.AppendMessage){t.appendMessageMarkdown&&(r.appendMessageMarkdown+=t.appendMessageMarkdown),r.elapsed+=t.elapsed;continue}}this.enqueue(t)}}finally{this._isDone=!0}}async readMessageFromQueueAsync(){return this.size()?this.dequeue():(await this._latestReadMessagePromise,this.dequeue())}async*readMessagesAsync(){for(;;){const t=await this.readMessageFromQueueAsync();if(!t)return;if(t.type===J.AppendMessage&&t.appendMessageMarkdown){const r=t.appendMessageMarkdown;for(let i=0;;){if(this.peek()||this._isDone){yield i?{...t,appendMessageMarkdown:r.substring(i)}:t;break}const s=r.substring(i,i+=this.chunkSize);if(yield{...t,appendMessageMarkdown:s},i<r.length){const o=this._lettersReadTime?this._lettersReadTime/this._lettersRead:0;o&&await new Promise(a=>setTimeout(a,o*s.length))}else break}}else yield t}}enqueue(t){this._queue.push(t)}dequeue(){if(this.isEmpty())return;const t=this._queue[this._headIndex];return this._queue[this._headIndex]=null,this._headIndex++,this._headIndex>this._queue.length/2&&(this._queue=this._queue.slice(this._headIndex),this._headIndex=0),t}peek(){return this.isEmpty()?void 0:this._queue[this._headIndex]}peekParentFunctionId(t){if(this.isEmpty())return;let r=this._headIndex;do{const i=this._queue[r];switch(i.type){case J.Init:case J.Done:case J.Error:return}if(i.parentFunctionId===t)return i}while(++r<this._queue.length)}isEmpty(){return this._headIndex>=this._queue.length}size(){return this._queue.length-this._headIndex}}const gs='*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Avenir Next,ui-sans-serif,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}b,strong{font-weight:600}:root{--Dark-Blue-5: hsl(223, 67%, 5%);--Dark-Blue-10: hsl(223, 67%, 10%);--Dark-Blue-15: hsl(223, 67%, 15%);--Dark-Blue-20: hsl(223, 67%, 20%);--Dark-Blue-25: hsl(223, 67%, 25%);--Dark-Blue-30: hsl(223, 67%, 30%);--Dark-Blue-35: hsl(223, 67%, 35%);--Dark-Blue-40: hsl(223, 67%, 40%);--Dark-Blue-45: hsl(223, 67%, 45%);--Dark-Blue-50: hsl(223, 67%, 50%);--Dark-Blue-55: hsl(223, 67%, 55%);--Dark-Blue-60: hsl(223, 67%, 60%);--Dark-Blue-65: hsl(223, 67%, 65%);--Dark-Blue-70: hsl(223, 67%, 70%);--Dark-Blue-75: hsl(223, 67%, 75%);--Dark-Blue-80: hsl(223, 67%, 80%);--Dark-Blue-85: hsl(223, 67%, 85%);--Dark-Blue-90: hsl(223, 67%, 90%);--Dark-Blue-95: hsl(223, 67%, 95%);--Dark-Blue-Main-18: hsl(223, 67%, 18%);--Sea-Blue-5: hsl(218, 100%, 5%);--Sea-Blue-10: hsl(218, 100%, 10%);--Sea-Blue-15: hsl(218, 100%, 15%);--Sea-Blue-20: hsl(218, 100%, 20%);--Sea-Blue-25: hsl(218, 100%, 25%);--Sea-Blue-30: hsl(218, 100%, 30%);--Sea-Blue-35: hsl(218, 100%, 35%);--Sea-Blue-40: hsl(218, 100%, 40%);--Sea-Blue-45: hsl(218, 100%, 45%);--Sea-Blue-50: hsl(218, 100%, 50%);--Sea-Blue-55: hsl(218, 100%, 55%);--Sea-Blue-60: hsl(218, 100%, 60%);--Sea-Blue-65: hsl(218, 100%, 65%);--Sea-Blue-70: hsl(218, 100%, 70%);--Sea-Blue-75: hsl(218, 100%, 75%);--Sea-Blue-80: hsl(218, 100%, 80%);--Sea-Blue-85: hsl(218, 100%, 85%);--Sea-Blue-90: hsl(218, 100%, 90%);--Sea-Blue-95: hsl(218, 100%, 95%);--Sea-Blue-Main-28: hsl(218, 100%, 28%);--Sky-Blue-5: hsl(196, 74%, 5%);--Sky-Blue-10: hsl(196, 74%, 10%);--Sky-Blue-15: hsl(196, 74%, 15%);--Sky-Blue-20: hsl(196, 74%, 20%);--Sky-Blue-25: hsl(196, 74%, 25%);--Sky-Blue-30: hsl(196, 74%, 30%);--Sky-Blue-35: hsl(196, 74%, 35%);--Sky-Blue-40: hsl(196, 74%, 40%);--Sky-Blue-45: hsl(196, 74%, 45%);--Sky-Blue-50: hsl(196, 74%, 50%);--Sky-Blue-55: hsl(196, 74%, 55%);--Sky-Blue-60: hsl(196, 74%, 60%);--Sky-Blue-65: hsl(196, 74%, 65%);--Sky-Blue-70: hsl(196, 74%, 70%);--Sky-Blue-75: hsl(196, 74%, 75%);--Sky-Blue-80: hsl(196, 74%, 80%);--Sky-Blue-85: hsl(196, 74%, 85%);--Sky-Blue-90: hsl(196, 74%, 90%);--Sky-Blue-95: hsl(196, 74%, 95%);--Sky-Blue-97: hsl(196, 74%, 97%);--Sky-Blue-Main-77: hsl(196, 74%, 77%);--Digi-Green-5: hsl(139, 100%, 5%);--Digi-Green-10: hsl(139, 100%, 10%);--Digi-Green-15: hsl(139, 100%, 15%);--Digi-Green-20: hsl(139, 100%, 20%);--Digi-Green-25: hsl(139, 100%, 25%);--Digi-Green-30: hsl(139, 100%, 30%);--Digi-Green-35: hsl(139, 100%, 35%);--Digi-Green-40: hsl(139, 100%, 40%);--Digi-Green-45: hsl(139, 100%, 45%);--Digi-Green-50: hsl(139, 100%, 50%);--Digi-Green-55: hsl(139, 100%, 55%);--Digi-Green-60: hsl(139, 100%, 60%);--Digi-Green-65: hsl(139, 100%, 65%);--Digi-Green-70: hsl(139, 100%, 70%);--Digi-Green-75: hsl(139, 100%, 75%);--Digi-Green-80: hsl(139, 100%, 80%);--Digi-Green-85: hsl(139, 100%, 85%);--Digi-Green-90: hsl(139, 100%, 90%);--Digi-Green-95: hsl(139, 100%, 95%);--Digi-Green-Main-78: hsl(139, 100%, 78%);--Sandstone-5: hsl(40, 3%, 5%);--Sandstone-10: hsl(40, 3%, 10%);--Sandstone-15: hsl(40, 3%, 15%);--Sandstone-20: hsl(40, 3%, 20%);--Sandstone-25: hsl(40, 3%, 25%);--Sandstone-30: hsl(40, 3%, 30%);--Sandstone-35: hsl(40, 3%, 35%);--Sandstone-40: hsl(40, 3%, 40%);--Sandstone-45: hsl(40, 3%, 45%);--Sandstone-50: hsl(40, 3%, 50%);--Sandstone-55: hsl(40, 3%, 55%);--Sandstone-60: hsl(40, 3%, 60%);--Sandstone-65: hsl(40, 3%, 65%);--Sandstone-70: hsl(40, 3%, 70%);--Sandstone-75: hsl(40, 3%, 75%);--Sandstone-80: hsl(40, 3%, 80%);--Sandstone-85: hsl(40, 3%, 85%);--Sandstone-90: hsl(40, 3%, 90%);--Sandstone-95: hsl(40, 3%, 95%);--Sandstone-97: hsl(40, 3%, 97%);--Sandstone-Main-79: hsl(40, 3%, 79%);--Warm-Grey-5: hsl(30, 8%, 5%);--Warm-Grey-10: hsl(30, 8%, 10%);--Warm-Grey-15: hsl(30, 8%, 15%);--Warm-Grey-20: hsl(30, 8%, 20%);--Warm-Grey-25: hsl(30, 8%, 25%);--Warm-Grey-30: hsl(30, 8%, 30%);--Warm-Grey-35: hsl(30, 8%, 35%);--Warm-Grey-40: hsl(30, 8%, 40%);--Warm-Grey-45: hsl(30, 8%, 45%);--Warm-Grey-50: hsl(30, 8%, 50%);--Warm-Grey-55: hsl(30, 8%, 55%);--Warm-Grey-60: hsl(30, 8%, 60%);--Warm-Grey-65: hsl(30, 8%, 65%);--Warm-Grey-70: hsl(30, 8%, 70%);--Warm-Grey-75: hsl(30, 8%, 75%);--Warm-Grey-80: hsl(30, 8%, 80%);--Warm-Grey-85: hsl(30, 8%, 85%);--Warm-Grey-90: hsl(30, 8%, 90%);--Warm-Grey-95: hsl(30, 8%, 95%);--Warm-Grey-Main-56: hsl(30, 8%, 56%);--Earth-5: hsl(35, 53%, 5%);--Earth-10: hsl(35, 53%, 10%);--Earth-15: hsl(35, 53%, 15%);--Earth-20: hsl(35, 53%, 20%);--Earth-25: hsl(35, 53%, 25%);--Earth-30: hsl(35, 53%, 30%);--Earth-35: hsl(35, 53%, 35%);--Earth-40: hsl(35, 53%, 40%);--Earth-45: hsl(35, 53%, 45%);--Earth-50: hsl(35, 53%, 50%);--Earth-55: hsl(35, 53%, 55%);--Earth-60: hsl(35, 53%, 60%);--Earth-65: hsl(35, 53%, 65%);--Earth-70: hsl(35, 53%, 70%);--Earth-75: hsl(35, 53%, 75%);--Earth-80: hsl(35, 53%, 80%);--Earth-85: hsl(35, 53%, 85%);--Earth-90: hsl(35, 53%, 90%);--Earth-95: hsl(35, 53%, 95%);--Earth-97: hsl(35, 53%, 97%);--Earth-Main-89: hsl(35, 53%, 89%);--Pine-5: hsl(195, 46%, 5%);--Pine-10: hsl(195, 46%, 10%);--Pine-15: hsl(195, 46%, 15%);--Pine-20: hsl(195, 46%, 20%);--Pine-25: hsl(195, 46%, 25%);--Pine-30: hsl(195, 46%, 30%);--Pine-35: hsl(195, 46%, 35%);--Pine-40: hsl(195, 46%, 40%);--Pine-45: hsl(195, 46%, 45%);--Pine-50: hsl(195, 46%, 50%);--Pine-55: hsl(195, 46%, 55%);--Pine-60: hsl(195, 46%, 60%);--Pine-65: hsl(195, 46%, 65%);--Pine-70: hsl(195, 46%, 70%);--Pine-75: hsl(195, 46%, 75%);--Pine-80: hsl(195, 46%, 80%);--Pine-85: hsl(195, 46%, 85%);--Pine-90: hsl(195, 46%, 90%);--Pine-95: hsl(195, 46%, 95%);--Pine-Main-30: hsl(195, 46%, 30%);--Eucalyptus-5: hsl(178, 80%, 5%);--Eucalyptus-10: hsl(178, 80%, 10%);--Eucalyptus-15: hsl(178, 80%, 15%);--Eucalyptus-20: hsl(178, 80%, 20%);--Eucalyptus-25: hsl(178, 80%, 25%);--Eucalyptus-30: hsl(178, 80%, 30%);--Eucalyptus-35: hsl(178, 80%, 35%);--Eucalyptus-40: hsl(178, 80%, 40%);--Eucalyptus-45: hsl(178, 80%, 45%);--Eucalyptus-50: hsl(178, 80%, 50%);--Eucalyptus-55: hsl(178, 80%, 55%);--Eucalyptus-60: hsl(178, 80%, 60%);--Eucalyptus-65: hsl(178, 80%, 65%);--Eucalyptus-70: hsl(178, 80%, 70%);--Eucalyptus-75: hsl(178, 80%, 75%);--Eucalyptus-80: hsl(178, 80%, 80%);--Eucalyptus-85: hsl(178, 80%, 85%);--Eucalyptus-90: hsl(178, 80%, 90%);--Eucalyptus-95: hsl(178, 80%, 95%);--Eucalyptus-Main-41: hsl(178, 80%, 41%);--Lavender-5: hsl(232, 58%, 5%);--Lavender-10: hsl(232, 58%, 10%);--Lavender-15: hsl(232, 58%, 15%);--Lavender-20: hsl(232, 58%, 20%);--Lavender-25: hsl(232, 58%, 25%);--Lavender-30: hsl(232, 58%, 30%);--Lavender-35: hsl(232, 58%, 35%);--Lavender-40: hsl(232, 58%, 40%);--Lavender-45: hsl(232, 58%, 45%);--Lavender-50: hsl(232, 58%, 50%);--Lavender-55: hsl(232, 58%, 55%);--Lavender-60: hsl(232, 58%, 60%);--Lavender-65: hsl(232, 58%, 65%);--Lavender-70: hsl(232, 58%, 70%);--Lavender-75: hsl(232, 58%, 75%);--Lavender-80: hsl(232, 58%, 80%);--Lavender-85: hsl(232, 58%, 85%);--Lavender-90: hsl(232, 58%, 90%);--Lavender-95: hsl(232, 58%, 95%);--Lavender-Main-77: hsl(232, 58%, 77%);--Terracotta-5: hsl(34, 100%, 5%);--Terracotta-10: hsl(34, 100%, 10%);--Terracotta-15: hsl(34, 100%, 15%);--Terracotta-20: hsl(34, 100%, 20%);--Terracotta-25: hsl(34, 100%, 25%);--Terracotta-30: hsl(34, 100%, 30%);--Terracotta-35: hsl(34, 100%, 35%);--Terracotta-40: hsl(34, 100%, 40%);--Terracotta-45: hsl(34, 100%, 45%);--Terracotta-50: hsl(34, 100%, 50%);--Terracotta-55: hsl(34, 100%, 55%);--Terracotta-60: hsl(34, 100%, 60%);--Terracotta-65: hsl(34, 100%, 65%);--Terracotta-70: hsl(34, 100%, 70%);--Terracotta-75: hsl(34, 100%, 75%);--Terracotta-80: hsl(34, 100%, 80%);--Terracotta-85: hsl(34, 100%, 85%);--Terracotta-90: hsl(34, 100%, 90%);--Terracotta-95: hsl(34, 100%, 95%);--Terracotta-Main-35: hsl(34, 100%, 35%);--Land-Green-5: hsl(114, 49%, 5%);--Land-Green-10: hsl(114, 49%, 10%);--Land-Green-15: hsl(114, 49%, 15%);--Land-Green-20: hsl(114, 49%, 20%);--Land-Green-25: hsl(114, 49%, 25%);--Land-Green-30: hsl(114, 49%, 30%);--Land-Green-35: hsl(114, 49%, 35%);--Land-Green-40: hsl(114, 49%, 40%);--Land-Green-45: hsl(114, 49%, 45%);--Land-Green-50: hsl(114, 49%, 50%);--Land-Green-55: hsl(114, 49%, 55%);--Land-Green-60: hsl(114, 49%, 60%);--Land-Green-65: hsl(114, 49%, 65%);--Land-Green-70: hsl(114, 49%, 70%);--Land-Green-75: hsl(114, 49%, 75%);--Land-Green-80: hsl(114, 49%, 80%);--Land-Green-85: hsl(114, 49%, 85%);--Land-Green-90: hsl(114, 49%, 90%);--Land-Green-95: hsl(114, 49%, 95%);--Land-Green-Main-41: hsl(114, 49%, 41%);--Sunflower-5: hsl(55, 100%, 5%);--Sunflower-10: hsl(55, 100%, 10%);--Sunflower-15: hsl(55, 100%, 15%);--Sunflower-20: hsl(55, 100%, 20%);--Sunflower-25: hsl(55, 100%, 25%);--Sunflower-30: hsl(55, 100%, 30%);--Sunflower-35: hsl(55, 100%, 35%);--Sunflower-40: hsl(55, 100%, 40%);--Sunflower-45: hsl(55, 100%, 45%);--Sunflower-50: hsl(55, 100%, 50%);--Sunflower-55: hsl(55, 100%, 55%);--Sunflower-60: hsl(55, 100%, 60%);--Sunflower-65: hsl(55, 100%, 65%);--Sunflower-70: hsl(55, 100%, 70%);--Sunflower-75: hsl(55, 100%, 75%);--Sunflower-80: hsl(55, 100%, 80%);--Sunflower-85: hsl(55, 100%, 85%);--Sunflower-90: hsl(55, 100%, 90%);--Sunflower-95: hsl(55, 100%, 95%);--Sunflower-Main-73: hsl(55, 100%, 73%);--Energy-Red-5: hsl(357, 83%, 5%);--Energy-Red-10: hsl(357, 83%, 10%);--Energy-Red-15: hsl(357, 83%, 15%);--Energy-Red-20: hsl(357, 83%, 20%);--Energy-Red-25: hsl(357, 83%, 25%);--Energy-Red-30: hsl(357, 83%, 30%);--Energy-Red-35: hsl(357, 83%, 35%);--Energy-Red-40: hsl(357, 83%, 40%);--Energy-Red-45: hsl(357, 83%, 45%);--Energy-Red-50: hsl(357, 83%, 50%);--Energy-Red-55: hsl(357, 83%, 55%);--Energy-Red-60: hsl(357, 83%, 60%);--Energy-Red-65: hsl(357, 83%, 65%);--Energy-Red-70: hsl(357, 83%, 70%);--Energy-Red-75: hsl(357, 83%, 75%);--Energy-Red-80: hsl(357, 83%, 80%);--Energy-Red-85: hsl(357, 83%, 85%);--Energy-Red-90: hsl(357, 83%, 90%);--Energy-Red-95: hsl(357, 83%, 95%);--Energy-Red-Main-54: hsl(357, 83%, 54%);--Cyan-5: hsl(196, 100%, 5%);--Cyan-10: hsl(196, 100%, 10%);--Cyan-15: hsl(196, 100%, 15%);--Cyan-20: hsl(196, 100%, 20%);--Cyan-25: hsl(196, 100%, 25%);--Cyan-30: hsl(196, 100%, 30%);--Cyan-35: hsl(196, 100%, 35%);--Cyan-40: hsl(196, 100%, 40%);--Cyan-45: hsl(196, 100%, 45%);--Cyan-50: hsl(196, 100%, 50%);--Cyan-55: hsl(196, 100%, 55%);--Cyan-60: hsl(196, 100%, 60%);--Cyan-65: hsl(196, 100%, 65%);--Cyan-70: hsl(196, 100%, 70%);--Cyan-75: hsl(196, 100%, 75%);--Cyan-80: hsl(196, 100%, 80%);--Cyan-85: hsl(196, 100%, 85%);--Cyan-90: hsl(196, 100%, 90%);--Cyan-95: hsl(196, 100%, 95%);--Cyan-Main-43: hsl(196, 100%, 43%);--Black: hsl(40 3% 10%);--White: hsl(40 3% 100%);--Light: hsl(40, 3%, 90%);--Default: hsl(40, 3%, 79%);--Medium: hsl(40, 3%, 75%);--Strong: hsl(218, 100%, 28%);--Emphasis: hsl(223, 67%, 18%);--vui-animation-duration-0: 0ms;--vui-animation-duration-100: .13s;--vui-animation-duration-200: .16s;--vui-animation-duration-300: .19s;--vui-animation-duration-400: .22s;--vui-animation-duration-500: .25s;--vui-animation-duration-600: .3s;--vui-animation-duration-700: .35s;--vui-animation-duration-800: .4s;--vui-animation-duration-900: .45s;--vui-animation-duration-1000: .5s;--vui-animation-duration-2000: 1s;--vui-animation-duration-4000: 2s;--vui-animation-ease-in-out: cubic-bezier(.45, 0, .4, 1);--vui-animation-ease-in: cubic-bezier(.5, 0, 1, 1);--vui-animation-ease-out: cubic-bezier(0, 0, .4, 1);--vui-animation-linear: cubic-bezier(0, 0, 1, 1);--vui-elevation-1: 0 6px 23px -10px hsla(223, 67%, 18%, .2);--vui-elevation-2: 0 9px 20px -6px hsla(223, 67%, 18%, .2);--vui-elevation-3: 0 12px 23px -4px hsla(223, 67%, 18%, .2);--vui-elevation-4: 0 15px 23px 0 hsla(223, 67%, 18%, .2)}h1,.h1{font-family:Avenir Next;font-size:3.125rem;font-style:normal;font-weight:400;line-height:1.24}@media only screen and (max-width: 992px){h1,.h1{font-size:1.9375rem;line-height:1.5483870967741935}}h1,.h1{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}h2,.h2{font-family:Avenir Next;font-size:2rem;font-style:normal;font-weight:400;line-height:1.3125}@media only screen and (max-width: 992px){h2,.h2{font-size:1.75rem;line-height:1.3571428571428572}}h2,.h2{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}h3,.h3{font-family:Avenir Next;font-size:1.5rem;font-style:normal;font-weight:400;line-height:1.3333333333333333}@media only screen and (max-width: 992px){h3,.h3{font-size:1.375rem;line-height:1.4545454545454546}}h3,.h3{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}h4,.h4{font-family:Avenir Next;font-size:1.25rem;font-style:normal;font-weight:600;line-height:1.2}@media only screen and (max-width: 992px){h4,.h4{font-size:1.125rem;line-height:1.3333333333333333}}h4,.h4{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}h5,.h5{font-family:Avenir Next;font-size:1.125rem;font-style:normal;font-weight:600;line-height:1.4444444444444444}@media only screen and (max-width: 992px){h5,.h5{font-size:1rem;line-height:1.375}}h5,.h5{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}h6,.h6{font-family:Avenir Next;font-size:1rem;font-style:normal;font-weight:600;line-height:1.375;color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.sideMenuItem>.icon{width:24px;height:24px}.avatar{font-family:Avenir Next;font-weight:500;font-style:normal;align-items:center;background:#e6e6e5;border-radius:9999px;color:#353431;display:inline-flex;justify-content:center;overflow:hidden;text-transform:uppercase}.avatar.avatar-xl{font-size:1.125rem;line-height:1.5555555555555556;height:3rem;width:3rem}.avatar.avatar-lg{font-size:1rem;line-height:1.5;height:2.5rem;width:2.5rem}.avatar.avatar-md{font-size:.875rem;line-height:1.4285714285714286;height:2rem;width:2rem}.avatar.avatar-sm{font-size:.75rem;line-height:1.3333333333333333;height:1.5rem;width:1.5rem}.avatar.avatar-xxl{font-size:1.125rem;line-height:1.5555555555555556;height:3.5rem;width:3.5rem}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-left:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-left-width:.25rem;border-left-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding:.1875em .375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding:.8571429em 1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;text-align:left;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-right:.5714286em;padding-bottom:.5714286em;padding-left:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-left:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-left:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding:.1428571em .3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding:.6666667em 1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-left:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>*:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>*:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-left:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:1em;padding-bottom:.6666667em;padding-left:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding:.6666667em 1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-left:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-right:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-neutral{--tw-prose-body: #404040;--tw-prose-headings: #171717;--tw-prose-lead: #525252;--tw-prose-links: #171717;--tw-prose-bold: #171717;--tw-prose-counters: #737373;--tw-prose-bullets: #d4d4d4;--tw-prose-hr: #e5e5e5;--tw-prose-quotes: #171717;--tw-prose-quote-borders: #e5e5e5;--tw-prose-captions: #737373;--tw-prose-kbd: #171717;--tw-prose-kbd-shadows: 23 23 23;--tw-prose-code: #171717;--tw-prose-pre-code: #e5e5e5;--tw-prose-pre-bg: #262626;--tw-prose-th-borders: #d4d4d4;--tw-prose-td-borders: #e5e5e5;--tw-prose-invert-body: #d4d4d4;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #a3a3a3;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #a3a3a3;--tw-prose-invert-bullets: #525252;--tw-prose-invert-hr: #404040;--tw-prose-invert-quotes: #f5f5f5;--tw-prose-invert-quote-borders: #404040;--tw-prose-invert-captions: #a3a3a3;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d4d4d4;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #525252;--tw-prose-invert-td-borders: #404040}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.left-\\[-3\\.25rem\\]{left:-3.25rem}.top-0{top:0}.top-\\[3\\%\\]{top:3%}.inline{display:inline}.flex{display:flex}.table{display:table}.h-6{height:1.5rem}.h-\\[1\\.421875rem\\]{height:1.421875rem}.w-6{width:1.5rem}.max-w-none{max-width:none}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.items-center{align-items:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-Light>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:hsl(40 3% 90% / var(--tw-divide-opacity))}.overflow-hidden{overflow:hidden}.rounded-lg{border-radius:.5rem}.border{border-width:1px}.border-Light{--tw-border-opacity: 1;border-color:hsl(40 3% 90% / var(--tw-border-opacity))}.bg-Dark-Blue-Main-18{--tw-bg-opacity: 1;background-color:hsl(223 67% 18% / var(--tw-bg-opacity))}.bg-Energy-Red-95{--tw-bg-opacity: 1;background-color:hsl(357 83% 95% / var(--tw-bg-opacity))}.bg-Eucalyptus-85{--tw-bg-opacity: 1;background-color:hsl(178 80% 85% / var(--tw-bg-opacity))}.bg-Land-Green-95{--tw-bg-opacity: 1;background-color:hsl(114 49% 95% / var(--tw-bg-opacity))}.bg-Lavender-90{--tw-bg-opacity: 1;background-color:hsl(232 58% 90% / var(--tw-bg-opacity))}.bg-Sea-Blue-Main-28{--tw-bg-opacity: 1;background-color:hsl(218 100% 28% / var(--tw-bg-opacity))}.bg-Sunflower-85{--tw-bg-opacity: 1;background-color:hsl(55 100% 85% / var(--tw-bg-opacity))}.bg-Terracotta-85{--tw-bg-opacity: 1;background-color:hsl(34 100% 85% / var(--tw-bg-opacity))}.bg-White{--tw-bg-opacity: 1;background-color:hsl(40 3% 100% / var(--tw-bg-opacity))}.p-5{padding:1.25rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.pb-2{padding-bottom:.5rem}.pt-2{padding-top:.5rem}.text-\\[0\\.875rem\\]{font-size:.875rem}.text-Energy-Red-45{--tw-text-opacity: 1;color:hsl(357 83% 45% / var(--tw-text-opacity))}.text-Energy-Red-Main-54{--tw-text-opacity: 1;color:hsl(357 83% 54% / var(--tw-text-opacity))}.text-Eucalyptus-20{--tw-text-opacity: 1;color:hsl(178 80% 20% / var(--tw-text-opacity))}.text-Land-Green-30{--tw-text-opacity: 1;color:hsl(114 49% 30% / var(--tw-text-opacity))}.text-Land-Green-Main-41{--tw-text-opacity: 1;color:hsl(114 49% 41% / var(--tw-text-opacity))}.text-Lavender-50{--tw-text-opacity: 1;color:hsl(232 58% 50% / var(--tw-text-opacity))}.text-Sandstone-Main-79{--tw-text-opacity: 1;color:hsl(40 3% 79% / var(--tw-text-opacity))}.text-Sea-Blue-Main-28{--tw-text-opacity: 1;color:hsl(218 100% 28% / var(--tw-text-opacity))}.text-Sky-Blue-95{--tw-text-opacity: 1;color:hsl(196 74% 95% / var(--tw-text-opacity))}.text-Sunflower-20{--tw-text-opacity: 1;color:hsl(55 100% 20% / var(--tw-text-opacity))}.text-Terracotta-20{--tw-text-opacity: 1;color:hsl(34 100% 20% / var(--tw-text-opacity))}.text-Terracotta-Main-35{--tw-text-opacity: 1;color:hsl(34 100% 35% / var(--tw-text-opacity))}.text-White{--tw-text-opacity: 1;color:hsl(40 3% 100% / var(--tw-text-opacity))}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.title{font-family:DNV Display;font-size:4rem;font-style:normal;font-weight:400;line-height:1.15625}@media only screen and (max-width: 992px){.title{font-size:2.625rem;line-height:1.2380952380952381}}.title{color:var(--Dark-Blue-Main-18, hsl(223, 67%, 18%))}:is(.dark .title){color:var(--White, hsl(40 3% 100%))}.first\\:pt-0:first-child{padding-top:0}.last\\:pb-0:last-child{padding-bottom:0}.prose-code\\:text-\\[1em\\] :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){font-size:1em}',fs="pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#ddd;background:#303030}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-section,.hljs-link{color:#fff}.hljs-string,.hljs-title,.hljs-name,.hljs-type,.hljs-attribute,.hljs-symbol,.hljs-bullet,.hljs-built_in,.hljs-addition,.hljs-variable,.hljs-template-tag,.hljs-template-variable{color:#d88}.hljs-comment,.hljs-quote,.hljs-deletion,.hljs-meta{color:#979797}.hljs-keyword,.hljs-selector-tag,.hljs-literal,.hljs-title,.hljs-section,.hljs-doctag,.hljs-type,.hljs-name,.hljs-strong{font-weight:700}.hljs-emphasis{font-style:italic}";class ms{constructor(n){O(this,"node");O(this,"userId");O(this,"avatarLetters");O(this,"url");O(this,"messagesNode");O(this,"messages",[]);O(this,"statusNode");O(this,"_canSubmit",!0);O(this,"_generatingNode");O(this,"_functionIdToParentFunctionId",{});O(this,"_groupByFunctionId",{});this.userId=n.userId,this.avatarLetters=n.avatarLetters,this.url=n.url,this.node=z("div",null);const t=document.createElement("style");t.textContent=gs+`
|
|
4
|
+
`+fs;const r=this.node.attachShadow({mode:"closed"});r.appendChild(t),r.appendChild(z("div",{class:"flex flex-col gap-4"},this.messagesNode=z("ol",{class:"flex flex-col gap-4"}),this.statusNode=z("div",{class:"select-none text-[0.875rem] h-[1.421875rem] overflow-hidden"})))}get canSubmit(){return this._canSubmit}get generatingNode(){return this._generatingNode||(this._generatingNode=z("div",{class:"flex gap-2 items-center text-seaBlue-80"},z(Ct,{size:tt.ExtraSmall}),"Generating response…"))}setGeneratingStatus(){const n=this.generatingNode,t=this.statusNode.firstChild;t?t!==n&&t.replaceWith(this.generatingNode):this.statusNode.appendChild(this.generatingNode)}clearStatus(){var n;(n=this.statusNode.firstChild)==null||n.remove()}async submitMessageAsync(n){if(!this._canSubmit)throw new Error("Cannot submit message because another message is currently being processed");this._canSubmit=!1;try{this.setGeneratingStatus();const t=new os(this,n,this.userId,this.avatarLetters);this.messages.push(t),this.messagesNode.appendChild(t.node),this.setGeneratingStatus();const r=new ps;await r.initializeConnectionAsync(this.url,this.messages.map(s=>s.toDto()));let i;for await(const s of r.readMessagesAsync())switch(s.type){case J.Init:i=null;break;case J.AppendMessage:i instanceof ln||(i=new ln(this,void 0,z(Wn,{class:"absolute top-0 left-[-3.25rem] shadow-md"})),this.messages.push(i),this.messagesNode.appendChild(i.node));const o=i.message;i.updateMessage(o?o+s.appendMessageMarkdown:s.appendMessageMarkdown);break;case J.ToolCallUpdate:{s.toolCallFunctionId&&(this._functionIdToParentFunctionId[s.toolCallFunctionId]=s.parentFunctionId),i instanceof gt||(i=new gt,this.messagesNode.appendChild(i.node)),s.toolCallFunctionId&&(this._groupByFunctionId[s.toolCallFunctionId]=i),i.aggregate(s.toolCallFunctionId,s.toolCallUpdateIndex,s.toolCallUpdateName,s.toolCallUpdateArguments);break}case J.ToolCallStatus:{const a=this._groupByFunctionId[s.toolCallFunctionId];if(a)a.status(s.toolCallFunctionId,s.toolCallStatusIndex,s.toolCallStatusProgress,s.toolCallIcon,s.toolCallMarkdown);else debugger;break}case J.ToolCallLog:{const a=this._groupByFunctionId[s.toolCallFunctionId];if(a)a.log(s.toolCallFunctionId,s.toolCallLogLevel,s.toolCallTime,s.toolCallMarkdown);else debugger;break}case J.Loop:i instanceof gt&&i.completeAggregation(),i=null;break;case J.ToolCallDone:{const a=this._groupByFunctionId[s.toolCallFunctionId];if(a)a.done(s.toolCallFunctionId);else debugger;break}case J.ToolCallError:{const a=this._groupByFunctionId[s.toolCallFunctionId];if(a)a.error(s.toolCallFunctionId);else debugger;break}default:i=null;break}}finally{this.clearStatus(),this._canSubmit=!0}}}function bs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function dn(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(n=>{const t=e[n],r=typeof t;(r==="object"||r==="function")&&!Object.isFrozen(t)&&dn(t)}),e}class pn{constructor(n){n.data===void 0&&(n.data={}),this.data=n.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function gn(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function Te(e,...n){const t=Object.create(null);for(const r in e)t[r]=e[r];return n.forEach(function(r){for(const i in r)t[i]=r[i]}),t}const ws="</span>",fn=e=>!!e.scope,ys=(e,{prefix:n})=>{if(e.startsWith("language:"))return e.replace("language:","language-");if(e.includes(".")){const t=e.split(".");return[`${n}${t.shift()}`,...t.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${n}${e}`};class xs{constructor(n,t){this.buffer="",this.classPrefix=t.classPrefix,n.walk(this)}addText(n){this.buffer+=gn(n)}openNode(n){if(!fn(n))return;const t=ys(n.scope,{prefix:this.classPrefix});this.span(t)}closeNode(n){fn(n)&&(this.buffer+=ws)}value(){return this.buffer}span(n){this.buffer+=`<span class="${n}">`}}const mn=(e={})=>{const n={children:[]};return Object.assign(n,e),n};class ft{constructor(){this.rootNode=mn(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(n){this.top.children.push(n)}openNode(n){const t=mn({scope:n});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(n){return this.constructor._walk(n,this.rootNode)}static _walk(n,t){return typeof t=="string"?n.addText(t):t.children&&(n.openNode(t),t.children.forEach(r=>this._walk(n,r)),n.closeNode(t)),n}static _collapse(n){typeof n!="string"&&n.children&&(n.children.every(t=>typeof t=="string")?n.children=[n.children.join("")]:n.children.forEach(t=>{ft._collapse(t)}))}}class Es extends ft{constructor(n){super(),this.options=n}addText(n){n!==""&&this.add(n)}startScope(n){this.openNode(n)}endScope(){this.closeNode()}__addSublanguage(n,t){const r=n.root;t&&(r.scope=`language:${t}`),this.add(r)}toHTML(){return new xs(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function He(e){return e?typeof e=="string"?e:e.source:null}function bn(e){return Ne("(?=",e,")")}function ks(e){return Ne("(?:",e,")*")}function _s(e){return Ne("(?:",e,")?")}function Ne(...e){return e.map(t=>He(t)).join("")}function Ss(e){const n=e[e.length-1];return typeof n=="object"&&n.constructor===Object?(e.splice(e.length-1,1),n):{}}function mt(...e){return"("+(Ss(e).capture?"":"?:")+e.map(r=>He(r)).join("|")+")"}function wn(e){return new RegExp(e.toString()+"|").exec("").length-1}function As(e,n){const t=e&&e.exec(n);return t&&t.index===0}const Cs=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function bt(e,{joinWith:n}){let t=0;return e.map(r=>{t+=1;const i=t;let s=He(r),o="";for(;s.length>0;){const a=Cs.exec(s);if(!a){o+=s;break}o+=s.substring(0,a.index),s=s.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?o+="\\"+String(Number(a[1])+i):(o+=a[0],a[0]==="("&&t++)}return o}).map(r=>`(${r})`).join(n)}const Ts=/\b\B/,yn="[a-zA-Z]\\w*",wt="[a-zA-Z_]\\w*",xn="\\b\\d+(\\.\\d+)?",En="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",kn="\\b(0b[01]+)",Is="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Ns=(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=Ne(n,/.*\b/,e.binary,/\b.*/)),Te({scope:"meta",begin:n,end:/$/,relevance:0,"on:begin":(t,r)=>{t.index!==0&&r.ignoreMatch()}},e)},$e={begin:"\\\\[\\s\\S]",relevance:0},vs={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[$e]},Ms={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[$e]},Rs={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Qe=function(e,n,t={}){const r=Te({scope:"comment",begin:e,end:n,contains:[]},t);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=mt("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:Ne(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},Os=Qe("//","$"),Ls=Qe("/\\*","\\*/"),Bs=Qe("#","$"),Ds={scope:"number",begin:xn,relevance:0},zs={scope:"number",begin:En,relevance:0},Ps={scope:"number",begin:kn,relevance:0},Fs={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[$e,{begin:/\[/,end:/\]/,relevance:0,contains:[$e]}]},Us={scope:"title",begin:yn,relevance:0},Gs={scope:"title",begin:wt,relevance:0},Hs={begin:"\\.\\s*"+wt,relevance:0};var Ye=Object.freeze({__proto__:null,APOS_STRING_MODE:vs,BACKSLASH_ESCAPE:$e,BINARY_NUMBER_MODE:Ps,BINARY_NUMBER_RE:kn,COMMENT:Qe,C_BLOCK_COMMENT_MODE:Ls,C_LINE_COMMENT_MODE:Os,C_NUMBER_MODE:zs,C_NUMBER_RE:En,END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(n,t)=>{t.data._beginMatch=n[1]},"on:end":(n,t)=>{t.data._beginMatch!==n[1]&&t.ignoreMatch()}})},HASH_COMMENT_MODE:Bs,IDENT_RE:yn,MATCH_NOTHING_RE:Ts,METHOD_GUARD:Hs,NUMBER_MODE:Ds,NUMBER_RE:xn,PHRASAL_WORDS_MODE:Rs,QUOTE_STRING_MODE:Ms,REGEXP_MODE:Fs,RE_STARTERS_RE:Is,SHEBANG:Ns,TITLE_MODE:Us,UNDERSCORE_IDENT_RE:wt,UNDERSCORE_TITLE_MODE:Gs});function $s(e,n){e.input[e.index-1]==="."&&n.ignoreMatch()}function qs(e,n){e.className!==void 0&&(e.scope=e.className,delete e.className)}function js(e,n){n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=$s,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function Vs(e,n){Array.isArray(e.illegal)&&(e.illegal=mt(...e.illegal))}function Ws(e,n){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function Ks(e,n){e.relevance===void 0&&(e.relevance=1)}const Zs=(e,n)=>{if(!e.beforeMatch)return;if(e.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},e);Object.keys(e).forEach(r=>{delete e[r]}),e.keywords=t.keywords,e.begin=Ne(t.beforeMatch,bn(t.begin)),e.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},e.relevance=0,delete t.beforeMatch},Qs=["of","and","for","in","not","or","if","then","parent","list","value"],Ys="keyword";function _n(e,n,t=Ys){const r=Object.create(null);return typeof e=="string"?i(t,e.split(" ")):Array.isArray(e)?i(t,e):Object.keys(e).forEach(function(s){Object.assign(r,_n(e[s],n,s))}),r;function i(s,o){n&&(o=o.map(a=>a.toLowerCase())),o.forEach(function(a){const u=a.split("|");r[u[0]]=[s,Xs(u[0],u[1])]})}}function Xs(e,n){return n?Number(n):Js(e)?0:1}function Js(e){return Qs.includes(e.toLowerCase())}const Sn={},ve=e=>{console.error(e)},An=(e,...n)=>{console.log(`WARN: ${e}`,...n)},De=(e,n)=>{Sn[`${e}/${n}`]||(console.log(`Deprecated as of ${e}. ${n}`),Sn[`${e}/${n}`]=!0)},Xe=new Error;function Cn(e,n,{key:t}){let r=0;const i=e[t],s={},o={};for(let a=1;a<=n.length;a++)o[a+r]=i[a],s[a+r]=!0,r+=wn(n[a-1]);e[t]=o,e[t]._emit=s,e[t]._multi=!0}function eo(e){if(Array.isArray(e.begin)){if(e.skip||e.excludeBegin||e.returnBegin)throw ve("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Xe;if(typeof e.beginScope!="object"||e.beginScope===null)throw ve("beginScope must be object"),Xe;Cn(e,e.begin,{key:"beginScope"}),e.begin=bt(e.begin,{joinWith:""})}}function to(e){if(Array.isArray(e.end)){if(e.skip||e.excludeEnd||e.returnEnd)throw ve("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Xe;if(typeof e.endScope!="object"||e.endScope===null)throw ve("endScope must be object"),Xe;Cn(e,e.end,{key:"endScope"}),e.end=bt(e.end,{joinWith:""})}}function no(e){e.scope&&typeof e.scope=="object"&&e.scope!==null&&(e.beginScope=e.scope,delete e.scope)}function ro(e){no(e),typeof e.beginScope=="string"&&(e.beginScope={_wrap:e.beginScope}),typeof e.endScope=="string"&&(e.endScope={_wrap:e.endScope}),eo(e),to(e)}function io(e){function n(o,a){return new RegExp(He(o),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(a?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,u){u.position=this.position++,this.matchIndexes[this.matchAt]=u,this.regexes.push([u,a]),this.matchAt+=wn(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(u=>u[1]);this.matcherRe=n(bt(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const u=this.matcherRe.exec(a);if(!u)return null;const c=u.findIndex((g,f)=>f>0&&g!==void 0),p=this.matchIndexes[c];return u.splice(0,c),Object.assign(u,p)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const u=new t;return this.rules.slice(a).forEach(([c,p])=>u.addRule(c,p)),u.compile(),this.multiRegexes[a]=u,u}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,u){this.rules.push([a,u]),u.type==="begin"&&this.count++}exec(a){const u=this.getMatcher(this.regexIndex);u.lastIndex=this.lastIndex;let c=u.exec(a);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const p=this.getMatcher(0);p.lastIndex=this.lastIndex+1,c=p.exec(a)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(o){const a=new r;return o.contains.forEach(u=>a.addRule(u.begin,{rule:u,type:"begin"})),o.terminatorEnd&&a.addRule(o.terminatorEnd,{type:"end"}),o.illegal&&a.addRule(o.illegal,{type:"illegal"}),a}function s(o,a){const u=o;if(o.isCompiled)return u;[qs,Ws,ro,Zs].forEach(p=>p(o,a)),e.compilerExtensions.forEach(p=>p(o,a)),o.__beforeBegin=null,[js,Vs,Ks].forEach(p=>p(o,a)),o.isCompiled=!0;let c=null;return typeof o.keywords=="object"&&o.keywords.$pattern&&(o.keywords=Object.assign({},o.keywords),c=o.keywords.$pattern,delete o.keywords.$pattern),c=c||/\w+/,o.keywords&&(o.keywords=_n(o.keywords,e.case_insensitive)),u.keywordPatternRe=n(c,!0),a&&(o.begin||(o.begin=/\B|\b/),u.beginRe=n(u.begin),!o.end&&!o.endsWithParent&&(o.end=/\B|\b/),o.end&&(u.endRe=n(u.end)),u.terminatorEnd=He(u.end)||"",o.endsWithParent&&a.terminatorEnd&&(u.terminatorEnd+=(o.end?"|":"")+a.terminatorEnd)),o.illegal&&(u.illegalRe=n(o.illegal)),o.contains||(o.contains=[]),o.contains=[].concat(...o.contains.map(function(p){return so(p==="self"?o:p)})),o.contains.forEach(function(p){s(p,u)}),o.starts&&s(o.starts,a),u.matcher=i(u),u}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=Te(e.classNameAliases||{}),s(e)}function Tn(e){return e?e.endsWithParent||Tn(e.starts):!1}function so(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(n){return Te(e,{variants:null},n)})),e.cachedVariants?e.cachedVariants:Tn(e)?Te(e,{starts:e.starts?Te(e.starts):null}):Object.isFrozen(e)?Te(e):e}var oo="11.9.0";class ao extends Error{constructor(n,t){super(n),this.name="HTMLInjectionError",this.html=t}}const yt=gn,In=Te,Nn=Symbol("nomatch"),lo=7,vn=function(e){const n=Object.create(null),t=Object.create(null),r=[];let i=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",o={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Es};function u(x){return a.noHighlightRe.test(x)}function c(x){let k=x.className+" ";k+=x.parentNode?x.parentNode.className:"";const v=a.languageDetectRe.exec(k);if(v){const l=B(v[1]);return l||(An(s.replace("{}",v[1])),An("Falling back to no-highlight mode for this block.",x)),l?v[1]:"no-highlight"}return k.split(/\s+/).find(l=>u(l)||B(l))}function p(x,k,v){let l="",F="";typeof k=="object"?(l=x,v=k.ignoreIllegals,F=k.language):(De("10.7.0","highlight(lang, code, ...args) has been deprecated."),De("10.7.0",`Please use highlight(code, options) instead.
|
|
5
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),F=x,l=k),v===void 0&&(v=!0);const Q={code:l,language:F};D("before:highlight",Q);const h=Q.result?Q.result:g(Q.language,Q.code,v);return h.code=Q.code,D("after:highlight",h),h}function g(x,k,v,l){const F=Object.create(null);function Q(w,E){return w.keywords[E]}function h(){if(!L.keywords){re.addText(X);return}let w=0;L.keywordPatternRe.lastIndex=0;let E=L.keywordPatternRe.exec(X),T="";for(;E;){T+=X.substring(w,E.index);const U=he.case_insensitive?E[0].toLowerCase():E[0],te=Q(L,U);if(te){const[ie,Re]=te;if(re.addText(T),T="",F[U]=(F[U]||0)+1,F[U]<=lo&&(Fe+=Re),ie.startsWith("_"))T+=E[0];else{const Oe=he.classNameAliases[ie]||ie;Y(E[0],Oe)}}else T+=E[0];w=L.keywordPatternRe.lastIndex,E=L.keywordPatternRe.exec(X)}T+=X.substring(w),re.addText(T)}function oe(){if(X==="")return;let w=null;if(typeof L.subLanguage=="string"){if(!n[L.subLanguage]){re.addText(X);return}w=g(L.subLanguage,X,!0,et[L.subLanguage]),et[L.subLanguage]=w._top}else w=d(X,L.subLanguage.length?L.subLanguage:null);L.relevance>0&&(Fe+=w.relevance),re.__addSublanguage(w._emitter,w.language)}function ne(){L.subLanguage!=null?oe():h(),X=""}function Y(w,E){w!==""&&(re.startScope(E),re.addText(w),re.endScope())}function Ie(w,E){let T=1;const U=E.length-1;for(;T<=U;){if(!w._emit[T]){T++;continue}const te=he.classNameAliases[w[T]]||w[T],ie=E[T];te?Y(ie,te):(X=ie,h(),X=""),T++}}function me(w,E){return w.scope&&typeof w.scope=="string"&&re.openNode(he.classNameAliases[w.scope]||w.scope),w.beginScope&&(w.beginScope._wrap?(Y(X,he.classNameAliases[w.beginScope._wrap]||w.beginScope._wrap),X=""):w.beginScope._multi&&(Ie(w.beginScope,E),X="")),L=Object.create(w,{parent:{value:L}}),L}function Ee(w,E,T){let U=As(w.endRe,T);if(U){if(w["on:end"]){const te=new pn(w);w["on:end"](E,te),te.isMatchIgnored&&(U=!1)}if(U){for(;w.endsParent&&w.parent;)w=w.parent;return w}}if(w.endsWithParent)return Ee(w.parent,E,T)}function ke(w){return L.matcher.regexIndex===0?(X+=w[0],1):(S=!0,0)}function qe(w){const E=w[0],T=w.rule,U=new pn(T),te=[T.__beforeBegin,T["on:begin"]];for(const ie of te)if(ie&&(ie(w,U),U.isMatchIgnored))return ke(E);return T.skip?X+=E:(T.excludeBegin&&(X+=E),ne(),!T.returnBegin&&!T.excludeBegin&&(X=E)),me(T,w),T.returnBegin?0:E.length}function xt(w){const E=w[0],T=k.substring(w.index),U=Ee(L,w,T);if(!U)return Nn;const te=L;L.endScope&&L.endScope._wrap?(ne(),Y(E,L.endScope._wrap)):L.endScope&&L.endScope._multi?(ne(),Ie(L.endScope,w)):te.skip?X+=E:(te.returnEnd||te.excludeEnd||(X+=E),ne(),te.excludeEnd&&(X=E));do L.scope&&re.closeNode(),!L.skip&&!L.subLanguage&&(Fe+=L.relevance),L=L.parent;while(L!==U.parent);return U.starts&&me(U.starts,w),te.returnEnd?0:E.length}function Et(){const w=[];for(let E=L;E!==he;E=E.parent)E.scope&&w.unshift(E.scope);w.forEach(E=>re.openNode(E))}let Me={};function je(w,E){const T=E&&E[0];if(X+=w,T==null)return ne(),0;if(Me.type==="begin"&&E.type==="end"&&Me.index===E.index&&T===""){if(X+=k.slice(E.index,E.index+1),!i){const U=new Error(`0 width match regex (${x})`);throw U.languageName=x,U.badRule=Me.rule,U}return 1}if(Me=E,E.type==="begin")return qe(E);if(E.type==="illegal"&&!v){const U=new Error('Illegal lexeme "'+T+'" for mode "'+(L.scope||"<unnamed>")+'"');throw U.mode=L,U}else if(E.type==="end"){const U=xt(E);if(U!==Nn)return U}if(E.type==="illegal"&&T==="")return 1;if(b>1e5&&b>E.index*3)throw new Error("potential infinite loop, way more iterations than matches");return X+=T,T.length}const he=B(x);if(!he)throw ve(s.replace("{}",x)),new Error('Unknown language: "'+x+'"');const kt=io(he);let Pe="",L=l||kt;const et={},re=new a.__emitter(a);Et();let X="",Fe=0,_e=0,b=0,S=!1;try{if(he.__emitTokens)he.__emitTokens(k,re);else{for(L.matcher.considerAll();;){b++,S?S=!1:L.matcher.considerAll(),L.matcher.lastIndex=_e;const w=L.matcher.exec(k);if(!w)break;const E=k.substring(_e,w.index),T=je(E,w);_e=w.index+T}je(k.substring(_e))}return re.finalize(),Pe=re.toHTML(),{language:x,value:Pe,relevance:Fe,illegal:!1,_emitter:re,_top:L}}catch(w){if(w.message&&w.message.includes("Illegal"))return{language:x,value:yt(k),illegal:!0,relevance:0,_illegalBy:{message:w.message,index:_e,context:k.slice(_e-100,_e+100),mode:w.mode,resultSoFar:Pe},_emitter:re};if(i)return{language:x,value:yt(k),illegal:!1,relevance:0,errorRaised:w,_emitter:re,_top:L};throw w}}function f(x){const k={value:yt(x),illegal:!1,relevance:0,_top:o,_emitter:new a.__emitter(a)};return k._emitter.addText(x),k}function d(x,k){k=k||a.languages||Object.keys(n);const v=f(x),l=k.filter(B).filter(I).map(ne=>g(ne,x,!1));l.unshift(v);const F=l.sort((ne,Y)=>{if(ne.relevance!==Y.relevance)return Y.relevance-ne.relevance;if(ne.language&&Y.language){if(B(ne.language).supersetOf===Y.language)return 1;if(B(Y.language).supersetOf===ne.language)return-1}return 0}),[Q,h]=F,oe=Q;return oe.secondBest=h,oe}function A(x,k,v){const l=k&&t[k]||v;x.classList.add("hljs"),x.classList.add(`language-${l}`)}function M(x){let k=null;const v=c(x);if(u(v))return;if(D("before:highlightElement",{el:x,language:v}),x.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",x);return}if(x.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(x)),a.throwUnescapedHTML))throw new ao("One of your code blocks includes unescaped HTML.",x.innerHTML);k=x;const l=k.textContent,F=v?p(l,{language:v,ignoreIllegals:!0}):d(l);x.innerHTML=F.value,x.dataset.highlighted="yes",A(x,v,F.language),x.result={language:F.language,re:F.relevance,relevance:F.relevance},F.secondBest&&(x.secondBest={language:F.secondBest.language,relevance:F.secondBest.relevance}),D("after:highlightElement",{el:x,result:F,text:l})}function P(x){a=In(a,x)}const _=()=>{G(),De("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function q(){G(),De("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let C=!1;function G(){if(document.readyState==="loading"){C=!0;return}document.querySelectorAll(a.cssSelector).forEach(M)}function H(){C&&G()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",H,!1);function y(x,k){let v=null;try{v=k(e)}catch(l){if(ve("Language definition for '{}' could not be registered.".replace("{}",x)),i)ve(l);else throw l;v=o}v.name||(v.name=x),n[x]=v,v.rawDefinition=k.bind(null,e),v.aliases&&m(v.aliases,{languageName:x})}function $(x){delete n[x];for(const k of Object.keys(t))t[k]===x&&delete t[k]}function V(){return Object.keys(n)}function B(x){return x=(x||"").toLowerCase(),n[x]||n[t[x]]}function m(x,{languageName:k}){typeof x=="string"&&(x=[x]),x.forEach(v=>{t[v.toLowerCase()]=k})}function I(x){const k=B(x);return k&&!k.disableAutodetect}function N(x){x["before:highlightBlock"]&&!x["before:highlightElement"]&&(x["before:highlightElement"]=k=>{x["before:highlightBlock"](Object.assign({block:k.el},k))}),x["after:highlightBlock"]&&!x["after:highlightElement"]&&(x["after:highlightElement"]=k=>{x["after:highlightBlock"](Object.assign({block:k.el},k))})}function W(x){N(x),r.push(x)}function Z(x){const k=r.indexOf(x);k!==-1&&r.splice(k,1)}function D(x,k){const v=x;r.forEach(function(l){l[v]&&l[v](k)})}function ee(x){return De("10.7.0","highlightBlock will be removed entirely in v12.0"),De("10.7.0","Please use highlightElement now."),M(x)}Object.assign(e,{highlight:p,highlightAuto:d,highlightAll:G,highlightElement:M,highlightBlock:ee,configure:P,initHighlighting:_,initHighlightingOnLoad:q,registerLanguage:y,unregisterLanguage:$,listLanguages:V,getLanguage:B,registerAliases:m,autoDetection:I,inherit:In,addPlugin:W,removePlugin:Z}),e.debugMode=function(){i=!1},e.safeMode=function(){i=!0},e.versionString=oo,e.regex={concat:Ne,lookahead:bn,either:mt,optional:_s,anyNumberOfTimes:ks};for(const x in Ye)typeof Ye[x]=="object"&&dn(Ye[x]);return Object.assign(e,Ye),e},ze=vn({});ze.newInstance=()=>vn({});var co=ze;ze.HighlightJS=ze,ze.default=ze;const Mn=bs(co),uo=Object.freeze(Object.defineProperty({__proto__:null,HighlightJS:Mn,default:Mn},Symbol.toStringTag,{value:"Module"})),Rn="[A-Za-z$_][0-9A-Za-z$_]*",ho=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],po=["true","false","null","undefined","NaN","Infinity"],On=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Ln=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Bn=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],go=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],fo=[].concat(Bn,On,Ln);function mo(e){const n=e.regex,t=(k,{after:v})=>{const l="</"+k[0].slice(1);return k.input.indexOf(l,v)!==-1},r=Rn,i={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(k,v)=>{const l=k[0].length+k.index,F=k.input[l];if(F==="<"||F===","){v.ignoreMatch();return}F===">"&&(t(k,{after:l})||v.ignoreMatch());let Q;const h=k.input.substring(l);if(Q=h.match(/^\s*=/)){v.ignoreMatch();return}if((Q=h.match(/^\s+extends\s+/))&&Q.index===0){v.ignoreMatch();return}}},a={$pattern:Rn,keyword:ho,literal:po,built_in:fo,"variable.language":go},u="[0-9](_?[0-9])*",c=`\\.(${u})`,p="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${p})((${c})|\\.)?|(${c}))[eE][+-]?(${u})\\b`},{begin:`\\b(${p})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},A={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},M={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},P={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},q={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},C=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,A,M,P,{match:/\$\d+/},g];f.contains=C.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(C)});const G=[].concat(q,f.contains),H=G.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(G)}]),y={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:H},$={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,n.concat(r,"(",n.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},V={relevance:0,match:n.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...On,...Ln]}},B={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},m={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],illegal:/%/},I={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function N(k){return n.concat("(?!",k.join("|"),")")}const W={match:n.concat(/\b/,N([...Bn,"super","import"]),r,n.lookahead(/\(/)),className:"title.function",relevance:0},Z={begin:n.concat(/\./,n.lookahead(n.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},D={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},ee="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",x={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(ee)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:H,CLASS_REFERENCE:V},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),B,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,A,M,P,q,{match:/\$\d+/},g,V,{className:"attr",begin:r+n.lookahead(":"),relevance:0},x,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,e.REGEXP_MODE,{className:"function",begin:ee,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:H}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:s},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},m,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[y,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Z,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[y]},W,I,$,D,{match:/\$[(.]/}]}}const bo=Object.freeze(Object.defineProperty({__proto__:null,default:mo},Symbol.toStringTag,{value:"Module"}));function wo(e){const n=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],t=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],s=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],o={keyword:i.concat(s),built_in:n,literal:r},a=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},p=e.inherit(c,{illegal:/\n/}),g={className:"subst",begin:/\{/,end:/\}/,keywords:o},f=e.inherit(g,{illegal:/\n/}),d={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},e.BACKSLASH_ESCAPE,f]},A={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},g]},M=e.inherit(A,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},f]});g.contains=[A,d,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.C_BLOCK_COMMENT_MODE],f.contains=[M,d,p,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,u,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const P={variants:[A,d,c,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},_={begin:"<",end:">",contains:[{beginKeywords:"in out"},a]},q=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",C={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:o,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},P,u,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},a,_,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,_,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+q+"\\s+)+"+e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:o,contains:[{beginKeywords:t.join(" "),relevance:0},{begin:e.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[e.TITLE_MODE,_],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,relevance:0,contains:[P,u,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},C]}}const yo=Object.freeze(Object.defineProperty({__proto__:null,default:wo},Symbol.toStringTag,{value:"Module"}));function xo(e){const n=e.regex,t=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],a={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},u={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:a,illegal:/#/},p={begin:/\{\{/,relevance:0},g={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,u,p,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,u,p,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,p,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,p,c]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},f="[0-9](_?[0-9])*",d=`(\\b(${f}))?\\.(${f})|\\b(${f})\\.`,A=`\\b|${r.join("|")}`,M={className:"number",relevance:0,variants:[{begin:`(\\b(${f})|(${d}))[eE][+-]?(${f})[jJ]?(?=${A})`},{begin:`(${d})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${A})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${A})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${A})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${A})`},{begin:`\\b(${f})[jJ](?=${A})`}]},P={className:"comment",begin:n.lookahead(/# type:/),end:/$/,keywords:a,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},_={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:["self",u,M,g,e.HASH_COMMENT_MODE]}]};return c.contains=[g,M,u],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:a,illegal:/(<\/|\?)|=>/,contains:[u,M,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},g,P,e.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,t],scope:{1:"keyword",3:"title.function"},contains:[_]},{variants:[{match:[/\bclass/,/\s+/,t,/\s*/,/\(\s*/,t,/\s*\)/]},{match:[/\bclass/,/\s+/,t]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[M,_,g]}]}}const Eo=Object.freeze(Object.defineProperty({__proto__:null,default:xo},Symbol.toStringTag,{value:"Module"})),ko=e=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:e.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),_o=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],So=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],Ao=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],Co=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],To=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function Io(e){const n=e.regex,t=ko(e),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",s=/@-?\w[\w]*(-\w+)*/,o="[a-zA-Z-][a-zA-Z0-9_-]*",a=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,r,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+o,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+Ao.join("|")+")"},{begin:":(:)?("+Co.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+To.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:n.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:s},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:So.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+_o.join("|")+")\\b"}]}}const No=Object.freeze(Object.defineProperty({__proto__:null,default:Io},Symbol.toStringTag,{value:"Module"})),Je="[A-Za-z$_][0-9A-Za-z$_]*",Dn=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],zn=["true","false","null","undefined","NaN","Infinity"],Pn=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Fn=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Un=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Gn=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Hn=[].concat(Un,Pn,Fn);function vo(e){const n=e.regex,t=(k,{after:v})=>{const l="</"+k[0].slice(1);return k.input.indexOf(l,v)!==-1},r=Je,i={begin:"<>",end:"</>"},s=/<[A-Za-z0-9\\._:-]+\s*\/>/,o={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(k,v)=>{const l=k[0].length+k.index,F=k.input[l];if(F==="<"||F===","){v.ignoreMatch();return}F===">"&&(t(k,{after:l})||v.ignoreMatch());let Q;const h=k.input.substring(l);if(Q=h.match(/^\s*=/)){v.ignoreMatch();return}if((Q=h.match(/^\s+extends\s+/))&&Q.index===0){v.ignoreMatch();return}}},a={$pattern:Je,keyword:Dn,literal:zn,built_in:Hn,"variable.language":Gn},u="[0-9](_?[0-9])*",c=`\\.(${u})`,p="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${p})((${c})|\\.)?|(${c}))[eE][+-]?(${u})\\b`},{begin:`\\b(${p})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},A={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},M={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"graphql"}},P={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},q={className:"comment",variants:[e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},C=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,A,M,P,{match:/\$\d+/},g];f.contains=C.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(C)});const G=[].concat(q,f.contains),H=G.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(G)}]),y={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:H},$={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,n.concat(r,"(",n.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},V={relevance:0,match:n.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Pn,...Fn]}},B={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},m={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[y],illegal:/%/},I={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function N(k){return n.concat("(?!",k.join("|"),")")}const W={match:n.concat(/\b/,N([...Un,"super","import"]),r,n.lookahead(/\(/)),className:"title.function",relevance:0},Z={begin:n.concat(/\./,n.lookahead(n.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},D={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},y]},ee="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",x={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,n.lookahead(ee)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[y]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:H,CLASS_REFERENCE:V},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),B,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,d,A,M,P,q,{match:/\$\d+/},g,V,{className:"attr",begin:r+n.lookahead(":"),relevance:0},x,{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[q,e.REGEXP_MODE,{className:"function",begin:ee,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:H}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:s},{begin:o.begin,"on:begin":o.isTrulyOpeningTag,end:o.end}],subLanguage:"xml",contains:[{begin:o.begin,end:o.end,skip:!0,contains:["self"]}]}]},m,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[y,e.inherit(e.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},Z,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[y]},W,I,$,D,{match:/\$[(.]/}]}}function Mo(e){const n=vo(e),t=Je,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[n.exports.CLASS_REFERENCE]},s={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[n.exports.CLASS_REFERENCE]},o={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},a=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],u={$pattern:Je,keyword:Dn.concat(a),literal:zn,built_in:Hn.concat(r),"variable.language":Gn},c={className:"meta",begin:"@"+t},p=(f,d,A)=>{const M=f.contains.findIndex(P=>P.label===d);if(M===-1)throw new Error("can not find mode to replace");f.contains.splice(M,1,A)};Object.assign(n.keywords,u),n.exports.PARAMS_CONTAINS.push(c),n.contains=n.contains.concat([c,i,s]),p(n,"shebang",e.SHEBANG()),p(n,"use_strict",o);const g=n.contains.find(f=>f.label==="func.def");return g.relevance=0,Object.assign(n,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),n}const Ro=Object.freeze(Object.defineProperty({__proto__:null,default:Mo},Symbol.toStringTag,{value:"Module"}));pe.AIChat=ms,Object.defineProperty(pe,Symbol.toStringTag,{value:"Module"})});
|