@kong-ui-public/documentation 0.7.14 → 0.7.15
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/{arc-CinmSIDH-CFgCE0kN.js → arc-CinmSIDH-Dcn7KGvc.js} +1 -1
- package/dist/{blockDiagram-6b2b5046-lWu5MHZ2-BmLX7-4E.js → blockDiagram-6b2b5046-lWu5MHZ2-BoOEWYD6.js} +5 -5
- package/dist/{c4Diagram-b947cdbb-_2ZSBCRj-6uVZu7pI.js → c4Diagram-b947cdbb-_2ZSBCRj-BUDh5aYq.js} +2 -2
- package/dist/{channel-DxVjAaZy-C-FkVoer.js → channel-DxVjAaZy-IJf5_8CK.js} +1 -1
- package/dist/{classDiagram-35230388-C7cMop8F-DmVY0qTA.js → classDiagram-35230388-C7cMop8F-DuBGfvGp.js} +5 -5
- package/dist/{classDiagram-v2-412acd34-Sr_pGTUt-5cf-840x.js → classDiagram-v2-412acd34-Sr_pGTUt-AuJo5LIE.js} +5 -5
- package/dist/{clone-BaxuDe_X-BrqbMixj.js → clone-BaxuDe_X-CSbtQIgr.js} +1 -1
- package/dist/{createText-423428c9-DSXJlj3p-BFiCimMG.js → createText-423428c9-DSXJlj3p-CmtLQWob.js} +1 -1
- package/dist/documentation.es.js +1 -1
- package/dist/documentation.umd.js +4 -4
- package/dist/{edges-d417c7a0-D20zX-94-CQKfH7o0.js → edges-d417c7a0-D20zX-94-B8CphGxt.js} +3 -3
- package/dist/{erDiagram-0ea73325-p8FwyJvU-D1YDLrKU.js → erDiagram-0ea73325-p8FwyJvU-C0OgYqUN.js} +4 -4
- package/dist/{flowDb-d35e309a-Ca4FSAVM-B0uws7kW.js → flowDb-d35e309a-Ca4FSAVM-WQMmXDja.js} +1 -1
- package/dist/{flowDiagram-d949d7c1-OwxKQJQE-Dwh-OqN9.js → flowDiagram-d949d7c1-OwxKQJQE-D3HzuONU.js} +6 -6
- package/dist/{flowDiagram-v2-49332944-CmJFqFX3-l0YNLo8x.js → flowDiagram-v2-49332944-CmJFqFX3-BpyxAjBd.js} +5 -5
- package/dist/{flowchart-elk-definition-27cc417a-BK-QJI5S-Clr3EJj1.js → flowchart-elk-definition-27cc417a-BK-QJI5S-CNQPwu_u.js} +4 -4
- package/dist/{ganttDiagram-5c869e3b-DsJMAz4f-BDq-T3vs.js → ganttDiagram-5c869e3b-DsJMAz4f-CtgkK1FL.js} +2 -2
- package/dist/{gitGraphDiagram-b9d81de9-CgW7vwTs-DOayIk_b.js → gitGraphDiagram-b9d81de9-CgW7vwTs-Dww-gIrc.js} +1 -1
- package/dist/{graph-_GyIwSxm-ADGrv7uE.js → graph-_GyIwSxm-B_vR7apB.js} +1 -1
- package/dist/{index-8fae9850-CyqCz_ca-Qh5dJDLq.js → index-8fae9850-CyqCz_ca-cnk5n7Fe.js} +6 -6
- package/dist/{index-BX3bUgXs.js → index-BIPKSlhn.js} +41 -41
- package/dist/{infoDiagram-db7b18fc-0P3OTShw-BaDpwbaq.js → infoDiagram-db7b18fc-0P3OTShw-Bp1eVumE.js} +1 -1
- package/dist/{journeyDiagram-d5636530-DaBgA-aj-BzZqEMDY.js → journeyDiagram-d5636530-DaBgA-aj-Z9L2Q9UD.js} +3 -3
- package/dist/{layout-Bk7AdqJz-tEJjMiAW.js → layout-Bk7AdqJz-DRyrmTYm.js} +2 -2
- package/dist/{line-B7Dd0TiT-hwm8Kn2I.js → line-B7Dd0TiT-HVx0CjRf.js} +1 -1
- package/dist/{linear-bMW21eJn-CXmjOq6c.js → linear-bMW21eJn-BiTwGlLg.js} +1 -1
- package/dist/{mindmap-definition-377f8f1f-ufN3tUA6-DqcYDVsp.js → mindmap-definition-377f8f1f-ufN3tUA6-DrATq7p8.js} +2 -2
- package/dist/{pieDiagram-b0208e96-DrO8Y6_Q-CYv7SGVN.js → pieDiagram-b0208e96-DrO8Y6_Q-qz1Vqf8G.js} +2 -2
- package/dist/{quadrantDiagram-0332be45-DIp67xs6-OFZxAVqt.js → quadrantDiagram-0332be45-DIp67xs6-CWxwUwJf.js} +2 -2
- package/dist/{requirementDiagram-bf7890df-BSzVPfZD-CpDtfXvZ.js → requirementDiagram-bf7890df-BSzVPfZD-CzxSaoYW.js} +4 -4
- package/dist/{sankeyDiagram-0acdec17-prPA1qqX-DgvsQxm8.js → sankeyDiagram-0acdec17-prPA1qqX-DBebH8FH.js} +1 -1
- package/dist/{sequenceDiagram-c18d009d-BAWs2OYL-DCM0AGOn.js → sequenceDiagram-c18d009d-BAWs2OYL-Cl7Uk4w9.js} +2 -2
- package/dist/{stateDiagram-43596fc0-DXEJ0R4o-4n8dLfH-.js → stateDiagram-43596fc0-DXEJ0R4o-cB0WlEf9.js} +5 -5
- package/dist/{stateDiagram-v2-2ead4f9c-DnzyCUgr-DewWSmuL.js → stateDiagram-v2-2ead4f9c-DnzyCUgr-DQ4IkVrl.js} +5 -5
- package/dist/{styles-6860f46c-DzVPBoYT-YvW8SE7N.js → styles-6860f46c-DzVPBoYT-g58cIxdl.js} +1 -1
- package/dist/{styles-7383a064-BL-LjhLx-AfBp_3I8.js → styles-7383a064-BL-LjhLx-DdruT6_O.js} +4 -4
- package/dist/{styles-b2c874b6-BCYk3bdu-Cw6E1rWz.js → styles-b2c874b6-BCYk3bdu-CLfur12t.js} +1 -1
- package/dist/{svgDrawCommon-0ee1b4e9-CUz2naLo-C4mxJoKi.js → svgDrawCommon-0ee1b4e9-CUz2naLo-Bok-bE1n.js} +1 -1
- package/dist/{timeline-definition-d977decf-BSETSy08-DxRQOI0I.js → timeline-definition-d977decf-BSETSy08-C-kk4S0n.js} +2 -2
- package/dist/{xychartDiagram-e50adddc-C82b8cby-B2Wf8YmD.js → xychartDiagram-e50adddc-C82b8cby-B-sVwnzU.js} +4 -4
- package/package.json +4 -4
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
`+Ea.mark.snippet),iA+" "+aA):iA}function Fe$8(Ea,Ua){Error.call(this),this.name="YAMLException",this.reason=Ea,this.mark=Ua,this.message=qt$d(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Fe$8.prototype=Object.create(Error.prototype),Fe$8.prototype.constructor=Fe$8,Fe$8.prototype.toString=function(Ea){return this.name+": "+qt$d(this,Ea)};var te$d=Fe$8,ii$3=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ai$3=["scalar","sequence","mapping"];function oi$3(Ea){var Ua={};return Ea!==null&&Object.keys(Ea).forEach(function(aA){Ea[aA].forEach(function(iA){Ua[String(iA)]=aA})}),Ua}function li$4(Ea,Ua){if(Ua=Ua||{},Object.keys(Ua).forEach(function(aA){if(ii$3.indexOf(aA)===-1)throw new te$d('Unknown option "'+aA+'" is met in definition of "'+Ea+'" YAML type.')}),this.options=Ua,this.tag=Ea,this.kind=Ua.kind||null,this.resolve=Ua.resolve||function(){return!0},this.construct=Ua.construct||function(aA){return aA},this.instanceOf=Ua.instanceOf||null,this.predicate=Ua.predicate||null,this.represent=Ua.represent||null,this.representName=Ua.representName||null,this.defaultStyle=Ua.defaultStyle||null,this.multi=Ua.multi||!1,this.styleAliases=oi$3(Ua.styleAliases||null),ai$3.indexOf(this.kind)===-1)throw new te$d('Unknown kind "'+this.kind+'" is specified for "'+Ea+'" YAML type.')}var X$a=li$4;function mt$c(Ea,Ua){var aA=[];return Ea[Ua].forEach(function(iA){var AA=aA.length;aA.forEach(function(sA,oA){sA.tag===iA.tag&&sA.kind===iA.kind&&sA.multi===iA.multi&&(AA=oA)}),aA[AA]=iA}),aA}function si$3(){var Ea={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},Ua,aA;function iA(AA){AA.multi?(Ea.multi[AA.kind].push(AA),Ea.multi.fallback.push(AA)):Ea[AA.kind][AA.tag]=Ea.fallback[AA.tag]=AA}for(Ua=0,aA=arguments.length;Ua<aA;Ua+=1)arguments[Ua].forEach(iA);return Ea}function We$8(Ea){return this.extend(Ea)}We$8.prototype.extend=function(Ea){var Ua=[],aA=[];if(Ea instanceof X$a)aA.push(Ea);else if(Array.isArray(Ea))aA=aA.concat(Ea);else if(Ea&&(Array.isArray(Ea.implicit)||Array.isArray(Ea.explicit)))Ea.implicit&&(Ua=Ua.concat(Ea.implicit)),Ea.explicit&&(aA=aA.concat(Ea.explicit));else throw new te$d("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");Ua.forEach(function(AA){if(!(AA instanceof X$a))throw new te$d("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(AA.loadKind&&AA.loadKind!=="scalar")throw new te$d("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(AA.multi)throw new te$d("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),aA.forEach(function(AA){if(!(AA instanceof X$a))throw new te$d("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var iA=Object.create(We$8.prototype);return iA.implicit=(this.implicit||[]).concat(Ua),iA.explicit=(this.explicit||[]).concat(aA),iA.compiledImplicit=mt$c(iA,"implicit"),iA.compiledExplicit=mt$c(iA,"explicit"),iA.compiledTypeMap=si$3(iA.compiledImplicit,iA.compiledExplicit),iA};var Pt$d=We$8,Ht$c=new X$a("tag:yaml.org,2002:str",{kind:"scalar",construct:function(Ea){return Ea!==null?Ea:""}}),Vt$e=new X$a("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(Ea){return Ea!==null?Ea:[]}}),zt$9=new X$a("tag:yaml.org,2002:map",{kind:"mapping",construct:function(Ea){return Ea!==null?Ea:{}}}),Yt$d=new Pt$d({explicit:[Ht$c,Vt$e,zt$9]});function ci$3(Ea){if(Ea===null)return!0;var Ua=Ea.length;return Ua===1&&Ea==="~"||Ua===4&&(Ea==="null"||Ea==="Null"||Ea==="NULL")}function ui$3(){return null}function di$3(Ea){return Ea===null}var Wt$c=new X$a("tag:yaml.org,2002:null",{kind:"scalar",resolve:ci$3,construct:ui$3,predicate:di$3,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function fi$3(Ea){if(Ea===null)return!1;var Ua=Ea.length;return Ua===4&&(Ea==="true"||Ea==="True"||Ea==="TRUE")||Ua===5&&(Ea==="false"||Ea==="False"||Ea==="FALSE")}function pi$4(Ea){return Ea==="true"||Ea==="True"||Ea==="TRUE"}function hi$3(Ea){return Object.prototype.toString.call(Ea)==="[object Boolean]"}var Jt$b=new X$a("tag:yaml.org,2002:bool",{kind:"scalar",resolve:fi$3,construct:pi$4,predicate:hi$3,represent:{lowercase:function(Ea){return Ea?"true":"false"},uppercase:function(Ea){return Ea?"TRUE":"FALSE"},camelcase:function(Ea){return Ea?"True":"False"}},defaultStyle:"lowercase"});function mi$3(Ea){return 48<=Ea&&Ea<=57||65<=Ea&&Ea<=70||97<=Ea&&Ea<=102}function gi$3(Ea){return 48<=Ea&&Ea<=55}function yi$3(Ea){return 48<=Ea&&Ea<=57}function vi$2(Ea){if(Ea===null)return!1;var Ua=Ea.length,aA=0,iA=!1,AA;if(!Ua)return!1;if(AA=Ea[aA],(AA==="-"||AA==="+")&&(AA=Ea[++aA]),AA==="0"){if(aA+1===Ua)return!0;if(AA=Ea[++aA],AA==="b"){for(aA++;aA<Ua;aA++)if(AA=Ea[aA],AA!=="_"){if(AA!=="0"&&AA!=="1")return!1;iA=!0}return iA&&AA!=="_"}if(AA==="x"){for(aA++;aA<Ua;aA++)if(AA=Ea[aA],AA!=="_"){if(!mi$3(Ea.charCodeAt(aA)))return!1;iA=!0}return iA&&AA!=="_"}if(AA==="o"){for(aA++;aA<Ua;aA++)if(AA=Ea[aA],AA!=="_"){if(!gi$3(Ea.charCodeAt(aA)))return!1;iA=!0}return iA&&AA!=="_"}}if(AA==="_")return!1;for(;aA<Ua;aA++)if(AA=Ea[aA],AA!=="_"){if(!yi$3(Ea.charCodeAt(aA)))return!1;iA=!0}return!(!iA||AA==="_")}function bi$3(Ea){var Ua=Ea,aA=1,iA;if(Ua.indexOf("_")!==-1&&(Ua=Ua.replace(/_/g,"")),iA=Ua[0],(iA==="-"||iA==="+")&&(iA==="-"&&(aA=-1),Ua=Ua.slice(1),iA=Ua[0]),Ua==="0")return 0;if(iA==="0"){if(Ua[1]==="b")return aA*parseInt(Ua.slice(2),2);if(Ua[1]==="x")return aA*parseInt(Ua.slice(2),16);if(Ua[1]==="o")return aA*parseInt(Ua.slice(2),8)}return aA*parseInt(Ua,10)}function xi$3(Ea){return Object.prototype.toString.call(Ea)==="[object Number]"&&Ea%1===0&&!Z$d.isNegativeZero(Ea)}var Gt$b=new X$a("tag:yaml.org,2002:int",{kind:"scalar",resolve:vi$2,construct:bi$3,predicate:xi$3,represent:{binary:function(Ea){return Ea>=0?"0b"+Ea.toString(2):"-0b"+Ea.toString(2).slice(1)},octal:function(Ea){return Ea>=0?"0o"+Ea.toString(8):"-0o"+Ea.toString(8).slice(1)},decimal:function(Ea){return Ea.toString(10)},hexadecimal:function(Ea){return Ea>=0?"0x"+Ea.toString(16).toUpperCase():"-0x"+Ea.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Ci$2=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function ki$3(Ea){return!(Ea===null||!Ci$2.test(Ea)||Ea[Ea.length-1]==="_")}function _i$3(Ea){var Ua,aA;return Ua=Ea.replace(/_/g,"").toLowerCase(),aA=Ua[0]==="-"?-1:1,"+-".indexOf(Ua[0])>=0&&(Ua=Ua.slice(1)),Ua===".inf"?aA===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:Ua===".nan"?NaN:aA*parseFloat(Ua,10)}var wi$3=/^[-+]?[0-9]+e/;function Ai$3(Ea,Ua){var aA;if(isNaN(Ea))switch(Ua){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===Ea)switch(Ua){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===Ea)switch(Ua){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Z$d.isNegativeZero(Ea))return"-0.0";return aA=Ea.toString(10),wi$3.test(aA)?aA.replace("e",".e"):aA}function Si$2(Ea){return Object.prototype.toString.call(Ea)==="[object Number]"&&(Ea%1!==0||Z$d.isNegativeZero(Ea))}var Zt$d=new X$a("tag:yaml.org,2002:float",{kind:"scalar",resolve:ki$3,construct:_i$3,predicate:Si$2,represent:Ai$3,defaultStyle:"lowercase"}),Qt$b=Yt$d.extend({implicit:[Wt$c,Jt$b,Gt$b,Zt$d]}),Xt$c=Qt$b,en$3=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),tn$5=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Ii$2(Ea){return Ea===null?!1:en$3.exec(Ea)!==null||tn$5.exec(Ea)!==null}function Ei$2(Ea){var Ua,aA,iA,AA,sA,oA,dA,gA=0,hA=null,fA,wA,CA;if(Ua=en$3.exec(Ea),Ua===null&&(Ua=tn$5.exec(Ea)),Ua===null)throw new Error("Date resolve error");if(aA=+Ua[1],iA=+Ua[2]-1,AA=+Ua[3],!Ua[4])return new Date(Date.UTC(aA,iA,AA));if(sA=+Ua[4],oA=+Ua[5],dA=+Ua[6],Ua[7]){for(gA=Ua[7].slice(0,3);gA.length<3;)gA+="0";gA=+gA}return Ua[9]&&(fA=+Ua[10],wA=+(Ua[11]||0),hA=(fA*60+wA)*6e4,Ua[9]==="-"&&(hA=-hA)),CA=new Date(Date.UTC(aA,iA,AA,sA,oA,dA,gA)),hA&&CA.setTime(CA.getTime()-hA),CA}function Ti$1(Ea){return Ea.toISOString()}var nn$5=new X$a("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Ii$2,construct:Ei$2,instanceOf:Date,represent:Ti$1});function $i$2(Ea){return Ea==="<<"||Ea===null}var rn$4=new X$a("tag:yaml.org,2002:merge",{kind:"scalar",resolve:$i$2}),tt$f=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
4
4
|
\r`;function Fi$2(Ea){if(Ea===null)return!1;var Ua,aA,iA=0,AA=Ea.length,sA=tt$f;for(aA=0;aA<AA;aA++)if(Ua=sA.indexOf(Ea.charAt(aA)),!(Ua>64)){if(Ua<0)return!1;iA+=6}return iA%8===0}function Oi$2(Ea){var Ua,aA,iA=Ea.replace(/[\r\n=]/g,""),AA=iA.length,sA=tt$f,oA=0,dA=[];for(Ua=0;Ua<AA;Ua++)Ua%4===0&&Ua&&(dA.push(oA>>16&255),dA.push(oA>>8&255),dA.push(oA&255)),oA=oA<<6|sA.indexOf(iA.charAt(Ua));return aA=AA%4*6,aA===0?(dA.push(oA>>16&255),dA.push(oA>>8&255),dA.push(oA&255)):aA===18?(dA.push(oA>>10&255),dA.push(oA>>2&255)):aA===12&&dA.push(oA>>4&255),new Uint8Array(dA)}function Li$2(Ea){var Ua="",aA=0,iA,AA,sA=Ea.length,oA=tt$f;for(iA=0;iA<sA;iA++)iA%3===0&&iA&&(Ua+=oA[aA>>18&63],Ua+=oA[aA>>12&63],Ua+=oA[aA>>6&63],Ua+=oA[aA&63]),aA=(aA<<8)+Ea[iA];return AA=sA%3,AA===0?(Ua+=oA[aA>>18&63],Ua+=oA[aA>>12&63],Ua+=oA[aA>>6&63],Ua+=oA[aA&63]):AA===2?(Ua+=oA[aA>>10&63],Ua+=oA[aA>>4&63],Ua+=oA[aA<<2&63],Ua+=oA[64]):AA===1&&(Ua+=oA[aA>>2&63],Ua+=oA[aA<<4&63],Ua+=oA[64],Ua+=oA[64]),Ua}function Ni$2(Ea){return Object.prototype.toString.call(Ea)==="[object Uint8Array]"}var an$3=new X$a("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Fi$2,construct:Oi$2,predicate:Ni$2,represent:Li$2}),Bi$2=Object.prototype.hasOwnProperty,Ri$3=Object.prototype.toString;function Mi$3(Ea){if(Ea===null)return!0;var Ua=[],aA,iA,AA,sA,oA,dA=Ea;for(aA=0,iA=dA.length;aA<iA;aA+=1){if(AA=dA[aA],oA=!1,Ri$3.call(AA)!=="[object Object]")return!1;for(sA in AA)if(Bi$2.call(AA,sA))if(!oA)oA=!0;else return!1;if(!oA)return!1;if(Ua.indexOf(sA)===-1)Ua.push(sA);else return!1}return!0}function Ki$2(Ea){return Ea!==null?Ea:[]}var on$2=new X$a("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Mi$3,construct:Ki$2}),Di$1=Object.prototype.toString;function Ui$2(Ea){if(Ea===null)return!0;var Ua,aA,iA,AA,sA,oA=Ea;for(sA=new Array(oA.length),Ua=0,aA=oA.length;Ua<aA;Ua+=1){if(iA=oA[Ua],Di$1.call(iA)!=="[object Object]"||(AA=Object.keys(iA),AA.length!==1))return!1;sA[Ua]=[AA[0],iA[AA[0]]]}return!0}function ji$2(Ea){if(Ea===null)return[];var Ua,aA,iA,AA,sA,oA=Ea;for(sA=new Array(oA.length),Ua=0,aA=oA.length;Ua<aA;Ua+=1)iA=oA[Ua],AA=Object.keys(iA),sA[Ua]=[AA[0],iA[AA[0]]];return sA}var ln$5=new X$a("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Ui$2,construct:ji$2}),qi$2=Object.prototype.hasOwnProperty;function Pi$2(Ea){if(Ea===null)return!0;var Ua,aA=Ea;for(Ua in aA)if(qi$2.call(aA,Ua)&&aA[Ua]!==null)return!1;return!0}function Hi$2(Ea){return Ea!==null?Ea:{}}var sn$5=new X$a("tag:yaml.org,2002:set",{kind:"mapping",resolve:Pi$2,construct:Hi$2});Xt$c.extend({implicit:[nn$5,rn$4],explicit:[an$3,on$2,ln$5,sn$5]});function vt$d(Ea){return Ea===48?"\0":Ea===97?"\x07":Ea===98?"\b":Ea===116||Ea===9?" ":Ea===110?`
|
|
5
5
|
`:Ea===118?"\v":Ea===102?"\f":Ea===114?"\r":Ea===101?"\x1B":Ea===32?" ":Ea===34?'"':Ea===47?"/":Ea===92?"\\":Ea===78?"
":Ea===95?" ":Ea===76?"\u2028":Ea===80?"\u2029":""}for(var pn$6=new Array(256),hn$5=new Array(256),ve$7=0;ve$7<256;ve$7++)pn$6[ve$7]=vt$d(ve$7)?1:0,hn$5[ve$7]=vt$d(ve$7);const os$2=vue.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(Ea){const Ua=Ea,aA=vue.ref(void 0),iA=vue.computed(()=>aA.value===!0||aA.value!==void 0&&Ua.forceShow===!0);return vue.watch(()=>Ua.authFunction,async()=>{aA.value=await Ua.authFunction()},{immediate:!0}),(AA,sA)=>iA.value?vue.renderSlot(AA.$slots,"default",{key:0,isAllowed:aA.value}):vue.createCommentVNode("",!0)}}),Q$9=[];for(let Ea=0;Ea<256;++Ea)Q$9.push((Ea+256).toString(16).slice(1));typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);var Ye$9=Object.defineProperty,Ke$a=(Ea,Ua,aA)=>Ua in Ea?Ye$9(Ea,Ua,{enumerable:!0,configurable:!0,writable:!0,value:aA}):Ea[Ua]=aA,nA=(Ea,Ua,aA)=>(Ke$a(Ea,typeof Ua!="symbol"?Ua+"":Ua,aA),aA);const UNIQUE_ID_INJECTION_KEY=Symbol("The unique id that prefixes all identifiers within a single instance of the component"),TEXTAREA_ID_INJECTION_KEY=Symbol("Textarea unique id"),MODE_INJECTION_KEY=Symbol("Markdown component mode"),EDITABLE_INJECTION_KEY=Symbol("Is the markdown component editable"),FULLSCREEN_INJECTION_KEY=Symbol("Is the markdown component displaying fullscreen"),THEME_INJECTION_KEY=Symbol("Active theme, light or dark"),HTML_PREVIEW_INJECTION_KEY=Symbol("Is the html preview enabled");function tryOnScopeDispose(Ea){return vue.getCurrentScope()?(vue.onScopeDispose(Ea),!0):!1}function toValue(Ea){return typeof Ea=="function"?Ea():vue.unref(Ea)}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const notNullish=Ea=>Ea!=null,toString$1=Object.prototype.toString,isObject$5=Ea=>toString$1.call(Ea)==="[object Object]",noop$2=()=>{};function createFilterWrapper(Ea,Ua){function aA(...iA){return new Promise((AA,sA)=>{Promise.resolve(Ea(()=>Ua.apply(this,iA),{fn:Ua,thisArg:this,args:iA})).then(AA).catch(sA)})}return aA}function debounceFilter(Ea,Ua={}){let aA,iA,AA=noop$2;const sA=oA=>{clearTimeout(oA),AA(),AA=noop$2};return oA=>{const dA=toValue(Ea),gA=toValue(Ua.maxWait);return aA&&sA(aA),dA<=0||gA!==void 0&&gA<=0?(iA&&(sA(iA),iA=null),Promise.resolve(oA())):new Promise((hA,fA)=>{AA=Ua.rejectOnCancel?fA:hA,gA&&!iA&&(iA=setTimeout(()=>{aA&&sA(aA),iA=null,hA(oA())},gA)),aA=setTimeout(()=>{iA&&sA(iA),iA=null,hA(oA())},dA)})}}function throttleFilter(...Ea){let Ua=0,aA,iA=!0,AA=noop$2,sA,oA,dA,gA,hA;!vue.isRef(Ea[0])&&typeof Ea[0]=="object"?{delay:oA,trailing:dA=!0,leading:gA=!0,rejectOnCancel:hA=!1}=Ea[0]:[oA,dA=!0,gA=!0,hA=!1]=Ea;const fA=()=>{aA&&(clearTimeout(aA),aA=void 0,AA(),AA=noop$2)};return wA=>{const CA=toValue(oA),_A=Date.now()-Ua,BA=()=>sA=wA();return fA(),CA<=0?(Ua=Date.now(),BA()):(_A>CA&&(gA||!iA)?(Ua=Date.now(),BA()):dA&&(sA=new Promise((IA,$A)=>{AA=hA?$A:IA,aA=setTimeout(()=>{Ua=Date.now(),iA=!0,IA(BA()),fA()},Math.max(0,CA-_A))})),!gA&&!aA&&(aA=setTimeout(()=>iA=!0,CA)),iA=!1,sA)}}function getLifeCycleTarget(Ea){return vue.getCurrentInstance()}function useDebounceFn(Ea,Ua=200,aA={}){return createFilterWrapper(debounceFilter(Ua,aA),Ea)}function useThrottleFn(Ea,Ua=200,aA=!1,iA=!0,AA=!1){return createFilterWrapper(throttleFilter(Ua,aA,iA,AA),Ea)}function tryOnMounted(Ea,Ua=!0,aA){getLifeCycleTarget()?vue.onMounted(Ea,aA):Ua?Ea():vue.nextTick(Ea)}function unrefElement(Ea){var Ua;const aA=toValue(Ea);return(Ua=aA==null?void 0:aA.$el)!=null?Ua:aA}const defaultWindow=isClient?window:void 0;function useEventListener(...Ea){let Ua,aA,iA,AA;if(typeof Ea[0]=="string"||Array.isArray(Ea[0])?([aA,iA,AA]=Ea,Ua=defaultWindow):[Ua,aA,iA,AA]=Ea,!Ua)return noop$2;Array.isArray(aA)||(aA=[aA]),Array.isArray(iA)||(iA=[iA]);const sA=[],oA=()=>{sA.forEach(fA=>fA()),sA.length=0},dA=(fA,wA,CA,_A)=>(fA.addEventListener(wA,CA,_A),()=>fA.removeEventListener(wA,CA,_A)),gA=vue.watch(()=>[unrefElement(Ua),toValue(AA)],([fA,wA])=>{if(oA(),!fA)return;const CA=isObject$5(wA)?{...wA}:wA;sA.push(...aA.flatMap(_A=>iA.map(BA=>dA(fA,_A,BA,CA))))},{immediate:!0,flush:"post"}),hA=()=>{gA(),oA()};return tryOnScopeDispose(hA),hA}function useMounted(){const Ea=vue.ref(!1),Ua=vue.getCurrentInstance();return Ua&&vue.onMounted(()=>{Ea.value=!0},Ua),Ea}function useSupported(Ea){const Ua=useMounted();return vue.computed(()=>(Ua.value,!!Ea()))}function useMutationObserver(Ea,Ua,aA={}){const{window:iA=defaultWindow,...AA}=aA;let sA;const oA=useSupported(()=>iA&&"MutationObserver"in iA),dA=()=>{sA&&(sA.disconnect(),sA=void 0)},gA=vue.computed(()=>{const CA=toValue(Ea),_A=(Array.isArray(CA)?CA:[CA]).map(unrefElement).filter(notNullish);return new Set(_A)}),hA=vue.watch(()=>gA.value,CA=>{dA(),oA.value&&CA.size&&(sA=new MutationObserver(Ua),CA.forEach(_A=>sA.observe(_A,AA)))},{immediate:!0,flush:"post"}),fA=()=>sA==null?void 0:sA.takeRecords(),wA=()=>{dA(),hA()};return tryOnScopeDispose(wA),{isSupported:oA,stop:wA,takeRecords:fA}}function useActiveElement(Ea={}){var Ua;const{window:aA=defaultWindow,deep:iA=!0,triggerOnRemoval:AA=!1}=Ea,sA=(Ua=Ea.document)!=null?Ua:aA==null?void 0:aA.document,oA=()=>{var hA;let fA=sA==null?void 0:sA.activeElement;if(iA)for(;fA!=null&&fA.shadowRoot;)fA=(hA=fA==null?void 0:fA.shadowRoot)==null?void 0:hA.activeElement;return fA},dA=vue.ref(),gA=()=>{dA.value=oA()};return aA&&(useEventListener(aA,"blur",hA=>{hA.relatedTarget===null&&gA()},!0),useEventListener(aA,"focus",gA,!0)),AA&&useMutationObserver(sA,hA=>{hA.filter(fA=>fA.removedNodes.length).map(fA=>Array.from(fA.removedNodes)).flat().forEach(fA=>{fA===dA.value&&gA()})},{childList:!0,subtree:!0}),gA(),dA}function useMediaQuery(Ea,Ua={}){const{window:aA=defaultWindow}=Ua,iA=useSupported(()=>aA&&"matchMedia"in aA&&typeof aA.matchMedia=="function");let AA;const sA=vue.ref(!1),oA=hA=>{sA.value=hA.matches},dA=()=>{AA&&("removeEventListener"in AA?AA.removeEventListener("change",oA):AA.removeListener(oA))},gA=vue.watchEffect(()=>{iA.value&&(dA(),AA=aA.matchMedia(toValue(Ea)),"addEventListener"in AA?AA.addEventListener("change",oA):AA.addListener(oA),sA.value=AA.matches)});return tryOnScopeDispose(()=>{gA(),dA(),AA=void 0}),sA}const ARRIVED_STATE_THRESHOLD_PIXELS=1;function useScroll(Ea,Ua={}){const{throttle:aA=0,idle:iA=200,onStop:AA=noop$2,onScroll:sA=noop$2,offset:oA={left:0,right:0,top:0,bottom:0},eventListenerOptions:dA={capture:!1,passive:!0},behavior:gA="auto",window:hA=defaultWindow,onError:fA=RA=>{console.error(RA)}}=Ua,wA=vue.ref(0),CA=vue.ref(0),_A=vue.computed({get(){return wA.value},set(RA){IA(RA,void 0)}}),BA=vue.computed({get(){return CA.value},set(RA){IA(void 0,RA)}});function IA(RA,SA){var qA,LA,KA,jA;if(!hA)return;const UA=toValue(Ea);if(!UA)return;(KA=UA instanceof Document?hA.document.body:UA)==null||KA.scrollTo({top:(qA=toValue(SA))!=null?qA:BA.value,left:(LA=toValue(RA))!=null?LA:_A.value,behavior:toValue(gA)});const _l=((jA=UA==null?void 0:UA.document)==null?void 0:jA.documentElement)||(UA==null?void 0:UA.documentElement)||UA;_A!=null&&(wA.value=_l.scrollLeft),BA!=null&&(CA.value=_l.scrollTop)}const $A=vue.ref(!1),DA=vue.reactive({left:!0,right:!1,top:!0,bottom:!1}),FA=vue.reactive({left:!1,right:!1,top:!1,bottom:!1}),NA=RA=>{$A.value&&($A.value=!1,FA.left=!1,FA.right=!1,FA.top=!1,FA.bottom=!1,AA(RA))},TA=useDebounceFn(NA,aA+iA),PA=RA=>{var SA;if(!hA)return;const qA=((SA=RA==null?void 0:RA.document)==null?void 0:SA.documentElement)||(RA==null?void 0:RA.documentElement)||unrefElement(RA),{display:LA,flexDirection:KA}=getComputedStyle(qA),jA=qA.scrollLeft;FA.left=jA<wA.value,FA.right=jA>wA.value;const UA=Math.abs(jA)<=(oA.left||0),_l=Math.abs(jA)+qA.clientWidth>=qA.scrollWidth-(oA.right||0)-ARRIVED_STATE_THRESHOLD_PIXELS;LA==="flex"&&KA==="row-reverse"?(DA.left=_l,DA.right=UA):(DA.left=UA,DA.right=_l),wA.value=jA;let Fl=qA.scrollTop;RA===hA.document&&!Fl&&(Fl=hA.document.body.scrollTop),FA.top=Fl<CA.value,FA.bottom=Fl>CA.value;const Bl=Math.abs(Fl)<=(oA.top||0),Gl=Math.abs(Fl)+qA.clientHeight>=qA.scrollHeight-(oA.bottom||0)-ARRIVED_STATE_THRESHOLD_PIXELS;LA==="flex"&&KA==="column-reverse"?(DA.top=Gl,DA.bottom=Bl):(DA.top=Bl,DA.bottom=Gl),CA.value=Fl},HA=RA=>{var SA;if(!hA)return;const qA=(SA=RA.target.documentElement)!=null?SA:RA.target;PA(qA),$A.value=!0,TA(RA),sA(RA)};return useEventListener(Ea,"scroll",aA?useThrottleFn(HA,aA,!0,!1):HA,dA),tryOnMounted(()=>{try{const RA=toValue(Ea);if(!RA)return;PA(RA)}catch(RA){fA(RA)}}),useEventListener(Ea,"scrollend",NA,dA),{x:_A,y:BA,isScrolling:$A,arrivedState:DA,directions:FA,measure(){const RA=toValue(Ea);hA&&RA&&PA(RA)}}}const DefaultMagicKeysAliasMap={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function useMagicKeys(Ea={}){const{reactive:Ua=!1,target:aA=defaultWindow,aliasMap:iA=DefaultMagicKeysAliasMap,passive:AA=!0,onEventFired:sA=noop$2}=Ea,oA=vue.reactive(new Set),dA={toJSON(){return{}},current:oA},gA=Ua?vue.reactive(dA):dA,hA=new Set,fA=new Set;function wA(IA,$A){IA in gA&&(Ua?gA[IA]=$A:gA[IA].value=$A)}function CA(){oA.clear();for(const IA of fA)wA(IA,!1)}function _A(IA,$A){var DA,FA;const NA=(DA=IA.key)==null?void 0:DA.toLowerCase(),TA=[(FA=IA.code)==null?void 0:FA.toLowerCase(),NA].filter(Boolean);NA&&($A?oA.add(NA):oA.delete(NA));for(const PA of TA)fA.add(PA),wA(PA,$A);NA==="meta"&&!$A?(hA.forEach(PA=>{oA.delete(PA),wA(PA,!1)}),hA.clear()):typeof IA.getModifierState=="function"&&IA.getModifierState("Meta")&&$A&&[...oA,...TA].forEach(PA=>hA.add(PA))}useEventListener(aA,"keydown",IA=>(_A(IA,!0),sA(IA)),{passive:AA}),useEventListener(aA,"keyup",IA=>(_A(IA,!1),sA(IA)),{passive:AA}),useEventListener("blur",CA,{passive:!0}),useEventListener("focus",CA,{passive:!0});const BA=new Proxy(gA,{get(IA,$A,DA){if(typeof $A!="string")return Reflect.get(IA,$A,DA);if($A=$A.toLowerCase(),$A in iA&&($A=iA[$A]),!($A in gA))if(/[+_-]/.test($A)){const NA=$A.split(/[+_-]/g).map(TA=>TA.trim());gA[$A]=vue.computed(()=>NA.every(TA=>toValue(BA[TA])))}else gA[$A]=vue.ref(!1);const FA=Reflect.get(IA,$A,DA);return Ua?toValue(FA):FA}});return BA}function usePreferredColorScheme(Ea){const Ua=useMediaQuery("(prefers-color-scheme: light)",Ea),aA=useMediaQuery("(prefers-color-scheme: dark)",Ea);return vue.computed(()=>aA.value?"dark":Ua.value?"light":"no-preference")}const EDITOR_DEBOUNCE_TIMEOUT=400,DEFAULT_CODEBLOCK_LANGUAGE="markdown";var InlineFormatWrapper=(Ea=>(Ea.bold="**",Ea.italic="_",Ea.underline="++",Ea.strikethrough="~~",Ea.subscript="~",Ea.superscript="^",Ea.mark="==",Ea.code="`",Ea))(InlineFormatWrapper||{});const TOOLBAR_HEIGHT="36px",NEW_LINE_CHARACTER=`
|
|
6
|
-
`,MARKDOWN_TEMPLATE_CODEBLOCK="```"+DEFAULT_CODEBLOCK_LANGUAGE+NEW_LINE_CHARACTER+NEW_LINE_CHARACTER+"```",MARKDOWN_TEMPLATE_TABLE="| Header | Header | Header |"+NEW_LINE_CHARACTER+"| :--- | :--- | :--- |"+NEW_LINE_CHARACTER+"| Cell | Cell | Cell |",MARKDOWN_TEMPLATE_TASK="- [ ] ",MARKDOWN_TEMPLATE_TASK_COMPLETED="- [x] ",MARKDOWN_TEMPLATE_UL="- ",MARKDOWN_TEMPLATE_OL="1. ",MARKDOWN_TEMPLATE_BLOCKQUOTE="> ",MARKDOWN_TEMPLATE_LINK="[text](url)",MARKDOWN_TEMPLATE_IMAGE="",COPY_ICON_SVG='<span class="kui-icon copy-icon button-icon" data-testid="kui-icon-wrapper-copy-icon" style="pointer-events:none; box-sizing: border-box; color: currentcolor; display: block; height: 20px; line-height: 0; width: 20px;"><svg data-testid="kui-icon-svg-copy-icon" fill="none" height="100%" role="img" viewBox="0 0 24 24" width="100%" xmlns="http://www.w3.org/2000/svg"><path d="M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z" fill="currentColor"></path></svg></span>',HEADER_LINK_ICON_SVG='<svg class="header-anchor-icon" viewBox="0 0 16 16" version="1.1" width="14" height="14" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>',KUI_BREAKPOINT_PHABLET="768px",KUI_ICON_SIZE_30="16px",KUI_ICON_SIZE_40="20px",KUI_FONT_FAMILY_CODE="'JetBrains Mono', Consolas, monospace",KUI_FONT_FAMILY_TEXT="'Inter', Roboto, Helvetica, sans-serif",KUI_SPACE_60="16px",_sfc_main$5=vue.defineComponent({__name:"ToolbarButton",props:{icon:{type:Boolean,default:!0},appearance:{type:String,default:"secondary"}},setup(Ea){return(Ua,aA)=>(vue.openBlock(),vue.createElementBlock("button",{class:vue.normalizeClass(["toolbar-button",[{"has-text":!Ea.icon},Ea.appearance]]),tabindex:"0",type:"button"},[vue.renderSlot(Ua.$slots,"default",{},void 0,!0)],2))}}),_export_sfc$1=(Ea,Ua)=>{const aA=Ea.__vccOpts||Ea;for(const[iA,AA]of Ua)aA[iA]=AA;return aA},ToolbarButton=_export_sfc$1(_sfc_main$5,[["__scopeId","data-v-47835ee3"]]),_hoisted_1$4={class:"info-tooltip"},_hoisted_2$3={key:0,class:"tooltip-content"},_sfc_main$4=vue.defineComponent({__name:"InfoTooltip",props:{text:{type:String,default:void 0}},setup(Ea){return(Ua,aA)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$4,[vue.renderSlot(Ua.$slots,"default",{},void 0,!0),Ua.$slots.tooltip||Ea.text?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$3,[vue.renderSlot(Ua.$slots,"tooltip",{},()=>[vue.createTextVNode(vue.toDisplayString(Ea.text),1)],!0)])):vue.createCommentVNode("",!0)]))}}),InfoTooltip=_export_sfc$1(_sfc_main$4,[["__scopeId","data-v-46630046"]]),_hoisted_1$3={key:0,class:"tooltip-shortcut"},_hoisted_2$2$1={"data-testid":"shortcut-text"},_hoisted_3$2$1={key:0,class:"keys","data-testid":"keys"},_hoisted_4$2=["aria-label"],_sfc_main$3$1=vue.defineComponent({__name:"TooltipShortcut",props:{text:{type:String,required:!0},keys:{type:Array,default:()=>[],validator:Ea=>Ea!=null&&Ea.length?Ea.every(Ua=>typeof Ua=="string"):!0}},setup(Ea){const Ua=vue.ref(!1);return vue.onMounted(()=>{var aA;Ua.value=/Mac|iPhone|iPod|iPad/i.test(navigator==null?void 0:navigator.platform)||/macOS|Mac|iPhone|iPod|iPad/i.test((aA=navigator==null?void 0:navigator.userAgentData)==null?void 0:aA.platform)}),(aA,iA)=>Ea.text?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$3,[vue.createElementVNode("div",_hoisted_2$2$1,vue.toDisplayString(Ea.text),1),Ea.keys.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$2$1,[vue.createElementVNode("kbd",{"aria-label":Ua.value?"Command":"Control",class:vue.normalizeClass(["keyboard-button meta-key",{mac:Ua.value}]),"data-testid":"meta-key"},null,10,_hoisted_4$2),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Ea.keys,AA=>(vue.openBlock(),vue.createElementBlock("kbd",{key:AA,class:"keyboard-button"},vue.toDisplayString(AA),1))),128))])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)}}),TooltipShortcut=_export_sfc$1(_sfc_main$3$1,[["__scopeId","data-v-e8c3cafb"]]),I$3$1="24px",s$1$1=(Ea,Ua)=>{const aA=Ea.__vccOpts||Ea;for(const[iA,AA]of Ua)aA[iA]=AA;return aA},S$2$1=Ea=>(vue.pushScopeId("data-v-3b9b55a4"),Ea=Ea(),vue.popScopeId(),Ea),v$c=["aria-hidden"],N$i={key:0,"data-testid":"kui-icon-svg-title"},k$a=S$2$1(()=>vue.createElementVNode("path",{d:"M6.55 16.5L8 14C6.9 14 5.95833 13.6083 5.175 12.825C4.39167 12.0417 4 11.1 4 10C4 8.9 4.39167 7.95833 5.175 7.175C5.95833 6.39167 6.9 6 8 6C9.1 6 10.0417 6.39167 10.825 7.175C11.6083 7.95833 12 8.9 12 10C12 10.3833 11.9542 10.7375 11.8625 11.0625C11.7708 11.3875 11.6333 11.7 11.45 12L8.275 17.5C8.19167 17.65 8.075 17.7708 7.925 17.8625C7.775 17.9542 7.60833 18 7.425 18C7.04167 18 6.75417 17.8333 6.5625 17.5C6.37083 17.1667 6.36667 16.8333 6.55 16.5ZM15.55 16.5L17 14C15.9 14 14.9583 13.6083 14.175 12.825C13.3917 12.0417 13 11.1 13 10C13 8.9 13.3917 7.95833 14.175 7.175C14.9583 6.39167 15.9 6 17 6C18.1 6 19.0417 6.39167 19.825 7.175C20.6083 7.95833 21 8.9 21 10C21 10.3833 20.9542 10.7375 20.8625 11.0625C20.7708 11.3875 20.6333 11.7 20.45 12L17.275 17.5C17.1917 17.65 17.075 17.7708 16.925 17.8625C16.775 17.9542 16.6083 18 16.425 18C16.0417 18 15.7542 17.8333 15.5625 17.5C15.3708 17.1667 15.3667 16.8333 15.55 16.5Z",fill:"currentColor"},null,-1)),q$d=vue.defineComponent({__name:"BlockquoteIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon blockquote-icon","data-testid":"kui-icon-wrapper-blockquote-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-blockquote-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$i,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),k$a],8,v$c))]),_:1},8,["aria-hidden","style"]))}}),m$6$1=s$1$1(q$d,[["__scopeId","data-v-3b9b55a4"]]),b$f=Ea=>(vue.pushScopeId("data-v-a025aca5"),Ea=Ea(),vue.popScopeId(),Ea),v$b=["aria-hidden"],N$h={key:0,"data-testid":"kui-icon-svg-title"},z$9$1=b$f(()=>vue.createElementVNode("path",{d:"M6.3 19.25V5.25H11.825C12.9083 5.25 13.9083 5.58333 14.825 6.25C15.7417 6.91667 16.2 7.84167 16.2 9.025C16.2 9.875 16.0083 10.5292 15.625 10.9875C15.2417 11.4458 14.8833 11.775 14.55 11.975C14.9667 12.1583 15.4292 12.5 15.9375 13C16.4458 13.5 16.7 14.25 16.7 15.25C16.7 16.7333 16.1583 17.7708 15.075 18.3625C13.9917 18.9542 12.975 19.25 12.025 19.25H6.3ZM9.325 16.45H11.925C12.725 16.45 13.2125 16.2458 13.3875 15.8375C13.5625 15.4292 13.65 15.1333 13.65 14.95C13.65 14.7667 13.5625 14.4708 13.3875 14.0625C13.2125 13.6542 12.7 13.45 11.85 13.45H9.325V16.45ZM9.325 10.75H11.65C12.2 10.75 12.6 10.6083 12.85 10.325C13.1 10.0417 13.225 9.725 13.225 9.375C13.225 8.975 13.0833 8.65 12.8 8.4C12.5167 8.15 12.15 8.025 11.7 8.025H9.325V10.75Z",fill:"currentColor"},null,-1)),k$9=vue.defineComponent({__name:"BoldIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon bold-icon","data-testid":"kui-icon-wrapper-bold-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-bold-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$h,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),z$9$1],8,v$b))]),_:1},8,["aria-hidden","style"]))}}),m$5$1=s$1$1(k$9,[["__scopeId","data-v-a025aca5"]]),v$a=Ea=>(vue.pushScopeId("data-v-e49d7912"),Ea=Ea(),vue.popScopeId(),Ea),N$g=["aria-hidden"],b$e={key:0,"data-testid":"kui-icon-svg-title"},z$8$1=v$a(()=>vue.createElementVNode("path",{d:"M4.82499 12.025L8.69999 15.9C8.88332 16.0833 8.97499 16.3167 8.97499 16.6C8.97499 16.8833 8.88332 17.1167 8.69999 17.3C8.51665 17.4833 8.28332 17.575 7.99999 17.575C7.71665 17.575 7.48332 17.4833 7.29999 17.3L2.69999 12.7C2.59999 12.6 2.52915 12.4917 2.48749 12.375C2.44582 12.2583 2.42499 12.1333 2.42499 12C2.42499 11.8667 2.44582 11.7417 2.48749 11.625C2.52915 11.5083 2.59999 11.4 2.69999 11.3L7.29999 6.7C7.49999 6.5 7.73749 6.4 8.01249 6.4C8.28749 6.4 8.52499 6.5 8.72499 6.7C8.92499 6.9 9.02499 7.1375 9.02499 7.4125C9.02499 7.6875 8.92499 7.925 8.72499 8.125L4.82499 12.025ZM19.175 11.975L15.3 8.1C15.1167 7.91667 15.025 7.68333 15.025 7.4C15.025 7.11667 15.1167 6.88333 15.3 6.7C15.4833 6.51667 15.7167 6.425 16 6.425C16.2833 6.425 16.5167 6.51667 16.7 6.7L21.3 11.3C21.4 11.4 21.4708 11.5083 21.5125 11.625C21.5542 11.7417 21.575 11.8667 21.575 12C21.575 12.1333 21.5542 12.2583 21.5125 12.375C21.4708 12.4917 21.4 12.6 21.3 12.7L16.7 17.3C16.5 17.5 16.2667 17.5958 16 17.5875C15.7333 17.5792 15.5 17.475 15.3 17.275C15.1 17.075 15 16.8375 15 16.5625C15 16.2875 15.1 16.05 15.3 15.85L19.175 11.975Z",fill:"currentColor"},null,-1)),k$8=vue.defineComponent({__name:"CodeIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon code-icon","data-testid":"kui-icon-wrapper-code-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-code-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",b$e,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),z$8$1],8,N$g))]),_:1},8,["aria-hidden","style"]))}}),p$5$1=s$1$1(k$8,[["__scopeId","data-v-e49d7912"]]),S$1$1=Ea=>(vue.pushScopeId("data-v-0b7d1905"),Ea=Ea(),vue.popScopeId(),Ea),v$9=["aria-hidden"],N$f={key:0,"data-testid":"kui-icon-svg-title"},k$7=S$1$1(()=>vue.createElementVNode("path",{d:"M8.825 12L10.3 10.525C10.5 10.325 10.6 10.0917 10.6 9.825C10.6 9.55833 10.5 9.325 10.3 9.125C10.1 8.925 9.8625 8.825 9.5875 8.825C9.3125 8.825 9.075 8.925 8.875 9.125L6.7 11.3C6.6 11.4 6.52917 11.5083 6.4875 11.625C6.44583 11.7417 6.425 11.8667 6.425 12C6.425 12.1333 6.44583 12.2583 6.4875 12.375C6.52917 12.4917 6.6 12.6 6.7 12.7L8.875 14.875C9.075 15.075 9.3125 15.175 9.5875 15.175C9.8625 15.175 10.1 15.075 10.3 14.875C10.5 14.675 10.6 14.4417 10.6 14.175C10.6 13.9083 10.5 13.675 10.3 13.475L8.825 12ZM15.175 12L13.7 13.475C13.5 13.675 13.4 13.9083 13.4 14.175C13.4 14.4417 13.5 14.675 13.7 14.875C13.9 15.075 14.1375 15.175 14.4125 15.175C14.6875 15.175 14.925 15.075 15.125 14.875L17.3 12.7C17.4 12.6 17.4708 12.4917 17.5125 12.375C17.5542 12.2583 17.575 12.1333 17.575 12C17.575 11.8667 17.5542 11.7417 17.5125 11.625C17.4708 11.5083 17.4 11.4 17.3 11.3L15.125 9.125C15.025 9.025 14.9125 8.95 14.7875 8.9C14.6625 8.85 14.5375 8.825 14.4125 8.825C14.2875 8.825 14.1625 8.85 14.0375 8.9C13.9125 8.95 13.8 9.025 13.7 9.125C13.5 9.325 13.4 9.55833 13.4 9.825C13.4 10.0917 13.5 10.325 13.7 10.525L15.175 12ZM5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM5 19H19V5H5V19Z",fill:"currentColor"},null,-1)),w$6=vue.defineComponent({__name:"CodeblockIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon codeblock-icon","data-testid":"kui-icon-wrapper-codeblock-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-codeblock-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$f,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),k$7],8,v$9))]),_:1},8,["aria-hidden","style"]))}}),p$4$1=s$1$1(w$6,[["__scopeId","data-v-0b7d1905"]]),N$e=Ea=>(vue.pushScopeId("data-v-854a152d"),Ea=Ea(),vue.popScopeId(),Ea),b$d=["aria-hidden"],z$7$1={key:0,"data-testid":"kui-icon-svg-title"},x$3$1=N$e(()=>vue.createElementVNode("path",{d:"M3.4 22L2 20.6L8.6 14H4V12H12V20H10V15.4L3.4 22ZM12 12V4H14V8.6L20.6 2L22 3.4L15.4 10H20V12H12Z",fill:"currentColor"},null,-1)),I$2$1=vue.defineComponent({__name:"CollapseIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon collapse-icon","data-testid":"kui-icon-wrapper-collapse-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-collapse-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",z$7$1,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),x$3$1],8,b$d))]),_:1},8,["aria-hidden","style"]))}}),m$4$1=s$1$1(I$2$1,[["__scopeId","data-v-854a152d"]]),b$c=Ea=>(vue.pushScopeId("data-v-7698bc04"),Ea=Ea(),vue.popScopeId(),Ea),w$5$1=["aria-hidden"],N$d={key:0,"data-testid":"kui-icon-svg-title"},z$6$1=b$c(()=>vue.createElementVNode("path",{d:"M12 16L7 11L8.4 9.55L11 12.15V4H13V12.15L15.6 9.55L17 11L12 16ZM6 20C5.45 20 4.97917 19.8042 4.5875 19.4125C4.19583 19.0208 4 18.55 4 18V15H6V18H18V15H20V18C20 18.55 19.8042 19.0208 19.4125 19.4125C19.0208 19.8042 18.55 20 18 20H6Z",fill:"currentColor"},null,-1)),k$6=vue.defineComponent({__name:"DownloadIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon download-icon","data-testid":"kui-icon-wrapper-download-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-download-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$d,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),z$6$1],8,w$5$1))]),_:1},8,["aria-hidden","style"]))}}),m$3$1=s$1$1(k$6,[["__scopeId","data-v-7698bc04"]]),N$c=Ea=>(vue.pushScopeId("data-v-d3181e65"),Ea=Ea(),vue.popScopeId(),Ea),b$b=["aria-hidden"],z$5$1={key:0,"data-testid":"kui-icon-svg-title"},x$2$1=N$c(()=>vue.createElementVNode("path",{d:"M5 19H6.4L15.025 10.375L13.625 8.975L5 17.6V19ZM19.3 8.925L15.05 4.725L16.45 3.325C16.8333 2.94167 17.3042 2.75 17.8625 2.75C18.4208 2.75 18.8917 2.94167 19.275 3.325L20.675 4.725C21.0583 5.10833 21.2583 5.57083 21.275 6.1125C21.2917 6.65417 21.1083 7.11667 20.725 7.5L19.3 8.925ZM17.85 10.4L7.25 21H3V16.75L13.6 6.15L17.85 10.4Z",fill:"currentColor"},null,-1)),L$a=vue.defineComponent({__name:"EditIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon edit-icon","data-testid":"kui-icon-wrapper-edit-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-edit-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",z$5$1,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),x$2$1],8,b$b))]),_:1},8,["aria-hidden","style"]))}}),_$1$1=s$1$1(L$a,[["__scopeId","data-v-d3181e65"]]),x$1$1=Ea=>(vue.pushScopeId("data-v-ae3dd907"),Ea=Ea(),vue.popScopeId(),Ea),N$b=["aria-hidden"],b$a={key:0,"data-testid":"kui-icon-svg-title"},z$4$1=x$1$1(()=>vue.createElementVNode("path",{d:"M3 21V13H5V17.6L17.6 5H13V3H21V11H19V6.4L6.4 19H11V21H3Z",fill:"currentColor"},null,-1)),I$1$1=vue.defineComponent({__name:"ExpandIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon expand-icon","data-testid":"kui-icon-wrapper-expand-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-expand-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",b$a,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),z$4$1],8,N$b))]),_:1},8,["aria-hidden","style"]))}}),d$1$1=s$1$1(I$1$1,[["__scopeId","data-v-ae3dd907"]]),V$1$1=Ea=>(vue.pushScopeId("data-v-d3b1176d"),Ea=Ea(),vue.popScopeId(),Ea),v$8=["aria-hidden"],b$9={key:0,"data-testid":"kui-icon-svg-title"},N$a=V$1$1(()=>vue.createElementVNode("path",{d:"M0 15V9H1.5V11H3.5V9H5V15H3.5V12.5H1.5V15H0ZM7.75 15V10.5H6V9H11V10.5H9.25V15H7.75ZM12 15V10C12 9.71667 12.0958 9.47917 12.2875 9.2875C12.4792 9.09583 12.7167 9 13 9H17.5C17.7833 9 18.0208 9.09583 18.2125 9.2875C18.4042 9.47917 18.5 9.71667 18.5 10V15H17V10.5H16V14H14.5V10.5H13.5V15H12ZM20 15V9H21.5V13.5H24V15H20Z",fill:"currentColor"},null,-1)),C$1$1=vue.defineComponent({__name:"HtmlIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon html-icon","data-testid":"kui-icon-wrapper-html-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-html-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",b$9,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),N$a],8,v$8))]),_:1},8,["aria-hidden","style"]))}}),_$6=s$1$1(C$1$1,[["__scopeId","data-v-d3b1176d"]]),v$7=Ea=>(vue.pushScopeId("data-v-cc6327a7"),Ea=Ea(),vue.popScopeId(),Ea),N$9=["aria-hidden"],b$8={key:0,"data-testid":"kui-icon-svg-title"},z$3$1=v$7(()=>vue.createElementVNode("path",{d:"M5 22C4.16667 22 3.45833 21.7083 2.875 21.125C2.29167 20.5417 2 19.8333 2 19V5C2 4.16667 2.29167 3.45833 2.875 2.875C3.45833 2.29167 4.16667 2 5 2H19C19.8333 2 20.5417 2.29167 21.125 2.875C21.7083 3.45833 22 4.16667 22 5V19C22 19.8333 21.7083 20.5417 21.125 21.125C20.5417 21.7083 19.8333 22 19 22H5ZM5 20H19C19.2833 20 19.5208 19.9042 19.7125 19.7125C19.9042 19.5208 20 19.2833 20 19V5C20 4.71667 19.9042 4.47917 19.7125 4.2875C19.5208 4.09583 19.2833 4 19 4H5C4.71667 4 4.47917 4.09583 4.2875 4.2875C4.09583 4.47917 4 4.71667 4 5V19C4 19.2833 4.09583 19.5208 4.2875 19.7125C4.47917 19.9042 4.71667 20 5 20ZM6 18L10 14L11.8 15.775L14 13L18 18H6ZM8 10C7.45 10 6.97917 9.80417 6.5875 9.4125C6.19583 9.02083 6 8.55 6 8C6 7.45 6.19583 6.97917 6.5875 6.5875C6.97917 6.19583 7.45 6 8 6C8.55 6 9.02083 6.19583 9.4125 6.5875C9.80417 6.97917 10 7.45 10 8C10 8.55 9.80417 9.02083 9.4125 9.4125C9.02083 9.80417 8.55 10 8 10Z",fill:"currentColor"},null,-1)),I$7=vue.defineComponent({__name:"ImageIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon image-icon","data-testid":"kui-icon-wrapper-image-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-image-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",b$8,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),z$3$1],8,N$9))]),_:1},8,["aria-hidden","style"]))}}),r$1$1=s$1$1(I$7,[["__scopeId","data-v-cc6327a7"]]),b$7$1=Ea=>(vue.pushScopeId("data-v-8b973ff4"),Ea=Ea(),vue.popScopeId(),Ea),N$8=["aria-hidden"],z$2$1={key:0,"data-testid":"kui-icon-svg-title"},x$7=b$7$1(()=>vue.createElementVNode("path",{d:"M4.5 19.25V16.75H8.5L11.5 7.75H7.5V5.25H17.5V7.75H14L11 16.75H14.5V19.25H4.5Z",fill:"currentColor"},null,-1)),k$5$1=vue.defineComponent({__name:"ItalicIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon italic-icon","data-testid":"kui-icon-wrapper-italic-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-italic-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",z$2$1,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),x$7],8,N$8))]),_:1},8,["aria-hidden","style"]))}}),c$2$1=s$1$1(k$5$1,[["__scopeId","data-v-8b973ff4"]]),v$6=Ea=>(vue.pushScopeId("data-v-01921b1f"),Ea=Ea(),vue.popScopeId(),Ea),b$6$1=["aria-hidden"],N$7={key:0,"data-testid":"kui-icon-svg-title"},k$4$1=v$6(()=>vue.createElementVNode("path",{d:"M7 17C5.61667 17 4.4375 16.5125 3.4625 15.5375C2.4875 14.5625 2 13.3833 2 12C2 10.6167 2.4875 9.4375 3.4625 8.4625C4.4375 7.4875 5.61667 7 7 7H10C10.2833 7 10.5208 7.09583 10.7125 7.2875C10.9042 7.47917 11 7.71667 11 8C11 8.28333 10.9042 8.52083 10.7125 8.7125C10.5208 8.90417 10.2833 9 10 9H7C6.16667 9 5.45833 9.29167 4.875 9.875C4.29167 10.4583 4 11.1667 4 12C4 12.8333 4.29167 13.5417 4.875 14.125C5.45833 14.7083 6.16667 15 7 15H10C10.2833 15 10.5208 15.0958 10.7125 15.2875C10.9042 15.4792 11 15.7167 11 16C11 16.2833 10.9042 16.5208 10.7125 16.7125C10.5208 16.9042 10.2833 17 10 17H7ZM9 13C8.71667 13 8.47917 12.9042 8.2875 12.7125C8.09583 12.5208 8 12.2833 8 12C8 11.7167 8.09583 11.4792 8.2875 11.2875C8.47917 11.0958 8.71667 11 9 11H15C15.2833 11 15.5208 11.0958 15.7125 11.2875C15.9042 11.4792 16 11.7167 16 12C16 12.2833 15.9042 12.5208 15.7125 12.7125C15.5208 12.9042 15.2833 13 15 13H9ZM14 17C13.7167 17 13.4792 16.9042 13.2875 16.7125C13.0958 16.5208 13 16.2833 13 16C13 15.7167 13.0958 15.4792 13.2875 15.2875C13.4792 15.0958 13.7167 15 14 15H17C17.8333 15 18.5417 14.7083 19.125 14.125C19.7083 13.5417 20 12.8333 20 12C20 11.1667 19.7083 10.4583 19.125 9.875C18.5417 9.29167 17.8333 9 17 9H14C13.7167 9 13.4792 8.90417 13.2875 8.7125C13.0958 8.52083 13 8.28333 13 8C13 7.71667 13.0958 7.47917 13.2875 7.2875C13.4792 7.09583 13.7167 7 14 7H17C18.3833 7 19.5625 7.4875 20.5375 8.4625C21.5125 9.4375 22 10.6167 22 12C22 13.3833 21.5125 14.5625 20.5375 15.5375C19.5625 16.5125 18.3833 17 17 17H14Z",fill:"currentColor"},null,-1)),H$2$1=vue.defineComponent({__name:"LinkIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon link-icon","data-testid":"kui-icon-wrapper-link-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-link-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$7,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),k$4$1],8,b$6$1))]),_:1},8,["aria-hidden","style"]))}}),p$3$1=s$1$1(H$2$1,[["__scopeId","data-v-01921b1f"]]),S$4=Ea=>(vue.pushScopeId("data-v-524da136"),Ea=Ea(),vue.popScopeId(),Ea),v$5=["aria-hidden"],N$6$1={key:0,"data-testid":"kui-icon-svg-title"},b$5$1=S$4(()=>vue.createElementVNode("path",{d:"M3.75 22C3.53333 22 3.35417 21.9292 3.2125 21.7875C3.07083 21.6458 3 21.4667 3 21.25C3 21.0333 3.07083 20.8542 3.2125 20.7125C3.35417 20.5708 3.53333 20.5 3.75 20.5H5.5V19.75H4.75C4.53333 19.75 4.35417 19.6792 4.2125 19.5375C4.07083 19.3958 4 19.2167 4 19C4 18.7833 4.07083 18.6042 4.2125 18.4625C4.35417 18.3208 4.53333 18.25 4.75 18.25H5.5V17.5H3.75C3.53333 17.5 3.35417 17.4292 3.2125 17.2875C3.07083 17.1458 3 16.9667 3 16.75C3 16.5333 3.07083 16.3542 3.2125 16.2125C3.35417 16.0708 3.53333 16 3.75 16H6C6.28333 16 6.52083 16.0958 6.7125 16.2875C6.90417 16.4792 7 16.7167 7 17V18C7 18.2833 6.90417 18.5208 6.7125 18.7125C6.52083 18.9042 6.28333 19 6 19C6.28333 19 6.52083 19.0958 6.7125 19.2875C6.90417 19.4792 7 19.7167 7 20V21C7 21.2833 6.90417 21.5208 6.7125 21.7125C6.52083 21.9042 6.28333 22 6 22H3.75ZM3.75 15C3.53333 15 3.35417 14.9292 3.2125 14.7875C3.07083 14.6458 3 14.4667 3 14.25V12.25C3 11.9667 3.09583 11.7292 3.2875 11.5375C3.47917 11.3458 3.71667 11.25 4 11.25H5.5V10.5H3.75C3.53333 10.5 3.35417 10.4292 3.2125 10.2875C3.07083 10.1458 3 9.96667 3 9.75C3 9.53333 3.07083 9.35417 3.2125 9.2125C3.35417 9.07083 3.53333 9 3.75 9H6C6.28333 9 6.52083 9.09583 6.7125 9.2875C6.90417 9.47917 7 9.71667 7 10V11.75C7 12.0333 6.90417 12.2708 6.7125 12.4625C6.52083 12.6542 6.28333 12.75 6 12.75H4.5V13.5H6.25C6.46667 13.5 6.64583 13.5708 6.7875 13.7125C6.92917 13.8542 7 14.0333 7 14.25C7 14.4667 6.92917 14.6458 6.7875 14.7875C6.64583 14.9292 6.46667 15 6.25 15H3.75ZM5.25 8C5.03333 8 4.85417 7.92917 4.7125 7.7875C4.57083 7.64583 4.5 7.46667 4.5 7.25V3.5H3.75C3.53333 3.5 3.35417 3.42917 3.2125 3.2875C3.07083 3.14583 3 2.96667 3 2.75C3 2.53333 3.07083 2.35417 3.2125 2.2125C3.35417 2.07083 3.53333 2 3.75 2H5.25C5.46667 2 5.64583 2.07083 5.7875 2.2125C5.92917 2.35417 6 2.53333 6 2.75V7.25C6 7.46667 5.92917 7.64583 5.7875 7.7875C5.64583 7.92917 5.46667 8 5.25 8ZM10 19C9.71667 19 9.47917 18.9042 9.2875 18.7125C9.09583 18.5208 9 18.2833 9 18C9 17.7167 9.09583 17.4792 9.2875 17.2875C9.47917 17.0958 9.71667 17 10 17H20C20.2833 17 20.5208 17.0958 20.7125 17.2875C20.9042 17.4792 21 17.7167 21 18C21 18.2833 20.9042 18.5208 20.7125 18.7125C20.5208 18.9042 20.2833 19 20 19H10ZM10 13C9.71667 13 9.47917 12.9042 9.2875 12.7125C9.09583 12.5208 9 12.2833 9 12C9 11.7167 9.09583 11.4792 9.2875 11.2875C9.47917 11.0958 9.71667 11 10 11H20C20.2833 11 20.5208 11.0958 20.7125 11.2875C20.9042 11.4792 21 11.7167 21 12C21 12.2833 20.9042 12.5208 20.7125 12.7125C20.5208 12.9042 20.2833 13 20 13H10ZM10 7C9.71667 7 9.47917 6.90417 9.2875 6.7125C9.09583 6.52083 9 6.28333 9 6C9 5.71667 9.09583 5.47917 9.2875 5.2875C9.47917 5.09583 9.71667 5 10 5H20C20.2833 5 20.5208 5.09583 20.7125 5.2875C20.9042 5.47917 21 5.71667 21 6C21 6.28333 20.9042 6.52083 20.7125 6.7125C20.5208 6.90417 20.2833 7 20 7H10Z",fill:"currentColor"},null,-1)),w$4$1=vue.defineComponent({__name:"ListOrderedIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon list-ordered-icon","data-testid":"kui-icon-wrapper-list-ordered-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-list-ordered-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$6$1,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),b$5$1],8,v$5))]),_:1},8,["aria-hidden","style"]))}}),e$2$1=s$1$1(w$4$1,[["__scopeId","data-v-524da136"]]),v$4$1=Ea=>(vue.pushScopeId("data-v-0e1daaec"),Ea=Ea(),vue.popScopeId(),Ea),N$5$1=["aria-hidden"],b$4$1={key:0,"data-testid":"kui-icon-svg-title"},z$1$1=v$4$1(()=>vue.createElementVNode("path",{d:"M10 19C9.71667 19 9.47917 18.9042 9.2875 18.7125C9.09583 18.5208 9 18.2833 9 18C9 17.7167 9.09583 17.4792 9.2875 17.2875C9.47917 17.0958 9.71667 17 10 17H20C20.2833 17 20.5208 17.0958 20.7125 17.2875C20.9042 17.4792 21 17.7167 21 18C21 18.2833 20.9042 18.5208 20.7125 18.7125C20.5208 18.9042 20.2833 19 20 19H10ZM10 13C9.71667 13 9.47917 12.9042 9.2875 12.7125C9.09583 12.5208 9 12.2833 9 12C9 11.7167 9.09583 11.4792 9.2875 11.2875C9.47917 11.0958 9.71667 11 10 11H20C20.2833 11 20.5208 11.0958 20.7125 11.2875C20.9042 11.4792 21 11.7167 21 12C21 12.2833 20.9042 12.5208 20.7125 12.7125C20.5208 12.9042 20.2833 13 20 13H10ZM10 7C9.71667 7 9.47917 6.90417 9.2875 6.7125C9.09583 6.52083 9 6.28333 9 6C9 5.71667 9.09583 5.47917 9.2875 5.2875C9.47917 5.09583 9.71667 5 10 5H20C20.2833 5 20.5208 5.09583 20.7125 5.2875C20.9042 5.47917 21 5.71667 21 6C21 6.28333 20.9042 6.52083 20.7125 6.7125C20.5208 6.90417 20.2833 7 20 7H10ZM5 20C4.45 20 3.97917 19.8042 3.5875 19.4125C3.19583 19.0208 3 18.55 3 18C3 17.45 3.19583 16.9792 3.5875 16.5875C3.97917 16.1958 4.45 16 5 16C5.55 16 6.02083 16.1958 6.4125 16.5875C6.80417 16.9792 7 17.45 7 18C7 18.55 6.80417 19.0208 6.4125 19.4125C6.02083 19.8042 5.55 20 5 20ZM5 14C4.45 14 3.97917 13.8042 3.5875 13.4125C3.19583 13.0208 3 12.55 3 12C3 11.45 3.19583 10.9792 3.5875 10.5875C3.97917 10.1958 4.45 10 5 10C5.55 10 6.02083 10.1958 6.4125 10.5875C6.80417 10.9792 7 11.45 7 12C7 12.55 6.80417 13.0208 6.4125 13.4125C6.02083 13.8042 5.55 14 5 14ZM5 8C4.45 8 3.97917 7.80417 3.5875 7.4125C3.19583 7.02083 3 6.55 3 6C3 5.45 3.19583 4.97917 3.5875 4.5875C3.97917 4.19583 4.45 4 5 4C5.55 4 6.02083 4.19583 6.4125 4.5875C6.80417 4.97917 7 5.45 7 6C7 6.55 6.80417 7.02083 6.4125 7.4125C6.02083 7.80417 5.55 8 5 8Z",fill:"currentColor"},null,-1)),k$3$1=vue.defineComponent({__name:"ListUnorderedIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon list-unordered-icon","data-testid":"kui-icon-wrapper-list-unordered-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-list-unordered-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",b$4$1,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),z$1$1],8,N$5$1))]),_:1},8,["aria-hidden","style"]))}}),c$1$1=s$1$1(k$3$1,[["__scopeId","data-v-0e1daaec"]]),v$3$1=Ea=>(vue.pushScopeId("data-v-e169f874"),Ea=Ea(),vue.popScopeId(),Ea),w$3$1=["aria-hidden"],N$4$1={key:0,"data-testid":"kui-icon-svg-title"},b$3$1=v$3$1(()=>vue.createElementVNode("path",{d:"M16 15L19 12L17.95 10.925L16.75 12.125V9H15.25V12.125L14.05 10.925L13 12L16 15ZM4 20C3.45 20 2.97917 19.8042 2.5875 19.4125C2.19583 19.0208 2 18.55 2 18V6C2 5.45 2.19583 4.97917 2.5875 4.5875C2.97917 4.19583 3.45 4 4 4H20C20.55 4 21.0208 4.19583 21.4125 4.5875C21.8042 4.97917 22 5.45 22 6V18C22 18.55 21.8042 19.0208 21.4125 19.4125C21.0208 19.8042 20.55 20 20 20H4ZM4 18H20V6H4V18ZM5.5 15H7V10.5H8V13.5H9.5V10.5H10.5V15H12V10C12 9.71667 11.9042 9.47917 11.7125 9.2875C11.5208 9.09583 11.2833 9 11 9H6.5C6.21667 9 5.97917 9.09583 5.7875 9.2875C5.59583 9.47917 5.5 9.71667 5.5 10V15Z",fill:"currentColor"},null,-1)),H$1$1=vue.defineComponent({__name:"MarkdownIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon markdown-icon","data-testid":"kui-icon-wrapper-markdown-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-markdown-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$4$1,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),b$3$1],8,w$3$1))]),_:1},8,["aria-hidden","style"]))}}),m$2$1=s$1$1(H$1$1,[["__scopeId","data-v-e169f874"]]),v$2$1=Ea=>(vue.pushScopeId("data-v-073b5f41"),Ea=Ea(),vue.popScopeId(),Ea),b$2$1=["aria-hidden"],N$3$1={key:0,"data-testid":"kui-icon-svg-title"},k$2$1=v$2$1(()=>vue.createElementVNode("path",{d:"M12.15 20C10.8833 20 9.75833 19.625 8.775 18.875C7.79167 18.125 7.08333 17.1 6.65 15.8L8.85 14.85C9.08333 15.65 9.4875 16.3083 10.0625 16.825C10.6375 17.3417 11.35 17.6 12.2 17.6C12.9 17.6 13.5333 17.4333 14.1 17.1C14.6667 16.7667 14.95 16.2333 14.95 15.5C14.95 15.2 14.8917 14.925 14.775 14.675C14.6583 14.425 14.5 14.2 14.3 14H17.1C17.1833 14.2333 17.2458 14.4708 17.2875 14.7125C17.3292 14.9542 17.35 15.2167 17.35 15.5C17.35 16.9333 16.8375 18.0417 15.8125 18.825C14.7875 19.6083 13.5667 20 12.15 20ZM2 12V10H22V12H2ZM12.05 3.85C13.15 3.85 14.1125 4.12083 14.9375 4.6625C15.7625 5.20417 16.4 6.03333 16.85 7.15L14.65 8.125C14.5 7.64167 14.2208 7.20833 13.8125 6.825C13.4042 6.44167 12.8333 6.25 12.1 6.25C11.4167 6.25 10.85 6.40417 10.4 6.7125C9.95 7.02083 9.7 7.45 9.65 8H7.25C7.28333 6.85 7.7375 5.87083 8.6125 5.0625C9.4875 4.25417 10.6333 3.85 12.05 3.85Z",fill:"currentColor"},null,-1)),w$2$1=vue.defineComponent({__name:"StrikethroughIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon strikethrough-icon","data-testid":"kui-icon-wrapper-strikethrough-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-strikethrough-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$3$1,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),k$2$1],8,b$2$1))]),_:1},8,["aria-hidden","style"]))}}),p$2$1=s$1$1(w$2$1,[["__scopeId","data-v-073b5f41"]]),H$c=Ea=>(vue.pushScopeId("data-v-93ff4e21"),Ea=Ea(),vue.popScopeId(),Ea),v$1$1=["aria-hidden"],V$e={key:0,"data-testid":"kui-icon-svg-title"},N$2$1=H$c(()=>vue.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 9H19V5H5V9ZM10.325 14H13.675V11H10.325V14ZM10.325 19H13.675V16H10.325V19ZM5 14H8.325V11H5V14ZM15.675 14H19V11H15.675V14ZM5 19H8.325V16H5V19ZM15.675 19H19V16H15.675V19Z",fill:"currentColor"},null,-1)),w$1$1=vue.defineComponent({__name:"TableIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon table-icon","data-testid":"kui-icon-wrapper-table-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-table-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",V$e,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),N$2$1],8,v$1$1))]),_:1},8,["aria-hidden","style"]))}}),e$1$1=s$1$1(w$1$1,[["__scopeId","data-v-93ff4e21"]]),v$d=Ea=>(vue.pushScopeId("data-v-14a3d14a"),Ea=Ea(),vue.popScopeId(),Ea),N$1$1=["aria-hidden"],b$1$1={key:0,"data-testid":"kui-icon-svg-title"},k$1$1=v$d(()=>vue.createElementVNode("path",{d:"M5.52499 16.175L9.07499 12.625C9.27499 12.425 9.50832 12.3292 9.77499 12.3375C10.0417 12.3458 10.275 12.45 10.475 12.65C10.6583 12.85 10.75 13.0833 10.75 13.35C10.75 13.6167 10.6583 13.85 10.475 14.05L6.24999 18.3C6.04999 18.5 5.81665 18.6 5.54999 18.6C5.28332 18.6 5.04999 18.5 4.84999 18.3L2.69999 16.15C2.51665 15.9667 2.42499 15.7333 2.42499 15.45C2.42499 15.1667 2.51665 14.9333 2.69999 14.75C2.88332 14.5667 3.11665 14.475 3.39999 14.475C3.68332 14.475 3.91665 14.5667 4.09999 14.75L5.52499 16.175ZM5.52499 8.175L9.07499 4.625C9.27499 4.425 9.50832 4.32917 9.77499 4.3375C10.0417 4.34583 10.275 4.45 10.475 4.65C10.6583 4.85 10.75 5.08333 10.75 5.35C10.75 5.61667 10.6583 5.85 10.475 6.05L6.24999 10.3C6.04999 10.5 5.81665 10.6 5.54999 10.6C5.28332 10.6 5.04999 10.5 4.84999 10.3L2.69999 8.15C2.51665 7.96667 2.42499 7.73333 2.42499 7.45C2.42499 7.16667 2.51665 6.93333 2.69999 6.75C2.88332 6.56667 3.11665 6.475 3.39999 6.475C3.68332 6.475 3.91665 6.56667 4.09999 6.75L5.52499 8.175ZM14 17C13.7167 17 13.4792 16.9042 13.2875 16.7125C13.0958 16.5208 13 16.2833 13 16C13 15.7167 13.0958 15.4792 13.2875 15.2875C13.4792 15.0958 13.7167 15 14 15H21C21.2833 15 21.5208 15.0958 21.7125 15.2875C21.9042 15.4792 22 15.7167 22 16C22 16.2833 21.9042 16.5208 21.7125 16.7125C21.5208 16.9042 21.2833 17 21 17H14ZM14 9C13.7167 9 13.4792 8.90417 13.2875 8.7125C13.0958 8.52083 13 8.28333 13 8C13 7.71667 13.0958 7.47917 13.2875 7.2875C13.4792 7.09583 13.7167 7 14 7H21C21.2833 7 21.5208 7.09583 21.7125 7.2875C21.9042 7.47917 22 7.71667 22 8C22 8.28333 21.9042 8.52083 21.7125 8.7125C21.5208 8.90417 21.2833 9 21 9H14Z",fill:"currentColor"},null,-1)),w$7=vue.defineComponent({__name:"TasklistIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon tasklist-icon","data-testid":"kui-icon-wrapper-tasklist-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-tasklist-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",b$1$1,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),k$1$1],8,N$1$1))]),_:1},8,["aria-hidden","style"]))}}),m$1$1=s$1$1(w$7,[["__scopeId","data-v-14a3d14a"]]),b$g=Ea=>(vue.pushScopeId("data-v-b7362aab"),Ea=Ea(),vue.popScopeId(),Ea),C$c=["aria-hidden"],N$j={key:0,"data-testid":"kui-icon-svg-title"},z$b=b$g(()=>vue.createElementVNode("path",{d:"M4.5 21.25V19.25H18.5V21.25H4.5ZM11.5 17.25C9.81667 17.25 8.50833 16.725 7.575 15.675C6.64167 14.625 6.175 13.2333 6.175 11.5V3.25H8.75V11.65C8.75 12.5833 8.98333 13.3417 9.45 13.925C9.91667 14.5083 10.6 14.8 11.5 14.8C12.4 14.8 13.0833 14.5083 13.55 13.925C14.0167 13.3417 14.25 12.5833 14.25 11.65V3.25H16.825V11.5C16.825 13.2333 16.3583 14.625 15.425 15.675C14.4917 16.725 13.1833 17.25 11.5 17.25Z",fill:"currentColor"},null,-1)),k$b=vue.defineComponent({__name:"UnderlineIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon underline-icon","data-testid":"kui-icon-wrapper-underline-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-underline-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$j,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),z$b],8,C$c))]),_:1},8,["aria-hidden","style"]))}}),m$8=s$1$1(k$b,[["__scopeId","data-v-b7362aab"]]);for(var byteToHex=[],i$4=0;i$4<256;++i$4)byteToHex.push((i$4+256).toString(16).slice(1));function unsafeStringify(Ea,Ua=0){return(byteToHex[Ea[Ua+0]]+byteToHex[Ea[Ua+1]]+byteToHex[Ea[Ua+2]]+byteToHex[Ea[Ua+3]]+"-"+byteToHex[Ea[Ua+4]]+byteToHex[Ea[Ua+5]]+"-"+byteToHex[Ea[Ua+6]]+byteToHex[Ea[Ua+7]]+"-"+byteToHex[Ea[Ua+8]]+byteToHex[Ea[Ua+9]]+"-"+byteToHex[Ea[Ua+10]]+byteToHex[Ea[Ua+11]]+byteToHex[Ea[Ua+12]]+byteToHex[Ea[Ua+13]]+byteToHex[Ea[Ua+14]]+byteToHex[Ea[Ua+15]]).toLowerCase()}var getRandomValues,rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const native={randomUUID};function v4(Ea,Ua,aA){if(native.randomUUID&&!Ua&&!Ea)return native.randomUUID();Ea=Ea||{};var iA=Ea.random||(Ea.rng||rng)();return iA[6]=iA[6]&15|64,iA[8]=iA[8]&63|128,unsafeStringify(iA)}const _withScopeId$1$1=Ea=>(vue.pushScopeId("data-v-51dfbc77"),Ea=Ea(),vue.popScopeId(),Ea),_hoisted_1$2$1={class:"toolbar-left"},_hoisted_2$1$1={class:"button-group",role:"radiogroup"},_hoisted_3$1$1=["id"],_hoisted_4$1$1=_withScopeId$1$1(()=>vue.createElementVNode("div",{class:"toolbar-divider"},null,-1)),_hoisted_5$1$1=_withScopeId$1$1(()=>vue.createElementVNode("div",{class:"toolbar-divider"},null,-1)),_hoisted_6$1$1={key:2,class:"toolbar-right","data-testid":"slot-toolbar-right"},_hoisted_7$1$1={key:3,class:"editor-actions","data-testid":"slot-editor-actions"},_sfc_main$2$1=vue.defineComponent({__name:"MarkdownToolbar",emits:["format-selection","insert-template","change-mode","toggle-html-preview","toggle-fullscreen"],setup(Ea,{emit:Ua}){vue.useCssVars(FA=>({"4cb247c0":vue.unref(TOOLBAR_HEIGHT)}));const aA=vue.inject(UNIQUE_ID_INJECTION_KEY,vue.ref(v4())),iA=vue.inject(MODE_INJECTION_KEY,vue.ref("read")),AA=vue.inject(EDITABLE_INJECTION_KEY,vue.ref(!1)),sA=vue.inject(THEME_INJECTION_KEY,vue.ref("light")),oA=vue.inject(FULLSCREEN_INJECTION_KEY,vue.ref(!1)),dA=vue.inject(HTML_PREVIEW_INJECTION_KEY,vue.ref(!1)),gA=Ua,hA=vue.ref(null),{arrivedState:fA}=useScroll(hA),wA=useMediaQuery(`(min-width: ${KUI_BREAKPOINT_PHABLET})`),CA=()=>{iA.value==="split"&&!wA.value&&_A("edit")};vue.watch(wA,()=>{CA()});const _A=FA=>{iA.value!==FA&&gA("change-mode",FA)},BA=FA=>{var NA;gA("toggle-fullscreen"),(NA=FA==null?void 0:FA.target)==null||NA.blur()},IA=FA=>{var NA;gA("toggle-html-preview"),(NA=FA==null?void 0:FA.target)==null||NA.blur()},$A=[{label:"Bold",action:"bold",keys:["B"],icon:m$5$1},{label:"Italic",action:"italic",keys:["I"],icon:c$2$1},{label:"Underline",action:"underline",keys:["U"],icon:m$8},{label:"Strikethrough",action:"strikethrough",keys:["Shift","X"],icon:p$2$1},{label:"Code",action:"code",keys:["Shift","C"],icon:p$5$1},{label:"Link",action:"link",icon:p$3$1},{label:"Image",action:"image",icon:r$1$1}],DA=[{label:"Unordered List",action:"unordered-list",icon:c$1$1},{label:"Ordered List",action:"ordered-list",icon:e$2$1},{label:"Tasklist",action:"task",icon:m$1$1},{label:"Codeblock",action:"codeblock",icon:p$4$1},{label:"Table",action:"table",icon:e$1$1},{label:"Blockquote",action:"blockquote",icon:m$6$1}];return vue.onMounted(()=>{CA()}),(FA,NA)=>vue.unref(AA)&&vue.unref(iA)!=="read"?(vue.openBlock(),vue.createElementBlock("div",{key:0,ref_key:"toolbar",ref:hA,class:vue.normalizeClass(["markdown-ui-toolbar",`theme-${vue.unref(sA)}`]),"data-testid":"toolbar"},[vue.unref(AA)?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["toolbar-overlay left",{"overlay-visible":!vue.unref(fA).left}])},null,2)):vue.createCommentVNode("",!0),vue.unref(AA)?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["toolbar-overlay right",{"overlay-visible":!vue.unref(fA).right}])},null,2)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_1$2$1,[vue.createElementVNode("div",_hoisted_2$1$1,[vue.createElementVNode("label",{id:`editor-mode-options-${vue.unref(aA)}`,class:"sr-only"}," Select the editor mode ",8,_hoisted_3$1$1),vue.createVNode(ToolbarButton,{"aria-checked":vue.unref(iA)==="edit","aria-labelledby":`editor-mode-options-${vue.unref(aA)}`,class:vue.normalizeClass(["edit",{active:vue.unref(iA)==="edit"}]),"data-testid":"edit-mode-button",disabled:vue.unref(iA)==="edit",icon:!1,role:"radio",type:"button",onClick:NA[0]||(NA[0]=vue.withModifiers(TA=>_A("edit"),["prevent"]))},{default:vue.withCtx(()=>[vue.createTextVNode(" Edit ")]),_:1},8,["aria-checked","aria-labelledby","class","disabled"]),vue.createVNode(ToolbarButton,{"aria-checked":vue.unref(iA)==="split","aria-labelledby":`editor-mode-options-${vue.unref(aA)}`,class:vue.normalizeClass(["mode-split-button",["split",{active:vue.unref(iA)==="split"}]]),"data-testid":"split-mode-button",disabled:vue.unref(iA)==="split",icon:!1,role:"radio",type:"button",onClick:NA[1]||(NA[1]=vue.withModifiers(TA=>_A("split"),["prevent"]))},{default:vue.withCtx(()=>[vue.createTextVNode(" Split ")]),_:1},8,["aria-checked","aria-labelledby","class","disabled"]),vue.createVNode(ToolbarButton,{"aria-checked":vue.unref(iA)==="preview","aria-labelledby":`editor-mode-options-${vue.unref(aA)}`,class:vue.normalizeClass(["preview",{active:vue.unref(iA)==="preview"}]),"data-testid":"preview-mode-button",disabled:vue.unref(iA)==="preview",icon:!1,role:"radio",type:"button",onClick:NA[2]||(NA[2]=vue.withModifiers(TA=>_A("preview"),["prevent"]))},{default:vue.withCtx(()=>[vue.createTextVNode(" Preview ")]),_:1},8,["aria-checked","aria-labelledby","class","disabled"])]),vue.unref(AA)&&!["preview","read"].includes(vue.unref(iA))?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList($A,TA=>vue.createVNode(InfoTooltip,{key:TA.label,"data-testid":`tooltip-${TA.action}`,"text-old":TA.label},{tooltip:vue.withCtx(()=>[vue.createVNode(TooltipShortcut,{keys:TA.keys,text:TA.label},null,8,["keys","text"])]),default:vue.withCtx(()=>[vue.createVNode(ToolbarButton,{"aria-label":TA.label,"data-testid":`format-option-${TA.action}`,onClick:vue.withModifiers(PA=>gA("format-selection",TA.action),["prevent"])},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(TA.icon),{class:"button-icon",size:vue.unref(KUI_ICON_SIZE_40)},null,8,["size"]))]),_:2},1032,["aria-label","data-testid","onClick"])]),_:2},1032,["data-testid","text-old"])),64)),_hoisted_4$1$1,(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(DA,TA=>vue.createVNode(InfoTooltip,{key:TA.label,"data-testid":`tooltip-${TA.action}`},{tooltip:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(TA.label),1)]),default:vue.withCtx(()=>[vue.createVNode(ToolbarButton,{"aria-label":TA.label,"data-testid":`template-option-${TA.action}`,onClick:vue.withModifiers(PA=>gA("insert-template",TA.action),["prevent"])},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(TA.icon),{class:"button-icon",size:vue.unref(KUI_ICON_SIZE_40)},null,8,["size"]))]),_:2},1032,["aria-label","data-testid","onClick"])]),_:2},1032,["data-testid"])),64))],64)):vue.createCommentVNode("",!0),_hoisted_5$1$1,vue.createVNode(InfoTooltip,{"data-testid":"tooltip-fullscreen"},{tooltip:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(oA)?"Exit Fullscreen":"Enter Fullscreen"),1)]),default:vue.withCtx(()=>[vue.createVNode(ToolbarButton,{"aria-label":vue.unref(oA)?"Exit Fullscreen":"Enter Fullscreen","data-testid":"toggle-fullscreen",onClick:vue.withModifiers(BA,["prevent"])},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(oA)?vue.unref(m$4$1):vue.unref(d$1$1)),{class:"button-icon",size:vue.unref(KUI_ICON_SIZE_40)},null,8,["size"]))]),_:1},8,["aria-label"])]),_:1}),["split","preview"].includes(vue.unref(iA))?(vue.openBlock(),vue.createBlock(InfoTooltip,{key:1,"data-testid":"tooltip-fullscreen"},{tooltip:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(dA)?"Toggle markdown Preview":"Toggle HTML Preview"),1)]),default:vue.withCtx(()=>[vue.createVNode(ToolbarButton,{"aria-label":vue.unref(dA)?"Toggle markdown Preview":"Toggle HTML Preview","data-testid":"toggle-html-preview",onClick:vue.withModifiers(IA,["prevent"])},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(dA)?vue.unref(m$2$1):vue.unref(_$6)),{class:"button-icon",size:vue.unref(KUI_ICON_SIZE_40)},null,8,["size"]))]),_:1},8,["aria-label"])]),_:1})):vue.createCommentVNode("",!0)]),FA.$slots["toolbar-right"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$1$1,[vue.renderSlot(FA.$slots,"toolbar-right",{},void 0,!0)])):vue.createCommentVNode("",!0),FA.$slots["editor-actions"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$1$1,[vue.renderSlot(FA.$slots,"editor-actions",{},void 0,!0)])):vue.createCommentVNode("",!0)],2)):vue.createCommentVNode("",!0)}}),MarkdownToolbar=_export_sfc$1(_sfc_main$2$1,[["__scopeId","data-v-51dfbc77"]]),_hoisted_1$1$1=["innerHTML"],_sfc_main$1$1=vue.defineComponent({__name:"MarkdownContent",props:{content:{type:String,default:""}},setup(Ea){const Ua=vue.inject(MODE_INJECTION_KEY,vue.ref("read")),aA=vue.inject(THEME_INJECTION_KEY,vue.ref("light")),iA=Ea,AA=vue.ref(iA.content);return vue.watch(()=>iA.content,sA=>{AA.value=sA},{immediate:!0}),(sA,oA)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["markdown-content",[`mode-${vue.unref(Ua)}`,`theme-${vue.unref(aA)}`]]),"data-testid":"markdown-content",innerHTML:AA.value},null,10,_hoisted_1$1$1))}}),MarkdownContent=_export_sfc$1(_sfc_main$1$1,[["__scopeId","data-v-eac4c7eb"]]);function useDebounce(){return{debounce:(Ea,Ua)=>{let aA;return(...iA)=>{clearTimeout(aA),aA=window==null?void 0:window.setTimeout(()=>{Ea(...iA)},Ua)}}}}function useMarkdownActions(Ea,Ua){const aA=vue.reactive({start:0,end:0,text:""}),iA=()=>{if(!Ea.value)throw new Error("getTextarea: Could not find the textarea template ref");return Ea.value},AA=()=>{try{const wA=iA();if(!wA)return;aA.start=wA.selectionStart||0,aA.end=wA.selectionEnd||0,aA.text=wA.value.substring(wA.selectionStart,wA.selectionEnd)||""}catch(wA){console.warn("getTextSelection",wA),aA.start=0,aA.end=0,aA.text=""}},sA=async()=>{const wA=iA();wA&&(wA.focus(),await vue.nextTick())},oA=async wA=>{try{const CA=iA();let _A="";switch(wA){case"bold":_A=InlineFormatWrapper.bold;break;case"italic":_A=InlineFormatWrapper.italic;break;case"underline":_A=InlineFormatWrapper.underline;break;case"strikethrough":_A=InlineFormatWrapper.strikethrough;break;case"subscript":_A=InlineFormatWrapper.subscript;break;case"superscript":_A=InlineFormatWrapper.superscript;break;case"mark":_A=InlineFormatWrapper.mark;break;case"code":_A=InlineFormatWrapper.code;break}if(!CA||!_A)return;AA();const BA=_A.length,IA=Ua.value.substring(0,aA.start),$A=Ua.value.substring(aA.end);if(aA.text.length===0)if(IA.endsWith(_A)&&$A.startsWith(_A)){Ua.value=IA.substring(0,IA.length-BA)+$A.substring(BA),await sA(),CA.selectionEnd=aA.start-BA;return}else{Ua.value=Ua.value.substring(0,aA.start)+_A+_A+Ua.value.substring(aA.end),await sA(),CA.selectionEnd=aA.start+BA;return}let DA=!1;const FA=aA.text.startsWith(_A)&&aA.text.endsWith(_A),NA=IA.endsWith(_A)&&$A.startsWith(_A);(FA||NA)&&(DA=!0);let TA=aA.text;DA?DA&&FA&&(TA=aA.text.slice(BA,-BA)):TA=_A+aA.text+_A,DA&&NA?Ua.value=Ua.value.substring(0,aA.start-BA)+TA+Ua.value.substring(aA.end+BA):Ua.value=Ua.value.substring(0,aA.start)+TA+Ua.value.substring(aA.end),await sA(),DA?DA&&FA?CA.setSelectionRange(aA.start,aA.end-BA*2):DA&&NA&&CA.setSelectionRange(aA.start-BA,aA.end-BA):CA.setSelectionRange(aA.start,aA.end+BA*2)}catch(CA){console.warn("toggleInlineFormatting",CA)}},dA=async(wA,CA)=>{try{const _A=iA();if(!_A)return;AA();let BA="";Array.from(Array(CA).keys()).forEach(()=>BA+=" ");let IA=0;const $A=Ua.value.substring(0,aA.start);if(wA==="remove"&&!$A.endsWith(BA)&&!$A.endsWith(" "+MARKDOWN_TEMPLATE_UL)&&!/ {2}\d{1,}\. $/.test($A))return;if(aA.text.length!==0)IA=(aA.text.match(/\n(?!\n)/g)||[]).length,wA==="add"?Ua.value=$A+BA+aA.text.replace(/\n(?!\n)/g,`${NEW_LINE_CHARACTER}${BA}`)+Ua.value.substring(aA.end):Ua.value=Ua.value.substring(0,aA.start-BA.length)+aA.text.replaceAll(`${NEW_LINE_CHARACTER}${BA}`,NEW_LINE_CHARACTER)+Ua.value.substring(aA.end);else if($A.endsWith(MARKDOWN_TEMPLATE_UL))Ua.value=wA==="add"?Ua.value.substring(0,aA.start-MARKDOWN_TEMPLATE_UL.length)+BA+MARKDOWN_TEMPLATE_UL+Ua.value.substring(aA.end):Ua.value.substring(0,aA.start-BA.length-MARKDOWN_TEMPLATE_UL.length)+MARKDOWN_TEMPLATE_UL+Ua.value.substring(aA.end);else if(/\d{1,}\. $/.test($A.split(NEW_LINE_CHARACTER).pop()||"")){const DA=MARKDOWN_TEMPLATE_OL.replace("1",""),FA=Number(($A.split(NEW_LINE_CHARACTER).at(-2)||$A.split(NEW_LINE_CHARACTER).pop()||"").trimStart().split(DA)[0])+1;Ua.value=wA==="add"?Ua.value.substring(0,aA.start-MARKDOWN_TEMPLATE_OL.length)+BA+MARKDOWN_TEMPLATE_OL+Ua.value.substring(aA.end):Ua.value.substring(0,aA.start-BA.length-(FA+DA).length)+(FA+DA)+Ua.value.substring(aA.end)}else Ua.value=wA==="add"?$A+BA+Ua.value.substring(aA.end):Ua.value.substring(0,aA.start-BA.length)+Ua.value.substring(aA.end);if(await sA(),aA.text.length!==0){const DA=CA+IA*CA;_A.selectionStart=wA==="add"?aA.start+BA.length:aA.start-BA.length,_A.selectionEnd=wA==="add"?aA.end+DA:aA.end-DA}else _A.selectionEnd=wA==="add"?aA.start+BA.length:aA.start-BA.length}catch(_A){console.warn("toggleTab",_A)}},gA=(wA,CA)=>{var _A,BA;return CA===MARKDOWN_TEMPLATE_OL?/^\d{1,}\. /.test(String(((_A=wA==null?void 0:wA.split(NEW_LINE_CHARACTER))==null?void 0:_A.pop())||"")):String(((BA=wA==null?void 0:wA.split(NEW_LINE_CHARACTER))==null?void 0:BA.pop())||"").endsWith(CA)},hA=async wA=>{try{const CA=iA();if(!CA||!wA||(AA(),aA.text.length!==0))return;const _A=Ua.value.substring(0,aA.start),BA=_A.length===0||_A.endsWith(`${NEW_LINE_CHARACTER}${NEW_LINE_CHARACTER}`)?"":/(.*)?[^\n]$/.test(_A)?`${NEW_LINE_CHARACTER}${NEW_LINE_CHARACTER}`:NEW_LINE_CHARACTER;let IA="";switch(wA){case"task":if(gA(_A,MARKDOWN_TEMPLATE_TASK)){await sA();return}IA=BA+MARKDOWN_TEMPLATE_TASK;break;case"unordered-list":if(gA(_A,MARKDOWN_TEMPLATE_UL)){await sA();return}IA=BA+MARKDOWN_TEMPLATE_UL;break;case"ordered-list":if(gA(_A,MARKDOWN_TEMPLATE_OL)){await sA();return}IA=BA+MARKDOWN_TEMPLATE_OL;break;case"blockquote":if(gA(_A,MARKDOWN_TEMPLATE_BLOCKQUOTE)){await sA();return}IA=BA+MARKDOWN_TEMPLATE_BLOCKQUOTE;break;case"codeblock":IA=BA+MARKDOWN_TEMPLATE_CODEBLOCK;break;case"table":IA=BA+MARKDOWN_TEMPLATE_TABLE;break}if(!IA)return;switch(Ua.value=_A+IA+Ua.value.substring(aA.end),await sA(),wA){case"codeblock":CA.selectionStart=aA.start+(BA.length+3),CA.selectionEnd=aA.start+(BA.length+3)+DEFAULT_CODEBLOCK_LANGUAGE.length;break;default:CA.selectionEnd=aA.start+IA.length;break}}catch(CA){console.warn("insertMarkdownTemplate",CA)}},fA=(wA,CA)=>{iA().setSelectionRange(wA,CA)};return{selectedText:aA,getTextSelection:AA,toggleInlineFormatting:oA,toggleTab:dA,insertMarkdownTemplate:hA,insertLink:async()=>{try{const wA=iA();if(!wA)return;AA();const CA=Ua.value.substring(0,aA.start),_A=Ua.value.substring(aA.end);let BA="";const IA=3,$A=4;if(aA.text.length!==0){if(aA.text==="url"&&CA.endsWith("(")&&_A.startsWith(")")){await sA();return}const DA=/^http(s)?:\/\//.test(aA.text);BA=DA?MARKDOWN_TEMPLATE_LINK.replace(/url/,aA.text):MARKDOWN_TEMPLATE_LINK.replace(/text/,aA.text),Ua.value=CA+BA+_A,await sA(),DA?wA.selectionEnd=aA.start+1:(wA.selectionStart=CA.length+aA.text.length+3,wA.selectionEnd=CA.length+aA.text.length+6),fA(wA.selectionStart,wA.selectionStart+(DA?$A:IA))}else{if(CA.endsWith(MARKDOWN_TEMPLATE_LINK.split("text")[0])&&/^\]\((.*)+\)/.test(_A)){await sA();return}BA=MARKDOWN_TEMPLATE_LINK;let DA=7;/\w+$/.test(CA)?(BA=" "+BA,DA++):/^\w+/.test(_A)&&(BA+=" "),Ua.value=CA+BA+_A,await sA(),wA.selectionEnd=aA.start+DA,fA(wA.selectionEnd,wA.selectionEnd+IA)}}catch(wA){console.warn("insertLink",wA)}},insertNewLine:async()=>{var wA;try{const CA=iA();if(!CA)return;AA();const _A=Ua.value.substring(0,aA.start),BA=((wA=_A==null?void 0:_A.split(NEW_LINE_CHARACTER))==null?void 0:wA.pop())||"";let IA=NEW_LINE_CHARACTER,$A=!1,DA=0;const FA=[MARKDOWN_TEMPLATE_TASK,MARKDOWN_TEMPLATE_UL,MARKDOWN_TEMPLATE_OL,MARKDOWN_TEMPLATE_BLOCKQUOTE];for(const TA of FA)if(TA===MARKDOWN_TEMPLATE_OL){if(/^\d{1,}\. /.test(BA.trimStart())){const PA=MARKDOWN_TEMPLATE_OL.replace("1",""),HA=Number(BA.trimStart().split(PA)[0]);if(!isNaN(HA)&&HA>0){const RA=HA+1;DA=String(RA+PA).length,/^\d{1,}\. $/.test(BA.trimStart())?$A=!0:IA+=BA.split(HA+PA)[0]+RA+PA}break}}else{const PA=TA===MARKDOWN_TEMPLATE_TASK&&BA.trimStart().toLowerCase().startsWith(MARKDOWN_TEMPLATE_TASK_COMPLETED.toLowerCase());if(BA.trimStart().startsWith(TA)||PA){DA=TA.length,BA.trimStart()===TA?$A=!0:PA?IA+=BA.toLowerCase().split(MARKDOWN_TEMPLATE_TASK_COMPLETED.toLowerCase())[0]+TA:IA+=BA.split(TA)[0]+TA;break}}let NA="";IA===NEW_LINE_CHARACTER&&Array.from(Array(BA.length-BA.trimStart().length).keys()).forEach(()=>NA+=" "),Ua.value=$A?Ua.value.substring(0,aA.start-BA.length)+Ua.value.substring(aA.end):_A+IA+NA+Ua.value.substring(aA.end),await sA(),CA.selectionEnd=$A?aA.start-DA:aA.start+IA.length+NA.length}catch(CA){console.warn("insertNewLine",CA)}},insertImage:async()=>{try{const wA=iA();if(!wA)return;AA();const CA=Ua.value.substring(0,aA.start),_A=Ua.value.substring(aA.end);let BA="";const IA=3,$A=3;if(aA.text.length!==0){if(aA.text==="url"&&CA.endsWith("(")&&_A.startsWith(")")){await sA();return}const DA=/^http(s)?:\/\//.test(aA.text);BA=DA?MARKDOWN_TEMPLATE_IMAGE.replace(/url/,aA.text):MARKDOWN_TEMPLATE_IMAGE.replace(/alt/,aA.text),Ua.value=CA+BA+_A,await sA(),DA?wA.selectionEnd=aA.start+2:(wA.selectionStart=CA.length+aA.text.length+4,wA.selectionEnd=CA.length+aA.text.length+7),fA(wA.selectionStart,wA.selectionStart+$A)}else{if(CA.endsWith(MARKDOWN_TEMPLATE_IMAGE.split("alt")[0])&&/^\]\((.*)+\)/.test(_A)){await sA();return}BA=MARKDOWN_TEMPLATE_IMAGE;let DA=7;/\w+$/.test(CA)?(BA=" "+BA,DA++):/^\w+/.test(_A)&&(BA+=" "),Ua.value=CA+BA+_A,await sA(),wA.selectionEnd=aA.start+DA,fA(wA.selectionEnd,wA.selectionEnd+IA)}}catch(wA){console.warn("insertImage",wA)}}}}function useKeyboardShortcuts(Ea,Ua,aA,iA){const AA=useActiveElement(),sA=vue.computed(()=>{var CA,_A,BA;return!!((CA=AA.value)!=null&&CA.id)&&((_A=AA.value)==null?void 0:_A.id)===((BA=Ea.value)==null?void 0:BA.id)}),{toggleInlineFormatting:oA,insertNewLine:dA,getTextSelection:gA,selectedText:hA,toggleTab:fA}=useMarkdownActions(Ea,Ua),wA=CA=>{let _A;switch(CA.key){case"b":_A="bold";break;case"i":_A="italic";break;case"u":_A="underline";break;case"x":CA.shiftKey&&(_A="strikethrough");break;case"c":CA.shiftKey&&(_A="code");break}return _A};useMagicKeys({passive:!1,onEventFired(CA){if(!(!sA.value||CA.type!=="keydown")){if(CA.key&&(CA.ctrlKey||CA.metaKey)){const _A=wA(CA);_A&&(CA.preventDefault(),oA(_A),iA())}CA.key&&CA.key==="Enter"&&!CA.shiftKey&&(CA.preventDefault(),dA(),iA()),CA.key&&CA.key==="Tab"&&(gA(),hA.text&&(CA.preventDefault(),CA.shiftKey?fA("remove",aA.value):fA("add",aA.value),iA()))}}})}function setupMarkdownIt(Ea,Ua,aA){const{parseMetaString:iA,trimEndingNewline:AA=!0,defaultLanguage:sA="text",fallbackLanguage:oA}=aA,dA=Ua.getLoadedLanguages();Ea.options.highlight=(gA,hA="text",fA)=>{hA===""&&(hA=sA),oA&&!dA.includes(hA)&&(hA=oA);const wA=(iA==null?void 0:iA(fA,gA,hA))||{},CA={...aA,lang:hA,meta:{...aA.meta,...wA,__raw:fA}},_A=[];return _A.push({name:"@shikijs/markdown-it:block-class",code(BA){BA.properties.class=`language-${hA}`}}),AA&&gA.endsWith(`
|
|
6
|
+
`,MARKDOWN_TEMPLATE_CODEBLOCK="```"+DEFAULT_CODEBLOCK_LANGUAGE+NEW_LINE_CHARACTER+NEW_LINE_CHARACTER+"```",MARKDOWN_TEMPLATE_TABLE="| Header | Header | Header |"+NEW_LINE_CHARACTER+"| :--- | :--- | :--- |"+NEW_LINE_CHARACTER+"| Cell | Cell | Cell |",MARKDOWN_TEMPLATE_TASK="- [ ] ",MARKDOWN_TEMPLATE_TASK_COMPLETED="- [x] ",MARKDOWN_TEMPLATE_UL="- ",MARKDOWN_TEMPLATE_OL="1. ",MARKDOWN_TEMPLATE_BLOCKQUOTE="> ",MARKDOWN_TEMPLATE_LINK="[text](url)",MARKDOWN_TEMPLATE_IMAGE="",COPY_ICON_SVG='<span class="kui-icon copy-icon button-icon" data-testid="kui-icon-wrapper-copy-icon" style="pointer-events:none; box-sizing: border-box; color: currentcolor; display: block; height: 20px; line-height: 0; width: 20px;"><svg data-testid="kui-icon-svg-copy-icon" fill="none" height="100%" role="img" viewBox="0 0 24 24" width="100%" xmlns="http://www.w3.org/2000/svg"><path d="M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z" fill="currentColor"></path></svg></span>',HEADER_LINK_ICON_SVG='<svg class="header-anchor-icon" viewBox="0 0 16 16" version="1.1" width="14" height="14" aria-hidden="true"><path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"></path></svg>',KUI_BREAKPOINT_PHABLET="768px",KUI_ICON_SIZE_30="16px",KUI_ICON_SIZE_40="20px",KUI_FONT_FAMILY_CODE="'JetBrains Mono', Consolas, monospace",KUI_FONT_FAMILY_TEXT="'Inter', Roboto, Helvetica, sans-serif",KUI_SPACE_60="16px",_sfc_main$5=vue.defineComponent({__name:"ToolbarButton",props:{icon:{type:Boolean,default:!0},appearance:{type:String,default:"secondary"}},setup(Ea){return(Ua,aA)=>(vue.openBlock(),vue.createElementBlock("button",{class:vue.normalizeClass(["toolbar-button",[{"has-text":!Ea.icon},Ea.appearance]]),tabindex:"0",type:"button"},[vue.renderSlot(Ua.$slots,"default",{},void 0,!0)],2))}}),_export_sfc$1=(Ea,Ua)=>{const aA=Ea.__vccOpts||Ea;for(const[iA,AA]of Ua)aA[iA]=AA;return aA},ToolbarButton=_export_sfc$1(_sfc_main$5,[["__scopeId","data-v-47835ee3"]]),_hoisted_1$4={class:"info-tooltip"},_hoisted_2$3={key:0,class:"tooltip-content"},_sfc_main$4=vue.defineComponent({__name:"InfoTooltip",props:{text:{type:String,default:void 0}},setup(Ea){return(Ua,aA)=>(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$4,[vue.renderSlot(Ua.$slots,"default",{},void 0,!0),Ua.$slots.tooltip||Ea.text?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2$3,[vue.renderSlot(Ua.$slots,"tooltip",{},()=>[vue.createTextVNode(vue.toDisplayString(Ea.text),1)],!0)])):vue.createCommentVNode("",!0)]))}}),InfoTooltip=_export_sfc$1(_sfc_main$4,[["__scopeId","data-v-46630046"]]),_hoisted_1$3={key:0,class:"tooltip-shortcut"},_hoisted_2$2$1={"data-testid":"shortcut-text"},_hoisted_3$2$1={key:0,class:"keys","data-testid":"keys"},_hoisted_4$2=["aria-label"],_sfc_main$3$1=vue.defineComponent({__name:"TooltipShortcut",props:{text:{type:String,required:!0},keys:{type:Array,default:()=>[],validator:Ea=>Ea!=null&&Ea.length?Ea.every(Ua=>typeof Ua=="string"):!0}},setup(Ea){const Ua=vue.ref(!1);return vue.onMounted(()=>{var aA;Ua.value=/Mac|iPhone|iPod|iPad/i.test(navigator==null?void 0:navigator.platform)||/macOS|Mac|iPhone|iPod|iPad/i.test((aA=navigator==null?void 0:navigator.userAgentData)==null?void 0:aA.platform)}),(aA,iA)=>Ea.text?(vue.openBlock(),vue.createElementBlock("div",_hoisted_1$3,[vue.createElementVNode("div",_hoisted_2$2$1,vue.toDisplayString(Ea.text),1),Ea.keys.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$2$1,[vue.createElementVNode("kbd",{"aria-label":Ua.value?"Command":"Control",class:vue.normalizeClass(["keyboard-button meta-key",{mac:Ua.value}]),"data-testid":"meta-key"},null,10,_hoisted_4$2),(vue.openBlock(!0),vue.createElementBlock(vue.Fragment,null,vue.renderList(Ea.keys,AA=>(vue.openBlock(),vue.createElementBlock("kbd",{key:AA,class:"keyboard-button"},vue.toDisplayString(AA),1))),128))])):vue.createCommentVNode("",!0)])):vue.createCommentVNode("",!0)}}),TooltipShortcut=_export_sfc$1(_sfc_main$3$1,[["__scopeId","data-v-e8c3cafb"]]),I$3$1="24px",s$1$1=(Ea,Ua)=>{const aA=Ea.__vccOpts||Ea;for(const[iA,AA]of Ua)aA[iA]=AA;return aA},S$2$1=Ea=>(vue.pushScopeId("data-v-3b9b55a4"),Ea=Ea(),vue.popScopeId(),Ea),v$c=["aria-hidden"],N$i={key:0,"data-testid":"kui-icon-svg-title"},k$a=S$2$1(()=>vue.createElementVNode("path",{d:"M6.55 16.5L8 14C6.9 14 5.95833 13.6083 5.175 12.825C4.39167 12.0417 4 11.1 4 10C4 8.9 4.39167 7.95833 5.175 7.175C5.95833 6.39167 6.9 6 8 6C9.1 6 10.0417 6.39167 10.825 7.175C11.6083 7.95833 12 8.9 12 10C12 10.3833 11.9542 10.7375 11.8625 11.0625C11.7708 11.3875 11.6333 11.7 11.45 12L8.275 17.5C8.19167 17.65 8.075 17.7708 7.925 17.8625C7.775 17.9542 7.60833 18 7.425 18C7.04167 18 6.75417 17.8333 6.5625 17.5C6.37083 17.1667 6.36667 16.8333 6.55 16.5ZM15.55 16.5L17 14C15.9 14 14.9583 13.6083 14.175 12.825C13.3917 12.0417 13 11.1 13 10C13 8.9 13.3917 7.95833 14.175 7.175C14.9583 6.39167 15.9 6 17 6C18.1 6 19.0417 6.39167 19.825 7.175C20.6083 7.95833 21 8.9 21 10C21 10.3833 20.9542 10.7375 20.8625 11.0625C20.7708 11.3875 20.6333 11.7 20.45 12L17.275 17.5C17.1917 17.65 17.075 17.7708 16.925 17.8625C16.775 17.9542 16.6083 18 16.425 18C16.0417 18 15.7542 17.8333 15.5625 17.5C15.3708 17.1667 15.3667 16.8333 15.55 16.5Z",fill:"currentColor"},null,-1)),q$d=vue.defineComponent({__name:"BlockquoteIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon blockquote-icon","data-testid":"kui-icon-wrapper-blockquote-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-blockquote-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$i,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),k$a],8,v$c))]),_:1},8,["aria-hidden","style"]))}}),m$6=s$1$1(q$d,[["__scopeId","data-v-3b9b55a4"]]),b$f=Ea=>(vue.pushScopeId("data-v-a025aca5"),Ea=Ea(),vue.popScopeId(),Ea),v$b=["aria-hidden"],N$h={key:0,"data-testid":"kui-icon-svg-title"},z$9$1=b$f(()=>vue.createElementVNode("path",{d:"M6.3 19.25V5.25H11.825C12.9083 5.25 13.9083 5.58333 14.825 6.25C15.7417 6.91667 16.2 7.84167 16.2 9.025C16.2 9.875 16.0083 10.5292 15.625 10.9875C15.2417 11.4458 14.8833 11.775 14.55 11.975C14.9667 12.1583 15.4292 12.5 15.9375 13C16.4458 13.5 16.7 14.25 16.7 15.25C16.7 16.7333 16.1583 17.7708 15.075 18.3625C13.9917 18.9542 12.975 19.25 12.025 19.25H6.3ZM9.325 16.45H11.925C12.725 16.45 13.2125 16.2458 13.3875 15.8375C13.5625 15.4292 13.65 15.1333 13.65 14.95C13.65 14.7667 13.5625 14.4708 13.3875 14.0625C13.2125 13.6542 12.7 13.45 11.85 13.45H9.325V16.45ZM9.325 10.75H11.65C12.2 10.75 12.6 10.6083 12.85 10.325C13.1 10.0417 13.225 9.725 13.225 9.375C13.225 8.975 13.0833 8.65 12.8 8.4C12.5167 8.15 12.15 8.025 11.7 8.025H9.325V10.75Z",fill:"currentColor"},null,-1)),k$9=vue.defineComponent({__name:"BoldIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon bold-icon","data-testid":"kui-icon-wrapper-bold-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-bold-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$h,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),z$9$1],8,v$b))]),_:1},8,["aria-hidden","style"]))}}),m$5$1=s$1$1(k$9,[["__scopeId","data-v-a025aca5"]]),v$a=Ea=>(vue.pushScopeId("data-v-e49d7912"),Ea=Ea(),vue.popScopeId(),Ea),N$g=["aria-hidden"],b$e={key:0,"data-testid":"kui-icon-svg-title"},z$8$1=v$a(()=>vue.createElementVNode("path",{d:"M4.82499 12.025L8.69999 15.9C8.88332 16.0833 8.97499 16.3167 8.97499 16.6C8.97499 16.8833 8.88332 17.1167 8.69999 17.3C8.51665 17.4833 8.28332 17.575 7.99999 17.575C7.71665 17.575 7.48332 17.4833 7.29999 17.3L2.69999 12.7C2.59999 12.6 2.52915 12.4917 2.48749 12.375C2.44582 12.2583 2.42499 12.1333 2.42499 12C2.42499 11.8667 2.44582 11.7417 2.48749 11.625C2.52915 11.5083 2.59999 11.4 2.69999 11.3L7.29999 6.7C7.49999 6.5 7.73749 6.4 8.01249 6.4C8.28749 6.4 8.52499 6.5 8.72499 6.7C8.92499 6.9 9.02499 7.1375 9.02499 7.4125C9.02499 7.6875 8.92499 7.925 8.72499 8.125L4.82499 12.025ZM19.175 11.975L15.3 8.1C15.1167 7.91667 15.025 7.68333 15.025 7.4C15.025 7.11667 15.1167 6.88333 15.3 6.7C15.4833 6.51667 15.7167 6.425 16 6.425C16.2833 6.425 16.5167 6.51667 16.7 6.7L21.3 11.3C21.4 11.4 21.4708 11.5083 21.5125 11.625C21.5542 11.7417 21.575 11.8667 21.575 12C21.575 12.1333 21.5542 12.2583 21.5125 12.375C21.4708 12.4917 21.4 12.6 21.3 12.7L16.7 17.3C16.5 17.5 16.2667 17.5958 16 17.5875C15.7333 17.5792 15.5 17.475 15.3 17.275C15.1 17.075 15 16.8375 15 16.5625C15 16.2875 15.1 16.05 15.3 15.85L19.175 11.975Z",fill:"currentColor"},null,-1)),k$8=vue.defineComponent({__name:"CodeIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon code-icon","data-testid":"kui-icon-wrapper-code-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-code-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",b$e,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),z$8$1],8,N$g))]),_:1},8,["aria-hidden","style"]))}}),p$5$1=s$1$1(k$8,[["__scopeId","data-v-e49d7912"]]),S$1$1=Ea=>(vue.pushScopeId("data-v-0b7d1905"),Ea=Ea(),vue.popScopeId(),Ea),v$9=["aria-hidden"],N$f={key:0,"data-testid":"kui-icon-svg-title"},k$7=S$1$1(()=>vue.createElementVNode("path",{d:"M8.825 12L10.3 10.525C10.5 10.325 10.6 10.0917 10.6 9.825C10.6 9.55833 10.5 9.325 10.3 9.125C10.1 8.925 9.8625 8.825 9.5875 8.825C9.3125 8.825 9.075 8.925 8.875 9.125L6.7 11.3C6.6 11.4 6.52917 11.5083 6.4875 11.625C6.44583 11.7417 6.425 11.8667 6.425 12C6.425 12.1333 6.44583 12.2583 6.4875 12.375C6.52917 12.4917 6.6 12.6 6.7 12.7L8.875 14.875C9.075 15.075 9.3125 15.175 9.5875 15.175C9.8625 15.175 10.1 15.075 10.3 14.875C10.5 14.675 10.6 14.4417 10.6 14.175C10.6 13.9083 10.5 13.675 10.3 13.475L8.825 12ZM15.175 12L13.7 13.475C13.5 13.675 13.4 13.9083 13.4 14.175C13.4 14.4417 13.5 14.675 13.7 14.875C13.9 15.075 14.1375 15.175 14.4125 15.175C14.6875 15.175 14.925 15.075 15.125 14.875L17.3 12.7C17.4 12.6 17.4708 12.4917 17.5125 12.375C17.5542 12.2583 17.575 12.1333 17.575 12C17.575 11.8667 17.5542 11.7417 17.5125 11.625C17.4708 11.5083 17.4 11.4 17.3 11.3L15.125 9.125C15.025 9.025 14.9125 8.95 14.7875 8.9C14.6625 8.85 14.5375 8.825 14.4125 8.825C14.2875 8.825 14.1625 8.85 14.0375 8.9C13.9125 8.95 13.8 9.025 13.7 9.125C13.5 9.325 13.4 9.55833 13.4 9.825C13.4 10.0917 13.5 10.325 13.7 10.525L15.175 12ZM5 21C4.45 21 3.97917 20.8042 3.5875 20.4125C3.19583 20.0208 3 19.55 3 19V5C3 4.45 3.19583 3.97917 3.5875 3.5875C3.97917 3.19583 4.45 3 5 3H19C19.55 3 20.0208 3.19583 20.4125 3.5875C20.8042 3.97917 21 4.45 21 5V19C21 19.55 20.8042 20.0208 20.4125 20.4125C20.0208 20.8042 19.55 21 19 21H5ZM5 19H19V5H5V19Z",fill:"currentColor"},null,-1)),w$6=vue.defineComponent({__name:"CodeblockIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon codeblock-icon","data-testid":"kui-icon-wrapper-codeblock-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-codeblock-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$f,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),k$7],8,v$9))]),_:1},8,["aria-hidden","style"]))}}),p$4$1=s$1$1(w$6,[["__scopeId","data-v-0b7d1905"]]),N$e=Ea=>(vue.pushScopeId("data-v-854a152d"),Ea=Ea(),vue.popScopeId(),Ea),b$d=["aria-hidden"],z$7$1={key:0,"data-testid":"kui-icon-svg-title"},x$3$1=N$e(()=>vue.createElementVNode("path",{d:"M3.4 22L2 20.6L8.6 14H4V12H12V20H10V15.4L3.4 22ZM12 12V4H14V8.6L20.6 2L22 3.4L15.4 10H20V12H12Z",fill:"currentColor"},null,-1)),I$2$1=vue.defineComponent({__name:"CollapseIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon collapse-icon","data-testid":"kui-icon-wrapper-collapse-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-collapse-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",z$7$1,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),x$3$1],8,b$d))]),_:1},8,["aria-hidden","style"]))}}),m$4$1=s$1$1(I$2$1,[["__scopeId","data-v-854a152d"]]),b$c=Ea=>(vue.pushScopeId("data-v-7698bc04"),Ea=Ea(),vue.popScopeId(),Ea),w$5$1=["aria-hidden"],N$d={key:0,"data-testid":"kui-icon-svg-title"},z$6$1=b$c(()=>vue.createElementVNode("path",{d:"M12 16L7 11L8.4 9.55L11 12.15V4H13V12.15L15.6 9.55L17 11L12 16ZM6 20C5.45 20 4.97917 19.8042 4.5875 19.4125C4.19583 19.0208 4 18.55 4 18V15H6V18H18V15H20V18C20 18.55 19.8042 19.0208 19.4125 19.4125C19.0208 19.8042 18.55 20 18 20H6Z",fill:"currentColor"},null,-1)),k$6=vue.defineComponent({__name:"DownloadIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon download-icon","data-testid":"kui-icon-wrapper-download-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-download-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$d,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),z$6$1],8,w$5$1))]),_:1},8,["aria-hidden","style"]))}}),m$3$1=s$1$1(k$6,[["__scopeId","data-v-7698bc04"]]),N$c=Ea=>(vue.pushScopeId("data-v-d3181e65"),Ea=Ea(),vue.popScopeId(),Ea),b$b=["aria-hidden"],z$5$1={key:0,"data-testid":"kui-icon-svg-title"},x$2$1=N$c(()=>vue.createElementVNode("path",{d:"M5 19H6.4L15.025 10.375L13.625 8.975L5 17.6V19ZM19.3 8.925L15.05 4.725L16.45 3.325C16.8333 2.94167 17.3042 2.75 17.8625 2.75C18.4208 2.75 18.8917 2.94167 19.275 3.325L20.675 4.725C21.0583 5.10833 21.2583 5.57083 21.275 6.1125C21.2917 6.65417 21.1083 7.11667 20.725 7.5L19.3 8.925ZM17.85 10.4L7.25 21H3V16.75L13.6 6.15L17.85 10.4Z",fill:"currentColor"},null,-1)),L$a=vue.defineComponent({__name:"EditIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon edit-icon","data-testid":"kui-icon-wrapper-edit-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-edit-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",z$5$1,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),x$2$1],8,b$b))]),_:1},8,["aria-hidden","style"]))}}),_$1$1=s$1$1(L$a,[["__scopeId","data-v-d3181e65"]]),x$1$1=Ea=>(vue.pushScopeId("data-v-ae3dd907"),Ea=Ea(),vue.popScopeId(),Ea),N$b=["aria-hidden"],b$a={key:0,"data-testid":"kui-icon-svg-title"},z$4$1=x$1$1(()=>vue.createElementVNode("path",{d:"M3 21V13H5V17.6L17.6 5H13V3H21V11H19V6.4L6.4 19H11V21H3Z",fill:"currentColor"},null,-1)),I$1$1=vue.defineComponent({__name:"ExpandIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon expand-icon","data-testid":"kui-icon-wrapper-expand-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-expand-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",b$a,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),z$4$1],8,N$b))]),_:1},8,["aria-hidden","style"]))}}),d$1$1=s$1$1(I$1$1,[["__scopeId","data-v-ae3dd907"]]),V$1$1=Ea=>(vue.pushScopeId("data-v-d3b1176d"),Ea=Ea(),vue.popScopeId(),Ea),v$8=["aria-hidden"],b$9={key:0,"data-testid":"kui-icon-svg-title"},N$a=V$1$1(()=>vue.createElementVNode("path",{d:"M0 15V9H1.5V11H3.5V9H5V15H3.5V12.5H1.5V15H0ZM7.75 15V10.5H6V9H11V10.5H9.25V15H7.75ZM12 15V10C12 9.71667 12.0958 9.47917 12.2875 9.2875C12.4792 9.09583 12.7167 9 13 9H17.5C17.7833 9 18.0208 9.09583 18.2125 9.2875C18.4042 9.47917 18.5 9.71667 18.5 10V15H17V10.5H16V14H14.5V10.5H13.5V15H12ZM20 15V9H21.5V13.5H24V15H20Z",fill:"currentColor"},null,-1)),C$1$1=vue.defineComponent({__name:"HtmlIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon html-icon","data-testid":"kui-icon-wrapper-html-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-html-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",b$9,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),N$a],8,v$8))]),_:1},8,["aria-hidden","style"]))}}),_$6=s$1$1(C$1$1,[["__scopeId","data-v-d3b1176d"]]),v$7=Ea=>(vue.pushScopeId("data-v-cc6327a7"),Ea=Ea(),vue.popScopeId(),Ea),N$9=["aria-hidden"],b$8={key:0,"data-testid":"kui-icon-svg-title"},z$3$1=v$7(()=>vue.createElementVNode("path",{d:"M5 22C4.16667 22 3.45833 21.7083 2.875 21.125C2.29167 20.5417 2 19.8333 2 19V5C2 4.16667 2.29167 3.45833 2.875 2.875C3.45833 2.29167 4.16667 2 5 2H19C19.8333 2 20.5417 2.29167 21.125 2.875C21.7083 3.45833 22 4.16667 22 5V19C22 19.8333 21.7083 20.5417 21.125 21.125C20.5417 21.7083 19.8333 22 19 22H5ZM5 20H19C19.2833 20 19.5208 19.9042 19.7125 19.7125C19.9042 19.5208 20 19.2833 20 19V5C20 4.71667 19.9042 4.47917 19.7125 4.2875C19.5208 4.09583 19.2833 4 19 4H5C4.71667 4 4.47917 4.09583 4.2875 4.2875C4.09583 4.47917 4 4.71667 4 5V19C4 19.2833 4.09583 19.5208 4.2875 19.7125C4.47917 19.9042 4.71667 20 5 20ZM6 18L10 14L11.8 15.775L14 13L18 18H6ZM8 10C7.45 10 6.97917 9.80417 6.5875 9.4125C6.19583 9.02083 6 8.55 6 8C6 7.45 6.19583 6.97917 6.5875 6.5875C6.97917 6.19583 7.45 6 8 6C8.55 6 9.02083 6.19583 9.4125 6.5875C9.80417 6.97917 10 7.45 10 8C10 8.55 9.80417 9.02083 9.4125 9.4125C9.02083 9.80417 8.55 10 8 10Z",fill:"currentColor"},null,-1)),I$7=vue.defineComponent({__name:"ImageIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon image-icon","data-testid":"kui-icon-wrapper-image-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-image-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",b$8,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),z$3$1],8,N$9))]),_:1},8,["aria-hidden","style"]))}}),r$1$1=s$1$1(I$7,[["__scopeId","data-v-cc6327a7"]]),b$7=Ea=>(vue.pushScopeId("data-v-8b973ff4"),Ea=Ea(),vue.popScopeId(),Ea),N$8=["aria-hidden"],z$2$1={key:0,"data-testid":"kui-icon-svg-title"},x$7=b$7(()=>vue.createElementVNode("path",{d:"M4.5 19.25V16.75H8.5L11.5 7.75H7.5V5.25H17.5V7.75H14L11 16.75H14.5V19.25H4.5Z",fill:"currentColor"},null,-1)),k$5$1=vue.defineComponent({__name:"ItalicIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon italic-icon","data-testid":"kui-icon-wrapper-italic-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-italic-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",z$2$1,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),x$7],8,N$8))]),_:1},8,["aria-hidden","style"]))}}),c$2$1=s$1$1(k$5$1,[["__scopeId","data-v-8b973ff4"]]),v$6=Ea=>(vue.pushScopeId("data-v-01921b1f"),Ea=Ea(),vue.popScopeId(),Ea),b$6$1=["aria-hidden"],N$7={key:0,"data-testid":"kui-icon-svg-title"},k$4$1=v$6(()=>vue.createElementVNode("path",{d:"M7 17C5.61667 17 4.4375 16.5125 3.4625 15.5375C2.4875 14.5625 2 13.3833 2 12C2 10.6167 2.4875 9.4375 3.4625 8.4625C4.4375 7.4875 5.61667 7 7 7H10C10.2833 7 10.5208 7.09583 10.7125 7.2875C10.9042 7.47917 11 7.71667 11 8C11 8.28333 10.9042 8.52083 10.7125 8.7125C10.5208 8.90417 10.2833 9 10 9H7C6.16667 9 5.45833 9.29167 4.875 9.875C4.29167 10.4583 4 11.1667 4 12C4 12.8333 4.29167 13.5417 4.875 14.125C5.45833 14.7083 6.16667 15 7 15H10C10.2833 15 10.5208 15.0958 10.7125 15.2875C10.9042 15.4792 11 15.7167 11 16C11 16.2833 10.9042 16.5208 10.7125 16.7125C10.5208 16.9042 10.2833 17 10 17H7ZM9 13C8.71667 13 8.47917 12.9042 8.2875 12.7125C8.09583 12.5208 8 12.2833 8 12C8 11.7167 8.09583 11.4792 8.2875 11.2875C8.47917 11.0958 8.71667 11 9 11H15C15.2833 11 15.5208 11.0958 15.7125 11.2875C15.9042 11.4792 16 11.7167 16 12C16 12.2833 15.9042 12.5208 15.7125 12.7125C15.5208 12.9042 15.2833 13 15 13H9ZM14 17C13.7167 17 13.4792 16.9042 13.2875 16.7125C13.0958 16.5208 13 16.2833 13 16C13 15.7167 13.0958 15.4792 13.2875 15.2875C13.4792 15.0958 13.7167 15 14 15H17C17.8333 15 18.5417 14.7083 19.125 14.125C19.7083 13.5417 20 12.8333 20 12C20 11.1667 19.7083 10.4583 19.125 9.875C18.5417 9.29167 17.8333 9 17 9H14C13.7167 9 13.4792 8.90417 13.2875 8.7125C13.0958 8.52083 13 8.28333 13 8C13 7.71667 13.0958 7.47917 13.2875 7.2875C13.4792 7.09583 13.7167 7 14 7H17C18.3833 7 19.5625 7.4875 20.5375 8.4625C21.5125 9.4375 22 10.6167 22 12C22 13.3833 21.5125 14.5625 20.5375 15.5375C19.5625 16.5125 18.3833 17 17 17H14Z",fill:"currentColor"},null,-1)),H$2$1=vue.defineComponent({__name:"LinkIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon link-icon","data-testid":"kui-icon-wrapper-link-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-link-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$7,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),k$4$1],8,b$6$1))]),_:1},8,["aria-hidden","style"]))}}),p$3$1=s$1$1(H$2$1,[["__scopeId","data-v-01921b1f"]]),S$4=Ea=>(vue.pushScopeId("data-v-524da136"),Ea=Ea(),vue.popScopeId(),Ea),v$5$1=["aria-hidden"],N$6$1={key:0,"data-testid":"kui-icon-svg-title"},b$5$1=S$4(()=>vue.createElementVNode("path",{d:"M3.75 22C3.53333 22 3.35417 21.9292 3.2125 21.7875C3.07083 21.6458 3 21.4667 3 21.25C3 21.0333 3.07083 20.8542 3.2125 20.7125C3.35417 20.5708 3.53333 20.5 3.75 20.5H5.5V19.75H4.75C4.53333 19.75 4.35417 19.6792 4.2125 19.5375C4.07083 19.3958 4 19.2167 4 19C4 18.7833 4.07083 18.6042 4.2125 18.4625C4.35417 18.3208 4.53333 18.25 4.75 18.25H5.5V17.5H3.75C3.53333 17.5 3.35417 17.4292 3.2125 17.2875C3.07083 17.1458 3 16.9667 3 16.75C3 16.5333 3.07083 16.3542 3.2125 16.2125C3.35417 16.0708 3.53333 16 3.75 16H6C6.28333 16 6.52083 16.0958 6.7125 16.2875C6.90417 16.4792 7 16.7167 7 17V18C7 18.2833 6.90417 18.5208 6.7125 18.7125C6.52083 18.9042 6.28333 19 6 19C6.28333 19 6.52083 19.0958 6.7125 19.2875C6.90417 19.4792 7 19.7167 7 20V21C7 21.2833 6.90417 21.5208 6.7125 21.7125C6.52083 21.9042 6.28333 22 6 22H3.75ZM3.75 15C3.53333 15 3.35417 14.9292 3.2125 14.7875C3.07083 14.6458 3 14.4667 3 14.25V12.25C3 11.9667 3.09583 11.7292 3.2875 11.5375C3.47917 11.3458 3.71667 11.25 4 11.25H5.5V10.5H3.75C3.53333 10.5 3.35417 10.4292 3.2125 10.2875C3.07083 10.1458 3 9.96667 3 9.75C3 9.53333 3.07083 9.35417 3.2125 9.2125C3.35417 9.07083 3.53333 9 3.75 9H6C6.28333 9 6.52083 9.09583 6.7125 9.2875C6.90417 9.47917 7 9.71667 7 10V11.75C7 12.0333 6.90417 12.2708 6.7125 12.4625C6.52083 12.6542 6.28333 12.75 6 12.75H4.5V13.5H6.25C6.46667 13.5 6.64583 13.5708 6.7875 13.7125C6.92917 13.8542 7 14.0333 7 14.25C7 14.4667 6.92917 14.6458 6.7875 14.7875C6.64583 14.9292 6.46667 15 6.25 15H3.75ZM5.25 8C5.03333 8 4.85417 7.92917 4.7125 7.7875C4.57083 7.64583 4.5 7.46667 4.5 7.25V3.5H3.75C3.53333 3.5 3.35417 3.42917 3.2125 3.2875C3.07083 3.14583 3 2.96667 3 2.75C3 2.53333 3.07083 2.35417 3.2125 2.2125C3.35417 2.07083 3.53333 2 3.75 2H5.25C5.46667 2 5.64583 2.07083 5.7875 2.2125C5.92917 2.35417 6 2.53333 6 2.75V7.25C6 7.46667 5.92917 7.64583 5.7875 7.7875C5.64583 7.92917 5.46667 8 5.25 8ZM10 19C9.71667 19 9.47917 18.9042 9.2875 18.7125C9.09583 18.5208 9 18.2833 9 18C9 17.7167 9.09583 17.4792 9.2875 17.2875C9.47917 17.0958 9.71667 17 10 17H20C20.2833 17 20.5208 17.0958 20.7125 17.2875C20.9042 17.4792 21 17.7167 21 18C21 18.2833 20.9042 18.5208 20.7125 18.7125C20.5208 18.9042 20.2833 19 20 19H10ZM10 13C9.71667 13 9.47917 12.9042 9.2875 12.7125C9.09583 12.5208 9 12.2833 9 12C9 11.7167 9.09583 11.4792 9.2875 11.2875C9.47917 11.0958 9.71667 11 10 11H20C20.2833 11 20.5208 11.0958 20.7125 11.2875C20.9042 11.4792 21 11.7167 21 12C21 12.2833 20.9042 12.5208 20.7125 12.7125C20.5208 12.9042 20.2833 13 20 13H10ZM10 7C9.71667 7 9.47917 6.90417 9.2875 6.7125C9.09583 6.52083 9 6.28333 9 6C9 5.71667 9.09583 5.47917 9.2875 5.2875C9.47917 5.09583 9.71667 5 10 5H20C20.2833 5 20.5208 5.09583 20.7125 5.2875C20.9042 5.47917 21 5.71667 21 6C21 6.28333 20.9042 6.52083 20.7125 6.7125C20.5208 6.90417 20.2833 7 20 7H10Z",fill:"currentColor"},null,-1)),w$4$1=vue.defineComponent({__name:"ListOrderedIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon list-ordered-icon","data-testid":"kui-icon-wrapper-list-ordered-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-list-ordered-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$6$1,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),b$5$1],8,v$5$1))]),_:1},8,["aria-hidden","style"]))}}),e$2$1=s$1$1(w$4$1,[["__scopeId","data-v-524da136"]]),v$4$1=Ea=>(vue.pushScopeId("data-v-0e1daaec"),Ea=Ea(),vue.popScopeId(),Ea),N$5$1=["aria-hidden"],b$4$1={key:0,"data-testid":"kui-icon-svg-title"},z$1$1=v$4$1(()=>vue.createElementVNode("path",{d:"M10 19C9.71667 19 9.47917 18.9042 9.2875 18.7125C9.09583 18.5208 9 18.2833 9 18C9 17.7167 9.09583 17.4792 9.2875 17.2875C9.47917 17.0958 9.71667 17 10 17H20C20.2833 17 20.5208 17.0958 20.7125 17.2875C20.9042 17.4792 21 17.7167 21 18C21 18.2833 20.9042 18.5208 20.7125 18.7125C20.5208 18.9042 20.2833 19 20 19H10ZM10 13C9.71667 13 9.47917 12.9042 9.2875 12.7125C9.09583 12.5208 9 12.2833 9 12C9 11.7167 9.09583 11.4792 9.2875 11.2875C9.47917 11.0958 9.71667 11 10 11H20C20.2833 11 20.5208 11.0958 20.7125 11.2875C20.9042 11.4792 21 11.7167 21 12C21 12.2833 20.9042 12.5208 20.7125 12.7125C20.5208 12.9042 20.2833 13 20 13H10ZM10 7C9.71667 7 9.47917 6.90417 9.2875 6.7125C9.09583 6.52083 9 6.28333 9 6C9 5.71667 9.09583 5.47917 9.2875 5.2875C9.47917 5.09583 9.71667 5 10 5H20C20.2833 5 20.5208 5.09583 20.7125 5.2875C20.9042 5.47917 21 5.71667 21 6C21 6.28333 20.9042 6.52083 20.7125 6.7125C20.5208 6.90417 20.2833 7 20 7H10ZM5 20C4.45 20 3.97917 19.8042 3.5875 19.4125C3.19583 19.0208 3 18.55 3 18C3 17.45 3.19583 16.9792 3.5875 16.5875C3.97917 16.1958 4.45 16 5 16C5.55 16 6.02083 16.1958 6.4125 16.5875C6.80417 16.9792 7 17.45 7 18C7 18.55 6.80417 19.0208 6.4125 19.4125C6.02083 19.8042 5.55 20 5 20ZM5 14C4.45 14 3.97917 13.8042 3.5875 13.4125C3.19583 13.0208 3 12.55 3 12C3 11.45 3.19583 10.9792 3.5875 10.5875C3.97917 10.1958 4.45 10 5 10C5.55 10 6.02083 10.1958 6.4125 10.5875C6.80417 10.9792 7 11.45 7 12C7 12.55 6.80417 13.0208 6.4125 13.4125C6.02083 13.8042 5.55 14 5 14ZM5 8C4.45 8 3.97917 7.80417 3.5875 7.4125C3.19583 7.02083 3 6.55 3 6C3 5.45 3.19583 4.97917 3.5875 4.5875C3.97917 4.19583 4.45 4 5 4C5.55 4 6.02083 4.19583 6.4125 4.5875C6.80417 4.97917 7 5.45 7 6C7 6.55 6.80417 7.02083 6.4125 7.4125C6.02083 7.80417 5.55 8 5 8Z",fill:"currentColor"},null,-1)),k$3$1=vue.defineComponent({__name:"ListUnorderedIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon list-unordered-icon","data-testid":"kui-icon-wrapper-list-unordered-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-list-unordered-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",b$4$1,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),z$1$1],8,N$5$1))]),_:1},8,["aria-hidden","style"]))}}),c$1$1=s$1$1(k$3$1,[["__scopeId","data-v-0e1daaec"]]),v$3$1=Ea=>(vue.pushScopeId("data-v-e169f874"),Ea=Ea(),vue.popScopeId(),Ea),w$3$1=["aria-hidden"],N$4$1={key:0,"data-testid":"kui-icon-svg-title"},b$3$1=v$3$1(()=>vue.createElementVNode("path",{d:"M16 15L19 12L17.95 10.925L16.75 12.125V9H15.25V12.125L14.05 10.925L13 12L16 15ZM4 20C3.45 20 2.97917 19.8042 2.5875 19.4125C2.19583 19.0208 2 18.55 2 18V6C2 5.45 2.19583 4.97917 2.5875 4.5875C2.97917 4.19583 3.45 4 4 4H20C20.55 4 21.0208 4.19583 21.4125 4.5875C21.8042 4.97917 22 5.45 22 6V18C22 18.55 21.8042 19.0208 21.4125 19.4125C21.0208 19.8042 20.55 20 20 20H4ZM4 18H20V6H4V18ZM5.5 15H7V10.5H8V13.5H9.5V10.5H10.5V15H12V10C12 9.71667 11.9042 9.47917 11.7125 9.2875C11.5208 9.09583 11.2833 9 11 9H6.5C6.21667 9 5.97917 9.09583 5.7875 9.2875C5.59583 9.47917 5.5 9.71667 5.5 10V15Z",fill:"currentColor"},null,-1)),H$1$1=vue.defineComponent({__name:"MarkdownIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon markdown-icon","data-testid":"kui-icon-wrapper-markdown-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-markdown-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$4$1,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),b$3$1],8,w$3$1))]),_:1},8,["aria-hidden","style"]))}}),m$2$1=s$1$1(H$1$1,[["__scopeId","data-v-e169f874"]]),v$2$1=Ea=>(vue.pushScopeId("data-v-073b5f41"),Ea=Ea(),vue.popScopeId(),Ea),b$2$1=["aria-hidden"],N$3$1={key:0,"data-testid":"kui-icon-svg-title"},k$2$1=v$2$1(()=>vue.createElementVNode("path",{d:"M12.15 20C10.8833 20 9.75833 19.625 8.775 18.875C7.79167 18.125 7.08333 17.1 6.65 15.8L8.85 14.85C9.08333 15.65 9.4875 16.3083 10.0625 16.825C10.6375 17.3417 11.35 17.6 12.2 17.6C12.9 17.6 13.5333 17.4333 14.1 17.1C14.6667 16.7667 14.95 16.2333 14.95 15.5C14.95 15.2 14.8917 14.925 14.775 14.675C14.6583 14.425 14.5 14.2 14.3 14H17.1C17.1833 14.2333 17.2458 14.4708 17.2875 14.7125C17.3292 14.9542 17.35 15.2167 17.35 15.5C17.35 16.9333 16.8375 18.0417 15.8125 18.825C14.7875 19.6083 13.5667 20 12.15 20ZM2 12V10H22V12H2ZM12.05 3.85C13.15 3.85 14.1125 4.12083 14.9375 4.6625C15.7625 5.20417 16.4 6.03333 16.85 7.15L14.65 8.125C14.5 7.64167 14.2208 7.20833 13.8125 6.825C13.4042 6.44167 12.8333 6.25 12.1 6.25C11.4167 6.25 10.85 6.40417 10.4 6.7125C9.95 7.02083 9.7 7.45 9.65 8H7.25C7.28333 6.85 7.7375 5.87083 8.6125 5.0625C9.4875 4.25417 10.6333 3.85 12.05 3.85Z",fill:"currentColor"},null,-1)),w$2$1=vue.defineComponent({__name:"StrikethroughIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon strikethrough-icon","data-testid":"kui-icon-wrapper-strikethrough-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-strikethrough-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$3$1,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),k$2$1],8,b$2$1))]),_:1},8,["aria-hidden","style"]))}}),p$2$1=s$1$1(w$2$1,[["__scopeId","data-v-073b5f41"]]),H$c=Ea=>(vue.pushScopeId("data-v-93ff4e21"),Ea=Ea(),vue.popScopeId(),Ea),v$1$1=["aria-hidden"],V$e={key:0,"data-testid":"kui-icon-svg-title"},N$2$1=H$c(()=>vue.createElementVNode("path",{d:"M3 21V3H21V21H3ZM5 9H19V5H5V9ZM10.325 14H13.675V11H10.325V14ZM10.325 19H13.675V16H10.325V19ZM5 14H8.325V11H5V14ZM15.675 14H19V11H15.675V14ZM5 19H8.325V16H5V19ZM15.675 19H19V16H15.675V19Z",fill:"currentColor"},null,-1)),w$1$1=vue.defineComponent({__name:"TableIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon table-icon","data-testid":"kui-icon-wrapper-table-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-table-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",V$e,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),N$2$1],8,v$1$1))]),_:1},8,["aria-hidden","style"]))}}),e$1$1=s$1$1(w$1$1,[["__scopeId","data-v-93ff4e21"]]),v$d=Ea=>(vue.pushScopeId("data-v-14a3d14a"),Ea=Ea(),vue.popScopeId(),Ea),N$1$1=["aria-hidden"],b$1$1={key:0,"data-testid":"kui-icon-svg-title"},k$1$1=v$d(()=>vue.createElementVNode("path",{d:"M5.52499 16.175L9.07499 12.625C9.27499 12.425 9.50832 12.3292 9.77499 12.3375C10.0417 12.3458 10.275 12.45 10.475 12.65C10.6583 12.85 10.75 13.0833 10.75 13.35C10.75 13.6167 10.6583 13.85 10.475 14.05L6.24999 18.3C6.04999 18.5 5.81665 18.6 5.54999 18.6C5.28332 18.6 5.04999 18.5 4.84999 18.3L2.69999 16.15C2.51665 15.9667 2.42499 15.7333 2.42499 15.45C2.42499 15.1667 2.51665 14.9333 2.69999 14.75C2.88332 14.5667 3.11665 14.475 3.39999 14.475C3.68332 14.475 3.91665 14.5667 4.09999 14.75L5.52499 16.175ZM5.52499 8.175L9.07499 4.625C9.27499 4.425 9.50832 4.32917 9.77499 4.3375C10.0417 4.34583 10.275 4.45 10.475 4.65C10.6583 4.85 10.75 5.08333 10.75 5.35C10.75 5.61667 10.6583 5.85 10.475 6.05L6.24999 10.3C6.04999 10.5 5.81665 10.6 5.54999 10.6C5.28332 10.6 5.04999 10.5 4.84999 10.3L2.69999 8.15C2.51665 7.96667 2.42499 7.73333 2.42499 7.45C2.42499 7.16667 2.51665 6.93333 2.69999 6.75C2.88332 6.56667 3.11665 6.475 3.39999 6.475C3.68332 6.475 3.91665 6.56667 4.09999 6.75L5.52499 8.175ZM14 17C13.7167 17 13.4792 16.9042 13.2875 16.7125C13.0958 16.5208 13 16.2833 13 16C13 15.7167 13.0958 15.4792 13.2875 15.2875C13.4792 15.0958 13.7167 15 14 15H21C21.2833 15 21.5208 15.0958 21.7125 15.2875C21.9042 15.4792 22 15.7167 22 16C22 16.2833 21.9042 16.5208 21.7125 16.7125C21.5208 16.9042 21.2833 17 21 17H14ZM14 9C13.7167 9 13.4792 8.90417 13.2875 8.7125C13.0958 8.52083 13 8.28333 13 8C13 7.71667 13.0958 7.47917 13.2875 7.2875C13.4792 7.09583 13.7167 7 14 7H21C21.2833 7 21.5208 7.09583 21.7125 7.2875C21.9042 7.47917 22 7.71667 22 8C22 8.28333 21.9042 8.52083 21.7125 8.7125C21.5208 8.90417 21.2833 9 21 9H14Z",fill:"currentColor"},null,-1)),w$7=vue.defineComponent({__name:"TasklistIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon tasklist-icon","data-testid":"kui-icon-wrapper-tasklist-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-tasklist-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",b$1$1,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),k$1$1],8,N$1$1))]),_:1},8,["aria-hidden","style"]))}}),m$1$1=s$1$1(w$7,[["__scopeId","data-v-14a3d14a"]]),b$g=Ea=>(vue.pushScopeId("data-v-b7362aab"),Ea=Ea(),vue.popScopeId(),Ea),C$c=["aria-hidden"],N$j={key:0,"data-testid":"kui-icon-svg-title"},z$b=b$g(()=>vue.createElementVNode("path",{d:"M4.5 21.25V19.25H18.5V21.25H4.5ZM11.5 17.25C9.81667 17.25 8.50833 16.725 7.575 15.675C6.64167 14.625 6.175 13.2333 6.175 11.5V3.25H8.75V11.65C8.75 12.5833 8.98333 13.3417 9.45 13.925C9.91667 14.5083 10.6 14.8 11.5 14.8C12.4 14.8 13.0833 14.5083 13.55 13.925C14.0167 13.3417 14.25 12.5833 14.25 11.65V3.25H16.825V11.5C16.825 13.2333 16.3583 14.625 15.425 15.675C14.4917 16.725 13.1833 17.25 11.5 17.25Z",fill:"currentColor"},null,-1)),k$b=vue.defineComponent({__name:"UnderlineIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$3$1,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$3$1}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon underline-icon","data-testid":"kui-icon-wrapper-underline-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-underline-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$j,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),z$b],8,C$c))]),_:1},8,["aria-hidden","style"]))}}),m$7=s$1$1(k$b,[["__scopeId","data-v-b7362aab"]]);for(var byteToHex=[],i$4=0;i$4<256;++i$4)byteToHex.push((i$4+256).toString(16).slice(1));function unsafeStringify(Ea,Ua=0){return(byteToHex[Ea[Ua+0]]+byteToHex[Ea[Ua+1]]+byteToHex[Ea[Ua+2]]+byteToHex[Ea[Ua+3]]+"-"+byteToHex[Ea[Ua+4]]+byteToHex[Ea[Ua+5]]+"-"+byteToHex[Ea[Ua+6]]+byteToHex[Ea[Ua+7]]+"-"+byteToHex[Ea[Ua+8]]+byteToHex[Ea[Ua+9]]+"-"+byteToHex[Ea[Ua+10]]+byteToHex[Ea[Ua+11]]+byteToHex[Ea[Ua+12]]+byteToHex[Ea[Ua+13]]+byteToHex[Ea[Ua+14]]+byteToHex[Ea[Ua+15]]).toLowerCase()}var getRandomValues,rnds8=new Uint8Array(16);function rng(){if(!getRandomValues&&(getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!getRandomValues))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return getRandomValues(rnds8)}var randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const native={randomUUID};function v4(Ea,Ua,aA){if(native.randomUUID&&!Ua&&!Ea)return native.randomUUID();Ea=Ea||{};var iA=Ea.random||(Ea.rng||rng)();return iA[6]=iA[6]&15|64,iA[8]=iA[8]&63|128,unsafeStringify(iA)}const _withScopeId$1$1=Ea=>(vue.pushScopeId("data-v-51dfbc77"),Ea=Ea(),vue.popScopeId(),Ea),_hoisted_1$2$1={class:"toolbar-left"},_hoisted_2$1$1={class:"button-group",role:"radiogroup"},_hoisted_3$1$1=["id"],_hoisted_4$1$1=_withScopeId$1$1(()=>vue.createElementVNode("div",{class:"toolbar-divider"},null,-1)),_hoisted_5$1$1=_withScopeId$1$1(()=>vue.createElementVNode("div",{class:"toolbar-divider"},null,-1)),_hoisted_6$1$1={key:2,class:"toolbar-right","data-testid":"slot-toolbar-right"},_hoisted_7$1$1={key:3,class:"editor-actions","data-testid":"slot-editor-actions"},_sfc_main$2$1=vue.defineComponent({__name:"MarkdownToolbar",emits:["format-selection","insert-template","change-mode","toggle-html-preview","toggle-fullscreen"],setup(Ea,{emit:Ua}){vue.useCssVars(FA=>({"4cb247c0":vue.unref(TOOLBAR_HEIGHT)}));const aA=vue.inject(UNIQUE_ID_INJECTION_KEY,vue.ref(v4())),iA=vue.inject(MODE_INJECTION_KEY,vue.ref("read")),AA=vue.inject(EDITABLE_INJECTION_KEY,vue.ref(!1)),sA=vue.inject(THEME_INJECTION_KEY,vue.ref("light")),oA=vue.inject(FULLSCREEN_INJECTION_KEY,vue.ref(!1)),dA=vue.inject(HTML_PREVIEW_INJECTION_KEY,vue.ref(!1)),gA=Ua,hA=vue.ref(null),{arrivedState:fA}=useScroll(hA),wA=useMediaQuery(`(min-width: ${KUI_BREAKPOINT_PHABLET})`),CA=()=>{iA.value==="split"&&!wA.value&&_A("edit")};vue.watch(wA,()=>{CA()});const _A=FA=>{iA.value!==FA&&gA("change-mode",FA)},BA=FA=>{var NA;gA("toggle-fullscreen"),(NA=FA==null?void 0:FA.target)==null||NA.blur()},IA=FA=>{var NA;gA("toggle-html-preview"),(NA=FA==null?void 0:FA.target)==null||NA.blur()},$A=[{label:"Bold",action:"bold",keys:["B"],icon:m$5$1},{label:"Italic",action:"italic",keys:["I"],icon:c$2$1},{label:"Underline",action:"underline",keys:["U"],icon:m$7},{label:"Strikethrough",action:"strikethrough",keys:["Shift","X"],icon:p$2$1},{label:"Code",action:"code",keys:["Shift","C"],icon:p$5$1},{label:"Link",action:"link",icon:p$3$1},{label:"Image",action:"image",icon:r$1$1}],DA=[{label:"Unordered List",action:"unordered-list",icon:c$1$1},{label:"Ordered List",action:"ordered-list",icon:e$2$1},{label:"Tasklist",action:"task",icon:m$1$1},{label:"Codeblock",action:"codeblock",icon:p$4$1},{label:"Table",action:"table",icon:e$1$1},{label:"Blockquote",action:"blockquote",icon:m$6}];return vue.onMounted(()=>{CA()}),(FA,NA)=>vue.unref(AA)&&vue.unref(iA)!=="read"?(vue.openBlock(),vue.createElementBlock("div",{key:0,ref_key:"toolbar",ref:hA,class:vue.normalizeClass(["markdown-ui-toolbar",`theme-${vue.unref(sA)}`]),"data-testid":"toolbar"},[vue.unref(AA)?(vue.openBlock(),vue.createElementBlock("div",{key:0,class:vue.normalizeClass(["toolbar-overlay left",{"overlay-visible":!vue.unref(fA).left}])},null,2)):vue.createCommentVNode("",!0),vue.unref(AA)?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["toolbar-overlay right",{"overlay-visible":!vue.unref(fA).right}])},null,2)):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_1$2$1,[vue.createElementVNode("div",_hoisted_2$1$1,[vue.createElementVNode("label",{id:`editor-mode-options-${vue.unref(aA)}`,class:"sr-only"}," Select the editor mode ",8,_hoisted_3$1$1),vue.createVNode(ToolbarButton,{"aria-checked":vue.unref(iA)==="edit","aria-labelledby":`editor-mode-options-${vue.unref(aA)}`,class:vue.normalizeClass(["edit",{active:vue.unref(iA)==="edit"}]),"data-testid":"edit-mode-button",disabled:vue.unref(iA)==="edit",icon:!1,role:"radio",type:"button",onClick:NA[0]||(NA[0]=vue.withModifiers(TA=>_A("edit"),["prevent"]))},{default:vue.withCtx(()=>[vue.createTextVNode(" Edit ")]),_:1},8,["aria-checked","aria-labelledby","class","disabled"]),vue.createVNode(ToolbarButton,{"aria-checked":vue.unref(iA)==="split","aria-labelledby":`editor-mode-options-${vue.unref(aA)}`,class:vue.normalizeClass(["mode-split-button",["split",{active:vue.unref(iA)==="split"}]]),"data-testid":"split-mode-button",disabled:vue.unref(iA)==="split",icon:!1,role:"radio",type:"button",onClick:NA[1]||(NA[1]=vue.withModifiers(TA=>_A("split"),["prevent"]))},{default:vue.withCtx(()=>[vue.createTextVNode(" Split ")]),_:1},8,["aria-checked","aria-labelledby","class","disabled"]),vue.createVNode(ToolbarButton,{"aria-checked":vue.unref(iA)==="preview","aria-labelledby":`editor-mode-options-${vue.unref(aA)}`,class:vue.normalizeClass(["preview",{active:vue.unref(iA)==="preview"}]),"data-testid":"preview-mode-button",disabled:vue.unref(iA)==="preview",icon:!1,role:"radio",type:"button",onClick:NA[2]||(NA[2]=vue.withModifiers(TA=>_A("preview"),["prevent"]))},{default:vue.withCtx(()=>[vue.createTextVNode(" Preview ")]),_:1},8,["aria-checked","aria-labelledby","class","disabled"])]),vue.unref(AA)&&!["preview","read"].includes(vue.unref(iA))?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList($A,TA=>vue.createVNode(InfoTooltip,{key:TA.label,"data-testid":`tooltip-${TA.action}`,"text-old":TA.label},{tooltip:vue.withCtx(()=>[vue.createVNode(TooltipShortcut,{keys:TA.keys,text:TA.label},null,8,["keys","text"])]),default:vue.withCtx(()=>[vue.createVNode(ToolbarButton,{"aria-label":TA.label,"data-testid":`format-option-${TA.action}`,onClick:vue.withModifiers(PA=>gA("format-selection",TA.action),["prevent"])},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(TA.icon),{class:"button-icon",size:vue.unref(KUI_ICON_SIZE_40)},null,8,["size"]))]),_:2},1032,["aria-label","data-testid","onClick"])]),_:2},1032,["data-testid","text-old"])),64)),_hoisted_4$1$1,(vue.openBlock(),vue.createElementBlock(vue.Fragment,null,vue.renderList(DA,TA=>vue.createVNode(InfoTooltip,{key:TA.label,"data-testid":`tooltip-${TA.action}`},{tooltip:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(TA.label),1)]),default:vue.withCtx(()=>[vue.createVNode(ToolbarButton,{"aria-label":TA.label,"data-testid":`template-option-${TA.action}`,onClick:vue.withModifiers(PA=>gA("insert-template",TA.action),["prevent"])},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(TA.icon),{class:"button-icon",size:vue.unref(KUI_ICON_SIZE_40)},null,8,["size"]))]),_:2},1032,["aria-label","data-testid","onClick"])]),_:2},1032,["data-testid"])),64))],64)):vue.createCommentVNode("",!0),_hoisted_5$1$1,vue.createVNode(InfoTooltip,{"data-testid":"tooltip-fullscreen"},{tooltip:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(oA)?"Exit Fullscreen":"Enter Fullscreen"),1)]),default:vue.withCtx(()=>[vue.createVNode(ToolbarButton,{"aria-label":vue.unref(oA)?"Exit Fullscreen":"Enter Fullscreen","data-testid":"toggle-fullscreen",onClick:vue.withModifiers(BA,["prevent"])},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(oA)?vue.unref(m$4$1):vue.unref(d$1$1)),{class:"button-icon",size:vue.unref(KUI_ICON_SIZE_40)},null,8,["size"]))]),_:1},8,["aria-label"])]),_:1}),["split","preview"].includes(vue.unref(iA))?(vue.openBlock(),vue.createBlock(InfoTooltip,{key:1,"data-testid":"tooltip-fullscreen"},{tooltip:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(dA)?"Toggle markdown Preview":"Toggle HTML Preview"),1)]),default:vue.withCtx(()=>[vue.createVNode(ToolbarButton,{"aria-label":vue.unref(dA)?"Toggle markdown Preview":"Toggle HTML Preview","data-testid":"toggle-html-preview",onClick:vue.withModifiers(IA,["prevent"])},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(vue.unref(dA)?vue.unref(m$2$1):vue.unref(_$6)),{class:"button-icon",size:vue.unref(KUI_ICON_SIZE_40)},null,8,["size"]))]),_:1},8,["aria-label"])]),_:1})):vue.createCommentVNode("",!0)]),FA.$slots["toolbar-right"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$1$1,[vue.renderSlot(FA.$slots,"toolbar-right",{},void 0,!0)])):vue.createCommentVNode("",!0),FA.$slots["editor-actions"]?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$1$1,[vue.renderSlot(FA.$slots,"editor-actions",{},void 0,!0)])):vue.createCommentVNode("",!0)],2)):vue.createCommentVNode("",!0)}}),MarkdownToolbar=_export_sfc$1(_sfc_main$2$1,[["__scopeId","data-v-51dfbc77"]]),_hoisted_1$1$1=["innerHTML"],_sfc_main$1$1=vue.defineComponent({__name:"MarkdownContent",props:{content:{type:String,default:""}},setup(Ea){const Ua=vue.inject(MODE_INJECTION_KEY,vue.ref("read")),aA=vue.inject(THEME_INJECTION_KEY,vue.ref("light")),iA=Ea,AA=vue.ref(iA.content);return vue.watch(()=>iA.content,sA=>{AA.value=sA},{immediate:!0}),(sA,oA)=>(vue.openBlock(),vue.createElementBlock("div",{class:vue.normalizeClass(["markdown-content",[`mode-${vue.unref(Ua)}`,`theme-${vue.unref(aA)}`]]),"data-testid":"markdown-content",innerHTML:AA.value},null,10,_hoisted_1$1$1))}}),MarkdownContent=_export_sfc$1(_sfc_main$1$1,[["__scopeId","data-v-eac4c7eb"]]);function useDebounce(){return{debounce:(Ea,Ua)=>{let aA;return(...iA)=>{clearTimeout(aA),aA=window==null?void 0:window.setTimeout(()=>{Ea(...iA)},Ua)}}}}function useMarkdownActions(Ea,Ua){const aA=vue.reactive({start:0,end:0,text:""}),iA=()=>{if(!Ea.value)throw new Error("getTextarea: Could not find the textarea template ref");return Ea.value},AA=()=>{try{const wA=iA();if(!wA)return;aA.start=wA.selectionStart||0,aA.end=wA.selectionEnd||0,aA.text=wA.value.substring(wA.selectionStart,wA.selectionEnd)||""}catch(wA){console.warn("getTextSelection",wA),aA.start=0,aA.end=0,aA.text=""}},sA=async()=>{const wA=iA();wA&&(wA.focus(),await vue.nextTick())},oA=async wA=>{try{const CA=iA();let _A="";switch(wA){case"bold":_A=InlineFormatWrapper.bold;break;case"italic":_A=InlineFormatWrapper.italic;break;case"underline":_A=InlineFormatWrapper.underline;break;case"strikethrough":_A=InlineFormatWrapper.strikethrough;break;case"subscript":_A=InlineFormatWrapper.subscript;break;case"superscript":_A=InlineFormatWrapper.superscript;break;case"mark":_A=InlineFormatWrapper.mark;break;case"code":_A=InlineFormatWrapper.code;break}if(!CA||!_A)return;AA();const BA=_A.length,IA=Ua.value.substring(0,aA.start),$A=Ua.value.substring(aA.end);if(aA.text.length===0)if(IA.endsWith(_A)&&$A.startsWith(_A)){Ua.value=IA.substring(0,IA.length-BA)+$A.substring(BA),await sA(),CA.selectionEnd=aA.start-BA;return}else{Ua.value=Ua.value.substring(0,aA.start)+_A+_A+Ua.value.substring(aA.end),await sA(),CA.selectionEnd=aA.start+BA;return}let DA=!1;const FA=aA.text.startsWith(_A)&&aA.text.endsWith(_A),NA=IA.endsWith(_A)&&$A.startsWith(_A);(FA||NA)&&(DA=!0);let TA=aA.text;DA?DA&&FA&&(TA=aA.text.slice(BA,-BA)):TA=_A+aA.text+_A,DA&&NA?Ua.value=Ua.value.substring(0,aA.start-BA)+TA+Ua.value.substring(aA.end+BA):Ua.value=Ua.value.substring(0,aA.start)+TA+Ua.value.substring(aA.end),await sA(),DA?DA&&FA?CA.setSelectionRange(aA.start,aA.end-BA*2):DA&&NA&&CA.setSelectionRange(aA.start-BA,aA.end-BA):CA.setSelectionRange(aA.start,aA.end+BA*2)}catch(CA){console.warn("toggleInlineFormatting",CA)}},dA=async(wA,CA)=>{try{const _A=iA();if(!_A)return;AA();let BA="";Array.from(Array(CA).keys()).forEach(()=>BA+=" ");let IA=0;const $A=Ua.value.substring(0,aA.start);if(wA==="remove"&&!$A.endsWith(BA)&&!$A.endsWith(" "+MARKDOWN_TEMPLATE_UL)&&!/ {2}\d{1,}\. $/.test($A))return;if(aA.text.length!==0)IA=(aA.text.match(/\n(?!\n)/g)||[]).length,wA==="add"?Ua.value=$A+BA+aA.text.replace(/\n(?!\n)/g,`${NEW_LINE_CHARACTER}${BA}`)+Ua.value.substring(aA.end):Ua.value=Ua.value.substring(0,aA.start-BA.length)+aA.text.replaceAll(`${NEW_LINE_CHARACTER}${BA}`,NEW_LINE_CHARACTER)+Ua.value.substring(aA.end);else if($A.endsWith(MARKDOWN_TEMPLATE_UL))Ua.value=wA==="add"?Ua.value.substring(0,aA.start-MARKDOWN_TEMPLATE_UL.length)+BA+MARKDOWN_TEMPLATE_UL+Ua.value.substring(aA.end):Ua.value.substring(0,aA.start-BA.length-MARKDOWN_TEMPLATE_UL.length)+MARKDOWN_TEMPLATE_UL+Ua.value.substring(aA.end);else if(/\d{1,}\. $/.test($A.split(NEW_LINE_CHARACTER).pop()||"")){const DA=MARKDOWN_TEMPLATE_OL.replace("1",""),FA=Number(($A.split(NEW_LINE_CHARACTER).at(-2)||$A.split(NEW_LINE_CHARACTER).pop()||"").trimStart().split(DA)[0])+1;Ua.value=wA==="add"?Ua.value.substring(0,aA.start-MARKDOWN_TEMPLATE_OL.length)+BA+MARKDOWN_TEMPLATE_OL+Ua.value.substring(aA.end):Ua.value.substring(0,aA.start-BA.length-(FA+DA).length)+(FA+DA)+Ua.value.substring(aA.end)}else Ua.value=wA==="add"?$A+BA+Ua.value.substring(aA.end):Ua.value.substring(0,aA.start-BA.length)+Ua.value.substring(aA.end);if(await sA(),aA.text.length!==0){const DA=CA+IA*CA;_A.selectionStart=wA==="add"?aA.start+BA.length:aA.start-BA.length,_A.selectionEnd=wA==="add"?aA.end+DA:aA.end-DA}else _A.selectionEnd=wA==="add"?aA.start+BA.length:aA.start-BA.length}catch(_A){console.warn("toggleTab",_A)}},gA=(wA,CA)=>{var _A,BA;return CA===MARKDOWN_TEMPLATE_OL?/^\d{1,}\. /.test(String(((_A=wA==null?void 0:wA.split(NEW_LINE_CHARACTER))==null?void 0:_A.pop())||"")):String(((BA=wA==null?void 0:wA.split(NEW_LINE_CHARACTER))==null?void 0:BA.pop())||"").endsWith(CA)},hA=async wA=>{try{const CA=iA();if(!CA||!wA||(AA(),aA.text.length!==0))return;const _A=Ua.value.substring(0,aA.start),BA=_A.length===0||_A.endsWith(`${NEW_LINE_CHARACTER}${NEW_LINE_CHARACTER}`)?"":/(.*)?[^\n]$/.test(_A)?`${NEW_LINE_CHARACTER}${NEW_LINE_CHARACTER}`:NEW_LINE_CHARACTER;let IA="";switch(wA){case"task":if(gA(_A,MARKDOWN_TEMPLATE_TASK)){await sA();return}IA=BA+MARKDOWN_TEMPLATE_TASK;break;case"unordered-list":if(gA(_A,MARKDOWN_TEMPLATE_UL)){await sA();return}IA=BA+MARKDOWN_TEMPLATE_UL;break;case"ordered-list":if(gA(_A,MARKDOWN_TEMPLATE_OL)){await sA();return}IA=BA+MARKDOWN_TEMPLATE_OL;break;case"blockquote":if(gA(_A,MARKDOWN_TEMPLATE_BLOCKQUOTE)){await sA();return}IA=BA+MARKDOWN_TEMPLATE_BLOCKQUOTE;break;case"codeblock":IA=BA+MARKDOWN_TEMPLATE_CODEBLOCK;break;case"table":IA=BA+MARKDOWN_TEMPLATE_TABLE;break}if(!IA)return;switch(Ua.value=_A+IA+Ua.value.substring(aA.end),await sA(),wA){case"codeblock":CA.selectionStart=aA.start+(BA.length+3),CA.selectionEnd=aA.start+(BA.length+3)+DEFAULT_CODEBLOCK_LANGUAGE.length;break;default:CA.selectionEnd=aA.start+IA.length;break}}catch(CA){console.warn("insertMarkdownTemplate",CA)}},fA=(wA,CA)=>{iA().setSelectionRange(wA,CA)};return{selectedText:aA,getTextSelection:AA,toggleInlineFormatting:oA,toggleTab:dA,insertMarkdownTemplate:hA,insertLink:async()=>{try{const wA=iA();if(!wA)return;AA();const CA=Ua.value.substring(0,aA.start),_A=Ua.value.substring(aA.end);let BA="";const IA=3,$A=4;if(aA.text.length!==0){if(aA.text==="url"&&CA.endsWith("(")&&_A.startsWith(")")){await sA();return}const DA=/^http(s)?:\/\//.test(aA.text);BA=DA?MARKDOWN_TEMPLATE_LINK.replace(/url/,aA.text):MARKDOWN_TEMPLATE_LINK.replace(/text/,aA.text),Ua.value=CA+BA+_A,await sA(),DA?wA.selectionEnd=aA.start+1:(wA.selectionStart=CA.length+aA.text.length+3,wA.selectionEnd=CA.length+aA.text.length+6),fA(wA.selectionStart,wA.selectionStart+(DA?$A:IA))}else{if(CA.endsWith(MARKDOWN_TEMPLATE_LINK.split("text")[0])&&/^\]\((.*)+\)/.test(_A)){await sA();return}BA=MARKDOWN_TEMPLATE_LINK;let DA=7;/\w+$/.test(CA)?(BA=" "+BA,DA++):/^\w+/.test(_A)&&(BA+=" "),Ua.value=CA+BA+_A,await sA(),wA.selectionEnd=aA.start+DA,fA(wA.selectionEnd,wA.selectionEnd+IA)}}catch(wA){console.warn("insertLink",wA)}},insertNewLine:async()=>{var wA;try{const CA=iA();if(!CA)return;AA();const _A=Ua.value.substring(0,aA.start),BA=((wA=_A==null?void 0:_A.split(NEW_LINE_CHARACTER))==null?void 0:wA.pop())||"";let IA=NEW_LINE_CHARACTER,$A=!1,DA=0;const FA=[MARKDOWN_TEMPLATE_TASK,MARKDOWN_TEMPLATE_UL,MARKDOWN_TEMPLATE_OL,MARKDOWN_TEMPLATE_BLOCKQUOTE];for(const TA of FA)if(TA===MARKDOWN_TEMPLATE_OL){if(/^\d{1,}\. /.test(BA.trimStart())){const PA=MARKDOWN_TEMPLATE_OL.replace("1",""),HA=Number(BA.trimStart().split(PA)[0]);if(!isNaN(HA)&&HA>0){const RA=HA+1;DA=String(RA+PA).length,/^\d{1,}\. $/.test(BA.trimStart())?$A=!0:IA+=BA.split(HA+PA)[0]+RA+PA}break}}else{const PA=TA===MARKDOWN_TEMPLATE_TASK&&BA.trimStart().toLowerCase().startsWith(MARKDOWN_TEMPLATE_TASK_COMPLETED.toLowerCase());if(BA.trimStart().startsWith(TA)||PA){DA=TA.length,BA.trimStart()===TA?$A=!0:PA?IA+=BA.toLowerCase().split(MARKDOWN_TEMPLATE_TASK_COMPLETED.toLowerCase())[0]+TA:IA+=BA.split(TA)[0]+TA;break}}let NA="";IA===NEW_LINE_CHARACTER&&Array.from(Array(BA.length-BA.trimStart().length).keys()).forEach(()=>NA+=" "),Ua.value=$A?Ua.value.substring(0,aA.start-BA.length)+Ua.value.substring(aA.end):_A+IA+NA+Ua.value.substring(aA.end),await sA(),CA.selectionEnd=$A?aA.start-DA:aA.start+IA.length+NA.length}catch(CA){console.warn("insertNewLine",CA)}},insertImage:async()=>{try{const wA=iA();if(!wA)return;AA();const CA=Ua.value.substring(0,aA.start),_A=Ua.value.substring(aA.end);let BA="";const IA=3,$A=3;if(aA.text.length!==0){if(aA.text==="url"&&CA.endsWith("(")&&_A.startsWith(")")){await sA();return}const DA=/^http(s)?:\/\//.test(aA.text);BA=DA?MARKDOWN_TEMPLATE_IMAGE.replace(/url/,aA.text):MARKDOWN_TEMPLATE_IMAGE.replace(/alt/,aA.text),Ua.value=CA+BA+_A,await sA(),DA?wA.selectionEnd=aA.start+2:(wA.selectionStart=CA.length+aA.text.length+4,wA.selectionEnd=CA.length+aA.text.length+7),fA(wA.selectionStart,wA.selectionStart+$A)}else{if(CA.endsWith(MARKDOWN_TEMPLATE_IMAGE.split("alt")[0])&&/^\]\((.*)+\)/.test(_A)){await sA();return}BA=MARKDOWN_TEMPLATE_IMAGE;let DA=7;/\w+$/.test(CA)?(BA=" "+BA,DA++):/^\w+/.test(_A)&&(BA+=" "),Ua.value=CA+BA+_A,await sA(),wA.selectionEnd=aA.start+DA,fA(wA.selectionEnd,wA.selectionEnd+IA)}}catch(wA){console.warn("insertImage",wA)}}}}function useKeyboardShortcuts(Ea,Ua,aA,iA){const AA=useActiveElement(),sA=vue.computed(()=>{var CA,_A,BA;return!!((CA=AA.value)!=null&&CA.id)&&((_A=AA.value)==null?void 0:_A.id)===((BA=Ea.value)==null?void 0:BA.id)}),{toggleInlineFormatting:oA,insertNewLine:dA,getTextSelection:gA,selectedText:hA,toggleTab:fA}=useMarkdownActions(Ea,Ua),wA=CA=>{let _A;switch(CA.key){case"b":_A="bold";break;case"i":_A="italic";break;case"u":_A="underline";break;case"x":CA.shiftKey&&(_A="strikethrough");break;case"c":CA.shiftKey&&(_A="code");break}return _A};useMagicKeys({passive:!1,onEventFired(CA){if(!(!sA.value||CA.type!=="keydown")){if(CA.key&&(CA.ctrlKey||CA.metaKey)){const _A=wA(CA);_A&&(CA.preventDefault(),oA(_A),iA())}CA.key&&CA.key==="Enter"&&!CA.shiftKey&&(CA.preventDefault(),dA(),iA()),CA.key&&CA.key==="Tab"&&(gA(),hA.text&&(CA.preventDefault(),CA.shiftKey?fA("remove",aA.value):fA("add",aA.value),iA()))}}})}function setupMarkdownIt(Ea,Ua,aA){const{parseMetaString:iA,trimEndingNewline:AA=!0,defaultLanguage:sA="text",fallbackLanguage:oA}=aA,dA=Ua.getLoadedLanguages();Ea.options.highlight=(gA,hA="text",fA)=>{hA===""&&(hA=sA),oA&&!dA.includes(hA)&&(hA=oA);const wA=(iA==null?void 0:iA(fA,gA,hA))||{},CA={...aA,lang:hA,meta:{...aA.meta,...wA,__raw:fA}},_A=[];return _A.push({name:"@shikijs/markdown-it:block-class",code(BA){BA.properties.class=`language-${hA}`}}),AA&&gA.endsWith(`
|
|
7
7
|
`)&&(gA=gA.slice(0,-1)),Ua.codeToHtml(gA,{...CA,transformers:[..._A,...CA.transformers||[]]})}}function fromHighlighter(Ea,Ua){return function(aA){setupMarkdownIt(aA,Ea,Ua)}}var FontStyle;(function(Ea){Ea[Ea.NotSet=-1]="NotSet",Ea[Ea.None=0]="None",Ea[Ea.Italic=1]="Italic",Ea[Ea.Bold=2]="Bold",Ea[Ea.Underline=4]="Underline"})(FontStyle||(FontStyle={})),typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var EncodedTokenAttributes;(function(Ea){function Ua(fA){return fA.toString(2).padStart(32,"0")}Ea.toBinaryStr=Ua;function aA(fA){const wA=Ea.getLanguageId(fA),CA=Ea.getTokenType(fA),_A=Ea.getFontStyle(fA),BA=Ea.getForeground(fA),IA=Ea.getBackground(fA);console.log({languageId:wA,tokenType:CA,fontStyle:_A,foreground:BA,background:IA})}Ea.print=aA;function iA(fA){return(fA&255)>>>0}Ea.getLanguageId=iA;function AA(fA){return(fA&768)>>>8}Ea.getTokenType=AA;function sA(fA){return(fA&1024)!==0}Ea.containsBalancedBrackets=sA;function oA(fA){return(fA&30720)>>>11}Ea.getFontStyle=oA;function dA(fA){return(fA&16744448)>>>15}Ea.getForeground=dA;function gA(fA){return(fA&4278190080)>>>24}Ea.getBackground=gA;function hA(fA,wA,CA,_A,BA,IA,$A){let DA=Ea.getLanguageId(fA),FA=Ea.getTokenType(fA),NA=Ea.containsBalancedBrackets(fA)?1:0,TA=Ea.getFontStyle(fA),PA=Ea.getForeground(fA),HA=Ea.getBackground(fA);return wA!==0&&(DA=wA),CA!==8&&(FA=CA),_A!==null&&(NA=_A?1:0),BA!==-1&&(TA=BA),IA!==0&&(PA=IA),$A!==0&&(HA=$A),(DA<<0|FA<<8|NA<<10|TA<<11|PA<<15|HA<<24)>>>0}Ea.set=hA})(EncodedTokenAttributes||(EncodedTokenAttributes={}));function createMatchers(Ea,Ua){const aA=[],iA=newTokenizer(Ea);let AA=iA.next();for(;AA!==null;){let gA=0;if(AA.length===2&&AA.charAt(1)===":"){switch(AA.charAt(0)){case"R":gA=1;break;case"L":gA=-1;break;default:console.log(`Unknown priority ${AA} in scope selector`)}AA=iA.next()}let hA=oA();if(aA.push({matcher:hA,priority:gA}),AA!==",")break;AA=iA.next()}return aA;function sA(){if(AA==="-"){AA=iA.next();const gA=sA();return hA=>!!gA&&!gA(hA)}if(AA==="("){AA=iA.next();const gA=dA();return AA===")"&&(AA=iA.next()),gA}if(isIdentifier(AA)){const gA=[];do gA.push(AA),AA=iA.next();while(isIdentifier(AA));return hA=>Ua(gA,hA)}return null}function oA(){const gA=[];let hA=sA();for(;hA;)gA.push(hA),hA=sA();return fA=>gA.every(wA=>wA(fA))}function dA(){const gA=[];let hA=oA();for(;hA&&(gA.push(hA),AA==="|"||AA===",");){do AA=iA.next();while(AA==="|"||AA===",");hA=oA()}return fA=>gA.some(wA=>wA(fA))}}function isIdentifier(Ea){return!!Ea&&!!Ea.match(/[\w\.:]+/)}function newTokenizer(Ea){let Ua=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,aA=Ua.exec(Ea);return{next:()=>{if(!aA)return null;const iA=aA[0];return aA=Ua.exec(Ea),iA}}}function disposeOnigString(Ea){typeof Ea.dispose=="function"&&Ea.dispose()}function clone$1(Ea){return doClone(Ea)}function doClone(Ea){return Array.isArray(Ea)?cloneArray(Ea):typeof Ea=="object"?cloneObj(Ea):Ea}function cloneArray(Ea){let Ua=[];for(let aA=0,iA=Ea.length;aA<iA;aA++)Ua[aA]=doClone(Ea[aA]);return Ua}function cloneObj(Ea){let Ua={};for(let aA in Ea)Ua[aA]=doClone(Ea[aA]);return Ua}function mergeObjects(Ea,...Ua){return Ua.forEach(aA=>{for(let iA in aA)Ea[iA]=aA[iA]}),Ea}function basename(Ea){const Ua=~Ea.lastIndexOf("/")||~Ea.lastIndexOf("\\");return Ua===0?Ea:~Ua===Ea.length-1?basename(Ea.substring(0,Ea.length-1)):Ea.substr(~Ua+1)}let CAPTURING_REGEX_SOURCE=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class RegexSource{static hasCaptures(Ua){return Ua===null?!1:(CAPTURING_REGEX_SOURCE.lastIndex=0,CAPTURING_REGEX_SOURCE.test(Ua))}static replaceCaptures(Ua,aA,iA){return Ua.replace(CAPTURING_REGEX_SOURCE,(AA,sA,oA,dA)=>{let gA=iA[parseInt(sA||oA,10)];if(gA){let hA=aA.substring(gA.start,gA.end);for(;hA[0]===".";)hA=hA.substring(1);switch(dA){case"downcase":return hA.toLowerCase();case"upcase":return hA.toUpperCase();default:return hA}}else return AA})}}function strcmp(Ea,Ua){return Ea<Ua?-1:Ea>Ua?1:0}function strArrCmp(Ea,Ua){if(Ea===null&&Ua===null)return 0;if(!Ea)return-1;if(!Ua)return 1;let aA=Ea.length,iA=Ua.length;if(aA===iA){for(let AA=0;AA<aA;AA++){let sA=strcmp(Ea[AA],Ua[AA]);if(sA!==0)return sA}return 0}return aA-iA}function isValidHexColor(Ea){return!!(/^#[0-9a-f]{6}$/i.test(Ea)||/^#[0-9a-f]{8}$/i.test(Ea)||/^#[0-9a-f]{3}$/i.test(Ea)||/^#[0-9a-f]{4}$/i.test(Ea))}function escapeRegExpCharacters(Ea){return Ea.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}class CachedFn{constructor(Ua){nA(this,"fn"),nA(this,"cache",new Map),this.fn=Ua}get(Ua){if(this.cache.has(Ua))return this.cache.get(Ua);const aA=this.fn(Ua);return this.cache.set(Ua,aA),aA}}class TopLevelRuleReference{constructor(Ua){nA(this,"scopeName"),this.scopeName=Ua}toKey(){return this.scopeName}}class TopLevelRepositoryRuleReference{constructor(Ua,aA){nA(this,"scopeName"),nA(this,"ruleName"),this.scopeName=Ua,this.ruleName=aA}toKey(){return`${this.scopeName}#${this.ruleName}`}}class ExternalReferenceCollector{constructor(){nA(this,"_references",[]),nA(this,"_seenReferenceKeys",new Set),nA(this,"visitedRule",new Set)}get references(){return this._references}add(Ua){const aA=Ua.toKey();this._seenReferenceKeys.has(aA)||(this._seenReferenceKeys.add(aA),this._references.push(Ua))}}class ScopeDependencyProcessor{constructor(Ua,aA){nA(this,"repo"),nA(this,"initialScopeName"),nA(this,"seenFullScopeRequests",new Set),nA(this,"seenPartialScopeRequests",new Set),nA(this,"Q"),this.repo=Ua,this.initialScopeName=aA,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new TopLevelRuleReference(this.initialScopeName)]}processQueue(){const Ua=this.Q;this.Q=[];const aA=new ExternalReferenceCollector;for(const iA of Ua)collectReferencesOfReference(iA,this.initialScopeName,this.repo,aA);for(const iA of aA.references)if(iA instanceof TopLevelRuleReference){if(this.seenFullScopeRequests.has(iA.scopeName))continue;this.seenFullScopeRequests.add(iA.scopeName),this.Q.push(iA)}else{if(this.seenFullScopeRequests.has(iA.scopeName)||this.seenPartialScopeRequests.has(iA.toKey()))continue;this.seenPartialScopeRequests.add(iA.toKey()),this.Q.push(iA)}}}function collectReferencesOfReference(Ea,Ua,aA,iA){const AA=aA.lookup(Ea.scopeName);if(!AA){if(Ea.scopeName===Ua)throw new Error(`No grammar provided for <${Ua}>`);return}const sA=aA.lookup(Ua);Ea instanceof TopLevelRuleReference?collectExternalReferencesInTopLevelRule({baseGrammar:sA,selfGrammar:AA},iA):collectExternalReferencesInTopLevelRepositoryRule(Ea.ruleName,{baseGrammar:sA,selfGrammar:AA,repository:AA.repository},iA);const oA=aA.injections(Ea.scopeName);if(oA)for(const dA of oA)iA.add(new TopLevelRuleReference(dA))}function collectExternalReferencesInTopLevelRepositoryRule(Ea,Ua,aA){if(Ua.repository&&Ua.repository[Ea]){const iA=Ua.repository[Ea];collectExternalReferencesInRules([iA],Ua,aA)}}function collectExternalReferencesInTopLevelRule(Ea,Ua){Ea.selfGrammar.patterns&&Array.isArray(Ea.selfGrammar.patterns)&&collectExternalReferencesInRules(Ea.selfGrammar.patterns,{...Ea,repository:Ea.selfGrammar.repository},Ua),Ea.selfGrammar.injections&&collectExternalReferencesInRules(Object.values(Ea.selfGrammar.injections),{...Ea,repository:Ea.selfGrammar.repository},Ua)}function collectExternalReferencesInRules(Ea,Ua,aA){for(const iA of Ea){if(aA.visitedRule.has(iA))continue;aA.visitedRule.add(iA);const AA=iA.repository?mergeObjects({},Ua.repository,iA.repository):Ua.repository;Array.isArray(iA.patterns)&&collectExternalReferencesInRules(iA.patterns,{...Ua,repository:AA},aA);const sA=iA.include;if(!sA)continue;const oA=parseInclude(sA);switch(oA.kind){case 0:collectExternalReferencesInTopLevelRule({...Ua,selfGrammar:Ua.baseGrammar},aA);break;case 1:collectExternalReferencesInTopLevelRule(Ua,aA);break;case 2:collectExternalReferencesInTopLevelRepositoryRule(oA.ruleName,{...Ua,repository:AA},aA);break;case 3:case 4:const dA=oA.scopeName===Ua.selfGrammar.scopeName?Ua.selfGrammar:oA.scopeName===Ua.baseGrammar.scopeName?Ua.baseGrammar:void 0;if(dA){const gA={baseGrammar:Ua.baseGrammar,selfGrammar:dA,repository:AA};oA.kind===4?collectExternalReferencesInTopLevelRepositoryRule(oA.ruleName,gA,aA):collectExternalReferencesInTopLevelRule(gA,aA)}else oA.kind===4?aA.add(new TopLevelRepositoryRuleReference(oA.scopeName,oA.ruleName)):aA.add(new TopLevelRuleReference(oA.scopeName));break}}}class BaseReference{constructor(){nA(this,"kind",0)}}class SelfReference{constructor(){nA(this,"kind",1)}}class RelativeReference{constructor(Ua){nA(this,"ruleName"),nA(this,"kind",2),this.ruleName=Ua}}class TopLevelReference{constructor(Ua){nA(this,"scopeName"),nA(this,"kind",3),this.scopeName=Ua}}class TopLevelRepositoryReference{constructor(Ua,aA){nA(this,"scopeName"),nA(this,"ruleName"),nA(this,"kind",4),this.scopeName=Ua,this.ruleName=aA}}function parseInclude(Ea){if(Ea==="$base")return new BaseReference;if(Ea==="$self")return new SelfReference;const Ua=Ea.indexOf("#");if(Ua===-1)return new TopLevelReference(Ea);if(Ua===0)return new RelativeReference(Ea.substring(1));{const aA=Ea.substring(0,Ua),iA=Ea.substring(Ua+1);return new TopLevelRepositoryReference(aA,iA)}}const HAS_BACK_REFERENCES=/\\(\d+)/,BACK_REFERENCING_END=/\\(\d+)/g,endRuleId=-1,whileRuleId=-2;class Rule{constructor(Ua,aA,iA,AA){nA(this,"$location"),nA(this,"id"),nA(this,"_nameIsCapturing"),nA(this,"_name"),nA(this,"_contentNameIsCapturing"),nA(this,"_contentName"),this.$location=Ua,this.id=aA,this._name=iA||null,this._nameIsCapturing=RegexSource.hasCaptures(this._name),this._contentName=AA||null,this._contentNameIsCapturing=RegexSource.hasCaptures(this._contentName)}get debugName(){const Ua=this.$location?`${basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${Ua}`}getName(Ua,aA){return!this._nameIsCapturing||this._name===null||Ua===null||aA===null?this._name:RegexSource.replaceCaptures(this._name,Ua,aA)}getContentName(Ua,aA){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:RegexSource.replaceCaptures(this._contentName,Ua,aA)}}class CaptureRule extends Rule{constructor(Ua,aA,iA,AA,sA){super(Ua,aA,iA,AA),nA(this,"retokenizeCapturedWithRuleId"),this.retokenizeCapturedWithRuleId=sA}dispose(){}collectPatterns(Ua,aA){throw new Error("Not supported!")}compile(Ua,aA){throw new Error("Not supported!")}compileAG(Ua,aA,iA,AA){throw new Error("Not supported!")}}class MatchRule extends Rule{constructor(Ua,aA,iA,AA,sA){super(Ua,aA,iA,null),nA(this,"_match"),nA(this,"captures"),nA(this,"_cachedCompiledPatterns"),this._match=new RegExpSource(AA,this.id),this.captures=sA,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(Ua,aA){aA.push(this._match)}compile(Ua,aA){return this._getCachedCompiledPatterns(Ua).compile(Ua)}compileAG(Ua,aA,iA,AA){return this._getCachedCompiledPatterns(Ua).compileAG(Ua,iA,AA)}_getCachedCompiledPatterns(Ua){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new RegExpSourceList,this.collectPatterns(Ua,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class IncludeOnlyRule extends Rule{constructor(Ua,aA,iA,AA,sA){super(Ua,aA,iA,AA),nA(this,"hasMissingPatterns"),nA(this,"patterns"),nA(this,"_cachedCompiledPatterns"),this.patterns=sA.patterns,this.hasMissingPatterns=sA.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(Ua,aA){for(const iA of this.patterns)Ua.getRule(iA).collectPatterns(Ua,aA)}compile(Ua,aA){return this._getCachedCompiledPatterns(Ua).compile(Ua)}compileAG(Ua,aA,iA,AA){return this._getCachedCompiledPatterns(Ua).compileAG(Ua,iA,AA)}_getCachedCompiledPatterns(Ua){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new RegExpSourceList,this.collectPatterns(Ua,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class BeginEndRule extends Rule{constructor(Ua,aA,iA,AA,sA,oA,dA,gA,hA,fA){super(Ua,aA,iA,AA),nA(this,"_begin"),nA(this,"beginCaptures"),nA(this,"_end"),nA(this,"endHasBackReferences"),nA(this,"endCaptures"),nA(this,"applyEndPatternLast"),nA(this,"hasMissingPatterns"),nA(this,"patterns"),nA(this,"_cachedCompiledPatterns"),this._begin=new RegExpSource(sA,this.id),this.beginCaptures=oA,this._end=new RegExpSource(dA||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=gA,this.applyEndPatternLast=hA||!1,this.patterns=fA.patterns,this.hasMissingPatterns=fA.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(Ua,aA){return this._end.resolveBackReferences(Ua,aA)}collectPatterns(Ua,aA){aA.push(this._begin)}compile(Ua,aA){return this._getCachedCompiledPatterns(Ua,aA).compile(Ua)}compileAG(Ua,aA,iA,AA){return this._getCachedCompiledPatterns(Ua,aA).compileAG(Ua,iA,AA)}_getCachedCompiledPatterns(Ua,aA){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new RegExpSourceList;for(const iA of this.patterns)Ua.getRule(iA).collectPatterns(Ua,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,aA):this._cachedCompiledPatterns.setSource(0,aA)),this._cachedCompiledPatterns}}class BeginWhileRule extends Rule{constructor(Ua,aA,iA,AA,sA,oA,dA,gA,hA){super(Ua,aA,iA,AA),nA(this,"_begin"),nA(this,"beginCaptures"),nA(this,"whileCaptures"),nA(this,"_while"),nA(this,"whileHasBackReferences"),nA(this,"hasMissingPatterns"),nA(this,"patterns"),nA(this,"_cachedCompiledPatterns"),nA(this,"_cachedCompiledWhilePatterns"),this._begin=new RegExpSource(sA,this.id),this.beginCaptures=oA,this.whileCaptures=gA,this._while=new RegExpSource(dA,whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=hA.patterns,this.hasMissingPatterns=hA.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(Ua,aA){return this._while.resolveBackReferences(Ua,aA)}collectPatterns(Ua,aA){aA.push(this._begin)}compile(Ua,aA){return this._getCachedCompiledPatterns(Ua).compile(Ua)}compileAG(Ua,aA,iA,AA){return this._getCachedCompiledPatterns(Ua).compileAG(Ua,iA,AA)}_getCachedCompiledPatterns(Ua){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new RegExpSourceList;for(const aA of this.patterns)Ua.getRule(aA).collectPatterns(Ua,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(Ua,aA){return this._getCachedCompiledWhilePatterns(Ua,aA).compile(Ua)}compileWhileAG(Ua,aA,iA,AA){return this._getCachedCompiledWhilePatterns(Ua,aA).compileAG(Ua,iA,AA)}_getCachedCompiledWhilePatterns(Ua,aA){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new RegExpSourceList,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,aA||""),this._cachedCompiledWhilePatterns}}class RuleFactory{static createCaptureRule(Ua,aA,iA,AA,sA){return Ua.registerRule(oA=>new CaptureRule(aA,oA,iA,AA,sA))}static getCompiledRuleId(Ua,aA,iA){return Ua.id||aA.registerRule(AA=>{if(Ua.id=AA,Ua.match)return new MatchRule(Ua.$vscodeTextmateLocation,Ua.id,Ua.name,Ua.match,RuleFactory._compileCaptures(Ua.captures,aA,iA));if(typeof Ua.begin>"u"){Ua.repository&&(iA=mergeObjects({},iA,Ua.repository));let sA=Ua.patterns;return typeof sA>"u"&&Ua.include&&(sA=[{include:Ua.include}]),new IncludeOnlyRule(Ua.$vscodeTextmateLocation,Ua.id,Ua.name,Ua.contentName,RuleFactory._compilePatterns(sA,aA,iA))}return Ua.while?new BeginWhileRule(Ua.$vscodeTextmateLocation,Ua.id,Ua.name,Ua.contentName,Ua.begin,RuleFactory._compileCaptures(Ua.beginCaptures||Ua.captures,aA,iA),Ua.while,RuleFactory._compileCaptures(Ua.whileCaptures||Ua.captures,aA,iA),RuleFactory._compilePatterns(Ua.patterns,aA,iA)):new BeginEndRule(Ua.$vscodeTextmateLocation,Ua.id,Ua.name,Ua.contentName,Ua.begin,RuleFactory._compileCaptures(Ua.beginCaptures||Ua.captures,aA,iA),Ua.end,RuleFactory._compileCaptures(Ua.endCaptures||Ua.captures,aA,iA),Ua.applyEndPatternLast,RuleFactory._compilePatterns(Ua.patterns,aA,iA))}),Ua.id}static _compileCaptures(Ua,aA,iA){let AA=[];if(Ua){let sA=0;for(const oA in Ua){if(oA==="$vscodeTextmateLocation")continue;const dA=parseInt(oA,10);dA>sA&&(sA=dA)}for(let oA=0;oA<=sA;oA++)AA[oA]=null;for(const oA in Ua){if(oA==="$vscodeTextmateLocation")continue;const dA=parseInt(oA,10);let gA=0;Ua[oA].patterns&&(gA=RuleFactory.getCompiledRuleId(Ua[oA],aA,iA)),AA[dA]=RuleFactory.createCaptureRule(aA,Ua[oA].$vscodeTextmateLocation,Ua[oA].name,Ua[oA].contentName,gA)}}return AA}static _compilePatterns(Ua,aA,iA){let AA=[];if(Ua)for(let sA=0,oA=Ua.length;sA<oA;sA++){const dA=Ua[sA];let gA=-1;if(dA.include){const hA=parseInclude(dA.include);switch(hA.kind){case 0:case 1:gA=RuleFactory.getCompiledRuleId(iA[dA.include],aA,iA);break;case 2:let fA=iA[hA.ruleName];fA&&(gA=RuleFactory.getCompiledRuleId(fA,aA,iA));break;case 3:case 4:const wA=hA.scopeName,CA=hA.kind===4?hA.ruleName:null,_A=aA.getExternalGrammar(wA,iA);if(_A)if(CA){let BA=_A.repository[CA];BA&&(gA=RuleFactory.getCompiledRuleId(BA,aA,_A.repository))}else gA=RuleFactory.getCompiledRuleId(_A.repository.$self,aA,_A.repository);break}}else gA=RuleFactory.getCompiledRuleId(dA,aA,iA);if(gA!==-1){const hA=aA.getRule(gA);let fA=!1;if((hA instanceof IncludeOnlyRule||hA instanceof BeginEndRule||hA instanceof BeginWhileRule)&&hA.hasMissingPatterns&&hA.patterns.length===0&&(fA=!0),fA)continue;AA.push(gA)}}return{patterns:AA,hasMissingPatterns:(Ua?Ua.length:0)!==AA.length}}}class RegExpSource{constructor(Ua,aA){if(nA(this,"source"),nA(this,"ruleId"),nA(this,"hasAnchor"),nA(this,"hasBackReferences"),nA(this,"_anchorCache"),Ua){const iA=Ua.length;let AA=0,sA=[],oA=!1;for(let dA=0;dA<iA;dA++)if(Ua.charAt(dA)==="\\"&&dA+1<iA){const gA=Ua.charAt(dA+1);gA==="z"?(sA.push(Ua.substring(AA,dA)),sA.push("$(?!\\n)(?<!\\n)"),AA=dA+2):(gA==="A"||gA==="G")&&(oA=!0),dA++}this.hasAnchor=oA,AA===0?this.source=Ua:(sA.push(Ua.substring(AA,iA)),this.source=sA.join(""))}else this.hasAnchor=!1,this.source=Ua;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=aA,this.hasBackReferences=HAS_BACK_REFERENCES.test(this.source)}clone(){return new RegExpSource(this.source,this.ruleId)}setSource(Ua){this.source!==Ua&&(this.source=Ua,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(Ua,aA){let iA=aA.map(AA=>Ua.substring(AA.start,AA.end));return BACK_REFERENCING_END.lastIndex=0,this.source.replace(BACK_REFERENCING_END,(AA,sA)=>escapeRegExpCharacters(iA[parseInt(sA,10)]||""))}_buildAnchorCache(){let Ua=[],aA=[],iA=[],AA=[],sA,oA,dA,gA;for(sA=0,oA=this.source.length;sA<oA;sA++)dA=this.source.charAt(sA),Ua[sA]=dA,aA[sA]=dA,iA[sA]=dA,AA[sA]=dA,dA==="\\"&&sA+1<oA&&(gA=this.source.charAt(sA+1),gA==="A"?(Ua[sA+1]="",aA[sA+1]="",iA[sA+1]="A",AA[sA+1]="A"):gA==="G"?(Ua[sA+1]="",aA[sA+1]="G",iA[sA+1]="",AA[sA+1]="G"):(Ua[sA+1]=gA,aA[sA+1]=gA,iA[sA+1]=gA,AA[sA+1]=gA),sA++);return{A0_G0:Ua.join(""),A0_G1:aA.join(""),A1_G0:iA.join(""),A1_G1:AA.join("")}}resolveAnchors(Ua,aA){return!this.hasAnchor||!this._anchorCache?this.source:Ua?aA?this._anchorCache.A1_G1:this._anchorCache.A1_G0:aA?this._anchorCache.A0_G1:this._anchorCache.A0_G0}}class RegExpSourceList{constructor(){nA(this,"_items"),nA(this,"_hasAnchors"),nA(this,"_cached"),nA(this,"_anchorCache"),this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(Ua){this._items.push(Ua),this._hasAnchors=this._hasAnchors||Ua.hasAnchor}unshift(Ua){this._items.unshift(Ua),this._hasAnchors=this._hasAnchors||Ua.hasAnchor}length(){return this._items.length}setSource(Ua,aA){this._items[Ua].source!==aA&&(this._disposeCaches(),this._items[Ua].setSource(aA))}compile(Ua){if(!this._cached){let aA=this._items.map(iA=>iA.source);this._cached=new CompiledRule(Ua,aA,this._items.map(iA=>iA.ruleId))}return this._cached}compileAG(Ua,aA,iA){return this._hasAnchors?aA?iA?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(Ua,aA,iA)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(Ua,aA,iA)),this._anchorCache.A1_G0):iA?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(Ua,aA,iA)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(Ua,aA,iA)),this._anchorCache.A0_G0):this.compile(Ua)}_resolveAnchors(Ua,aA,iA){let AA=this._items.map(sA=>sA.resolveAnchors(aA,iA));return new CompiledRule(Ua,AA,this._items.map(sA=>sA.ruleId))}}class CompiledRule{constructor(Ua,aA,iA){nA(this,"regExps"),nA(this,"rules"),nA(this,"scanner"),this.regExps=aA,this.rules=iA,this.scanner=Ua.createOnigScanner(aA)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const Ua=[];for(let aA=0,iA=this.rules.length;aA<iA;aA++)Ua.push(" - "+this.rules[aA]+": "+this.regExps[aA]);return Ua.join(`
|
|
8
8
|
`)}findNextMatchSync(Ua,aA,iA){const AA=this.scanner.findNextMatchSync(Ua,aA,iA);return AA?{ruleId:this.rules[AA.index],captureIndices:AA.captureIndices}:null}}class Theme{constructor(Ua,aA,iA){nA(this,"_colorMap"),nA(this,"_defaults"),nA(this,"_root"),nA(this,"_cachedMatchRoot",new CachedFn(AA=>this._root.match(AA))),this._colorMap=Ua,this._defaults=aA,this._root=iA}static createFromRawTheme(Ua,aA){return this.createFromParsedTheme(parseTheme(Ua),aA)}static createFromParsedTheme(Ua,aA){return resolveParsedThemeRules(Ua,aA)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(Ua){if(Ua===null)return this._defaults;const aA=Ua.scopeName,iA=this._cachedMatchRoot.get(aA).find(AA=>_scopePathMatchesParentScopes(Ua.parent,AA.parentScopes));return iA?new StyleAttributes(iA.fontStyle,iA.foreground,iA.background):null}}class ScopeStack{constructor(Ua,aA){nA(this,"parent"),nA(this,"scopeName"),this.parent=Ua,this.scopeName=aA}static push(Ua,aA){for(const iA of aA)Ua=new ScopeStack(Ua,iA);return Ua}static from(...Ua){let aA=null;for(let iA=0;iA<Ua.length;iA++)aA=new ScopeStack(aA,Ua[iA]);return aA}push(Ua){return new ScopeStack(this,Ua)}getSegments(){let Ua=this;const aA=[];for(;Ua;)aA.push(Ua.scopeName),Ua=Ua.parent;return aA.reverse(),aA}toString(){return this.getSegments().join(" ")}extends(Ua){return this===Ua?!0:this.parent===null?!1:this.parent.extends(Ua)}getExtensionIfDefined(Ua){const aA=[];let iA=this;for(;iA&&iA!==Ua;)aA.push(iA.scopeName),iA=iA.parent;return iA===Ua?aA.reverse():void 0}}function _scopePathMatchesParentScopes(Ea,Ua){if(Ua===null)return!0;let aA=0,iA=Ua[aA];for(;Ea;){if(_matchesScope(Ea.scopeName,iA)){if(aA++,aA===Ua.length)return!0;iA=Ua[aA]}Ea=Ea.parent}return!1}function _matchesScope(Ea,Ua){return Ua===Ea||Ea.startsWith(Ua)&&Ea[Ua.length]==="."}class StyleAttributes{constructor(Ua,aA,iA){nA(this,"fontStyle"),nA(this,"foregroundId"),nA(this,"backgroundId"),this.fontStyle=Ua,this.foregroundId=aA,this.backgroundId=iA}}function parseTheme(Ea){if(!Ea)return[];if(!Ea.settings||!Array.isArray(Ea.settings))return[];let Ua=Ea.settings,aA=[],iA=0;for(let AA=0,sA=Ua.length;AA<sA;AA++){let oA=Ua[AA];if(!oA.settings)continue;let dA;if(typeof oA.scope=="string"){let wA=oA.scope;wA=wA.replace(/^[,]+/,""),wA=wA.replace(/[,]+$/,""),dA=wA.split(",")}else Array.isArray(oA.scope)?dA=oA.scope:dA=[""];let gA=-1;if(typeof oA.settings.fontStyle=="string"){gA=0;let wA=oA.settings.fontStyle.split(" ");for(let CA=0,_A=wA.length;CA<_A;CA++)switch(wA[CA]){case"italic":gA=gA|1;break;case"bold":gA=gA|2;break;case"underline":gA=gA|4;break;case"strikethrough":gA=gA|8;break}}let hA=null;typeof oA.settings.foreground=="string"&&isValidHexColor(oA.settings.foreground)&&(hA=oA.settings.foreground);let fA=null;typeof oA.settings.background=="string"&&isValidHexColor(oA.settings.background)&&(fA=oA.settings.background);for(let wA=0,CA=dA.length;wA<CA;wA++){let _A=dA[wA].trim().split(" "),BA=_A[_A.length-1],IA=null;_A.length>1&&(IA=_A.slice(0,_A.length-1),IA.reverse()),aA[iA++]=new ParsedThemeRule(BA,IA,AA,gA,hA,fA)}}return aA}class ParsedThemeRule{constructor(Ua,aA,iA,AA,sA,oA){nA(this,"scope"),nA(this,"parentScopes"),nA(this,"index"),nA(this,"fontStyle"),nA(this,"foreground"),nA(this,"background"),this.scope=Ua,this.parentScopes=aA,this.index=iA,this.fontStyle=AA,this.foreground=sA,this.background=oA}}function resolveParsedThemeRules(Ea,Ua){Ea.sort((gA,hA)=>{let fA=strcmp(gA.scope,hA.scope);return fA!==0||(fA=strArrCmp(gA.parentScopes,hA.parentScopes),fA!==0)?fA:gA.index-hA.index});let aA=0,iA="#000000",AA="#ffffff";for(;Ea.length>=1&&Ea[0].scope==="";){let gA=Ea.shift();gA.fontStyle!==-1&&(aA=gA.fontStyle),gA.foreground!==null&&(iA=gA.foreground),gA.background!==null&&(AA=gA.background)}let sA=new ColorMap(Ua),oA=new StyleAttributes(aA,sA.getId(iA),sA.getId(AA)),dA=new ThemeTrieElement(new ThemeTrieElementRule(0,null,-1,0,0),[]);for(let gA=0,hA=Ea.length;gA<hA;gA++){let fA=Ea[gA];dA.insert(0,fA.scope,fA.parentScopes,fA.fontStyle,sA.getId(fA.foreground),sA.getId(fA.background))}return new Theme(sA,oA,dA)}class ColorMap{constructor(Ua){if(nA(this,"_isFrozen"),nA(this,"_lastColorId"),nA(this,"_id2color"),nA(this,"_color2id"),this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(Ua)){this._isFrozen=!0;for(let aA=0,iA=Ua.length;aA<iA;aA++)this._color2id[Ua[aA]]=aA,this._id2color[aA]=Ua[aA]}else this._isFrozen=!1}getId(Ua){if(Ua===null)return 0;Ua=Ua.toUpperCase();let aA=this._color2id[Ua];if(aA)return aA;if(this._isFrozen)throw new Error(`Missing color in color map - ${Ua}`);return aA=++this._lastColorId,this._color2id[Ua]=aA,this._id2color[aA]=Ua,aA}getColorMap(){return this._id2color.slice(0)}}class ThemeTrieElementRule{constructor(Ua,aA,iA,AA,sA){nA(this,"scopeDepth"),nA(this,"parentScopes"),nA(this,"fontStyle"),nA(this,"foreground"),nA(this,"background"),this.scopeDepth=Ua,this.parentScopes=aA,this.fontStyle=iA,this.foreground=AA,this.background=sA}clone(){return new ThemeTrieElementRule(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(Ua){let aA=[];for(let iA=0,AA=Ua.length;iA<AA;iA++)aA[iA]=Ua[iA].clone();return aA}acceptOverwrite(Ua,aA,iA,AA){this.scopeDepth>Ua?console.log("how did this happen?"):this.scopeDepth=Ua,aA!==-1&&(this.fontStyle=aA),iA!==0&&(this.foreground=iA),AA!==0&&(this.background=AA)}}class ThemeTrieElement{constructor(Ua,aA=[],iA={}){nA(this,"_mainRule"),nA(this,"_children"),nA(this,"_rulesWithParentScopes"),this._mainRule=Ua,this._children=iA,this._rulesWithParentScopes=aA}static _sortBySpecificity(Ua){return Ua.length===1||Ua.sort(this._cmpBySpecificity),Ua}static _cmpBySpecificity(Ua,aA){if(Ua.scopeDepth===aA.scopeDepth){const iA=Ua.parentScopes,AA=aA.parentScopes;let sA=iA===null?0:iA.length,oA=AA===null?0:AA.length;if(sA===oA)for(let dA=0;dA<sA;dA++){const gA=iA[dA].length,hA=AA[dA].length;if(gA!==hA)return hA-gA}return oA-sA}return aA.scopeDepth-Ua.scopeDepth}match(Ua){if(Ua==="")return ThemeTrieElement._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let aA=Ua.indexOf("."),iA,AA;return aA===-1?(iA=Ua,AA=""):(iA=Ua.substring(0,aA),AA=Ua.substring(aA+1)),this._children.hasOwnProperty(iA)?this._children[iA].match(AA):ThemeTrieElement._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(Ua,aA,iA,AA,sA,oA){if(aA===""){this._doInsertHere(Ua,iA,AA,sA,oA);return}let dA=aA.indexOf("."),gA,hA;dA===-1?(gA=aA,hA=""):(gA=aA.substring(0,dA),hA=aA.substring(dA+1));let fA;this._children.hasOwnProperty(gA)?fA=this._children[gA]:(fA=new ThemeTrieElement(this._mainRule.clone(),ThemeTrieElementRule.cloneArr(this._rulesWithParentScopes)),this._children[gA]=fA),fA.insert(Ua+1,hA,iA,AA,sA,oA)}_doInsertHere(Ua,aA,iA,AA,sA){if(aA===null){this._mainRule.acceptOverwrite(Ua,iA,AA,sA);return}for(let oA=0,dA=this._rulesWithParentScopes.length;oA<dA;oA++){let gA=this._rulesWithParentScopes[oA];if(strArrCmp(gA.parentScopes,aA)===0){gA.acceptOverwrite(Ua,iA,AA,sA);return}}iA===-1&&(iA=this._mainRule.fontStyle),AA===0&&(AA=this._mainRule.foreground),sA===0&&(sA=this._mainRule.background),this._rulesWithParentScopes.push(new ThemeTrieElementRule(Ua,aA,iA,AA,sA))}}class BasicScopeAttributes{constructor(Ua,aA){nA(this,"languageId"),nA(this,"tokenType"),this.languageId=Ua,this.tokenType=aA}}const le$d=class H8e{constructor(Ua,aA){nA(this,"_defaultAttributes"),nA(this,"_embeddedLanguagesMatcher"),nA(this,"_getBasicScopeAttributes",new CachedFn(iA=>{const AA=this._scopeToLanguage(iA),sA=this._toStandardTokenType(iA);return new BasicScopeAttributes(AA,sA)})),this._defaultAttributes=new BasicScopeAttributes(Ua,8),this._embeddedLanguagesMatcher=new ScopeMatcher(Object.entries(aA||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(Ua){return Ua===null?H8e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(Ua)}_scopeToLanguage(Ua){return this._embeddedLanguagesMatcher.match(Ua)||0}_toStandardTokenType(Ua){const aA=Ua.match(H8e.STANDARD_TOKEN_TYPE_REGEXP);if(!aA)return 8;switch(aA[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}};nA(le$d,"_NULL_SCOPE_METADATA",new BasicScopeAttributes(0,0)),nA(le$d,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/);let BasicScopeAttributesProvider=le$d;class ScopeMatcher{constructor(Ua){if(nA(this,"values"),nA(this,"scopesRegExp"),Ua.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(Ua);const aA=Ua.map(([iA,AA])=>escapeRegExpCharacters(iA));aA.sort(),aA.reverse(),this.scopesRegExp=new RegExp(`^((${aA.join(")|(")}))($|\\.)`,"")}}match(Ua){if(!this.scopesRegExp)return;const aA=Ua.match(this.scopesRegExp);if(aA)return this.values.get(aA[1])}}class TokenizeStringResult{constructor(Ua,aA){nA(this,"stack"),nA(this,"stoppedEarly"),this.stack=Ua,this.stoppedEarly=aA}}function _tokenizeString(Ea,Ua,aA,iA,AA,sA,oA,dA){const gA=Ua.content.length;let hA=!1,fA=-1;if(oA){const _A=_checkWhileConditions(Ea,Ua,aA,iA,AA,sA);AA=_A.stack,iA=_A.linePos,aA=_A.isFirstLine,fA=_A.anchorPosition}const wA=Date.now();for(;!hA;){if(dA!==0&&Date.now()-wA>dA)return new TokenizeStringResult(AA,!0);CA()}return new TokenizeStringResult(AA,!1);function CA(){const _A=matchRuleOrInjections(Ea,Ua,aA,iA,AA,fA);if(!_A){sA.produce(AA,gA),hA=!0;return}const BA=_A.captureIndices,IA=_A.matchedRuleId,$A=BA&&BA.length>0?BA[0].end>iA:!1;if(IA===endRuleId){const DA=AA.getRule(Ea);sA.produce(AA,BA[0].start),AA=AA.withContentNameScopesList(AA.nameScopesList),handleCaptures(Ea,Ua,aA,AA,sA,DA.endCaptures,BA),sA.produce(AA,BA[0].end);const FA=AA;if(AA=AA.parent,fA=FA.getAnchorPos(),!$A&&FA.getEnterPos()===iA){AA=FA,sA.produce(AA,gA),hA=!0;return}}else{const DA=Ea.getRule(IA);sA.produce(AA,BA[0].start);const FA=AA,NA=DA.getName(Ua.content,BA),TA=AA.contentNameScopesList.pushAttributed(NA,Ea);if(AA=AA.push(IA,iA,fA,BA[0].end===gA,null,TA,TA),DA instanceof BeginEndRule){const PA=DA;handleCaptures(Ea,Ua,aA,AA,sA,PA.beginCaptures,BA),sA.produce(AA,BA[0].end),fA=BA[0].end;const HA=PA.getContentName(Ua.content,BA),RA=TA.pushAttributed(HA,Ea);if(AA=AA.withContentNameScopesList(RA),PA.endHasBackReferences&&(AA=AA.withEndRule(PA.getEndWithResolvedBackReferences(Ua.content,BA))),!$A&&FA.hasSameRuleAs(AA)){AA=AA.pop(),sA.produce(AA,gA),hA=!0;return}}else if(DA instanceof BeginWhileRule){const PA=DA;handleCaptures(Ea,Ua,aA,AA,sA,PA.beginCaptures,BA),sA.produce(AA,BA[0].end),fA=BA[0].end;const HA=PA.getContentName(Ua.content,BA),RA=TA.pushAttributed(HA,Ea);if(AA=AA.withContentNameScopesList(RA),PA.whileHasBackReferences&&(AA=AA.withEndRule(PA.getWhileWithResolvedBackReferences(Ua.content,BA))),!$A&&FA.hasSameRuleAs(AA)){AA=AA.pop(),sA.produce(AA,gA),hA=!0;return}}else if(handleCaptures(Ea,Ua,aA,AA,sA,DA.captures,BA),sA.produce(AA,BA[0].end),AA=AA.pop(),!$A){AA=AA.safePop(),sA.produce(AA,gA),hA=!0;return}}BA[0].end>iA&&(iA=BA[0].end,aA=!1)}}function _checkWhileConditions(Ea,Ua,aA,iA,AA,sA){let oA=AA.beginRuleCapturedEOL?0:-1;const dA=[];for(let gA=AA;gA;gA=gA.pop()){const hA=gA.getRule(Ea);hA instanceof BeginWhileRule&&dA.push({rule:hA,stack:gA})}for(let gA=dA.pop();gA;gA=dA.pop()){const{ruleScanner:hA,findOptions:fA}=prepareRuleWhileSearch(gA.rule,Ea,gA.stack.endRule,aA,iA===oA),wA=hA.findNextMatchSync(Ua,iA,fA);if(wA){if(wA.ruleId!==whileRuleId){AA=gA.stack.pop();break}wA.captureIndices&&wA.captureIndices.length&&(sA.produce(gA.stack,wA.captureIndices[0].start),handleCaptures(Ea,Ua,aA,gA.stack,sA,gA.rule.whileCaptures,wA.captureIndices),sA.produce(gA.stack,wA.captureIndices[0].end),oA=wA.captureIndices[0].end,wA.captureIndices[0].end>iA&&(iA=wA.captureIndices[0].end,aA=!1))}else{AA=gA.stack.pop();break}}return{stack:AA,linePos:iA,anchorPosition:oA,isFirstLine:aA}}function matchRuleOrInjections(Ea,Ua,aA,iA,AA,sA){const oA=matchRule(Ea,Ua,aA,iA,AA,sA),dA=Ea.getInjections();if(dA.length===0)return oA;const gA=matchInjections(dA,Ea,Ua,aA,iA,AA,sA);if(!gA)return oA;if(!oA)return gA;const hA=oA.captureIndices[0].start,fA=gA.captureIndices[0].start;return fA<hA||gA.priorityMatch&&fA===hA?gA:oA}function matchRule(Ea,Ua,aA,iA,AA,sA){const oA=AA.getRule(Ea),{ruleScanner:dA,findOptions:gA}=prepareRuleSearch(oA,Ea,AA.endRule,aA,iA===sA),hA=dA.findNextMatchSync(Ua,iA,gA);return hA?{captureIndices:hA.captureIndices,matchedRuleId:hA.ruleId}:null}function matchInjections(Ea,Ua,aA,iA,AA,sA,oA){let dA=Number.MAX_VALUE,gA=null,hA,fA=0;const wA=sA.contentNameScopesList.getScopeNames();for(let CA=0,_A=Ea.length;CA<_A;CA++){const BA=Ea[CA];if(!BA.matcher(wA))continue;const IA=Ua.getRule(BA.ruleId),{ruleScanner:$A,findOptions:DA}=prepareRuleSearch(IA,Ua,null,iA,AA===oA),FA=$A.findNextMatchSync(aA,AA,DA);if(!FA)continue;const NA=FA.captureIndices[0].start;if(!(NA>=dA)&&(dA=NA,gA=FA.captureIndices,hA=FA.ruleId,fA=BA.priority,dA===AA))break}return gA?{priorityMatch:fA===-1,captureIndices:gA,matchedRuleId:hA}:null}function prepareRuleSearch(Ea,Ua,aA,iA,AA){return{ruleScanner:Ea.compileAG(Ua,aA,iA,AA),findOptions:0}}function prepareRuleWhileSearch(Ea,Ua,aA,iA,AA){return{ruleScanner:Ea.compileWhileAG(Ua,aA,iA,AA),findOptions:0}}function handleCaptures(Ea,Ua,aA,iA,AA,sA,oA){if(sA.length===0)return;const dA=Ua.content,gA=Math.min(sA.length,oA.length),hA=[],fA=oA[0].end;for(let wA=0;wA<gA;wA++){const CA=sA[wA];if(CA===null)continue;const _A=oA[wA];if(_A.length===0)continue;if(_A.start>fA)break;for(;hA.length>0&&hA[hA.length-1].endPos<=_A.start;)AA.produceFromScopes(hA[hA.length-1].scopes,hA[hA.length-1].endPos),hA.pop();if(hA.length>0?AA.produceFromScopes(hA[hA.length-1].scopes,_A.start):AA.produce(iA,_A.start),CA.retokenizeCapturedWithRuleId){const IA=CA.getName(dA,oA),$A=iA.contentNameScopesList.pushAttributed(IA,Ea),DA=CA.getContentName(dA,oA),FA=$A.pushAttributed(DA,Ea),NA=iA.push(CA.retokenizeCapturedWithRuleId,_A.start,-1,!1,null,$A,FA),TA=Ea.createOnigString(dA.substring(0,_A.end));_tokenizeString(Ea,TA,aA&&_A.start===0,_A.start,NA,AA,!1,0),disposeOnigString(TA);continue}const BA=CA.getName(dA,oA);if(BA!==null){const IA=(hA.length>0?hA[hA.length-1].scopes:iA.contentNameScopesList).pushAttributed(BA,Ea);hA.push(new LocalStackElement(IA,_A.end))}}for(;hA.length>0;)AA.produceFromScopes(hA[hA.length-1].scopes,hA[hA.length-1].endPos),hA.pop()}class LocalStackElement{constructor(Ua,aA){nA(this,"scopes"),nA(this,"endPos"),this.scopes=Ua,this.endPos=aA}}function createGrammar(Ea,Ua,aA,iA,AA,sA,oA,dA){return new Grammar(Ea,Ua,aA,iA,AA,sA,oA,dA)}function collectInjections(Ea,Ua,aA,iA,AA){const sA=createMatchers(Ua,nameMatcher),oA=RuleFactory.getCompiledRuleId(aA,iA,AA.repository);for(const dA of sA)Ea.push({debugSelector:Ua,matcher:dA.matcher,ruleId:oA,grammar:AA,priority:dA.priority})}function nameMatcher(Ea,Ua){if(Ua.length<Ea.length)return!1;let aA=0;return Ea.every(iA=>{for(let AA=aA;AA<Ua.length;AA++)if(scopesAreMatching(Ua[AA],iA))return aA=AA+1,!0;return!1})}function scopesAreMatching(Ea,Ua){if(!Ea)return!1;if(Ea===Ua)return!0;const aA=Ua.length;return Ea.length>aA&&Ea.substr(0,aA)===Ua&&Ea[aA]==="."}class Grammar{constructor(Ua,aA,iA,AA,sA,oA,dA,gA){if(nA(this,"_rootScopeName"),nA(this,"balancedBracketSelectors"),nA(this,"_onigLib"),nA(this,"_rootId"),nA(this,"_lastRuleId"),nA(this,"_ruleId2desc"),nA(this,"_includedGrammars"),nA(this,"_grammarRepository"),nA(this,"_grammar"),nA(this,"_injections"),nA(this,"_basicScopeAttributesProvider"),nA(this,"_tokenTypeMatchers"),this._rootScopeName=Ua,this.balancedBracketSelectors=oA,this._onigLib=gA,this._basicScopeAttributesProvider=new BasicScopeAttributesProvider(iA,AA),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=dA,this._grammar=initGrammar(aA,null),this._injections=null,this._tokenTypeMatchers=[],sA)for(const hA of Object.keys(sA)){const fA=createMatchers(hA,nameMatcher);for(const wA of fA)this._tokenTypeMatchers.push({matcher:wA.matcher,type:sA[hA]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const Ua of this._ruleId2desc)Ua&&Ua.dispose()}createOnigScanner(Ua){return this._onigLib.createOnigScanner(Ua)}createOnigString(Ua){return this._onigLib.createOnigString(Ua)}getMetadataForScope(Ua){return this._basicScopeAttributesProvider.getBasicScopeAttributes(Ua)}_collectInjections(){const Ua={lookup:sA=>sA===this._rootScopeName?this._grammar:this.getExternalGrammar(sA),injections:sA=>this._grammarRepository.injections(sA)},aA=[],iA=this._rootScopeName,AA=Ua.lookup(iA);if(AA){const sA=AA.injections;if(sA)for(let dA in sA)collectInjections(aA,dA,sA[dA],this,AA);const oA=this._grammarRepository.injections(iA);oA&&oA.forEach(dA=>{const gA=this.getExternalGrammar(dA);if(gA){const hA=gA.injectionSelector;hA&&collectInjections(aA,hA,gA,this,gA)}})}return aA.sort((sA,oA)=>sA.priority-oA.priority),aA}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(Ua){const aA=++this._lastRuleId,iA=Ua(aA);return this._ruleId2desc[aA]=iA,iA}getRule(Ua){return this._ruleId2desc[Ua]}getExternalGrammar(Ua,aA){if(this._includedGrammars[Ua])return this._includedGrammars[Ua];if(this._grammarRepository){const iA=this._grammarRepository.lookup(Ua);if(iA)return this._includedGrammars[Ua]=initGrammar(iA,aA&&aA.$base),this._includedGrammars[Ua]}}tokenizeLine(Ua,aA,iA=0){const AA=this._tokenize(Ua,aA,!1,iA);return{tokens:AA.lineTokens.getResult(AA.ruleStack,AA.lineLength),ruleStack:AA.ruleStack,stoppedEarly:AA.stoppedEarly}}tokenizeLine2(Ua,aA,iA=0){const AA=this._tokenize(Ua,aA,!0,iA);return{tokens:AA.lineTokens.getBinaryResult(AA.ruleStack,AA.lineLength),ruleStack:AA.ruleStack,stoppedEarly:AA.stoppedEarly}}_tokenize(Ua,aA,iA,AA){this._rootId===-1&&(this._rootId=RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let sA;if(!aA||aA===StateStackImpl.NULL){sA=!0;const fA=this._basicScopeAttributesProvider.getDefaultAttributes(),wA=this.themeProvider.getDefaults(),CA=EncodedTokenAttributes.set(0,fA.languageId,fA.tokenType,null,wA.fontStyle,wA.foregroundId,wA.backgroundId),_A=this.getRule(this._rootId).getName(null,null);let BA;_A?BA=AttributedScopeStack.createRootAndLookUpScopeName(_A,CA,this):BA=AttributedScopeStack.createRoot("unknown",CA),aA=new StateStackImpl(null,this._rootId,-1,-1,!1,null,BA,BA)}else sA=!1,aA.reset();Ua=Ua+`
|
|
9
9
|
`;const oA=this.createOnigString(Ua),dA=oA.content.length,gA=new LineTokens(iA,Ua,this._tokenTypeMatchers,this.balancedBracketSelectors),hA=_tokenizeString(this,oA,sA,0,aA,gA,!0,AA);return disposeOnigString(oA),{lineLength:dA,lineTokens:gA,ruleStack:hA.stack,stoppedEarly:hA.stoppedEarly}}}function initGrammar(Ea,Ua){return Ea=clone$1(Ea),Ea.repository=Ea.repository||{},Ea.repository.$self={$vscodeTextmateLocation:Ea.$vscodeTextmateLocation,patterns:Ea.patterns,name:Ea.scopeName},Ea.repository.$base=Ua||Ea.repository.$self,Ea}class AttributedScopeStack{constructor(Ua,aA,iA){nA(this,"parent"),nA(this,"scopePath"),nA(this,"tokenAttributes"),this.parent=Ua,this.scopePath=aA,this.tokenAttributes=iA}static fromExtension(Ua,aA){let iA=Ua,AA=(Ua==null?void 0:Ua.scopePath)??null;for(const sA of aA)AA=ScopeStack.push(AA,sA.scopeNames),iA=new AttributedScopeStack(iA,AA,sA.encodedTokenAttributes);return iA}static createRoot(Ua,aA){return new AttributedScopeStack(null,new ScopeStack(null,Ua),aA)}static createRootAndLookUpScopeName(Ua,aA,iA){const AA=iA.getMetadataForScope(Ua),sA=new ScopeStack(null,Ua),oA=iA.themeProvider.themeMatch(sA),dA=AttributedScopeStack.mergeAttributes(aA,AA,oA);return new AttributedScopeStack(null,sA,dA)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(Ua){return AttributedScopeStack.equals(this,Ua)}static equals(Ua,aA){do{if(Ua===aA||!Ua&&!aA)return!0;if(!Ua||!aA||Ua.scopeName!==aA.scopeName||Ua.tokenAttributes!==aA.tokenAttributes)return!1;Ua=Ua.parent,aA=aA.parent}while(!0)}static mergeAttributes(Ua,aA,iA){let AA=-1,sA=0,oA=0;return iA!==null&&(AA=iA.fontStyle,sA=iA.foregroundId,oA=iA.backgroundId),EncodedTokenAttributes.set(Ua,aA.languageId,aA.tokenType,null,AA,sA,oA)}pushAttributed(Ua,aA){if(Ua===null)return this;if(Ua.indexOf(" ")===-1)return AttributedScopeStack._pushAttributed(this,Ua,aA);const iA=Ua.split(/ /g);let AA=this;for(const sA of iA)AA=AttributedScopeStack._pushAttributed(AA,sA,aA);return AA}static _pushAttributed(Ua,aA,iA){const AA=iA.getMetadataForScope(aA),sA=Ua.scopePath.push(aA),oA=iA.themeProvider.themeMatch(sA),dA=AttributedScopeStack.mergeAttributes(Ua.tokenAttributes,AA,oA);return new AttributedScopeStack(Ua,sA,dA)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(Ua){var aA;const iA=[];let AA=this;for(;AA&&AA!==Ua;)iA.push({encodedTokenAttributes:AA.tokenAttributes,scopeNames:AA.scopePath.getExtensionIfDefined(((aA=AA.parent)==null?void 0:aA.scopePath)??null)}),AA=AA.parent;return AA===Ua?iA.reverse():void 0}}const Qe$8=class vH{constructor(Ua,aA,iA,AA,sA,oA,dA,gA){nA(this,"parent"),nA(this,"ruleId"),nA(this,"beginRuleCapturedEOL"),nA(this,"endRule"),nA(this,"nameScopesList"),nA(this,"contentNameScopesList"),nA(this,"_stackElementBrand"),nA(this,"_enterPos"),nA(this,"_anchorPos"),nA(this,"depth"),this.parent=Ua,this.ruleId=aA,this.beginRuleCapturedEOL=sA,this.endRule=oA,this.nameScopesList=dA,this.contentNameScopesList=gA,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=iA,this._anchorPos=AA}equals(Ua){return Ua===null?!1:vH._equals(this,Ua)}static _equals(Ua,aA){return Ua===aA?!0:this._structuralEquals(Ua,aA)?AttributedScopeStack.equals(Ua.contentNameScopesList,aA.contentNameScopesList):!1}static _structuralEquals(Ua,aA){do{if(Ua===aA||!Ua&&!aA)return!0;if(!Ua||!aA||Ua.depth!==aA.depth||Ua.ruleId!==aA.ruleId||Ua.endRule!==aA.endRule)return!1;Ua=Ua.parent,aA=aA.parent}while(!0)}clone(){return this}static _reset(Ua){for(;Ua;)Ua._enterPos=-1,Ua._anchorPos=-1,Ua=Ua.parent}reset(){vH._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(Ua,aA,iA,AA,sA,oA,dA){return new vH(this,Ua,aA,iA,AA,sA,oA,dA)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(Ua){return Ua.getRule(this.ruleId)}toString(){const Ua=[];return this._writeString(Ua,0),"["+Ua.join(",")+"]"}_writeString(Ua,aA){var iA,AA;return this.parent&&(aA=this.parent._writeString(Ua,aA)),Ua[aA++]=`(${this.ruleId}, ${(iA=this.nameScopesList)==null?void 0:iA.toString()}, ${(AA=this.contentNameScopesList)==null?void 0:AA.toString()})`,aA}withContentNameScopesList(Ua){return this.contentNameScopesList===Ua?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,Ua)}withEndRule(Ua){return this.endRule===Ua?this:new vH(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,Ua,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(Ua){let aA=this;for(;aA&&aA._enterPos===Ua._enterPos;){if(aA.ruleId===Ua.ruleId)return!0;aA=aA.parent}return!1}toStateStackFrame(){var Ua,aA,iA;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((aA=this.nameScopesList)==null?void 0:aA.getExtensionIfDefined(((Ua=this.parent)==null?void 0:Ua.nameScopesList)??null))??[],contentNameScopesList:((iA=this.contentNameScopesList)==null?void 0:iA.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(Ua,aA){const iA=AttributedScopeStack.fromExtension((Ua==null?void 0:Ua.nameScopesList)??null,aA.nameScopesList);return new vH(Ua,aA.ruleId,aA.enterPos??-1,aA.anchorPos??-1,aA.beginRuleCapturedEOL,aA.endRule,iA,AttributedScopeStack.fromExtension(iA,aA.contentNameScopesList))}};nA(Qe$8,"NULL",new Qe$8(null,0,0,0,!1,null,null,null));let StateStackImpl=Qe$8;class BalancedBracketSelectors{constructor(Ua,aA){nA(this,"balancedBracketScopes"),nA(this,"unbalancedBracketScopes"),nA(this,"allowAny",!1),this.balancedBracketScopes=Ua.flatMap(iA=>iA==="*"?(this.allowAny=!0,[]):createMatchers(iA,nameMatcher).map(AA=>AA.matcher)),this.unbalancedBracketScopes=aA.flatMap(iA=>createMatchers(iA,nameMatcher).map(AA=>AA.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(Ua){for(const aA of this.unbalancedBracketScopes)if(aA(Ua))return!1;for(const aA of this.balancedBracketScopes)if(aA(Ua))return!0;return this.allowAny}}class LineTokens{constructor(Ua,aA,iA,AA){nA(this,"balancedBracketSelectors"),nA(this,"_emitBinaryTokens"),nA(this,"_lineText"),nA(this,"_tokens"),nA(this,"_binaryTokens"),nA(this,"_lastTokenEndIndex"),nA(this,"_tokenTypeOverrides"),this.balancedBracketSelectors=AA,this._emitBinaryTokens=Ua,this._tokenTypeOverrides=iA,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(Ua,aA){this.produceFromScopes(Ua.contentNameScopesList,aA)}produceFromScopes(Ua,aA){var iA;if(this._lastTokenEndIndex>=aA)return;if(this._emitBinaryTokens){let sA=(Ua==null?void 0:Ua.tokenAttributes)??0,oA=!1;if((iA=this.balancedBracketSelectors)!=null&&iA.matchesAlways&&(oA=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const dA=(Ua==null?void 0:Ua.getScopeNames())??[];for(const gA of this._tokenTypeOverrides)gA.matcher(dA)&&(sA=EncodedTokenAttributes.set(sA,0,gA.type,null,-1,0,0));this.balancedBracketSelectors&&(oA=this.balancedBracketSelectors.match(dA))}if(oA&&(sA=EncodedTokenAttributes.set(sA,0,8,oA,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===sA){this._lastTokenEndIndex=aA;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(sA),this._lastTokenEndIndex=aA;return}const AA=(Ua==null?void 0:Ua.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:aA,scopes:AA}),this._lastTokenEndIndex=aA}getResult(Ua,aA){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===aA-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(Ua,aA),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(Ua,aA){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===aA-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(Ua,aA),this._binaryTokens[this._binaryTokens.length-2]=0);const iA=new Uint32Array(this._binaryTokens.length);for(let AA=0,sA=this._binaryTokens.length;AA<sA;AA++)iA[AA]=this._binaryTokens[AA];return iA}}class SyncRegistry{constructor(Ua,aA){nA(this,"_onigLibPromise"),nA(this,"_grammars",new Map),nA(this,"_rawGrammars",new Map),nA(this,"_injectionGrammars",new Map),nA(this,"_theme"),this._onigLibPromise=aA,this._theme=Ua}dispose(){for(const Ua of this._grammars.values())Ua.dispose()}setTheme(Ua){this._theme=Ua}getColorMap(){return this._theme.getColorMap()}addGrammar(Ua,aA){this._rawGrammars.set(Ua.scopeName,Ua),aA&&this._injectionGrammars.set(Ua.scopeName,aA)}lookup(Ua){return this._rawGrammars.get(Ua)}injections(Ua){return this._injectionGrammars.get(Ua)}getDefaults(){return this._theme.getDefaults()}themeMatch(Ua){return this._theme.match(Ua)}async grammarForScopeName(Ua,aA,iA,AA,sA){if(!this._grammars.has(Ua)){let oA=this._rawGrammars.get(Ua);if(!oA)return null;this._grammars.set(Ua,createGrammar(Ua,oA,aA,iA,AA,sA,this,await this._onigLibPromise))}return this._grammars.get(Ua)}}let Registry$1=class{constructor(Ea){nA(this,"_options"),nA(this,"_syncRegistry"),nA(this,"_ensureGrammarCache"),this._options=Ea,this._syncRegistry=new SyncRegistry(Theme.createFromRawTheme(Ea.theme,Ea.colorMap),Ea.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(Ea,Ua){this._syncRegistry.setTheme(Theme.createFromRawTheme(Ea,Ua))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(Ea,Ua,aA){return this.loadGrammarWithConfiguration(Ea,Ua,{embeddedLanguages:aA})}loadGrammarWithConfiguration(Ea,Ua,aA){return this._loadGrammar(Ea,Ua,aA.embeddedLanguages,aA.tokenTypes,new BalancedBracketSelectors(aA.balancedBracketSelectors||[],aA.unbalancedBracketSelectors||[]))}loadGrammar(Ea){return this._loadGrammar(Ea,0,null,null,null)}async _loadGrammar(Ea,Ua,aA,iA,AA){const sA=new ScopeDependencyProcessor(this._syncRegistry,Ea);for(;sA.Q.length>0;)await Promise.all(sA.Q.map(oA=>this._loadSingleGrammar(oA.scopeName))),sA.processQueue();return this._grammarForScopeName(Ea,Ua,aA,iA,AA)}async _loadSingleGrammar(Ea){return this._ensureGrammarCache.has(Ea)||this._ensureGrammarCache.set(Ea,this._doLoadSingleGrammar(Ea)),this._ensureGrammarCache.get(Ea)}async _doLoadSingleGrammar(Ea){const Ua=await this._options.loadGrammar(Ea);if(Ua){const aA=typeof this._options.getInjections=="function"?this._options.getInjections(Ea):void 0;this._syncRegistry.addGrammar(Ua,aA)}}async addGrammar(Ea,Ua=[],aA=0,iA=null){return this._syncRegistry.addGrammar(Ea,Ua),await this._grammarForScopeName(Ea.scopeName,aA,iA)}_grammarForScopeName(Ea,Ua=0,aA=null,iA=null,AA=null){return this._syncRegistry.grammarForScopeName(Ea,Ua,aA,iA,AA)}};const INITIAL=StateStackImpl.NULL,MetadataConsts={LANGUAGEID_MASK:255,TOKEN_TYPE_MASK:768,BALANCED_BRACKETS_MASK:1024,FONT_STYLE_MASK:14336,FOREGROUND_MASK:8372224,BACKGROUND_MASK:4286578688,LANGUAGEID_OFFSET:0,TOKEN_TYPE_OFFSET:8,BALANCED_BRACKETS_OFFSET:10,FONT_STYLE_OFFSET:11,FOREGROUND_OFFSET:15,BACKGROUND_OFFSET:24};class StackElementMetadata{static toBinaryStr(Ua){let aA=Ua.toString(2);for(;aA.length<32;)aA=`0${aA}`;return aA}static getLanguageId(Ua){return(Ua&MetadataConsts.LANGUAGEID_MASK)>>>MetadataConsts.LANGUAGEID_OFFSET}static getTokenType(Ua){return(Ua&MetadataConsts.TOKEN_TYPE_MASK)>>>MetadataConsts.TOKEN_TYPE_OFFSET}static getFontStyle(Ua){return(Ua&MetadataConsts.FONT_STYLE_MASK)>>>MetadataConsts.FONT_STYLE_OFFSET}static getForeground(Ua){return(Ua&MetadataConsts.FOREGROUND_MASK)>>>MetadataConsts.FOREGROUND_OFFSET}static getBackground(Ua){return(Ua&MetadataConsts.BACKGROUND_MASK)>>>MetadataConsts.BACKGROUND_OFFSET}static containsBalancedBrackets(Ua){return(Ua&MetadataConsts.BALANCED_BRACKETS_MASK)!==0}static set(Ua,aA,iA,AA,sA,oA){let dA=StackElementMetadata.getLanguageId(Ua),gA=StackElementMetadata.getTokenType(Ua),hA=StackElementMetadata.getFontStyle(Ua),fA=StackElementMetadata.getForeground(Ua),wA=StackElementMetadata.getBackground(Ua);const CA=StackElementMetadata.containsBalancedBrackets(Ua)?1:0;return aA!==0&&(dA=aA),iA!==0&&(gA=iA===8?0:iA),AA!==FontStyle.NotSet&&(hA=AA),sA!==0&&(fA=sA),oA!==0&&(wA=oA),(dA<<MetadataConsts.LANGUAGEID_OFFSET|gA<<MetadataConsts.TOKEN_TYPE_OFFSET|hA<<MetadataConsts.FONT_STYLE_OFFSET|CA<<MetadataConsts.BALANCED_BRACKETS_OFFSET|fA<<MetadataConsts.FOREGROUND_OFFSET|wA<<MetadataConsts.BACKGROUND_OFFSET)>>>0}}function splitLines(Ea,Ua=!1){var aA;const iA=Ea.split(/(\r?\n)/g);let AA=0;const sA=[];for(let oA=0;oA<iA.length;oA+=2){const dA=Ua?iA[oA]+(iA[oA+1]||""):iA[oA];sA.push([dA,AA]),AA+=iA[oA].length,AA+=((aA=iA[oA+1])==null?void 0:aA.length)||0}return sA}function isPlainLang(Ea){return!Ea||["plaintext","txt","text","plain"].includes(Ea)}function isSpecialLang(Ea){return Ea==="ansi"||isPlainLang(Ea)}function isNoneTheme(Ea){return Ea==="none"}function isSpecialTheme(Ea){return isNoneTheme(Ea)}function addClassToHast(Ea,Ua){var aA;if(!Ua)return Ea;Ea.properties||(Ea.properties={}),(aA=Ea.properties).class||(aA.class=[]),typeof Ea.properties.class=="string"&&(Ea.properties.class=Ea.properties.class.split(/\s+/g)),Array.isArray(Ea.properties.class)||(Ea.properties.class=[]);const iA=Array.isArray(Ua)?Ua:Ua.split(/\s+/g);for(const AA of iA)AA&&!Ea.properties.class.includes(AA)&&Ea.properties.class.push(AA);return Ea}function splitToken(Ea,Ua){let aA=0;const iA=[];for(const AA of Ua)AA>aA&&iA.push({...Ea,content:Ea.content.slice(aA,AA),offset:Ea.offset+aA}),aA=AA;return aA<Ea.content.length&&iA.push({...Ea,content:Ea.content.slice(aA),offset:Ea.offset+aA}),iA}function splitTokens(Ea,Ua){const aA=Array.from(Ua instanceof Set?Ua:new Set(Ua)).sort((iA,AA)=>iA-AA);return aA.length?Ea.map(iA=>iA.flatMap(AA=>{const sA=aA.filter(oA=>AA.offset<oA&&oA<AA.offset+AA.content.length).map(oA=>oA-AA.offset).sort((oA,dA)=>oA-dA);return sA.length?splitToken(AA,sA):AA})):Ea}function resolveColorReplacements(Ea,Ua){const aA=typeof Ea=="string"?{}:{...Ea.colorReplacements},iA=typeof Ea=="string"?Ea:Ea.name;for(const[AA,sA]of Object.entries((Ua==null?void 0:Ua.colorReplacements)||{}))typeof sA=="string"?aA[AA]=sA:AA===iA&&Object.assign(aA,sA);return aA}function applyColorReplacements(Ea,Ua){return Ea&&((Ua==null?void 0:Ua[Ea==null?void 0:Ea.toLowerCase()])||Ea)}function getTokenStyleObject(Ea){const Ua={};return Ea.color&&(Ua.color=Ea.color),Ea.bgColor&&(Ua["background-color"]=Ea.bgColor),Ea.fontStyle&&(Ea.fontStyle&FontStyle.Italic&&(Ua["font-style"]="italic"),Ea.fontStyle&FontStyle.Bold&&(Ua["font-weight"]="bold"),Ea.fontStyle&FontStyle.Underline&&(Ua["text-decoration"]="underline")),Ua}function stringifyTokenStyle(Ea){return Object.entries(Ea).map(([Ua,aA])=>`${Ua}:${aA}`).join(";")}function createPositionConverter(Ea){const Ua=splitLines(Ea,!0).map(([AA])=>AA);function aA(AA){let sA=AA,oA=0;for(const dA of Ua){if(sA<dA.length)break;sA-=dA.length,oA++}return{line:oA,character:sA}}function iA(AA,sA){let oA=0;for(let dA=0;dA<AA;dA++)oA+=Ua[dA].length;return oA+=sA,oA}return{lines:Ua,indexToPos:aA,posToIndex:iA}}var namedColors=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],decorations={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function findSequence(Ea,Ua){const aA=Ea.indexOf("\x1B[",Ua);if(aA!==-1){const iA=Ea.indexOf("m",aA);return{sequence:Ea.substring(aA+2,iA).split(";"),startPosition:aA,position:iA+1}}return{position:Ea.length}}function parseColor(Ea,Ua){let aA=1;const iA=Ea[Ua+aA++];let AA;if(iA==="2"){const sA=[Ea[Ua+aA++],Ea[Ua+aA++],Ea[Ua+aA]].map(oA=>Number.parseInt(oA));sA.length===3&&!sA.some(oA=>Number.isNaN(oA))&&(AA={type:"rgb",rgb:sA})}else if(iA==="5"){const sA=Number.parseInt(Ea[Ua+aA]);Number.isNaN(sA)||(AA={type:"table",index:Number(sA)})}return[aA,AA]}function parseSequence(Ea){const Ua=[];for(let aA=0;aA<Ea.length;aA++){const iA=Ea[aA],AA=Number.parseInt(iA);if(!Number.isNaN(AA))if(AA===0)Ua.push({type:"resetAll"});else if(AA<=9)decorations[AA]&&Ua.push({type:"setDecoration",value:decorations[AA]});else if(AA<=29){const sA=decorations[AA-20];sA&&Ua.push({type:"resetDecoration",value:sA})}else if(AA<=37)Ua.push({type:"setForegroundColor",value:{type:"named",name:namedColors[AA-30]}});else if(AA===38){const[sA,oA]=parseColor(Ea,aA);oA&&Ua.push({type:"setForegroundColor",value:oA}),aA+=sA}else if(AA===39)Ua.push({type:"resetForegroundColor"});else if(AA<=47)Ua.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[AA-40]}});else if(AA===48){const[sA,oA]=parseColor(Ea,aA);oA&&Ua.push({type:"setBackgroundColor",value:oA}),aA+=sA}else AA===49?Ua.push({type:"resetBackgroundColor"}):AA>=90&&AA<=97?Ua.push({type:"setForegroundColor",value:{type:"named",name:namedColors[AA-90+8]}}):AA>=100&&AA<=107&&Ua.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[AA-100+8]}})}return Ua}function createAnsiSequenceParser(){let Ea=null,Ua=null,aA=new Set;return{parse(iA){const AA=[];let sA=0;do{const oA=findSequence(iA,sA),dA=oA.sequence?iA.substring(sA,oA.startPosition):iA.substring(sA);if(dA.length>0&&AA.push({value:dA,foreground:Ea,background:Ua,decorations:new Set(aA)}),oA.sequence){const gA=parseSequence(oA.sequence);for(const hA of gA)hA.type==="resetAll"?(Ea=null,Ua=null,aA.clear()):hA.type==="resetForegroundColor"?Ea=null:hA.type==="resetBackgroundColor"?Ua=null:hA.type==="resetDecoration"&&aA.delete(hA.value);for(const hA of gA)hA.type==="setForegroundColor"?Ea=hA.value:hA.type==="setBackgroundColor"?Ua=hA.value:hA.type==="setDecoration"&&aA.add(hA.value)}sA=oA.position}while(sA<iA.length);return AA}}}var defaultNamedColorsMap={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function createColorPalette(Ea=defaultNamedColorsMap){function Ua(dA){return Ea[dA]}function aA(dA){return`#${dA.map(gA=>Math.max(0,Math.min(gA,255)).toString(16).padStart(2,"0")).join("")}`}let iA;function AA(){if(iA)return iA;iA=[];for(let hA=0;hA<namedColors.length;hA++)iA.push(Ua(namedColors[hA]));let dA=[0,95,135,175,215,255];for(let hA=0;hA<6;hA++)for(let fA=0;fA<6;fA++)for(let wA=0;wA<6;wA++)iA.push(aA([dA[hA],dA[fA],dA[wA]]));let gA=8;for(let hA=0;hA<24;hA++,gA+=10)iA.push(aA([gA,gA,gA]));return iA}function sA(dA){return AA()[dA]}function oA(dA){switch(dA.type){case"named":return Ua(dA.name);case"rgb":return aA(dA.rgb);case"table":return sA(dA.index)}}return{value:oA}}function tokenizeAnsiWithTheme(Ea,Ua,aA){const iA=resolveColorReplacements(Ea,aA),AA=splitLines(Ua),sA=createColorPalette(Object.fromEntries(namedColors.map(dA=>{var gA;return[dA,(gA=Ea.colors)==null?void 0:gA[`terminal.ansi${dA[0].toUpperCase()}${dA.substring(1)}`]]}))),oA=createAnsiSequenceParser();return AA.map(dA=>oA.parse(dA[0]).map(gA=>{let hA,fA;gA.decorations.has("reverse")?(hA=gA.background?sA.value(gA.background):Ea.bg,fA=gA.foreground?sA.value(gA.foreground):Ea.fg):(hA=gA.foreground?sA.value(gA.foreground):Ea.fg,fA=gA.background?sA.value(gA.background):void 0),hA=applyColorReplacements(hA,iA),fA=applyColorReplacements(fA,iA),gA.decorations.has("dim")&&(hA=dimColor(hA));let wA=FontStyle.None;return gA.decorations.has("bold")&&(wA|=FontStyle.Bold),gA.decorations.has("italic")&&(wA|=FontStyle.Italic),gA.decorations.has("underline")&&(wA|=FontStyle.Underline),{content:gA.value,offset:dA[1],color:hA,bgColor:fA,fontStyle:wA}}))}function dimColor(Ea){const Ua=Ea.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(Ua)if(Ua[3]){const iA=Math.round(Number.parseInt(Ua[3],16)/2).toString(16).padStart(2,"0");return`#${Ua[1]}${Ua[2]}${iA}`}else return Ua[2]?`#${Ua[1]}${Ua[2]}80`:`#${Array.from(Ua[1]).map(iA=>`${iA}${iA}`).join("")}80`;const aA=Ea.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return aA?`var(${aA[1]}-dim)`:Ea}function codeToTokensBase(Ea,Ua,aA={}){const{lang:iA="text",theme:AA=Ea.getLoadedThemes()[0]}=aA;if(isPlainLang(iA)||isNoneTheme(AA))return splitLines(Ua).map(gA=>[{content:gA[0],offset:gA[1]}]);const{theme:sA,colorMap:oA}=Ea.setTheme(AA);if(iA==="ansi")return tokenizeAnsiWithTheme(sA,Ua,aA);const dA=Ea.getLanguage(iA);return tokenizeWithTheme(Ua,dA,sA,oA,aA)}function tokenizeWithTheme(Ea,Ua,aA,iA,AA){const sA=resolveColorReplacements(aA,AA),{tokenizeMaxLineLength:oA=0,tokenizeTimeLimit:dA=500}=AA,gA=splitLines(Ea);let hA=INITIAL,fA=[];const wA=[],CA=[];if(AA.includeExplanation)for(const _A of aA.settings){let BA;switch(typeof _A.scope){case"string":BA=_A.scope.split(/,/).map(IA=>IA.trim());break;case"object":BA=_A.scope;break;default:continue}CA.push({settings:_A,selectors:BA.map(IA=>IA.split(/ /))})}for(let _A=0,BA=gA.length;_A<BA;_A++){const[IA,$A]=gA[_A];if(IA===""){fA=[],wA.push([]);continue}if(oA>0&&IA.length>=oA){fA=[],wA.push([{content:IA,offset:$A,color:"",fontStyle:0}]);continue}let DA,FA,NA;AA.includeExplanation&&(DA=Ua.tokenizeLine(IA,hA),FA=DA.tokens,NA=0);const TA=Ua.tokenizeLine2(IA,hA,dA),PA=TA.tokens.length/2;for(let HA=0;HA<PA;HA++){const RA=TA.tokens[2*HA],SA=HA+1<PA?TA.tokens[2*HA+2]:IA.length;if(RA===SA)continue;const qA=TA.tokens[2*HA+1],LA=applyColorReplacements(iA[StackElementMetadata.getForeground(qA)],sA),KA=StackElementMetadata.getFontStyle(qA),jA={content:IA.substring(RA,SA),offset:$A+RA,color:LA,fontStyle:KA};if(AA.includeExplanation){jA.explanation=[];let UA=0;for(;RA+UA<SA;){const _l=FA[NA],Fl=IA.substring(_l.startIndex,_l.endIndex);UA+=Fl.length,jA.explanation.push({content:Fl,scopes:explainThemeScopes(CA,_l.scopes)}),NA+=1}}fA.push(jA)}wA.push(fA),fA=[],hA=TA.ruleStack}return wA}function explainThemeScopes(Ea,Ua){const aA=[];for(let iA=0,AA=Ua.length;iA<AA;iA++){const sA=Ua.slice(0,iA),oA=Ua[iA];aA[iA]={scopeName:oA,themeMatches:explainThemeScope(Ea,oA,sA)}}return aA}function matchesOne(Ea,Ua){return Ea===Ua||Ua.substring(0,Ea.length)===Ea&&Ua[Ea.length]==="."}function matches(Ea,Ua,aA){if(!matchesOne(Ea[Ea.length-1],Ua))return!1;let iA=Ea.length-2,AA=aA.length-1;for(;iA>=0&&AA>=0;)matchesOne(Ea[iA],aA[AA])&&(iA-=1),AA-=1;return iA===-1}function explainThemeScope(Ea,Ua,aA){const iA=[];for(const{selectors:AA,settings:sA}of Ea)for(const oA of AA)if(matches(oA,Ua,aA)){iA.push(sA);break}return iA}function codeToTokensWithThemes(Ea,Ua,aA){const iA=Object.entries(aA.themes).filter(sA=>sA[1]).map(sA=>({color:sA[0],theme:sA[1]})),AA=syncThemesTokenization(...iA.map(sA=>codeToTokensBase(Ea,Ua,{...aA,theme:sA.theme})));return AA[0].map((sA,oA)=>sA.map((dA,gA)=>{const hA={content:dA.content,variants:{},offset:dA.offset};return AA.forEach((fA,wA)=>{const{content:CA,explanation:_A,offset:BA,...IA}=fA[oA][gA];hA.variants[iA[wA].color]=IA}),hA}))}function syncThemesTokenization(...Ea){const Ua=Ea.map(()=>[]),aA=Ea.length;for(let iA=0;iA<Ea[0].length;iA++){const AA=Ea.map(gA=>gA[iA]),sA=Ua.map(()=>[]);Ua.forEach((gA,hA)=>gA.push(sA[hA]));const oA=AA.map(()=>0),dA=AA.map(gA=>gA[0]);for(;dA.every(gA=>gA);){const gA=Math.min(...dA.map(hA=>hA.content.length));for(let hA=0;hA<aA;hA++){const fA=dA[hA];fA.content.length===gA?(sA[hA].push(fA),oA[hA]+=1,dA[hA]=AA[hA][oA[hA]]):(sA[hA].push({...fA,content:fA.content.slice(0,gA)}),dA[hA]={...fA,content:fA.content.slice(gA),offset:fA.offset+gA})}}}return Ua}class ShikiError extends Error{constructor(Ua){super(Ua),this.name="ShikiError"}}function codeToTokens(Ea,Ua,aA){let iA,AA,sA,oA,dA;if("themes"in aA){const{defaultColor:gA="light",cssVariablePrefix:hA="--shiki-"}=aA,fA=Object.entries(aA.themes).filter(IA=>IA[1]).map(IA=>({color:IA[0],theme:IA[1]})).sort((IA,$A)=>IA.color===gA?-1:$A.color===gA?1:0);if(fA.length===0)throw new ShikiError("`themes` option must not be empty");const wA=codeToTokensWithThemes(Ea,Ua,aA);if(gA&&!fA.find(IA=>IA.color===gA))throw new ShikiError(`\`themes\` option must contain the defaultColor key \`${gA}\``);const CA=fA.map(IA=>Ea.getTheme(IA.theme)),_A=fA.map(IA=>IA.color);sA=wA.map(IA=>IA.map($A=>mergeToken($A,_A,hA,gA)));const BA=fA.map(IA=>resolveColorReplacements(IA.theme,aA));AA=fA.map((IA,$A)=>($A===0&&gA?"":`${hA+IA.color}:`)+(applyColorReplacements(CA[$A].fg,BA[$A])||"inherit")).join(";"),iA=fA.map((IA,$A)=>($A===0&&gA?"":`${hA+IA.color}-bg:`)+(applyColorReplacements(CA[$A].bg,BA[$A])||"inherit")).join(";"),oA=`shiki-themes ${CA.map(IA=>IA.name).join(" ")}`,dA=gA?void 0:[AA,iA].join(";")}else if("theme"in aA){const gA=resolveColorReplacements(aA.theme,aA.colorReplacements);sA=codeToTokensBase(Ea,Ua,aA);const hA=Ea.getTheme(aA.theme);iA=applyColorReplacements(hA.bg,gA),AA=applyColorReplacements(hA.fg,gA),oA=hA.name}else throw new ShikiError("Invalid options, either `theme` or `themes` must be provided");return{tokens:sA,fg:AA,bg:iA,themeName:oA,rootStyle:dA}}function mergeToken(Ea,Ua,aA,iA){const AA={content:Ea.content,explanation:Ea.explanation,offset:Ea.offset},sA=Ua.map(gA=>getTokenStyleObject(Ea.variants[gA])),oA=new Set(sA.flatMap(gA=>Object.keys(gA))),dA=sA.reduce((gA,hA,fA)=>{for(const wA of oA){const CA=hA[wA]||"inherit";if(fA===0&&iA)gA[wA]=CA;else{const _A=wA==="color"?"":wA==="background-color"?"-bg":`-${wA}`,BA=aA+Ua[fA]+(wA==="color"?"":_A);gA[wA]?gA[wA]+=`;${BA}:${CA}`:gA[wA]=`${BA}:${CA}`}}return gA},{});return AA.htmlStyle=iA?stringifyTokenStyle(dA):Object.values(dA).join(";"),AA}function transformerDecorations(){const Ea=new WeakMap;function Ua(iA){if(!Ea.has(iA.meta)){let AA=function(dA){return typeof dA=="number"?{...sA.indexToPos(dA),offset:dA}:{...dA,offset:sA.posToIndex(dA.line,dA.character)}};const sA=createPositionConverter(iA.source),oA=(iA.options.decorations||[]).map(dA=>({...dA,start:AA(dA.start),end:AA(dA.end)}));aA(oA),Ea.set(iA.meta,{decorations:oA,converter:sA,source:iA.source})}return Ea.get(iA.meta)}function aA(iA){for(let AA=0;AA<iA.length;AA++){const sA=iA[AA];if(sA.start.offset>sA.end.offset)throw new ShikiError(`Invalid decoration range: ${JSON.stringify(sA.start)} - ${JSON.stringify(sA.end)}`);for(let oA=AA+1;oA<iA.length;oA++){const dA=iA[oA],gA=sA.start.offset<dA.start.offset&&dA.start.offset<sA.end.offset,hA=sA.start.offset<dA.end.offset&&dA.end.offset<sA.end.offset,fA=dA.start.offset<sA.start.offset&&sA.start.offset<dA.end.offset,wA=dA.start.offset<sA.end.offset&&sA.end.offset<dA.end.offset;if(gA||hA||fA||wA){if(hA&&hA||fA&&wA)continue;throw new ShikiError(`Decorations ${JSON.stringify(sA.start)} and ${JSON.stringify(dA.start)} intersect.`)}}}}return{name:"shiki:decorations",tokens(iA){var AA;if(!((AA=this.options.decorations)!=null&&AA.length))return;const sA=Ua(this).decorations.flatMap(oA=>[oA.start.offset,oA.end.offset]);return splitTokens(iA,sA)},code(iA){var AA;if(!((AA=this.options.decorations)!=null&&AA.length))return;const sA=Ua(this),oA=Array.from(iA.children).filter(CA=>CA.type==="element"&&CA.tagName==="span");if(oA.length!==sA.converter.lines.length)throw new ShikiError(`Number of lines in code element (${oA.length}) does not match the number of lines in the source (${sA.converter.lines.length}). Failed to apply decorations.`);function dA(CA,_A,BA,IA){const $A=oA[CA];let DA="",FA=-1,NA=-1;function TA(HA){return HA.type==="text"?HA.value:HA.type==="element"?HA.children.map(TA).join(""):""}if(_A===0&&(FA=0),BA===0&&(NA=0),BA===Number.POSITIVE_INFINITY&&(NA=$A.children.length),FA===-1||NA===-1)for(let HA=0;HA<$A.children.length;HA++)DA+=TA($A.children[HA]),FA===-1&&DA.length===_A&&(FA=HA+1),NA===-1&&DA.length===BA&&(NA=HA+1);if(FA===-1)throw new ShikiError(`Failed to find start index for decoration ${JSON.stringify(IA.start)}`);if(NA===-1)throw new ShikiError(`Failed to find end index for decoration ${JSON.stringify(IA.end)}`);const PA=$A.children.slice(FA,NA);if(!IA.alwaysWrap&&PA.length===$A.children.length)hA($A,IA,"line");else if(!IA.alwaysWrap&&PA.length===1&&PA[0].type==="element")hA(PA[0],IA,"token");else{const HA={type:"element",tagName:"span",properties:{},children:PA};hA(HA,IA,"wrapper"),$A.children.splice(FA,PA.length,HA)}}function gA(CA,_A){oA[CA]=hA(oA[CA],_A,"line")}function hA(CA,_A,BA){var IA;const $A=_A.properties||{},DA=_A.transform||(FA=>FA);return CA.tagName=_A.tagName||"span",CA.properties={...CA.properties,...$A,class:CA.properties.class},(IA=_A.properties)!=null&&IA.class&&addClassToHast(CA,_A.properties.class),CA=DA(CA,BA)||CA,CA}const fA=[],wA=sA.decorations.sort((CA,_A)=>_A.start.offset-CA.start.offset);for(const CA of wA){const{start:_A,end:BA}=CA;if(_A.line===BA.line)dA(_A.line,_A.character,BA.character,CA);else if(_A.line<BA.line){dA(_A.line,_A.character,Number.POSITIVE_INFINITY,CA);for(let IA=_A.line+1;IA<BA.line;IA++)fA.unshift(()=>gA(IA,CA));dA(BA.line,0,BA.character,CA)}}fA.forEach(CA=>CA())}}}const builtInTransformers=[transformerDecorations()];function getTransformers(Ea){return[...Ea.transformers||[],...builtInTransformers]}function codeToHast(Ea,Ua,aA,iA={meta:{},options:aA,codeToHast:(AA,sA)=>codeToHast(Ea,AA,sA),codeToTokens:(AA,sA)=>codeToTokens(Ea,AA,sA)}){var AA,sA;let oA=Ua;for(const BA of getTransformers(aA))oA=((AA=BA.preprocess)==null?void 0:AA.call(iA,oA,aA))||oA;let{tokens:dA,fg:gA,bg:hA,themeName:fA,rootStyle:wA}=codeToTokens(Ea,oA,aA);const{mergeWhitespaces:CA=!0}=aA;CA===!0?dA=mergeWhitespaceTokens(dA):CA==="never"&&(dA=splitWhitespaceTokens(dA));const _A={...iA,get source(){return oA}};for(const BA of getTransformers(aA))dA=((sA=BA.tokens)==null?void 0:sA.call(_A,dA))||dA;return tokensToHast(dA,{...aA,fg:gA,bg:hA,themeName:fA,rootStyle:wA},_A)}function tokensToHast(Ea,Ua,aA){var iA,AA,sA;const oA=getTransformers(Ua),dA=[],gA={type:"root",children:[]},{structure:hA="classic"}=Ua;let fA={type:"element",tagName:"pre",properties:{class:`shiki ${Ua.themeName||""}`,style:Ua.rootStyle||`background-color:${Ua.bg};color:${Ua.fg}`,tabindex:"0",...Object.fromEntries(Array.from(Object.entries(Ua.meta||{})).filter(([IA])=>!IA.startsWith("_")))},children:[]},wA={type:"element",tagName:"code",properties:{},children:dA};const CA=[],_A={...aA,structure:hA,addClassToHast,get source(){return aA.source},get tokens(){return Ea},get options(){return Ua},get root(){return gA},get pre(){return fA},get code(){return wA},get lines(){return CA}};if(Ea.forEach((IA,$A)=>{var DA,FA;$A&&(hA==="inline"?gA.children.push({type:"element",tagName:"br",properties:{},children:[]}):hA==="classic"&&dA.push({type:"text",value:`
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
`:">",AA},Renderer.prototype.renderInline=function(Ea,Ua,aA){let iA="";const AA=this.rules;for(let sA=0,oA=Ea.length;sA<oA;sA++){const dA=Ea[sA].type;typeof AA[dA]<"u"?iA+=AA[dA](Ea,sA,Ua,aA,this):iA+=this.renderToken(Ea,sA,Ua)}return iA},Renderer.prototype.renderInlineAsText=function(Ea,Ua,aA){let iA="";for(let AA=0,sA=Ea.length;AA<sA;AA++)switch(Ea[AA].type){case"text":iA+=Ea[AA].content;break;case"image":iA+=this.renderInlineAsText(Ea[AA].children,Ua,aA);break;case"html_inline":case"html_block":iA+=Ea[AA].content;break;case"softbreak":case"hardbreak":iA+=`
|
|
31
31
|
`;break}return iA},Renderer.prototype.render=function(Ea,Ua,aA){let iA="";const AA=this.rules;for(let sA=0,oA=Ea.length;sA<oA;sA++){const dA=Ea[sA].type;dA==="inline"?iA+=this.renderInline(Ea[sA].children,Ua,aA):typeof AA[dA]<"u"?iA+=AA[dA](Ea,sA,Ua,aA,this):iA+=this.renderToken(Ea,sA,Ua,aA)}return iA};function Ruler(){this.__rules__=[],this.__cache__=null}Ruler.prototype.__find__=function(Ea){for(let Ua=0;Ua<this.__rules__.length;Ua++)if(this.__rules__[Ua].name===Ea)return Ua;return-1},Ruler.prototype.__compile__=function(){const Ea=this,Ua=[""];Ea.__rules__.forEach(function(aA){aA.enabled&&aA.alt.forEach(function(iA){Ua.indexOf(iA)<0&&Ua.push(iA)})}),Ea.__cache__={},Ua.forEach(function(aA){Ea.__cache__[aA]=[],Ea.__rules__.forEach(function(iA){iA.enabled&&(aA&&iA.alt.indexOf(aA)<0||Ea.__cache__[aA].push(iA.fn))})})},Ruler.prototype.at=function(Ea,Ua,aA){const iA=this.__find__(Ea),AA=aA||{};if(iA===-1)throw new Error("Parser rule not found: "+Ea);this.__rules__[iA].fn=Ua,this.__rules__[iA].alt=AA.alt||[],this.__cache__=null},Ruler.prototype.before=function(Ea,Ua,aA,iA){const AA=this.__find__(Ea),sA=iA||{};if(AA===-1)throw new Error("Parser rule not found: "+Ea);this.__rules__.splice(AA,0,{name:Ua,enabled:!0,fn:aA,alt:sA.alt||[]}),this.__cache__=null},Ruler.prototype.after=function(Ea,Ua,aA,iA){const AA=this.__find__(Ea),sA=iA||{};if(AA===-1)throw new Error("Parser rule not found: "+Ea);this.__rules__.splice(AA+1,0,{name:Ua,enabled:!0,fn:aA,alt:sA.alt||[]}),this.__cache__=null},Ruler.prototype.push=function(Ea,Ua,aA){const iA=aA||{};this.__rules__.push({name:Ea,enabled:!0,fn:Ua,alt:iA.alt||[]}),this.__cache__=null},Ruler.prototype.enable=function(Ea,Ua){Array.isArray(Ea)||(Ea=[Ea]);const aA=[];return Ea.forEach(function(iA){const AA=this.__find__(iA);if(AA<0){if(Ua)return;throw new Error("Rules manager: invalid rule name "+iA)}this.__rules__[AA].enabled=!0,aA.push(iA)},this),this.__cache__=null,aA},Ruler.prototype.enableOnly=function(Ea,Ua){Array.isArray(Ea)||(Ea=[Ea]),this.__rules__.forEach(function(aA){aA.enabled=!1}),this.enable(Ea,Ua)},Ruler.prototype.disable=function(Ea,Ua){Array.isArray(Ea)||(Ea=[Ea]);const aA=[];return Ea.forEach(function(iA){const AA=this.__find__(iA);if(AA<0){if(Ua)return;throw new Error("Rules manager: invalid rule name "+iA)}this.__rules__[AA].enabled=!1,aA.push(iA)},this),this.__cache__=null,aA},Ruler.prototype.getRules=function(Ea){return this.__cache__===null&&this.__compile__(),this.__cache__[Ea]||[]};function Token(Ea,Ua,aA){this.type=Ea,this.tag=Ua,this.attrs=null,this.map=null,this.nesting=aA,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Token.prototype.attrIndex=function(Ea){if(!this.attrs)return-1;const Ua=this.attrs;for(let aA=0,iA=Ua.length;aA<iA;aA++)if(Ua[aA][0]===Ea)return aA;return-1},Token.prototype.attrPush=function(Ea){this.attrs?this.attrs.push(Ea):this.attrs=[Ea]},Token.prototype.attrSet=function(Ea,Ua){const aA=this.attrIndex(Ea),iA=[Ea,Ua];aA<0?this.attrPush(iA):this.attrs[aA]=iA},Token.prototype.attrGet=function(Ea){const Ua=this.attrIndex(Ea);let aA=null;return Ua>=0&&(aA=this.attrs[Ua][1]),aA},Token.prototype.attrJoin=function(Ea,Ua){const aA=this.attrIndex(Ea);aA<0?this.attrPush([Ea,Ua]):this.attrs[aA][1]=this.attrs[aA][1]+" "+Ua};function StateCore(Ea,Ua,aA){this.src=Ea,this.env=aA,this.tokens=[],this.inlineMode=!1,this.md=Ua}StateCore.prototype.Token=Token;const NEWLINES_RE=/\r\n?|\n/g,NULL_RE=/\0/g;function normalize(Ea){let Ua;Ua=Ea.src.replace(NEWLINES_RE,`
|
|
32
32
|
`),Ua=Ua.replace(NULL_RE,"�"),Ea.src=Ua}function block$1(Ea){let Ua;Ea.inlineMode?(Ua=new Ea.Token("inline","",0),Ua.content=Ea.src,Ua.map=[0,1],Ua.children=[],Ea.tokens.push(Ua)):Ea.md.block.parse(Ea.src,Ea.md,Ea.env,Ea.tokens)}function inline(Ea){const Ua=Ea.tokens;for(let aA=0,iA=Ua.length;aA<iA;aA++){const AA=Ua[aA];AA.type==="inline"&&Ea.md.inline.parse(AA.content,Ea.md,Ea.env,AA.children)}}function isLinkOpen$1(Ea){return/^<a[>\s]/i.test(Ea)}function isLinkClose$1(Ea){return/^<\/a\s*>/i.test(Ea)}function linkify$1(Ea){const Ua=Ea.tokens;if(Ea.md.options.linkify)for(let aA=0,iA=Ua.length;aA<iA;aA++){if(Ua[aA].type!=="inline"||!Ea.md.linkify.pretest(Ua[aA].content))continue;let AA=Ua[aA].children,sA=0;for(let oA=AA.length-1;oA>=0;oA--){const dA=AA[oA];if(dA.type==="link_close"){for(oA--;AA[oA].level!==dA.level&&AA[oA].type!=="link_open";)oA--;continue}if(dA.type==="html_inline"&&(isLinkOpen$1(dA.content)&&sA>0&&sA--,isLinkClose$1(dA.content)&&sA++),!(sA>0)&&dA.type==="text"&&Ea.md.linkify.test(dA.content)){const gA=dA.content;let hA=Ea.md.linkify.match(gA);const fA=[];let wA=dA.level,CA=0;hA.length>0&&hA[0].index===0&&oA>0&&AA[oA-1].type==="text_special"&&(hA=hA.slice(1));for(let _A=0;_A<hA.length;_A++){const BA=hA[_A].url,IA=Ea.md.normalizeLink(BA);if(!Ea.md.validateLink(IA))continue;let $A=hA[_A].text;hA[_A].schema?hA[_A].schema==="mailto:"&&!/^mailto:/i.test($A)?$A=Ea.md.normalizeLinkText("mailto:"+$A).replace(/^mailto:/,""):$A=Ea.md.normalizeLinkText($A):$A=Ea.md.normalizeLinkText("http://"+$A).replace(/^http:\/\//,"");const DA=hA[_A].index;if(DA>CA){const PA=new Ea.Token("text","",0);PA.content=gA.slice(CA,DA),PA.level=wA,fA.push(PA)}const FA=new Ea.Token("link_open","a",1);FA.attrs=[["href",IA]],FA.level=wA++,FA.markup="linkify",FA.info="auto",fA.push(FA);const NA=new Ea.Token("text","",0);NA.content=$A,NA.level=wA,fA.push(NA);const TA=new Ea.Token("link_close","a",-1);TA.level=--wA,TA.markup="linkify",TA.info="auto",fA.push(TA),CA=hA[_A].lastIndex}if(CA<gA.length){const _A=new Ea.Token("text","",0);_A.content=gA.slice(CA),_A.level=wA,fA.push(_A)}Ua[aA].children=AA=arrayReplaceAt(AA,oA,fA)}}}}const RARE_RE=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,SCOPED_ABBR_TEST_RE=/\((c|tm|r)\)/i,SCOPED_ABBR_RE=/\((c|tm|r)\)/ig,SCOPED_ABBR={c:"©",r:"®",tm:"™"};function replaceFn(Ea,Ua){return SCOPED_ABBR[Ua.toLowerCase()]}function replace_scoped(Ea){let Ua=0;for(let aA=Ea.length-1;aA>=0;aA--){const iA=Ea[aA];iA.type==="text"&&!Ua&&(iA.content=iA.content.replace(SCOPED_ABBR_RE,replaceFn)),iA.type==="link_open"&&iA.info==="auto"&&Ua--,iA.type==="link_close"&&iA.info==="auto"&&Ua++}}function replace_rare(Ea){let Ua=0;for(let aA=Ea.length-1;aA>=0;aA--){const iA=Ea[aA];iA.type==="text"&&!Ua&&RARE_RE.test(iA.content)&&(iA.content=iA.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),iA.type==="link_open"&&iA.info==="auto"&&Ua--,iA.type==="link_close"&&iA.info==="auto"&&Ua++}}function replace$1(Ea){let Ua;if(Ea.md.options.typographer)for(Ua=Ea.tokens.length-1;Ua>=0;Ua--)Ea.tokens[Ua].type==="inline"&&(SCOPED_ABBR_TEST_RE.test(Ea.tokens[Ua].content)&&replace_scoped(Ea.tokens[Ua].children),RARE_RE.test(Ea.tokens[Ua].content)&&replace_rare(Ea.tokens[Ua].children))}const QUOTE_TEST_RE=/['"]/,QUOTE_RE=/['"]/g,APOSTROPHE="’";function replaceAt(Ea,Ua,aA){return Ea.slice(0,Ua)+aA+Ea.slice(Ua+1)}function process_inlines(Ea,Ua){let aA;const iA=[];for(let AA=0;AA<Ea.length;AA++){const sA=Ea[AA],oA=Ea[AA].level;for(aA=iA.length-1;aA>=0&&!(iA[aA].level<=oA);aA--);if(iA.length=aA+1,sA.type!=="text")continue;let dA=sA.content,gA=0,hA=dA.length;e:for(;gA<hA;){QUOTE_RE.lastIndex=gA;const fA=QUOTE_RE.exec(dA);if(!fA)break;let wA=!0,CA=!0;gA=fA.index+1;const _A=fA[0]==="'";let BA=32;if(fA.index-1>=0)BA=dA.charCodeAt(fA.index-1);else for(aA=AA-1;aA>=0&&!(Ea[aA].type==="softbreak"||Ea[aA].type==="hardbreak");aA--)if(Ea[aA].content){BA=Ea[aA].content.charCodeAt(Ea[aA].content.length-1);break}let IA=32;if(gA<hA)IA=dA.charCodeAt(gA);else for(aA=AA+1;aA<Ea.length&&!(Ea[aA].type==="softbreak"||Ea[aA].type==="hardbreak");aA++)if(Ea[aA].content){IA=Ea[aA].content.charCodeAt(0);break}const $A=isMdAsciiPunct(BA)||isPunctChar(String.fromCharCode(BA)),DA=isMdAsciiPunct(IA)||isPunctChar(String.fromCharCode(IA)),FA=isWhiteSpace(BA),NA=isWhiteSpace(IA);if(NA?wA=!1:DA&&(FA||$A||(wA=!1)),FA?CA=!1:$A&&(NA||DA||(CA=!1)),IA===34&&fA[0]==='"'&&BA>=48&&BA<=57&&(CA=wA=!1),wA&&CA&&(wA=$A,CA=DA),!wA&&!CA){_A&&(sA.content=replaceAt(sA.content,fA.index,APOSTROPHE));continue}if(CA)for(aA=iA.length-1;aA>=0;aA--){let TA=iA[aA];if(iA[aA].level<oA)break;if(TA.single===_A&&iA[aA].level===oA){TA=iA[aA];let PA,HA;_A?(PA=Ua.md.options.quotes[2],HA=Ua.md.options.quotes[3]):(PA=Ua.md.options.quotes[0],HA=Ua.md.options.quotes[1]),sA.content=replaceAt(sA.content,fA.index,HA),Ea[TA.token].content=replaceAt(Ea[TA.token].content,TA.pos,PA),gA+=HA.length-1,TA.token===AA&&(gA+=PA.length-1),dA=sA.content,hA=dA.length,iA.length=aA;continue e}}wA?iA.push({token:AA,pos:fA.index,single:_A,level:oA}):CA&&_A&&(sA.content=replaceAt(sA.content,fA.index,APOSTROPHE))}}}function smartquotes(Ea){if(Ea.md.options.typographer)for(let Ua=Ea.tokens.length-1;Ua>=0;Ua--)Ea.tokens[Ua].type!=="inline"||!QUOTE_TEST_RE.test(Ea.tokens[Ua].content)||process_inlines(Ea.tokens[Ua].children,Ea)}function text_join(Ea){let Ua,aA;const iA=Ea.tokens,AA=iA.length;for(let sA=0;sA<AA;sA++){if(iA[sA].type!=="inline")continue;const oA=iA[sA].children,dA=oA.length;for(Ua=0;Ua<dA;Ua++)oA[Ua].type==="text_special"&&(oA[Ua].type="text");for(Ua=aA=0;Ua<dA;Ua++)oA[Ua].type==="text"&&Ua+1<dA&&oA[Ua+1].type==="text"?oA[Ua+1].content=oA[Ua].content+oA[Ua+1].content:(Ua!==aA&&(oA[aA]=oA[Ua]),aA++);Ua!==aA&&(oA.length=aA)}}const _rules$2=[["normalize",normalize],["block",block$1],["inline",inline],["linkify",linkify$1],["replacements",replace$1],["smartquotes",smartquotes],["text_join",text_join]];function Core(){this.ruler=new Ruler;for(let Ea=0;Ea<_rules$2.length;Ea++)this.ruler.push(_rules$2[Ea][0],_rules$2[Ea][1])}Core.prototype.process=function(Ea){const Ua=this.ruler.getRules("");for(let aA=0,iA=Ua.length;aA<iA;aA++)Ua[aA](Ea)},Core.prototype.State=StateCore;function StateBlock(Ea,Ua,aA,iA){this.src=Ea,this.md=Ua,this.env=aA,this.tokens=iA,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const AA=this.src;for(let sA=0,oA=0,dA=0,gA=0,hA=AA.length,fA=!1;oA<hA;oA++){const wA=AA.charCodeAt(oA);if(!fA)if(isSpace(wA)){dA++,wA===9?gA+=4-gA%4:gA++;continue}else fA=!0;(wA===10||oA===hA-1)&&(wA!==10&&oA++,this.bMarks.push(sA),this.eMarks.push(oA),this.tShift.push(dA),this.sCount.push(gA),this.bsCount.push(0),fA=!1,dA=0,gA=0,sA=oA+1)}this.bMarks.push(AA.length),this.eMarks.push(AA.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}StateBlock.prototype.push=function(Ea,Ua,aA){const iA=new Token(Ea,Ua,aA);return iA.block=!0,aA<0&&this.level--,iA.level=this.level,aA>0&&this.level++,this.tokens.push(iA),iA},StateBlock.prototype.isEmpty=function(Ea){return this.bMarks[Ea]+this.tShift[Ea]>=this.eMarks[Ea]},StateBlock.prototype.skipEmptyLines=function(Ea){for(let Ua=this.lineMax;Ea<Ua&&!(this.bMarks[Ea]+this.tShift[Ea]<this.eMarks[Ea]);Ea++);return Ea},StateBlock.prototype.skipSpaces=function(Ea){for(let Ua=this.src.length;Ea<Ua;Ea++){const aA=this.src.charCodeAt(Ea);if(!isSpace(aA))break}return Ea},StateBlock.prototype.skipSpacesBack=function(Ea,Ua){if(Ea<=Ua)return Ea;for(;Ea>Ua;)if(!isSpace(this.src.charCodeAt(--Ea)))return Ea+1;return Ea},StateBlock.prototype.skipChars=function(Ea,Ua){for(let aA=this.src.length;Ea<aA&&this.src.charCodeAt(Ea)===Ua;Ea++);return Ea},StateBlock.prototype.skipCharsBack=function(Ea,Ua,aA){if(Ea<=aA)return Ea;for(;Ea>aA;)if(Ua!==this.src.charCodeAt(--Ea))return Ea+1;return Ea},StateBlock.prototype.getLines=function(Ea,Ua,aA,iA){if(Ea>=Ua)return"";const AA=new Array(Ua-Ea);for(let sA=0,oA=Ea;oA<Ua;oA++,sA++){let dA=0;const gA=this.bMarks[oA];let hA=gA,fA;for(oA+1<Ua||iA?fA=this.eMarks[oA]+1:fA=this.eMarks[oA];hA<fA&&dA<aA;){const wA=this.src.charCodeAt(hA);if(isSpace(wA))wA===9?dA+=4-(dA+this.bsCount[oA])%4:dA++;else if(hA-gA<this.tShift[oA])dA++;else break;hA++}dA>aA?AA[sA]=new Array(dA-aA+1).join(" ")+this.src.slice(hA,fA):AA[sA]=this.src.slice(hA,fA)}return AA.join("")},StateBlock.prototype.Token=Token;function getLine$1(Ea,Ua){const aA=Ea.bMarks[Ua]+Ea.tShift[Ua],iA=Ea.eMarks[Ua];return Ea.src.slice(aA,iA)}function escapedSplit(Ea){const Ua=[],aA=Ea.length;let iA=0,AA=Ea.charCodeAt(iA),sA=!1,oA=0,dA="";for(;iA<aA;)AA===124&&(sA?(dA+=Ea.substring(oA,iA-1),oA=iA):(Ua.push(dA+Ea.substring(oA,iA)),dA="",oA=iA+1)),sA=AA===92,iA++,AA=Ea.charCodeAt(iA);return Ua.push(dA+Ea.substring(oA)),Ua}function table(Ea,Ua,aA,iA){if(Ua+2>aA)return!1;let AA=Ua+1;if(Ea.sCount[AA]<Ea.blkIndent||Ea.sCount[AA]-Ea.blkIndent>=4)return!1;let sA=Ea.bMarks[AA]+Ea.tShift[AA];if(sA>=Ea.eMarks[AA])return!1;const oA=Ea.src.charCodeAt(sA++);if(oA!==124&&oA!==45&&oA!==58||sA>=Ea.eMarks[AA])return!1;const dA=Ea.src.charCodeAt(sA++);if(dA!==124&&dA!==45&&dA!==58&&!isSpace(dA)||oA===45&&isSpace(dA))return!1;for(;sA<Ea.eMarks[AA];){const NA=Ea.src.charCodeAt(sA);if(NA!==124&&NA!==45&&NA!==58&&!isSpace(NA))return!1;sA++}let gA=getLine$1(Ea,Ua+1),hA=gA.split("|");const fA=[];for(let NA=0;NA<hA.length;NA++){const TA=hA[NA].trim();if(!TA){if(NA===0||NA===hA.length-1)continue;return!1}if(!/^:?-+:?$/.test(TA))return!1;TA.charCodeAt(TA.length-1)===58?fA.push(TA.charCodeAt(0)===58?"center":"right"):TA.charCodeAt(0)===58?fA.push("left"):fA.push("")}if(gA=getLine$1(Ea,Ua).trim(),gA.indexOf("|")===-1||Ea.sCount[Ua]-Ea.blkIndent>=4)return!1;hA=escapedSplit(gA),hA.length&&hA[0]===""&&hA.shift(),hA.length&&hA[hA.length-1]===""&&hA.pop();const wA=hA.length;if(wA===0||wA!==fA.length)return!1;if(iA)return!0;const CA=Ea.parentType;Ea.parentType="table";const _A=Ea.md.block.ruler.getRules("blockquote"),BA=Ea.push("table_open","table",1),IA=[Ua,0];BA.map=IA;const $A=Ea.push("thead_open","thead",1);$A.map=[Ua,Ua+1];const DA=Ea.push("tr_open","tr",1);DA.map=[Ua,Ua+1];for(let NA=0;NA<hA.length;NA++){const TA=Ea.push("th_open","th",1);fA[NA]&&(TA.attrs=[["style","text-align:"+fA[NA]]]);const PA=Ea.push("inline","",0);PA.content=hA[NA].trim(),PA.children=[],Ea.push("th_close","th",-1)}Ea.push("tr_close","tr",-1),Ea.push("thead_close","thead",-1);let FA;for(AA=Ua+2;AA<aA&&!(Ea.sCount[AA]<Ea.blkIndent);AA++){let NA=!1;for(let PA=0,HA=_A.length;PA<HA;PA++)if(_A[PA](Ea,AA,aA,!0)){NA=!0;break}if(NA||(gA=getLine$1(Ea,AA).trim(),!gA)||Ea.sCount[AA]-Ea.blkIndent>=4)break;if(hA=escapedSplit(gA),hA.length&&hA[0]===""&&hA.shift(),hA.length&&hA[hA.length-1]===""&&hA.pop(),AA===Ua+2){const PA=Ea.push("tbody_open","tbody",1);PA.map=FA=[Ua+2,0]}const TA=Ea.push("tr_open","tr",1);TA.map=[AA,AA+1];for(let PA=0;PA<wA;PA++){const HA=Ea.push("td_open","td",1);fA[PA]&&(HA.attrs=[["style","text-align:"+fA[PA]]]);const RA=Ea.push("inline","",0);RA.content=hA[PA]?hA[PA].trim():"",RA.children=[],Ea.push("td_close","td",-1)}Ea.push("tr_close","tr",-1)}return FA&&(Ea.push("tbody_close","tbody",-1),FA[1]=AA),Ea.push("table_close","table",-1),IA[1]=AA,Ea.parentType=CA,Ea.line=AA,!0}function code$1(Ea,Ua,aA){if(Ea.sCount[Ua]-Ea.blkIndent<4)return!1;let iA=Ua+1,AA=iA;for(;iA<aA;){if(Ea.isEmpty(iA)){iA++;continue}if(Ea.sCount[iA]-Ea.blkIndent>=4){iA++,AA=iA;continue}break}Ea.line=AA;const sA=Ea.push("code_block","code",0);return sA.content=Ea.getLines(Ua,AA,4+Ea.blkIndent,!1)+`
|
|
33
|
-
`,sA.map=[Ua,Ea.line],!0}function fence(Ea,Ua,aA,iA){let AA=Ea.bMarks[Ua]+Ea.tShift[Ua],sA=Ea.eMarks[Ua];if(Ea.sCount[Ua]-Ea.blkIndent>=4||AA+3>sA)return!1;const oA=Ea.src.charCodeAt(AA);if(oA!==126&&oA!==96)return!1;let dA=AA;AA=Ea.skipChars(AA,oA);let gA=AA-dA;if(gA<3)return!1;const hA=Ea.src.slice(dA,AA),fA=Ea.src.slice(AA,sA);if(oA===96&&fA.indexOf(String.fromCharCode(oA))>=0)return!1;if(iA)return!0;let wA=Ua,CA=!1;for(;wA++,!(wA>=aA||(AA=dA=Ea.bMarks[wA]+Ea.tShift[wA],sA=Ea.eMarks[wA],AA<sA&&Ea.sCount[wA]<Ea.blkIndent));)if(Ea.src.charCodeAt(AA)===oA&&!(Ea.sCount[wA]-Ea.blkIndent>=4)&&(AA=Ea.skipChars(AA,oA),!(AA-dA<gA)&&(AA=Ea.skipSpaces(AA),!(AA<sA)))){CA=!0;break}gA=Ea.sCount[Ua],Ea.line=wA+(CA?1:0);const _A=Ea.push("fence","code",0);return _A.info=fA,_A.content=Ea.getLines(Ua+1,wA,gA,!0),_A.markup=hA,_A.map=[Ua,Ea.line],!0}function blockquote(Ea,Ua,aA,iA){let AA=Ea.bMarks[Ua]+Ea.tShift[Ua],sA=Ea.eMarks[Ua];const oA=Ea.lineMax;if(Ea.sCount[Ua]-Ea.blkIndent>=4||Ea.src.charCodeAt(AA)!==62)return!1;if(iA)return!0;const dA=[],gA=[],hA=[],fA=[],wA=Ea.md.block.ruler.getRules("blockquote"),CA=Ea.parentType;Ea.parentType="blockquote";let _A=!1,BA;for(BA=Ua;BA<aA;BA++){const NA=Ea.sCount[BA]<Ea.blkIndent;if(AA=Ea.bMarks[BA]+Ea.tShift[BA],sA=Ea.eMarks[BA],AA>=sA)break;if(Ea.src.charCodeAt(AA++)===62&&!NA){let PA=Ea.sCount[BA]+1,HA,RA;Ea.src.charCodeAt(AA)===32?(AA++,PA++,RA=!1,HA=!0):Ea.src.charCodeAt(AA)===9?(HA=!0,(Ea.bsCount[BA]+PA)%4===3?(AA++,PA++,RA=!1):RA=!0):HA=!1;let SA=PA;for(dA.push(Ea.bMarks[BA]),Ea.bMarks[BA]=AA;AA<sA;){const qA=Ea.src.charCodeAt(AA);if(isSpace(qA))qA===9?SA+=4-(SA+Ea.bsCount[BA]+(RA?1:0))%4:SA++;else break;AA++}_A=AA>=sA,gA.push(Ea.bsCount[BA]),Ea.bsCount[BA]=Ea.sCount[BA]+1+(HA?1:0),hA.push(Ea.sCount[BA]),Ea.sCount[BA]=SA-PA,fA.push(Ea.tShift[BA]),Ea.tShift[BA]=AA-Ea.bMarks[BA];continue}if(_A)break;let TA=!1;for(let PA=0,HA=wA.length;PA<HA;PA++)if(wA[PA](Ea,BA,aA,!0)){TA=!0;break}if(TA){Ea.lineMax=BA,Ea.blkIndent!==0&&(dA.push(Ea.bMarks[BA]),gA.push(Ea.bsCount[BA]),fA.push(Ea.tShift[BA]),hA.push(Ea.sCount[BA]),Ea.sCount[BA]-=Ea.blkIndent);break}dA.push(Ea.bMarks[BA]),gA.push(Ea.bsCount[BA]),fA.push(Ea.tShift[BA]),hA.push(Ea.sCount[BA]),Ea.sCount[BA]=-1}const IA=Ea.blkIndent;Ea.blkIndent=0;const $A=Ea.push("blockquote_open","blockquote",1);$A.markup=">";const DA=[Ua,0];$A.map=DA,Ea.md.block.tokenize(Ea,Ua,BA);const FA=Ea.push("blockquote_close","blockquote",-1);FA.markup=">",Ea.lineMax=oA,Ea.parentType=CA,DA[1]=Ea.line;for(let NA=0;NA<fA.length;NA++)Ea.bMarks[NA+Ua]=dA[NA],Ea.tShift[NA+Ua]=fA[NA],Ea.sCount[NA+Ua]=hA[NA],Ea.bsCount[NA+Ua]=gA[NA];return Ea.blkIndent=IA,!0}function hr$6(Ea,Ua,aA,iA){const AA=Ea.eMarks[Ua];if(Ea.sCount[Ua]-Ea.blkIndent>=4)return!1;let sA=Ea.bMarks[Ua]+Ea.tShift[Ua];const oA=Ea.src.charCodeAt(sA++);if(oA!==42&&oA!==45&&oA!==95)return!1;let dA=1;for(;sA<AA;){const hA=Ea.src.charCodeAt(sA++);if(hA!==oA&&!isSpace(hA))return!1;hA===oA&&dA++}if(dA<3)return!1;if(iA)return!0;Ea.line=Ua+1;const gA=Ea.push("hr","hr",0);return gA.map=[Ua,Ea.line],gA.markup=Array(dA+1).join(String.fromCharCode(oA)),!0}function skipBulletListMarker(Ea,Ua){const aA=Ea.eMarks[Ua];let iA=Ea.bMarks[Ua]+Ea.tShift[Ua];const AA=Ea.src.charCodeAt(iA++);if(AA!==42&&AA!==45&&AA!==43)return-1;if(iA<aA){const sA=Ea.src.charCodeAt(iA);if(!isSpace(sA))return-1}return iA}function skipOrderedListMarker(Ea,Ua){const aA=Ea.bMarks[Ua]+Ea.tShift[Ua],iA=Ea.eMarks[Ua];let AA=aA;if(AA+1>=iA)return-1;let sA=Ea.src.charCodeAt(AA++);if(sA<48||sA>57)return-1;for(;;){if(AA>=iA)return-1;if(sA=Ea.src.charCodeAt(AA++),sA>=48&&sA<=57){if(AA-aA>=10)return-1;continue}if(sA===41||sA===46)break;return-1}return AA<iA&&(sA=Ea.src.charCodeAt(AA),!isSpace(sA))?-1:AA}function markTightParagraphs(Ea,Ua){const aA=Ea.level+2;for(let iA=Ua+2,AA=Ea.tokens.length-2;iA<AA;iA++)Ea.tokens[iA].level===aA&&Ea.tokens[iA].type==="paragraph_open"&&(Ea.tokens[iA+2].hidden=!0,Ea.tokens[iA].hidden=!0,iA+=2)}function list(Ea,Ua,aA,iA){let AA,sA,oA,dA,gA=Ua,hA=!0;if(Ea.sCount[gA]-Ea.blkIndent>=4||Ea.listIndent>=0&&Ea.sCount[gA]-Ea.listIndent>=4&&Ea.sCount[gA]<Ea.blkIndent)return!1;let fA=!1;iA&&Ea.parentType==="paragraph"&&Ea.sCount[gA]>=Ea.blkIndent&&(fA=!0);let wA,CA,_A;if((_A=skipOrderedListMarker(Ea,gA))>=0){if(wA=!0,oA=Ea.bMarks[gA]+Ea.tShift[gA],CA=Number(Ea.src.slice(oA,_A-1)),fA&&CA!==1)return!1}else if((_A=skipBulletListMarker(Ea,gA))>=0)wA=!1;else return!1;if(fA&&Ea.skipSpaces(_A)>=Ea.eMarks[gA])return!1;if(iA)return!0;const BA=Ea.src.charCodeAt(_A-1),IA=Ea.tokens.length;wA?(dA=Ea.push("ordered_list_open","ol",1),CA!==1&&(dA.attrs=[["start",CA]])):dA=Ea.push("bullet_list_open","ul",1);const $A=[gA,0];dA.map=$A,dA.markup=String.fromCharCode(BA);let DA=!1;const FA=Ea.md.block.ruler.getRules("list"),NA=Ea.parentType;for(Ea.parentType="list";gA<aA;){sA=_A,AA=Ea.eMarks[gA];const TA=Ea.sCount[gA]+_A-(Ea.bMarks[gA]+Ea.tShift[gA]);let PA=TA;for(;sA<AA;){const Fl=Ea.src.charCodeAt(sA);if(Fl===9)PA+=4-(PA+Ea.bsCount[gA])%4;else if(Fl===32)PA++;else break;sA++}const HA=sA;let RA;HA>=AA?RA=1:RA=PA-TA,RA>4&&(RA=1);const SA=TA+RA;dA=Ea.push("list_item_open","li",1),dA.markup=String.fromCharCode(BA);const qA=[gA,0];dA.map=qA,wA&&(dA.info=Ea.src.slice(oA,_A-1));const LA=Ea.tight,KA=Ea.tShift[gA],jA=Ea.sCount[gA],UA=Ea.listIndent;if(Ea.listIndent=Ea.blkIndent,Ea.blkIndent=SA,Ea.tight=!0,Ea.tShift[gA]=HA-Ea.bMarks[gA],Ea.sCount[gA]=PA,HA>=AA&&Ea.isEmpty(gA+1)?Ea.line=Math.min(Ea.line+2,aA):Ea.md.block.tokenize(Ea,gA,aA,!0),(!Ea.tight||DA)&&(hA=!1),DA=Ea.line-gA>1&&Ea.isEmpty(Ea.line-1),Ea.blkIndent=Ea.listIndent,Ea.listIndent=UA,Ea.tShift[gA]=KA,Ea.sCount[gA]=jA,Ea.tight=LA,dA=Ea.push("list_item_close","li",-1),dA.markup=String.fromCharCode(BA),gA=Ea.line,qA[1]=gA,gA>=aA||Ea.sCount[gA]<Ea.blkIndent||Ea.sCount[gA]-Ea.blkIndent>=4)break;let _l=!1;for(let Fl=0,Bl=FA.length;Fl<Bl;Fl++)if(FA[Fl](Ea,gA,aA,!0)){_l=!0;break}if(_l)break;if(wA){if(_A=skipOrderedListMarker(Ea,gA),_A<0)break;oA=Ea.bMarks[gA]+Ea.tShift[gA]}else if(_A=skipBulletListMarker(Ea,gA),_A<0)break;if(BA!==Ea.src.charCodeAt(_A-1))break}return wA?dA=Ea.push("ordered_list_close","ol",-1):dA=Ea.push("bullet_list_close","ul",-1),dA.markup=String.fromCharCode(BA),$A[1]=gA,Ea.line=gA,Ea.parentType=NA,hA&&markTightParagraphs(Ea,IA),!0}function reference(Ea,Ua,aA,iA){let AA=0,sA=Ea.bMarks[Ua]+Ea.tShift[Ua],oA=Ea.eMarks[Ua],dA=Ua+1;if(Ea.sCount[Ua]-Ea.blkIndent>=4||Ea.src.charCodeAt(sA)!==91)return!1;for(;++sA<oA;)if(Ea.src.charCodeAt(sA)===93&&Ea.src.charCodeAt(sA-1)!==92){if(sA+1===oA||Ea.src.charCodeAt(sA+1)!==58)return!1;break}const gA=Ea.lineMax,hA=Ea.md.block.ruler.getRules("reference"),fA=Ea.parentType;for(Ea.parentType="reference";dA<gA&&!Ea.isEmpty(dA);dA++){if(Ea.sCount[dA]-Ea.blkIndent>3||Ea.sCount[dA]<0)continue;let PA=!1;for(let HA=0,RA=hA.length;HA<RA;HA++)if(hA[HA](Ea,dA,gA,!0)){PA=!0;break}if(PA)break}const wA=Ea.getLines(Ua,dA,Ea.blkIndent,!1).trim();oA=wA.length;let CA=-1;for(sA=1;sA<oA;sA++){const PA=wA.charCodeAt(sA);if(PA===91)return!1;if(PA===93){CA=sA;break}else PA===10?AA++:PA===92&&(sA++,sA<oA&&wA.charCodeAt(sA)===10&&AA++)}if(CA<0||wA.charCodeAt(CA+1)!==58)return!1;for(sA=CA+2;sA<oA;sA++){const PA=wA.charCodeAt(sA);if(PA===10)AA++;else if(!isSpace(PA))break}const _A=Ea.md.helpers.parseLinkDestination(wA,sA,oA);if(!_A.ok)return!1;const BA=Ea.md.normalizeLink(_A.str);if(!Ea.md.validateLink(BA))return!1;sA=_A.pos,AA+=_A.lines;const IA=sA,$A=AA,DA=sA;for(;sA<oA;sA++){const PA=wA.charCodeAt(sA);if(PA===10)AA++;else if(!isSpace(PA))break}const FA=Ea.md.helpers.parseLinkTitle(wA,sA,oA);let NA;for(sA<oA&&DA!==sA&&FA.ok?(NA=FA.str,sA=FA.pos,AA+=FA.lines):(NA="",sA=IA,AA=$A);sA<oA;){const PA=wA.charCodeAt(sA);if(!isSpace(PA))break;sA++}if(sA<oA&&wA.charCodeAt(sA)!==10&&NA)for(NA="",sA=IA,AA=$A;sA<oA;){const PA=wA.charCodeAt(sA);if(!isSpace(PA))break;sA++}if(sA<oA&&wA.charCodeAt(sA)!==10)return!1;const TA=normalizeReference(wA.slice(1,CA));return TA?(iA||(typeof Ea.env.references>"u"&&(Ea.env.references={}),typeof Ea.env.references[TA]>"u"&&(Ea.env.references[TA]={title:NA,href:BA}),Ea.parentType=fA,Ea.line=Ua+AA+1),!0):!1}const block_names=["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","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],attr_name="[a-zA-Z_:][a-zA-Z0-9:._-]*",unquoted="[^\"'=<>`\\x00-\\x20]+",single_quoted="'[^']*'",double_quoted='"[^"]*"',attr_value="(?:"+unquoted+"|"+single_quoted+"|"+double_quoted+")",attribute="(?:\\s+"+attr_name+"(?:\\s*=\\s*"+attr_value+")?)",open_tag="<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/?>",close_tag="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",comment$1="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",processing="<[?][\\s\\S]*?[?]>",declaration$1="<![A-Z]+\\s+[^>]*>",cdata="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",HTML_TAG_RE=new RegExp("^(?:"+open_tag+"|"+close_tag+"|"+comment$1+"|"+processing+"|"+declaration$1+"|"+cdata+")"),HTML_OPEN_CLOSE_TAG_RE=new RegExp("^(?:"+open_tag+"|"+close_tag+")"),HTML_SEQUENCES=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+block_names.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(HTML_OPEN_CLOSE_TAG_RE.source+"\\s*$"),/^$/,!1]];function html_block(Ea,Ua,aA,iA){let AA=Ea.bMarks[Ua]+Ea.tShift[Ua],sA=Ea.eMarks[Ua];if(Ea.sCount[Ua]-Ea.blkIndent>=4||!Ea.md.options.html||Ea.src.charCodeAt(AA)!==60)return!1;let oA=Ea.src.slice(AA,sA),dA=0;for(;dA<HTML_SEQUENCES.length&&!HTML_SEQUENCES[dA][0].test(oA);dA++);if(dA===HTML_SEQUENCES.length)return!1;if(iA)return HTML_SEQUENCES[dA][2];let gA=Ua+1;if(!HTML_SEQUENCES[dA][1].test(oA)){for(;gA<aA&&!(Ea.sCount[gA]<Ea.blkIndent);gA++)if(AA=Ea.bMarks[gA]+Ea.tShift[gA],sA=Ea.eMarks[gA],oA=Ea.src.slice(AA,sA),HTML_SEQUENCES[dA][1].test(oA)){oA.length!==0&&gA++;break}}Ea.line=gA;const hA=Ea.push("html_block","",0);return hA.map=[Ua,gA],hA.content=Ea.getLines(Ua,gA,Ea.blkIndent,!0),!0}function heading(Ea,Ua,aA,iA){let AA=Ea.bMarks[Ua]+Ea.tShift[Ua],sA=Ea.eMarks[Ua];if(Ea.sCount[Ua]-Ea.blkIndent>=4)return!1;let oA=Ea.src.charCodeAt(AA);if(oA!==35||AA>=sA)return!1;let dA=1;for(oA=Ea.src.charCodeAt(++AA);oA===35&&AA<sA&&dA<=6;)dA++,oA=Ea.src.charCodeAt(++AA);if(dA>6||AA<sA&&!isSpace(oA))return!1;if(iA)return!0;sA=Ea.skipSpacesBack(sA,AA);const gA=Ea.skipCharsBack(sA,35,AA);gA>AA&&isSpace(Ea.src.charCodeAt(gA-1))&&(sA=gA),Ea.line=Ua+1;const hA=Ea.push("heading_open","h"+String(dA),1);hA.markup="########".slice(0,dA),hA.map=[Ua,Ea.line];const fA=Ea.push("inline","",0);fA.content=Ea.src.slice(AA,sA).trim(),fA.map=[Ua,Ea.line],fA.children=[];const wA=Ea.push("heading_close","h"+String(dA),-1);return wA.markup="########".slice(0,dA),!0}function lheading(Ea,Ua,aA){const iA=Ea.md.block.ruler.getRules("paragraph");if(Ea.sCount[Ua]-Ea.blkIndent>=4)return!1;const AA=Ea.parentType;Ea.parentType="paragraph";let sA=0,oA,dA=Ua+1;for(;dA<aA&&!Ea.isEmpty(dA);dA++){if(Ea.sCount[dA]-Ea.blkIndent>3)continue;if(Ea.sCount[dA]>=Ea.blkIndent){let _A=Ea.bMarks[dA]+Ea.tShift[dA];const BA=Ea.eMarks[dA];if(_A<BA&&(oA=Ea.src.charCodeAt(_A),(oA===45||oA===61)&&(_A=Ea.skipChars(_A,oA),_A=Ea.skipSpaces(_A),_A>=BA))){sA=oA===61?1:2;break}}if(Ea.sCount[dA]<0)continue;let CA=!1;for(let _A=0,BA=iA.length;_A<BA;_A++)if(iA[_A](Ea,dA,aA,!0)){CA=!0;break}if(CA)break}if(!sA)return!1;const gA=Ea.getLines(Ua,dA,Ea.blkIndent,!1).trim();Ea.line=dA+1;const hA=Ea.push("heading_open","h"+String(sA),1);hA.markup=String.fromCharCode(oA),hA.map=[Ua,Ea.line];const fA=Ea.push("inline","",0);fA.content=gA,fA.map=[Ua,Ea.line-1],fA.children=[];const wA=Ea.push("heading_close","h"+String(sA),-1);return wA.markup=String.fromCharCode(oA),Ea.parentType=AA,!0}function paragraph(Ea,Ua,aA){const iA=Ea.md.block.ruler.getRules("paragraph"),AA=Ea.parentType;let sA=Ua+1;for(Ea.parentType="paragraph";sA<aA&&!Ea.isEmpty(sA);sA++){if(Ea.sCount[sA]-Ea.blkIndent>3||Ea.sCount[sA]<0)continue;let hA=!1;for(let fA=0,wA=iA.length;fA<wA;fA++)if(iA[fA](Ea,sA,aA,!0)){hA=!0;break}if(hA)break}const oA=Ea.getLines(Ua,sA,Ea.blkIndent,!1).trim();Ea.line=sA;const dA=Ea.push("paragraph_open","p",1);dA.map=[Ua,Ea.line];const gA=Ea.push("inline","",0);return gA.content=oA,gA.map=[Ua,Ea.line],gA.children=[],Ea.push("paragraph_close","p",-1),Ea.parentType=AA,!0}const _rules$1=[["table",table,["paragraph","reference"]],["code",code$1],["fence",fence,["paragraph","reference","blockquote","list"]],["blockquote",blockquote,["paragraph","reference","blockquote","list"]],["hr",hr$6,["paragraph","reference","blockquote","list"]],["list",list,["paragraph","reference","blockquote"]],["reference",reference],["html_block",html_block,["paragraph","reference","blockquote"]],["heading",heading,["paragraph","reference","blockquote"]],["lheading",lheading],["paragraph",paragraph]];function ParserBlock(){this.ruler=new Ruler;for(let Ea=0;Ea<_rules$1.length;Ea++)this.ruler.push(_rules$1[Ea][0],_rules$1[Ea][1],{alt:(_rules$1[Ea][2]||[]).slice()})}ParserBlock.prototype.tokenize=function(Ea,Ua,aA){const iA=this.ruler.getRules(""),AA=iA.length,sA=Ea.md.options.maxNesting;let oA=Ua,dA=!1;for(;oA<aA&&(Ea.line=oA=Ea.skipEmptyLines(oA),!(oA>=aA||Ea.sCount[oA]<Ea.blkIndent));){if(Ea.level>=sA){Ea.line=aA;break}const gA=Ea.line;let hA=!1;for(let fA=0;fA<AA;fA++)if(hA=iA[fA](Ea,oA,aA,!1),hA){if(gA>=Ea.line)throw new Error("block rule didn't increment state.line");break}if(!hA)throw new Error("none of the block rules matched");Ea.tight=!dA,Ea.isEmpty(Ea.line-1)&&(dA=!0),oA=Ea.line,oA<aA&&Ea.isEmpty(oA)&&(dA=!0,oA++,Ea.line=oA)}},ParserBlock.prototype.parse=function(Ea,Ua,aA,iA){if(!Ea)return;const AA=new this.State(Ea,Ua,aA,iA);this.tokenize(AA,AA.line,AA.lineMax)},ParserBlock.prototype.State=StateBlock;function StateInline(Ea,Ua,aA,iA){this.src=Ea,this.env=aA,this.md=Ua,this.tokens=iA,this.tokens_meta=Array(iA.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}StateInline.prototype.pushPending=function(){const Ea=new Token("text","",0);return Ea.content=this.pending,Ea.level=this.pendingLevel,this.tokens.push(Ea),this.pending="",Ea},StateInline.prototype.push=function(Ea,Ua,aA){this.pending&&this.pushPending();const iA=new Token(Ea,Ua,aA);let AA=null;return aA<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),iA.level=this.level,aA>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],AA={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(iA),this.tokens_meta.push(AA),iA},StateInline.prototype.scanDelims=function(Ea,Ua){let aA,iA,AA=!0,sA=!0;const oA=this.posMax,dA=this.src.charCodeAt(Ea),gA=Ea>0?this.src.charCodeAt(Ea-1):32;let hA=Ea;for(;hA<oA&&this.src.charCodeAt(hA)===dA;)hA++;const fA=hA-Ea,wA=hA<oA?this.src.charCodeAt(hA):32,CA=isMdAsciiPunct(gA)||isPunctChar(String.fromCharCode(gA)),_A=isMdAsciiPunct(wA)||isPunctChar(String.fromCharCode(wA)),BA=isWhiteSpace(gA),IA=isWhiteSpace(wA);return IA?AA=!1:_A&&(BA||CA||(AA=!1)),BA?sA=!1:CA&&(IA||_A||(sA=!1)),Ua?(aA=AA,iA=sA):(aA=AA&&(!sA||CA),iA=sA&&(!AA||_A)),{can_open:aA,can_close:iA,length:fA}},StateInline.prototype.Token=Token;function isTerminatorChar(Ea){switch(Ea){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function text$1(Ea,Ua){let aA=Ea.pos;for(;aA<Ea.posMax&&!isTerminatorChar(Ea.src.charCodeAt(aA));)aA++;return aA===Ea.pos?!1:(Ua||(Ea.pending+=Ea.src.slice(Ea.pos,aA)),Ea.pos=aA,!0)}const SCHEME_RE=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function linkify(Ea,Ua){if(!Ea.md.options.linkify||Ea.linkLevel>0)return!1;const aA=Ea.pos,iA=Ea.posMax;if(aA+3>iA||Ea.src.charCodeAt(aA)!==58||Ea.src.charCodeAt(aA+1)!==47||Ea.src.charCodeAt(aA+2)!==47)return!1;const AA=Ea.pending.match(SCHEME_RE);if(!AA)return!1;const sA=AA[1],oA=Ea.md.linkify.matchAtStart(Ea.src.slice(aA-sA.length));if(!oA)return!1;let dA=oA.url;if(dA.length<=sA.length)return!1;dA=dA.replace(/\*+$/,"");const gA=Ea.md.normalizeLink(dA);if(!Ea.md.validateLink(gA))return!1;if(!Ua){Ea.pending=Ea.pending.slice(0,-sA.length);const hA=Ea.push("link_open","a",1);hA.attrs=[["href",gA]],hA.markup="linkify",hA.info="auto";const fA=Ea.push("text","",0);fA.content=Ea.md.normalizeLinkText(dA);const wA=Ea.push("link_close","a",-1);wA.markup="linkify",wA.info="auto"}return Ea.pos+=dA.length-sA.length,!0}function newline$1(Ea,Ua){let aA=Ea.pos;if(Ea.src.charCodeAt(aA)!==10)return!1;const iA=Ea.pending.length-1,AA=Ea.posMax;if(!Ua)if(iA>=0&&Ea.pending.charCodeAt(iA)===32)if(iA>=1&&Ea.pending.charCodeAt(iA-1)===32){let sA=iA-1;for(;sA>=1&&Ea.pending.charCodeAt(sA-1)===32;)sA--;Ea.pending=Ea.pending.slice(0,sA),Ea.push("hardbreak","br",0)}else Ea.pending=Ea.pending.slice(0,-1),Ea.push("softbreak","br",0);else Ea.push("softbreak","br",0);for(aA++;aA<AA&&isSpace(Ea.src.charCodeAt(aA));)aA++;return Ea.pos=aA,!0}const ESCAPED=[];for(let Ea=0;Ea<256;Ea++)ESCAPED.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(Ea){ESCAPED[Ea.charCodeAt(0)]=1});function escape$1(Ea,Ua){let aA=Ea.pos;const iA=Ea.posMax;if(Ea.src.charCodeAt(aA)!==92||(aA++,aA>=iA))return!1;let AA=Ea.src.charCodeAt(aA);if(AA===10){for(Ua||Ea.push("hardbreak","br",0),aA++;aA<iA&&(AA=Ea.src.charCodeAt(aA),!!isSpace(AA));)aA++;return Ea.pos=aA,!0}let sA=Ea.src[aA];if(AA>=55296&&AA<=56319&&aA+1<iA){const dA=Ea.src.charCodeAt(aA+1);dA>=56320&&dA<=57343&&(sA+=Ea.src[aA+1],aA++)}const oA="\\"+sA;if(!Ua){const dA=Ea.push("text_special","",0);AA<256&&ESCAPED[AA]!==0?dA.content=sA:dA.content=oA,dA.markup=oA,dA.info="escape"}return Ea.pos=aA+1,!0}function backtick(Ea,Ua){let aA=Ea.pos;if(Ea.src.charCodeAt(aA)!==96)return!1;const iA=aA;aA++;const AA=Ea.posMax;for(;aA<AA&&Ea.src.charCodeAt(aA)===96;)aA++;const sA=Ea.src.slice(iA,aA),oA=sA.length;if(Ea.backticksScanned&&(Ea.backticks[oA]||0)<=iA)return Ua||(Ea.pending+=sA),Ea.pos+=oA,!0;let dA=aA,gA;for(;(gA=Ea.src.indexOf("`",dA))!==-1;){for(dA=gA+1;dA<AA&&Ea.src.charCodeAt(dA)===96;)dA++;const hA=dA-gA;if(hA===oA){if(!Ua){const fA=Ea.push("code_inline","code",0);fA.markup=sA,fA.content=Ea.src.slice(aA,gA).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return Ea.pos=dA,!0}Ea.backticks[hA]=gA}return Ea.backticksScanned=!0,Ua||(Ea.pending+=sA),Ea.pos+=oA,!0}function strikethrough_tokenize(Ea,Ua){const aA=Ea.pos,iA=Ea.src.charCodeAt(aA);if(Ua||iA!==126)return!1;const AA=Ea.scanDelims(Ea.pos,!0);let sA=AA.length;const oA=String.fromCharCode(iA);if(sA<2)return!1;let dA;sA%2&&(dA=Ea.push("text","",0),dA.content=oA,sA--);for(let gA=0;gA<sA;gA+=2)dA=Ea.push("text","",0),dA.content=oA+oA,Ea.delimiters.push({marker:iA,length:0,token:Ea.tokens.length-1,end:-1,open:AA.can_open,close:AA.can_close});return Ea.pos+=AA.length,!0}function postProcess$1(Ea,Ua){let aA;const iA=[],AA=Ua.length;for(let sA=0;sA<AA;sA++){const oA=Ua[sA];if(oA.marker!==126||oA.end===-1)continue;const dA=Ua[oA.end];aA=Ea.tokens[oA.token],aA.type="s_open",aA.tag="s",aA.nesting=1,aA.markup="~~",aA.content="",aA=Ea.tokens[dA.token],aA.type="s_close",aA.tag="s",aA.nesting=-1,aA.markup="~~",aA.content="",Ea.tokens[dA.token-1].type==="text"&&Ea.tokens[dA.token-1].content==="~"&&iA.push(dA.token-1)}for(;iA.length;){const sA=iA.pop();let oA=sA+1;for(;oA<Ea.tokens.length&&Ea.tokens[oA].type==="s_close";)oA++;oA--,sA!==oA&&(aA=Ea.tokens[oA],Ea.tokens[oA]=Ea.tokens[sA],Ea.tokens[sA]=aA)}}function strikethrough_postProcess(Ea){const Ua=Ea.tokens_meta,aA=Ea.tokens_meta.length;postProcess$1(Ea,Ea.delimiters);for(let iA=0;iA<aA;iA++)Ua[iA]&&Ua[iA].delimiters&&postProcess$1(Ea,Ua[iA].delimiters)}const r_strikethrough={tokenize:strikethrough_tokenize,postProcess:strikethrough_postProcess};function emphasis_tokenize(Ea,Ua){const aA=Ea.pos,iA=Ea.src.charCodeAt(aA);if(Ua||iA!==95&&iA!==42)return!1;const AA=Ea.scanDelims(Ea.pos,iA===42);for(let sA=0;sA<AA.length;sA++){const oA=Ea.push("text","",0);oA.content=String.fromCharCode(iA),Ea.delimiters.push({marker:iA,length:AA.length,token:Ea.tokens.length-1,end:-1,open:AA.can_open,close:AA.can_close})}return Ea.pos+=AA.length,!0}function postProcess(Ea,Ua){const aA=Ua.length;for(let iA=aA-1;iA>=0;iA--){const AA=Ua[iA];if(AA.marker!==95&&AA.marker!==42||AA.end===-1)continue;const sA=Ua[AA.end],oA=iA>0&&Ua[iA-1].end===AA.end+1&&Ua[iA-1].marker===AA.marker&&Ua[iA-1].token===AA.token-1&&Ua[AA.end+1].token===sA.token+1,dA=String.fromCharCode(AA.marker),gA=Ea.tokens[AA.token];gA.type=oA?"strong_open":"em_open",gA.tag=oA?"strong":"em",gA.nesting=1,gA.markup=oA?dA+dA:dA,gA.content="";const hA=Ea.tokens[sA.token];hA.type=oA?"strong_close":"em_close",hA.tag=oA?"strong":"em",hA.nesting=-1,hA.markup=oA?dA+dA:dA,hA.content="",oA&&(Ea.tokens[Ua[iA-1].token].content="",Ea.tokens[Ua[AA.end+1].token].content="",iA--)}}function emphasis_post_process(Ea){const Ua=Ea.tokens_meta,aA=Ea.tokens_meta.length;postProcess(Ea,Ea.delimiters);for(let iA=0;iA<aA;iA++)Ua[iA]&&Ua[iA].delimiters&&postProcess(Ea,Ua[iA].delimiters)}const r_emphasis={tokenize:emphasis_tokenize,postProcess:emphasis_post_process};function link(Ea,Ua){let aA,iA,AA,sA,oA="",dA="",gA=Ea.pos,hA=!0;if(Ea.src.charCodeAt(Ea.pos)!==91)return!1;const fA=Ea.pos,wA=Ea.posMax,CA=Ea.pos+1,_A=Ea.md.helpers.parseLinkLabel(Ea,Ea.pos,!0);if(_A<0)return!1;let BA=_A+1;if(BA<wA&&Ea.src.charCodeAt(BA)===40){for(hA=!1,BA++;BA<wA&&(aA=Ea.src.charCodeAt(BA),!(!isSpace(aA)&&aA!==10));BA++);if(BA>=wA)return!1;if(gA=BA,AA=Ea.md.helpers.parseLinkDestination(Ea.src,BA,Ea.posMax),AA.ok){for(oA=Ea.md.normalizeLink(AA.str),Ea.md.validateLink(oA)?BA=AA.pos:oA="",gA=BA;BA<wA&&(aA=Ea.src.charCodeAt(BA),!(!isSpace(aA)&&aA!==10));BA++);if(AA=Ea.md.helpers.parseLinkTitle(Ea.src,BA,Ea.posMax),BA<wA&&gA!==BA&&AA.ok)for(dA=AA.str,BA=AA.pos;BA<wA&&(aA=Ea.src.charCodeAt(BA),!(!isSpace(aA)&&aA!==10));BA++);}(BA>=wA||Ea.src.charCodeAt(BA)!==41)&&(hA=!0),BA++}if(hA){if(typeof Ea.env.references>"u")return!1;if(BA<wA&&Ea.src.charCodeAt(BA)===91?(gA=BA+1,BA=Ea.md.helpers.parseLinkLabel(Ea,BA),BA>=0?iA=Ea.src.slice(gA,BA++):BA=_A+1):BA=_A+1,iA||(iA=Ea.src.slice(CA,_A)),sA=Ea.env.references[normalizeReference(iA)],!sA)return Ea.pos=fA,!1;oA=sA.href,dA=sA.title}if(!Ua){Ea.pos=CA,Ea.posMax=_A;const IA=Ea.push("link_open","a",1),$A=[["href",oA]];IA.attrs=$A,dA&&$A.push(["title",dA]),Ea.linkLevel++,Ea.md.inline.tokenize(Ea),Ea.linkLevel--,Ea.push("link_close","a",-1)}return Ea.pos=BA,Ea.posMax=wA,!0}function image(Ea,Ua){let aA,iA,AA,sA,oA,dA,gA,hA,fA="";const wA=Ea.pos,CA=Ea.posMax;if(Ea.src.charCodeAt(Ea.pos)!==33||Ea.src.charCodeAt(Ea.pos+1)!==91)return!1;const _A=Ea.pos+2,BA=Ea.md.helpers.parseLinkLabel(Ea,Ea.pos+1,!1);if(BA<0)return!1;if(sA=BA+1,sA<CA&&Ea.src.charCodeAt(sA)===40){for(sA++;sA<CA&&(aA=Ea.src.charCodeAt(sA),!(!isSpace(aA)&&aA!==10));sA++);if(sA>=CA)return!1;for(hA=sA,dA=Ea.md.helpers.parseLinkDestination(Ea.src,sA,Ea.posMax),dA.ok&&(fA=Ea.md.normalizeLink(dA.str),Ea.md.validateLink(fA)?sA=dA.pos:fA=""),hA=sA;sA<CA&&(aA=Ea.src.charCodeAt(sA),!(!isSpace(aA)&&aA!==10));sA++);if(dA=Ea.md.helpers.parseLinkTitle(Ea.src,sA,Ea.posMax),sA<CA&&hA!==sA&&dA.ok)for(gA=dA.str,sA=dA.pos;sA<CA&&(aA=Ea.src.charCodeAt(sA),!(!isSpace(aA)&&aA!==10));sA++);else gA="";if(sA>=CA||Ea.src.charCodeAt(sA)!==41)return Ea.pos=wA,!1;sA++}else{if(typeof Ea.env.references>"u")return!1;if(sA<CA&&Ea.src.charCodeAt(sA)===91?(hA=sA+1,sA=Ea.md.helpers.parseLinkLabel(Ea,sA),sA>=0?AA=Ea.src.slice(hA,sA++):sA=BA+1):sA=BA+1,AA||(AA=Ea.src.slice(_A,BA)),oA=Ea.env.references[normalizeReference(AA)],!oA)return Ea.pos=wA,!1;fA=oA.href,gA=oA.title}if(!Ua){iA=Ea.src.slice(_A,BA);const IA=[];Ea.md.inline.parse(iA,Ea.md,Ea.env,IA);const $A=Ea.push("image","img",0),DA=[["src",fA],["alt",""]];$A.attrs=DA,$A.children=IA,$A.content=iA,gA&&DA.push(["title",gA])}return Ea.pos=sA,Ea.posMax=CA,!0}const EMAIL_RE=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,AUTOLINK_RE=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function autolink(Ea,Ua){let aA=Ea.pos;if(Ea.src.charCodeAt(aA)!==60)return!1;const iA=Ea.pos,AA=Ea.posMax;for(;;){if(++aA>=AA)return!1;const oA=Ea.src.charCodeAt(aA);if(oA===60)return!1;if(oA===62)break}const sA=Ea.src.slice(iA+1,aA);if(AUTOLINK_RE.test(sA)){const oA=Ea.md.normalizeLink(sA);if(!Ea.md.validateLink(oA))return!1;if(!Ua){const dA=Ea.push("link_open","a",1);dA.attrs=[["href",oA]],dA.markup="autolink",dA.info="auto";const gA=Ea.push("text","",0);gA.content=Ea.md.normalizeLinkText(sA);const hA=Ea.push("link_close","a",-1);hA.markup="autolink",hA.info="auto"}return Ea.pos+=sA.length+2,!0}if(EMAIL_RE.test(sA)){const oA=Ea.md.normalizeLink("mailto:"+sA);if(!Ea.md.validateLink(oA))return!1;if(!Ua){const dA=Ea.push("link_open","a",1);dA.attrs=[["href",oA]],dA.markup="autolink",dA.info="auto";const gA=Ea.push("text","",0);gA.content=Ea.md.normalizeLinkText(sA);const hA=Ea.push("link_close","a",-1);hA.markup="autolink",hA.info="auto"}return Ea.pos+=sA.length+2,!0}return!1}function isLinkOpen(Ea){return/^<a[>\s]/i.test(Ea)}function isLinkClose(Ea){return/^<\/a\s*>/i.test(Ea)}function isLetter(Ea){const Ua=Ea|32;return Ua>=97&&Ua<=122}function html_inline(Ea,Ua){if(!Ea.md.options.html)return!1;const aA=Ea.posMax,iA=Ea.pos;if(Ea.src.charCodeAt(iA)!==60||iA+2>=aA)return!1;const AA=Ea.src.charCodeAt(iA+1);if(AA!==33&&AA!==63&&AA!==47&&!isLetter(AA))return!1;const sA=Ea.src.slice(iA).match(HTML_TAG_RE);if(!sA)return!1;if(!Ua){const oA=Ea.push("html_inline","",0);oA.content=sA[0],isLinkOpen(oA.content)&&Ea.linkLevel++,isLinkClose(oA.content)&&Ea.linkLevel--}return Ea.pos+=sA[0].length,!0}const DIGITAL_RE=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,NAMED_RE=/^&([a-z][a-z0-9]{1,31});/i;function entity(Ea,Ua){const aA=Ea.pos,iA=Ea.posMax;if(Ea.src.charCodeAt(aA)!==38||aA+1>=iA)return!1;if(Ea.src.charCodeAt(aA+1)===35){const AA=Ea.src.slice(aA).match(DIGITAL_RE);if(AA){if(!Ua){const sA=AA[1][0].toLowerCase()==="x"?parseInt(AA[1].slice(1),16):parseInt(AA[1],10),oA=Ea.push("text_special","",0);oA.content=isValidEntityCode(sA)?fromCodePoint(sA):fromCodePoint(65533),oA.markup=AA[0],oA.info="entity"}return Ea.pos+=AA[0].length,!0}}else{const AA=Ea.src.slice(aA).match(NAMED_RE);if(AA){const sA=decodeHTML(AA[0]);if(sA!==AA[0]){if(!Ua){const oA=Ea.push("text_special","",0);oA.content=sA,oA.markup=AA[0],oA.info="entity"}return Ea.pos+=AA[0].length,!0}}}return!1}function processDelimiters(Ea){const Ua={},aA=Ea.length;if(!aA)return;let iA=0,AA=-2;const sA=[];for(let oA=0;oA<aA;oA++){const dA=Ea[oA];if(sA.push(0),(Ea[iA].marker!==dA.marker||AA!==dA.token-1)&&(iA=oA),AA=dA.token,dA.length=dA.length||0,!dA.close)continue;Ua.hasOwnProperty(dA.marker)||(Ua[dA.marker]=[-1,-1,-1,-1,-1,-1]);const gA=Ua[dA.marker][(dA.open?3:0)+dA.length%3];let hA=iA-sA[iA]-1,fA=hA;for(;hA>gA;hA-=sA[hA]+1){const wA=Ea[hA];if(wA.marker===dA.marker&&wA.open&&wA.end<0){let CA=!1;if((wA.close||dA.open)&&(wA.length+dA.length)%3===0&&(wA.length%3!==0||dA.length%3!==0)&&(CA=!0),!CA){const _A=hA>0&&!Ea[hA-1].open?sA[hA-1]+1:0;sA[oA]=oA-hA+_A,sA[hA]=_A,dA.open=!1,wA.end=oA,wA.close=!1,fA=-1,AA=-2;break}}}fA!==-1&&(Ua[dA.marker][(dA.open?3:0)+(dA.length||0)%3]=fA)}}function link_pairs(Ea){const Ua=Ea.tokens_meta,aA=Ea.tokens_meta.length;processDelimiters(Ea.delimiters);for(let iA=0;iA<aA;iA++)Ua[iA]&&Ua[iA].delimiters&&processDelimiters(Ua[iA].delimiters)}function fragments_join(Ea){let Ua,aA,iA=0;const AA=Ea.tokens,sA=Ea.tokens.length;for(Ua=aA=0;Ua<sA;Ua++)AA[Ua].nesting<0&&iA--,AA[Ua].level=iA,AA[Ua].nesting>0&&iA++,AA[Ua].type==="text"&&Ua+1<sA&&AA[Ua+1].type==="text"?AA[Ua+1].content=AA[Ua].content+AA[Ua+1].content:(Ua!==aA&&(AA[aA]=AA[Ua]),aA++);Ua!==aA&&(AA.length=aA)}const _rules=[["text",text$1],["linkify",linkify],["newline",newline$1],["escape",escape$1],["backticks",backtick],["strikethrough",r_strikethrough.tokenize],["emphasis",r_emphasis.tokenize],["link",link],["image",image],["autolink",autolink],["html_inline",html_inline],["entity",entity]],_rules2=[["balance_pairs",link_pairs],["strikethrough",r_strikethrough.postProcess],["emphasis",r_emphasis.postProcess],["fragments_join",fragments_join]];function ParserInline(){this.ruler=new Ruler;for(let Ea=0;Ea<_rules.length;Ea++)this.ruler.push(_rules[Ea][0],_rules[Ea][1]);this.ruler2=new Ruler;for(let Ea=0;Ea<_rules2.length;Ea++)this.ruler2.push(_rules2[Ea][0],_rules2[Ea][1])}ParserInline.prototype.skipToken=function(Ea){const Ua=Ea.pos,aA=this.ruler.getRules(""),iA=aA.length,AA=Ea.md.options.maxNesting,sA=Ea.cache;if(typeof sA[Ua]<"u"){Ea.pos=sA[Ua];return}let oA=!1;if(Ea.level<AA){for(let dA=0;dA<iA;dA++)if(Ea.level++,oA=aA[dA](Ea,!0),Ea.level--,oA){if(Ua>=Ea.pos)throw new Error("inline rule didn't increment state.pos");break}}else Ea.pos=Ea.posMax;oA||Ea.pos++,sA[Ua]=Ea.pos},ParserInline.prototype.tokenize=function(Ea){const Ua=this.ruler.getRules(""),aA=Ua.length,iA=Ea.posMax,AA=Ea.md.options.maxNesting;for(;Ea.pos<iA;){const sA=Ea.pos;let oA=!1;if(Ea.level<AA){for(let dA=0;dA<aA;dA++)if(oA=Ua[dA](Ea,!1),oA){if(sA>=Ea.pos)throw new Error("inline rule didn't increment state.pos");break}}if(oA){if(Ea.pos>=iA)break;continue}Ea.pending+=Ea.src[Ea.pos++]}Ea.pending&&Ea.pushPending()},ParserInline.prototype.parse=function(Ea,Ua,aA,iA){const AA=new this.State(Ea,Ua,aA,iA);this.tokenize(AA);const sA=this.ruler2.getRules(""),oA=sA.length;for(let dA=0;dA<oA;dA++)sA[dA](AA)},ParserInline.prototype.State=StateInline;function reFactory(Ea){const Ua={};Ea=Ea||{},Ua.src_Any=Any.source,Ua.src_Cc=Cc$1.source,Ua.src_Z=Z$c.source,Ua.src_P=P$a.source,Ua.src_ZPCc=[Ua.src_Z,Ua.src_P,Ua.src_Cc].join("|"),Ua.src_ZCc=[Ua.src_Z,Ua.src_Cc].join("|");const aA="[><|]";return Ua.src_pseudo_letter="(?:(?!"+aA+"|"+Ua.src_ZPCc+")"+Ua.src_Any+")",Ua.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",Ua.src_auth="(?:(?:(?!"+Ua.src_ZCc+"|[@/\\[\\]()]).)+@)?",Ua.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",Ua.src_host_terminator="(?=$|"+aA+"|"+Ua.src_ZPCc+")(?!"+(Ea["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+Ua.src_ZPCc+"))",Ua.src_path="(?:[/?#](?:(?!"+Ua.src_ZCc+"|"+aA+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+Ua.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+Ua.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+Ua.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+Ua.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+Ua.src_ZCc+"|[']).)+\\'|\\'(?="+Ua.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+Ua.src_ZCc+"|[.]|$)|"+(Ea["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+Ua.src_ZCc+"|$)|;(?!"+Ua.src_ZCc+"|$)|\\!+(?!"+Ua.src_ZCc+"|[!]|$)|\\?(?!"+Ua.src_ZCc+"|[?]|$))+|\\/)?",Ua.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',Ua.src_xn="xn--[a-z0-9\\-]{1,59}",Ua.src_domain_root="(?:"+Ua.src_xn+"|"+Ua.src_pseudo_letter+"{1,63})",Ua.src_domain="(?:"+Ua.src_xn+"|(?:"+Ua.src_pseudo_letter+")|(?:"+Ua.src_pseudo_letter+"(?:-|"+Ua.src_pseudo_letter+"){0,61}"+Ua.src_pseudo_letter+"))",Ua.src_host="(?:(?:(?:(?:"+Ua.src_domain+")\\.)*"+Ua.src_domain+"))",Ua.tpl_host_fuzzy="(?:"+Ua.src_ip4+"|(?:(?:(?:"+Ua.src_domain+")\\.)+(?:%TLDS%)))",Ua.tpl_host_no_ip_fuzzy="(?:(?:(?:"+Ua.src_domain+")\\.)+(?:%TLDS%))",Ua.src_host_strict=Ua.src_host+Ua.src_host_terminator,Ua.tpl_host_fuzzy_strict=Ua.tpl_host_fuzzy+Ua.src_host_terminator,Ua.src_host_port_strict=Ua.src_host+Ua.src_port+Ua.src_host_terminator,Ua.tpl_host_port_fuzzy_strict=Ua.tpl_host_fuzzy+Ua.src_port+Ua.src_host_terminator,Ua.tpl_host_port_no_ip_fuzzy_strict=Ua.tpl_host_no_ip_fuzzy+Ua.src_port+Ua.src_host_terminator,Ua.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+Ua.src_ZPCc+"|>|$))",Ua.tpl_email_fuzzy="(^|"+aA+'|"|\\(|'+Ua.src_ZCc+")("+Ua.src_email_name+"@"+Ua.tpl_host_fuzzy_strict+")",Ua.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+Ua.src_ZPCc+"))((?![$+<=>^`||])"+Ua.tpl_host_port_fuzzy_strict+Ua.src_path+")",Ua.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+Ua.src_ZPCc+"))((?![$+<=>^`||])"+Ua.tpl_host_port_no_ip_fuzzy_strict+Ua.src_path+")",Ua}function assign$1(Ea){return Array.prototype.slice.call(arguments,1).forEach(function(Ua){Ua&&Object.keys(Ua).forEach(function(aA){Ea[aA]=Ua[aA]})}),Ea}function _class$2(Ea){return Object.prototype.toString.call(Ea)}function isString(Ea){return _class$2(Ea)==="[object String]"}function isObject$4(Ea){return _class$2(Ea)==="[object Object]"}function isRegExp$1(Ea){return _class$2(Ea)==="[object RegExp]"}function isFunction$2(Ea){return _class$2(Ea)==="[object Function]"}function escapeRE(Ea){return Ea.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const defaultOptions$1={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function isOptionsObj(Ea){return Object.keys(Ea||{}).reduce(function(Ua,aA){return Ua||defaultOptions$1.hasOwnProperty(aA)},!1)}const defaultSchemas={"http:":{validate:function(Ea,Ua,aA){const iA=Ea.slice(Ua);return aA.re.http||(aA.re.http=new RegExp("^\\/\\/"+aA.re.src_auth+aA.re.src_host_port_strict+aA.re.src_path,"i")),aA.re.http.test(iA)?iA.match(aA.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(Ea,Ua,aA){const iA=Ea.slice(Ua);return aA.re.no_http||(aA.re.no_http=new RegExp("^"+aA.re.src_auth+"(?:localhost|(?:(?:"+aA.re.src_domain+")\\.)+"+aA.re.src_domain_root+")"+aA.re.src_port+aA.re.src_host_terminator+aA.re.src_path,"i")),aA.re.no_http.test(iA)?Ua>=3&&Ea[Ua-3]===":"||Ua>=3&&Ea[Ua-3]==="/"?0:iA.match(aA.re.no_http)[0].length:0}},"mailto:":{validate:function(Ea,Ua,aA){const iA=Ea.slice(Ua);return aA.re.mailto||(aA.re.mailto=new RegExp("^"+aA.re.src_email_name+"@"+aA.re.src_host_strict,"i")),aA.re.mailto.test(iA)?iA.match(aA.re.mailto)[0].length:0}}},tlds_2ch_src_re="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",tlds_default="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function resetScanCache(Ea){Ea.__index__=-1,Ea.__text_cache__=""}function createValidator(Ea){return function(Ua,aA){const iA=Ua.slice(aA);return Ea.test(iA)?iA.match(Ea)[0].length:0}}function createNormalizer(){return function(Ea,Ua){Ua.normalize(Ea)}}function compile$1(Ea){const Ua=Ea.re=reFactory(Ea.__opts__),aA=Ea.__tlds__.slice();Ea.onCompile(),Ea.__tlds_replaced__||aA.push(tlds_2ch_src_re),aA.push(Ua.src_xn),Ua.src_tlds=aA.join("|");function iA(dA){return dA.replace("%TLDS%",Ua.src_tlds)}Ua.email_fuzzy=RegExp(iA(Ua.tpl_email_fuzzy),"i"),Ua.link_fuzzy=RegExp(iA(Ua.tpl_link_fuzzy),"i"),Ua.link_no_ip_fuzzy=RegExp(iA(Ua.tpl_link_no_ip_fuzzy),"i"),Ua.host_fuzzy_test=RegExp(iA(Ua.tpl_host_fuzzy_test),"i");const AA=[];Ea.__compiled__={};function sA(dA,gA){throw new Error('(LinkifyIt) Invalid schema "'+dA+'": '+gA)}Object.keys(Ea.__schemas__).forEach(function(dA){const gA=Ea.__schemas__[dA];if(gA===null)return;const hA={validate:null,link:null};if(Ea.__compiled__[dA]=hA,isObject$4(gA)){isRegExp$1(gA.validate)?hA.validate=createValidator(gA.validate):isFunction$2(gA.validate)?hA.validate=gA.validate:sA(dA,gA),isFunction$2(gA.normalize)?hA.normalize=gA.normalize:gA.normalize?sA(dA,gA):hA.normalize=createNormalizer();return}if(isString(gA)){AA.push(dA);return}sA(dA,gA)}),AA.forEach(function(dA){Ea.__compiled__[Ea.__schemas__[dA]]&&(Ea.__compiled__[dA].validate=Ea.__compiled__[Ea.__schemas__[dA]].validate,Ea.__compiled__[dA].normalize=Ea.__compiled__[Ea.__schemas__[dA]].normalize)}),Ea.__compiled__[""]={validate:null,normalize:createNormalizer()};const oA=Object.keys(Ea.__compiled__).filter(function(dA){return dA.length>0&&Ea.__compiled__[dA]}).map(escapeRE).join("|");Ea.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+Ua.src_ZPCc+"))("+oA+")","i"),Ea.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+Ua.src_ZPCc+"))("+oA+")","ig"),Ea.re.schema_at_start=RegExp("^"+Ea.re.schema_search.source,"i"),Ea.re.pretest=RegExp("("+Ea.re.schema_test.source+")|("+Ea.re.host_fuzzy_test.source+")|@","i"),resetScanCache(Ea)}function Match(Ea,Ua){const aA=Ea.__index__,iA=Ea.__last_index__,AA=Ea.__text_cache__.slice(aA,iA);this.schema=Ea.__schema__.toLowerCase(),this.index=aA+Ua,this.lastIndex=iA+Ua,this.raw=AA,this.text=AA,this.url=AA}function createMatch(Ea,Ua){const aA=new Match(Ea,Ua);return Ea.__compiled__[aA.schema].normalize(aA,Ea),aA}function LinkifyIt(Ea,Ua){if(!(this instanceof LinkifyIt))return new LinkifyIt(Ea,Ua);Ua||isOptionsObj(Ea)&&(Ua=Ea,Ea={}),this.__opts__=assign$1({},defaultOptions$1,Ua),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=assign$1({},defaultSchemas,Ea),this.__compiled__={},this.__tlds__=tlds_default,this.__tlds_replaced__=!1,this.re={},compile$1(this)}LinkifyIt.prototype.add=function(Ea,Ua){return this.__schemas__[Ea]=Ua,compile$1(this),this},LinkifyIt.prototype.set=function(Ea){return this.__opts__=assign$1(this.__opts__,Ea),this},LinkifyIt.prototype.test=function(Ea){if(this.__text_cache__=Ea,this.__index__=-1,!Ea.length)return!1;let Ua,aA,iA,AA,sA,oA,dA,gA,hA;if(this.re.schema_test.test(Ea)){for(dA=this.re.schema_search,dA.lastIndex=0;(Ua=dA.exec(Ea))!==null;)if(AA=this.testSchemaAt(Ea,Ua[2],dA.lastIndex),AA){this.__schema__=Ua[2],this.__index__=Ua.index+Ua[1].length,this.__last_index__=Ua.index+Ua[0].length+AA;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(gA=Ea.search(this.re.host_fuzzy_test),gA>=0&&(this.__index__<0||gA<this.__index__)&&(aA=Ea.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(sA=aA.index+aA[1].length,(this.__index__<0||sA<this.__index__)&&(this.__schema__="",this.__index__=sA,this.__last_index__=aA.index+aA[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(hA=Ea.indexOf("@"),hA>=0&&(iA=Ea.match(this.re.email_fuzzy))!==null&&(sA=iA.index+iA[1].length,oA=iA.index+iA[0].length,(this.__index__<0||sA<this.__index__||sA===this.__index__&&oA>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=sA,this.__last_index__=oA))),this.__index__>=0},LinkifyIt.prototype.pretest=function(Ea){return this.re.pretest.test(Ea)},LinkifyIt.prototype.testSchemaAt=function(Ea,Ua,aA){return this.__compiled__[Ua.toLowerCase()]?this.__compiled__[Ua.toLowerCase()].validate(Ea,aA,this):0},LinkifyIt.prototype.match=function(Ea){const Ua=[];let aA=0;this.__index__>=0&&this.__text_cache__===Ea&&(Ua.push(createMatch(this,aA)),aA=this.__last_index__);let iA=aA?Ea.slice(aA):Ea;for(;this.test(iA);)Ua.push(createMatch(this,aA)),iA=iA.slice(this.__last_index__),aA+=this.__last_index__;return Ua.length?Ua:null},LinkifyIt.prototype.matchAtStart=function(Ea){if(this.__text_cache__=Ea,this.__index__=-1,!Ea.length)return null;const Ua=this.re.schema_at_start.exec(Ea);if(!Ua)return null;const aA=this.testSchemaAt(Ea,Ua[2],Ua[0].length);return aA?(this.__schema__=Ua[2],this.__index__=Ua.index+Ua[1].length,this.__last_index__=Ua.index+Ua[0].length+aA,createMatch(this,0)):null},LinkifyIt.prototype.tlds=function(Ea,Ua){return Ea=Array.isArray(Ea)?Ea:[Ea],Ua?(this.__tlds__=this.__tlds__.concat(Ea).sort().filter(function(aA,iA,AA){return aA!==AA[iA-1]}).reverse(),compile$1(this),this):(this.__tlds__=Ea.slice(),this.__tlds_replaced__=!0,compile$1(this),this)},LinkifyIt.prototype.normalize=function(Ea){Ea.schema||(Ea.url="http://"+Ea.url),Ea.schema==="mailto:"&&!/^mailto:/i.test(Ea.url)&&(Ea.url="mailto:"+Ea.url)},LinkifyIt.prototype.onCompile=function(){};const maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter$1="-",regexPunycode=/^xn--/,regexNonASCII=/[^\0-\x7F]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;function error(Ea){throw new RangeError(errors[Ea])}function map$2(Ea,Ua){const aA=[];let iA=Ea.length;for(;iA--;)aA[iA]=Ua(Ea[iA]);return aA}function mapDomain(Ea,Ua){const aA=Ea.split("@");let iA="";aA.length>1&&(iA=aA[0]+"@",Ea=aA[1]),Ea=Ea.replace(regexSeparators,".");const AA=Ea.split("."),sA=map$2(AA,Ua).join(".");return iA+sA}function ucs2decode(Ea){const Ua=[];let aA=0;const iA=Ea.length;for(;aA<iA;){const AA=Ea.charCodeAt(aA++);if(AA>=55296&&AA<=56319&&aA<iA){const sA=Ea.charCodeAt(aA++);(sA&64512)==56320?Ua.push(((AA&1023)<<10)+(sA&1023)+65536):(Ua.push(AA),aA--)}else Ua.push(AA)}return Ua}const ucs2encode=Ea=>String.fromCodePoint(...Ea),basicToDigit=function(Ea){return Ea>=48&&Ea<58?26+(Ea-48):Ea>=65&&Ea<91?Ea-65:Ea>=97&&Ea<123?Ea-97:base},digitToBasic=function(Ea,Ua){return Ea+22+75*(Ea<26)-((Ua!=0)<<5)},adapt=function(Ea,Ua,aA){let iA=0;for(Ea=aA?floor(Ea/damp):Ea>>1,Ea+=floor(Ea/Ua);Ea>baseMinusTMin*tMax>>1;iA+=base)Ea=floor(Ea/baseMinusTMin);return floor(iA+(baseMinusTMin+1)*Ea/(Ea+skew))},decode=function(Ea){const Ua=[],aA=Ea.length;let iA=0,AA=initialN,sA=initialBias,oA=Ea.lastIndexOf(delimiter$1);oA<0&&(oA=0);for(let dA=0;dA<oA;++dA)Ea.charCodeAt(dA)>=128&&error("not-basic"),Ua.push(Ea.charCodeAt(dA));for(let dA=oA>0?oA+1:0;dA<aA;){const gA=iA;for(let fA=1,wA=base;;wA+=base){dA>=aA&&error("invalid-input");const CA=basicToDigit(Ea.charCodeAt(dA++));CA>=base&&error("invalid-input"),CA>floor((maxInt-iA)/fA)&&error("overflow"),iA+=CA*fA;const _A=wA<=sA?tMin:wA>=sA+tMax?tMax:wA-sA;if(CA<_A)break;const BA=base-_A;fA>floor(maxInt/BA)&&error("overflow"),fA*=BA}const hA=Ua.length+1;sA=adapt(iA-gA,hA,gA==0),floor(iA/hA)>maxInt-AA&&error("overflow"),AA+=floor(iA/hA),iA%=hA,Ua.splice(iA++,0,AA)}return String.fromCodePoint(...Ua)},encode=function(Ea){const Ua=[];Ea=ucs2decode(Ea);const aA=Ea.length;let iA=initialN,AA=0,sA=initialBias;for(const gA of Ea)gA<128&&Ua.push(stringFromCharCode(gA));const oA=Ua.length;let dA=oA;for(oA&&Ua.push(delimiter$1);dA<aA;){let gA=maxInt;for(const fA of Ea)fA>=iA&&fA<gA&&(gA=fA);const hA=dA+1;gA-iA>floor((maxInt-AA)/hA)&&error("overflow"),AA+=(gA-iA)*hA,iA=gA;for(const fA of Ea)if(fA<iA&&++AA>maxInt&&error("overflow"),fA===iA){let wA=AA;for(let CA=base;;CA+=base){const _A=CA<=sA?tMin:CA>=sA+tMax?tMax:CA-sA;if(wA<_A)break;const BA=wA-_A,IA=base-_A;Ua.push(stringFromCharCode(digitToBasic(_A+BA%IA,0))),wA=floor(BA/IA)}Ua.push(stringFromCharCode(digitToBasic(wA,0))),sA=adapt(AA,hA,dA===oA),AA=0,++dA}++AA,++iA}return Ua.join("")},toUnicode=function(Ea){return mapDomain(Ea,function(Ua){return regexPunycode.test(Ua)?decode(Ua.slice(4).toLowerCase()):Ua})},toASCII=function(Ea){return mapDomain(Ea,function(Ua){return regexNonASCII.test(Ua)?"xn--"+encode(Ua):Ua})},punycode={version:"2.3.1",ucs2:{decode:ucs2decode,encode:ucs2encode},decode,encode,toASCII,toUnicode},cfg_default={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},cfg_zero={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},cfg_commonmark={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},config$1={default:cfg_default,zero:cfg_zero,commonmark:cfg_commonmark},BAD_PROTO_RE=/^(vbscript|javascript|file|data):/,GOOD_DATA_RE=/^data:image\/(gif|png|jpeg|webp);/;function validateLink(Ea){const Ua=Ea.trim().toLowerCase();return BAD_PROTO_RE.test(Ua)?GOOD_DATA_RE.test(Ua):!0}const RECODE_HOSTNAME_FOR=["http:","https:","mailto:"];function normalizeLink(Ea){const Ua=urlParse(Ea,!0);if(Ua.hostname&&(!Ua.protocol||RECODE_HOSTNAME_FOR.indexOf(Ua.protocol)>=0))try{Ua.hostname=punycode.toASCII(Ua.hostname)}catch{}return encode$1(format$2(Ua))}function normalizeLinkText(Ea){const Ua=urlParse(Ea,!0);if(Ua.hostname&&(!Ua.protocol||RECODE_HOSTNAME_FOR.indexOf(Ua.protocol)>=0))try{Ua.hostname=punycode.toUnicode(Ua.hostname)}catch{}return decode$1(format$2(Ua),decode$1.defaultChars+"%")}function MarkdownIt(Ea,Ua){if(!(this instanceof MarkdownIt))return new MarkdownIt(Ea,Ua);Ua||isString$1(Ea)||(Ua=Ea||{},Ea="default"),this.inline=new ParserInline,this.block=new ParserBlock,this.core=new Core,this.renderer=new Renderer,this.linkify=new LinkifyIt,this.validateLink=validateLink,this.normalizeLink=normalizeLink,this.normalizeLinkText=normalizeLinkText,this.utils=utils$7,this.helpers=assign$2({},helpers),this.options={},this.configure(Ea),Ua&&this.set(Ua)}MarkdownIt.prototype.set=function(Ea){return assign$2(this.options,Ea),this},MarkdownIt.prototype.configure=function(Ea){const Ua=this;if(isString$1(Ea)){const aA=Ea;if(Ea=config$1[aA],!Ea)throw new Error('Wrong `markdown-it` preset "'+aA+'", check name')}if(!Ea)throw new Error("Wrong `markdown-it` preset, can't be empty");return Ea.options&&Ua.set(Ea.options),Ea.components&&Object.keys(Ea.components).forEach(function(aA){Ea.components[aA].rules&&Ua[aA].ruler.enableOnly(Ea.components[aA].rules),Ea.components[aA].rules2&&Ua[aA].ruler2.enableOnly(Ea.components[aA].rules2)}),this},MarkdownIt.prototype.enable=function(Ea,Ua){let aA=[];Array.isArray(Ea)||(Ea=[Ea]),["core","block","inline"].forEach(function(AA){aA=aA.concat(this[AA].ruler.enable(Ea,!0))},this),aA=aA.concat(this.inline.ruler2.enable(Ea,!0));const iA=Ea.filter(function(AA){return aA.indexOf(AA)<0});if(iA.length&&!Ua)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+iA);return this},MarkdownIt.prototype.disable=function(Ea,Ua){let aA=[];Array.isArray(Ea)||(Ea=[Ea]),["core","block","inline"].forEach(function(AA){aA=aA.concat(this[AA].ruler.disable(Ea,!0))},this),aA=aA.concat(this.inline.ruler2.disable(Ea,!0));const iA=Ea.filter(function(AA){return aA.indexOf(AA)<0});if(iA.length&&!Ua)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+iA);return this},MarkdownIt.prototype.use=function(Ea){const Ua=[this].concat(Array.prototype.slice.call(arguments,1));return Ea.apply(Ea,Ua),this},MarkdownIt.prototype.parse=function(Ea,Ua){if(typeof Ea!="string")throw new Error("Input data should be a String");const aA=new this.core.State(Ea,this,Ua);return this.core.process(aA),aA.tokens},MarkdownIt.prototype.render=function(Ea,Ua){return Ua=Ua||{},this.renderer.render(this.parse(Ea,Ua),this.options,Ua)},MarkdownIt.prototype.parseInline=function(Ea,Ua){const aA=new this.core.State(Ea,this,Ua);return aA.inlineMode=!0,this.core.process(aA),aA.tokens},MarkdownIt.prototype.renderInline=function(Ea,Ua){return Ua=Ua||{},this.renderer.render(this.parseInline(Ea,Ua),this.options,Ua)};function abbr_plugin(Ea){const Ua=Ea.utils.escapeRE,aA=Ea.utils.arrayReplaceAt,iA=" \r\n$+<=>^`|~",AA=Ea.utils.lib.ucmicro.P.source,sA=Ea.utils.lib.ucmicro.Z.source;function oA(gA,hA,fA,wA){let CA,_A=gA.bMarks[hA]+gA.tShift[hA];const BA=gA.eMarks[hA];if(_A+2>=BA||gA.src.charCodeAt(_A++)!==42||gA.src.charCodeAt(_A++)!==91)return!1;const IA=_A;for(;_A<BA;_A++){const FA=gA.src.charCodeAt(_A);if(FA===91)return!1;if(FA===93){CA=_A;break}else FA===92&&_A++}if(CA<0||gA.src.charCodeAt(CA+1)!==58)return!1;if(wA)return!0;const $A=gA.src.slice(IA,CA).replace(/\\(.)/g,"$1"),DA=gA.src.slice(CA+2,BA).trim();return $A.length===0||DA.length===0?!1:(gA.env.abbreviations||(gA.env.abbreviations={}),typeof gA.env.abbreviations[":"+$A]>"u"&&(gA.env.abbreviations[":"+$A]=DA),gA.line=hA+1,!0)}function dA(gA){const hA=gA.tokens;if(!gA.env.abbreviations)return;const fA=new RegExp("(?:"+Object.keys(gA.env.abbreviations).map(function(_A){return _A.substr(1)}).sort(function(_A,BA){return BA.length-_A.length}).map(Ua).join("|")+")"),wA="(^|"+AA+"|"+sA+"|["+iA.split("").map(Ua).join("")+"])("+Object.keys(gA.env.abbreviations).map(function(_A){return _A.substr(1)}).sort(function(_A,BA){return BA.length-_A.length}).map(Ua).join("|")+")($|"+AA+"|"+sA+"|["+iA.split("").map(Ua).join("")+"])",CA=new RegExp(wA,"g");for(let _A=0,BA=hA.length;_A<BA;_A++){if(hA[_A].type!=="inline")continue;let IA=hA[_A].children;for(let $A=IA.length-1;$A>=0;$A--){const DA=IA[$A];if(DA.type!=="text")continue;let FA=0;const NA=DA.content;CA.lastIndex=0;const TA=[];if(!fA.test(NA))continue;let PA;for(;PA=CA.exec(NA);){if(PA.index>0||PA[1].length>0){const qA=new gA.Token("text","",0);qA.content=NA.slice(FA,PA.index+PA[1].length),TA.push(qA)}const HA=new gA.Token("abbr_open","abbr",1);HA.attrs=[["title",gA.env.abbreviations[":"+PA[2]]]],TA.push(HA);const RA=new gA.Token("text","",0);RA.content=PA[2],TA.push(RA);const SA=new gA.Token("abbr_close","abbr",-1);TA.push(SA),CA.lastIndex-=PA[3].length,FA=CA.lastIndex}if(TA.length){if(FA<NA.length){const HA=new gA.Token("text","",0);HA.content=NA.slice(FA),TA.push(HA)}hA[_A].children=IA=aA(IA,$A,TA)}}}}Ea.block.ruler.before("reference","abbr_def",oA,{alt:["paragraph","reference"]}),Ea.core.ruler.after("linkify","abbr_replace",dA)}var e$Q=!1,n$E={false:"push",true:"unshift",after:"push",before:"unshift"},t$k={isPermalinkSymbol:!0};function r$6(Ea,Ua,aA,iA){var AA;if(!e$Q){var sA="Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks";typeof process=="object"&&process&&process.emitWarning?process.emitWarning(sA):console.warn(sA),e$Q=!0}var oA=[Object.assign(new aA.Token("link_open","a",1),{attrs:[].concat(Ua.permalinkClass?[["class",Ua.permalinkClass]]:[],[["href",Ua.permalinkHref(Ea,aA)]],Object.entries(Ua.permalinkAttrs(Ea,aA)))}),Object.assign(new aA.Token("html_block","",0),{content:Ua.permalinkSymbol,meta:t$k}),new aA.Token("link_close","a",-1)];Ua.permalinkSpace&&aA.tokens[iA+1].children[n$E[Ua.permalinkBefore]](Object.assign(new aA.Token("text","",0),{content:" "})),(AA=aA.tokens[iA+1].children)[n$E[Ua.permalinkBefore]].apply(AA,oA)}function a$i(Ea){return"#"+Ea}function i$3$1(Ea){return{}}var l$4={class:"header-anchor",symbol:"#",renderHref:a$i,renderAttrs:i$3$1};function o$4(Ea){function Ua(aA){return aA=Object.assign({},Ua.defaults,aA),function(iA,AA,sA,oA){return Ea(iA,aA,AA,sA,oA)}}return Ua.defaults=Object.assign({},l$4),Ua.renderPermalinkImpl=Ea,Ua}var c$8=o$4(function(Ea,Ua,aA,iA,AA){var sA,oA=[Object.assign(new iA.Token("link_open","a",1),{attrs:[].concat(Ua.class?[["class",Ua.class]]:[],[["href",Ua.renderHref(Ea,iA)]],Ua.ariaHidden?[["aria-hidden","true"]]:[],Object.entries(Ua.renderAttrs(Ea,iA)))}),Object.assign(new iA.Token("html_inline","",0),{content:Ua.symbol,meta:t$k}),new iA.Token("link_close","a",-1)];if(Ua.space){var dA=typeof Ua.space=="string"?Ua.space:" ";iA.tokens[AA+1].children[n$E[Ua.placement]](Object.assign(new iA.Token(typeof Ua.space=="string"?"html_inline":"text","",0),{content:dA}))}(sA=iA.tokens[AA+1].children)[n$E[Ua.placement]].apply(sA,oA)});Object.assign(c$8.defaults,{space:!0,placement:"after",ariaHidden:!1});var s$6=o$4(c$8.renderPermalinkImpl);s$6.defaults=Object.assign({},c$8.defaults,{ariaHidden:!0});var u$4=o$4(function(Ea,Ua,aA,iA,AA){var sA=[Object.assign(new iA.Token("link_open","a",1),{attrs:[].concat(Ua.class?[["class",Ua.class]]:[],[["href",Ua.renderHref(Ea,iA)]],Object.entries(Ua.renderAttrs(Ea,iA)))})].concat(Ua.safariReaderFix?[new iA.Token("span_open","span",1)]:[],iA.tokens[AA+1].children,Ua.safariReaderFix?[new iA.Token("span_close","span",-1)]:[],[new iA.Token("link_close","a",-1)]);iA.tokens[AA+1]=Object.assign(new iA.Token("inline","",0),{children:sA})});Object.assign(u$4.defaults,{safariReaderFix:!1});var d$5=o$4(function(Ea,Ua,aA,iA,AA){var sA;if(!["visually-hidden","aria-label","aria-describedby","aria-labelledby"].includes(Ua.style))throw new Error("`permalink.linkAfterHeader` called with unknown style option `"+Ua.style+"`");if(!["aria-describedby","aria-labelledby"].includes(Ua.style)&&!Ua.assistiveText)throw new Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+Ua.style+"` style");if(Ua.style==="visually-hidden"&&!Ua.visuallyHiddenClass)throw new Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var oA=iA.tokens[AA+1].children.filter(function(wA){return wA.type==="text"||wA.type==="code_inline"}).reduce(function(wA,CA){return wA+CA.content},""),dA=[],gA=[];if(Ua.class&&gA.push(["class",Ua.class]),gA.push(["href",Ua.renderHref(Ea,iA)]),gA.push.apply(gA,Object.entries(Ua.renderAttrs(Ea,iA))),Ua.style==="visually-hidden"){if(dA.push(Object.assign(new iA.Token("span_open","span",1),{attrs:[["class",Ua.visuallyHiddenClass]]}),Object.assign(new iA.Token("text","",0),{content:Ua.assistiveText(oA)}),new iA.Token("span_close","span",-1)),Ua.space){var hA=typeof Ua.space=="string"?Ua.space:" ";dA[n$E[Ua.placement]](Object.assign(new iA.Token(typeof Ua.space=="string"?"html_inline":"text","",0),{content:hA}))}dA[n$E[Ua.placement]](Object.assign(new iA.Token("span_open","span",1),{attrs:[["aria-hidden","true"]]}),Object.assign(new iA.Token("html_inline","",0),{content:Ua.symbol,meta:t$k}),new iA.Token("span_close","span",-1))}else dA.push(Object.assign(new iA.Token("html_inline","",0),{content:Ua.symbol,meta:t$k}));Ua.style==="aria-label"?gA.push(["aria-label",Ua.assistiveText(oA)]):["aria-describedby","aria-labelledby"].includes(Ua.style)&&gA.push([Ua.style,Ea]);var fA=[Object.assign(new iA.Token("link_open","a",1),{attrs:gA})].concat(dA,[new iA.Token("link_close","a",-1)]);(sA=iA.tokens).splice.apply(sA,[AA+3,0].concat(fA)),Ua.wrapper&&(iA.tokens.splice(AA,0,Object.assign(new iA.Token("html_block","",0),{content:Ua.wrapper[0]+`
|
|
33
|
+
`,sA.map=[Ua,Ea.line],!0}function fence(Ea,Ua,aA,iA){let AA=Ea.bMarks[Ua]+Ea.tShift[Ua],sA=Ea.eMarks[Ua];if(Ea.sCount[Ua]-Ea.blkIndent>=4||AA+3>sA)return!1;const oA=Ea.src.charCodeAt(AA);if(oA!==126&&oA!==96)return!1;let dA=AA;AA=Ea.skipChars(AA,oA);let gA=AA-dA;if(gA<3)return!1;const hA=Ea.src.slice(dA,AA),fA=Ea.src.slice(AA,sA);if(oA===96&&fA.indexOf(String.fromCharCode(oA))>=0)return!1;if(iA)return!0;let wA=Ua,CA=!1;for(;wA++,!(wA>=aA||(AA=dA=Ea.bMarks[wA]+Ea.tShift[wA],sA=Ea.eMarks[wA],AA<sA&&Ea.sCount[wA]<Ea.blkIndent));)if(Ea.src.charCodeAt(AA)===oA&&!(Ea.sCount[wA]-Ea.blkIndent>=4)&&(AA=Ea.skipChars(AA,oA),!(AA-dA<gA)&&(AA=Ea.skipSpaces(AA),!(AA<sA)))){CA=!0;break}gA=Ea.sCount[Ua],Ea.line=wA+(CA?1:0);const _A=Ea.push("fence","code",0);return _A.info=fA,_A.content=Ea.getLines(Ua+1,wA,gA,!0),_A.markup=hA,_A.map=[Ua,Ea.line],!0}function blockquote(Ea,Ua,aA,iA){let AA=Ea.bMarks[Ua]+Ea.tShift[Ua],sA=Ea.eMarks[Ua];const oA=Ea.lineMax;if(Ea.sCount[Ua]-Ea.blkIndent>=4||Ea.src.charCodeAt(AA)!==62)return!1;if(iA)return!0;const dA=[],gA=[],hA=[],fA=[],wA=Ea.md.block.ruler.getRules("blockquote"),CA=Ea.parentType;Ea.parentType="blockquote";let _A=!1,BA;for(BA=Ua;BA<aA;BA++){const NA=Ea.sCount[BA]<Ea.blkIndent;if(AA=Ea.bMarks[BA]+Ea.tShift[BA],sA=Ea.eMarks[BA],AA>=sA)break;if(Ea.src.charCodeAt(AA++)===62&&!NA){let PA=Ea.sCount[BA]+1,HA,RA;Ea.src.charCodeAt(AA)===32?(AA++,PA++,RA=!1,HA=!0):Ea.src.charCodeAt(AA)===9?(HA=!0,(Ea.bsCount[BA]+PA)%4===3?(AA++,PA++,RA=!1):RA=!0):HA=!1;let SA=PA;for(dA.push(Ea.bMarks[BA]),Ea.bMarks[BA]=AA;AA<sA;){const qA=Ea.src.charCodeAt(AA);if(isSpace(qA))qA===9?SA+=4-(SA+Ea.bsCount[BA]+(RA?1:0))%4:SA++;else break;AA++}_A=AA>=sA,gA.push(Ea.bsCount[BA]),Ea.bsCount[BA]=Ea.sCount[BA]+1+(HA?1:0),hA.push(Ea.sCount[BA]),Ea.sCount[BA]=SA-PA,fA.push(Ea.tShift[BA]),Ea.tShift[BA]=AA-Ea.bMarks[BA];continue}if(_A)break;let TA=!1;for(let PA=0,HA=wA.length;PA<HA;PA++)if(wA[PA](Ea,BA,aA,!0)){TA=!0;break}if(TA){Ea.lineMax=BA,Ea.blkIndent!==0&&(dA.push(Ea.bMarks[BA]),gA.push(Ea.bsCount[BA]),fA.push(Ea.tShift[BA]),hA.push(Ea.sCount[BA]),Ea.sCount[BA]-=Ea.blkIndent);break}dA.push(Ea.bMarks[BA]),gA.push(Ea.bsCount[BA]),fA.push(Ea.tShift[BA]),hA.push(Ea.sCount[BA]),Ea.sCount[BA]=-1}const IA=Ea.blkIndent;Ea.blkIndent=0;const $A=Ea.push("blockquote_open","blockquote",1);$A.markup=">";const DA=[Ua,0];$A.map=DA,Ea.md.block.tokenize(Ea,Ua,BA);const FA=Ea.push("blockquote_close","blockquote",-1);FA.markup=">",Ea.lineMax=oA,Ea.parentType=CA,DA[1]=Ea.line;for(let NA=0;NA<fA.length;NA++)Ea.bMarks[NA+Ua]=dA[NA],Ea.tShift[NA+Ua]=fA[NA],Ea.sCount[NA+Ua]=hA[NA],Ea.bsCount[NA+Ua]=gA[NA];return Ea.blkIndent=IA,!0}function hr$6(Ea,Ua,aA,iA){const AA=Ea.eMarks[Ua];if(Ea.sCount[Ua]-Ea.blkIndent>=4)return!1;let sA=Ea.bMarks[Ua]+Ea.tShift[Ua];const oA=Ea.src.charCodeAt(sA++);if(oA!==42&&oA!==45&&oA!==95)return!1;let dA=1;for(;sA<AA;){const hA=Ea.src.charCodeAt(sA++);if(hA!==oA&&!isSpace(hA))return!1;hA===oA&&dA++}if(dA<3)return!1;if(iA)return!0;Ea.line=Ua+1;const gA=Ea.push("hr","hr",0);return gA.map=[Ua,Ea.line],gA.markup=Array(dA+1).join(String.fromCharCode(oA)),!0}function skipBulletListMarker(Ea,Ua){const aA=Ea.eMarks[Ua];let iA=Ea.bMarks[Ua]+Ea.tShift[Ua];const AA=Ea.src.charCodeAt(iA++);if(AA!==42&&AA!==45&&AA!==43)return-1;if(iA<aA){const sA=Ea.src.charCodeAt(iA);if(!isSpace(sA))return-1}return iA}function skipOrderedListMarker(Ea,Ua){const aA=Ea.bMarks[Ua]+Ea.tShift[Ua],iA=Ea.eMarks[Ua];let AA=aA;if(AA+1>=iA)return-1;let sA=Ea.src.charCodeAt(AA++);if(sA<48||sA>57)return-1;for(;;){if(AA>=iA)return-1;if(sA=Ea.src.charCodeAt(AA++),sA>=48&&sA<=57){if(AA-aA>=10)return-1;continue}if(sA===41||sA===46)break;return-1}return AA<iA&&(sA=Ea.src.charCodeAt(AA),!isSpace(sA))?-1:AA}function markTightParagraphs(Ea,Ua){const aA=Ea.level+2;for(let iA=Ua+2,AA=Ea.tokens.length-2;iA<AA;iA++)Ea.tokens[iA].level===aA&&Ea.tokens[iA].type==="paragraph_open"&&(Ea.tokens[iA+2].hidden=!0,Ea.tokens[iA].hidden=!0,iA+=2)}function list(Ea,Ua,aA,iA){let AA,sA,oA,dA,gA=Ua,hA=!0;if(Ea.sCount[gA]-Ea.blkIndent>=4||Ea.listIndent>=0&&Ea.sCount[gA]-Ea.listIndent>=4&&Ea.sCount[gA]<Ea.blkIndent)return!1;let fA=!1;iA&&Ea.parentType==="paragraph"&&Ea.sCount[gA]>=Ea.blkIndent&&(fA=!0);let wA,CA,_A;if((_A=skipOrderedListMarker(Ea,gA))>=0){if(wA=!0,oA=Ea.bMarks[gA]+Ea.tShift[gA],CA=Number(Ea.src.slice(oA,_A-1)),fA&&CA!==1)return!1}else if((_A=skipBulletListMarker(Ea,gA))>=0)wA=!1;else return!1;if(fA&&Ea.skipSpaces(_A)>=Ea.eMarks[gA])return!1;if(iA)return!0;const BA=Ea.src.charCodeAt(_A-1),IA=Ea.tokens.length;wA?(dA=Ea.push("ordered_list_open","ol",1),CA!==1&&(dA.attrs=[["start",CA]])):dA=Ea.push("bullet_list_open","ul",1);const $A=[gA,0];dA.map=$A,dA.markup=String.fromCharCode(BA);let DA=!1;const FA=Ea.md.block.ruler.getRules("list"),NA=Ea.parentType;for(Ea.parentType="list";gA<aA;){sA=_A,AA=Ea.eMarks[gA];const TA=Ea.sCount[gA]+_A-(Ea.bMarks[gA]+Ea.tShift[gA]);let PA=TA;for(;sA<AA;){const Fl=Ea.src.charCodeAt(sA);if(Fl===9)PA+=4-(PA+Ea.bsCount[gA])%4;else if(Fl===32)PA++;else break;sA++}const HA=sA;let RA;HA>=AA?RA=1:RA=PA-TA,RA>4&&(RA=1);const SA=TA+RA;dA=Ea.push("list_item_open","li",1),dA.markup=String.fromCharCode(BA);const qA=[gA,0];dA.map=qA,wA&&(dA.info=Ea.src.slice(oA,_A-1));const LA=Ea.tight,KA=Ea.tShift[gA],jA=Ea.sCount[gA],UA=Ea.listIndent;if(Ea.listIndent=Ea.blkIndent,Ea.blkIndent=SA,Ea.tight=!0,Ea.tShift[gA]=HA-Ea.bMarks[gA],Ea.sCount[gA]=PA,HA>=AA&&Ea.isEmpty(gA+1)?Ea.line=Math.min(Ea.line+2,aA):Ea.md.block.tokenize(Ea,gA,aA,!0),(!Ea.tight||DA)&&(hA=!1),DA=Ea.line-gA>1&&Ea.isEmpty(Ea.line-1),Ea.blkIndent=Ea.listIndent,Ea.listIndent=UA,Ea.tShift[gA]=KA,Ea.sCount[gA]=jA,Ea.tight=LA,dA=Ea.push("list_item_close","li",-1),dA.markup=String.fromCharCode(BA),gA=Ea.line,qA[1]=gA,gA>=aA||Ea.sCount[gA]<Ea.blkIndent||Ea.sCount[gA]-Ea.blkIndent>=4)break;let _l=!1;for(let Fl=0,Bl=FA.length;Fl<Bl;Fl++)if(FA[Fl](Ea,gA,aA,!0)){_l=!0;break}if(_l)break;if(wA){if(_A=skipOrderedListMarker(Ea,gA),_A<0)break;oA=Ea.bMarks[gA]+Ea.tShift[gA]}else if(_A=skipBulletListMarker(Ea,gA),_A<0)break;if(BA!==Ea.src.charCodeAt(_A-1))break}return wA?dA=Ea.push("ordered_list_close","ol",-1):dA=Ea.push("bullet_list_close","ul",-1),dA.markup=String.fromCharCode(BA),$A[1]=gA,Ea.line=gA,Ea.parentType=NA,hA&&markTightParagraphs(Ea,IA),!0}function reference(Ea,Ua,aA,iA){let AA=0,sA=Ea.bMarks[Ua]+Ea.tShift[Ua],oA=Ea.eMarks[Ua],dA=Ua+1;if(Ea.sCount[Ua]-Ea.blkIndent>=4||Ea.src.charCodeAt(sA)!==91)return!1;for(;++sA<oA;)if(Ea.src.charCodeAt(sA)===93&&Ea.src.charCodeAt(sA-1)!==92){if(sA+1===oA||Ea.src.charCodeAt(sA+1)!==58)return!1;break}const gA=Ea.lineMax,hA=Ea.md.block.ruler.getRules("reference"),fA=Ea.parentType;for(Ea.parentType="reference";dA<gA&&!Ea.isEmpty(dA);dA++){if(Ea.sCount[dA]-Ea.blkIndent>3||Ea.sCount[dA]<0)continue;let PA=!1;for(let HA=0,RA=hA.length;HA<RA;HA++)if(hA[HA](Ea,dA,gA,!0)){PA=!0;break}if(PA)break}const wA=Ea.getLines(Ua,dA,Ea.blkIndent,!1).trim();oA=wA.length;let CA=-1;for(sA=1;sA<oA;sA++){const PA=wA.charCodeAt(sA);if(PA===91)return!1;if(PA===93){CA=sA;break}else PA===10?AA++:PA===92&&(sA++,sA<oA&&wA.charCodeAt(sA)===10&&AA++)}if(CA<0||wA.charCodeAt(CA+1)!==58)return!1;for(sA=CA+2;sA<oA;sA++){const PA=wA.charCodeAt(sA);if(PA===10)AA++;else if(!isSpace(PA))break}const _A=Ea.md.helpers.parseLinkDestination(wA,sA,oA);if(!_A.ok)return!1;const BA=Ea.md.normalizeLink(_A.str);if(!Ea.md.validateLink(BA))return!1;sA=_A.pos,AA+=_A.lines;const IA=sA,$A=AA,DA=sA;for(;sA<oA;sA++){const PA=wA.charCodeAt(sA);if(PA===10)AA++;else if(!isSpace(PA))break}const FA=Ea.md.helpers.parseLinkTitle(wA,sA,oA);let NA;for(sA<oA&&DA!==sA&&FA.ok?(NA=FA.str,sA=FA.pos,AA+=FA.lines):(NA="",sA=IA,AA=$A);sA<oA;){const PA=wA.charCodeAt(sA);if(!isSpace(PA))break;sA++}if(sA<oA&&wA.charCodeAt(sA)!==10&&NA)for(NA="",sA=IA,AA=$A;sA<oA;){const PA=wA.charCodeAt(sA);if(!isSpace(PA))break;sA++}if(sA<oA&&wA.charCodeAt(sA)!==10)return!1;const TA=normalizeReference(wA.slice(1,CA));return TA?(iA||(typeof Ea.env.references>"u"&&(Ea.env.references={}),typeof Ea.env.references[TA]>"u"&&(Ea.env.references[TA]={title:NA,href:BA}),Ea.parentType=fA,Ea.line=Ua+AA+1),!0):!1}const block_names=["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","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],attr_name="[a-zA-Z_:][a-zA-Z0-9:._-]*",unquoted="[^\"'=<>`\\x00-\\x20]+",single_quoted="'[^']*'",double_quoted='"[^"]*"',attr_value="(?:"+unquoted+"|"+single_quoted+"|"+double_quoted+")",attribute="(?:\\s+"+attr_name+"(?:\\s*=\\s*"+attr_value+")?)",open_tag="<[A-Za-z][A-Za-z0-9\\-]*"+attribute+"*\\s*\\/?>",close_tag="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",comment$1="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",processing="<[?][\\s\\S]*?[?]>",declaration$1="<![A-Z]+\\s+[^>]*>",cdata="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",HTML_TAG_RE=new RegExp("^(?:"+open_tag+"|"+close_tag+"|"+comment$1+"|"+processing+"|"+declaration$1+"|"+cdata+")"),HTML_OPEN_CLOSE_TAG_RE=new RegExp("^(?:"+open_tag+"|"+close_tag+")"),HTML_SEQUENCES=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+block_names.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(HTML_OPEN_CLOSE_TAG_RE.source+"\\s*$"),/^$/,!1]];function html_block(Ea,Ua,aA,iA){let AA=Ea.bMarks[Ua]+Ea.tShift[Ua],sA=Ea.eMarks[Ua];if(Ea.sCount[Ua]-Ea.blkIndent>=4||!Ea.md.options.html||Ea.src.charCodeAt(AA)!==60)return!1;let oA=Ea.src.slice(AA,sA),dA=0;for(;dA<HTML_SEQUENCES.length&&!HTML_SEQUENCES[dA][0].test(oA);dA++);if(dA===HTML_SEQUENCES.length)return!1;if(iA)return HTML_SEQUENCES[dA][2];let gA=Ua+1;if(!HTML_SEQUENCES[dA][1].test(oA)){for(;gA<aA&&!(Ea.sCount[gA]<Ea.blkIndent);gA++)if(AA=Ea.bMarks[gA]+Ea.tShift[gA],sA=Ea.eMarks[gA],oA=Ea.src.slice(AA,sA),HTML_SEQUENCES[dA][1].test(oA)){oA.length!==0&&gA++;break}}Ea.line=gA;const hA=Ea.push("html_block","",0);return hA.map=[Ua,gA],hA.content=Ea.getLines(Ua,gA,Ea.blkIndent,!0),!0}function heading(Ea,Ua,aA,iA){let AA=Ea.bMarks[Ua]+Ea.tShift[Ua],sA=Ea.eMarks[Ua];if(Ea.sCount[Ua]-Ea.blkIndent>=4)return!1;let oA=Ea.src.charCodeAt(AA);if(oA!==35||AA>=sA)return!1;let dA=1;for(oA=Ea.src.charCodeAt(++AA);oA===35&&AA<sA&&dA<=6;)dA++,oA=Ea.src.charCodeAt(++AA);if(dA>6||AA<sA&&!isSpace(oA))return!1;if(iA)return!0;sA=Ea.skipSpacesBack(sA,AA);const gA=Ea.skipCharsBack(sA,35,AA);gA>AA&&isSpace(Ea.src.charCodeAt(gA-1))&&(sA=gA),Ea.line=Ua+1;const hA=Ea.push("heading_open","h"+String(dA),1);hA.markup="########".slice(0,dA),hA.map=[Ua,Ea.line];const fA=Ea.push("inline","",0);fA.content=Ea.src.slice(AA,sA).trim(),fA.map=[Ua,Ea.line],fA.children=[];const wA=Ea.push("heading_close","h"+String(dA),-1);return wA.markup="########".slice(0,dA),!0}function lheading(Ea,Ua,aA){const iA=Ea.md.block.ruler.getRules("paragraph");if(Ea.sCount[Ua]-Ea.blkIndent>=4)return!1;const AA=Ea.parentType;Ea.parentType="paragraph";let sA=0,oA,dA=Ua+1;for(;dA<aA&&!Ea.isEmpty(dA);dA++){if(Ea.sCount[dA]-Ea.blkIndent>3)continue;if(Ea.sCount[dA]>=Ea.blkIndent){let _A=Ea.bMarks[dA]+Ea.tShift[dA];const BA=Ea.eMarks[dA];if(_A<BA&&(oA=Ea.src.charCodeAt(_A),(oA===45||oA===61)&&(_A=Ea.skipChars(_A,oA),_A=Ea.skipSpaces(_A),_A>=BA))){sA=oA===61?1:2;break}}if(Ea.sCount[dA]<0)continue;let CA=!1;for(let _A=0,BA=iA.length;_A<BA;_A++)if(iA[_A](Ea,dA,aA,!0)){CA=!0;break}if(CA)break}if(!sA)return!1;const gA=Ea.getLines(Ua,dA,Ea.blkIndent,!1).trim();Ea.line=dA+1;const hA=Ea.push("heading_open","h"+String(sA),1);hA.markup=String.fromCharCode(oA),hA.map=[Ua,Ea.line];const fA=Ea.push("inline","",0);fA.content=gA,fA.map=[Ua,Ea.line-1],fA.children=[];const wA=Ea.push("heading_close","h"+String(sA),-1);return wA.markup=String.fromCharCode(oA),Ea.parentType=AA,!0}function paragraph(Ea,Ua,aA){const iA=Ea.md.block.ruler.getRules("paragraph"),AA=Ea.parentType;let sA=Ua+1;for(Ea.parentType="paragraph";sA<aA&&!Ea.isEmpty(sA);sA++){if(Ea.sCount[sA]-Ea.blkIndent>3||Ea.sCount[sA]<0)continue;let hA=!1;for(let fA=0,wA=iA.length;fA<wA;fA++)if(iA[fA](Ea,sA,aA,!0)){hA=!0;break}if(hA)break}const oA=Ea.getLines(Ua,sA,Ea.blkIndent,!1).trim();Ea.line=sA;const dA=Ea.push("paragraph_open","p",1);dA.map=[Ua,Ea.line];const gA=Ea.push("inline","",0);return gA.content=oA,gA.map=[Ua,Ea.line],gA.children=[],Ea.push("paragraph_close","p",-1),Ea.parentType=AA,!0}const _rules$1=[["table",table,["paragraph","reference"]],["code",code$1],["fence",fence,["paragraph","reference","blockquote","list"]],["blockquote",blockquote,["paragraph","reference","blockquote","list"]],["hr",hr$6,["paragraph","reference","blockquote","list"]],["list",list,["paragraph","reference","blockquote"]],["reference",reference],["html_block",html_block,["paragraph","reference","blockquote"]],["heading",heading,["paragraph","reference","blockquote"]],["lheading",lheading],["paragraph",paragraph]];function ParserBlock(){this.ruler=new Ruler;for(let Ea=0;Ea<_rules$1.length;Ea++)this.ruler.push(_rules$1[Ea][0],_rules$1[Ea][1],{alt:(_rules$1[Ea][2]||[]).slice()})}ParserBlock.prototype.tokenize=function(Ea,Ua,aA){const iA=this.ruler.getRules(""),AA=iA.length,sA=Ea.md.options.maxNesting;let oA=Ua,dA=!1;for(;oA<aA&&(Ea.line=oA=Ea.skipEmptyLines(oA),!(oA>=aA||Ea.sCount[oA]<Ea.blkIndent));){if(Ea.level>=sA){Ea.line=aA;break}const gA=Ea.line;let hA=!1;for(let fA=0;fA<AA;fA++)if(hA=iA[fA](Ea,oA,aA,!1),hA){if(gA>=Ea.line)throw new Error("block rule didn't increment state.line");break}if(!hA)throw new Error("none of the block rules matched");Ea.tight=!dA,Ea.isEmpty(Ea.line-1)&&(dA=!0),oA=Ea.line,oA<aA&&Ea.isEmpty(oA)&&(dA=!0,oA++,Ea.line=oA)}},ParserBlock.prototype.parse=function(Ea,Ua,aA,iA){if(!Ea)return;const AA=new this.State(Ea,Ua,aA,iA);this.tokenize(AA,AA.line,AA.lineMax)},ParserBlock.prototype.State=StateBlock;function StateInline(Ea,Ua,aA,iA){this.src=Ea,this.env=aA,this.md=Ua,this.tokens=iA,this.tokens_meta=Array(iA.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}StateInline.prototype.pushPending=function(){const Ea=new Token("text","",0);return Ea.content=this.pending,Ea.level=this.pendingLevel,this.tokens.push(Ea),this.pending="",Ea},StateInline.prototype.push=function(Ea,Ua,aA){this.pending&&this.pushPending();const iA=new Token(Ea,Ua,aA);let AA=null;return aA<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),iA.level=this.level,aA>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],AA={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(iA),this.tokens_meta.push(AA),iA},StateInline.prototype.scanDelims=function(Ea,Ua){let aA,iA,AA=!0,sA=!0;const oA=this.posMax,dA=this.src.charCodeAt(Ea),gA=Ea>0?this.src.charCodeAt(Ea-1):32;let hA=Ea;for(;hA<oA&&this.src.charCodeAt(hA)===dA;)hA++;const fA=hA-Ea,wA=hA<oA?this.src.charCodeAt(hA):32,CA=isMdAsciiPunct(gA)||isPunctChar(String.fromCharCode(gA)),_A=isMdAsciiPunct(wA)||isPunctChar(String.fromCharCode(wA)),BA=isWhiteSpace(gA),IA=isWhiteSpace(wA);return IA?AA=!1:_A&&(BA||CA||(AA=!1)),BA?sA=!1:CA&&(IA||_A||(sA=!1)),Ua?(aA=AA,iA=sA):(aA=AA&&(!sA||CA),iA=sA&&(!AA||_A)),{can_open:aA,can_close:iA,length:fA}},StateInline.prototype.Token=Token;function isTerminatorChar(Ea){switch(Ea){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function text$1(Ea,Ua){let aA=Ea.pos;for(;aA<Ea.posMax&&!isTerminatorChar(Ea.src.charCodeAt(aA));)aA++;return aA===Ea.pos?!1:(Ua||(Ea.pending+=Ea.src.slice(Ea.pos,aA)),Ea.pos=aA,!0)}const SCHEME_RE=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function linkify(Ea,Ua){if(!Ea.md.options.linkify||Ea.linkLevel>0)return!1;const aA=Ea.pos,iA=Ea.posMax;if(aA+3>iA||Ea.src.charCodeAt(aA)!==58||Ea.src.charCodeAt(aA+1)!==47||Ea.src.charCodeAt(aA+2)!==47)return!1;const AA=Ea.pending.match(SCHEME_RE);if(!AA)return!1;const sA=AA[1],oA=Ea.md.linkify.matchAtStart(Ea.src.slice(aA-sA.length));if(!oA)return!1;let dA=oA.url;if(dA.length<=sA.length)return!1;dA=dA.replace(/\*+$/,"");const gA=Ea.md.normalizeLink(dA);if(!Ea.md.validateLink(gA))return!1;if(!Ua){Ea.pending=Ea.pending.slice(0,-sA.length);const hA=Ea.push("link_open","a",1);hA.attrs=[["href",gA]],hA.markup="linkify",hA.info="auto";const fA=Ea.push("text","",0);fA.content=Ea.md.normalizeLinkText(dA);const wA=Ea.push("link_close","a",-1);wA.markup="linkify",wA.info="auto"}return Ea.pos+=dA.length-sA.length,!0}function newline$1(Ea,Ua){let aA=Ea.pos;if(Ea.src.charCodeAt(aA)!==10)return!1;const iA=Ea.pending.length-1,AA=Ea.posMax;if(!Ua)if(iA>=0&&Ea.pending.charCodeAt(iA)===32)if(iA>=1&&Ea.pending.charCodeAt(iA-1)===32){let sA=iA-1;for(;sA>=1&&Ea.pending.charCodeAt(sA-1)===32;)sA--;Ea.pending=Ea.pending.slice(0,sA),Ea.push("hardbreak","br",0)}else Ea.pending=Ea.pending.slice(0,-1),Ea.push("softbreak","br",0);else Ea.push("softbreak","br",0);for(aA++;aA<AA&&isSpace(Ea.src.charCodeAt(aA));)aA++;return Ea.pos=aA,!0}const ESCAPED=[];for(let Ea=0;Ea<256;Ea++)ESCAPED.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(Ea){ESCAPED[Ea.charCodeAt(0)]=1});function escape$1(Ea,Ua){let aA=Ea.pos;const iA=Ea.posMax;if(Ea.src.charCodeAt(aA)!==92||(aA++,aA>=iA))return!1;let AA=Ea.src.charCodeAt(aA);if(AA===10){for(Ua||Ea.push("hardbreak","br",0),aA++;aA<iA&&(AA=Ea.src.charCodeAt(aA),!!isSpace(AA));)aA++;return Ea.pos=aA,!0}let sA=Ea.src[aA];if(AA>=55296&&AA<=56319&&aA+1<iA){const dA=Ea.src.charCodeAt(aA+1);dA>=56320&&dA<=57343&&(sA+=Ea.src[aA+1],aA++)}const oA="\\"+sA;if(!Ua){const dA=Ea.push("text_special","",0);AA<256&&ESCAPED[AA]!==0?dA.content=sA:dA.content=oA,dA.markup=oA,dA.info="escape"}return Ea.pos=aA+1,!0}function backtick(Ea,Ua){let aA=Ea.pos;if(Ea.src.charCodeAt(aA)!==96)return!1;const iA=aA;aA++;const AA=Ea.posMax;for(;aA<AA&&Ea.src.charCodeAt(aA)===96;)aA++;const sA=Ea.src.slice(iA,aA),oA=sA.length;if(Ea.backticksScanned&&(Ea.backticks[oA]||0)<=iA)return Ua||(Ea.pending+=sA),Ea.pos+=oA,!0;let dA=aA,gA;for(;(gA=Ea.src.indexOf("`",dA))!==-1;){for(dA=gA+1;dA<AA&&Ea.src.charCodeAt(dA)===96;)dA++;const hA=dA-gA;if(hA===oA){if(!Ua){const fA=Ea.push("code_inline","code",0);fA.markup=sA,fA.content=Ea.src.slice(aA,gA).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return Ea.pos=dA,!0}Ea.backticks[hA]=gA}return Ea.backticksScanned=!0,Ua||(Ea.pending+=sA),Ea.pos+=oA,!0}function strikethrough_tokenize(Ea,Ua){const aA=Ea.pos,iA=Ea.src.charCodeAt(aA);if(Ua||iA!==126)return!1;const AA=Ea.scanDelims(Ea.pos,!0);let sA=AA.length;const oA=String.fromCharCode(iA);if(sA<2)return!1;let dA;sA%2&&(dA=Ea.push("text","",0),dA.content=oA,sA--);for(let gA=0;gA<sA;gA+=2)dA=Ea.push("text","",0),dA.content=oA+oA,Ea.delimiters.push({marker:iA,length:0,token:Ea.tokens.length-1,end:-1,open:AA.can_open,close:AA.can_close});return Ea.pos+=AA.length,!0}function postProcess$1(Ea,Ua){let aA;const iA=[],AA=Ua.length;for(let sA=0;sA<AA;sA++){const oA=Ua[sA];if(oA.marker!==126||oA.end===-1)continue;const dA=Ua[oA.end];aA=Ea.tokens[oA.token],aA.type="s_open",aA.tag="s",aA.nesting=1,aA.markup="~~",aA.content="",aA=Ea.tokens[dA.token],aA.type="s_close",aA.tag="s",aA.nesting=-1,aA.markup="~~",aA.content="",Ea.tokens[dA.token-1].type==="text"&&Ea.tokens[dA.token-1].content==="~"&&iA.push(dA.token-1)}for(;iA.length;){const sA=iA.pop();let oA=sA+1;for(;oA<Ea.tokens.length&&Ea.tokens[oA].type==="s_close";)oA++;oA--,sA!==oA&&(aA=Ea.tokens[oA],Ea.tokens[oA]=Ea.tokens[sA],Ea.tokens[sA]=aA)}}function strikethrough_postProcess(Ea){const Ua=Ea.tokens_meta,aA=Ea.tokens_meta.length;postProcess$1(Ea,Ea.delimiters);for(let iA=0;iA<aA;iA++)Ua[iA]&&Ua[iA].delimiters&&postProcess$1(Ea,Ua[iA].delimiters)}const r_strikethrough={tokenize:strikethrough_tokenize,postProcess:strikethrough_postProcess};function emphasis_tokenize(Ea,Ua){const aA=Ea.pos,iA=Ea.src.charCodeAt(aA);if(Ua||iA!==95&&iA!==42)return!1;const AA=Ea.scanDelims(Ea.pos,iA===42);for(let sA=0;sA<AA.length;sA++){const oA=Ea.push("text","",0);oA.content=String.fromCharCode(iA),Ea.delimiters.push({marker:iA,length:AA.length,token:Ea.tokens.length-1,end:-1,open:AA.can_open,close:AA.can_close})}return Ea.pos+=AA.length,!0}function postProcess(Ea,Ua){const aA=Ua.length;for(let iA=aA-1;iA>=0;iA--){const AA=Ua[iA];if(AA.marker!==95&&AA.marker!==42||AA.end===-1)continue;const sA=Ua[AA.end],oA=iA>0&&Ua[iA-1].end===AA.end+1&&Ua[iA-1].marker===AA.marker&&Ua[iA-1].token===AA.token-1&&Ua[AA.end+1].token===sA.token+1,dA=String.fromCharCode(AA.marker),gA=Ea.tokens[AA.token];gA.type=oA?"strong_open":"em_open",gA.tag=oA?"strong":"em",gA.nesting=1,gA.markup=oA?dA+dA:dA,gA.content="";const hA=Ea.tokens[sA.token];hA.type=oA?"strong_close":"em_close",hA.tag=oA?"strong":"em",hA.nesting=-1,hA.markup=oA?dA+dA:dA,hA.content="",oA&&(Ea.tokens[Ua[iA-1].token].content="",Ea.tokens[Ua[AA.end+1].token].content="",iA--)}}function emphasis_post_process(Ea){const Ua=Ea.tokens_meta,aA=Ea.tokens_meta.length;postProcess(Ea,Ea.delimiters);for(let iA=0;iA<aA;iA++)Ua[iA]&&Ua[iA].delimiters&&postProcess(Ea,Ua[iA].delimiters)}const r_emphasis={tokenize:emphasis_tokenize,postProcess:emphasis_post_process};function link(Ea,Ua){let aA,iA,AA,sA,oA="",dA="",gA=Ea.pos,hA=!0;if(Ea.src.charCodeAt(Ea.pos)!==91)return!1;const fA=Ea.pos,wA=Ea.posMax,CA=Ea.pos+1,_A=Ea.md.helpers.parseLinkLabel(Ea,Ea.pos,!0);if(_A<0)return!1;let BA=_A+1;if(BA<wA&&Ea.src.charCodeAt(BA)===40){for(hA=!1,BA++;BA<wA&&(aA=Ea.src.charCodeAt(BA),!(!isSpace(aA)&&aA!==10));BA++);if(BA>=wA)return!1;if(gA=BA,AA=Ea.md.helpers.parseLinkDestination(Ea.src,BA,Ea.posMax),AA.ok){for(oA=Ea.md.normalizeLink(AA.str),Ea.md.validateLink(oA)?BA=AA.pos:oA="",gA=BA;BA<wA&&(aA=Ea.src.charCodeAt(BA),!(!isSpace(aA)&&aA!==10));BA++);if(AA=Ea.md.helpers.parseLinkTitle(Ea.src,BA,Ea.posMax),BA<wA&&gA!==BA&&AA.ok)for(dA=AA.str,BA=AA.pos;BA<wA&&(aA=Ea.src.charCodeAt(BA),!(!isSpace(aA)&&aA!==10));BA++);}(BA>=wA||Ea.src.charCodeAt(BA)!==41)&&(hA=!0),BA++}if(hA){if(typeof Ea.env.references>"u")return!1;if(BA<wA&&Ea.src.charCodeAt(BA)===91?(gA=BA+1,BA=Ea.md.helpers.parseLinkLabel(Ea,BA),BA>=0?iA=Ea.src.slice(gA,BA++):BA=_A+1):BA=_A+1,iA||(iA=Ea.src.slice(CA,_A)),sA=Ea.env.references[normalizeReference(iA)],!sA)return Ea.pos=fA,!1;oA=sA.href,dA=sA.title}if(!Ua){Ea.pos=CA,Ea.posMax=_A;const IA=Ea.push("link_open","a",1),$A=[["href",oA]];IA.attrs=$A,dA&&$A.push(["title",dA]),Ea.linkLevel++,Ea.md.inline.tokenize(Ea),Ea.linkLevel--,Ea.push("link_close","a",-1)}return Ea.pos=BA,Ea.posMax=wA,!0}function image(Ea,Ua){let aA,iA,AA,sA,oA,dA,gA,hA,fA="";const wA=Ea.pos,CA=Ea.posMax;if(Ea.src.charCodeAt(Ea.pos)!==33||Ea.src.charCodeAt(Ea.pos+1)!==91)return!1;const _A=Ea.pos+2,BA=Ea.md.helpers.parseLinkLabel(Ea,Ea.pos+1,!1);if(BA<0)return!1;if(sA=BA+1,sA<CA&&Ea.src.charCodeAt(sA)===40){for(sA++;sA<CA&&(aA=Ea.src.charCodeAt(sA),!(!isSpace(aA)&&aA!==10));sA++);if(sA>=CA)return!1;for(hA=sA,dA=Ea.md.helpers.parseLinkDestination(Ea.src,sA,Ea.posMax),dA.ok&&(fA=Ea.md.normalizeLink(dA.str),Ea.md.validateLink(fA)?sA=dA.pos:fA=""),hA=sA;sA<CA&&(aA=Ea.src.charCodeAt(sA),!(!isSpace(aA)&&aA!==10));sA++);if(dA=Ea.md.helpers.parseLinkTitle(Ea.src,sA,Ea.posMax),sA<CA&&hA!==sA&&dA.ok)for(gA=dA.str,sA=dA.pos;sA<CA&&(aA=Ea.src.charCodeAt(sA),!(!isSpace(aA)&&aA!==10));sA++);else gA="";if(sA>=CA||Ea.src.charCodeAt(sA)!==41)return Ea.pos=wA,!1;sA++}else{if(typeof Ea.env.references>"u")return!1;if(sA<CA&&Ea.src.charCodeAt(sA)===91?(hA=sA+1,sA=Ea.md.helpers.parseLinkLabel(Ea,sA),sA>=0?AA=Ea.src.slice(hA,sA++):sA=BA+1):sA=BA+1,AA||(AA=Ea.src.slice(_A,BA)),oA=Ea.env.references[normalizeReference(AA)],!oA)return Ea.pos=wA,!1;fA=oA.href,gA=oA.title}if(!Ua){iA=Ea.src.slice(_A,BA);const IA=[];Ea.md.inline.parse(iA,Ea.md,Ea.env,IA);const $A=Ea.push("image","img",0),DA=[["src",fA],["alt",""]];$A.attrs=DA,$A.children=IA,$A.content=iA,gA&&DA.push(["title",gA])}return Ea.pos=sA,Ea.posMax=CA,!0}const EMAIL_RE=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,AUTOLINK_RE=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function autolink(Ea,Ua){let aA=Ea.pos;if(Ea.src.charCodeAt(aA)!==60)return!1;const iA=Ea.pos,AA=Ea.posMax;for(;;){if(++aA>=AA)return!1;const oA=Ea.src.charCodeAt(aA);if(oA===60)return!1;if(oA===62)break}const sA=Ea.src.slice(iA+1,aA);if(AUTOLINK_RE.test(sA)){const oA=Ea.md.normalizeLink(sA);if(!Ea.md.validateLink(oA))return!1;if(!Ua){const dA=Ea.push("link_open","a",1);dA.attrs=[["href",oA]],dA.markup="autolink",dA.info="auto";const gA=Ea.push("text","",0);gA.content=Ea.md.normalizeLinkText(sA);const hA=Ea.push("link_close","a",-1);hA.markup="autolink",hA.info="auto"}return Ea.pos+=sA.length+2,!0}if(EMAIL_RE.test(sA)){const oA=Ea.md.normalizeLink("mailto:"+sA);if(!Ea.md.validateLink(oA))return!1;if(!Ua){const dA=Ea.push("link_open","a",1);dA.attrs=[["href",oA]],dA.markup="autolink",dA.info="auto";const gA=Ea.push("text","",0);gA.content=Ea.md.normalizeLinkText(sA);const hA=Ea.push("link_close","a",-1);hA.markup="autolink",hA.info="auto"}return Ea.pos+=sA.length+2,!0}return!1}function isLinkOpen(Ea){return/^<a[>\s]/i.test(Ea)}function isLinkClose(Ea){return/^<\/a\s*>/i.test(Ea)}function isLetter(Ea){const Ua=Ea|32;return Ua>=97&&Ua<=122}function html_inline(Ea,Ua){if(!Ea.md.options.html)return!1;const aA=Ea.posMax,iA=Ea.pos;if(Ea.src.charCodeAt(iA)!==60||iA+2>=aA)return!1;const AA=Ea.src.charCodeAt(iA+1);if(AA!==33&&AA!==63&&AA!==47&&!isLetter(AA))return!1;const sA=Ea.src.slice(iA).match(HTML_TAG_RE);if(!sA)return!1;if(!Ua){const oA=Ea.push("html_inline","",0);oA.content=sA[0],isLinkOpen(oA.content)&&Ea.linkLevel++,isLinkClose(oA.content)&&Ea.linkLevel--}return Ea.pos+=sA[0].length,!0}const DIGITAL_RE=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,NAMED_RE=/^&([a-z][a-z0-9]{1,31});/i;function entity(Ea,Ua){const aA=Ea.pos,iA=Ea.posMax;if(Ea.src.charCodeAt(aA)!==38||aA+1>=iA)return!1;if(Ea.src.charCodeAt(aA+1)===35){const AA=Ea.src.slice(aA).match(DIGITAL_RE);if(AA){if(!Ua){const sA=AA[1][0].toLowerCase()==="x"?parseInt(AA[1].slice(1),16):parseInt(AA[1],10),oA=Ea.push("text_special","",0);oA.content=isValidEntityCode(sA)?fromCodePoint(sA):fromCodePoint(65533),oA.markup=AA[0],oA.info="entity"}return Ea.pos+=AA[0].length,!0}}else{const AA=Ea.src.slice(aA).match(NAMED_RE);if(AA){const sA=decodeHTML(AA[0]);if(sA!==AA[0]){if(!Ua){const oA=Ea.push("text_special","",0);oA.content=sA,oA.markup=AA[0],oA.info="entity"}return Ea.pos+=AA[0].length,!0}}}return!1}function processDelimiters(Ea){const Ua={},aA=Ea.length;if(!aA)return;let iA=0,AA=-2;const sA=[];for(let oA=0;oA<aA;oA++){const dA=Ea[oA];if(sA.push(0),(Ea[iA].marker!==dA.marker||AA!==dA.token-1)&&(iA=oA),AA=dA.token,dA.length=dA.length||0,!dA.close)continue;Ua.hasOwnProperty(dA.marker)||(Ua[dA.marker]=[-1,-1,-1,-1,-1,-1]);const gA=Ua[dA.marker][(dA.open?3:0)+dA.length%3];let hA=iA-sA[iA]-1,fA=hA;for(;hA>gA;hA-=sA[hA]+1){const wA=Ea[hA];if(wA.marker===dA.marker&&wA.open&&wA.end<0){let CA=!1;if((wA.close||dA.open)&&(wA.length+dA.length)%3===0&&(wA.length%3!==0||dA.length%3!==0)&&(CA=!0),!CA){const _A=hA>0&&!Ea[hA-1].open?sA[hA-1]+1:0;sA[oA]=oA-hA+_A,sA[hA]=_A,dA.open=!1,wA.end=oA,wA.close=!1,fA=-1,AA=-2;break}}}fA!==-1&&(Ua[dA.marker][(dA.open?3:0)+(dA.length||0)%3]=fA)}}function link_pairs(Ea){const Ua=Ea.tokens_meta,aA=Ea.tokens_meta.length;processDelimiters(Ea.delimiters);for(let iA=0;iA<aA;iA++)Ua[iA]&&Ua[iA].delimiters&&processDelimiters(Ua[iA].delimiters)}function fragments_join(Ea){let Ua,aA,iA=0;const AA=Ea.tokens,sA=Ea.tokens.length;for(Ua=aA=0;Ua<sA;Ua++)AA[Ua].nesting<0&&iA--,AA[Ua].level=iA,AA[Ua].nesting>0&&iA++,AA[Ua].type==="text"&&Ua+1<sA&&AA[Ua+1].type==="text"?AA[Ua+1].content=AA[Ua].content+AA[Ua+1].content:(Ua!==aA&&(AA[aA]=AA[Ua]),aA++);Ua!==aA&&(AA.length=aA)}const _rules=[["text",text$1],["linkify",linkify],["newline",newline$1],["escape",escape$1],["backticks",backtick],["strikethrough",r_strikethrough.tokenize],["emphasis",r_emphasis.tokenize],["link",link],["image",image],["autolink",autolink],["html_inline",html_inline],["entity",entity]],_rules2=[["balance_pairs",link_pairs],["strikethrough",r_strikethrough.postProcess],["emphasis",r_emphasis.postProcess],["fragments_join",fragments_join]];function ParserInline(){this.ruler=new Ruler;for(let Ea=0;Ea<_rules.length;Ea++)this.ruler.push(_rules[Ea][0],_rules[Ea][1]);this.ruler2=new Ruler;for(let Ea=0;Ea<_rules2.length;Ea++)this.ruler2.push(_rules2[Ea][0],_rules2[Ea][1])}ParserInline.prototype.skipToken=function(Ea){const Ua=Ea.pos,aA=this.ruler.getRules(""),iA=aA.length,AA=Ea.md.options.maxNesting,sA=Ea.cache;if(typeof sA[Ua]<"u"){Ea.pos=sA[Ua];return}let oA=!1;if(Ea.level<AA){for(let dA=0;dA<iA;dA++)if(Ea.level++,oA=aA[dA](Ea,!0),Ea.level--,oA){if(Ua>=Ea.pos)throw new Error("inline rule didn't increment state.pos");break}}else Ea.pos=Ea.posMax;oA||Ea.pos++,sA[Ua]=Ea.pos},ParserInline.prototype.tokenize=function(Ea){const Ua=this.ruler.getRules(""),aA=Ua.length,iA=Ea.posMax,AA=Ea.md.options.maxNesting;for(;Ea.pos<iA;){const sA=Ea.pos;let oA=!1;if(Ea.level<AA){for(let dA=0;dA<aA;dA++)if(oA=Ua[dA](Ea,!1),oA){if(sA>=Ea.pos)throw new Error("inline rule didn't increment state.pos");break}}if(oA){if(Ea.pos>=iA)break;continue}Ea.pending+=Ea.src[Ea.pos++]}Ea.pending&&Ea.pushPending()},ParserInline.prototype.parse=function(Ea,Ua,aA,iA){const AA=new this.State(Ea,Ua,aA,iA);this.tokenize(AA);const sA=this.ruler2.getRules(""),oA=sA.length;for(let dA=0;dA<oA;dA++)sA[dA](AA)},ParserInline.prototype.State=StateInline;function reFactory(Ea){const Ua={};Ea=Ea||{},Ua.src_Any=Any.source,Ua.src_Cc=Cc$1.source,Ua.src_Z=Z$c.source,Ua.src_P=P$a.source,Ua.src_ZPCc=[Ua.src_Z,Ua.src_P,Ua.src_Cc].join("|"),Ua.src_ZCc=[Ua.src_Z,Ua.src_Cc].join("|");const aA="[><|]";return Ua.src_pseudo_letter="(?:(?!"+aA+"|"+Ua.src_ZPCc+")"+Ua.src_Any+")",Ua.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",Ua.src_auth="(?:(?:(?!"+Ua.src_ZCc+"|[@/\\[\\]()]).)+@)?",Ua.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",Ua.src_host_terminator="(?=$|"+aA+"|"+Ua.src_ZPCc+")(?!"+(Ea["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+Ua.src_ZPCc+"))",Ua.src_path="(?:[/?#](?:(?!"+Ua.src_ZCc+"|"+aA+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+Ua.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+Ua.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+Ua.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+Ua.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+Ua.src_ZCc+"|[']).)+\\'|\\'(?="+Ua.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+Ua.src_ZCc+"|[.]|$)|"+(Ea["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+Ua.src_ZCc+"|$)|;(?!"+Ua.src_ZCc+"|$)|\\!+(?!"+Ua.src_ZCc+"|[!]|$)|\\?(?!"+Ua.src_ZCc+"|[?]|$))+|\\/)?",Ua.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',Ua.src_xn="xn--[a-z0-9\\-]{1,59}",Ua.src_domain_root="(?:"+Ua.src_xn+"|"+Ua.src_pseudo_letter+"{1,63})",Ua.src_domain="(?:"+Ua.src_xn+"|(?:"+Ua.src_pseudo_letter+")|(?:"+Ua.src_pseudo_letter+"(?:-|"+Ua.src_pseudo_letter+"){0,61}"+Ua.src_pseudo_letter+"))",Ua.src_host="(?:(?:(?:(?:"+Ua.src_domain+")\\.)*"+Ua.src_domain+"))",Ua.tpl_host_fuzzy="(?:"+Ua.src_ip4+"|(?:(?:(?:"+Ua.src_domain+")\\.)+(?:%TLDS%)))",Ua.tpl_host_no_ip_fuzzy="(?:(?:(?:"+Ua.src_domain+")\\.)+(?:%TLDS%))",Ua.src_host_strict=Ua.src_host+Ua.src_host_terminator,Ua.tpl_host_fuzzy_strict=Ua.tpl_host_fuzzy+Ua.src_host_terminator,Ua.src_host_port_strict=Ua.src_host+Ua.src_port+Ua.src_host_terminator,Ua.tpl_host_port_fuzzy_strict=Ua.tpl_host_fuzzy+Ua.src_port+Ua.src_host_terminator,Ua.tpl_host_port_no_ip_fuzzy_strict=Ua.tpl_host_no_ip_fuzzy+Ua.src_port+Ua.src_host_terminator,Ua.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+Ua.src_ZPCc+"|>|$))",Ua.tpl_email_fuzzy="(^|"+aA+'|"|\\(|'+Ua.src_ZCc+")("+Ua.src_email_name+"@"+Ua.tpl_host_fuzzy_strict+")",Ua.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+Ua.src_ZPCc+"))((?![$+<=>^`||])"+Ua.tpl_host_port_fuzzy_strict+Ua.src_path+")",Ua.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+Ua.src_ZPCc+"))((?![$+<=>^`||])"+Ua.tpl_host_port_no_ip_fuzzy_strict+Ua.src_path+")",Ua}function assign$1(Ea){return Array.prototype.slice.call(arguments,1).forEach(function(Ua){Ua&&Object.keys(Ua).forEach(function(aA){Ea[aA]=Ua[aA]})}),Ea}function _class$2(Ea){return Object.prototype.toString.call(Ea)}function isString(Ea){return _class$2(Ea)==="[object String]"}function isObject$4(Ea){return _class$2(Ea)==="[object Object]"}function isRegExp$1(Ea){return _class$2(Ea)==="[object RegExp]"}function isFunction$2(Ea){return _class$2(Ea)==="[object Function]"}function escapeRE(Ea){return Ea.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const defaultOptions$1={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function isOptionsObj(Ea){return Object.keys(Ea||{}).reduce(function(Ua,aA){return Ua||defaultOptions$1.hasOwnProperty(aA)},!1)}const defaultSchemas={"http:":{validate:function(Ea,Ua,aA){const iA=Ea.slice(Ua);return aA.re.http||(aA.re.http=new RegExp("^\\/\\/"+aA.re.src_auth+aA.re.src_host_port_strict+aA.re.src_path,"i")),aA.re.http.test(iA)?iA.match(aA.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(Ea,Ua,aA){const iA=Ea.slice(Ua);return aA.re.no_http||(aA.re.no_http=new RegExp("^"+aA.re.src_auth+"(?:localhost|(?:(?:"+aA.re.src_domain+")\\.)+"+aA.re.src_domain_root+")"+aA.re.src_port+aA.re.src_host_terminator+aA.re.src_path,"i")),aA.re.no_http.test(iA)?Ua>=3&&Ea[Ua-3]===":"||Ua>=3&&Ea[Ua-3]==="/"?0:iA.match(aA.re.no_http)[0].length:0}},"mailto:":{validate:function(Ea,Ua,aA){const iA=Ea.slice(Ua);return aA.re.mailto||(aA.re.mailto=new RegExp("^"+aA.re.src_email_name+"@"+aA.re.src_host_strict,"i")),aA.re.mailto.test(iA)?iA.match(aA.re.mailto)[0].length:0}}},tlds_2ch_src_re="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",tlds_default="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function resetScanCache(Ea){Ea.__index__=-1,Ea.__text_cache__=""}function createValidator(Ea){return function(Ua,aA){const iA=Ua.slice(aA);return Ea.test(iA)?iA.match(Ea)[0].length:0}}function createNormalizer(){return function(Ea,Ua){Ua.normalize(Ea)}}function compile$1(Ea){const Ua=Ea.re=reFactory(Ea.__opts__),aA=Ea.__tlds__.slice();Ea.onCompile(),Ea.__tlds_replaced__||aA.push(tlds_2ch_src_re),aA.push(Ua.src_xn),Ua.src_tlds=aA.join("|");function iA(dA){return dA.replace("%TLDS%",Ua.src_tlds)}Ua.email_fuzzy=RegExp(iA(Ua.tpl_email_fuzzy),"i"),Ua.link_fuzzy=RegExp(iA(Ua.tpl_link_fuzzy),"i"),Ua.link_no_ip_fuzzy=RegExp(iA(Ua.tpl_link_no_ip_fuzzy),"i"),Ua.host_fuzzy_test=RegExp(iA(Ua.tpl_host_fuzzy_test),"i");const AA=[];Ea.__compiled__={};function sA(dA,gA){throw new Error('(LinkifyIt) Invalid schema "'+dA+'": '+gA)}Object.keys(Ea.__schemas__).forEach(function(dA){const gA=Ea.__schemas__[dA];if(gA===null)return;const hA={validate:null,link:null};if(Ea.__compiled__[dA]=hA,isObject$4(gA)){isRegExp$1(gA.validate)?hA.validate=createValidator(gA.validate):isFunction$2(gA.validate)?hA.validate=gA.validate:sA(dA,gA),isFunction$2(gA.normalize)?hA.normalize=gA.normalize:gA.normalize?sA(dA,gA):hA.normalize=createNormalizer();return}if(isString(gA)){AA.push(dA);return}sA(dA,gA)}),AA.forEach(function(dA){Ea.__compiled__[Ea.__schemas__[dA]]&&(Ea.__compiled__[dA].validate=Ea.__compiled__[Ea.__schemas__[dA]].validate,Ea.__compiled__[dA].normalize=Ea.__compiled__[Ea.__schemas__[dA]].normalize)}),Ea.__compiled__[""]={validate:null,normalize:createNormalizer()};const oA=Object.keys(Ea.__compiled__).filter(function(dA){return dA.length>0&&Ea.__compiled__[dA]}).map(escapeRE).join("|");Ea.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+Ua.src_ZPCc+"))("+oA+")","i"),Ea.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+Ua.src_ZPCc+"))("+oA+")","ig"),Ea.re.schema_at_start=RegExp("^"+Ea.re.schema_search.source,"i"),Ea.re.pretest=RegExp("("+Ea.re.schema_test.source+")|("+Ea.re.host_fuzzy_test.source+")|@","i"),resetScanCache(Ea)}function Match(Ea,Ua){const aA=Ea.__index__,iA=Ea.__last_index__,AA=Ea.__text_cache__.slice(aA,iA);this.schema=Ea.__schema__.toLowerCase(),this.index=aA+Ua,this.lastIndex=iA+Ua,this.raw=AA,this.text=AA,this.url=AA}function createMatch(Ea,Ua){const aA=new Match(Ea,Ua);return Ea.__compiled__[aA.schema].normalize(aA,Ea),aA}function LinkifyIt(Ea,Ua){if(!(this instanceof LinkifyIt))return new LinkifyIt(Ea,Ua);Ua||isOptionsObj(Ea)&&(Ua=Ea,Ea={}),this.__opts__=assign$1({},defaultOptions$1,Ua),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=assign$1({},defaultSchemas,Ea),this.__compiled__={},this.__tlds__=tlds_default,this.__tlds_replaced__=!1,this.re={},compile$1(this)}LinkifyIt.prototype.add=function(Ea,Ua){return this.__schemas__[Ea]=Ua,compile$1(this),this},LinkifyIt.prototype.set=function(Ea){return this.__opts__=assign$1(this.__opts__,Ea),this},LinkifyIt.prototype.test=function(Ea){if(this.__text_cache__=Ea,this.__index__=-1,!Ea.length)return!1;let Ua,aA,iA,AA,sA,oA,dA,gA,hA;if(this.re.schema_test.test(Ea)){for(dA=this.re.schema_search,dA.lastIndex=0;(Ua=dA.exec(Ea))!==null;)if(AA=this.testSchemaAt(Ea,Ua[2],dA.lastIndex),AA){this.__schema__=Ua[2],this.__index__=Ua.index+Ua[1].length,this.__last_index__=Ua.index+Ua[0].length+AA;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(gA=Ea.search(this.re.host_fuzzy_test),gA>=0&&(this.__index__<0||gA<this.__index__)&&(aA=Ea.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(sA=aA.index+aA[1].length,(this.__index__<0||sA<this.__index__)&&(this.__schema__="",this.__index__=sA,this.__last_index__=aA.index+aA[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(hA=Ea.indexOf("@"),hA>=0&&(iA=Ea.match(this.re.email_fuzzy))!==null&&(sA=iA.index+iA[1].length,oA=iA.index+iA[0].length,(this.__index__<0||sA<this.__index__||sA===this.__index__&&oA>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=sA,this.__last_index__=oA))),this.__index__>=0},LinkifyIt.prototype.pretest=function(Ea){return this.re.pretest.test(Ea)},LinkifyIt.prototype.testSchemaAt=function(Ea,Ua,aA){return this.__compiled__[Ua.toLowerCase()]?this.__compiled__[Ua.toLowerCase()].validate(Ea,aA,this):0},LinkifyIt.prototype.match=function(Ea){const Ua=[];let aA=0;this.__index__>=0&&this.__text_cache__===Ea&&(Ua.push(createMatch(this,aA)),aA=this.__last_index__);let iA=aA?Ea.slice(aA):Ea;for(;this.test(iA);)Ua.push(createMatch(this,aA)),iA=iA.slice(this.__last_index__),aA+=this.__last_index__;return Ua.length?Ua:null},LinkifyIt.prototype.matchAtStart=function(Ea){if(this.__text_cache__=Ea,this.__index__=-1,!Ea.length)return null;const Ua=this.re.schema_at_start.exec(Ea);if(!Ua)return null;const aA=this.testSchemaAt(Ea,Ua[2],Ua[0].length);return aA?(this.__schema__=Ua[2],this.__index__=Ua.index+Ua[1].length,this.__last_index__=Ua.index+Ua[0].length+aA,createMatch(this,0)):null},LinkifyIt.prototype.tlds=function(Ea,Ua){return Ea=Array.isArray(Ea)?Ea:[Ea],Ua?(this.__tlds__=this.__tlds__.concat(Ea).sort().filter(function(aA,iA,AA){return aA!==AA[iA-1]}).reverse(),compile$1(this),this):(this.__tlds__=Ea.slice(),this.__tlds_replaced__=!0,compile$1(this),this)},LinkifyIt.prototype.normalize=function(Ea){Ea.schema||(Ea.url="http://"+Ea.url),Ea.schema==="mailto:"&&!/^mailto:/i.test(Ea.url)&&(Ea.url="mailto:"+Ea.url)},LinkifyIt.prototype.onCompile=function(){};const maxInt=2147483647,base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,delimiter$1="-",regexPunycode=/^xn--/,regexNonASCII=/[^\0-\x7F]/,regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,errors={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode;function error(Ea){throw new RangeError(errors[Ea])}function map$2(Ea,Ua){const aA=[];let iA=Ea.length;for(;iA--;)aA[iA]=Ua(Ea[iA]);return aA}function mapDomain(Ea,Ua){const aA=Ea.split("@");let iA="";aA.length>1&&(iA=aA[0]+"@",Ea=aA[1]),Ea=Ea.replace(regexSeparators,".");const AA=Ea.split("."),sA=map$2(AA,Ua).join(".");return iA+sA}function ucs2decode(Ea){const Ua=[];let aA=0;const iA=Ea.length;for(;aA<iA;){const AA=Ea.charCodeAt(aA++);if(AA>=55296&&AA<=56319&&aA<iA){const sA=Ea.charCodeAt(aA++);(sA&64512)==56320?Ua.push(((AA&1023)<<10)+(sA&1023)+65536):(Ua.push(AA),aA--)}else Ua.push(AA)}return Ua}const ucs2encode=Ea=>String.fromCodePoint(...Ea),basicToDigit=function(Ea){return Ea>=48&&Ea<58?26+(Ea-48):Ea>=65&&Ea<91?Ea-65:Ea>=97&&Ea<123?Ea-97:base},digitToBasic=function(Ea,Ua){return Ea+22+75*(Ea<26)-((Ua!=0)<<5)},adapt=function(Ea,Ua,aA){let iA=0;for(Ea=aA?floor(Ea/damp):Ea>>1,Ea+=floor(Ea/Ua);Ea>baseMinusTMin*tMax>>1;iA+=base)Ea=floor(Ea/baseMinusTMin);return floor(iA+(baseMinusTMin+1)*Ea/(Ea+skew))},decode=function(Ea){const Ua=[],aA=Ea.length;let iA=0,AA=initialN,sA=initialBias,oA=Ea.lastIndexOf(delimiter$1);oA<0&&(oA=0);for(let dA=0;dA<oA;++dA)Ea.charCodeAt(dA)>=128&&error("not-basic"),Ua.push(Ea.charCodeAt(dA));for(let dA=oA>0?oA+1:0;dA<aA;){const gA=iA;for(let fA=1,wA=base;;wA+=base){dA>=aA&&error("invalid-input");const CA=basicToDigit(Ea.charCodeAt(dA++));CA>=base&&error("invalid-input"),CA>floor((maxInt-iA)/fA)&&error("overflow"),iA+=CA*fA;const _A=wA<=sA?tMin:wA>=sA+tMax?tMax:wA-sA;if(CA<_A)break;const BA=base-_A;fA>floor(maxInt/BA)&&error("overflow"),fA*=BA}const hA=Ua.length+1;sA=adapt(iA-gA,hA,gA==0),floor(iA/hA)>maxInt-AA&&error("overflow"),AA+=floor(iA/hA),iA%=hA,Ua.splice(iA++,0,AA)}return String.fromCodePoint(...Ua)},encode=function(Ea){const Ua=[];Ea=ucs2decode(Ea);const aA=Ea.length;let iA=initialN,AA=0,sA=initialBias;for(const gA of Ea)gA<128&&Ua.push(stringFromCharCode(gA));const oA=Ua.length;let dA=oA;for(oA&&Ua.push(delimiter$1);dA<aA;){let gA=maxInt;for(const fA of Ea)fA>=iA&&fA<gA&&(gA=fA);const hA=dA+1;gA-iA>floor((maxInt-AA)/hA)&&error("overflow"),AA+=(gA-iA)*hA,iA=gA;for(const fA of Ea)if(fA<iA&&++AA>maxInt&&error("overflow"),fA===iA){let wA=AA;for(let CA=base;;CA+=base){const _A=CA<=sA?tMin:CA>=sA+tMax?tMax:CA-sA;if(wA<_A)break;const BA=wA-_A,IA=base-_A;Ua.push(stringFromCharCode(digitToBasic(_A+BA%IA,0))),wA=floor(BA/IA)}Ua.push(stringFromCharCode(digitToBasic(wA,0))),sA=adapt(AA,hA,dA===oA),AA=0,++dA}++AA,++iA}return Ua.join("")},toUnicode=function(Ea){return mapDomain(Ea,function(Ua){return regexPunycode.test(Ua)?decode(Ua.slice(4).toLowerCase()):Ua})},toASCII=function(Ea){return mapDomain(Ea,function(Ua){return regexNonASCII.test(Ua)?"xn--"+encode(Ua):Ua})},punycode={version:"2.3.1",ucs2:{decode:ucs2decode,encode:ucs2encode},decode,encode,toASCII,toUnicode},cfg_default={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},cfg_zero={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},cfg_commonmark={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},config$1={default:cfg_default,zero:cfg_zero,commonmark:cfg_commonmark},BAD_PROTO_RE=/^(vbscript|javascript|file|data):/,GOOD_DATA_RE=/^data:image\/(gif|png|jpeg|webp);/;function validateLink(Ea){const Ua=Ea.trim().toLowerCase();return BAD_PROTO_RE.test(Ua)?GOOD_DATA_RE.test(Ua):!0}const RECODE_HOSTNAME_FOR=["http:","https:","mailto:"];function normalizeLink(Ea){const Ua=urlParse(Ea,!0);if(Ua.hostname&&(!Ua.protocol||RECODE_HOSTNAME_FOR.indexOf(Ua.protocol)>=0))try{Ua.hostname=punycode.toASCII(Ua.hostname)}catch{}return encode$1(format$2(Ua))}function normalizeLinkText(Ea){const Ua=urlParse(Ea,!0);if(Ua.hostname&&(!Ua.protocol||RECODE_HOSTNAME_FOR.indexOf(Ua.protocol)>=0))try{Ua.hostname=punycode.toUnicode(Ua.hostname)}catch{}return decode$1(format$2(Ua),decode$1.defaultChars+"%")}function MarkdownIt(Ea,Ua){if(!(this instanceof MarkdownIt))return new MarkdownIt(Ea,Ua);Ua||isString$1(Ea)||(Ua=Ea||{},Ea="default"),this.inline=new ParserInline,this.block=new ParserBlock,this.core=new Core,this.renderer=new Renderer,this.linkify=new LinkifyIt,this.validateLink=validateLink,this.normalizeLink=normalizeLink,this.normalizeLinkText=normalizeLinkText,this.utils=utils$7,this.helpers=assign$2({},helpers),this.options={},this.configure(Ea),Ua&&this.set(Ua)}MarkdownIt.prototype.set=function(Ea){return assign$2(this.options,Ea),this},MarkdownIt.prototype.configure=function(Ea){const Ua=this;if(isString$1(Ea)){const aA=Ea;if(Ea=config$1[aA],!Ea)throw new Error('Wrong `markdown-it` preset "'+aA+'", check name')}if(!Ea)throw new Error("Wrong `markdown-it` preset, can't be empty");return Ea.options&&Ua.set(Ea.options),Ea.components&&Object.keys(Ea.components).forEach(function(aA){Ea.components[aA].rules&&Ua[aA].ruler.enableOnly(Ea.components[aA].rules),Ea.components[aA].rules2&&Ua[aA].ruler2.enableOnly(Ea.components[aA].rules2)}),this},MarkdownIt.prototype.enable=function(Ea,Ua){let aA=[];Array.isArray(Ea)||(Ea=[Ea]),["core","block","inline"].forEach(function(AA){aA=aA.concat(this[AA].ruler.enable(Ea,!0))},this),aA=aA.concat(this.inline.ruler2.enable(Ea,!0));const iA=Ea.filter(function(AA){return aA.indexOf(AA)<0});if(iA.length&&!Ua)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+iA);return this},MarkdownIt.prototype.disable=function(Ea,Ua){let aA=[];Array.isArray(Ea)||(Ea=[Ea]),["core","block","inline"].forEach(function(AA){aA=aA.concat(this[AA].ruler.disable(Ea,!0))},this),aA=aA.concat(this.inline.ruler2.disable(Ea,!0));const iA=Ea.filter(function(AA){return aA.indexOf(AA)<0});if(iA.length&&!Ua)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+iA);return this},MarkdownIt.prototype.use=function(Ea){const Ua=[this].concat(Array.prototype.slice.call(arguments,1));return Ea.apply(Ea,Ua),this},MarkdownIt.prototype.parse=function(Ea,Ua){if(typeof Ea!="string")throw new Error("Input data should be a String");const aA=new this.core.State(Ea,this,Ua);return this.core.process(aA),aA.tokens},MarkdownIt.prototype.render=function(Ea,Ua){return Ua=Ua||{},this.renderer.render(this.parse(Ea,Ua),this.options,Ua)},MarkdownIt.prototype.parseInline=function(Ea,Ua){const aA=new this.core.State(Ea,this,Ua);return aA.inlineMode=!0,this.core.process(aA),aA.tokens},MarkdownIt.prototype.renderInline=function(Ea,Ua){return Ua=Ua||{},this.renderer.render(this.parseInline(Ea,Ua),this.options,Ua)};function abbr_plugin(Ea){const Ua=Ea.utils.escapeRE,aA=Ea.utils.arrayReplaceAt,iA=" \r\n$+<=>^`|~",AA=Ea.utils.lib.ucmicro.P.source,sA=Ea.utils.lib.ucmicro.Z.source;function oA(gA,hA,fA,wA){let CA,_A=gA.bMarks[hA]+gA.tShift[hA];const BA=gA.eMarks[hA];if(_A+2>=BA||gA.src.charCodeAt(_A++)!==42||gA.src.charCodeAt(_A++)!==91)return!1;const IA=_A;for(;_A<BA;_A++){const FA=gA.src.charCodeAt(_A);if(FA===91)return!1;if(FA===93){CA=_A;break}else FA===92&&_A++}if(CA<0||gA.src.charCodeAt(CA+1)!==58)return!1;if(wA)return!0;const $A=gA.src.slice(IA,CA).replace(/\\(.)/g,"$1"),DA=gA.src.slice(CA+2,BA).trim();return $A.length===0||DA.length===0?!1:(gA.env.abbreviations||(gA.env.abbreviations={}),typeof gA.env.abbreviations[":"+$A]>"u"&&(gA.env.abbreviations[":"+$A]=DA),gA.line=hA+1,!0)}function dA(gA){const hA=gA.tokens;if(!gA.env.abbreviations)return;const fA=new RegExp("(?:"+Object.keys(gA.env.abbreviations).map(function(_A){return _A.substr(1)}).sort(function(_A,BA){return BA.length-_A.length}).map(Ua).join("|")+")"),wA="(^|"+AA+"|"+sA+"|["+iA.split("").map(Ua).join("")+"])("+Object.keys(gA.env.abbreviations).map(function(_A){return _A.substr(1)}).sort(function(_A,BA){return BA.length-_A.length}).map(Ua).join("|")+")($|"+AA+"|"+sA+"|["+iA.split("").map(Ua).join("")+"])",CA=new RegExp(wA,"g");for(let _A=0,BA=hA.length;_A<BA;_A++){if(hA[_A].type!=="inline")continue;let IA=hA[_A].children;for(let $A=IA.length-1;$A>=0;$A--){const DA=IA[$A];if(DA.type!=="text")continue;let FA=0;const NA=DA.content;CA.lastIndex=0;const TA=[];if(!fA.test(NA))continue;let PA;for(;PA=CA.exec(NA);){if(PA.index>0||PA[1].length>0){const qA=new gA.Token("text","",0);qA.content=NA.slice(FA,PA.index+PA[1].length),TA.push(qA)}const HA=new gA.Token("abbr_open","abbr",1);HA.attrs=[["title",gA.env.abbreviations[":"+PA[2]]]],TA.push(HA);const RA=new gA.Token("text","",0);RA.content=PA[2],TA.push(RA);const SA=new gA.Token("abbr_close","abbr",-1);TA.push(SA),CA.lastIndex-=PA[3].length,FA=CA.lastIndex}if(TA.length){if(FA<NA.length){const HA=new gA.Token("text","",0);HA.content=NA.slice(FA),TA.push(HA)}hA[_A].children=IA=aA(IA,$A,TA)}}}}Ea.block.ruler.before("reference","abbr_def",oA,{alt:["paragraph","reference"]}),Ea.core.ruler.after("linkify","abbr_replace",dA)}var e$R=!1,n$E={false:"push",true:"unshift",after:"push",before:"unshift"},t$k={isPermalinkSymbol:!0};function r$6(Ea,Ua,aA,iA){var AA;if(!e$R){var sA="Using deprecated markdown-it-anchor permalink option, see https://github.com/valeriangalliat/markdown-it-anchor#permalinks";typeof process=="object"&&process&&process.emitWarning?process.emitWarning(sA):console.warn(sA),e$R=!0}var oA=[Object.assign(new aA.Token("link_open","a",1),{attrs:[].concat(Ua.permalinkClass?[["class",Ua.permalinkClass]]:[],[["href",Ua.permalinkHref(Ea,aA)]],Object.entries(Ua.permalinkAttrs(Ea,aA)))}),Object.assign(new aA.Token("html_block","",0),{content:Ua.permalinkSymbol,meta:t$k}),new aA.Token("link_close","a",-1)];Ua.permalinkSpace&&aA.tokens[iA+1].children[n$E[Ua.permalinkBefore]](Object.assign(new aA.Token("text","",0),{content:" "})),(AA=aA.tokens[iA+1].children)[n$E[Ua.permalinkBefore]].apply(AA,oA)}function a$i(Ea){return"#"+Ea}function i$3$1(Ea){return{}}var l$4={class:"header-anchor",symbol:"#",renderHref:a$i,renderAttrs:i$3$1};function o$4(Ea){function Ua(aA){return aA=Object.assign({},Ua.defaults,aA),function(iA,AA,sA,oA){return Ea(iA,aA,AA,sA,oA)}}return Ua.defaults=Object.assign({},l$4),Ua.renderPermalinkImpl=Ea,Ua}var c$8=o$4(function(Ea,Ua,aA,iA,AA){var sA,oA=[Object.assign(new iA.Token("link_open","a",1),{attrs:[].concat(Ua.class?[["class",Ua.class]]:[],[["href",Ua.renderHref(Ea,iA)]],Ua.ariaHidden?[["aria-hidden","true"]]:[],Object.entries(Ua.renderAttrs(Ea,iA)))}),Object.assign(new iA.Token("html_inline","",0),{content:Ua.symbol,meta:t$k}),new iA.Token("link_close","a",-1)];if(Ua.space){var dA=typeof Ua.space=="string"?Ua.space:" ";iA.tokens[AA+1].children[n$E[Ua.placement]](Object.assign(new iA.Token(typeof Ua.space=="string"?"html_inline":"text","",0),{content:dA}))}(sA=iA.tokens[AA+1].children)[n$E[Ua.placement]].apply(sA,oA)});Object.assign(c$8.defaults,{space:!0,placement:"after",ariaHidden:!1});var s$6=o$4(c$8.renderPermalinkImpl);s$6.defaults=Object.assign({},c$8.defaults,{ariaHidden:!0});var u$4=o$4(function(Ea,Ua,aA,iA,AA){var sA=[Object.assign(new iA.Token("link_open","a",1),{attrs:[].concat(Ua.class?[["class",Ua.class]]:[],[["href",Ua.renderHref(Ea,iA)]],Object.entries(Ua.renderAttrs(Ea,iA)))})].concat(Ua.safariReaderFix?[new iA.Token("span_open","span",1)]:[],iA.tokens[AA+1].children,Ua.safariReaderFix?[new iA.Token("span_close","span",-1)]:[],[new iA.Token("link_close","a",-1)]);iA.tokens[AA+1]=Object.assign(new iA.Token("inline","",0),{children:sA})});Object.assign(u$4.defaults,{safariReaderFix:!1});var d$6=o$4(function(Ea,Ua,aA,iA,AA){var sA;if(!["visually-hidden","aria-label","aria-describedby","aria-labelledby"].includes(Ua.style))throw new Error("`permalink.linkAfterHeader` called with unknown style option `"+Ua.style+"`");if(!["aria-describedby","aria-labelledby"].includes(Ua.style)&&!Ua.assistiveText)throw new Error("`permalink.linkAfterHeader` called without the `assistiveText` option in `"+Ua.style+"` style");if(Ua.style==="visually-hidden"&&!Ua.visuallyHiddenClass)throw new Error("`permalink.linkAfterHeader` called without the `visuallyHiddenClass` option in `visually-hidden` style");var oA=iA.tokens[AA+1].children.filter(function(wA){return wA.type==="text"||wA.type==="code_inline"}).reduce(function(wA,CA){return wA+CA.content},""),dA=[],gA=[];if(Ua.class&&gA.push(["class",Ua.class]),gA.push(["href",Ua.renderHref(Ea,iA)]),gA.push.apply(gA,Object.entries(Ua.renderAttrs(Ea,iA))),Ua.style==="visually-hidden"){if(dA.push(Object.assign(new iA.Token("span_open","span",1),{attrs:[["class",Ua.visuallyHiddenClass]]}),Object.assign(new iA.Token("text","",0),{content:Ua.assistiveText(oA)}),new iA.Token("span_close","span",-1)),Ua.space){var hA=typeof Ua.space=="string"?Ua.space:" ";dA[n$E[Ua.placement]](Object.assign(new iA.Token(typeof Ua.space=="string"?"html_inline":"text","",0),{content:hA}))}dA[n$E[Ua.placement]](Object.assign(new iA.Token("span_open","span",1),{attrs:[["aria-hidden","true"]]}),Object.assign(new iA.Token("html_inline","",0),{content:Ua.symbol,meta:t$k}),new iA.Token("span_close","span",-1))}else dA.push(Object.assign(new iA.Token("html_inline","",0),{content:Ua.symbol,meta:t$k}));Ua.style==="aria-label"?gA.push(["aria-label",Ua.assistiveText(oA)]):["aria-describedby","aria-labelledby"].includes(Ua.style)&&gA.push([Ua.style,Ea]);var fA=[Object.assign(new iA.Token("link_open","a",1),{attrs:gA})].concat(dA,[new iA.Token("link_close","a",-1)]);(sA=iA.tokens).splice.apply(sA,[AA+3,0].concat(fA)),Ua.wrapper&&(iA.tokens.splice(AA,0,Object.assign(new iA.Token("html_block","",0),{content:Ua.wrapper[0]+`
|
|
34
34
|
`})),iA.tokens.splice(AA+3+fA.length+1,0,Object.assign(new iA.Token("html_block","",0),{content:Ua.wrapper[1]+`
|
|
35
|
-
`})))});function f$3(Ea,Ua,aA,iA){var AA=Ea,sA=iA;if(aA&&Object.prototype.hasOwnProperty.call(Ua,AA))throw new Error("User defined `id` attribute `"+Ea+"` is not unique. Please fix it in your Markdown to continue.");for(;Object.prototype.hasOwnProperty.call(Ua,AA);)AA=Ea+"-"+sA,sA+=1;return Ua[AA]=!0,AA}function p$7(Ea,Ua){Ua=Object.assign({},p$7.defaults,Ua),Ea.core.ruler.push("anchor",function(aA){for(var iA,AA={},sA=aA.tokens,oA=Array.isArray(Ua.level)?(iA=Ua.level,function(wA){return iA.includes(wA)}):function(wA){return function(CA){return CA>=wA}}(Ua.level),dA=0;dA<sA.length;dA++){var gA=sA[dA];if(gA.type==="heading_open"&&oA(Number(gA.tag.substr(1)))){var hA=Ua.getTokensText(sA[dA+1].children),fA=gA.attrGet("id");fA=fA==null?f$3(Ua.slugify(hA),AA,!1,Ua.uniqueSlugStartIndex):f$3(fA,AA,!0,Ua.uniqueSlugStartIndex),gA.attrSet("id",fA),Ua.tabIndex!==!1&&gA.attrSet("tabindex",""+Ua.tabIndex),typeof Ua.permalink=="function"?Ua.permalink(fA,Ua,aA,dA):(Ua.permalink||Ua.renderPermalink&&Ua.renderPermalink!==r$6)&&Ua.renderPermalink(fA,Ua,aA,dA),dA=sA.indexOf(gA),Ua.callback&&Ua.callback(gA,{slug:fA,title:hA})}}})}Object.assign(d$
|
|
35
|
+
`})))});function f$3(Ea,Ua,aA,iA){var AA=Ea,sA=iA;if(aA&&Object.prototype.hasOwnProperty.call(Ua,AA))throw new Error("User defined `id` attribute `"+Ea+"` is not unique. Please fix it in your Markdown to continue.");for(;Object.prototype.hasOwnProperty.call(Ua,AA);)AA=Ea+"-"+sA,sA+=1;return Ua[AA]=!0,AA}function p$7(Ea,Ua){Ua=Object.assign({},p$7.defaults,Ua),Ea.core.ruler.push("anchor",function(aA){for(var iA,AA={},sA=aA.tokens,oA=Array.isArray(Ua.level)?(iA=Ua.level,function(wA){return iA.includes(wA)}):function(wA){return function(CA){return CA>=wA}}(Ua.level),dA=0;dA<sA.length;dA++){var gA=sA[dA];if(gA.type==="heading_open"&&oA(Number(gA.tag.substr(1)))){var hA=Ua.getTokensText(sA[dA+1].children),fA=gA.attrGet("id");fA=fA==null?f$3(Ua.slugify(hA),AA,!1,Ua.uniqueSlugStartIndex):f$3(fA,AA,!0,Ua.uniqueSlugStartIndex),gA.attrSet("id",fA),Ua.tabIndex!==!1&&gA.attrSet("tabindex",""+Ua.tabIndex),typeof Ua.permalink=="function"?Ua.permalink(fA,Ua,aA,dA):(Ua.permalink||Ua.renderPermalink&&Ua.renderPermalink!==r$6)&&Ua.renderPermalink(fA,Ua,aA,dA),dA=sA.indexOf(gA),Ua.callback&&Ua.callback(gA,{slug:fA,title:hA})}}})}Object.assign(d$6.defaults,{style:"visually-hidden",space:!0,placement:"after",wrapper:null}),p$7.permalink={__proto__:null,legacy:r$6,renderHref:a$i,renderAttrs:i$3$1,makePermalink:o$4,linkInsideHeader:c$8,ariaHidden:s$6,headerLink:u$4,linkAfterHeader:d$6},p$7.defaults={level:1,slugify:function(Ea){return encodeURIComponent(String(Ea).trim().toLowerCase().replace(/\s+/g,"-"))},uniqueSlugStartIndex:1,tabIndex:"-1",getTokensText:function(Ea){return Ea.filter(function(Ua){return["text","code_inline"].includes(Ua.type)}).map(function(Ua){return Ua.content}).join("")},permalink:!1,renderPermalink:r$6,permalinkClass:s$6.defaults.class,permalinkSpace:s$6.defaults.space,permalinkSymbol:"¶",permalinkBefore:s$6.defaults.placement==="before",permalinkHref:s$6.defaults.renderHref,permalinkAttrs:s$6.defaults.renderAttrs},p$7.default=p$7;var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(Ea){return Ea&&Ea.__esModule&&Object.prototype.hasOwnProperty.call(Ea,"default")?Ea.default:Ea}function getAugmentedNamespace(Ea){if(Ea.__esModule)return Ea;var Ua=Ea.default;if(typeof Ua=="function"){var aA=function iA(){return this instanceof iA?Reflect.construct(Ua,arguments,this.constructor):Ua.apply(this,arguments)};aA.prototype=Ua.prototype}else aA={};return Object.defineProperty(aA,"__esModule",{value:!0}),Object.keys(Ea).forEach(function(iA){var AA=Object.getOwnPropertyDescriptor(Ea,iA);Object.defineProperty(aA,iA,AA.get?AA:{enumerable:!0,get:function(){return Ea[iA]}})}),aA}var utils$6={};utils$6.getAttrs=function(Ea,Ua,aA){const iA=/[^\t\n\f />"'=]/,AA=" ",sA="=",oA=".",dA="#",gA=[];let hA="",fA="",wA=!0,CA=!1;for(let _A=Ua+aA.leftDelimiter.length;_A<Ea.length;_A++){if(Ea.slice(_A,_A+aA.rightDelimiter.length)===aA.rightDelimiter){hA!==""&&gA.push([hA,fA]);break}const BA=Ea.charAt(_A);if(BA===sA&&wA){wA=!1;continue}if(BA===oA&&hA===""){Ea.charAt(_A+1)===oA?(hA="css-module",_A+=1):hA="class",wA=!1;continue}if(BA===dA&&hA===""){hA="id",wA=!1;continue}if(BA==='"'&&fA===""&&!CA){CA=!0;continue}if(BA==='"'&&CA){CA=!1;continue}if(BA===AA&&!CA){if(hA==="")continue;gA.push([hA,fA]),hA="",fA="",wA=!0;continue}if(!(wA&&BA.search(iA)===-1)){if(wA){hA+=BA;continue}fA+=BA}}if(aA.allowedAttributes&&aA.allowedAttributes.length){const _A=aA.allowedAttributes;return gA.filter(function(BA){const IA=BA[0];function $A(DA){return IA===DA||DA instanceof RegExp&&DA.test(IA)}return _A.some($A)})}return gA},utils$6.addAttrs=function(Ea,Ua){for(let aA=0,iA=Ea.length;aA<iA;++aA){const AA=Ea[aA][0];AA==="class"?Ua.attrJoin("class",Ea[aA][1]):AA==="css-module"?Ua.attrJoin("css-module",Ea[aA][1]):Ua.attrPush(Ea[aA])}return Ua},utils$6.hasDelimiters=function(Ea,Ua){if(!Ea)throw new Error('Parameter `where` not passed. Should be "start", "end" or "only".');return function(aA){const iA=Ua.leftDelimiter.length+1+Ua.rightDelimiter.length;if(!aA||typeof aA!="string"||aA.length<iA)return!1;function AA(fA){const wA=fA.charAt(Ua.leftDelimiter.length)===".",CA=fA.charAt(Ua.leftDelimiter.length)==="#";return wA||CA?fA.length>=iA+1:fA.length>=iA}let sA,oA,dA,gA;const hA=iA-Ua.rightDelimiter.length;switch(Ea){case"start":dA=aA.slice(0,Ua.leftDelimiter.length),sA=dA===Ua.leftDelimiter?0:-1,oA=sA===-1?-1:aA.indexOf(Ua.rightDelimiter,hA),gA=aA.charAt(oA+Ua.rightDelimiter.length),gA&&Ua.rightDelimiter.indexOf(gA)!==-1&&(oA=-1);break;case"end":sA=aA.lastIndexOf(Ua.leftDelimiter),oA=sA===-1?-1:aA.indexOf(Ua.rightDelimiter,sA+hA),oA=oA===aA.length-Ua.rightDelimiter.length?oA:-1;break;case"only":dA=aA.slice(0,Ua.leftDelimiter.length),sA=dA===Ua.leftDelimiter?0:-1,dA=aA.slice(aA.length-Ua.rightDelimiter.length),oA=dA===Ua.rightDelimiter?aA.length-Ua.rightDelimiter.length:-1;break;default:throw new Error(`Unexpected case ${Ea}, expected 'start', 'end' or 'only'`)}return sA!==-1&&oA!==-1&&AA(aA.substring(sA,oA+Ua.rightDelimiter.length))}},utils$6.removeDelimiter=function(Ea,Ua){const aA=escapeRegExp(Ua.leftDelimiter),iA=escapeRegExp(Ua.rightDelimiter),AA=new RegExp("[ \\n]?"+aA+"[^"+aA+iA+"]+"+iA+"$"),sA=Ea.search(AA);return sA!==-1?Ea.slice(0,sA):Ea};function escapeRegExp(Ea){return Ea.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}utils$6.escapeRegExp=escapeRegExp,utils$6.getMatchingOpeningToken=function(Ea,Ua){if(Ea[Ua].type==="softbreak")return!1;if(Ea[Ua].nesting===0)return Ea[Ua];const aA=Ea[Ua].level,iA=Ea[Ua].type.replace("_close","_open");for(;Ua>=0;--Ua)if(Ea[Ua].type===iA&&Ea[Ua].level===aA)return Ea[Ua];return!1};const HTML_ESCAPE_TEST_RE=/[&<>"]/,HTML_ESCAPE_REPLACE_RE=/[&<>"]/g,HTML_REPLACEMENTS={"&":"&","<":"<",">":">",'"':"""};function replaceUnsafeChar(Ea){return HTML_REPLACEMENTS[Ea]}utils$6.escapeHtml=function(Ea){return HTML_ESCAPE_TEST_RE.test(Ea)?Ea.replace(HTML_ESCAPE_REPLACE_RE,replaceUnsafeChar):Ea};const utils$5=utils$6;var patterns=Ea=>{const Ua=new RegExp("^ {0,3}[-*_]{3,} ?"+utils$5.escapeRegExp(Ea.leftDelimiter)+"[^"+utils$5.escapeRegExp(Ea.rightDelimiter)+"]");return[{name:"fenced code blocks",tests:[{shift:0,block:!0,info:utils$5.hasDelimiters("end",Ea)}],transform:(aA,iA)=>{const AA=aA[iA],sA=AA.info.lastIndexOf(Ea.leftDelimiter),oA=utils$5.getAttrs(AA.info,sA,Ea);utils$5.addAttrs(oA,AA),AA.info=utils$5.removeDelimiter(AA.info,Ea)}},{name:"inline nesting 0",tests:[{shift:0,type:"inline",children:[{shift:-1,type:aA=>aA==="image"||aA==="code_inline"},{shift:0,type:"text",content:utils$5.hasDelimiters("start",Ea)}]}],transform:(aA,iA,AA)=>{const sA=aA[iA].children[AA],oA=sA.content.indexOf(Ea.rightDelimiter),dA=aA[iA].children[AA-1],gA=utils$5.getAttrs(sA.content,0,Ea);utils$5.addAttrs(gA,dA),sA.content.length===oA+Ea.rightDelimiter.length?aA[iA].children.splice(AA,1):sA.content=sA.content.slice(oA+Ea.rightDelimiter.length)}},{name:"tables",tests:[{shift:0,type:"table_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:utils$5.hasDelimiters("only",Ea)}],transform:(aA,iA)=>{const AA=aA[iA+2],sA=utils$5.getMatchingOpeningToken(aA,iA),oA=utils$5.getAttrs(AA.content,0,Ea);utils$5.addAttrs(oA,sA),aA.splice(iA+1,3)}},{name:"inline attributes",tests:[{shift:0,type:"inline",children:[{shift:-1,nesting:-1},{shift:0,type:"text",content:utils$5.hasDelimiters("start",Ea)}]}],transform:(aA,iA,AA)=>{const sA=aA[iA].children[AA],oA=sA.content,dA=utils$5.getAttrs(oA,0,Ea),gA=utils$5.getMatchingOpeningToken(aA[iA].children,AA-1);utils$5.addAttrs(dA,gA),sA.content=oA.slice(oA.indexOf(Ea.rightDelimiter)+Ea.rightDelimiter.length)}},{name:"list softbreak",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:utils$5.hasDelimiters("only",Ea)}]}],transform:(aA,iA,AA)=>{const sA=aA[iA].children[AA].content,oA=utils$5.getAttrs(sA,0,Ea);let dA=iA-2;for(;aA[dA-1]&&aA[dA-1].type!=="ordered_list_open"&&aA[dA-1].type!=="bullet_list_open";)dA--;utils$5.addAttrs(oA,aA[dA-1]),aA[iA].children=aA[iA].children.slice(0,-2)}},{name:"list double softbreak",tests:[{shift:0,type:aA=>aA==="bullet_list_close"||aA==="ordered_list_close"},{shift:1,type:"paragraph_open"},{shift:2,type:"inline",content:utils$5.hasDelimiters("only",Ea),children:aA=>aA.length===1},{shift:3,type:"paragraph_close"}],transform:(aA,iA)=>{const AA=aA[iA+2].content,sA=utils$5.getAttrs(AA,0,Ea),oA=utils$5.getMatchingOpeningToken(aA,iA);utils$5.addAttrs(sA,oA),aA.splice(iA+1,3)}},{name:"list item end",tests:[{shift:-2,type:"list_item_open"},{shift:0,type:"inline",children:[{position:-1,type:"text",content:utils$5.hasDelimiters("end",Ea)}]}],transform:(aA,iA,AA)=>{const sA=aA[iA].children[AA],oA=sA.content,dA=utils$5.getAttrs(oA,oA.lastIndexOf(Ea.leftDelimiter),Ea);utils$5.addAttrs(dA,aA[iA-2]);const gA=oA.slice(0,oA.lastIndexOf(Ea.leftDelimiter));sA.content=last$1(gA)!==" "?gA:gA.slice(0,-1)}},{name:`
|
|
36
36
|
{.a} softbreak then curly in start`,tests:[{shift:0,type:"inline",children:[{position:-2,type:"softbreak"},{position:-1,type:"text",content:utils$5.hasDelimiters("only",Ea)}]}],transform:(aA,iA,AA)=>{const sA=aA[iA].children[AA],oA=utils$5.getAttrs(sA.content,0,Ea);let dA=iA+1;for(;aA[dA+1]&&aA[dA+1].nesting===-1;)dA++;const gA=utils$5.getMatchingOpeningToken(aA,dA);utils$5.addAttrs(oA,gA),aA[iA].children=aA[iA].children.slice(0,-2)}},{name:"horizontal rule",tests:[{shift:0,type:"paragraph_open"},{shift:1,type:"inline",children:aA=>aA.length===1,content:aA=>aA.match(Ua)!==null},{shift:2,type:"paragraph_close"}],transform:(aA,iA)=>{const AA=aA[iA];AA.type="hr",AA.tag="hr",AA.nesting=0;const sA=aA[iA+1].content,oA=sA.lastIndexOf(Ea.leftDelimiter),dA=utils$5.getAttrs(sA,oA,Ea);utils$5.addAttrs(dA,AA),AA.markup=sA,aA.splice(iA+1,2)}},{name:"end of block",tests:[{shift:0,type:"inline",children:[{position:-1,content:utils$5.hasDelimiters("end",Ea),type:aA=>aA!=="code_inline"&&aA!=="math_inline"}]}],transform:(aA,iA,AA)=>{const sA=aA[iA].children[AA],oA=sA.content,dA=utils$5.getAttrs(oA,oA.lastIndexOf(Ea.leftDelimiter),Ea);let gA=iA+1;for(;aA[gA+1]&&aA[gA+1].nesting===-1;)gA++;const hA=utils$5.getMatchingOpeningToken(aA,gA);utils$5.addAttrs(dA,hA);const fA=oA.slice(0,oA.lastIndexOf(Ea.leftDelimiter));sA.content=last$1(fA)!==" "?fA:fA.slice(0,-1)}}]};function last$1(Ea){return Ea.slice(-1)[0]}const patternsConfig=patterns,defaultOptions={leftDelimiter:"{",rightDelimiter:"}",allowedAttributes:[]};var markdownItAttrs=function(Ea,Ua){let aA=Object.assign({},defaultOptions);aA=Object.assign(aA,Ua);const iA=patternsConfig(aA);function AA(sA){const oA=sA.tokens;for(let dA=0;dA<oA.length;dA++)for(let gA=0;gA<iA.length;gA++){const hA=iA[gA];let fA=null;hA.tests.every(wA=>{const CA=test(oA,dA,wA);return CA.j!==null&&(fA=CA.j),CA.match})&&(hA.transform(oA,dA,fA),(hA.name==="inline attributes"||hA.name==="inline nesting 0")&&gA--)}}Ea.core.ruler.before("linkify","curly_attributes",AA)};function test(Ea,Ua,aA){const iA={match:!1,j:null},AA=aA.shift!==void 0?Ua+aA.shift:aA.position;if(aA.shift!==void 0&&AA<0)return iA;const sA=get$2(Ea,AA);if(sA===void 0)return iA;for(const oA of Object.keys(aA))if(!(oA==="shift"||oA==="position")){if(sA[oA]===void 0)return iA;if(oA==="children"&&isArrayOfObjects(aA.children)){if(sA.children.length===0)return iA;let dA;const gA=aA.children,hA=sA.children;if(gA.every(fA=>fA.position!==void 0)){if(dA=gA.every(fA=>test(hA,fA.position,fA).match),dA){const fA=last(gA).position;iA.j=fA>=0?fA:hA.length+fA}}else for(let fA=0;fA<hA.length;fA++)if(dA=gA.every(wA=>test(hA,fA,wA).match),dA){iA.j=fA;break}if(dA===!1)return iA;continue}switch(typeof aA[oA]){case"boolean":case"number":case"string":if(sA[oA]!==aA[oA])return iA;break;case"function":if(!aA[oA](sA[oA]))return iA;break;case"object":if(isArrayOfFunctions(aA[oA])){if(aA[oA].every(dA=>dA(sA[oA]))===!1)return iA;break}default:throw new Error(`Unknown type of pattern test (key: ${oA}). Test should be of type boolean, number, string, function or array of functions.`)}}return iA.match=!0,iA}function isArrayOfObjects(Ea){return Array.isArray(Ea)&&Ea.length&&Ea.every(Ua=>typeof Ua=="object")}function isArrayOfFunctions(Ea){return Array.isArray(Ea)&&Ea.length&&Ea.every(Ua=>typeof Ua=="function")}function get$2(Ea,Ua){return Ua>=0?Ea[Ua]:Ea[Ea.length+Ua]}function last(Ea){return Ea.slice(-1)[0]||{}}const attrs=getDefaultExportFromCjs(markdownItAttrs);function deflist_plugin(Ea){const Ua=Ea.utils.isSpace;function aA(sA,oA){let dA=sA.bMarks[oA]+sA.tShift[oA];const gA=sA.eMarks[oA];if(dA>=gA)return-1;const hA=sA.src.charCodeAt(dA++);if(hA!==126&&hA!==58)return-1;const fA=sA.skipSpaces(dA);return dA===fA||fA>=gA?-1:dA}function iA(sA,oA){const dA=sA.level+2;for(let gA=oA+2,hA=sA.tokens.length-2;gA<hA;gA++)sA.tokens[gA].level===dA&&sA.tokens[gA].type==="paragraph_open"&&(sA.tokens[gA+2].hidden=!0,sA.tokens[gA].hidden=!0,gA+=2)}function AA(sA,oA,dA,gA){if(gA)return sA.ddIndent<0?!1:aA(sA,oA)>=0;let hA=oA+1;if(hA>=dA||sA.isEmpty(hA)&&(hA++,hA>=dA)||sA.sCount[hA]<sA.blkIndent)return!1;let fA=aA(sA,hA);if(fA<0)return!1;const wA=sA.tokens.length;let CA=!0;const _A=sA.push("dl_open","dl",1),BA=[oA,0];_A.map=BA;let IA=oA,$A=hA;e:for(;;){let DA=!1;const FA=sA.push("dt_open","dt",1);FA.map=[IA,IA];const NA=sA.push("inline","",0);for(NA.map=[IA,IA],NA.content=sA.getLines(IA,IA+1,sA.blkIndent,!1).trim(),NA.children=[],sA.push("dt_close","dt",-1);;){const TA=sA.push("dd_open","dd",1),PA=[hA,0];TA.map=PA;let HA=fA;const RA=sA.eMarks[$A];let SA=sA.sCount[$A]+fA-(sA.bMarks[$A]+sA.tShift[$A]);for(;HA<RA;){const Fl=sA.src.charCodeAt(HA);if(Ua(Fl))Fl===9?SA+=4-SA%4:SA++;else break;HA++}fA=HA;const qA=sA.tight,LA=sA.ddIndent,KA=sA.blkIndent,jA=sA.tShift[$A],UA=sA.sCount[$A],_l=sA.parentType;if(sA.blkIndent=sA.ddIndent=sA.sCount[$A]+2,sA.tShift[$A]=fA-sA.bMarks[$A],sA.sCount[$A]=SA,sA.tight=!0,sA.parentType="deflist",sA.md.block.tokenize(sA,$A,dA,!0),(!sA.tight||DA)&&(CA=!1),DA=sA.line-$A>1&&sA.isEmpty(sA.line-1),sA.tShift[$A]=jA,sA.sCount[$A]=UA,sA.tight=qA,sA.parentType=_l,sA.blkIndent=KA,sA.ddIndent=LA,sA.push("dd_close","dd",-1),PA[1]=hA=sA.line,hA>=dA||sA.sCount[hA]<sA.blkIndent)break e;if(fA=aA(sA,hA),fA<0)break;$A=hA}if(hA>=dA||(IA=hA,sA.isEmpty(IA))||sA.sCount[IA]<sA.blkIndent||($A=IA+1,$A>=dA)||(sA.isEmpty($A)&&$A++,$A>=dA)||sA.sCount[$A]<sA.blkIndent||(fA=aA(sA,$A),fA<0))break}return sA.push("dl_close","dl",-1),BA[1]=hA,sA.line=hA,CA&&iA(sA,wA),!0}Ea.block.ruler.before("paragraph","deflist",AA,{alt:["paragraph","reference","blockquote"]})}const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var toString=Object.prototype.toString,kindOf=function(Ea){if(Ea===void 0)return"undefined";if(Ea===null)return"null";var Ua=typeof Ea;if(Ua==="boolean")return"boolean";if(Ua==="string")return"string";if(Ua==="number")return"number";if(Ua==="symbol")return"symbol";if(Ua==="function")return isGeneratorFn(Ea)?"generatorfunction":"function";if(isArray$1(Ea))return"array";if(isBuffer$2(Ea))return"buffer";if(isArguments$1(Ea))return"arguments";if(isDate(Ea))return"date";if(isError(Ea))return"error";if(isRegexp(Ea))return"regexp";switch(ctorName(Ea)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(isGeneratorObj(Ea))return"generator";switch(Ua=toString.call(Ea),Ua){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return Ua.slice(8,-1).toLowerCase().replace(/\s/g,"")};function ctorName(Ea){return typeof Ea.constructor=="function"?Ea.constructor.name:null}function isArray$1(Ea){return Array.isArray?Array.isArray(Ea):Ea instanceof Array}function isError(Ea){return Ea instanceof Error||typeof Ea.message=="string"&&Ea.constructor&&typeof Ea.constructor.stackTraceLimit=="number"}function isDate(Ea){return Ea instanceof Date?!0:typeof Ea.toDateString=="function"&&typeof Ea.getDate=="function"&&typeof Ea.setDate=="function"}function isRegexp(Ea){return Ea instanceof RegExp?!0:typeof Ea.flags=="string"&&typeof Ea.ignoreCase=="boolean"&&typeof Ea.multiline=="boolean"&&typeof Ea.global=="boolean"}function isGeneratorFn(Ea,Ua){return ctorName(Ea)==="GeneratorFunction"}function isGeneratorObj(Ea){return typeof Ea.throw=="function"&&typeof Ea.return=="function"&&typeof Ea.next=="function"}function isArguments$1(Ea){try{if(typeof Ea.length=="number"&&typeof Ea.callee=="function")return!0}catch(Ua){if(Ua.message.indexOf("callee")!==-1)return!0}return!1}function isBuffer$2(Ea){return Ea.constructor&&typeof Ea.constructor.isBuffer=="function"?Ea.constructor.isBuffer(Ea):!1}/*!
|
|
37
37
|
* is-extendable <https://github.com/jonschlinkert/is-extendable>
|
|
38
38
|
*
|
|
@@ -201,7 +201,7 @@ ${Ea.themeCSS}`),Ea.fontFamily!==void 0&&(iA+=`
|
|
|
201
201
|
${IFRAME_NOT_SUPPORTED_MSG}
|
|
202
202
|
</iframe>`},appendDivSvgG=(Ea,Ua,aA,iA,AA)=>{const sA=Ea.append("div");sA.attr("id",aA),iA&&sA.attr("style",iA);const oA=sA.append("svg").attr("id",Ua).attr("width","100%").attr("xmlns",XMLNS_SVG_STD);return AA&&oA.attr("xmlns:xlink",AA),oA.append("g"),Ea};function sandboxedIframe(Ea,Ua){return Ea.append("iframe").attr("id",Ua).attr("style","width: 100%; height: 100%;").attr("sandbox","")}const removeExistingElements=(Ea,Ua,aA,iA)=>{var AA,sA,oA;(AA=Ea.getElementById(Ua))==null||AA.remove(),(sA=Ea.getElementById(aA))==null||sA.remove(),(oA=Ea.getElementById(iA))==null||oA.remove()},render$1=async function(Ea,Ua,aA){var iA,AA,sA,oA,dA,gA;addDiagrams();const hA=processAndSetConfigs(Ua);Ua=hA.code;const fA=getConfig$1();log$1.debug(fA),Ua.length>((fA==null?void 0:fA.maxTextSize)??MAX_TEXTLENGTH)&&(Ua=MAX_TEXTLENGTH_EXCEEDED_MSG);const wA="#"+Ea,CA="i"+Ea,_A="#"+CA,BA="d"+Ea,IA="#"+BA;let $A=select("body");const DA=fA.securityLevel===SECURITY_LVL_SANDBOX,FA=fA.securityLevel===SECURITY_LVL_LOOSE,NA=fA.fontFamily;if(aA!==void 0){if(aA&&(aA.innerHTML=""),DA){const ZA=sandboxedIframe(select(aA),CA);$A=select(ZA.nodes()[0].contentDocument.body),$A.node().style.margin=0}else $A=select(aA);appendDivSvgG($A,Ea,BA,`font-family: ${NA}`,XMLNS_XLINK_STD)}else{if(removeExistingElements(document,Ea,BA,CA),DA){const ZA=sandboxedIframe(select("body"),CA);$A=select(ZA.nodes()[0].contentDocument.body),$A.node().style.margin=0}else $A=select("body");appendDivSvgG($A,Ea,BA)}let TA,PA;try{TA=await getDiagramFromText(Ua,{title:hA.title})}catch(ZA){TA=new Diagram("error"),PA=ZA}const HA=$A.select(IA).node(),RA=TA.type,SA=HA.firstChild,qA=SA.firstChild,LA=(AA=(iA=TA.renderer).getClasses)==null?void 0:AA.call(iA,Ua,TA),KA=createUserStyles(fA,RA,LA,wA),jA=document.createElement("style");jA.innerHTML=KA,SA.insertBefore(jA,qA);try{await TA.renderer.draw(Ua,Ea,version,TA)}catch(ZA){throw errorRenderer.draw(Ua,Ea,version),ZA}const UA=$A.select(`${IA} svg`),_l=(oA=(sA=TA.db).getAccTitle)==null?void 0:oA.call(sA),Fl=(gA=(dA=TA.db).getAccDescription)==null?void 0:gA.call(dA);addA11yInfo(RA,UA,_l,Fl),$A.select(`[id="${Ea}"]`).selectAll("foreignobject > *").attr("xmlns",XMLNS_XHTML_STD);let Bl=$A.select(IA).node().innerHTML;if(log$1.debug("config.arrowMarkerAbsolute",fA.arrowMarkerAbsolute),Bl=cleanUpSvgCode(Bl,DA,evaluate(fA.arrowMarkerAbsolute)),DA){const ZA=$A.select(IA+" svg").node();Bl=putIntoIFrame(Bl,ZA)}else FA||(Bl=purify.sanitize(Bl,{ADD_TAGS:DOMPURIFY_TAGS,ADD_ATTR:DOMPURIFY_ATTR}));if(attachFunctions(),PA)throw PA;const Gl=select(DA?_A:IA).node();return Gl&&"remove"in Gl&&Gl.remove(),{svg:Bl,bindFunctions:TA.db.bindFunctions}};function initialize$1(Ea={}){var Ua;Ea!=null&&Ea.fontFamily&&!((Ua=Ea.themeVariables)!=null&&Ua.fontFamily)&&(Ea.themeVariables||(Ea.themeVariables={}),Ea.themeVariables.fontFamily=Ea.fontFamily),saveConfigFromInitialize(Ea),Ea!=null&&Ea.theme&&Ea.theme in theme?Ea.themeVariables=theme[Ea.theme].getThemeVariables(Ea.themeVariables):Ea&&(Ea.themeVariables=theme.default.getThemeVariables(Ea.themeVariables));const aA=typeof Ea=="object"?setSiteConfig(Ea):getSiteConfig();setLogLevel$1(aA.logLevel),addDiagrams()}const getDiagramFromText=(Ea,Ua={})=>{const{code:aA}=preprocessDiagram(Ea);return getDiagramFromText$1(aA,Ua)};function addA11yInfo(Ea,Ua,aA,iA){setA11yDiagramInfo(Ua,Ea),addSVGa11yTitleDescription(Ua,aA,iA,Ua.attr("id"))}const mermaidAPI=Object.freeze({render:render$1,parse:parse$1,getDiagramFromText,initialize:initialize$1,getConfig:getConfig$1,setConfig:setConfig$1,getSiteConfig,updateSiteConfig,reset:()=>{reset()},globalReset:()=>{reset(defaultConfig$1)},defaultConfig:defaultConfig$1});setLogLevel$1(getConfig$1().logLevel),reset(getConfig$1());const loadRegisteredDiagrams=async()=>{log$1.debug("Loading registered diagrams");const Ea=(await Promise.allSettled(Object.entries(detectors).map(async([Ua,{detector:aA,loader:iA}])=>{if(iA)try{getDiagram(Ua)}catch{try{const{diagram:AA,id:sA}=await iA();registerDiagram(sA,AA,aA)}catch(AA){throw log$1.error(`Failed to load external diagram with key ${Ua}. Removing from detectors.`),delete detectors[Ua],AA}}}))).filter(Ua=>Ua.status==="rejected");if(Ea.length>0){log$1.error(`Failed to load ${Ea.length} external diagrams`);for(const Ua of Ea)log$1.error(Ua);throw new Error(`Failed to load ${Ea.length} external diagrams`)}},handleError=(Ea,Ua,aA)=>{log$1.warn(Ea),isDetailedError(Ea)?(aA&&aA(Ea.str,Ea.hash),Ua.push({...Ea,message:Ea.str,error:Ea})):(aA&&aA(Ea),Ea instanceof Error&&Ua.push({str:Ea.message,message:Ea.message,hash:Ea.name,error:Ea}))},run=async function(Ea={querySelector:".mermaid"}){try{await runThrowsErrors(Ea)}catch(Ua){if(isDetailedError(Ua)&&log$1.error(Ua.str),mermaid.parseError&&mermaid.parseError(Ua),!Ea.suppressErrors)throw log$1.error("Use the suppressErrors option to suppress these errors"),Ua}},runThrowsErrors=async function({postRenderCallback:Ea,querySelector:Ua,nodes:aA}={querySelector:".mermaid"}){const iA=mermaidAPI.getConfig();log$1.debug(`${Ea?"":"No "}Callback function found`);let AA;if(aA)AA=aA;else if(Ua)AA=document.querySelectorAll(Ua);else throw new Error("Nodes and querySelector are both undefined");log$1.debug(`Found ${AA.length} diagrams`),(iA==null?void 0:iA.startOnLoad)!==void 0&&(log$1.debug("Start On Load: "+(iA==null?void 0:iA.startOnLoad)),mermaidAPI.updateSiteConfig({startOnLoad:iA==null?void 0:iA.startOnLoad}));const sA=new utils.InitIDGenerator(iA.deterministicIds,iA.deterministicIDSeed);let oA;const dA=[];for(const gA of Array.from(AA)){log$1.info("Rendering diagram: "+gA.id);/*! Check if previously processed */if(gA.getAttribute("data-processed"))continue;gA.setAttribute("data-processed","true");const hA=`mermaid-${sA.next()}`;oA=gA.innerHTML,oA=dedent(utils.entityDecode(oA)).trim().replace(/<br\s*\/?>/gi,"<br/>");const fA=utils.detectInit(oA);fA&&log$1.debug("Detected early reinit: ",fA);try{const{svg:wA,bindFunctions:CA}=await render(hA,oA,gA);gA.innerHTML=wA,Ea&&await Ea(hA),CA&&CA(gA)}catch(wA){handleError(wA,dA,mermaid.parseError)}}if(dA.length>0)throw dA[0]},initialize=function(Ea){mermaidAPI.initialize(Ea)},init=async function(Ea,Ua,aA){log$1.warn("mermaid.init is deprecated. Please use run instead."),Ea&&initialize(Ea);const iA={postRenderCallback:aA,querySelector:".mermaid"};typeof Ua=="string"?iA.querySelector=Ua:Ua&&(Ua instanceof HTMLElement?iA.nodes=[Ua]:iA.nodes=Ua),await run(iA)},registerExternalDiagrams=async(Ea,{lazyLoad:Ua=!0}={})=>{registerLazyLoadedDiagrams(...Ea),Ua===!1&&await loadRegisteredDiagrams()},contentLoaded=function(){if(mermaid.startOnLoad){const{startOnLoad:Ea}=mermaidAPI.getConfig();Ea&&mermaid.run().catch(Ua=>log$1.error("Mermaid failed to initialize",Ua))}};if(typeof document<"u"){/*!
|
|
203
203
|
* Wait for document loaded before starting the execution
|
|
204
|
-
*/window.addEventListener("load",contentLoaded,!1)}const setParseErrorHandler=function(Ea){mermaid.parseError=Ea},executionQueue=[];let executionQueueRunning=!1;const executeQueue=async()=>{if(!executionQueueRunning){for(executionQueueRunning=!0;executionQueue.length>0;){const Ea=executionQueue.shift();if(Ea)try{await Ea()}catch(Ua){log$1.error("Error executing queue",Ua)}}executionQueueRunning=!1}},parse=async(Ea,Ua)=>new Promise((aA,iA)=>{const AA=()=>new Promise((sA,oA)=>{mermaidAPI.parse(Ea,Ua).then(dA=>{sA(dA),aA(dA)},dA=>{var gA;log$1.error("Error parsing",dA),(gA=mermaid.parseError)==null||gA.call(mermaid,dA),oA(dA),iA(dA)})});executionQueue.push(AA),executeQueue().catch(iA)}),render=(Ea,Ua,aA)=>new Promise((iA,AA)=>{const sA=()=>new Promise((oA,dA)=>{mermaidAPI.render(Ea,Ua,aA).then(gA=>{oA(gA),iA(gA)},gA=>{var hA;log$1.error("Error parsing",gA),(hA=mermaid.parseError)==null||hA.call(mermaid,gA),dA(gA),AA(gA)})});executionQueue.push(sA),executeQueue().catch(AA)}),mermaid={startOnLoad:!0,mermaidAPI,parse,render,init,run,registerExternalDiagrams,initialize,parseError:void 0,contentLoaded,setParseErrorHandler,detectType},_withScopeId$2=Ea=>(vue.pushScopeId("data-v-c4020e22"),Ea=Ea(),vue.popScopeId(),Ea),_hoisted_1$5=["id"],_hoisted_2$4={class:"markdown-panes"},_hoisted_3$3={key:0,class:"markdown-editor","data-testid":"markdown-editor"},_hoisted_4$3=["id","value"],_hoisted_5$2={class:"markdown-content-container","data-testid":"markdown-content-container"},_hoisted_6$2={key:0,class:"content-actions"},_hoisted_7$2={key:0,class:"download-button"},_hoisted_8$2=_withScopeId$2(()=>vue.createElementVNode("span",{class:"content-button-text"},"Download",-1)),_hoisted_9$2={key:1,class:"edit-button"},_hoisted_10$1=_withScopeId$2(()=>vue.createElementVNode("span",{class:"content-button-text"},"Edit",-1)),_sfc_main$6=vue.defineComponent({__name:"MarkdownUi",props:{modelValue:{type:String,default:""},editable:{type:Boolean,default:!1},downloadable:{type:Boolean,default:!1},filename:{type:String,default:"document"},mode:{type:String,default:"read",validator:Ea=>["read","edit","split","preview"].includes(Ea)},tabSize:{type:Number,default:2,validator:Ea=>Ea>=2&&Ea<=6},theme:{type:String,default:"",validator:Ea=>["","light","dark"].includes(Ea)},maxHeight:{type:Number,default:300,validator:Ea=>Ea>=100},fullscreenOffsetTop:{type:Number,default:0},fullscreenZIndex:{type:Number,default:1001}},emits:["update:modelValue","update:frontmatter","save","cancel","mode","fullscreen"],setup(Ea,{expose:Ua,emit:aA}){vue.useCssVars(Ub=>({"6a3eabcd":sb.value,"107b282e":Yl.value,ff4ef2d2:Ub.$props.fullscreenZIndex,"6a32dbec":vb.value,"428718ae":vue.unref(TOOLBAR_HEIGHT)}));const iA=Ea,AA=aA,sA=vue.ref(null),oA=vue.ref(null),{init:dA,md:gA}=composables.useMarkdownIt(),hA=v4(),fA=vue.computed(()=>`markdown-ui-${hA}`),wA=vue.computed(()=>`markdown-ui-textarea-${hA}`),CA=vue.computed(()=>`scrollable-${hA}`),_A=vue.computed(()=>iA.tabSize),BA=usePreferredColorScheme(),IA=vue.computed(()=>iA.theme?iA.theme:BA.value==="dark"?BA.value:"light"),$A=vue.ref(["edit","split","preview"].includes(iA.mode)&&iA.editable?iA.mode:"read"),DA=vue.ref(!1),FA=vue.ref(!1);vue.provide(UNIQUE_ID_INJECTION_KEY,hA),vue.provide(TEXTAREA_ID_INJECTION_KEY,wA),vue.provide(MODE_INJECTION_KEY,$A),vue.provide(EDITABLE_INJECTION_KEY,vue.computed(()=>iA.editable)),vue.provide(FULLSCREEN_INJECTION_KEY,DA),vue.provide(THEME_INJECTION_KEY,IA),vue.provide(HTML_PREVIEW_INJECTION_KEY,FA);const{initializeSyncScroll:NA,destroySyncScroll:TA}=composables.useSyncScroll(CA),{debounce:PA}=composables.useDebounce();vue.watch($A,async Ub=>{switch(Ub){case"edit":FA.value=!1;break;case"split":break;case"preview":break;case"read":FA.value=!1,DA.value=!1;break}AA("mode",Ub),TA(),await vue.nextTick(),await Gl(),NA()});const HA=Ub=>{var rb;const s1={},gb=(rb=gA.value)==null?void 0:rb.render(Ub,s1);return SA.value=s1.frontmatter,gb},RA=vue.ref(iA.modelValue),SA=vue.ref(),qA=vue.ref(""),LA=vue.ref(""),{toggleInlineFormatting:KA,insertMarkdownTemplate:jA,insertLink:UA,insertImage:_l}=composables.useMarkdownActions(sA,RA),Fl=Ub=>{Ub==="link"?UA():Ub==="image"?_l():KA(Ub),tb()},Bl=Ub=>{jA(Ub),tb()};vue.watchEffect(()=>{var Ub;FA.value&&(LA.value=(Ub=gA.value)==null?void 0:Ub.render("```html"+NEW_LINE_CHARACTER+formatHtml(qA.value," ".repeat(_A.value))+NEW_LINE_CHARACTER+"```"))});const Gl=async()=>{if(typeof mermaid<"u"&&typeof(mermaid==null?void 0:mermaid.run)=="function"){const Ub=`#${fA.value} .markdown-content-container .mermaid`;document.querySelector(Ub)&&await mermaid.run({querySelector:Ub,suppressErrors:!0})}},ZA=()=>{try{const Ub=new Blob([RA.value],{type:"text/markdown;charset=utf-8"}),rb=URL.createObjectURL(Ub),s1=document.createElement("a");s1.href=rb,s1.download=`${iA.filename.replace(/ /g,"-").replace(/[^-+.a-zA-Z0-9_]/g,"").replace(/(\.md)+$/g,"")}.md`,s1.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{window.URL.revokeObjectURL(rb),s1.remove()},100)}catch(Ub){console.warn("download",Ub)}},Ul=(Ub,rb=!0)=>{RA.value=Ub.target.value,Ml(rb)},Ml=PA(async(Ub=!0)=>{qA.value=HA(RA.value),await vue.nextTick(),Ub&&(AA("update:modelValue",RA.value),AA("update:frontmatter",SA.value)),await vue.nextTick(),await Gl()},EDITOR_DEBOUNCE_TIMEOUT),tb=(Ub=!0)=>{const rb={target:{value:RA.value}};Ul(rb,Ub)};vue.watch(()=>iA.modelValue,Ub=>{RA.value=Ub,tb(!1)});const nb=()=>{FA.value=!FA.value,tb()},Yl=vue.computed(()=>`${iA.fullscreenOffsetTop}px`),db=()=>{DA.value=!DA.value};vue.watch(DA,Ub=>{AA("fullscreen",Ub)});const jb=useMediaQuery(`(min-width: ${KUI_BREAKPOINT_PHABLET})`),ob=()=>{$A.value=jb.value?"split":"edit"},Bb=()=>{AA("cancel"),$A.value="read"},mb=()=>{AA("save",{content:RA.value,frontmatter:SA.value}),$A.value="read"},fb=()=>{typeof mermaid<"u"&&typeof(mermaid==null?void 0:mermaid.initialize)=="function"&&(mermaid==null||mermaid.initialize({startOnLoad:!1,securityLevel:"strict",fontFamily:KUI_FONT_FAMILY_TEXT,altFontFamily:KUI_FONT_FAMILY_CODE,theme:IA.value==="light"?"default":"base"}))};vue.watch(IA,async Ub=>{await dA(Ub),fb(),tb()});const ab=async Ub=>{var rb,s1,gb,X1,k1,Ew,fw,Ow;try{if(!((s1=(rb=Ub.target)==null?void 0:rb.classList)!=null&&s1.contains("kong-markdown-code-block-copy"))||!((X1=(gb=Ub.target)==null?void 0:gb.dataset)!=null&&X1.copytext))return;if(Ub.preventDefault(),(k1=navigator==null?void 0:navigator.clipboard)!=null&&k1.writeText){const W0=((fw=(Ew=Ub.target)==null?void 0:Ew.dataset)==null?void 0:fw.copytext)||"";W0&&(await navigator.clipboard.writeText(W0),(Ow=Ub==null?void 0:Ub.target)==null||Ow.blur())}}catch(W0){console.warn("Could not copy text to clipboard",W0)}};composables.useKeyboardShortcuts(sA,RA,_A,tb),vue.onMounted(async()=>{await dA(IA.value),qA.value=HA(iA.modelValue),await vue.nextTick(),useEventListener(oA,"click",ab),fb(),await Gl(),$A.value==="split"&&(await vue.nextTick(),NA())}),vue.onUnmounted(()=>{TA()}),Ua({download:ZA,edit:ob});const vb=vue.computed(()=>`calc(100vh - ${TOOLBAR_HEIGHT} - ${KUI_SPACE_60})`),sb=vue.computed(()=>`${iA.maxHeight}px`);return(Ub,rb)=>{var s1;return vue.openBlock(),vue.createElementBlock("div",{id:fA.value,ref_key:"markdownComponent",ref:oA,class:vue.normalizeClass(["kong-ui-public-markdown-ui",[`mode-${$A.value}`,`theme-${IA.value}`,{fullscreen:DA.value}]]),"data-testid":"markdown-ui"},[Ea.editable&&$A.value!=="read"?(vue.openBlock(),vue.createBlock(MarkdownToolbar,{key:0,onChangeMode:rb[0]||(rb[0]=gb=>$A.value=gb),onFormatSelection:Fl,onInsertTemplate:Bl,onToggleFullscreen:db,onToggleHtmlPreview:nb},{"toolbar-right":vue.withCtx(()=>[vue.renderSlot(Ub.$slots,"toolbar-right",{},void 0,!0)]),"editor-actions":vue.withCtx(()=>[vue.renderSlot(Ub.$slots,"editor-actions",{cancel:Bb,save:mb},()=>[Ea.editable&&["edit","split","preview"].includes($A.value)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(ToolbarButton,{"data-testid":"cancel",icon:!1,tabindex:0,onClick:Bb},{default:vue.withCtx(()=>[vue.createTextVNode(" Cancel ")]),_:1}),vue.createVNode(ToolbarButton,{appearance:"primary","data-testid":"save",icon:!1,tabindex:0,onClick:mb},{default:vue.withCtx(()=>[vue.createTextVNode(" Save ")]),_:1})],64)):vue.createCommentVNode("",!0)],!0)]),_:3})):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$4,[Ea.editable&&["edit","split"].includes($A.value)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$3,[vue.createElementVNode("textarea",{id:wA.value,ref_key:"textarea",ref:sA,autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:vue.normalizeClass(["markdown-editor-textarea",[CA.value]]),"data-testid":"markdown-editor-textarea",placeholder:"Begin editing...",spellcheck:"false",translate:"no",value:RA.value,onInput:rb[1]||(rb[1]=gb=>Ul(gb))},null,42,_hoisted_4$3)])):vue.createCommentVNode("",!0),["read","preview","split"].includes($A.value)?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["markdown-preview",[CA.value]]),"data-testid":"markdown-preview"},[vue.createElementVNode("div",_hoisted_5$2,[$A.value==="read"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$2,[vue.renderSlot(Ub.$slots,"content-actions",{download:(s1=RA.value)!=null&&s1.length&&Ea.downloadable?ZA:void 0,edit:Ea.editable?ob:void 0},()=>{var gb;return[$A.value==="read"&&(gb=RA.value)!=null&&gb.length&&Ea.downloadable?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$2,[vue.renderSlot(Ub.$slots,"download",{download:ZA},()=>[vue.createVNode(ToolbarButton,{appearance:"primary","aria-label":"Download markdown document","data-testid":"download",icon:!1,tabindex:0,onClick:ZA},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(m$3$1),{decorative:"",size:vue.unref(KUI_ICON_SIZE_30)},null,8,["size"]),_hoisted_8$2]),_:1})],!0)])):vue.createCommentVNode("",!0),$A.value==="read"&&Ea.editable?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$2,[vue.renderSlot(Ub.$slots,"edit",{edit:ob},()=>[vue.createVNode(ToolbarButton,{appearance:"primary","aria-label":"Edit markdown document","data-testid":"edit",icon:!1,tabindex:0,onClick:ob},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(_$1$1),{decorative:"",size:vue.unref(KUI_ICON_SIZE_30)},null,8,["size"]),_hoisted_10$1]),_:1})],!0)])):vue.createCommentVNode("",!0)]},!0)])):vue.createCommentVNode("",!0),vue.createVNode(MarkdownContent,{class:vue.normalizeClass({"html-preview":FA.value}),content:FA.value?LA.value:qA.value},null,8,["class","content"])])],2)):vue.createCommentVNode("",!0)])],10,_hoisted_1$5)}}}),MarkdownUi=_export_sfc$1(_sfc_main$6,[["__scopeId","data-v-c4020e22"]]),_withScopeId$1=Ea=>(vue.pushScopeId("data-v-52cb44f0"),Ea=Ea(),vue.popScopeId(),Ea),_hoisted_1$2={class:"documentation-display"},_hoisted_2$2={class:"document-meta"},_hoisted_3$2={class:"document-meta-start"},_hoisted_4$1={class:"document-title meta-section"},_hoisted_5$1=_withScopeId$1(()=>vue.createElementVNode("span",{class:"document-title-extension"},"md",-1)),_hoisted_6$1={key:0,class:"document-status meta-section"},_hoisted_7$1={class:"meta-label"},_hoisted_8$1={key:1,class:"document-create meta-section"},_hoisted_9$1={class:"meta-label"},_hoisted_10={class:"document-display-actions"},_hoisted_11={key:0,class:"markdown-content-loading","data-testid":"markdown-content-loading"},_hoisted_12={key:1},_sfc_main$3=vue.defineComponent({__name:"DocumentationDisplay",props:{canEdit:{type:Function,required:!1,default:async()=>!1},card:{type:Boolean,default:!1},hidePublishToggle:{type:Boolean,default:!1},selectedDocument:{type:Object,default:()=>null}},emits:["add","toggle-published","edit-markdown","save-markdown"],setup(Ea,{expose:Ua,emit:aA}){var RA;const iA=Ea,AA=aA,sA=vue.ref(),{i18n:oA}=composables$1.useI18n(),dA=vue.ref(!0),gA=vue.computed(()=>{var SA,qA,LA,KA,jA;return((qA=(SA=iA.selectedDocument)==null?void 0:SA.document)==null?void 0:qA.title)||((jA=(KA=(LA=iA.selectedDocument)==null?void 0:LA.document)==null?void 0:KA.revision)==null?void 0:jA.title)||""}),hA=vue.computed(()=>""),fA=vue.ref(!1),wA=vue.ref(oA.t("documentation.common.unpublished")),CA=vue.ref(((RA=iA.selectedDocument)==null?void 0:RA.markdown)||""),_A=vue.ref(CA.value),BA=vue.ref(null),IA=()=>{sA.value.download()},$A=()=>{sA.value.edit()},DA=SA=>{AA("edit-markdown",SA==="edit")},FA=()=>{const SA=!fA.value;AA("toggle-published",SA),fA.value=SA,wA.value=SA?oA.t("documentation.common.published"):oA.t("documentation.common.unpublished")},NA=()=>{CA.value=_A.value,_A.value=CA.value},TA=SA=>{SA==="published"?(fA.value=!0,wA.value=oA.t("documentation.common.published")):(fA.value=!1,wA.value=oA.t("documentation.common.unpublished"))},PA=()=>{var SA;BA.value={children:iA.selectedDocument.ast,type:"document",version:1},CA.value=((SA=iA.selectedDocument)==null?void 0:SA.markdown)||"",_A.value=CA.value,dA.value=!1},HA=vue.ref(!1);return vue.watch(()=>iA.canEdit,async()=>{HA.value=await iA.canEdit()},{immediate:!0}),vue.watch(()=>iA.selectedDocument,SA=>{var qA;isObjectEmpty(SA)||(iA.hidePublishToggle||TA((qA=SA.document)==null?void 0:qA.status),(SA.ast||SA.markdown)&&PA())},{deep:!0,immediate:!0}),vue.onMounted(()=>{PA()}),Ua({download:IA,edit:$A}),(SA,qA)=>{const LA=vue.resolveComponent("KBadge"),KA=vue.resolveComponent("KInputSwitch"),jA=vue.resolveComponent("KSkeleton");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$2,[vue.createElementVNode("div",_hoisted_2$2,[vue.createElementVNode("div",_hoisted_3$2,[vue.createElementVNode("div",_hoisted_4$1,[vue.renderSlot(SA.$slots,"document-title",{},()=>[vue.createElementVNode("span",null,vue.toDisplayString(gA.value),1),vue.createTextVNode("."),_hoisted_5$1],!0)]),Ea.hidePublishToggle?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$1,[vue.createElementVNode("span",_hoisted_7$1,vue.toDisplayString(vue.unref(oA).t("documentation.documentation_display.status_label")),1),vue.createVNode(LA,{appearance:fA.value?"success":"neutral"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(fA.value?vue.unref(oA).t("documentation.common.published"):vue.unref(oA).t("documentation.common.unpublished")),1)]),_:1},8,["appearance"])])),hA.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$1,[vue.createElementVNode("span",_hoisted_9$1,vue.toDisplayString(vue.unref(oA).t("documentation.documentation_display.added_label")),1),vue.createVNode(LA,{appearance:"neutral"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(hA.value),1)]),_:1})])):vue.createCommentVNode("",!0)]),vue.createElementVNode("div",_hoisted_10,[vue.createVNode(vue.unref(os$2),{"auth-function":()=>Ea.canEdit()},{default:vue.withCtx(()=>[!Ea.hidePublishToggle&&!Ea.card?(vue.openBlock(),vue.createBlock(KA,{key:0,modelValue:fA.value,"onUpdate:modelValue":qA[0]||(qA[0]=UA=>fA.value=UA),class:"document-publish-toggle","data-testid":"document-publish-toggle",label:wA.value,"label-before":"",onClick:FA},null,8,["modelValue","label"])):vue.createCommentVNode("",!0)]),_:1},8,["auth-function"])])]),dA.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_11,[Ea.card?(vue.openBlock(),vue.createBlock(jA,{key:1,type:"card"})):(vue.openBlock(),vue.createBlock(jA,{key:0,class:"markdown-content-loader"}))])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[vue.createElementVNode("div",{class:vue.normalizeClass(["document-content",{"content-card-view":Ea.card}])},[CA.value!==void 0?(vue.openBlock(),vue.createBlock(vue.unref(MarkdownUi),{key:0,ref_key:"markdownComponent",ref:sA,modelValue:CA.value,"onUpdate:modelValue":qA[1]||(qA[1]=UA=>CA.value=UA),downloadable:"",editable:HA.value,filename:gA.value,"max-height":700,mode:"read",theme:"light",onCancel:NA,onMode:qA[2]||(qA[2]=UA=>DA(UA)),onSave:qA[3]||(qA[3]=UA=>AA("save-markdown",UA.content))},null,8,["modelValue","editable","filename"])):vue.createCommentVNode("",!0)],2)]))])}}}),_export_sfc=(Ea,Ua)=>{const aA=Ea.__vccOpts||Ea;for(const[iA,AA]of Ua)aA[iA]=AA;return aA},DocumentationDisplay=_export_sfc(_sfc_main$3,[["__scopeId","data-v-52cb44f0"]]),I$6="24px",s$5=(Ea,Ua)=>{const aA=Ea.__vccOpts||Ea;for(const[iA,AA]of Ua)aA[iA]=AA;return aA},N$6=Ea=>(vue.pushScopeId("data-v-f68c7837"),Ea=Ea(),vue.popScopeId(),Ea),b$7=["aria-hidden"],z$a={key:0,"data-testid":"kui-icon-svg-title"},x$6=N$6(()=>vue.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),I$5=vue.defineComponent({__name:"AddIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$6,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$6}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon add-icon","data-testid":"kui-icon-wrapper-add-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-add-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",z$a,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),x$6],8,b$7))]),_:1},8,["aria-hidden","style"]))}}),m$7=s$5(I$5,[["__scopeId","data-v-f68c7837"]]),c$7=Ea=>(vue.pushScopeId("data-v-50d7a43a"),Ea=Ea(),vue.popScopeId(),Ea),b$6=["aria-hidden"],N$5={key:0,"data-testid":"kui-icon-svg-title"},z$9=c$7(()=>vue.createElementVNode("path",{d:"M12 22C10.6333 22 9.34167 21.7375 8.125 21.2125C6.90833 20.6875 5.84583 19.9708 4.9375 19.0625C4.02917 18.1542 3.3125 17.0917 2.7875 15.875C2.2625 14.6583 2 13.3667 2 12C2 10.6167 2.2625 9.32083 2.7875 8.1125C3.3125 6.90417 4.02917 5.84583 4.9375 4.9375C5.84583 4.02917 6.90833 3.3125 8.125 2.7875C9.34167 2.2625 10.6333 2 12 2C12.2833 2 12.5208 2.09583 12.7125 2.2875C12.9042 2.47917 13 2.71667 13 3C13 3.28333 12.9042 3.52083 12.7125 3.7125C12.5208 3.90417 12.2833 4 12 4C9.78333 4 7.89583 4.77917 6.3375 6.3375C4.77917 7.89583 4 9.78333 4 12C4 14.2167 4.77917 16.1042 6.3375 17.6625C7.89583 19.2208 9.78333 20 12 20C14.2167 20 16.1042 19.2208 17.6625 17.6625C19.2208 16.1042 20 14.2167 20 12C20 11.7167 20.0958 11.4792 20.2875 11.2875C20.4792 11.0958 20.7167 11 21 11C21.2833 11 21.5208 11.0958 21.7125 11.2875C21.9042 11.4792 22 11.7167 22 12C22 13.3667 21.7375 14.6583 21.2125 15.875C20.6875 17.0917 19.9708 18.1542 19.0625 19.0625C18.1542 19.9708 17.0958 20.6875 15.8875 21.2125C14.6792 21.7375 13.3833 22 12 22Z",fill:"currentColor","transform-origin":"center"},null,-1)),x$5=c$7(()=>vue.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",dur:"1.5s",from:"0",repeatCount:"indefinite",to:"360",type:"rotate"},null,-1)),I$4=vue.defineComponent({__name:"ProgressIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$6,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$6}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon progress-icon","data-testid":"kui-icon-wrapper-progress-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-progress-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$5,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),z$9,x$5],8,b$6))]),_:1},8,["aria-hidden","style"]))}}),m$6=s$5(I$4,[["__scopeId","data-v-50d7a43a"]]),_sfc_main$2=vue.defineComponent({__name:"DocumentationPageEmptyState",props:{canEdit:{type:Function,required:!1,default:async()=>!1}},emits:["create-documentation"],setup(Ea,{emit:Ua}){const aA=Ua,{i18n:iA}=composables$1.useI18n();return(AA,sA)=>{const oA=vue.resolveComponent("KButton"),dA=vue.resolveComponent("KEmptyState");return vue.openBlock(),vue.createBlock(dA,{class:"documentation-page-empty-state","data-testid":"documentation-page-empty-state","icon-variant":"kong"},{title:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(iA).t("documentation.show.empty_state.title")),1)]),default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(iA).t("documentation.show.empty_state.message")),1)]),action:vue.withCtx(()=>[vue.createVNode(vue.unref(os$2),{"auth-function":()=>Ea.canEdit()},{default:vue.withCtx(()=>[vue.createVNode(oA,{"data-testid":"add-new-page-button",onClick:sA[0]||(sA[0]=gA=>aA("create-documentation"))},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(m$7)),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(iA).t("documentation.show.empty_state.ctaText")),1)]),_:1})]),_:1},8,["auth-function"])]),_:1})}}}),externalLinks={serviceDocumentationDocs:"https://docs.konghq.com/konnect/servicehub/service-documentation/#main"},_withScopeId=Ea=>(vue.pushScopeId("data-v-c2726da6"),Ea=Ea(),vue.popScopeId(),Ea),_hoisted_1$1={class:"title"},_hoisted_2$1={class:"subtitle"},_hoisted_3$1=_withScopeId(()=>vue.createElementVNode("br",null,null,-1)),_hoisted_4={key:2,class:"document-radio-group"},_hoisted_5={class:"document-inputs"},_hoisted_6={class:"page-name side-by-side"},_hoisted_7={class:"url-slug side-by-side"},_hoisted_8={key:4,class:"documentation-status"},_hoisted_9={class:"button-spacing"},_sfc_main$1=vue.defineComponent({__name:"ProductDocumentModal",props:{actionPending:{type:Boolean,default:!1},documents:{type:Array,required:!0},editing:{type:Boolean,default:!1},errorMessage:{type:String,default:""},hidePublishToggle:{type:Boolean,default:!1},record:{type:Object,default:null}},emits:["edit","cancel","save","delete"],setup(Ea,{emit:Ua}){const aA=Ea,iA=Ua,{i18n:AA}=composables$1.useI18n(),sA=vue.computed(()=>{var SA;return(SA=aA.record.file)==null?void 0:SA.filename}),oA=vue.computed(()=>{var SA;return DA.value?(SA=DA.value.name)==null?void 0:SA.split(".")[0]:""}),dA=vue.ref(!0),gA=vue.computed(()=>dA.value?"published":"unpublished"),hA=vue.ref("upload"),fA=vue.reactive({fileName:"",pageName:"",urlSlug:"",status:gA.value,parent:""}),wA=/^[\w-]+$/,CA=vue.computed(()=>{var SA;return fA.urlSlug!==""&&!((SA=fA.urlSlug)!=null&&SA.match(wA))}),_A=vue.computed(()=>{var LA;let SA=(LA=aA.documents)==null?void 0:LA.filter(KA=>{var jA;return KA.record.id!==((jA=aA.record)==null?void 0:jA.id)&&!KA.record.parent_document_id}).map(KA=>({label:KA.record.title,value:KA.record.id,selected:!1}));SA||(SA=[]);const qA=cloneDeep(SA.length);return SA.push({label:AA.t("documentation.form_modal.parent_document_select_option_none"),value:"none",selected:!qA}),SA}),BA=vue.computed(()=>aA.editing?AA.t("documentation.form_modal.edit_title"):AA.t("documentation.form_modal.create_title")),IA=vue.computed(()=>aA.editing?AA.t("documentation.form_modal.replace_file_button_text"):AA.t("documentation.form_modal.filename_button_text")),$A=vue.computed(()=>gA.value==="published"?AA.t("documentation.common.published"):AA.t("documentation.common.unpublished")),DA=vue.ref(null),FA=SA=>{DA.value=SA==null?void 0:SA[0],fA.fileName=oA.value,fA.pageName=fA.pageName?fA.pageName:oA.value,fA.urlSlug=fA.urlSlug?fA.urlSlug:oA.value},NA=vue.computed(()=>{if(!aA.editing){if(hA.value==="upload")return!(DA.value&&fA.pageName&&fA.urlSlug&&!CA.value);if(hA.value==="empty")return!(fA.pageName&&fA.urlSlug&&!CA.value)}return!1}),TA=()=>{DA.value=null},PA=()=>{iA("cancel"),RA()},HA=()=>{const SA=vue.ref(null);if(hA.value==="empty"){const qA=new File([],fA.pageName+".md",{type:"text/markdown"});SA.value=qA,iA("save",Object.assign(fA,{fileName:fA.pageName},{status:gA.value}),SA)}else iA("save",Object.assign(fA,{status:gA.value}),DA)},RA=()=>{var SA,qA,LA,KA,jA;if(DA.value=null,aA.editing&&((SA=aA.record)!=null&&SA.document)){const UA=cloneDeep(aA.record),_l=UA.status||aA.record.document.status||dA.value;fA.fileName=((qA=UA.document.file)==null?void 0:qA.filename)||((KA=(LA=UA.document.revision)==null?void 0:LA.file)==null?void 0:KA.filename),fA.pageName=UA.document.title||((jA=UA.document.revision)==null?void 0:jA.title),fA.urlSlug=UA.document.slug,fA.parent=UA.document.parent_document_id,fA.status=_l,dA.value=_l==="published"}else fA.fileName="",fA.pageName="",fA.urlSlug="",fA.parent="",fA.status=""};return vue.watch(()=>hA,()=>{RA()},{deep:!0,immediate:!0}),vue.onMounted(()=>{RA()}),(SA,qA)=>{const LA=vue.resolveComponent("KExternalLink"),KA=vue.resolveComponent("KAlert"),jA=vue.resolveComponent("KRadio"),UA=vue.resolveComponent("KFileUpload"),_l=vue.resolveComponent("KInput"),Fl=vue.resolveComponent("KLabel"),Bl=vue.resolveComponent("KInputSwitch"),Gl=vue.resolveComponent("KSelect"),ZA=vue.resolveComponent("KButton"),Ul=vue.resolveComponent("KModal");return vue.openBlock(),vue.createBlock(vue.Teleport,{to:"#kong-ui-app-layout-teleport-default-slot"},[vue.createVNode(Ul,{class:"edit-document-modal","data-testid":"edit-document-modal","max-width":"750px",visible:"",onCancel:PA,onProceed:HA},{title:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1,[vue.createTextVNode(vue.toDisplayString(BA.value)+" ",1),vue.createElementVNode("div",_hoisted_2$1,[vue.createTextVNode(vue.toDisplayString(vue.unref(AA).t("documentation.form_modal.subtitle"))+" ",1),_hoisted_3$1,vue.createVNode(LA,{class:"doc-link",href:vue.unref(externalLinks).serviceDocumentationDocs},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(AA).t("documentation.form_modal.documentation_link_text")),1)]),_:1},8,["href"])])])]),default:vue.withCtx(()=>[Ea.errorMessage?(vue.openBlock(),vue.createBlock(KA,{key:0,appearance:"danger",class:"bottom-spacing",message:Ea.errorMessage},null,8,["message"])):vue.createCommentVNode("",!0),Ea.editing?(vue.openBlock(),vue.createBlock(KA,{key:1,appearance:"info",class:"bottom-spacing",message:vue.unref(AA).t("documentation.form_modal.edit_markdown"),"show-icon":""},null,8,["message"])):vue.createCommentVNode("",!0),Ea.editing?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_4,[vue.createElementVNode("div",null,[vue.createVNode(jA,{modelValue:hA.value,"onUpdate:modelValue":qA[0]||(qA[0]=Ml=>hA.value=Ml),class:"upload-document-radio","data-testid":"upload-document-radio","selected-value":"upload"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(AA).t("documentation.form_modal.file_label")),1)]),_:1},8,["modelValue"])]),vue.createElementVNode("div",null,[vue.createVNode(jA,{modelValue:hA.value,"onUpdate:modelValue":qA[1]||(qA[1]=Ml=>hA.value=Ml),class:"empty-document-radio","data-testid":"empty-document-radio","selected-value":"empty"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(AA).t("documentation.form_modal.empty_doc")),1)]),_:1},8,["modelValue"])])])),hA.value==="upload"?(vue.openBlock(),vue.createBlock(UA,{key:3,accept:[".md",".markdown"],"button-text":IA.value,class:"document-file-upload","data-testid":"document-file-upload",label:vue.unref(AA).t("documentation.form_modal.file_label"),"label-attributes":{info:vue.unref(AA).t("documentation.form_modal.file_tooltip")},placeholder:Ea.editing?sA.value:void 0,required:"",onFileAdded:FA,onFileRemoved:TA},null,8,["accept","button-text","label","label-attributes","placeholder"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_5,[vue.createElementVNode("div",_hoisted_6,[vue.createVNode(_l,{modelValue:fA.pageName,"onUpdate:modelValue":qA[2]||(qA[2]=Ml=>fA.pageName=Ml),modelModifiers:{trim:!0},"data-testid":"documentation-page-name",label:vue.unref(AA).t("documentation.form_modal.title_label"),placeholder:vue.unref(AA).t("documentation.form_modal.title_placeholder"),required:""},null,8,["modelValue","label","placeholder"])]),vue.createElementVNode("div",_hoisted_7,[vue.createVNode(_l,{modelValue:fA.urlSlug,"onUpdate:modelValue":qA[3]||(qA[3]=Ml=>fA.urlSlug=Ml),modelModifiers:{trim:!0},"data-testid":"documentation-url-slug","error-message":vue.unref(AA).t("documentation.form_modal.slug_error"),"has-error":CA.value,label:vue.unref(AA).t("documentation.form_modal.slug_label"),pattern:wA,placeholder:vue.unref(AA).t("documentation.form_modal.slug_placeholder"),required:""},null,8,["modelValue","error-message","has-error","label","placeholder"])])]),Ea.hidePublishToggle?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8,[vue.createElementVNode("div",null,[vue.createVNode(Fl,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(AA).t("documentation.form_modal.status_label")),1)]),_:1})]),vue.createVNode(Bl,{modelValue:dA.value,"onUpdate:modelValue":qA[4]||(qA[4]=Ml=>dA.value=Ml),"data-testid":"documentation-status",label:$A.value},null,8,["modelValue","label"])])),vue.createVNode(Gl,{modelValue:fA.parent,"onUpdate:modelValue":qA[5]||(qA[5]=Ml=>fA.parent=Ml),class:"document-parent-select","data-testid":"documentation-parent","enable-filtering":"",items:_A.value,label:vue.unref(AA).t("documentation.form_modal.parent_document_select_label"),width:"100%"},null,8,["modelValue","items","label"])]),footer:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_9,[vue.createVNode(ZA,{appearance:"tertiary",class:"edit-documentation-cancel-button","data-testid":"edit-documentation-cancel-button",onClick:PA},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(AA).t("documentation.form_modal.cancel_button_text")),1)]),_:1}),vue.createVNode(ZA,{appearance:"primary","data-testid":"edit-documentation-save-button",disabled:Ea.actionPending||NA.value,onClick:HA},{default:vue.withCtx(()=>[Ea.actionPending?(vue.openBlock(),vue.createBlock(vue.unref(m$6),{key:0})):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(AA).t("documentation.form_modal.save_button_text")),1)]),_:1},8,["disabled"])])]),_:1})])}}}),ProductDocumentModal=_export_sfc(_sfc_main$1,[["__scopeId","data-v-c2726da6"]]),_hoisted_1={class:"documentation"},_hoisted_2={key:0},_hoisted_3={key:1,class:"documentation-parent-container"},_sfc_main=vue.defineComponent({__name:"DocumentationContent",props:{actionPending:{type:Boolean,default:!1},actionSuccess:{type:Boolean,default:!1},cacheKey:{type:Number,default:0},canEdit:{type:Function,required:!1,default:async()=>!1},card:{type:Boolean,default:!1},documentList:{type:Array,required:!0},emptyStateCard:{type:Boolean,default:!1},entityId:{type:String,required:!0},hidePublishToggle:{type:Boolean,default:!1},modalErrorMessage:{type:String,default:""},selectedDocument:{type:Object,default:()=>null}},emits:["child-change","delete","document-selection","modal-closed","parent-change","save","save-markdown","toggle-published"],setup(Ea,{expose:Ua,emit:aA}){const iA=aA,AA=vue.ref(!1),sA=vue.ref(!1),oA=vue.ref(),dA=Ea;vue.watch(()=>dA.actionSuccess,_A=>{_A&&CA()});const gA=vue.computed(()=>{var _A,BA;return`data-display-${dA.cacheKey}-${((BA=(_A=dA.selectedDocument)==null?void 0:_A.document)==null?void 0:BA.id)||""}`}),hA=()=>{sA.value=!1,AA.value=!0},fA=()=>{oA.value.download()},wA=()=>{oA.value.edit()},CA=()=>{AA.value=!1,iA("modal-closed")};return Ua({download:fA,edit:wA}),(_A,BA)=>{const IA=vue.resolveComponent("KCard"),$A=vue.resolveComponent("KTreeList");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1,[Ea.documentList&&!Ea.documentList.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2,[Ea.emptyStateCard?(vue.openBlock(),vue.createBlock(IA,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2,{"can-edit":Ea.canEdit,onCreateDocumentation:hA},null,8,["can-edit"])]),_:1})):(vue.openBlock(),vue.createBlock(_sfc_main$2,{key:1,"can-edit":Ea.canEdit,onCreateDocumentation:hA},null,8,["can-edit"]))])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3,[(vue.openBlock(),vue.createBlock($A,{key:`tree-list-${Ea.cacheKey}`,class:"document-tree-list",items:Ea.documentList,"max-depth":2,onChange:BA[0]||(BA[0]=DA=>iA("parent-change",DA)),onChildChange:BA[1]||(BA[1]=DA=>iA("child-change",DA)),onSelected:BA[2]||(BA[2]=DA=>iA("document-selection",DA))},null,8,["items"])),Ea.selectedDocument?(vue.openBlock(),vue.createBlock(DocumentationDisplay,{key:gA.value,ref_key:"documentationDisplay",ref:oA,"can-edit":Ea.canEdit,card:Ea.card,class:"document-holder","hide-publish-toggle":Ea.hidePublishToggle,"selected-document":Ea.selectedDocument,onAdd:hA,onSaveMarkdown:BA[3]||(BA[3]=DA=>iA("save-markdown",DA)),onTogglePublished:BA[4]||(BA[4]=DA=>iA("toggle-published",DA))},null,8,["can-edit","card","hide-publish-toggle","selected-document"])):vue.createCommentVNode("",!0)])),AA.value?(vue.openBlock(),vue.createBlock(ProductDocumentModal,{key:2,"action-pending":Ea.actionPending,documents:Ea.documentList,editing:sA.value,"error-message":Ea.modalErrorMessage,"hide-publish-toggle":Ea.hidePublishToggle,record:sA.value&&Ea.selectedDocument?Ea.selectedDocument:void 0,onCancel:CA,onDelete:BA[5]||(BA[5]=DA=>iA("delete")),onSave:BA[6]||(BA[6]=(DA,FA)=>iA("save",DA,FA))},null,8,["action-pending","documents","editing","error-message","hide-publish-toggle","record"])):vue.createCommentVNode("",!0)])}}}),DocumentationContent=_export_sfc(_sfc_main,[["__scopeId","data-v-ce1efed9"]]);var e$P=Object.freeze({colors:{"activityBar.activeBorder":"#80CBC4","activityBar.background":"#FAFAFA","activityBar.border":"#FAFAFA60","activityBar.dropBackground":"#E5393580","activityBar.foreground":"#90A4AE","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#CCD7DA30","badge.foreground":"#90A4AE","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumb.background":"#FAFAFA","breadcrumb.focusForeground":"#90A4AE","breadcrumb.foreground":"#758a95","breadcrumbPicker.background":"#FAFAFA","button.background":"#80CBC440","button.foreground":"#ffffff","debugConsole.errorForeground":"#E53935","debugConsole.infoForeground":"#39ADB5","debugConsole.warningForeground":"#E2931D","debugToolBar.background":"#FAFAFA","diffEditor.insertedTextBackground":"#39ADB520","diffEditor.removedTextBackground":"#FF537020","dropdown.background":"#FAFAFA","dropdown.border":"#00000010","editor.background":"#FAFAFA","editor.findMatchBackground":"#00000020","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlight":"#90A4AE","editor.findMatchHighlightBackground":"#00000010","editor.findMatchHighlightBorder":"#00000030","editor.findRangeHighlightBackground":"#E2931D30","editor.foreground":"#90A4AE","editor.lineHighlightBackground":"#CCD7DA50","editor.lineHighlightBorder":"#CCD7DA00","editor.rangeHighlightBackground":"#FFFFFF0d","editor.selectionBackground":"#80CBC440","editor.selectionHighlightBackground":"#27272720","editor.wordHighlightBackground":"#FF537030","editor.wordHighlightStrongBackground":"#91B85930","editorBracketMatch.background":"#FAFAFA","editorBracketMatch.border":"#27272750","editorCursor.foreground":"#272727","editorError.foreground":"#E5393570","editorGroup.border":"#00000020","editorGroup.dropBackground":"#E5393580","editorGroup.focusedEmptyBorder":"#E53935","editorGroupHeader.tabsBackground":"#FAFAFA","editorGutter.addedBackground":"#91B85960","editorGutter.deletedBackground":"#E5393560","editorGutter.modifiedBackground":"#6182B860","editorHoverWidget.background":"#FAFAFA","editorHoverWidget.border":"#00000010","editorIndentGuide.activeBackground":"#B0BEC5","editorIndentGuide.background":"#B0BEC570","editorInfo.foreground":"#6182B870","editorLineNumber.activeForeground":"#758a95","editorLineNumber.foreground":"#CFD8DC","editorLink.activeForeground":"#90A4AE","editorMarkerNavigation.background":"#90A4AE05","editorOverviewRuler.border":"#FAFAFA","editorOverviewRuler.errorForeground":"#E5393540","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.infoForeground":"#6182B840","editorOverviewRuler.warningForeground":"#E2931D40","editorRuler.foreground":"#B0BEC5","editorSuggestWidget.background":"#FAFAFA","editorSuggestWidget.border":"#00000010","editorSuggestWidget.foreground":"#90A4AE","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#CCD7DA50","editorWarning.foreground":"#E2931D70","editorWhitespace.foreground":"#90A4AE40","editorWidget.background":"#FAFAFA","editorWidget.border":"#80CBC4","editorWidget.resizeBorder":"#80CBC4","extensionBadge.remoteForeground":"#90A4AE","extensionButton.prominentBackground":"#91B85990","extensionButton.prominentForeground":"#90A4AE","extensionButton.prominentHoverBackground":"#91B859",focusBorder:"#FFFFFF00",foreground:"#90A4AE","gitDecoration.conflictingResourceForeground":"#E2931D90","gitDecoration.deletedResourceForeground":"#E5393590","gitDecoration.ignoredResourceForeground":"#758a9590","gitDecoration.modifiedResourceForeground":"#6182B890","gitDecoration.untrackedResourceForeground":"#91B85990","input.background":"#EEEEEE","input.border":"#00000010","input.foreground":"#90A4AE","input.placeholderForeground":"#90A4AE60","inputOption.activeBackground":"#90A4AE30","inputOption.activeBorder":"#90A4AE30","inputValidation.errorBorder":"#E53935","inputValidation.infoBorder":"#6182B8","inputValidation.warningBorder":"#E2931D","list.activeSelectionBackground":"#FAFAFA","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#E5393580","list.focusBackground":"#90A4AE20","list.focusForeground":"#90A4AE","list.highlightForeground":"#80CBC4","list.hoverBackground":"#FAFAFA","list.hoverForeground":"#B1C7D3","list.inactiveSelectionBackground":"#CCD7DA50","list.inactiveSelectionForeground":"#80CBC4","listFilterWidget.background":"#CCD7DA50","listFilterWidget.noMatchesOutline":"#CCD7DA50","listFilterWidget.outline":"#CCD7DA50","menu.background":"#FAFAFA","menu.foreground":"#90A4AE","menu.selectionBackground":"#CCD7DA50","menu.selectionBorder":"#CCD7DA50","menu.selectionForeground":"#80CBC4","menu.separatorBackground":"#90A4AE","menubar.selectionBackground":"#CCD7DA50","menubar.selectionBorder":"#CCD7DA50","menubar.selectionForeground":"#80CBC4","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","notificationLink.foreground":"#80CBC4","notifications.background":"#FAFAFA","notifications.foreground":"#90A4AE","panel.background":"#FAFAFA","panel.border":"#FAFAFA60","panel.dropBackground":"#90A4AE","panelTitle.activeBorder":"#80CBC4","panelTitle.activeForeground":"#000000","panelTitle.inactiveForeground":"#90A4AE","peekView.border":"#00000020","peekViewEditor.background":"#90A4AE05","peekViewEditor.matchHighlightBackground":"#80CBC440","peekViewEditorGutter.background":"#90A4AE05","peekViewResult.background":"#90A4AE05","peekViewResult.matchHighlightBackground":"#80CBC440","peekViewResult.selectionBackground":"#758a9570","peekViewTitle.background":"#90A4AE05","peekViewTitleDescription.foreground":"#90A4AE60","pickerGroup.border":"#FFFFFF1a","pickerGroup.foreground":"#80CBC4","progressBar.background":"#80CBC4","quickInput.background":"#FAFAFA","quickInput.foreground":"#758a95","quickInput.list.focusBackground":"#90A4AE20","sash.hoverBorder":"#80CBC450","scrollbar.shadow":"#00000020","scrollbarSlider.activeBackground":"#80CBC4","scrollbarSlider.background":"#90A4AE20","scrollbarSlider.hoverBackground":"#90A4AE10","selection.background":"#CCD7DA80","settings.checkboxBackground":"#FAFAFA","settings.checkboxForeground":"#90A4AE","settings.dropdownBackground":"#FAFAFA","settings.dropdownForeground":"#90A4AE","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.numberInputBackground":"#FAFAFA","settings.numberInputForeground":"#90A4AE","settings.textInputBackground":"#FAFAFA","settings.textInputForeground":"#90A4AE","sideBar.background":"#FAFAFA","sideBar.border":"#FAFAFA60","sideBar.foreground":"#758a95","sideBarSectionHeader.background":"#FAFAFA","sideBarSectionHeader.border":"#FAFAFA60","sideBarTitle.foreground":"#90A4AE","statusBar.background":"#FAFAFA","statusBar.border":"#FAFAFA60","statusBar.debuggingBackground":"#9C3EDA","statusBar.debuggingForeground":"#FFFFFF","statusBar.foreground":"#7E939E","statusBar.noFolderBackground":"#FAFAFA","statusBarItem.activeBackground":"#E5393580","statusBarItem.hoverBackground":"#90A4AE20","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","tab.activeBackground":"#FAFAFA","tab.activeBorder":"#80CBC4","tab.activeForeground":"#000000","tab.activeModifiedBorder":"#758a95","tab.border":"#FAFAFA","tab.inactiveBackground":"#FAFAFA","tab.inactiveForeground":"#758a95","tab.inactiveModifiedBorder":"#89221f","tab.unfocusedActiveBorder":"#90A4AE","tab.unfocusedActiveForeground":"#90A4AE","tab.unfocusedActiveModifiedBorder":"#b72d2a","tab.unfocusedInactiveModifiedBorder":"#89221f","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#6182B8","terminal.ansiBrightBlack":"#90A4AE","terminal.ansiBrightBlue":"#6182B8","terminal.ansiBrightCyan":"#39ADB5","terminal.ansiBrightGreen":"#91B859","terminal.ansiBrightMagenta":"#9C3EDA","terminal.ansiBrightRed":"#E53935","terminal.ansiBrightWhite":"#FFFFFF","terminal.ansiBrightYellow":"#E2931D","terminal.ansiCyan":"#39ADB5","terminal.ansiGreen":"#91B859","terminal.ansiMagenta":"#9C3EDA","terminal.ansiRed":"#E53935","terminal.ansiWhite":"#FFFFFF","terminal.ansiYellow":"#E2931D","terminalCursor.background":"#000000","terminalCursor.foreground":"#E2931D","textLink.activeForeground":"#90A4AE","textLink.foreground":"#80CBC4","titleBar.activeBackground":"#FAFAFA","titleBar.activeForeground":"#90A4AE","titleBar.border":"#FAFAFA60","titleBar.inactiveBackground":"#FAFAFA","titleBar.inactiveForeground":"#758a95","tree.indentGuidesStroke":"#B0BEC5","widget.shadow":"#00000020"},displayName:"Material Theme Lighter",name:"material-theme-lighter",semanticHighlighting:!0,tokenColors:[{settings:{background:"#FAFAFA",foreground:"#90A4AE"}},{scope:"string",settings:{foreground:"#91B859"}},{scope:"punctuation, constant.other.symbol",settings:{foreground:"#39ADB5"}},{scope:"constant.character.escape, text.html constant.character.entity.named",settings:{foreground:"#90A4AE"}},{scope:"constant.language.boolean",settings:{foreground:"#FF5370"}},{scope:"constant.numeric",settings:{foreground:"#F76D47"}},{scope:"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments",settings:{foreground:"#90A4AE"}},{scope:"keyword.other",settings:{foreground:"#F76D47"}},{scope:"keyword, modifier, variable.language.this, support.type.object, constant.language",settings:{foreground:"#39ADB5"}},{scope:"entity.name.function, support.function",settings:{foreground:"#6182B8"}},{scope:"storage.type, storage.modifier, storage.control",settings:{foreground:"#9C3EDA"}},{scope:"support.module, support.node",settings:{fontStyle:"italic",foreground:"#E53935"}},{scope:"support.type, constant.other.key",settings:{foreground:"#E2931D"}},{scope:"entity.name.type, entity.other.inherited-class, entity.other",settings:{foreground:"#E2931D"}},{scope:"comment",settings:{fontStyle:"italic",foreground:"#90A4AE"}},{scope:"comment punctuation.definition.comment, string.quoted.docstring",settings:{fontStyle:"italic",foreground:"#90A4AE"}},{scope:"punctuation",settings:{foreground:"#39ADB5"}},{scope:"entity.name, entity.name.type.class, support.type, support.class, meta.use",settings:{foreground:"#E2931D"}},{scope:"variable.object.property, meta.field.declaration entity.name.function",settings:{foreground:"#E53935"}},{scope:"meta.definition.method entity.name.function",settings:{foreground:"#E53935"}},{scope:"meta.function entity.name.function",settings:{foreground:"#6182B8"}},{scope:"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end",settings:{foreground:"#39ADB5"}},{scope:"meta.embedded, source.groovy.embedded, meta.template.expression",settings:{foreground:"#90A4AE"}},{scope:"entity.name.tag.yaml",settings:{foreground:"#E53935"}},{scope:"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json",settings:{foreground:"#E53935"}},{scope:"constant.language.json",settings:{foreground:"#39ADB5"}},{scope:"entity.other.attribute-name.class",settings:{foreground:"#E2931D"}},{scope:"entity.other.attribute-name.id",settings:{foreground:"#F76D47"}},{scope:"source.css entity.name.tag",settings:{foreground:"#E2931D"}},{scope:"support.type.property-name.css",settings:{foreground:"#8796B0"}},{scope:"meta.tag, punctuation.definition.tag",settings:{foreground:"#39ADB5"}},{scope:"entity.name.tag",settings:{foreground:"#E53935"}},{scope:"entity.other.attribute-name",settings:{foreground:"#9C3EDA"}},{scope:"punctuation.definition.entity.html",settings:{foreground:"#90A4AE"}},{scope:"markup.heading",settings:{foreground:"#39ADB5"}},{scope:"text.html.markdown meta.link.inline, meta.link.reference",settings:{foreground:"#E53935"}},{scope:"text.html.markdown beginning.punctuation.definition.list",settings:{foreground:"#39ADB5"}},{scope:"markup.italic",settings:{fontStyle:"italic",foreground:"#E53935"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#E53935"}},{scope:"markup.bold markup.italic, markup.italic markup.bold",settings:{fontStyle:"italic bold",foreground:"#E53935"}},{scope:"markup.fenced_code.block.markdown punctuation.definition.markdown",settings:{foreground:"#91B859"}},{scope:"markup.inline.raw.string.markdown",settings:{foreground:"#91B859"}},{scope:"keyword.other.definition.ini",settings:{foreground:"#E53935"}},{scope:"entity.name.section.group-title.ini",settings:{foreground:"#39ADB5"}},{scope:"source.cs meta.class.identifier storage.type",settings:{foreground:"#E2931D"}},{scope:"source.cs meta.method.identifier entity.name.function",settings:{foreground:"#E53935"}},{scope:"source.cs meta.method-call meta.method, source.cs entity.name.function",settings:{foreground:"#6182B8"}},{scope:"source.cs storage.type",settings:{foreground:"#E2931D"}},{scope:"source.cs meta.method.return-type",settings:{foreground:"#E2931D"}},{scope:"source.cs meta.preprocessor",settings:{foreground:"#90A4AE"}},{scope:"source.cs entity.name.type.namespace",settings:{foreground:"#90A4AE"}},{scope:"meta.jsx.children, SXNested",settings:{foreground:"#90A4AE"}},{scope:"support.class.component",settings:{foreground:"#E2931D"}},{scope:"source.cpp meta.block variable.other",settings:{foreground:"#90A4AE"}},{scope:"source.python meta.member.access.python",settings:{foreground:"#E53935"}},{scope:"source.python meta.function-call.python, meta.function-call.arguments",settings:{foreground:"#6182B8"}},{scope:"meta.block",settings:{foreground:"#E53935"}},{scope:"entity.name.function.call",settings:{foreground:"#6182B8"}},{scope:"source.php support.other.namespace, source.php meta.use support.class",settings:{foreground:"#90A4AE"}},{scope:"constant.keyword",settings:{fontStyle:"italic",foreground:"#39ADB5"}},{scope:"entity.name.function",settings:{foreground:"#6182B8"}},{settings:{background:"#FAFAFA",foreground:"#90A4AE"}},{scope:["constant.other.placeholder"],settings:{foreground:"#E53935"}},{scope:["markup.deleted"],settings:{foreground:"#E53935"}},{scope:["markup.inserted"],settings:{foreground:"#91B859"}},{scope:["markup.underline"],settings:{fontStyle:"underline"}},{scope:["keyword.control"],settings:{fontStyle:"italic",foreground:"#39ADB5"}},{scope:["variable.parameter"],settings:{fontStyle:"italic"}},{scope:["variable.parameter.function.language.special.self.python"],settings:{fontStyle:"italic",foreground:"#E53935"}},{scope:["constant.character.format.placeholder.other.python"],settings:{foreground:"#F76D47"}},{scope:["markup.quote"],settings:{fontStyle:"italic",foreground:"#39ADB5"}},{scope:["markup.fenced_code.block"],settings:{foreground:"#90A4AE90"}},{scope:["punctuation.definition.quote"],settings:{foreground:"#FF5370"}},{scope:["meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#9C3EDA"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#E2931D"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#F76D47"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#E53935"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#916b53"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#6182B8"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#FF5370"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#9C3EDA"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#91B859"}}],type:"light"});const materialThemeLighterBRE1Bis3=Object.freeze(Object.defineProperty({__proto__:null,default:e$P},Symbol.toStringTag,{value:"Module"}));var e$O=Object.freeze({colors:{"activityBar.activeBorder":"#80CBC4","activityBar.background":"#292D3E","activityBar.border":"#292D3E60","activityBar.dropBackground":"#f0717880","activityBar.foreground":"#babed8","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#00000030","badge.foreground":"#676E95","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumb.background":"#292D3E","breadcrumb.focusForeground":"#babed8","breadcrumb.foreground":"#676E95","breadcrumbPicker.background":"#292D3E","button.background":"#717CB450","button.foreground":"#ffffff","debugConsole.errorForeground":"#f07178","debugConsole.infoForeground":"#89DDFF","debugConsole.warningForeground":"#FFCB6B","debugToolBar.background":"#292D3E","diffEditor.insertedTextBackground":"#89DDFF20","diffEditor.removedTextBackground":"#ff9cac20","dropdown.background":"#292D3E","dropdown.border":"#FFFFFF10","editor.background":"#292D3E","editor.findMatchBackground":"#000000","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlight":"#babed8","editor.findMatchHighlightBackground":"#00000050","editor.findMatchHighlightBorder":"#ffffff30","editor.findRangeHighlightBackground":"#FFCB6B30","editor.foreground":"#babed8","editor.lineHighlightBackground":"#00000050","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#FFFFFF0d","editor.selectionBackground":"#717CB450","editor.selectionHighlightBackground":"#FFCC0020","editor.wordHighlightBackground":"#ff9cac30","editor.wordHighlightStrongBackground":"#C3E88D30","editorBracketMatch.background":"#292D3E","editorBracketMatch.border":"#FFCC0050","editorCursor.foreground":"#FFCC00","editorError.foreground":"#f0717870","editorGroup.border":"#00000030","editorGroup.dropBackground":"#f0717880","editorGroup.focusedEmptyBorder":"#f07178","editorGroupHeader.tabsBackground":"#292D3E","editorGutter.addedBackground":"#C3E88D60","editorGutter.deletedBackground":"#f0717860","editorGutter.modifiedBackground":"#82AAFF60","editorHoverWidget.background":"#292D3E","editorHoverWidget.border":"#FFFFFF10","editorIndentGuide.activeBackground":"#4E5579","editorIndentGuide.background":"#4E557970","editorInfo.foreground":"#82AAFF70","editorLineNumber.activeForeground":"#676E95","editorLineNumber.foreground":"#3A3F58","editorLink.activeForeground":"#babed8","editorMarkerNavigation.background":"#babed805","editorOverviewRuler.border":"#292D3E","editorOverviewRuler.errorForeground":"#f0717840","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.infoForeground":"#82AAFF40","editorOverviewRuler.warningForeground":"#FFCB6B40","editorRuler.foreground":"#4E5579","editorSuggestWidget.background":"#292D3E","editorSuggestWidget.border":"#FFFFFF10","editorSuggestWidget.foreground":"#babed8","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#00000050","editorWarning.foreground":"#FFCB6B70","editorWhitespace.foreground":"#babed840","editorWidget.background":"#292D3E","editorWidget.border":"#80CBC4","editorWidget.resizeBorder":"#80CBC4","extensionBadge.remoteForeground":"#babed8","extensionButton.prominentBackground":"#C3E88D90","extensionButton.prominentForeground":"#babed8","extensionButton.prominentHoverBackground":"#C3E88D",focusBorder:"#FFFFFF00",foreground:"#babed8","gitDecoration.conflictingResourceForeground":"#FFCB6B90","gitDecoration.deletedResourceForeground":"#f0717890","gitDecoration.ignoredResourceForeground":"#676E9590","gitDecoration.modifiedResourceForeground":"#82AAFF90","gitDecoration.untrackedResourceForeground":"#C3E88D90","input.background":"#333747","input.border":"#FFFFFF10","input.foreground":"#babed8","input.placeholderForeground":"#babed860","inputOption.activeBackground":"#babed830","inputOption.activeBorder":"#babed830","inputValidation.errorBorder":"#f07178","inputValidation.infoBorder":"#82AAFF","inputValidation.warningBorder":"#FFCB6B","list.activeSelectionBackground":"#292D3E","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#f0717880","list.focusBackground":"#babed820","list.focusForeground":"#babed8","list.highlightForeground":"#80CBC4","list.hoverBackground":"#292D3E","list.hoverForeground":"#FFFFFF","list.inactiveSelectionBackground":"#00000030","list.inactiveSelectionForeground":"#80CBC4","listFilterWidget.background":"#00000030","listFilterWidget.noMatchesOutline":"#00000030","listFilterWidget.outline":"#00000030","menu.background":"#292D3E","menu.foreground":"#babed8","menu.selectionBackground":"#00000050","menu.selectionBorder":"#00000030","menu.selectionForeground":"#80CBC4","menu.separatorBackground":"#babed8","menubar.selectionBackground":"#00000030","menubar.selectionBorder":"#00000030","menubar.selectionForeground":"#80CBC4","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","notificationLink.foreground":"#80CBC4","notifications.background":"#292D3E","notifications.foreground":"#babed8","panel.background":"#292D3E","panel.border":"#292D3E60","panel.dropBackground":"#babed8","panelTitle.activeBorder":"#80CBC4","panelTitle.activeForeground":"#FFFFFF","panelTitle.inactiveForeground":"#babed8","peekView.border":"#00000030","peekViewEditor.background":"#babed805","peekViewEditor.matchHighlightBackground":"#717CB450","peekViewEditorGutter.background":"#babed805","peekViewResult.background":"#babed805","peekViewResult.matchHighlightBackground":"#717CB450","peekViewResult.selectionBackground":"#676E9570","peekViewTitle.background":"#babed805","peekViewTitleDescription.foreground":"#babed860","pickerGroup.border":"#FFFFFF1a","pickerGroup.foreground":"#80CBC4","progressBar.background":"#80CBC4","quickInput.background":"#292D3E","quickInput.foreground":"#676E95","quickInput.list.focusBackground":"#babed820","sash.hoverBorder":"#80CBC450","scrollbar.shadow":"#00000030","scrollbarSlider.activeBackground":"#80CBC4","scrollbarSlider.background":"#A6ACCD20","scrollbarSlider.hoverBackground":"#A6ACCD10","selection.background":"#00000080","settings.checkboxBackground":"#292D3E","settings.checkboxForeground":"#babed8","settings.dropdownBackground":"#292D3E","settings.dropdownForeground":"#babed8","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.numberInputBackground":"#292D3E","settings.numberInputForeground":"#babed8","settings.textInputBackground":"#292D3E","settings.textInputForeground":"#babed8","sideBar.background":"#292D3E","sideBar.border":"#292D3E60","sideBar.foreground":"#676E95","sideBarSectionHeader.background":"#292D3E","sideBarSectionHeader.border":"#292D3E60","sideBarTitle.foreground":"#babed8","statusBar.background":"#292D3E","statusBar.border":"#292D3E60","statusBar.debuggingBackground":"#C792EA","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#676E95","statusBar.noFolderBackground":"#292D3E","statusBarItem.activeBackground":"#f0717880","statusBarItem.hoverBackground":"#676E9520","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","tab.activeBackground":"#292D3E","tab.activeBorder":"#80CBC4","tab.activeForeground":"#FFFFFF","tab.activeModifiedBorder":"#676E95","tab.border":"#292D3E","tab.inactiveBackground":"#292D3E","tab.inactiveForeground":"#676E95","tab.inactiveModifiedBorder":"#904348","tab.unfocusedActiveBorder":"#676E95","tab.unfocusedActiveForeground":"#babed8","tab.unfocusedActiveModifiedBorder":"#c05a60","tab.unfocusedInactiveModifiedBorder":"#904348","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#82AAFF","terminal.ansiBrightBlack":"#676E95","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#89DDFF","terminal.ansiBrightGreen":"#C3E88D","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#f07178","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#FFCB6B","terminal.ansiCyan":"#89DDFF","terminal.ansiGreen":"#C3E88D","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#f07178","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#FFCB6B","terminalCursor.background":"#000000","terminalCursor.foreground":"#FFCB6B","textLink.activeForeground":"#babed8","textLink.foreground":"#80CBC4","titleBar.activeBackground":"#292D3E","titleBar.activeForeground":"#babed8","titleBar.border":"#292D3E60","titleBar.inactiveBackground":"#292D3E","titleBar.inactiveForeground":"#676E95","tree.indentGuidesStroke":"#4E5579","widget.shadow":"#00000030"},displayName:"Material Theme Palenight",name:"material-theme-palenight",semanticHighlighting:!0,tokenColors:[{settings:{background:"#292D3E",foreground:"#babed8"}},{scope:"string",settings:{foreground:"#C3E88D"}},{scope:"punctuation, constant.other.symbol",settings:{foreground:"#89DDFF"}},{scope:"constant.character.escape, text.html constant.character.entity.named",settings:{foreground:"#babed8"}},{scope:"constant.language.boolean",settings:{foreground:"#ff9cac"}},{scope:"constant.numeric",settings:{foreground:"#F78C6C"}},{scope:"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments",settings:{foreground:"#babed8"}},{scope:"keyword.other",settings:{foreground:"#F78C6C"}},{scope:"keyword, modifier, variable.language.this, support.type.object, constant.language",settings:{foreground:"#89DDFF"}},{scope:"entity.name.function, support.function",settings:{foreground:"#82AAFF"}},{scope:"storage.type, storage.modifier, storage.control",settings:{foreground:"#C792EA"}},{scope:"support.module, support.node",settings:{fontStyle:"italic",foreground:"#f07178"}},{scope:"support.type, constant.other.key",settings:{foreground:"#FFCB6B"}},{scope:"entity.name.type, entity.other.inherited-class, entity.other",settings:{foreground:"#FFCB6B"}},{scope:"comment",settings:{fontStyle:"italic",foreground:"#676E95"}},{scope:"comment punctuation.definition.comment, string.quoted.docstring",settings:{fontStyle:"italic",foreground:"#676E95"}},{scope:"punctuation",settings:{foreground:"#89DDFF"}},{scope:"entity.name, entity.name.type.class, support.type, support.class, meta.use",settings:{foreground:"#FFCB6B"}},{scope:"variable.object.property, meta.field.declaration entity.name.function",settings:{foreground:"#f07178"}},{scope:"meta.definition.method entity.name.function",settings:{foreground:"#f07178"}},{scope:"meta.function entity.name.function",settings:{foreground:"#82AAFF"}},{scope:"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end",settings:{foreground:"#89DDFF"}},{scope:"meta.embedded, source.groovy.embedded, meta.template.expression",settings:{foreground:"#babed8"}},{scope:"entity.name.tag.yaml",settings:{foreground:"#f07178"}},{scope:"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json",settings:{foreground:"#f07178"}},{scope:"constant.language.json",settings:{foreground:"#89DDFF"}},{scope:"entity.other.attribute-name.class",settings:{foreground:"#FFCB6B"}},{scope:"entity.other.attribute-name.id",settings:{foreground:"#F78C6C"}},{scope:"source.css entity.name.tag",settings:{foreground:"#FFCB6B"}},{scope:"support.type.property-name.css",settings:{foreground:"#B2CCD6"}},{scope:"meta.tag, punctuation.definition.tag",settings:{foreground:"#89DDFF"}},{scope:"entity.name.tag",settings:{foreground:"#f07178"}},{scope:"entity.other.attribute-name",settings:{foreground:"#C792EA"}},{scope:"punctuation.definition.entity.html",settings:{foreground:"#babed8"}},{scope:"markup.heading",settings:{foreground:"#89DDFF"}},{scope:"text.html.markdown meta.link.inline, meta.link.reference",settings:{foreground:"#f07178"}},{scope:"text.html.markdown beginning.punctuation.definition.list",settings:{foreground:"#89DDFF"}},{scope:"markup.italic",settings:{fontStyle:"italic",foreground:"#f07178"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#f07178"}},{scope:"markup.bold markup.italic, markup.italic markup.bold",settings:{fontStyle:"italic bold",foreground:"#f07178"}},{scope:"markup.fenced_code.block.markdown punctuation.definition.markdown",settings:{foreground:"#C3E88D"}},{scope:"markup.inline.raw.string.markdown",settings:{foreground:"#C3E88D"}},{scope:"keyword.other.definition.ini",settings:{foreground:"#f07178"}},{scope:"entity.name.section.group-title.ini",settings:{foreground:"#89DDFF"}},{scope:"source.cs meta.class.identifier storage.type",settings:{foreground:"#FFCB6B"}},{scope:"source.cs meta.method.identifier entity.name.function",settings:{foreground:"#f07178"}},{scope:"source.cs meta.method-call meta.method, source.cs entity.name.function",settings:{foreground:"#82AAFF"}},{scope:"source.cs storage.type",settings:{foreground:"#FFCB6B"}},{scope:"source.cs meta.method.return-type",settings:{foreground:"#FFCB6B"}},{scope:"source.cs meta.preprocessor",settings:{foreground:"#676E95"}},{scope:"source.cs entity.name.type.namespace",settings:{foreground:"#babed8"}},{scope:"meta.jsx.children, SXNested",settings:{foreground:"#babed8"}},{scope:"support.class.component",settings:{foreground:"#FFCB6B"}},{scope:"source.cpp meta.block variable.other",settings:{foreground:"#babed8"}},{scope:"source.python meta.member.access.python",settings:{foreground:"#f07178"}},{scope:"source.python meta.function-call.python, meta.function-call.arguments",settings:{foreground:"#82AAFF"}},{scope:"meta.block",settings:{foreground:"#f07178"}},{scope:"entity.name.function.call",settings:{foreground:"#82AAFF"}},{scope:"source.php support.other.namespace, source.php meta.use support.class",settings:{foreground:"#babed8"}},{scope:"constant.keyword",settings:{fontStyle:"italic",foreground:"#89DDFF"}},{scope:"entity.name.function",settings:{foreground:"#82AAFF"}},{settings:{background:"#292D3E",foreground:"#babed8"}},{scope:["constant.other.placeholder"],settings:{foreground:"#f07178"}},{scope:["markup.deleted"],settings:{foreground:"#f07178"}},{scope:["markup.inserted"],settings:{foreground:"#C3E88D"}},{scope:["markup.underline"],settings:{fontStyle:"underline"}},{scope:["keyword.control"],settings:{fontStyle:"italic",foreground:"#89DDFF"}},{scope:["variable.parameter"],settings:{fontStyle:"italic"}},{scope:["variable.parameter.function.language.special.self.python"],settings:{fontStyle:"italic",foreground:"#f07178"}},{scope:["constant.character.format.placeholder.other.python"],settings:{foreground:"#F78C6C"}},{scope:["markup.quote"],settings:{fontStyle:"italic",foreground:"#89DDFF"}},{scope:["markup.fenced_code.block"],settings:{foreground:"#babed890"}},{scope:["punctuation.definition.quote"],settings:{foreground:"#ff9cac"}},{scope:["meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#C792EA"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#FFCB6B"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#F78C6C"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#f07178"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#916b53"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#82AAFF"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#ff9cac"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#C792EA"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#C3E88D"}}],type:"dark"});const materialThemePalenightDhz61Tee=Object.freeze(Object.defineProperty({__proto__:null,default:e$O},Symbol.toStringTag,{value:"Module"})),n$D=Object.freeze({displayName:"JSON",name:"json",patterns:[{include:"#value"}],repository:{array:{begin:"\\[",beginCaptures:{0:{name:"punctuation.definition.array.begin.json"}},end:"\\]",endCaptures:{0:{name:"punctuation.definition.array.end.json"}},name:"meta.structure.array.json",patterns:[{include:"#value"},{match:",",name:"punctuation.separator.array.json"},{match:"[^\\s\\]]",name:"invalid.illegal.expected-array-separator.json"}]},comments:{patterns:[{begin:"/\\*\\*(?!/)",captures:{0:{name:"punctuation.definition.comment.json"}},end:"\\*/",name:"comment.block.documentation.json"},{begin:"/\\*",captures:{0:{name:"punctuation.definition.comment.json"}},end:"\\*/",name:"comment.block.json"},{captures:{1:{name:"punctuation.definition.comment.json"}},match:"(//).*$\\n?",name:"comment.line.double-slash.js"}]},constant:{match:"\\b(?:true|false|null)\\b",name:"constant.language.json"},number:{match:`(?x)
|
|
204
|
+
*/window.addEventListener("load",contentLoaded,!1)}const setParseErrorHandler=function(Ea){mermaid.parseError=Ea},executionQueue=[];let executionQueueRunning=!1;const executeQueue=async()=>{if(!executionQueueRunning){for(executionQueueRunning=!0;executionQueue.length>0;){const Ea=executionQueue.shift();if(Ea)try{await Ea()}catch(Ua){log$1.error("Error executing queue",Ua)}}executionQueueRunning=!1}},parse=async(Ea,Ua)=>new Promise((aA,iA)=>{const AA=()=>new Promise((sA,oA)=>{mermaidAPI.parse(Ea,Ua).then(dA=>{sA(dA),aA(dA)},dA=>{var gA;log$1.error("Error parsing",dA),(gA=mermaid.parseError)==null||gA.call(mermaid,dA),oA(dA),iA(dA)})});executionQueue.push(AA),executeQueue().catch(iA)}),render=(Ea,Ua,aA)=>new Promise((iA,AA)=>{const sA=()=>new Promise((oA,dA)=>{mermaidAPI.render(Ea,Ua,aA).then(gA=>{oA(gA),iA(gA)},gA=>{var hA;log$1.error("Error parsing",gA),(hA=mermaid.parseError)==null||hA.call(mermaid,gA),dA(gA),AA(gA)})});executionQueue.push(sA),executeQueue().catch(AA)}),mermaid={startOnLoad:!0,mermaidAPI,parse,render,init,run,registerExternalDiagrams,initialize,parseError:void 0,contentLoaded,setParseErrorHandler,detectType},_withScopeId$2=Ea=>(vue.pushScopeId("data-v-c4020e22"),Ea=Ea(),vue.popScopeId(),Ea),_hoisted_1$5=["id"],_hoisted_2$4={class:"markdown-panes"},_hoisted_3$3={key:0,class:"markdown-editor","data-testid":"markdown-editor"},_hoisted_4$3=["id","value"],_hoisted_5$2={class:"markdown-content-container","data-testid":"markdown-content-container"},_hoisted_6$2={key:0,class:"content-actions"},_hoisted_7$2={key:0,class:"download-button"},_hoisted_8$2=_withScopeId$2(()=>vue.createElementVNode("span",{class:"content-button-text"},"Download",-1)),_hoisted_9$2={key:1,class:"edit-button"},_hoisted_10$1=_withScopeId$2(()=>vue.createElementVNode("span",{class:"content-button-text"},"Edit",-1)),_sfc_main$6=vue.defineComponent({__name:"MarkdownUi",props:{modelValue:{type:String,default:""},editable:{type:Boolean,default:!1},downloadable:{type:Boolean,default:!1},filename:{type:String,default:"document"},mode:{type:String,default:"read",validator:Ea=>["read","edit","split","preview"].includes(Ea)},tabSize:{type:Number,default:2,validator:Ea=>Ea>=2&&Ea<=6},theme:{type:String,default:"",validator:Ea=>["","light","dark"].includes(Ea)},maxHeight:{type:Number,default:300,validator:Ea=>Ea>=100},fullscreenOffsetTop:{type:Number,default:0},fullscreenZIndex:{type:Number,default:1001}},emits:["update:modelValue","update:frontmatter","save","cancel","mode","fullscreen"],setup(Ea,{expose:Ua,emit:aA}){vue.useCssVars(Ub=>({"6a3eabcd":sb.value,"107b282e":Yl.value,ff4ef2d2:Ub.$props.fullscreenZIndex,"6a32dbec":vb.value,"428718ae":vue.unref(TOOLBAR_HEIGHT)}));const iA=Ea,AA=aA,sA=vue.ref(null),oA=vue.ref(null),{init:dA,md:gA}=composables.useMarkdownIt(),hA=v4(),fA=vue.computed(()=>`markdown-ui-${hA}`),wA=vue.computed(()=>`markdown-ui-textarea-${hA}`),CA=vue.computed(()=>`scrollable-${hA}`),_A=vue.computed(()=>iA.tabSize),BA=usePreferredColorScheme(),IA=vue.computed(()=>iA.theme?iA.theme:BA.value==="dark"?BA.value:"light"),$A=vue.ref(["edit","split","preview"].includes(iA.mode)&&iA.editable?iA.mode:"read"),DA=vue.ref(!1),FA=vue.ref(!1);vue.provide(UNIQUE_ID_INJECTION_KEY,hA),vue.provide(TEXTAREA_ID_INJECTION_KEY,wA),vue.provide(MODE_INJECTION_KEY,$A),vue.provide(EDITABLE_INJECTION_KEY,vue.computed(()=>iA.editable)),vue.provide(FULLSCREEN_INJECTION_KEY,DA),vue.provide(THEME_INJECTION_KEY,IA),vue.provide(HTML_PREVIEW_INJECTION_KEY,FA);const{initializeSyncScroll:NA,destroySyncScroll:TA}=composables.useSyncScroll(CA),{debounce:PA}=composables.useDebounce();vue.watch($A,async Ub=>{switch(Ub){case"edit":FA.value=!1;break;case"split":break;case"preview":break;case"read":FA.value=!1,DA.value=!1;break}AA("mode",Ub),TA(),await vue.nextTick(),await Gl(),NA()});const HA=Ub=>{var rb;const s1={},gb=(rb=gA.value)==null?void 0:rb.render(Ub,s1);return SA.value=s1.frontmatter,gb},RA=vue.ref(iA.modelValue),SA=vue.ref(),qA=vue.ref(""),LA=vue.ref(""),{toggleInlineFormatting:KA,insertMarkdownTemplate:jA,insertLink:UA,insertImage:_l}=composables.useMarkdownActions(sA,RA),Fl=Ub=>{Ub==="link"?UA():Ub==="image"?_l():KA(Ub),tb()},Bl=Ub=>{jA(Ub),tb()};vue.watchEffect(()=>{var Ub;FA.value&&(LA.value=(Ub=gA.value)==null?void 0:Ub.render("```html"+NEW_LINE_CHARACTER+formatHtml(qA.value," ".repeat(_A.value))+NEW_LINE_CHARACTER+"```"))});const Gl=async()=>{if(typeof mermaid<"u"&&typeof(mermaid==null?void 0:mermaid.run)=="function"){const Ub=`#${fA.value} .markdown-content-container .mermaid`;document.querySelector(Ub)&&await mermaid.run({querySelector:Ub,suppressErrors:!0})}},ZA=()=>{try{const Ub=new Blob([RA.value],{type:"text/markdown;charset=utf-8"}),rb=URL.createObjectURL(Ub),s1=document.createElement("a");s1.href=rb,s1.download=`${iA.filename.replace(/ /g,"-").replace(/[^-+.a-zA-Z0-9_]/g,"").replace(/(\.md)+$/g,"")}.md`,s1.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{window.URL.revokeObjectURL(rb),s1.remove()},100)}catch(Ub){console.warn("download",Ub)}},Ul=(Ub,rb=!0)=>{RA.value=Ub.target.value,Ml(rb)},Ml=PA(async(Ub=!0)=>{qA.value=HA(RA.value),await vue.nextTick(),Ub&&(AA("update:modelValue",RA.value),AA("update:frontmatter",SA.value)),await vue.nextTick(),await Gl()},EDITOR_DEBOUNCE_TIMEOUT),tb=(Ub=!0)=>{const rb={target:{value:RA.value}};Ul(rb,Ub)};vue.watch(()=>iA.modelValue,Ub=>{RA.value=Ub,tb(!1)});const nb=()=>{FA.value=!FA.value,tb()},Yl=vue.computed(()=>`${iA.fullscreenOffsetTop}px`),db=()=>{DA.value=!DA.value};vue.watch(DA,Ub=>{AA("fullscreen",Ub)});const jb=useMediaQuery(`(min-width: ${KUI_BREAKPOINT_PHABLET})`),ob=()=>{$A.value=jb.value?"split":"edit"},Bb=()=>{AA("cancel"),$A.value="read"},mb=()=>{AA("save",{content:RA.value,frontmatter:SA.value}),$A.value="read"},fb=()=>{typeof mermaid<"u"&&typeof(mermaid==null?void 0:mermaid.initialize)=="function"&&(mermaid==null||mermaid.initialize({startOnLoad:!1,securityLevel:"strict",fontFamily:KUI_FONT_FAMILY_TEXT,altFontFamily:KUI_FONT_FAMILY_CODE,theme:IA.value==="light"?"default":"base"}))};vue.watch(IA,async Ub=>{await dA(Ub),fb(),tb()});const ab=async Ub=>{var rb,s1,gb,X1,k1,Ew,fw,Ow;try{if(!((s1=(rb=Ub.target)==null?void 0:rb.classList)!=null&&s1.contains("kong-markdown-code-block-copy"))||!((X1=(gb=Ub.target)==null?void 0:gb.dataset)!=null&&X1.copytext))return;if(Ub.preventDefault(),(k1=navigator==null?void 0:navigator.clipboard)!=null&&k1.writeText){const W0=((fw=(Ew=Ub.target)==null?void 0:Ew.dataset)==null?void 0:fw.copytext)||"";W0&&(await navigator.clipboard.writeText(W0),(Ow=Ub==null?void 0:Ub.target)==null||Ow.blur())}}catch(W0){console.warn("Could not copy text to clipboard",W0)}};composables.useKeyboardShortcuts(sA,RA,_A,tb),vue.onMounted(async()=>{await dA(IA.value),qA.value=HA(iA.modelValue),await vue.nextTick(),useEventListener(oA,"click",ab),fb(),await Gl(),$A.value==="split"&&(await vue.nextTick(),NA())}),vue.onUnmounted(()=>{TA()}),Ua({download:ZA,edit:ob});const vb=vue.computed(()=>`calc(100vh - ${TOOLBAR_HEIGHT} - ${KUI_SPACE_60})`),sb=vue.computed(()=>`${iA.maxHeight}px`);return(Ub,rb)=>{var s1;return vue.openBlock(),vue.createElementBlock("div",{id:fA.value,ref_key:"markdownComponent",ref:oA,class:vue.normalizeClass(["kong-ui-public-markdown-ui",[`mode-${$A.value}`,`theme-${IA.value}`,{fullscreen:DA.value}]]),"data-testid":"markdown-ui"},[Ea.editable&&$A.value!=="read"?(vue.openBlock(),vue.createBlock(MarkdownToolbar,{key:0,onChangeMode:rb[0]||(rb[0]=gb=>$A.value=gb),onFormatSelection:Fl,onInsertTemplate:Bl,onToggleFullscreen:db,onToggleHtmlPreview:nb},{"toolbar-right":vue.withCtx(()=>[vue.renderSlot(Ub.$slots,"toolbar-right",{},void 0,!0)]),"editor-actions":vue.withCtx(()=>[vue.renderSlot(Ub.$slots,"editor-actions",{cancel:Bb,save:mb},()=>[Ea.editable&&["edit","split","preview"].includes($A.value)?(vue.openBlock(),vue.createElementBlock(vue.Fragment,{key:0},[vue.createVNode(ToolbarButton,{"data-testid":"cancel",icon:!1,tabindex:0,onClick:Bb},{default:vue.withCtx(()=>[vue.createTextVNode(" Cancel ")]),_:1}),vue.createVNode(ToolbarButton,{appearance:"primary","data-testid":"save",icon:!1,tabindex:0,onClick:mb},{default:vue.withCtx(()=>[vue.createTextVNode(" Save ")]),_:1})],64)):vue.createCommentVNode("",!0)],!0)]),_:3})):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_2$4,[Ea.editable&&["edit","split"].includes($A.value)?(vue.openBlock(),vue.createElementBlock("div",_hoisted_3$3,[vue.createElementVNode("textarea",{id:wA.value,ref_key:"textarea",ref:sA,autocapitalize:"off",autocomplete:"off",autocorrect:"off",class:vue.normalizeClass(["markdown-editor-textarea",[CA.value]]),"data-testid":"markdown-editor-textarea",placeholder:"Begin editing...",spellcheck:"false",translate:"no",value:RA.value,onInput:rb[1]||(rb[1]=gb=>Ul(gb))},null,42,_hoisted_4$3)])):vue.createCommentVNode("",!0),["read","preview","split"].includes($A.value)?(vue.openBlock(),vue.createElementBlock("div",{key:1,class:vue.normalizeClass(["markdown-preview",[CA.value]]),"data-testid":"markdown-preview"},[vue.createElementVNode("div",_hoisted_5$2,[$A.value==="read"?(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$2,[vue.renderSlot(Ub.$slots,"content-actions",{download:(s1=RA.value)!=null&&s1.length&&Ea.downloadable?ZA:void 0,edit:Ea.editable?ob:void 0},()=>{var gb;return[$A.value==="read"&&(gb=RA.value)!=null&&gb.length&&Ea.downloadable?(vue.openBlock(),vue.createElementBlock("div",_hoisted_7$2,[vue.renderSlot(Ub.$slots,"download",{download:ZA},()=>[vue.createVNode(ToolbarButton,{appearance:"primary","aria-label":"Download markdown document","data-testid":"download",icon:!1,tabindex:0,onClick:ZA},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(m$3$1),{decorative:"",size:vue.unref(KUI_ICON_SIZE_30)},null,8,["size"]),_hoisted_8$2]),_:1})],!0)])):vue.createCommentVNode("",!0),$A.value==="read"&&Ea.editable?(vue.openBlock(),vue.createElementBlock("div",_hoisted_9$2,[vue.renderSlot(Ub.$slots,"edit",{edit:ob},()=>[vue.createVNode(ToolbarButton,{appearance:"primary","aria-label":"Edit markdown document","data-testid":"edit",icon:!1,tabindex:0,onClick:ob},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(_$1$1),{decorative:"",size:vue.unref(KUI_ICON_SIZE_30)},null,8,["size"]),_hoisted_10$1]),_:1})],!0)])):vue.createCommentVNode("",!0)]},!0)])):vue.createCommentVNode("",!0),vue.createVNode(MarkdownContent,{class:vue.normalizeClass({"html-preview":FA.value}),content:FA.value?LA.value:qA.value},null,8,["class","content"])])],2)):vue.createCommentVNode("",!0)])],10,_hoisted_1$5)}}}),MarkdownUi=_export_sfc$1(_sfc_main$6,[["__scopeId","data-v-c4020e22"]]),_withScopeId$1=Ea=>(vue.pushScopeId("data-v-52cb44f0"),Ea=Ea(),vue.popScopeId(),Ea),_hoisted_1$2={class:"documentation-display"},_hoisted_2$2={class:"document-meta"},_hoisted_3$2={class:"document-meta-start"},_hoisted_4$1={class:"document-title meta-section"},_hoisted_5$1=_withScopeId$1(()=>vue.createElementVNode("span",{class:"document-title-extension"},"md",-1)),_hoisted_6$1={key:0,class:"document-status meta-section"},_hoisted_7$1={class:"meta-label"},_hoisted_8$1={key:1,class:"document-create meta-section"},_hoisted_9$1={class:"meta-label"},_hoisted_10={class:"document-display-actions"},_hoisted_11={key:0,class:"markdown-content-loading","data-testid":"markdown-content-loading"},_hoisted_12={key:1},_sfc_main$3=vue.defineComponent({__name:"DocumentationDisplay",props:{canEdit:{type:Function,required:!1,default:async()=>!1},card:{type:Boolean,default:!1},hidePublishToggle:{type:Boolean,default:!1},selectedDocument:{type:Object,default:()=>null}},emits:["add","toggle-published","edit-markdown","save-markdown"],setup(Ea,{expose:Ua,emit:aA}){var RA;const iA=Ea,AA=aA,sA=vue.ref(),{i18n:oA}=composables$1.useI18n(),dA=vue.ref(!0),gA=vue.computed(()=>{var SA,qA,LA,KA,jA;return((qA=(SA=iA.selectedDocument)==null?void 0:SA.document)==null?void 0:qA.title)||((jA=(KA=(LA=iA.selectedDocument)==null?void 0:LA.document)==null?void 0:KA.revision)==null?void 0:jA.title)||""}),hA=vue.computed(()=>""),fA=vue.ref(!1),wA=vue.ref(oA.t("documentation.common.unpublished")),CA=vue.ref(((RA=iA.selectedDocument)==null?void 0:RA.markdown)||""),_A=vue.ref(CA.value),BA=vue.ref(null),IA=()=>{sA.value.download()},$A=()=>{sA.value.edit()},DA=SA=>{AA("edit-markdown",SA==="edit")},FA=()=>{const SA=!fA.value;AA("toggle-published",SA),fA.value=SA,wA.value=SA?oA.t("documentation.common.published"):oA.t("documentation.common.unpublished")},NA=()=>{CA.value=_A.value,_A.value=CA.value},TA=SA=>{SA==="published"?(fA.value=!0,wA.value=oA.t("documentation.common.published")):(fA.value=!1,wA.value=oA.t("documentation.common.unpublished"))},PA=()=>{var SA;BA.value={children:iA.selectedDocument.ast,type:"document",version:1},CA.value=((SA=iA.selectedDocument)==null?void 0:SA.markdown)||"",_A.value=CA.value,dA.value=!1},HA=vue.ref(!1);return vue.watch(()=>iA.canEdit,async()=>{HA.value=await iA.canEdit()},{immediate:!0}),vue.watch(()=>iA.selectedDocument,SA=>{var qA;isObjectEmpty(SA)||(iA.hidePublishToggle||TA((qA=SA.document)==null?void 0:qA.status),(SA.ast||SA.markdown)&&PA())},{deep:!0,immediate:!0}),vue.onMounted(()=>{PA()}),Ua({download:IA,edit:$A}),(SA,qA)=>{const LA=vue.resolveComponent("KBadge"),KA=vue.resolveComponent("KInputSwitch"),jA=vue.resolveComponent("KSkeleton");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1$2,[vue.createElementVNode("div",_hoisted_2$2,[vue.createElementVNode("div",_hoisted_3$2,[vue.createElementVNode("div",_hoisted_4$1,[vue.renderSlot(SA.$slots,"document-title",{},()=>[vue.createElementVNode("span",null,vue.toDisplayString(gA.value),1),vue.createTextVNode("."),_hoisted_5$1],!0)]),Ea.hidePublishToggle?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_6$1,[vue.createElementVNode("span",_hoisted_7$1,vue.toDisplayString(vue.unref(oA).t("documentation.documentation_display.status_label")),1),vue.createVNode(LA,{appearance:fA.value?"success":"neutral"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(fA.value?vue.unref(oA).t("documentation.common.published"):vue.unref(oA).t("documentation.common.unpublished")),1)]),_:1},8,["appearance"])])),hA.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_8$1,[vue.createElementVNode("span",_hoisted_9$1,vue.toDisplayString(vue.unref(oA).t("documentation.documentation_display.added_label")),1),vue.createVNode(LA,{appearance:"neutral"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(hA.value),1)]),_:1})])):vue.createCommentVNode("",!0)]),vue.createElementVNode("div",_hoisted_10,[vue.createVNode(vue.unref(os$2),{"auth-function":()=>Ea.canEdit()},{default:vue.withCtx(()=>[!Ea.hidePublishToggle&&!Ea.card?(vue.openBlock(),vue.createBlock(KA,{key:0,modelValue:fA.value,"onUpdate:modelValue":qA[0]||(qA[0]=UA=>fA.value=UA),class:"document-publish-toggle","data-testid":"document-publish-toggle",label:wA.value,"label-before":"",onClick:FA},null,8,["modelValue","label"])):vue.createCommentVNode("",!0)]),_:1},8,["auth-function"])])]),dA.value?(vue.openBlock(),vue.createElementBlock("div",_hoisted_11,[Ea.card?(vue.openBlock(),vue.createBlock(jA,{key:1,type:"card"})):(vue.openBlock(),vue.createBlock(jA,{key:0,class:"markdown-content-loader"}))])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_12,[vue.createElementVNode("div",{class:vue.normalizeClass(["document-content",{"content-card-view":Ea.card}])},[CA.value!==void 0?(vue.openBlock(),vue.createBlock(vue.unref(MarkdownUi),{key:0,ref_key:"markdownComponent",ref:sA,modelValue:CA.value,"onUpdate:modelValue":qA[1]||(qA[1]=UA=>CA.value=UA),downloadable:"",editable:HA.value,filename:gA.value,"max-height":700,mode:"read",theme:"light",onCancel:NA,onMode:qA[2]||(qA[2]=UA=>DA(UA)),onSave:qA[3]||(qA[3]=UA=>AA("save-markdown",UA.content))},null,8,["modelValue","editable","filename"])):vue.createCommentVNode("",!0)],2)]))])}}}),_export_sfc=(Ea,Ua)=>{const aA=Ea.__vccOpts||Ea;for(const[iA,AA]of Ua)aA[iA]=AA;return aA},DocumentationDisplay=_export_sfc(_sfc_main$3,[["__scopeId","data-v-52cb44f0"]]),I$6="24px",s$5=(Ea,Ua)=>{const aA=Ea.__vccOpts||Ea;for(const[iA,AA]of Ua)aA[iA]=AA;return aA},N$6=Ea=>(vue.pushScopeId("data-v-ac124dc9"),Ea=Ea(),vue.popScopeId(),Ea),b$6=["aria-hidden"],z$a={key:0,"data-testid":"kui-icon-svg-title"},x$6=N$6(()=>vue.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),I$5=vue.defineComponent({__name:"AddIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$6,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$6}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon add-icon","data-testid":"kui-icon-wrapper-add-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-add-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",z$a,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),x$6],8,b$6))]),_:1},8,["aria-hidden","style"]))}}),d$5=s$5(I$5,[["__scopeId","data-v-ac124dc9"]]),c$7=Ea=>(vue.pushScopeId("data-v-eadb891f"),Ea=Ea(),vue.popScopeId(),Ea),v$5=["aria-hidden"],N$5={key:0,"data-testid":"kui-icon-svg-title"},z$9=c$7(()=>vue.createElementVNode("path",{d:"M12 22C10.6333 22 9.34167 21.7375 8.125 21.2125C6.90833 20.6875 5.84583 19.9708 4.9375 19.0625C4.02917 18.1542 3.3125 17.0917 2.7875 15.875C2.2625 14.6583 2 13.3667 2 12C2 10.6167 2.2625 9.32083 2.7875 8.1125C3.3125 6.90417 4.02917 5.84583 4.9375 4.9375C5.84583 4.02917 6.90833 3.3125 8.125 2.7875C9.34167 2.2625 10.6333 2 12 2C12.2833 2 12.5208 2.09583 12.7125 2.2875C12.9042 2.47917 13 2.71667 13 3C13 3.28333 12.9042 3.52083 12.7125 3.7125C12.5208 3.90417 12.2833 4 12 4C9.78333 4 7.89583 4.77917 6.3375 6.3375C4.77917 7.89583 4 9.78333 4 12C4 14.2167 4.77917 16.1042 6.3375 17.6625C7.89583 19.2208 9.78333 20 12 20C14.2167 20 16.1042 19.2208 17.6625 17.6625C19.2208 16.1042 20 14.2167 20 12C20 11.7167 20.0958 11.4792 20.2875 11.2875C20.4792 11.0958 20.7167 11 21 11C21.2833 11 21.5208 11.0958 21.7125 11.2875C21.9042 11.4792 22 11.7167 22 12C22 13.3667 21.7375 14.6583 21.2125 15.875C20.6875 17.0917 19.9708 18.1542 19.0625 19.0625C18.1542 19.9708 17.0958 20.6875 15.8875 21.2125C14.6792 21.7375 13.3833 22 12 22Z",fill:"currentColor","transform-origin":"center"},null,-1)),x$5=c$7(()=>vue.createElementVNode("animateTransform",{attributeName:"transform",attributeType:"XML",dur:"1.5s",from:"0",repeatCount:"indefinite",to:"360",type:"rotate"},null,-1)),I$4=vue.defineComponent({__name:"ProgressIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:I$6,validator:Ea=>{if(typeof Ea=="number"&&Ea>0)return!0;if(typeof Ea=="string"){const Ua=String(Ea).replace(/px/gi,""),aA=Number(Ua);if(aA&&!isNaN(aA)&&Number.isInteger(aA)&&aA>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(Ea){const Ua=Ea,aA=vue.computed(()=>{if(typeof Ua.size=="number"&&Ua.size>0)return`${Ua.size}px`;if(typeof Ua.size=="string"){const AA=String(Ua.size).replace(/px/gi,""),sA=Number(AA);if(sA&&!isNaN(sA)&&Number.isInteger(sA)&&sA>0)return`${sA}px`}return I$6}),iA=vue.computed(()=>({boxSizing:"border-box",color:Ua.color,display:Ua.display,height:aA.value,lineHeight:"0",width:aA.value}));return(AA,sA)=>(vue.openBlock(),vue.createBlock(vue.resolveDynamicComponent(Ea.as),{"aria-hidden":Ea.decorative?"true":void 0,class:"kui-icon progress-icon","data-testid":"kui-icon-wrapper-progress-icon",style:vue.normalizeStyle(iA.value)},{default:vue.withCtx(()=>[(vue.openBlock(),vue.createElementBlock("svg",{"aria-hidden":Ea.decorative?"true":void 0,"data-testid":"kui-icon-svg-progress-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[Ea.title?(vue.openBlock(),vue.createElementBlock("title",N$5,vue.toDisplayString(Ea.title),1)):vue.createCommentVNode("",!0),z$9,x$5],8,v$5))]),_:1},8,["aria-hidden","style"]))}}),e$Q=s$5(I$4,[["__scopeId","data-v-eadb891f"]]),_sfc_main$2=vue.defineComponent({__name:"DocumentationPageEmptyState",props:{canEdit:{type:Function,required:!1,default:async()=>!1}},emits:["create-documentation"],setup(Ea,{emit:Ua}){const aA=Ua,{i18n:iA}=composables$1.useI18n();return(AA,sA)=>{const oA=vue.resolveComponent("KButton"),dA=vue.resolveComponent("KEmptyState");return vue.openBlock(),vue.createBlock(dA,{class:"documentation-page-empty-state","data-testid":"documentation-page-empty-state","icon-variant":"kong"},{title:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(iA).t("documentation.show.empty_state.title")),1)]),default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(iA).t("documentation.show.empty_state.message")),1)]),action:vue.withCtx(()=>[vue.createVNode(vue.unref(os$2),{"auth-function":()=>Ea.canEdit()},{default:vue.withCtx(()=>[vue.createVNode(oA,{"data-testid":"add-new-page-button",onClick:sA[0]||(sA[0]=gA=>aA("create-documentation"))},{default:vue.withCtx(()=>[vue.createVNode(vue.unref(d$5)),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(iA).t("documentation.show.empty_state.ctaText")),1)]),_:1})]),_:1},8,["auth-function"])]),_:1})}}}),externalLinks={serviceDocumentationDocs:"https://docs.konghq.com/konnect/servicehub/service-documentation/#main"},_withScopeId=Ea=>(vue.pushScopeId("data-v-c2726da6"),Ea=Ea(),vue.popScopeId(),Ea),_hoisted_1$1={class:"title"},_hoisted_2$1={class:"subtitle"},_hoisted_3$1=_withScopeId(()=>vue.createElementVNode("br",null,null,-1)),_hoisted_4={key:2,class:"document-radio-group"},_hoisted_5={class:"document-inputs"},_hoisted_6={class:"page-name side-by-side"},_hoisted_7={class:"url-slug side-by-side"},_hoisted_8={key:4,class:"documentation-status"},_hoisted_9={class:"button-spacing"},_sfc_main$1=vue.defineComponent({__name:"ProductDocumentModal",props:{actionPending:{type:Boolean,default:!1},documents:{type:Array,required:!0},editing:{type:Boolean,default:!1},errorMessage:{type:String,default:""},hidePublishToggle:{type:Boolean,default:!1},record:{type:Object,default:null}},emits:["edit","cancel","save","delete"],setup(Ea,{emit:Ua}){const aA=Ea,iA=Ua,{i18n:AA}=composables$1.useI18n(),sA=vue.computed(()=>{var SA;return(SA=aA.record.file)==null?void 0:SA.filename}),oA=vue.computed(()=>{var SA;return DA.value?(SA=DA.value.name)==null?void 0:SA.split(".")[0]:""}),dA=vue.ref(!0),gA=vue.computed(()=>dA.value?"published":"unpublished"),hA=vue.ref("upload"),fA=vue.reactive({fileName:"",pageName:"",urlSlug:"",status:gA.value,parent:""}),wA=/^[\w-]+$/,CA=vue.computed(()=>{var SA;return fA.urlSlug!==""&&!((SA=fA.urlSlug)!=null&&SA.match(wA))}),_A=vue.computed(()=>{var LA;let SA=(LA=aA.documents)==null?void 0:LA.filter(KA=>{var jA;return KA.record.id!==((jA=aA.record)==null?void 0:jA.id)&&!KA.record.parent_document_id}).map(KA=>({label:KA.record.title,value:KA.record.id,selected:!1}));SA||(SA=[]);const qA=cloneDeep(SA.length);return SA.push({label:AA.t("documentation.form_modal.parent_document_select_option_none"),value:"none",selected:!qA}),SA}),BA=vue.computed(()=>aA.editing?AA.t("documentation.form_modal.edit_title"):AA.t("documentation.form_modal.create_title")),IA=vue.computed(()=>aA.editing?AA.t("documentation.form_modal.replace_file_button_text"):AA.t("documentation.form_modal.filename_button_text")),$A=vue.computed(()=>gA.value==="published"?AA.t("documentation.common.published"):AA.t("documentation.common.unpublished")),DA=vue.ref(null),FA=SA=>{DA.value=SA==null?void 0:SA[0],fA.fileName=oA.value,fA.pageName=fA.pageName?fA.pageName:oA.value,fA.urlSlug=fA.urlSlug?fA.urlSlug:oA.value},NA=vue.computed(()=>{if(!aA.editing){if(hA.value==="upload")return!(DA.value&&fA.pageName&&fA.urlSlug&&!CA.value);if(hA.value==="empty")return!(fA.pageName&&fA.urlSlug&&!CA.value)}return!1}),TA=()=>{DA.value=null},PA=()=>{iA("cancel"),RA()},HA=()=>{const SA=vue.ref(null);if(hA.value==="empty"){const qA=new File([],fA.pageName+".md",{type:"text/markdown"});SA.value=qA,iA("save",Object.assign(fA,{fileName:fA.pageName},{status:gA.value}),SA)}else iA("save",Object.assign(fA,{status:gA.value}),DA)},RA=()=>{var SA,qA,LA,KA,jA;if(DA.value=null,aA.editing&&((SA=aA.record)!=null&&SA.document)){const UA=cloneDeep(aA.record),_l=UA.status||aA.record.document.status||dA.value;fA.fileName=((qA=UA.document.file)==null?void 0:qA.filename)||((KA=(LA=UA.document.revision)==null?void 0:LA.file)==null?void 0:KA.filename),fA.pageName=UA.document.title||((jA=UA.document.revision)==null?void 0:jA.title),fA.urlSlug=UA.document.slug,fA.parent=UA.document.parent_document_id,fA.status=_l,dA.value=_l==="published"}else fA.fileName="",fA.pageName="",fA.urlSlug="",fA.parent="",fA.status=""};return vue.watch(()=>hA,()=>{RA()},{deep:!0,immediate:!0}),vue.onMounted(()=>{RA()}),(SA,qA)=>{const LA=vue.resolveComponent("KExternalLink"),KA=vue.resolveComponent("KAlert"),jA=vue.resolveComponent("KRadio"),UA=vue.resolveComponent("KFileUpload"),_l=vue.resolveComponent("KInput"),Fl=vue.resolveComponent("KLabel"),Bl=vue.resolveComponent("KInputSwitch"),Gl=vue.resolveComponent("KSelect"),ZA=vue.resolveComponent("KButton"),Ul=vue.resolveComponent("KModal");return vue.openBlock(),vue.createBlock(vue.Teleport,{to:"#kong-ui-app-layout-teleport-default-slot"},[vue.createVNode(Ul,{class:"edit-document-modal","data-testid":"edit-document-modal","max-width":"750px",visible:"",onCancel:PA,onProceed:HA},{title:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_1$1,[vue.createTextVNode(vue.toDisplayString(BA.value)+" ",1),vue.createElementVNode("div",_hoisted_2$1,[vue.createTextVNode(vue.toDisplayString(vue.unref(AA).t("documentation.form_modal.subtitle"))+" ",1),_hoisted_3$1,vue.createVNode(LA,{class:"doc-link",href:vue.unref(externalLinks).serviceDocumentationDocs},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(AA).t("documentation.form_modal.documentation_link_text")),1)]),_:1},8,["href"])])])]),default:vue.withCtx(()=>[Ea.errorMessage?(vue.openBlock(),vue.createBlock(KA,{key:0,appearance:"danger",class:"bottom-spacing",message:Ea.errorMessage},null,8,["message"])):vue.createCommentVNode("",!0),Ea.editing?(vue.openBlock(),vue.createBlock(KA,{key:1,appearance:"info",class:"bottom-spacing",message:vue.unref(AA).t("documentation.form_modal.edit_markdown"),"show-icon":""},null,8,["message"])):vue.createCommentVNode("",!0),Ea.editing?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_4,[vue.createElementVNode("div",null,[vue.createVNode(jA,{modelValue:hA.value,"onUpdate:modelValue":qA[0]||(qA[0]=Ml=>hA.value=Ml),class:"upload-document-radio","data-testid":"upload-document-radio","selected-value":"upload"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(AA).t("documentation.form_modal.file_label")),1)]),_:1},8,["modelValue"])]),vue.createElementVNode("div",null,[vue.createVNode(jA,{modelValue:hA.value,"onUpdate:modelValue":qA[1]||(qA[1]=Ml=>hA.value=Ml),class:"empty-document-radio","data-testid":"empty-document-radio","selected-value":"empty"},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(AA).t("documentation.form_modal.empty_doc")),1)]),_:1},8,["modelValue"])])])),hA.value==="upload"?(vue.openBlock(),vue.createBlock(UA,{key:3,accept:[".md",".markdown"],"button-text":IA.value,class:"document-file-upload","data-testid":"document-file-upload",label:vue.unref(AA).t("documentation.form_modal.file_label"),"label-attributes":{info:vue.unref(AA).t("documentation.form_modal.file_tooltip")},placeholder:Ea.editing?sA.value:void 0,required:"",onFileAdded:FA,onFileRemoved:TA},null,8,["accept","button-text","label","label-attributes","placeholder"])):vue.createCommentVNode("",!0),vue.createElementVNode("div",_hoisted_5,[vue.createElementVNode("div",_hoisted_6,[vue.createVNode(_l,{modelValue:fA.pageName,"onUpdate:modelValue":qA[2]||(qA[2]=Ml=>fA.pageName=Ml),modelModifiers:{trim:!0},"data-testid":"documentation-page-name",label:vue.unref(AA).t("documentation.form_modal.title_label"),placeholder:vue.unref(AA).t("documentation.form_modal.title_placeholder"),required:""},null,8,["modelValue","label","placeholder"])]),vue.createElementVNode("div",_hoisted_7,[vue.createVNode(_l,{modelValue:fA.urlSlug,"onUpdate:modelValue":qA[3]||(qA[3]=Ml=>fA.urlSlug=Ml),modelModifiers:{trim:!0},"data-testid":"documentation-url-slug","error-message":vue.unref(AA).t("documentation.form_modal.slug_error"),"has-error":CA.value,label:vue.unref(AA).t("documentation.form_modal.slug_label"),pattern:wA,placeholder:vue.unref(AA).t("documentation.form_modal.slug_placeholder"),required:""},null,8,["modelValue","error-message","has-error","label","placeholder"])])]),Ea.hidePublishToggle?vue.createCommentVNode("",!0):(vue.openBlock(),vue.createElementBlock("div",_hoisted_8,[vue.createElementVNode("div",null,[vue.createVNode(Fl,null,{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(AA).t("documentation.form_modal.status_label")),1)]),_:1})]),vue.createVNode(Bl,{modelValue:dA.value,"onUpdate:modelValue":qA[4]||(qA[4]=Ml=>dA.value=Ml),"data-testid":"documentation-status",label:$A.value},null,8,["modelValue","label"])])),vue.createVNode(Gl,{modelValue:fA.parent,"onUpdate:modelValue":qA[5]||(qA[5]=Ml=>fA.parent=Ml),class:"document-parent-select","data-testid":"documentation-parent","enable-filtering":"",items:_A.value,label:vue.unref(AA).t("documentation.form_modal.parent_document_select_label"),width:"100%"},null,8,["modelValue","items","label"])]),footer:vue.withCtx(()=>[vue.createElementVNode("div",_hoisted_9,[vue.createVNode(ZA,{appearance:"tertiary",class:"edit-documentation-cancel-button","data-testid":"edit-documentation-cancel-button",onClick:PA},{default:vue.withCtx(()=>[vue.createTextVNode(vue.toDisplayString(vue.unref(AA).t("documentation.form_modal.cancel_button_text")),1)]),_:1}),vue.createVNode(ZA,{appearance:"primary","data-testid":"edit-documentation-save-button",disabled:Ea.actionPending||NA.value,onClick:HA},{default:vue.withCtx(()=>[Ea.actionPending?(vue.openBlock(),vue.createBlock(vue.unref(e$Q),{key:0})):vue.createCommentVNode("",!0),vue.createTextVNode(" "+vue.toDisplayString(vue.unref(AA).t("documentation.form_modal.save_button_text")),1)]),_:1},8,["disabled"])])]),_:1})])}}}),ProductDocumentModal=_export_sfc(_sfc_main$1,[["__scopeId","data-v-c2726da6"]]),_hoisted_1={class:"documentation"},_hoisted_2={key:0},_hoisted_3={key:1,class:"documentation-parent-container"},_sfc_main=vue.defineComponent({__name:"DocumentationContent",props:{actionPending:{type:Boolean,default:!1},actionSuccess:{type:Boolean,default:!1},cacheKey:{type:Number,default:0},canEdit:{type:Function,required:!1,default:async()=>!1},card:{type:Boolean,default:!1},documentList:{type:Array,required:!0},emptyStateCard:{type:Boolean,default:!1},entityId:{type:String,required:!0},hidePublishToggle:{type:Boolean,default:!1},modalErrorMessage:{type:String,default:""},selectedDocument:{type:Object,default:()=>null}},emits:["child-change","delete","document-selection","modal-closed","parent-change","save","save-markdown","toggle-published"],setup(Ea,{expose:Ua,emit:aA}){const iA=aA,AA=vue.ref(!1),sA=vue.ref(!1),oA=vue.ref(),dA=Ea;vue.watch(()=>dA.actionSuccess,_A=>{_A&&CA()});const gA=vue.computed(()=>{var _A,BA;return`data-display-${dA.cacheKey}-${((BA=(_A=dA.selectedDocument)==null?void 0:_A.document)==null?void 0:BA.id)||""}`}),hA=()=>{sA.value=!1,AA.value=!0},fA=()=>{oA.value.download()},wA=()=>{oA.value.edit()},CA=()=>{AA.value=!1,iA("modal-closed")};return Ua({download:fA,edit:wA}),(_A,BA)=>{const IA=vue.resolveComponent("KCard"),$A=vue.resolveComponent("KTreeList");return vue.openBlock(),vue.createElementBlock("div",_hoisted_1,[Ea.documentList&&!Ea.documentList.length?(vue.openBlock(),vue.createElementBlock("div",_hoisted_2,[Ea.emptyStateCard?(vue.openBlock(),vue.createBlock(IA,{key:0},{default:vue.withCtx(()=>[vue.createVNode(_sfc_main$2,{"can-edit":Ea.canEdit,onCreateDocumentation:hA},null,8,["can-edit"])]),_:1})):(vue.openBlock(),vue.createBlock(_sfc_main$2,{key:1,"can-edit":Ea.canEdit,onCreateDocumentation:hA},null,8,["can-edit"]))])):(vue.openBlock(),vue.createElementBlock("div",_hoisted_3,[(vue.openBlock(),vue.createBlock($A,{key:`tree-list-${Ea.cacheKey}`,class:"document-tree-list",items:Ea.documentList,"max-depth":2,onChange:BA[0]||(BA[0]=DA=>iA("parent-change",DA)),onChildChange:BA[1]||(BA[1]=DA=>iA("child-change",DA)),onSelected:BA[2]||(BA[2]=DA=>iA("document-selection",DA))},null,8,["items"])),Ea.selectedDocument?(vue.openBlock(),vue.createBlock(DocumentationDisplay,{key:gA.value,ref_key:"documentationDisplay",ref:oA,"can-edit":Ea.canEdit,card:Ea.card,class:"document-holder","hide-publish-toggle":Ea.hidePublishToggle,"selected-document":Ea.selectedDocument,onAdd:hA,onSaveMarkdown:BA[3]||(BA[3]=DA=>iA("save-markdown",DA)),onTogglePublished:BA[4]||(BA[4]=DA=>iA("toggle-published",DA))},null,8,["can-edit","card","hide-publish-toggle","selected-document"])):vue.createCommentVNode("",!0)])),AA.value?(vue.openBlock(),vue.createBlock(ProductDocumentModal,{key:2,"action-pending":Ea.actionPending,documents:Ea.documentList,editing:sA.value,"error-message":Ea.modalErrorMessage,"hide-publish-toggle":Ea.hidePublishToggle,record:sA.value&&Ea.selectedDocument?Ea.selectedDocument:void 0,onCancel:CA,onDelete:BA[5]||(BA[5]=DA=>iA("delete")),onSave:BA[6]||(BA[6]=(DA,FA)=>iA("save",DA,FA))},null,8,["action-pending","documents","editing","error-message","hide-publish-toggle","record"])):vue.createCommentVNode("",!0)])}}}),DocumentationContent=_export_sfc(_sfc_main,[["__scopeId","data-v-ce1efed9"]]);var e$P=Object.freeze({colors:{"activityBar.activeBorder":"#80CBC4","activityBar.background":"#FAFAFA","activityBar.border":"#FAFAFA60","activityBar.dropBackground":"#E5393580","activityBar.foreground":"#90A4AE","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#CCD7DA30","badge.foreground":"#90A4AE","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumb.background":"#FAFAFA","breadcrumb.focusForeground":"#90A4AE","breadcrumb.foreground":"#758a95","breadcrumbPicker.background":"#FAFAFA","button.background":"#80CBC440","button.foreground":"#ffffff","debugConsole.errorForeground":"#E53935","debugConsole.infoForeground":"#39ADB5","debugConsole.warningForeground":"#E2931D","debugToolBar.background":"#FAFAFA","diffEditor.insertedTextBackground":"#39ADB520","diffEditor.removedTextBackground":"#FF537020","dropdown.background":"#FAFAFA","dropdown.border":"#00000010","editor.background":"#FAFAFA","editor.findMatchBackground":"#00000020","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlight":"#90A4AE","editor.findMatchHighlightBackground":"#00000010","editor.findMatchHighlightBorder":"#00000030","editor.findRangeHighlightBackground":"#E2931D30","editor.foreground":"#90A4AE","editor.lineHighlightBackground":"#CCD7DA50","editor.lineHighlightBorder":"#CCD7DA00","editor.rangeHighlightBackground":"#FFFFFF0d","editor.selectionBackground":"#80CBC440","editor.selectionHighlightBackground":"#27272720","editor.wordHighlightBackground":"#FF537030","editor.wordHighlightStrongBackground":"#91B85930","editorBracketMatch.background":"#FAFAFA","editorBracketMatch.border":"#27272750","editorCursor.foreground":"#272727","editorError.foreground":"#E5393570","editorGroup.border":"#00000020","editorGroup.dropBackground":"#E5393580","editorGroup.focusedEmptyBorder":"#E53935","editorGroupHeader.tabsBackground":"#FAFAFA","editorGutter.addedBackground":"#91B85960","editorGutter.deletedBackground":"#E5393560","editorGutter.modifiedBackground":"#6182B860","editorHoverWidget.background":"#FAFAFA","editorHoverWidget.border":"#00000010","editorIndentGuide.activeBackground":"#B0BEC5","editorIndentGuide.background":"#B0BEC570","editorInfo.foreground":"#6182B870","editorLineNumber.activeForeground":"#758a95","editorLineNumber.foreground":"#CFD8DC","editorLink.activeForeground":"#90A4AE","editorMarkerNavigation.background":"#90A4AE05","editorOverviewRuler.border":"#FAFAFA","editorOverviewRuler.errorForeground":"#E5393540","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.infoForeground":"#6182B840","editorOverviewRuler.warningForeground":"#E2931D40","editorRuler.foreground":"#B0BEC5","editorSuggestWidget.background":"#FAFAFA","editorSuggestWidget.border":"#00000010","editorSuggestWidget.foreground":"#90A4AE","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#CCD7DA50","editorWarning.foreground":"#E2931D70","editorWhitespace.foreground":"#90A4AE40","editorWidget.background":"#FAFAFA","editorWidget.border":"#80CBC4","editorWidget.resizeBorder":"#80CBC4","extensionBadge.remoteForeground":"#90A4AE","extensionButton.prominentBackground":"#91B85990","extensionButton.prominentForeground":"#90A4AE","extensionButton.prominentHoverBackground":"#91B859",focusBorder:"#FFFFFF00",foreground:"#90A4AE","gitDecoration.conflictingResourceForeground":"#E2931D90","gitDecoration.deletedResourceForeground":"#E5393590","gitDecoration.ignoredResourceForeground":"#758a9590","gitDecoration.modifiedResourceForeground":"#6182B890","gitDecoration.untrackedResourceForeground":"#91B85990","input.background":"#EEEEEE","input.border":"#00000010","input.foreground":"#90A4AE","input.placeholderForeground":"#90A4AE60","inputOption.activeBackground":"#90A4AE30","inputOption.activeBorder":"#90A4AE30","inputValidation.errorBorder":"#E53935","inputValidation.infoBorder":"#6182B8","inputValidation.warningBorder":"#E2931D","list.activeSelectionBackground":"#FAFAFA","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#E5393580","list.focusBackground":"#90A4AE20","list.focusForeground":"#90A4AE","list.highlightForeground":"#80CBC4","list.hoverBackground":"#FAFAFA","list.hoverForeground":"#B1C7D3","list.inactiveSelectionBackground":"#CCD7DA50","list.inactiveSelectionForeground":"#80CBC4","listFilterWidget.background":"#CCD7DA50","listFilterWidget.noMatchesOutline":"#CCD7DA50","listFilterWidget.outline":"#CCD7DA50","menu.background":"#FAFAFA","menu.foreground":"#90A4AE","menu.selectionBackground":"#CCD7DA50","menu.selectionBorder":"#CCD7DA50","menu.selectionForeground":"#80CBC4","menu.separatorBackground":"#90A4AE","menubar.selectionBackground":"#CCD7DA50","menubar.selectionBorder":"#CCD7DA50","menubar.selectionForeground":"#80CBC4","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","notificationLink.foreground":"#80CBC4","notifications.background":"#FAFAFA","notifications.foreground":"#90A4AE","panel.background":"#FAFAFA","panel.border":"#FAFAFA60","panel.dropBackground":"#90A4AE","panelTitle.activeBorder":"#80CBC4","panelTitle.activeForeground":"#000000","panelTitle.inactiveForeground":"#90A4AE","peekView.border":"#00000020","peekViewEditor.background":"#90A4AE05","peekViewEditor.matchHighlightBackground":"#80CBC440","peekViewEditorGutter.background":"#90A4AE05","peekViewResult.background":"#90A4AE05","peekViewResult.matchHighlightBackground":"#80CBC440","peekViewResult.selectionBackground":"#758a9570","peekViewTitle.background":"#90A4AE05","peekViewTitleDescription.foreground":"#90A4AE60","pickerGroup.border":"#FFFFFF1a","pickerGroup.foreground":"#80CBC4","progressBar.background":"#80CBC4","quickInput.background":"#FAFAFA","quickInput.foreground":"#758a95","quickInput.list.focusBackground":"#90A4AE20","sash.hoverBorder":"#80CBC450","scrollbar.shadow":"#00000020","scrollbarSlider.activeBackground":"#80CBC4","scrollbarSlider.background":"#90A4AE20","scrollbarSlider.hoverBackground":"#90A4AE10","selection.background":"#CCD7DA80","settings.checkboxBackground":"#FAFAFA","settings.checkboxForeground":"#90A4AE","settings.dropdownBackground":"#FAFAFA","settings.dropdownForeground":"#90A4AE","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.numberInputBackground":"#FAFAFA","settings.numberInputForeground":"#90A4AE","settings.textInputBackground":"#FAFAFA","settings.textInputForeground":"#90A4AE","sideBar.background":"#FAFAFA","sideBar.border":"#FAFAFA60","sideBar.foreground":"#758a95","sideBarSectionHeader.background":"#FAFAFA","sideBarSectionHeader.border":"#FAFAFA60","sideBarTitle.foreground":"#90A4AE","statusBar.background":"#FAFAFA","statusBar.border":"#FAFAFA60","statusBar.debuggingBackground":"#9C3EDA","statusBar.debuggingForeground":"#FFFFFF","statusBar.foreground":"#7E939E","statusBar.noFolderBackground":"#FAFAFA","statusBarItem.activeBackground":"#E5393580","statusBarItem.hoverBackground":"#90A4AE20","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","tab.activeBackground":"#FAFAFA","tab.activeBorder":"#80CBC4","tab.activeForeground":"#000000","tab.activeModifiedBorder":"#758a95","tab.border":"#FAFAFA","tab.inactiveBackground":"#FAFAFA","tab.inactiveForeground":"#758a95","tab.inactiveModifiedBorder":"#89221f","tab.unfocusedActiveBorder":"#90A4AE","tab.unfocusedActiveForeground":"#90A4AE","tab.unfocusedActiveModifiedBorder":"#b72d2a","tab.unfocusedInactiveModifiedBorder":"#89221f","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#6182B8","terminal.ansiBrightBlack":"#90A4AE","terminal.ansiBrightBlue":"#6182B8","terminal.ansiBrightCyan":"#39ADB5","terminal.ansiBrightGreen":"#91B859","terminal.ansiBrightMagenta":"#9C3EDA","terminal.ansiBrightRed":"#E53935","terminal.ansiBrightWhite":"#FFFFFF","terminal.ansiBrightYellow":"#E2931D","terminal.ansiCyan":"#39ADB5","terminal.ansiGreen":"#91B859","terminal.ansiMagenta":"#9C3EDA","terminal.ansiRed":"#E53935","terminal.ansiWhite":"#FFFFFF","terminal.ansiYellow":"#E2931D","terminalCursor.background":"#000000","terminalCursor.foreground":"#E2931D","textLink.activeForeground":"#90A4AE","textLink.foreground":"#80CBC4","titleBar.activeBackground":"#FAFAFA","titleBar.activeForeground":"#90A4AE","titleBar.border":"#FAFAFA60","titleBar.inactiveBackground":"#FAFAFA","titleBar.inactiveForeground":"#758a95","tree.indentGuidesStroke":"#B0BEC5","widget.shadow":"#00000020"},displayName:"Material Theme Lighter",name:"material-theme-lighter",semanticHighlighting:!0,tokenColors:[{settings:{background:"#FAFAFA",foreground:"#90A4AE"}},{scope:"string",settings:{foreground:"#91B859"}},{scope:"punctuation, constant.other.symbol",settings:{foreground:"#39ADB5"}},{scope:"constant.character.escape, text.html constant.character.entity.named",settings:{foreground:"#90A4AE"}},{scope:"constant.language.boolean",settings:{foreground:"#FF5370"}},{scope:"constant.numeric",settings:{foreground:"#F76D47"}},{scope:"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments",settings:{foreground:"#90A4AE"}},{scope:"keyword.other",settings:{foreground:"#F76D47"}},{scope:"keyword, modifier, variable.language.this, support.type.object, constant.language",settings:{foreground:"#39ADB5"}},{scope:"entity.name.function, support.function",settings:{foreground:"#6182B8"}},{scope:"storage.type, storage.modifier, storage.control",settings:{foreground:"#9C3EDA"}},{scope:"support.module, support.node",settings:{fontStyle:"italic",foreground:"#E53935"}},{scope:"support.type, constant.other.key",settings:{foreground:"#E2931D"}},{scope:"entity.name.type, entity.other.inherited-class, entity.other",settings:{foreground:"#E2931D"}},{scope:"comment",settings:{fontStyle:"italic",foreground:"#90A4AE"}},{scope:"comment punctuation.definition.comment, string.quoted.docstring",settings:{fontStyle:"italic",foreground:"#90A4AE"}},{scope:"punctuation",settings:{foreground:"#39ADB5"}},{scope:"entity.name, entity.name.type.class, support.type, support.class, meta.use",settings:{foreground:"#E2931D"}},{scope:"variable.object.property, meta.field.declaration entity.name.function",settings:{foreground:"#E53935"}},{scope:"meta.definition.method entity.name.function",settings:{foreground:"#E53935"}},{scope:"meta.function entity.name.function",settings:{foreground:"#6182B8"}},{scope:"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end",settings:{foreground:"#39ADB5"}},{scope:"meta.embedded, source.groovy.embedded, meta.template.expression",settings:{foreground:"#90A4AE"}},{scope:"entity.name.tag.yaml",settings:{foreground:"#E53935"}},{scope:"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json",settings:{foreground:"#E53935"}},{scope:"constant.language.json",settings:{foreground:"#39ADB5"}},{scope:"entity.other.attribute-name.class",settings:{foreground:"#E2931D"}},{scope:"entity.other.attribute-name.id",settings:{foreground:"#F76D47"}},{scope:"source.css entity.name.tag",settings:{foreground:"#E2931D"}},{scope:"support.type.property-name.css",settings:{foreground:"#8796B0"}},{scope:"meta.tag, punctuation.definition.tag",settings:{foreground:"#39ADB5"}},{scope:"entity.name.tag",settings:{foreground:"#E53935"}},{scope:"entity.other.attribute-name",settings:{foreground:"#9C3EDA"}},{scope:"punctuation.definition.entity.html",settings:{foreground:"#90A4AE"}},{scope:"markup.heading",settings:{foreground:"#39ADB5"}},{scope:"text.html.markdown meta.link.inline, meta.link.reference",settings:{foreground:"#E53935"}},{scope:"text.html.markdown beginning.punctuation.definition.list",settings:{foreground:"#39ADB5"}},{scope:"markup.italic",settings:{fontStyle:"italic",foreground:"#E53935"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#E53935"}},{scope:"markup.bold markup.italic, markup.italic markup.bold",settings:{fontStyle:"italic bold",foreground:"#E53935"}},{scope:"markup.fenced_code.block.markdown punctuation.definition.markdown",settings:{foreground:"#91B859"}},{scope:"markup.inline.raw.string.markdown",settings:{foreground:"#91B859"}},{scope:"keyword.other.definition.ini",settings:{foreground:"#E53935"}},{scope:"entity.name.section.group-title.ini",settings:{foreground:"#39ADB5"}},{scope:"source.cs meta.class.identifier storage.type",settings:{foreground:"#E2931D"}},{scope:"source.cs meta.method.identifier entity.name.function",settings:{foreground:"#E53935"}},{scope:"source.cs meta.method-call meta.method, source.cs entity.name.function",settings:{foreground:"#6182B8"}},{scope:"source.cs storage.type",settings:{foreground:"#E2931D"}},{scope:"source.cs meta.method.return-type",settings:{foreground:"#E2931D"}},{scope:"source.cs meta.preprocessor",settings:{foreground:"#90A4AE"}},{scope:"source.cs entity.name.type.namespace",settings:{foreground:"#90A4AE"}},{scope:"meta.jsx.children, SXNested",settings:{foreground:"#90A4AE"}},{scope:"support.class.component",settings:{foreground:"#E2931D"}},{scope:"source.cpp meta.block variable.other",settings:{foreground:"#90A4AE"}},{scope:"source.python meta.member.access.python",settings:{foreground:"#E53935"}},{scope:"source.python meta.function-call.python, meta.function-call.arguments",settings:{foreground:"#6182B8"}},{scope:"meta.block",settings:{foreground:"#E53935"}},{scope:"entity.name.function.call",settings:{foreground:"#6182B8"}},{scope:"source.php support.other.namespace, source.php meta.use support.class",settings:{foreground:"#90A4AE"}},{scope:"constant.keyword",settings:{fontStyle:"italic",foreground:"#39ADB5"}},{scope:"entity.name.function",settings:{foreground:"#6182B8"}},{settings:{background:"#FAFAFA",foreground:"#90A4AE"}},{scope:["constant.other.placeholder"],settings:{foreground:"#E53935"}},{scope:["markup.deleted"],settings:{foreground:"#E53935"}},{scope:["markup.inserted"],settings:{foreground:"#91B859"}},{scope:["markup.underline"],settings:{fontStyle:"underline"}},{scope:["keyword.control"],settings:{fontStyle:"italic",foreground:"#39ADB5"}},{scope:["variable.parameter"],settings:{fontStyle:"italic"}},{scope:["variable.parameter.function.language.special.self.python"],settings:{fontStyle:"italic",foreground:"#E53935"}},{scope:["constant.character.format.placeholder.other.python"],settings:{foreground:"#F76D47"}},{scope:["markup.quote"],settings:{fontStyle:"italic",foreground:"#39ADB5"}},{scope:["markup.fenced_code.block"],settings:{foreground:"#90A4AE90"}},{scope:["punctuation.definition.quote"],settings:{foreground:"#FF5370"}},{scope:["meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#9C3EDA"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#E2931D"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#F76D47"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#E53935"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#916b53"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#6182B8"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#FF5370"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#9C3EDA"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#91B859"}}],type:"light"});const materialThemeLighterBRE1Bis3=Object.freeze(Object.defineProperty({__proto__:null,default:e$P},Symbol.toStringTag,{value:"Module"}));var e$O=Object.freeze({colors:{"activityBar.activeBorder":"#80CBC4","activityBar.background":"#292D3E","activityBar.border":"#292D3E60","activityBar.dropBackground":"#f0717880","activityBar.foreground":"#babed8","activityBarBadge.background":"#80CBC4","activityBarBadge.foreground":"#000000","badge.background":"#00000030","badge.foreground":"#676E95","breadcrumb.activeSelectionForeground":"#80CBC4","breadcrumb.background":"#292D3E","breadcrumb.focusForeground":"#babed8","breadcrumb.foreground":"#676E95","breadcrumbPicker.background":"#292D3E","button.background":"#717CB450","button.foreground":"#ffffff","debugConsole.errorForeground":"#f07178","debugConsole.infoForeground":"#89DDFF","debugConsole.warningForeground":"#FFCB6B","debugToolBar.background":"#292D3E","diffEditor.insertedTextBackground":"#89DDFF20","diffEditor.removedTextBackground":"#ff9cac20","dropdown.background":"#292D3E","dropdown.border":"#FFFFFF10","editor.background":"#292D3E","editor.findMatchBackground":"#000000","editor.findMatchBorder":"#80CBC4","editor.findMatchHighlight":"#babed8","editor.findMatchHighlightBackground":"#00000050","editor.findMatchHighlightBorder":"#ffffff30","editor.findRangeHighlightBackground":"#FFCB6B30","editor.foreground":"#babed8","editor.lineHighlightBackground":"#00000050","editor.lineHighlightBorder":"#00000000","editor.rangeHighlightBackground":"#FFFFFF0d","editor.selectionBackground":"#717CB450","editor.selectionHighlightBackground":"#FFCC0020","editor.wordHighlightBackground":"#ff9cac30","editor.wordHighlightStrongBackground":"#C3E88D30","editorBracketMatch.background":"#292D3E","editorBracketMatch.border":"#FFCC0050","editorCursor.foreground":"#FFCC00","editorError.foreground":"#f0717870","editorGroup.border":"#00000030","editorGroup.dropBackground":"#f0717880","editorGroup.focusedEmptyBorder":"#f07178","editorGroupHeader.tabsBackground":"#292D3E","editorGutter.addedBackground":"#C3E88D60","editorGutter.deletedBackground":"#f0717860","editorGutter.modifiedBackground":"#82AAFF60","editorHoverWidget.background":"#292D3E","editorHoverWidget.border":"#FFFFFF10","editorIndentGuide.activeBackground":"#4E5579","editorIndentGuide.background":"#4E557970","editorInfo.foreground":"#82AAFF70","editorLineNumber.activeForeground":"#676E95","editorLineNumber.foreground":"#3A3F58","editorLink.activeForeground":"#babed8","editorMarkerNavigation.background":"#babed805","editorOverviewRuler.border":"#292D3E","editorOverviewRuler.errorForeground":"#f0717840","editorOverviewRuler.findMatchForeground":"#80CBC4","editorOverviewRuler.infoForeground":"#82AAFF40","editorOverviewRuler.warningForeground":"#FFCB6B40","editorRuler.foreground":"#4E5579","editorSuggestWidget.background":"#292D3E","editorSuggestWidget.border":"#FFFFFF10","editorSuggestWidget.foreground":"#babed8","editorSuggestWidget.highlightForeground":"#80CBC4","editorSuggestWidget.selectedBackground":"#00000050","editorWarning.foreground":"#FFCB6B70","editorWhitespace.foreground":"#babed840","editorWidget.background":"#292D3E","editorWidget.border":"#80CBC4","editorWidget.resizeBorder":"#80CBC4","extensionBadge.remoteForeground":"#babed8","extensionButton.prominentBackground":"#C3E88D90","extensionButton.prominentForeground":"#babed8","extensionButton.prominentHoverBackground":"#C3E88D",focusBorder:"#FFFFFF00",foreground:"#babed8","gitDecoration.conflictingResourceForeground":"#FFCB6B90","gitDecoration.deletedResourceForeground":"#f0717890","gitDecoration.ignoredResourceForeground":"#676E9590","gitDecoration.modifiedResourceForeground":"#82AAFF90","gitDecoration.untrackedResourceForeground":"#C3E88D90","input.background":"#333747","input.border":"#FFFFFF10","input.foreground":"#babed8","input.placeholderForeground":"#babed860","inputOption.activeBackground":"#babed830","inputOption.activeBorder":"#babed830","inputValidation.errorBorder":"#f07178","inputValidation.infoBorder":"#82AAFF","inputValidation.warningBorder":"#FFCB6B","list.activeSelectionBackground":"#292D3E","list.activeSelectionForeground":"#80CBC4","list.dropBackground":"#f0717880","list.focusBackground":"#babed820","list.focusForeground":"#babed8","list.highlightForeground":"#80CBC4","list.hoverBackground":"#292D3E","list.hoverForeground":"#FFFFFF","list.inactiveSelectionBackground":"#00000030","list.inactiveSelectionForeground":"#80CBC4","listFilterWidget.background":"#00000030","listFilterWidget.noMatchesOutline":"#00000030","listFilterWidget.outline":"#00000030","menu.background":"#292D3E","menu.foreground":"#babed8","menu.selectionBackground":"#00000050","menu.selectionBorder":"#00000030","menu.selectionForeground":"#80CBC4","menu.separatorBackground":"#babed8","menubar.selectionBackground":"#00000030","menubar.selectionBorder":"#00000030","menubar.selectionForeground":"#80CBC4","notebook.focusedCellBorder":"#80CBC4","notebook.inactiveFocusedCellBorder":"#80CBC450","notificationLink.foreground":"#80CBC4","notifications.background":"#292D3E","notifications.foreground":"#babed8","panel.background":"#292D3E","panel.border":"#292D3E60","panel.dropBackground":"#babed8","panelTitle.activeBorder":"#80CBC4","panelTitle.activeForeground":"#FFFFFF","panelTitle.inactiveForeground":"#babed8","peekView.border":"#00000030","peekViewEditor.background":"#babed805","peekViewEditor.matchHighlightBackground":"#717CB450","peekViewEditorGutter.background":"#babed805","peekViewResult.background":"#babed805","peekViewResult.matchHighlightBackground":"#717CB450","peekViewResult.selectionBackground":"#676E9570","peekViewTitle.background":"#babed805","peekViewTitleDescription.foreground":"#babed860","pickerGroup.border":"#FFFFFF1a","pickerGroup.foreground":"#80CBC4","progressBar.background":"#80CBC4","quickInput.background":"#292D3E","quickInput.foreground":"#676E95","quickInput.list.focusBackground":"#babed820","sash.hoverBorder":"#80CBC450","scrollbar.shadow":"#00000030","scrollbarSlider.activeBackground":"#80CBC4","scrollbarSlider.background":"#A6ACCD20","scrollbarSlider.hoverBackground":"#A6ACCD10","selection.background":"#00000080","settings.checkboxBackground":"#292D3E","settings.checkboxForeground":"#babed8","settings.dropdownBackground":"#292D3E","settings.dropdownForeground":"#babed8","settings.headerForeground":"#80CBC4","settings.modifiedItemIndicator":"#80CBC4","settings.numberInputBackground":"#292D3E","settings.numberInputForeground":"#babed8","settings.textInputBackground":"#292D3E","settings.textInputForeground":"#babed8","sideBar.background":"#292D3E","sideBar.border":"#292D3E60","sideBar.foreground":"#676E95","sideBarSectionHeader.background":"#292D3E","sideBarSectionHeader.border":"#292D3E60","sideBarTitle.foreground":"#babed8","statusBar.background":"#292D3E","statusBar.border":"#292D3E60","statusBar.debuggingBackground":"#C792EA","statusBar.debuggingForeground":"#ffffff","statusBar.foreground":"#676E95","statusBar.noFolderBackground":"#292D3E","statusBarItem.activeBackground":"#f0717880","statusBarItem.hoverBackground":"#676E9520","statusBarItem.remoteBackground":"#80CBC4","statusBarItem.remoteForeground":"#000000","tab.activeBackground":"#292D3E","tab.activeBorder":"#80CBC4","tab.activeForeground":"#FFFFFF","tab.activeModifiedBorder":"#676E95","tab.border":"#292D3E","tab.inactiveBackground":"#292D3E","tab.inactiveForeground":"#676E95","tab.inactiveModifiedBorder":"#904348","tab.unfocusedActiveBorder":"#676E95","tab.unfocusedActiveForeground":"#babed8","tab.unfocusedActiveModifiedBorder":"#c05a60","tab.unfocusedInactiveModifiedBorder":"#904348","terminal.ansiBlack":"#000000","terminal.ansiBlue":"#82AAFF","terminal.ansiBrightBlack":"#676E95","terminal.ansiBrightBlue":"#82AAFF","terminal.ansiBrightCyan":"#89DDFF","terminal.ansiBrightGreen":"#C3E88D","terminal.ansiBrightMagenta":"#C792EA","terminal.ansiBrightRed":"#f07178","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#FFCB6B","terminal.ansiCyan":"#89DDFF","terminal.ansiGreen":"#C3E88D","terminal.ansiMagenta":"#C792EA","terminal.ansiRed":"#f07178","terminal.ansiWhite":"#ffffff","terminal.ansiYellow":"#FFCB6B","terminalCursor.background":"#000000","terminalCursor.foreground":"#FFCB6B","textLink.activeForeground":"#babed8","textLink.foreground":"#80CBC4","titleBar.activeBackground":"#292D3E","titleBar.activeForeground":"#babed8","titleBar.border":"#292D3E60","titleBar.inactiveBackground":"#292D3E","titleBar.inactiveForeground":"#676E95","tree.indentGuidesStroke":"#4E5579","widget.shadow":"#00000030"},displayName:"Material Theme Palenight",name:"material-theme-palenight",semanticHighlighting:!0,tokenColors:[{settings:{background:"#292D3E",foreground:"#babed8"}},{scope:"string",settings:{foreground:"#C3E88D"}},{scope:"punctuation, constant.other.symbol",settings:{foreground:"#89DDFF"}},{scope:"constant.character.escape, text.html constant.character.entity.named",settings:{foreground:"#babed8"}},{scope:"constant.language.boolean",settings:{foreground:"#ff9cac"}},{scope:"constant.numeric",settings:{foreground:"#F78C6C"}},{scope:"variable, variable.parameter, support.variable, variable.language, support.constant, meta.definition.variable entity.name.function, meta.function-call.arguments",settings:{foreground:"#babed8"}},{scope:"keyword.other",settings:{foreground:"#F78C6C"}},{scope:"keyword, modifier, variable.language.this, support.type.object, constant.language",settings:{foreground:"#89DDFF"}},{scope:"entity.name.function, support.function",settings:{foreground:"#82AAFF"}},{scope:"storage.type, storage.modifier, storage.control",settings:{foreground:"#C792EA"}},{scope:"support.module, support.node",settings:{fontStyle:"italic",foreground:"#f07178"}},{scope:"support.type, constant.other.key",settings:{foreground:"#FFCB6B"}},{scope:"entity.name.type, entity.other.inherited-class, entity.other",settings:{foreground:"#FFCB6B"}},{scope:"comment",settings:{fontStyle:"italic",foreground:"#676E95"}},{scope:"comment punctuation.definition.comment, string.quoted.docstring",settings:{fontStyle:"italic",foreground:"#676E95"}},{scope:"punctuation",settings:{foreground:"#89DDFF"}},{scope:"entity.name, entity.name.type.class, support.type, support.class, meta.use",settings:{foreground:"#FFCB6B"}},{scope:"variable.object.property, meta.field.declaration entity.name.function",settings:{foreground:"#f07178"}},{scope:"meta.definition.method entity.name.function",settings:{foreground:"#f07178"}},{scope:"meta.function entity.name.function",settings:{foreground:"#82AAFF"}},{scope:"template.expression.begin, template.expression.end, punctuation.definition.template-expression.begin, punctuation.definition.template-expression.end",settings:{foreground:"#89DDFF"}},{scope:"meta.embedded, source.groovy.embedded, meta.template.expression",settings:{foreground:"#babed8"}},{scope:"entity.name.tag.yaml",settings:{foreground:"#f07178"}},{scope:"meta.object-literal.key, meta.object-literal.key string, support.type.property-name.json",settings:{foreground:"#f07178"}},{scope:"constant.language.json",settings:{foreground:"#89DDFF"}},{scope:"entity.other.attribute-name.class",settings:{foreground:"#FFCB6B"}},{scope:"entity.other.attribute-name.id",settings:{foreground:"#F78C6C"}},{scope:"source.css entity.name.tag",settings:{foreground:"#FFCB6B"}},{scope:"support.type.property-name.css",settings:{foreground:"#B2CCD6"}},{scope:"meta.tag, punctuation.definition.tag",settings:{foreground:"#89DDFF"}},{scope:"entity.name.tag",settings:{foreground:"#f07178"}},{scope:"entity.other.attribute-name",settings:{foreground:"#C792EA"}},{scope:"punctuation.definition.entity.html",settings:{foreground:"#babed8"}},{scope:"markup.heading",settings:{foreground:"#89DDFF"}},{scope:"text.html.markdown meta.link.inline, meta.link.reference",settings:{foreground:"#f07178"}},{scope:"text.html.markdown beginning.punctuation.definition.list",settings:{foreground:"#89DDFF"}},{scope:"markup.italic",settings:{fontStyle:"italic",foreground:"#f07178"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#f07178"}},{scope:"markup.bold markup.italic, markup.italic markup.bold",settings:{fontStyle:"italic bold",foreground:"#f07178"}},{scope:"markup.fenced_code.block.markdown punctuation.definition.markdown",settings:{foreground:"#C3E88D"}},{scope:"markup.inline.raw.string.markdown",settings:{foreground:"#C3E88D"}},{scope:"keyword.other.definition.ini",settings:{foreground:"#f07178"}},{scope:"entity.name.section.group-title.ini",settings:{foreground:"#89DDFF"}},{scope:"source.cs meta.class.identifier storage.type",settings:{foreground:"#FFCB6B"}},{scope:"source.cs meta.method.identifier entity.name.function",settings:{foreground:"#f07178"}},{scope:"source.cs meta.method-call meta.method, source.cs entity.name.function",settings:{foreground:"#82AAFF"}},{scope:"source.cs storage.type",settings:{foreground:"#FFCB6B"}},{scope:"source.cs meta.method.return-type",settings:{foreground:"#FFCB6B"}},{scope:"source.cs meta.preprocessor",settings:{foreground:"#676E95"}},{scope:"source.cs entity.name.type.namespace",settings:{foreground:"#babed8"}},{scope:"meta.jsx.children, SXNested",settings:{foreground:"#babed8"}},{scope:"support.class.component",settings:{foreground:"#FFCB6B"}},{scope:"source.cpp meta.block variable.other",settings:{foreground:"#babed8"}},{scope:"source.python meta.member.access.python",settings:{foreground:"#f07178"}},{scope:"source.python meta.function-call.python, meta.function-call.arguments",settings:{foreground:"#82AAFF"}},{scope:"meta.block",settings:{foreground:"#f07178"}},{scope:"entity.name.function.call",settings:{foreground:"#82AAFF"}},{scope:"source.php support.other.namespace, source.php meta.use support.class",settings:{foreground:"#babed8"}},{scope:"constant.keyword",settings:{fontStyle:"italic",foreground:"#89DDFF"}},{scope:"entity.name.function",settings:{foreground:"#82AAFF"}},{settings:{background:"#292D3E",foreground:"#babed8"}},{scope:["constant.other.placeholder"],settings:{foreground:"#f07178"}},{scope:["markup.deleted"],settings:{foreground:"#f07178"}},{scope:["markup.inserted"],settings:{foreground:"#C3E88D"}},{scope:["markup.underline"],settings:{fontStyle:"underline"}},{scope:["keyword.control"],settings:{fontStyle:"italic",foreground:"#89DDFF"}},{scope:["variable.parameter"],settings:{fontStyle:"italic"}},{scope:["variable.parameter.function.language.special.self.python"],settings:{fontStyle:"italic",foreground:"#f07178"}},{scope:["constant.character.format.placeholder.other.python"],settings:{foreground:"#F78C6C"}},{scope:["markup.quote"],settings:{fontStyle:"italic",foreground:"#89DDFF"}},{scope:["markup.fenced_code.block"],settings:{foreground:"#babed890"}},{scope:["punctuation.definition.quote"],settings:{foreground:"#ff9cac"}},{scope:["meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#C792EA"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#FFCB6B"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#F78C6C"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#f07178"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#916b53"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#82AAFF"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#ff9cac"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#C792EA"}},{scope:["meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json meta.structure.dictionary.value.json meta.structure.dictionary.json support.type.property-name.json"],settings:{foreground:"#C3E88D"}}],type:"dark"});const materialThemePalenightDhz61Tee=Object.freeze(Object.defineProperty({__proto__:null,default:e$O},Symbol.toStringTag,{value:"Module"})),n$D=Object.freeze({displayName:"JSON",name:"json",patterns:[{include:"#value"}],repository:{array:{begin:"\\[",beginCaptures:{0:{name:"punctuation.definition.array.begin.json"}},end:"\\]",endCaptures:{0:{name:"punctuation.definition.array.end.json"}},name:"meta.structure.array.json",patterns:[{include:"#value"},{match:",",name:"punctuation.separator.array.json"},{match:"[^\\s\\]]",name:"invalid.illegal.expected-array-separator.json"}]},comments:{patterns:[{begin:"/\\*\\*(?!/)",captures:{0:{name:"punctuation.definition.comment.json"}},end:"\\*/",name:"comment.block.documentation.json"},{begin:"/\\*",captures:{0:{name:"punctuation.definition.comment.json"}},end:"\\*/",name:"comment.block.json"},{captures:{1:{name:"punctuation.definition.comment.json"}},match:"(//).*$\\n?",name:"comment.line.double-slash.js"}]},constant:{match:"\\b(?:true|false|null)\\b",name:"constant.language.json"},number:{match:`(?x)
|
|
205
205
|
-?
|
|
206
206
|
(?:
|
|
207
207
|
0
|