@kong/markdown 1.3.1 → 1.3.2
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-CRNu716j.js → arc-8cjaq9av.js} +2 -2
- package/dist/{arc-CRNu716j.js.map → arc-8cjaq9av.js.map} +1 -1
- package/dist/{blockDiagram-6b2b5046-D2MkRD_j.js → blockDiagram-6b2b5046-CXMFsTaq.js} +6 -6
- package/dist/{blockDiagram-6b2b5046-D2MkRD_j.js.map → blockDiagram-6b2b5046-CXMFsTaq.js.map} +1 -1
- package/dist/{c4Diagram-b947cdbb-DCrk3XXk.js → c4Diagram-b947cdbb-vwALH1WH.js} +3 -3
- package/dist/{c4Diagram-b947cdbb-DCrk3XXk.js.map → c4Diagram-b947cdbb-vwALH1WH.js.map} +1 -1
- package/dist/channel-CiebjdPJ.js +6 -0
- package/dist/{channel-AStNV-TO.js.map → channel-CiebjdPJ.js.map} +1 -1
- package/dist/{classDiagram-35230388-xHVnplkU.js → classDiagram-35230388-CTxUL5uA.js} +6 -6
- package/dist/{classDiagram-35230388-xHVnplkU.js.map → classDiagram-35230388-CTxUL5uA.js.map} +1 -1
- package/dist/{classDiagram-v2-412acd34-Df3TOSJO.js → classDiagram-v2-412acd34-BQSUu5Vr.js} +6 -6
- package/dist/{classDiagram-v2-412acd34-Df3TOSJO.js.map → classDiagram-v2-412acd34-BQSUu5Vr.js.map} +1 -1
- package/dist/clone-AVwa-Pmf.js +9 -0
- package/dist/{clone-BEwR0ae8.js.map → clone-AVwa-Pmf.js.map} +1 -1
- package/dist/{createText-423428c9-CQXqrQGV.js → createText-423428c9-C_xMZUNE.js} +2 -2
- package/dist/{createText-423428c9-CQXqrQGV.js.map → createText-423428c9-C_xMZUNE.js.map} +1 -1
- package/dist/{edges-d417c7a0-D2l0zXjx.js → edges-d417c7a0-9M_sA3AX.js} +4 -4
- package/dist/{edges-d417c7a0-D2l0zXjx.js.map → edges-d417c7a0-9M_sA3AX.js.map} +1 -1
- package/dist/{erDiagram-0ea73325-CGortXf-.js → erDiagram-0ea73325-LCVGPMbf.js} +5 -5
- package/dist/{erDiagram-0ea73325-CGortXf-.js.map → erDiagram-0ea73325-LCVGPMbf.js.map} +1 -1
- package/dist/{flowDb-d35e309a-B37o2qfF.js → flowDb-d35e309a-EwD5UOTn.js} +2 -2
- package/dist/{flowDb-d35e309a-B37o2qfF.js.map → flowDb-d35e309a-EwD5UOTn.js.map} +1 -1
- package/dist/{flowDiagram-d949d7c1-CZWR-qRX.js → flowDiagram-d949d7c1-B8fV1Bgb.js} +7 -7
- package/dist/{flowDiagram-d949d7c1-CZWR-qRX.js.map → flowDiagram-d949d7c1-B8fV1Bgb.js.map} +1 -1
- package/dist/{flowDiagram-v2-49332944-OmkAsRSo.js → flowDiagram-v2-49332944-B1NmgnBY.js} +6 -6
- package/dist/{flowDiagram-v2-49332944-OmkAsRSo.js.map → flowDiagram-v2-49332944-B1NmgnBY.js.map} +1 -1
- package/dist/{flowchart-elk-definition-27cc417a-DvRAXt5Q.js → flowchart-elk-definition-27cc417a-uJBgGb6w.js} +5 -5
- package/dist/{flowchart-elk-definition-27cc417a-DvRAXt5Q.js.map → flowchart-elk-definition-27cc417a-uJBgGb6w.js.map} +1 -1
- package/dist/{ganttDiagram-5c869e3b-CFIXQjia.js → ganttDiagram-5c869e3b-CP3jCxVz.js} +3 -3
- package/dist/{ganttDiagram-5c869e3b-CFIXQjia.js.map → ganttDiagram-5c869e3b-CP3jCxVz.js.map} +1 -1
- package/dist/{gitGraphDiagram-b9d81de9-dYIPtz9A.js → gitGraphDiagram-b9d81de9-C0mDyUJG.js} +2 -2
- package/dist/{gitGraphDiagram-b9d81de9-dYIPtz9A.js.map → gitGraphDiagram-b9d81de9-C0mDyUJG.js.map} +1 -1
- package/dist/{graph-DnI6iIW-.js → graph-D8osM22K.js} +2 -2
- package/dist/{graph-DnI6iIW-.js.map → graph-D8osM22K.js.map} +1 -1
- package/dist/{index-8fae9850-BrJpYy1U.js → index-8fae9850-LWne7Y_5.js} +7 -7
- package/dist/{index-8fae9850-BrJpYy1U.js.map → index-8fae9850-LWne7Y_5.js.map} +1 -1
- package/dist/{index-BdQ-n4gH.js → index-H0_TiiZ2.js} +24 -24
- package/dist/{index-BdQ-n4gH.js.map → index-H0_TiiZ2.js.map} +1 -1
- package/dist/{infoDiagram-db7b18fc-D02OQKc3.js → infoDiagram-db7b18fc-BUwIw4xq.js} +2 -2
- package/dist/{infoDiagram-db7b18fc-D02OQKc3.js.map → infoDiagram-db7b18fc-BUwIw4xq.js.map} +1 -1
- package/dist/{journeyDiagram-d5636530-DthrqUFi.js → journeyDiagram-d5636530-BcAzfkwS.js} +4 -4
- package/dist/{journeyDiagram-d5636530-DthrqUFi.js.map → journeyDiagram-d5636530-BcAzfkwS.js.map} +1 -1
- package/dist/kong-markdown.es.js +1 -1
- package/dist/kong-markdown.umd.js +1 -1
- package/dist/{layout-OFztbzEY.js → layout-ZVjoo1C9.js} +3 -3
- package/dist/{layout-OFztbzEY.js.map → layout-ZVjoo1C9.js.map} +1 -1
- package/dist/{line-BSAYYjII.js → line-Cw7WGRye.js} +2 -2
- package/dist/{line-BSAYYjII.js.map → line-Cw7WGRye.js.map} +1 -1
- package/dist/{linear-D6IIV3ES.js → linear-CM8CQPYx.js} +2 -2
- package/dist/{linear-D6IIV3ES.js.map → linear-CM8CQPYx.js.map} +1 -1
- package/dist/{mindmap-definition-377f8f1f-CP5Ij5zq.js → mindmap-definition-377f8f1f-CZ-84IMz.js} +3 -3
- package/dist/{mindmap-definition-377f8f1f-CP5Ij5zq.js.map → mindmap-definition-377f8f1f-CZ-84IMz.js.map} +1 -1
- package/dist/{pieDiagram-b0208e96-CEy_a3qY.js → pieDiagram-b0208e96-DWGdunAA.js} +3 -3
- package/dist/{pieDiagram-b0208e96-CEy_a3qY.js.map → pieDiagram-b0208e96-DWGdunAA.js.map} +1 -1
- package/dist/{quadrantDiagram-0332be45-D1m3bfLE.js → quadrantDiagram-0332be45-CcjioNyx.js} +3 -3
- package/dist/{quadrantDiagram-0332be45-D1m3bfLE.js.map → quadrantDiagram-0332be45-CcjioNyx.js.map} +1 -1
- package/dist/{requirementDiagram-bf7890df-BXOuPT18.js → requirementDiagram-bf7890df-Bhse_3cX.js} +5 -5
- package/dist/{requirementDiagram-bf7890df-BXOuPT18.js.map → requirementDiagram-bf7890df-Bhse_3cX.js.map} +1 -1
- package/dist/{sankeyDiagram-0acdec17-C_WfLS-d.js → sankeyDiagram-0acdec17-mp2WREQF.js} +2 -2
- package/dist/{sankeyDiagram-0acdec17-C_WfLS-d.js.map → sankeyDiagram-0acdec17-mp2WREQF.js.map} +1 -1
- package/dist/{sequenceDiagram-c18d009d-xoFAj6ID.js → sequenceDiagram-c18d009d-C2BOoE0J.js} +3 -3
- package/dist/{sequenceDiagram-c18d009d-xoFAj6ID.js.map → sequenceDiagram-c18d009d-C2BOoE0J.js.map} +1 -1
- package/dist/{stateDiagram-43596fc0-Dm1AkWdr.js → stateDiagram-43596fc0-DcFmBqVD.js} +6 -6
- package/dist/{stateDiagram-43596fc0-Dm1AkWdr.js.map → stateDiagram-43596fc0-DcFmBqVD.js.map} +1 -1
- package/dist/{stateDiagram-v2-2ead4f9c-X0XO1e_0.js → stateDiagram-v2-2ead4f9c-B0kAUaOw.js} +6 -6
- package/dist/{stateDiagram-v2-2ead4f9c-X0XO1e_0.js.map → stateDiagram-v2-2ead4f9c-B0kAUaOw.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{styles-6860f46c-g9ltY6y9.js → styles-6860f46c-CCfIsYmF.js} +2 -2
- package/dist/{styles-6860f46c-g9ltY6y9.js.map → styles-6860f46c-CCfIsYmF.js.map} +1 -1
- package/dist/{styles-7383a064-D9pZsmll.js → styles-7383a064-Z66HBsPQ.js} +5 -5
- package/dist/{styles-7383a064-D9pZsmll.js.map → styles-7383a064-Z66HBsPQ.js.map} +1 -1
- package/dist/{styles-b2c874b6-2MSTrrjT.js → styles-b2c874b6-vUP-zip8.js} +2 -2
- package/dist/{styles-b2c874b6-2MSTrrjT.js.map → styles-b2c874b6-vUP-zip8.js.map} +1 -1
- package/dist/{svgDrawCommon-0ee1b4e9-BiqdHuRv.js → svgDrawCommon-0ee1b4e9-BN89CkAa.js} +2 -2
- package/dist/{svgDrawCommon-0ee1b4e9-BiqdHuRv.js.map → svgDrawCommon-0ee1b4e9-BN89CkAa.js.map} +1 -1
- package/dist/{timeline-definition-d977decf-J4adcb4f.js → timeline-definition-d977decf-hPFfx-Ol.js} +3 -3
- package/dist/{timeline-definition-d977decf-J4adcb4f.js.map → timeline-definition-d977decf-hPFfx-Ol.js.map} +1 -1
- package/dist/{xychartDiagram-e50adddc-COrJQ_9O.js → xychartDiagram-e50adddc-rKOcwKj9.js} +5 -5
- package/dist/{xychartDiagram-e50adddc-COrJQ_9O.js.map → xychartDiagram-e50adddc-rKOcwKj9.js.map} +1 -1
- package/package.json +1 -1
- package/dist/channel-AStNV-TO.js +0 -6
- package/dist/clone-BEwR0ae8.js +0 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(Gd,Tu){typeof exports=="object"&&typeof module<"u"?Tu(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],Tu):(Gd=typeof globalThis<"u"?globalThis:Gd||self,Tu(Gd.KongMarkdown={},Gd.Vue))})(this,function(exports,vue$2){"use strict";var O6t=Object.defineProperty;var j6t=(Gd,Tu,Ap)=>Tu in Gd?O6t(Gd,Tu,{enumerable:!0,configurable:!0,writable:!0,value:Ap}):Gd[Tu]=Ap;var kn=(Gd,Tu,Ap)=>(j6t(Gd,typeof Tu!="symbol"?Tu+"":Tu,Ap),Ap);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(g){return vue$2.getCurrentScope()?(vue$2.onScopeDispose(g),!0):!1}function toValue(g){return typeof g=="function"?g():vue$2.unref(g)}const isClient=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const toString$7=Object.prototype.toString,isObject$b=g=>toString$7.call(g)==="[object Object]",noop$5=()=>{};function createFilterWrapper(g,_){function E(...k){return new Promise((I,S)=>{Promise.resolve(g(()=>_.apply(this,k),{fn:_,thisArg:this,args:k})).then(I).catch(S)})}return E}function debounceFilter(g,_={}){let E,k,I=noop$5;const S=$=>{clearTimeout($),I(),I=noop$5};return $=>{const M=toValue(g),R=toValue(_.maxWait);return E&&S(E),M<=0||R!==void 0&&R<=0?(k&&(S(k),k=null),Promise.resolve($())):new Promise((j,q)=>{I=_.rejectOnCancel?q:j,R&&!k&&(k=setTimeout(()=>{E&&S(E),k=null,j($())},R)),E=setTimeout(()=>{k&&S(k),k=null,j($())},M)})}}function throttleFilter(...g){let _=0,E,k=!0,I=noop$5,S,D,$,M,R;!vue$2.isRef(g[0])&&typeof g[0]=="object"?{delay:D,trailing:$=!0,leading:M=!0,rejectOnCancel:R=!1}=g[0]:[D,$=!0,M=!0,R=!1]=g;const j=()=>{E&&(clearTimeout(E),E=void 0,I(),I=noop$5)};return G=>{const U=toValue(D),Y=Date.now()-_,V=()=>S=G();return j(),U<=0?(_=Date.now(),V()):(Y>U&&(M||!k)?(_=Date.now(),V()):$&&(S=new Promise((te,ne)=>{I=R?ne:te,E=setTimeout(()=>{_=Date.now(),k=!0,te(V()),j()},Math.max(0,U-Y))})),!M&&!E&&(E=setTimeout(()=>k=!0,U)),k=!1,S)}}function getLifeCycleTarget(g){return g||vue$2.getCurrentInstance()}function useDebounceFn(g,_=200,E={}){return createFilterWrapper(debounceFilter(_,E),g)}function useThrottleFn(g,_=200,E=!1,k=!0,I=!1){return createFilterWrapper(throttleFilter(_,E,k,I),g)}function tryOnMounted(g,_=!0,E){getLifeCycleTarget()?vue$2.onMounted(g,E):_?g():vue$2.nextTick(g)}function unrefElement(g){var _;const E=toValue(g);return(_=E==null?void 0:E.$el)!=null?_:E}const defaultWindow=isClient?window:void 0;function useEventListener(...g){let _,E,k,I;if(typeof g[0]=="string"||Array.isArray(g[0])?([E,k,I]=g,_=defaultWindow):[_,E,k,I]=g,!_)return noop$5;Array.isArray(E)||(E=[E]),Array.isArray(k)||(k=[k]);const S=[],D=()=>{S.forEach(j=>j()),S.length=0},$=(j,q,G,U)=>(j.addEventListener(q,G,U),()=>j.removeEventListener(q,G,U)),M=vue$2.watch(()=>[unrefElement(_),toValue(I)],([j,q])=>{if(D(),!j)return;const G=isObject$b(q)?{...q}:q;S.push(...E.flatMap(U=>k.map(Y=>$(j,U,Y,G))))},{immediate:!0,flush:"post"}),R=()=>{M(),D()};return tryOnScopeDispose(R),R}function useActiveElement(g={}){var _;const{window:E=defaultWindow,deep:k=!0}=g,I=(_=g.document)!=null?_:E==null?void 0:E.document,S=()=>{var M;let R=I==null?void 0:I.activeElement;if(k)for(;R!=null&&R.shadowRoot;)R=(M=R==null?void 0:R.shadowRoot)==null?void 0:M.activeElement;return R},D=vue$2.ref(),$=()=>{D.value=S()};return E&&(useEventListener(E,"blur",M=>{M.relatedTarget===null&&$()},!0),useEventListener(E,"focus",$,!0)),$(),D}function useMounted(){const g=vue$2.ref(!1),_=vue$2.getCurrentInstance();return _&&vue$2.onMounted(()=>{g.value=!0},_),g}function useSupported(g){const _=useMounted();return vue$2.computed(()=>(_.value,!!g()))}function useMediaQuery(g,_={}){const{window:E=defaultWindow}=_,k=useSupported(()=>E&&"matchMedia"in E&&typeof E.matchMedia=="function");let I;const S=vue$2.ref(!1),D=R=>{S.value=R.matches},$=()=>{I&&("removeEventListener"in I?I.removeEventListener("change",D):I.removeListener(D))},M=vue$2.watchEffect(()=>{k.value&&($(),I=E.matchMedia(toValue(g)),"addEventListener"in I?I.addEventListener("change",D):I.addListener(D),S.value=I.matches)});return tryOnScopeDispose(()=>{M(),$(),I=void 0}),S}const ARRIVED_STATE_THRESHOLD_PIXELS=1;function useScroll(g,_={}){const{throttle:E=0,idle:k=200,onStop:I=noop$5,onScroll:S=noop$5,offset:D={left:0,right:0,top:0,bottom:0},eventListenerOptions:$={capture:!1,passive:!0},behavior:M="auto",window:R=defaultWindow,onError:j=ue=>{console.error(ue)}}=_,q=vue$2.ref(0),G=vue$2.ref(0),U=vue$2.computed({get(){return q.value},set(ue){V(ue,void 0)}}),Y=vue$2.computed({get(){return G.value},set(ue){V(void 0,ue)}});function V(ue,ge){var Ae,ye,ie;if(!R)return;const we=toValue(g);we&&((ie=we instanceof Document?R.document.body:we)==null||ie.scrollTo({top:(Ae=toValue(ge))!=null?Ae:Y.value,left:(ye=toValue(ue))!=null?ye:U.value,behavior:toValue(M)}))}const te=vue$2.ref(!1),ne=vue$2.reactive({left:!0,right:!1,top:!0,bottom:!1}),ae=vue$2.reactive({left:!1,right:!1,top:!1,bottom:!1}),ce=ue=>{te.value&&(te.value=!1,ae.left=!1,ae.right=!1,ae.top=!1,ae.bottom=!1,I(ue))},de=useDebounceFn(ce,E+k),pe=ue=>{var ge;if(!R)return;const Ae=((ge=ue==null?void 0:ue.document)==null?void 0:ge.documentElement)||(ue==null?void 0:ue.documentElement)||unrefElement(ue),{display:ye,flexDirection:ie}=getComputedStyle(Ae),we=Ae.scrollLeft;ae.left=we<q.value,ae.right=we>q.value;const oe=Math.abs(we)<=(D.left||0),xe=Math.abs(we)+Ae.clientWidth>=Ae.scrollWidth-(D.right||0)-ARRIVED_STATE_THRESHOLD_PIXELS;ye==="flex"&&ie==="row-reverse"?(ne.left=xe,ne.right=oe):(ne.left=oe,ne.right=xe),q.value=we;let Le=Ae.scrollTop;ue===R.document&&!Le&&(Le=R.document.body.scrollTop),ae.top=Le<G.value,ae.bottom=Le>G.value;const $e=Math.abs(Le)<=(D.top||0),ke=Math.abs(Le)+Ae.clientHeight>=Ae.scrollHeight-(D.bottom||0)-ARRIVED_STATE_THRESHOLD_PIXELS;ye==="flex"&&ie==="column-reverse"?(ne.top=ke,ne.bottom=$e):(ne.top=$e,ne.bottom=ke),G.value=Le},le=ue=>{var ge;if(!R)return;const Ae=(ge=ue.target.documentElement)!=null?ge:ue.target;pe(Ae),te.value=!0,de(ue),S(ue)};return useEventListener(g,"scroll",E?useThrottleFn(le,E,!0,!1):le,$),tryOnMounted(()=>{try{const ue=toValue(g);if(!ue)return;pe(ue)}catch(ue){j(ue)}}),useEventListener(g,"scrollend",ce,$),{x:U,y:Y,isScrolling:te,arrivedState:ne,directions:ae,measure(){const ue=toValue(g);R&&ue&&pe(ue)}}}const DefaultMagicKeysAliasMap={ctrl:"control",command:"meta",cmd:"meta",option:"alt",up:"arrowup",down:"arrowdown",left:"arrowleft",right:"arrowright"};function useMagicKeys(g={}){const{reactive:_=!1,target:E=defaultWindow,aliasMap:k=DefaultMagicKeysAliasMap,passive:I=!0,onEventFired:S=noop$5}=g,D=vue$2.reactive(new Set),$={toJSON(){return{}},current:D},M=_?vue$2.reactive($):$,R=new Set,j=new Set;function q(V,te){V in M&&(_?M[V]=te:M[V].value=te)}function G(){D.clear();for(const V of j)q(V,!1)}function U(V,te){var ne,ae;const ce=(ne=V.key)==null?void 0:ne.toLowerCase(),pe=[(ae=V.code)==null?void 0:ae.toLowerCase(),ce].filter(Boolean);ce&&(te?D.add(ce):D.delete(ce));for(const le of pe)j.add(le),q(le,te);ce==="meta"&&!te?(R.forEach(le=>{D.delete(le),q(le,!1)}),R.clear()):typeof V.getModifierState=="function"&&V.getModifierState("Meta")&&te&&[...D,...pe].forEach(le=>R.add(le))}useEventListener(E,"keydown",V=>(U(V,!0),S(V)),{passive:I}),useEventListener(E,"keyup",V=>(U(V,!1),S(V)),{passive:I}),useEventListener("blur",G,{passive:!0}),useEventListener("focus",G,{passive:!0});const Y=new Proxy(M,{get(V,te,ne){if(typeof te!="string")return Reflect.get(V,te,ne);if(te=te.toLowerCase(),te in k&&(te=k[te]),!(te in M))if(/[+_-]/.test(te)){const ce=te.split(/[+_-]/g).map(de=>de.trim());M[te]=vue$2.computed(()=>ce.every(de=>toValue(Y[de])))}else M[te]=vue$2.ref(!1);const ae=Reflect.get(V,te,ne);return _?toValue(ae):ae}});return Y}function usePreferredColorScheme(g){const _=useMediaQuery("(prefers-color-scheme: light)",g),E=useMediaQuery("(prefers-color-scheme: dark)",g);return vue$2.computed(()=>E.value?"dark":_.value?"light":"no-preference")}const EDITOR_DEBOUNCE_TIMEOUT=400,DEFAULT_CODEBLOCK_LANGUAGE="markdown";var InlineFormatWrapper=(g=>(g.bold="**",g.italic="_",g.underline="++",g.strikethrough="~~",g.subscript="~",g.superscript="^",g.mark="==",g.code="`",g))(InlineFormatWrapper||{});const TOOLBAR_HEIGHT="36px",NEW_LINE_CHARACTER=`
|
|
2
|
-
`,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)",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$2.defineComponent({__name:"ToolbarButton",props:{icon:{type:Boolean,default:!0},appearance:{type:String,default:"secondary"}},setup(g){return(_,E)=>(vue$2.openBlock(),vue$2.createElementBlock("button",{class:vue$2.normalizeClass(["toolbar-button",[{"has-text":!g.icon},g.appearance]]),tabindex:"0",type:"button"},[vue$2.renderSlot(_.$slots,"default",{},void 0,!0)],2))}}),_export_sfc=(g,_)=>{const E=g.__vccOpts||g;for(const[k,I]of _)E[k]=I;return E},ToolbarButton=_export_sfc(_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$2.defineComponent({__name:"InfoTooltip",props:{text:{type:String,default:void 0}},setup(g){return(_,E)=>(vue$2.openBlock(),vue$2.createElementBlock("div",_hoisted_1$4,[vue$2.renderSlot(_.$slots,"default",{},void 0,!0),_.$slots.tooltip||g.text?(vue$2.openBlock(),vue$2.createElementBlock("div",_hoisted_2$3,[vue$2.renderSlot(_.$slots,"tooltip",{},()=>[vue$2.createTextVNode(vue$2.toDisplayString(g.text),1)],!0)])):vue$2.createCommentVNode("",!0)]))}}),InfoTooltip=_export_sfc(_sfc_main$4,[["__scopeId","data-v-97badb2f"]]),_hoisted_1$3={key:0,class:"tooltip-shortcut"},_hoisted_2$2={"data-testid":"shortcut-text"},_hoisted_3$2={key:0,class:"keys","data-testid":"keys"},_hoisted_4$2=["aria-label"],_sfc_main$3=vue$2.defineComponent({__name:"TooltipShortcut",props:{text:{type:String,required:!0},keys:{type:Array,default:()=>[],validator:g=>g!=null&&g.length?g.every(_=>typeof _=="string"):!0}},setup(g){const _=vue$2.ref(!1);return vue$2.onMounted(()=>{var E;_.value=/Mac|iPhone|iPod|iPad/i.test(navigator==null?void 0:navigator.platform)||/macOS|Mac|iPhone|iPod|iPad/i.test((E=navigator==null?void 0:navigator.userAgentData)==null?void 0:E.platform)}),(E,k)=>g.text?(vue$2.openBlock(),vue$2.createElementBlock("div",_hoisted_1$3,[vue$2.createElementVNode("div",_hoisted_2$2,vue$2.toDisplayString(g.text),1),g.keys.length?(vue$2.openBlock(),vue$2.createElementBlock("div",_hoisted_3$2,[vue$2.createElementVNode("kbd",{"aria-label":_.value?"Command":"Control",class:vue$2.normalizeClass(["keyboard-button meta-key",{mac:_.value}]),"data-testid":"meta-key"},null,10,_hoisted_4$2),(vue$2.openBlock(!0),vue$2.createElementBlock(vue$2.Fragment,null,vue$2.renderList(g.keys,I=>(vue$2.openBlock(),vue$2.createElementBlock("kbd",{key:I,class:"keyboard-button"},vue$2.toDisplayString(I),1))),128))])):vue$2.createCommentVNode("",!0)])):vue$2.createCommentVNode("",!0)}}),TooltipShortcut=_export_sfc(_sfc_main$3,[["__scopeId","data-v-9788e731"]]),c$4="24px",b=(g,_)=>{const E=g.__vccOpts||g;for(const[k,I]of _)E[k]=I;return E},Hi=g=>(vue$2.pushScopeId("data-v-36414286"),g=g(),vue$2.popScopeId(),g),Mi=["aria-hidden"],Zi={key:0,"data-testid":"kui-icon-svg-title"},Bi=Hi(()=>vue$2.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)),Vi=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon blockquote-icon","data-testid":"kui-icon-wrapper-blockquote-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",Zi,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),Bi],8,Mi))]),_:1},8,["aria-hidden","style"]))}}),a6=b(Vi,[["__scopeId","data-v-36414286"]]),Ei=g=>(vue$2.pushScopeId("data-v-5fde1458"),g=g(),vue$2.popScopeId(),g),Fi=["aria-hidden"],Di={key:0,"data-testid":"kui-icon-svg-title"},Ai=Ei(()=>vue$2.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)),Pi=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon bold-icon","data-testid":"kui-icon-wrapper-bold-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",Di,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),Ai],8,Fi))]),_:1},8,["aria-hidden","style"]))}}),o6=b(Pi,[["__scopeId","data-v-5fde1458"]]),D5=g=>(vue$2.pushScopeId("data-v-6fc1a8ae"),g=g(),vue$2.popScopeId(),g),A5=["aria-hidden"],P5={key:0,"data-testid":"kui-icon-svg-title"},R5=D5(()=>vue$2.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)),U5=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon code-icon","data-testid":"kui-icon-wrapper-code-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",P5,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),R5],8,A5))]),_:1},8,["aria-hidden","style"]))}}),L6=b(U5,[["__scopeId","data-v-6fc1a8ae"]]),T5=g=>(vue$2.pushScopeId("data-v-98ed28a5"),g=g(),vue$2.popScopeId(),g),G5=["aria-hidden"],O5={key:0,"data-testid":"kui-icon-svg-title"},j5=T5(()=>vue$2.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)),W5=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon codeblock-icon","data-testid":"kui-icon-wrapper-codeblock-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",O5,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),j5],8,G5))]),_:1},8,["aria-hidden","style"]))}}),k6=b(W5,[["__scopeId","data-v-98ed28a5"]]),cr=g=>(vue$2.pushScopeId("data-v-76c91d7c"),g=g(),vue$2.popScopeId(),g),ur=["aria-hidden"],fr={key:0,"data-testid":"kui-icon-svg-title"},gr=cr(()=>vue$2.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)),pr=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon collapse-icon","data-testid":"kui-icon-wrapper-collapse-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",fr,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),gr],8,ur))]),_:1},8,["aria-hidden","style"]))}}),M6=b(pr,[["__scopeId","data-v-76c91d7c"]]),$7=g=>(vue$2.pushScopeId("data-v-7e7e1be1"),g=g(),vue$2.popScopeId(),g),_7=["aria-hidden"],L7={key:0,"data-testid":"kui-icon-svg-title"},k7=$7(()=>vue$2.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)),I7=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon download-icon","data-testid":"kui-icon-wrapper-download-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",L7,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),k7],8,_7))]),_:1},8,["aria-hidden","style"]))}}),j6=b(I7,[["__scopeId","data-v-7e7e1be1"]]),V7=g=>(vue$2.pushScopeId("data-v-49115a62"),g=g(),vue$2.popScopeId(),g),E7=["aria-hidden"],F7={key:0,"data-testid":"kui-icon-svg-title"},D7=V7(()=>vue$2.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)),A7=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon edit-icon","data-testid":"kui-icon-wrapper-edit-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",F7,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),D7],8,E7))]),_:1},8,["aria-hidden","style"]))}}),K6=b(A7,[["__scopeId","data-v-49115a62"]]),O7=g=>(vue$2.pushScopeId("data-v-a984bb70"),g=g(),vue$2.popScopeId(),g),j7=["aria-hidden"],W7={key:0,"data-testid":"kui-icon-svg-title"},K7=O7(()=>vue$2.createElementVNode("path",{d:"M3 21V13H5V17.6L17.6 5H13V3H21V11H19V6.4L6.4 19H11V21H3Z",fill:"currentColor"},null,-1)),J7=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon expand-icon","data-testid":"kui-icon-wrapper-expand-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",W7,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),K7],8,j7))]),_:1},8,["aria-hidden","style"]))}}),X6=b(J7,[["__scopeId","data-v-a984bb70"]]),r0=g=>(vue$2.pushScopeId("data-v-eaffddbc"),g=g(),vue$2.popScopeId(),g),n0=["aria-hidden"],a0={key:0,"data-testid":"kui-icon-svg-title"},o0=r0(()=>vue$2.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)),s0=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon html-icon","data-testid":"kui-icon-wrapper-html-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",a0,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),o0],8,n0))]),_:1},8,["aria-hidden","style"]))}}),c9=b(s0,[["__scopeId","data-v-eaffddbc"]]),W0=g=>(vue$2.pushScopeId("data-v-bac13e8c"),g=g(),vue$2.popScopeId(),g),K0=["aria-hidden"],J0={key:0,"data-testid":"kui-icon-svg-title"},X0=W0(()=>vue$2.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)),Q0=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon italic-icon","data-testid":"kui-icon-wrapper-italic-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",J0,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),X0],8,K0))]),_:1},8,["aria-hidden","style"]))}}),m9=b(Q0,[["__scopeId","data-v-bac13e8c"]]),cn=g=>(vue$2.pushScopeId("data-v-c5d05b58"),g=g(),vue$2.popScopeId(),g),un=["aria-hidden"],fn$7={key:0,"data-testid":"kui-icon-svg-title"},gn=cn(()=>vue$2.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)),pn=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon link-icon","data-testid":"kui-icon-wrapper-link-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",fn$7,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),gn],8,un))]),_:1},8,["aria-hidden","style"]))}}),z9=b(pn,[["__scopeId","data-v-c5d05b58"]]),Cn=g=>(vue$2.pushScopeId("data-v-0c9797a8"),g=g(),vue$2.popScopeId(),g),hn=["aria-hidden"],yn={key:0,"data-testid":"kui-icon-svg-title"},vn=Cn(()=>vue$2.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)),mn=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon list-ordered-icon","data-testid":"kui-icon-wrapper-list-ordered-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",yn,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),vn],8,hn))]),_:1},8,["aria-hidden","style"]))}}),N9=b(mn,[["__scopeId","data-v-0c9797a8"]]),bn=g=>(vue$2.pushScopeId("data-v-4ffb5365"),g=g(),vue$2.popScopeId(),g),Sn=["aria-hidden"],zn={key:0,"data-testid":"kui-icon-svg-title"},Nn=bn(()=>vue$2.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)),wn=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon list-unordered-icon","data-testid":"kui-icon-wrapper-list-unordered-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",zn,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),Nn],8,Sn))]),_:1},8,["aria-hidden","style"]))}}),w9=b(wn,[["__scopeId","data-v-4ffb5365"]]),An=g=>(vue$2.pushScopeId("data-v-cfd6ed47"),g=g(),vue$2.popScopeId(),g),Pn=["aria-hidden"],Rn={key:0,"data-testid":"kui-icon-svg-title"},Un=An(()=>vue$2.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)),Tn=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon markdown-icon","data-testid":"kui-icon-wrapper-markdown-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",Rn,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),Un],8,Pn))]),_:1},8,["aria-hidden","style"]))}}),L9=b(Tn,[["__scopeId","data-v-cfd6ed47"]]),w8=g=>(vue$2.pushScopeId("data-v-adfeb306"),g=g(),vue$2.popScopeId(),g),x8=["aria-hidden"],$8={key:0,"data-testid":"kui-icon-svg-title"},_8=w8(()=>vue$2.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)),L8=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon strikethrough-icon","data-testid":"kui-icon-wrapper-strikethrough-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",$8,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),_8],8,x8))]),_:1},8,["aria-hidden","style"]))}}),rd=b(L8,[["__scopeId","data-v-adfeb306"]]),T8=g=>(vue$2.pushScopeId("data-v-cfca9c42"),g=g(),vue$2.popScopeId(),g),G8=["aria-hidden"],O8={key:0,"data-testid":"kui-icon-svg-title"},j8=T8(()=>vue$2.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)),W8=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon table-icon","data-testid":"kui-icon-wrapper-table-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",O8,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),j8],8,G8))]),_:1},8,["aria-hidden","style"]))}}),sd=b(W8,[["__scopeId","data-v-cfca9c42"]]),K8=g=>(vue$2.pushScopeId("data-v-f2829a72"),g=g(),vue$2.popScopeId(),g),J8=["aria-hidden"],X8={key:0,"data-testid":"kui-icon-svg-title"},Q8=K8(()=>vue$2.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)),Y8=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon tasklist-icon","data-testid":"kui-icon-wrapper-tasklist-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",X8,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),Q8],8,J8))]),_:1},8,["aria-hidden","style"]))}}),dd$1=b(Y8,[["__scopeId","data-v-f2829a72"]]),xs=g=>(vue$2.pushScopeId("data-v-931cf71a"),g=g(),vue$2.popScopeId(),g),$s=["aria-hidden"],_s={key:0,"data-testid":"kui-icon-svg-title"},Ls=xs(()=>vue$2.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)),ks=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon underline-icon","data-testid":"kui-icon-wrapper-underline-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",_s,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),Ls],8,$s))]),_:1},8,["aria-hidden","style"]))}}),pd=b(ks,[["__scopeId","data-v-931cf71a"]]);let getRandomValues;const 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)}const REGEX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function validate(g){return typeof g=="string"&®EX.test(g)}const byteToHex=[];for(let g=0;g<256;++g)byteToHex.push((g+256).toString(16).slice(1));function unsafeStringify(g,_=0){return byteToHex[g[_+0]]+byteToHex[g[_+1]]+byteToHex[g[_+2]]+byteToHex[g[_+3]]+"-"+byteToHex[g[_+4]]+byteToHex[g[_+5]]+"-"+byteToHex[g[_+6]]+byteToHex[g[_+7]]+"-"+byteToHex[g[_+8]]+byteToHex[g[_+9]]+"-"+byteToHex[g[_+10]]+byteToHex[g[_+11]]+byteToHex[g[_+12]]+byteToHex[g[_+13]]+byteToHex[g[_+14]]+byteToHex[g[_+15]]}function parse$7(g){if(!validate(g))throw TypeError("Invalid UUID");let _;const E=new Uint8Array(16);return E[0]=(_=parseInt(g.slice(0,8),16))>>>24,E[1]=_>>>16&255,E[2]=_>>>8&255,E[3]=_&255,E[4]=(_=parseInt(g.slice(9,13),16))>>>8,E[5]=_&255,E[6]=(_=parseInt(g.slice(14,18),16))>>>8,E[7]=_&255,E[8]=(_=parseInt(g.slice(19,23),16))>>>8,E[9]=_&255,E[10]=(_=parseInt(g.slice(24,36),16))/1099511627776&255,E[11]=_/4294967296&255,E[12]=_>>>24&255,E[13]=_>>>16&255,E[14]=_>>>8&255,E[15]=_&255,E}function stringToBytes(g){g=unescape(encodeURIComponent(g));const _=[];for(let E=0;E<g.length;++E)_.push(g.charCodeAt(E));return _}const DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",URL$1="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function v35(g,_,E){function k(I,S,D,$){var M;if(typeof I=="string"&&(I=stringToBytes(I)),typeof S=="string"&&(S=parse$7(S)),((M=S)===null||M===void 0?void 0:M.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let R=new Uint8Array(16+I.length);if(R.set(S),R.set(I,S.length),R=E(R),R[6]=R[6]&15|_,R[8]=R[8]&63|128,D){$=$||0;for(let j=0;j<16;++j)D[$+j]=R[j];return D}return unsafeStringify(R)}try{k.name=g}catch{}return k.DNS=DNS,k.URL=URL$1,k}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4(g,_,E){if(native.randomUUID&&!_&&!g)return native.randomUUID();g=g||{};const k=g.random||(g.rng||rng)();if(k[6]=k[6]&15|64,k[8]=k[8]&63|128,_){E=E||0;for(let I=0;I<16;++I)_[E+I]=k[I];return _}return unsafeStringify(k)}function f$1(g,_,E,k){switch(g){case 0:return _&E^~_&k;case 1:return _^E^k;case 2:return _&E^_&k^E&k;case 3:return _^E^k}}function ROTL(g,_){return g<<_|g>>>32-_}function sha1(g){const _=[1518500249,1859775393,2400959708,3395469782],E=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof g=="string"){const D=unescape(encodeURIComponent(g));g=[];for(let $=0;$<D.length;++$)g.push(D.charCodeAt($))}else Array.isArray(g)||(g=Array.prototype.slice.call(g));g.push(128);const k=g.length/4+2,I=Math.ceil(k/16),S=new Array(I);for(let D=0;D<I;++D){const $=new Uint32Array(16);for(let M=0;M<16;++M)$[M]=g[D*64+M*4]<<24|g[D*64+M*4+1]<<16|g[D*64+M*4+2]<<8|g[D*64+M*4+3];S[D]=$}S[I-1][14]=(g.length-1)*8/Math.pow(2,32),S[I-1][14]=Math.floor(S[I-1][14]),S[I-1][15]=(g.length-1)*8&4294967295;for(let D=0;D<I;++D){const $=new Uint32Array(80);for(let U=0;U<16;++U)$[U]=S[D][U];for(let U=16;U<80;++U)$[U]=ROTL($[U-3]^$[U-8]^$[U-14]^$[U-16],1);let M=E[0],R=E[1],j=E[2],q=E[3],G=E[4];for(let U=0;U<80;++U){const Y=Math.floor(U/20),V=ROTL(M,5)+f$1(Y,R,j,q)+G+_[Y]+$[U]>>>0;G=q,q=j,j=ROTL(R,30)>>>0,R=M,M=V}E[0]=E[0]+M>>>0,E[1]=E[1]+R>>>0,E[2]=E[2]+j>>>0,E[3]=E[3]+q>>>0,E[4]=E[4]+G>>>0}return[E[0]>>24&255,E[0]>>16&255,E[0]>>8&255,E[0]&255,E[1]>>24&255,E[1]>>16&255,E[1]>>8&255,E[1]&255,E[2]>>24&255,E[2]>>16&255,E[2]>>8&255,E[2]&255,E[3]>>24&255,E[3]>>16&255,E[3]>>8&255,E[3]&255,E[4]>>24&255,E[4]>>16&255,E[4]>>8&255,E[4]&255]}const v5=v35("v5",80,sha1),_withScopeId$1=g=>(vue$2.pushScopeId("data-v-5e411156"),g=g(),vue$2.popScopeId(),g),_hoisted_1$2={class:"toolbar-left"},_hoisted_2$1={class:"button-group",role:"radiogroup"},_hoisted_3$1=["id"],_hoisted_4$1=_withScopeId$1(()=>vue$2.createElementVNode("div",{class:"toolbar-divider"},null,-1)),_hoisted_5$1=_withScopeId$1(()=>vue$2.createElementVNode("div",{class:"toolbar-divider"},null,-1)),_hoisted_6$1={key:2,class:"toolbar-right","data-testid":"slot-toolbar-right"},_hoisted_7$1={key:3,class:"editor-actions","data-testid":"slot-editor-actions"},_sfc_main$2=vue$2.defineComponent({__name:"MarkdownToolbar",emits:["format-selection","insert-template","change-mode","toggle-html-preview","toggle-fullscreen"],setup(g,{emit:_}){vue$2.useCssVars(ae=>({"5b0ced0f":vue$2.unref(TOOLBAR_HEIGHT)}));const E=vue$2.inject(UNIQUE_ID_INJECTION_KEY,vue$2.ref(v4())),k=vue$2.inject(MODE_INJECTION_KEY,vue$2.ref("read")),I=vue$2.inject(EDITABLE_INJECTION_KEY,vue$2.ref(!1)),S=vue$2.inject(THEME_INJECTION_KEY,vue$2.ref("light")),D=vue$2.inject(FULLSCREEN_INJECTION_KEY,vue$2.ref(!1)),$=vue$2.inject(HTML_PREVIEW_INJECTION_KEY,vue$2.ref(!1)),M=_,R=vue$2.ref(null),{arrivedState:j}=useScroll(R),q=useMediaQuery(`(min-width: ${KUI_BREAKPOINT_PHABLET})`),G=()=>{k.value==="split"&&!q.value&&U("edit")};vue$2.watch(q,()=>{G()});const U=ae=>{k.value!==ae&&M("change-mode",ae)},Y=ae=>{var ce;M("toggle-fullscreen"),(ce=ae==null?void 0:ae.target)==null||ce.blur()},V=ae=>{var ce;M("toggle-html-preview"),(ce=ae==null?void 0:ae.target)==null||ce.blur()},te=[{label:"Bold",action:"bold",keys:["B"],icon:o6},{label:"Italic",action:"italic",keys:["I"],icon:m9},{label:"Underline",action:"underline",keys:["U"],icon:pd},{label:"Strikethrough",action:"strikethrough",keys:["Shift","X"],icon:rd},{label:"Code",action:"code",keys:["Shift","C"],icon:L6},{label:"Link",action:"link",icon:z9}],ne=[{label:"Unordered List",action:"unordered-list",icon:w9},{label:"Ordered List",action:"ordered-list",icon:N9},{label:"Tasklist",action:"task",icon:dd$1},{label:"Codeblock",action:"codeblock",icon:k6},{label:"Table",action:"table",icon:sd},{label:"Blockquote",action:"blockquote",icon:a6}];return vue$2.onMounted(()=>{G()}),(ae,ce)=>vue$2.unref(I)&&vue$2.unref(k)!=="read"?(vue$2.openBlock(),vue$2.createElementBlock("div",{key:0,ref_key:"toolbar",ref:R,class:vue$2.normalizeClass(["markdown-ui-toolbar",`theme-${vue$2.unref(S)}`]),"data-testid":"toolbar"},[vue$2.unref(I)?(vue$2.openBlock(),vue$2.createElementBlock("div",{key:0,class:vue$2.normalizeClass(["toolbar-overlay left",{"overlay-visible":!vue$2.unref(j).left}])},null,2)):vue$2.createCommentVNode("",!0),vue$2.unref(I)?(vue$2.openBlock(),vue$2.createElementBlock("div",{key:1,class:vue$2.normalizeClass(["toolbar-overlay right",{"overlay-visible":!vue$2.unref(j).right}])},null,2)):vue$2.createCommentVNode("",!0),vue$2.createElementVNode("div",_hoisted_1$2,[vue$2.createElementVNode("div",_hoisted_2$1,[vue$2.createElementVNode("label",{id:`editor-mode-options-${vue$2.unref(E)}`,class:"sr-only"},"Select the editor mode",8,_hoisted_3$1),vue$2.createVNode(ToolbarButton,{"aria-checked":vue$2.unref(k)==="edit","aria-labelledby":`editor-mode-options-${vue$2.unref(E)}`,class:vue$2.normalizeClass(["edit",{active:vue$2.unref(k)==="edit"}]),"data-testid":"edit-mode-button",disabled:vue$2.unref(k)==="edit",icon:!1,role:"radio",type:"button",onClick:ce[0]||(ce[0]=vue$2.withModifiers(de=>U("edit"),["prevent"]))},{default:vue$2.withCtx(()=>[vue$2.createTextVNode(" Edit ")]),_:1},8,["aria-checked","aria-labelledby","class","disabled"]),vue$2.createVNode(ToolbarButton,{"aria-checked":vue$2.unref(k)==="split","aria-labelledby":`editor-mode-options-${vue$2.unref(E)}`,class:vue$2.normalizeClass(["mode-split-button",["split",{active:vue$2.unref(k)==="split"}]]),"data-testid":"split-mode-button",disabled:vue$2.unref(k)==="split",icon:!1,role:"radio",type:"button",onClick:ce[1]||(ce[1]=vue$2.withModifiers(de=>U("split"),["prevent"]))},{default:vue$2.withCtx(()=>[vue$2.createTextVNode(" Split ")]),_:1},8,["aria-checked","aria-labelledby","class","disabled"]),vue$2.createVNode(ToolbarButton,{"aria-checked":vue$2.unref(k)==="preview","aria-labelledby":`editor-mode-options-${vue$2.unref(E)}`,class:vue$2.normalizeClass(["preview",{active:vue$2.unref(k)==="preview"}]),"data-testid":"preview-mode-button",disabled:vue$2.unref(k)==="preview",icon:!1,role:"radio",type:"button",onClick:ce[2]||(ce[2]=vue$2.withModifiers(de=>U("preview"),["prevent"]))},{default:vue$2.withCtx(()=>[vue$2.createTextVNode(" Preview ")]),_:1},8,["aria-checked","aria-labelledby","class","disabled"])]),vue$2.unref(I)&&!["preview","read"].includes(vue$2.unref(k))?(vue$2.openBlock(),vue$2.createElementBlock(vue$2.Fragment,{key:0},[(vue$2.openBlock(),vue$2.createElementBlock(vue$2.Fragment,null,vue$2.renderList(te,de=>vue$2.createVNode(InfoTooltip,{key:de.label,"data-testid":`tooltip-${de.action}`,"text-old":de.label},{tooltip:vue$2.withCtx(()=>[vue$2.createVNode(TooltipShortcut,{keys:de.keys,text:de.label},null,8,["keys","text"])]),default:vue$2.withCtx(()=>[vue$2.createVNode(ToolbarButton,{"aria-label":de.label,"data-testid":`format-option-${de.action}`,onClick:vue$2.withModifiers(pe=>M("format-selection",de.action),["prevent"])},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(de.icon),{class:"button-icon",size:vue$2.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,(vue$2.openBlock(),vue$2.createElementBlock(vue$2.Fragment,null,vue$2.renderList(ne,de=>vue$2.createVNode(InfoTooltip,{key:de.label,"data-testid":`tooltip-${de.action}`},{tooltip:vue$2.withCtx(()=>[vue$2.createTextVNode(vue$2.toDisplayString(de.label),1)]),default:vue$2.withCtx(()=>[vue$2.createVNode(ToolbarButton,{"aria-label":de.label,"data-testid":`template-option-${de.action}`,onClick:vue$2.withModifiers(pe=>M("insert-template",de.action),["prevent"])},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(de.icon),{class:"button-icon",size:vue$2.unref(KUI_ICON_SIZE_40)},null,8,["size"]))]),_:2},1032,["aria-label","data-testid","onClick"])]),_:2},1032,["data-testid"])),64))],64)):vue$2.createCommentVNode("",!0),_hoisted_5$1,vue$2.createVNode(InfoTooltip,{"data-testid":"tooltip-fullscreen"},{tooltip:vue$2.withCtx(()=>[vue$2.createTextVNode(vue$2.toDisplayString(vue$2.unref(D)?"Exit Fullscreen":"Enter Fullscreen"),1)]),default:vue$2.withCtx(()=>[vue$2.createVNode(ToolbarButton,{"aria-label":vue$2.unref(D)?"Exit Fullscreen":"Enter Fullscreen","data-testid":"toggle-fullscreen",onClick:vue$2.withModifiers(Y,["prevent"])},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(vue$2.unref(D)?vue$2.unref(M6):vue$2.unref(X6)),{class:"button-icon",size:vue$2.unref(KUI_ICON_SIZE_40)},null,8,["size"]))]),_:1},8,["aria-label"])]),_:1}),["split","preview"].includes(vue$2.unref(k))?(vue$2.openBlock(),vue$2.createBlock(InfoTooltip,{key:1,"data-testid":"tooltip-fullscreen"},{tooltip:vue$2.withCtx(()=>[vue$2.createTextVNode(vue$2.toDisplayString(vue$2.unref($)?"Toggle markdown Preview":"Toggle HTML Preview"),1)]),default:vue$2.withCtx(()=>[vue$2.createVNode(ToolbarButton,{"aria-label":vue$2.unref($)?"Toggle markdown Preview":"Toggle HTML Preview","data-testid":"toggle-html-preview",onClick:vue$2.withModifiers(V,["prevent"])},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(vue$2.unref($)?vue$2.unref(L9):vue$2.unref(c9)),{class:"button-icon",size:vue$2.unref(KUI_ICON_SIZE_40)},null,8,["size"]))]),_:1},8,["aria-label"])]),_:1})):vue$2.createCommentVNode("",!0)]),ae.$slots["toolbar-right"]?(vue$2.openBlock(),vue$2.createElementBlock("div",_hoisted_6$1,[vue$2.renderSlot(ae.$slots,"toolbar-right",{},void 0,!0)])):vue$2.createCommentVNode("",!0),ae.$slots["editor-actions"]?(vue$2.openBlock(),vue$2.createElementBlock("div",_hoisted_7$1,[vue$2.renderSlot(ae.$slots,"editor-actions",{},void 0,!0)])):vue$2.createCommentVNode("",!0)],2)):vue$2.createCommentVNode("",!0)}}),MarkdownToolbar=_export_sfc(_sfc_main$2,[["__scopeId","data-v-5e411156"]]),_hoisted_1$1=["innerHTML"],_sfc_main$1=vue$2.defineComponent({__name:"MarkdownContent",props:{content:{type:String,default:""}},setup(g){const _=vue$2.inject(MODE_INJECTION_KEY,vue$2.ref("read")),E=vue$2.inject(THEME_INJECTION_KEY,vue$2.ref("light")),k=g,I=vue$2.ref(k.content);return vue$2.watch(()=>k.content,S=>{I.value=S},{immediate:!0}),(S,D)=>(vue$2.openBlock(),vue$2.createElementBlock("div",{class:vue$2.normalizeClass(["markdown-content",[`mode-${vue$2.unref(_)}`,`theme-${vue$2.unref(E)}`]]),"data-testid":"markdown-content",innerHTML:I.value},null,10,_hoisted_1$1))}}),MarkdownContent=_export_sfc(_sfc_main$1,[["__scopeId","data-v-eac4c7eb"]]);function useDebounce(){return{debounce:(_,E)=>{let k;return(...I)=>{clearTimeout(k),k=window==null?void 0:window.setTimeout(()=>{_(...I)},E)}}}}function useMarkdownActions(g,_){const E=vue$2.reactive({start:0,end:0,text:""}),k=()=>{if(!g.value)throw new Error("getTextarea: Could not find the textarea template ref");return g.value},I=()=>{try{const G=k();if(!G)return;E.start=G.selectionStart||0,E.end=G.selectionEnd||0,E.text=G.value.substring(G.selectionStart,G.selectionEnd)||""}catch(G){console.warn("getTextSelection",G),E.start=0,E.end=0,E.text=""}},S=async()=>{const G=k();G&&(G.focus(),await vue$2.nextTick())},D=async G=>{try{const U=k();let Y="";switch(G){case"bold":Y=InlineFormatWrapper.bold;break;case"italic":Y=InlineFormatWrapper.italic;break;case"underline":Y=InlineFormatWrapper.underline;break;case"strikethrough":Y=InlineFormatWrapper.strikethrough;break;case"subscript":Y=InlineFormatWrapper.subscript;break;case"superscript":Y=InlineFormatWrapper.superscript;break;case"mark":Y=InlineFormatWrapper.mark;break;case"code":Y=InlineFormatWrapper.code;break}if(!U||!Y)return;I();const V=Y.length,te=_.value.substring(0,E.start),ne=_.value.substring(E.end);if(E.text.length===0)if(te.endsWith(Y)&&ne.startsWith(Y)){_.value=te.substring(0,te.length-V)+ne.substring(V),await S(),U.selectionEnd=E.start-V;return}else{_.value=_.value.substring(0,E.start)+Y+Y+_.value.substring(E.end),await S(),U.selectionEnd=E.start+V;return}let ae=!1;const ce=E.text.startsWith(Y)&&E.text.endsWith(Y),de=te.endsWith(Y)&&ne.startsWith(Y);(ce||de)&&(ae=!0);let pe=E.text;ae?ae&&ce&&(pe=E.text.slice(V,-V)):pe=Y+E.text+Y,ae&&de?_.value=_.value.substring(0,E.start-V)+pe+_.value.substring(E.end+V):_.value=_.value.substring(0,E.start)+pe+_.value.substring(E.end),await S(),ae?ae&&ce?U.setSelectionRange(E.start,E.end-V*2):ae&&de&&U.setSelectionRange(E.start-V,E.end-V):U.setSelectionRange(E.start,E.end+V*2)}catch(U){console.warn("toggleInlineFormatting",U)}},$=async(G,U)=>{try{const Y=k();if(!Y)return;I();let V="";Array.from(Array(U).keys()).forEach(()=>V+=" ");let te=0;const ne=_.value.substring(0,E.start);if(G==="remove"&&!ne.endsWith(V)&&!ne.endsWith(" "+MARKDOWN_TEMPLATE_UL)&&!/ {2}\d{1,}\. $/.test(ne))return;if(E.text.length!==0)te=(E.text.match(/\n(?!\n)/g)||[]).length,G==="add"?_.value=ne+V+E.text.replace(/\n(?!\n)/g,`${NEW_LINE_CHARACTER}${V}`)+_.value.substring(E.end):_.value=_.value.substring(0,E.start-V.length)+E.text.replaceAll(`${NEW_LINE_CHARACTER}${V}`,NEW_LINE_CHARACTER)+_.value.substring(E.end);else if(ne.endsWith(MARKDOWN_TEMPLATE_UL))_.value=G==="add"?_.value.substring(0,E.start-MARKDOWN_TEMPLATE_UL.length)+V+MARKDOWN_TEMPLATE_UL+_.value.substring(E.end):_.value.substring(0,E.start-V.length-MARKDOWN_TEMPLATE_UL.length)+MARKDOWN_TEMPLATE_UL+_.value.substring(E.end);else if(/\d{1,}\. $/.test(ne.split(NEW_LINE_CHARACTER).pop()||"")){const ae=MARKDOWN_TEMPLATE_OL.replace("1",""),ce=Number((ne.split(NEW_LINE_CHARACTER).at(-2)||ne.split(NEW_LINE_CHARACTER).pop()||"").trimStart().split(ae)[0])+1;_.value=G==="add"?_.value.substring(0,E.start-MARKDOWN_TEMPLATE_OL.length)+V+MARKDOWN_TEMPLATE_OL+_.value.substring(E.end):_.value.substring(0,E.start-V.length-(ce+ae).length)+(ce+ae)+_.value.substring(E.end)}else _.value=G==="add"?ne+V+_.value.substring(E.end):_.value.substring(0,E.start-V.length)+_.value.substring(E.end);if(await S(),E.text.length!==0){const ae=U+te*U;Y.selectionStart=G==="add"?E.start+V.length:E.start-V.length,Y.selectionEnd=G==="add"?E.end+ae:E.end-ae}else Y.selectionEnd=G==="add"?E.start+V.length:E.start-V.length}catch(Y){console.warn("toggleTab",Y)}},M=(G,U)=>{var Y,V;return U===MARKDOWN_TEMPLATE_OL?/^\d{1,}\. /.test(String(((Y=G==null?void 0:G.split(NEW_LINE_CHARACTER))==null?void 0:Y.pop())||"")):String(((V=G==null?void 0:G.split(NEW_LINE_CHARACTER))==null?void 0:V.pop())||"").endsWith(U)};return{selectedText:E,getTextSelection:I,toggleInlineFormatting:D,toggleTab:$,insertMarkdownTemplate:async G=>{try{const U=k();if(!U||!G||(I(),E.text.length!==0))return;const Y=_.value.substring(0,E.start),V=Y.length===0||Y.endsWith(`${NEW_LINE_CHARACTER}${NEW_LINE_CHARACTER}`)?"":/(.*)?[^\n]$/.test(Y)?`${NEW_LINE_CHARACTER}${NEW_LINE_CHARACTER}`:NEW_LINE_CHARACTER;let te="";switch(G){case"task":if(M(Y,MARKDOWN_TEMPLATE_TASK)){await S();return}te=V+MARKDOWN_TEMPLATE_TASK;break;case"unordered-list":if(M(Y,MARKDOWN_TEMPLATE_UL)){await S();return}te=V+MARKDOWN_TEMPLATE_UL;break;case"ordered-list":if(M(Y,MARKDOWN_TEMPLATE_OL)){await S();return}te=V+MARKDOWN_TEMPLATE_OL;break;case"blockquote":if(M(Y,MARKDOWN_TEMPLATE_BLOCKQUOTE)){await S();return}te=V+MARKDOWN_TEMPLATE_BLOCKQUOTE;break;case"codeblock":te=V+MARKDOWN_TEMPLATE_CODEBLOCK;break;case"table":te=V+MARKDOWN_TEMPLATE_TABLE;break}if(!te)return;switch(_.value=Y+te+_.value.substring(E.end),await S(),G){case"codeblock":U.selectionStart=E.start+(V.length+3),U.selectionEnd=E.start+(V.length+3)+DEFAULT_CODEBLOCK_LANGUAGE.length;break;default:U.selectionEnd=E.start+te.length;break}}catch(U){console.warn("insertMarkdownTemplate",U)}},insertLink:async()=>{try{const G=k();if(!G)return;I();const U=_.value.substring(0,E.start),Y=_.value.substring(E.end);let V="";if(E.text.length!==0){if(E.text==="url"&&U.endsWith("(")&&Y.startsWith(")")){await S();return}const te=/^http(s)?:\/\//.test(E.text);V=te?MARKDOWN_TEMPLATE_LINK.replace(/text/,"").replace(/url/,E.text):MARKDOWN_TEMPLATE_LINK.replace(/text/,E.text),_.value=U+V+Y,await S(),te?G.selectionEnd=E.start+1:(G.selectionStart=U.length+E.text.length+3,G.selectionEnd=U.length+E.text.length+6)}else{if(U.endsWith(MARKDOWN_TEMPLATE_LINK.split("text")[0])&&/^\]\((.*)+\)/.test(Y)){await S();return}V=MARKDOWN_TEMPLATE_LINK.replace(/text/,"");let te=1;/\w+$/.test(U)?(V=" "+V,te++):/^\w+/.test(Y)&&(V+=" "),_.value=U+V+Y,await S(),G.selectionEnd=E.start+te}}catch(G){console.warn("insertLink",G)}},insertNewLine:async()=>{var G;try{const U=k();if(!U)return;I();const Y=_.value.substring(0,E.start),V=((G=Y==null?void 0:Y.split(NEW_LINE_CHARACTER))==null?void 0:G.pop())||"";let te=NEW_LINE_CHARACTER,ne=!1,ae=0;const ce=[MARKDOWN_TEMPLATE_TASK,MARKDOWN_TEMPLATE_UL,MARKDOWN_TEMPLATE_OL,MARKDOWN_TEMPLATE_BLOCKQUOTE];for(const pe of ce)if(pe===MARKDOWN_TEMPLATE_OL){if(/^\d{1,}\. /.test(V.trimStart())){const le=MARKDOWN_TEMPLATE_OL.replace("1",""),ue=Number(V.trimStart().split(le)[0]);if(!isNaN(ue)&&ue>0){const ge=ue+1;ae=String(ge+le).length,/^\d{1,}\. $/.test(V.trimStart())?ne=!0:te+=V.split(ue+le)[0]+ge+le}break}}else{const le=pe===MARKDOWN_TEMPLATE_TASK&&V.trimStart().toLowerCase().startsWith(MARKDOWN_TEMPLATE_TASK_COMPLETED.toLowerCase());if(V.trimStart().startsWith(pe)||le){ae=pe.length,V.trimStart()===pe?ne=!0:le?te+=V.toLowerCase().split(MARKDOWN_TEMPLATE_TASK_COMPLETED.toLowerCase())[0]+pe:te+=V.split(pe)[0]+pe;break}}let de="";te===NEW_LINE_CHARACTER&&Array.from(Array(V.length-V.trimStart().length).keys()).forEach(()=>de+=" "),_.value=ne?_.value.substring(0,E.start-V.length)+_.value.substring(E.end):Y+te+de+_.value.substring(E.end),await S(),U.selectionEnd=ne?E.start-ae:E.start+te.length+de.length}catch(U){console.warn("insertNewLine",U)}}}}function useKeyboardShortcuts(g,_,E,k){const I=useActiveElement(),S=vue$2.computed(()=>{var G,U,Y;return!!((G=I.value)!=null&&G.id)&&((U=I.value)==null?void 0:U.id)===((Y=g.value)==null?void 0:Y.id)}),{toggleInlineFormatting:D,insertNewLine:$,getTextSelection:M,selectedText:R,toggleTab:j}=useMarkdownActions(g,_),q=G=>{let U;switch(G.key){case"b":U="bold";break;case"i":U="italic";break;case"u":U="underline";break;case"x":G.shiftKey&&(U="strikethrough");break;case"c":G.shiftKey&&(U="code");break}return U};useMagicKeys({passive:!1,onEventFired(G){if(!(!S.value||G.type!=="keydown")){if(G.key&&(G.ctrlKey||G.metaKey)){const U=q(G);U&&(G.preventDefault(),D(U),k())}G.key&&G.key==="Enter"&&!G.shiftKey&&(G.preventDefault(),$(),k()),G.key&&G.key==="Tab"&&(M(),R.text&&(G.preventDefault(),G.shiftKey?j("remove",E.value):j("add",E.value),k()))}}})}function setupMarkdownIt(g,_,E){const{parseMetaString:k,trimEndingNewline:I=!0}=E;g.options.highlight=(S,D="text",$)=>{const M=(k==null?void 0:k($,S,D))||{},R={...E,lang:D,meta:{...E.meta,...M,__raw:$}},j=[];return j.push({name:"@shikijs/markdown-it:block-class",code(q){q.properties.class=`language-${D}`}}),I&&S.endsWith(`
|
|
2
|
+
`,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)",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$2.defineComponent({__name:"ToolbarButton",props:{icon:{type:Boolean,default:!0},appearance:{type:String,default:"secondary"}},setup(g){return(_,E)=>(vue$2.openBlock(),vue$2.createElementBlock("button",{class:vue$2.normalizeClass(["toolbar-button",[{"has-text":!g.icon},g.appearance]]),tabindex:"0",type:"button"},[vue$2.renderSlot(_.$slots,"default",{},void 0,!0)],2))}}),_export_sfc=(g,_)=>{const E=g.__vccOpts||g;for(const[k,I]of _)E[k]=I;return E},ToolbarButton=_export_sfc(_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$2.defineComponent({__name:"InfoTooltip",props:{text:{type:String,default:void 0}},setup(g){return(_,E)=>(vue$2.openBlock(),vue$2.createElementBlock("div",_hoisted_1$4,[vue$2.renderSlot(_.$slots,"default",{},void 0,!0),_.$slots.tooltip||g.text?(vue$2.openBlock(),vue$2.createElementBlock("div",_hoisted_2$3,[vue$2.renderSlot(_.$slots,"tooltip",{},()=>[vue$2.createTextVNode(vue$2.toDisplayString(g.text),1)],!0)])):vue$2.createCommentVNode("",!0)]))}}),InfoTooltip=_export_sfc(_sfc_main$4,[["__scopeId","data-v-46630046"]]),_hoisted_1$3={key:0,class:"tooltip-shortcut"},_hoisted_2$2={"data-testid":"shortcut-text"},_hoisted_3$2={key:0,class:"keys","data-testid":"keys"},_hoisted_4$2=["aria-label"],_sfc_main$3=vue$2.defineComponent({__name:"TooltipShortcut",props:{text:{type:String,required:!0},keys:{type:Array,default:()=>[],validator:g=>g!=null&&g.length?g.every(_=>typeof _=="string"):!0}},setup(g){const _=vue$2.ref(!1);return vue$2.onMounted(()=>{var E;_.value=/Mac|iPhone|iPod|iPad/i.test(navigator==null?void 0:navigator.platform)||/macOS|Mac|iPhone|iPod|iPad/i.test((E=navigator==null?void 0:navigator.userAgentData)==null?void 0:E.platform)}),(E,k)=>g.text?(vue$2.openBlock(),vue$2.createElementBlock("div",_hoisted_1$3,[vue$2.createElementVNode("div",_hoisted_2$2,vue$2.toDisplayString(g.text),1),g.keys.length?(vue$2.openBlock(),vue$2.createElementBlock("div",_hoisted_3$2,[vue$2.createElementVNode("kbd",{"aria-label":_.value?"Command":"Control",class:vue$2.normalizeClass(["keyboard-button meta-key",{mac:_.value}]),"data-testid":"meta-key"},null,10,_hoisted_4$2),(vue$2.openBlock(!0),vue$2.createElementBlock(vue$2.Fragment,null,vue$2.renderList(g.keys,I=>(vue$2.openBlock(),vue$2.createElementBlock("kbd",{key:I,class:"keyboard-button"},vue$2.toDisplayString(I),1))),128))])):vue$2.createCommentVNode("",!0)])):vue$2.createCommentVNode("",!0)}}),TooltipShortcut=_export_sfc(_sfc_main$3,[["__scopeId","data-v-9788e731"]]),c$4="24px",b=(g,_)=>{const E=g.__vccOpts||g;for(const[k,I]of _)E[k]=I;return E},Hi=g=>(vue$2.pushScopeId("data-v-36414286"),g=g(),vue$2.popScopeId(),g),Mi=["aria-hidden"],Zi={key:0,"data-testid":"kui-icon-svg-title"},Bi=Hi(()=>vue$2.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)),Vi=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon blockquote-icon","data-testid":"kui-icon-wrapper-blockquote-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",Zi,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),Bi],8,Mi))]),_:1},8,["aria-hidden","style"]))}}),a6=b(Vi,[["__scopeId","data-v-36414286"]]),Ei=g=>(vue$2.pushScopeId("data-v-5fde1458"),g=g(),vue$2.popScopeId(),g),Fi=["aria-hidden"],Di={key:0,"data-testid":"kui-icon-svg-title"},Ai=Ei(()=>vue$2.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)),Pi=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon bold-icon","data-testid":"kui-icon-wrapper-bold-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",Di,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),Ai],8,Fi))]),_:1},8,["aria-hidden","style"]))}}),o6=b(Pi,[["__scopeId","data-v-5fde1458"]]),D5=g=>(vue$2.pushScopeId("data-v-6fc1a8ae"),g=g(),vue$2.popScopeId(),g),A5=["aria-hidden"],P5={key:0,"data-testid":"kui-icon-svg-title"},R5=D5(()=>vue$2.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)),U5=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon code-icon","data-testid":"kui-icon-wrapper-code-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",P5,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),R5],8,A5))]),_:1},8,["aria-hidden","style"]))}}),L6=b(U5,[["__scopeId","data-v-6fc1a8ae"]]),T5=g=>(vue$2.pushScopeId("data-v-98ed28a5"),g=g(),vue$2.popScopeId(),g),G5=["aria-hidden"],O5={key:0,"data-testid":"kui-icon-svg-title"},j5=T5(()=>vue$2.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)),W5=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon codeblock-icon","data-testid":"kui-icon-wrapper-codeblock-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",O5,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),j5],8,G5))]),_:1},8,["aria-hidden","style"]))}}),k6=b(W5,[["__scopeId","data-v-98ed28a5"]]),cr=g=>(vue$2.pushScopeId("data-v-76c91d7c"),g=g(),vue$2.popScopeId(),g),ur=["aria-hidden"],fr={key:0,"data-testid":"kui-icon-svg-title"},gr=cr(()=>vue$2.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)),pr=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon collapse-icon","data-testid":"kui-icon-wrapper-collapse-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",fr,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),gr],8,ur))]),_:1},8,["aria-hidden","style"]))}}),M6=b(pr,[["__scopeId","data-v-76c91d7c"]]),$7=g=>(vue$2.pushScopeId("data-v-7e7e1be1"),g=g(),vue$2.popScopeId(),g),_7=["aria-hidden"],L7={key:0,"data-testid":"kui-icon-svg-title"},k7=$7(()=>vue$2.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)),I7=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon download-icon","data-testid":"kui-icon-wrapper-download-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",L7,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),k7],8,_7))]),_:1},8,["aria-hidden","style"]))}}),j6=b(I7,[["__scopeId","data-v-7e7e1be1"]]),V7=g=>(vue$2.pushScopeId("data-v-49115a62"),g=g(),vue$2.popScopeId(),g),E7=["aria-hidden"],F7={key:0,"data-testid":"kui-icon-svg-title"},D7=V7(()=>vue$2.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)),A7=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon edit-icon","data-testid":"kui-icon-wrapper-edit-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",F7,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),D7],8,E7))]),_:1},8,["aria-hidden","style"]))}}),K6=b(A7,[["__scopeId","data-v-49115a62"]]),O7=g=>(vue$2.pushScopeId("data-v-a984bb70"),g=g(),vue$2.popScopeId(),g),j7=["aria-hidden"],W7={key:0,"data-testid":"kui-icon-svg-title"},K7=O7(()=>vue$2.createElementVNode("path",{d:"M3 21V13H5V17.6L17.6 5H13V3H21V11H19V6.4L6.4 19H11V21H3Z",fill:"currentColor"},null,-1)),J7=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon expand-icon","data-testid":"kui-icon-wrapper-expand-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",W7,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),K7],8,j7))]),_:1},8,["aria-hidden","style"]))}}),X6=b(J7,[["__scopeId","data-v-a984bb70"]]),r0=g=>(vue$2.pushScopeId("data-v-eaffddbc"),g=g(),vue$2.popScopeId(),g),n0=["aria-hidden"],a0={key:0,"data-testid":"kui-icon-svg-title"},o0=r0(()=>vue$2.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)),s0=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon html-icon","data-testid":"kui-icon-wrapper-html-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",a0,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),o0],8,n0))]),_:1},8,["aria-hidden","style"]))}}),c9=b(s0,[["__scopeId","data-v-eaffddbc"]]),W0=g=>(vue$2.pushScopeId("data-v-bac13e8c"),g=g(),vue$2.popScopeId(),g),K0=["aria-hidden"],J0={key:0,"data-testid":"kui-icon-svg-title"},X0=W0(()=>vue$2.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)),Q0=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon italic-icon","data-testid":"kui-icon-wrapper-italic-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",J0,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),X0],8,K0))]),_:1},8,["aria-hidden","style"]))}}),m9=b(Q0,[["__scopeId","data-v-bac13e8c"]]),cn=g=>(vue$2.pushScopeId("data-v-c5d05b58"),g=g(),vue$2.popScopeId(),g),un=["aria-hidden"],fn$7={key:0,"data-testid":"kui-icon-svg-title"},gn=cn(()=>vue$2.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)),pn=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon link-icon","data-testid":"kui-icon-wrapper-link-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",fn$7,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),gn],8,un))]),_:1},8,["aria-hidden","style"]))}}),z9=b(pn,[["__scopeId","data-v-c5d05b58"]]),Cn=g=>(vue$2.pushScopeId("data-v-0c9797a8"),g=g(),vue$2.popScopeId(),g),hn=["aria-hidden"],yn={key:0,"data-testid":"kui-icon-svg-title"},vn=Cn(()=>vue$2.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)),mn=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon list-ordered-icon","data-testid":"kui-icon-wrapper-list-ordered-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",yn,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),vn],8,hn))]),_:1},8,["aria-hidden","style"]))}}),N9=b(mn,[["__scopeId","data-v-0c9797a8"]]),bn=g=>(vue$2.pushScopeId("data-v-4ffb5365"),g=g(),vue$2.popScopeId(),g),Sn=["aria-hidden"],zn={key:0,"data-testid":"kui-icon-svg-title"},Nn=bn(()=>vue$2.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)),wn=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon list-unordered-icon","data-testid":"kui-icon-wrapper-list-unordered-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",zn,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),Nn],8,Sn))]),_:1},8,["aria-hidden","style"]))}}),w9=b(wn,[["__scopeId","data-v-4ffb5365"]]),An=g=>(vue$2.pushScopeId("data-v-cfd6ed47"),g=g(),vue$2.popScopeId(),g),Pn=["aria-hidden"],Rn={key:0,"data-testid":"kui-icon-svg-title"},Un=An(()=>vue$2.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)),Tn=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon markdown-icon","data-testid":"kui-icon-wrapper-markdown-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",Rn,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),Un],8,Pn))]),_:1},8,["aria-hidden","style"]))}}),L9=b(Tn,[["__scopeId","data-v-cfd6ed47"]]),w8=g=>(vue$2.pushScopeId("data-v-adfeb306"),g=g(),vue$2.popScopeId(),g),x8=["aria-hidden"],$8={key:0,"data-testid":"kui-icon-svg-title"},_8=w8(()=>vue$2.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)),L8=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon strikethrough-icon","data-testid":"kui-icon-wrapper-strikethrough-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",$8,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),_8],8,x8))]),_:1},8,["aria-hidden","style"]))}}),rd=b(L8,[["__scopeId","data-v-adfeb306"]]),T8=g=>(vue$2.pushScopeId("data-v-cfca9c42"),g=g(),vue$2.popScopeId(),g),G8=["aria-hidden"],O8={key:0,"data-testid":"kui-icon-svg-title"},j8=T8(()=>vue$2.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)),W8=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon table-icon","data-testid":"kui-icon-wrapper-table-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",O8,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),j8],8,G8))]),_:1},8,["aria-hidden","style"]))}}),sd=b(W8,[["__scopeId","data-v-cfca9c42"]]),K8=g=>(vue$2.pushScopeId("data-v-f2829a72"),g=g(),vue$2.popScopeId(),g),J8=["aria-hidden"],X8={key:0,"data-testid":"kui-icon-svg-title"},Q8=K8(()=>vue$2.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)),Y8=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon tasklist-icon","data-testid":"kui-icon-wrapper-tasklist-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",X8,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),Q8],8,J8))]),_:1},8,["aria-hidden","style"]))}}),dd$1=b(Y8,[["__scopeId","data-v-f2829a72"]]),xs=g=>(vue$2.pushScopeId("data-v-931cf71a"),g=g(),vue$2.popScopeId(),g),$s=["aria-hidden"],_s={key:0,"data-testid":"kui-icon-svg-title"},Ls=xs(()=>vue$2.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)),ks=vue$2.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:c$4,validator:g=>{if(typeof g=="number"&&g>0)return!0;if(typeof g=="string"){const _=String(g).replace(/px/gi,""),E=Number(_);if(E&&!isNaN(E)&&Number.isInteger(E)&&E>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(g){const _=g,E=vue$2.computed(()=>{if(typeof _.size=="number"&&_.size>0)return`${_.size}px`;if(typeof _.size=="string"){const I=String(_.size).replace(/px/gi,""),S=Number(I);if(S&&!isNaN(S)&&Number.isInteger(S)&&S>0)return`${S}px`}return c$4}),k=vue$2.computed(()=>({boxSizing:"border-box",color:_.color,display:_.display,height:E.value,lineHeight:"0",width:E.value}));return(I,S)=>(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(g.as),{"aria-hidden":g.decorative?"true":void 0,class:"kui-icon underline-icon","data-testid":"kui-icon-wrapper-underline-icon",style:vue$2.normalizeStyle(k.value)},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createElementBlock("svg",{"aria-hidden":g.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"},[g.title?(vue$2.openBlock(),vue$2.createElementBlock("title",_s,vue$2.toDisplayString(g.title),1)):vue$2.createCommentVNode("",!0),Ls],8,$s))]),_:1},8,["aria-hidden","style"]))}}),pd=b(ks,[["__scopeId","data-v-931cf71a"]]);let getRandomValues;const 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)}const REGEX=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function validate(g){return typeof g=="string"&®EX.test(g)}const byteToHex=[];for(let g=0;g<256;++g)byteToHex.push((g+256).toString(16).slice(1));function unsafeStringify(g,_=0){return byteToHex[g[_+0]]+byteToHex[g[_+1]]+byteToHex[g[_+2]]+byteToHex[g[_+3]]+"-"+byteToHex[g[_+4]]+byteToHex[g[_+5]]+"-"+byteToHex[g[_+6]]+byteToHex[g[_+7]]+"-"+byteToHex[g[_+8]]+byteToHex[g[_+9]]+"-"+byteToHex[g[_+10]]+byteToHex[g[_+11]]+byteToHex[g[_+12]]+byteToHex[g[_+13]]+byteToHex[g[_+14]]+byteToHex[g[_+15]]}function parse$7(g){if(!validate(g))throw TypeError("Invalid UUID");let _;const E=new Uint8Array(16);return E[0]=(_=parseInt(g.slice(0,8),16))>>>24,E[1]=_>>>16&255,E[2]=_>>>8&255,E[3]=_&255,E[4]=(_=parseInt(g.slice(9,13),16))>>>8,E[5]=_&255,E[6]=(_=parseInt(g.slice(14,18),16))>>>8,E[7]=_&255,E[8]=(_=parseInt(g.slice(19,23),16))>>>8,E[9]=_&255,E[10]=(_=parseInt(g.slice(24,36),16))/1099511627776&255,E[11]=_/4294967296&255,E[12]=_>>>24&255,E[13]=_>>>16&255,E[14]=_>>>8&255,E[15]=_&255,E}function stringToBytes(g){g=unescape(encodeURIComponent(g));const _=[];for(let E=0;E<g.length;++E)_.push(g.charCodeAt(E));return _}const DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",URL$1="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function v35(g,_,E){function k(I,S,D,$){var M;if(typeof I=="string"&&(I=stringToBytes(I)),typeof S=="string"&&(S=parse$7(S)),((M=S)===null||M===void 0?void 0:M.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let R=new Uint8Array(16+I.length);if(R.set(S),R.set(I,S.length),R=E(R),R[6]=R[6]&15|_,R[8]=R[8]&63|128,D){$=$||0;for(let j=0;j<16;++j)D[$+j]=R[j];return D}return unsafeStringify(R)}try{k.name=g}catch{}return k.DNS=DNS,k.URL=URL$1,k}const randomUUID=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),native={randomUUID};function v4(g,_,E){if(native.randomUUID&&!_&&!g)return native.randomUUID();g=g||{};const k=g.random||(g.rng||rng)();if(k[6]=k[6]&15|64,k[8]=k[8]&63|128,_){E=E||0;for(let I=0;I<16;++I)_[E+I]=k[I];return _}return unsafeStringify(k)}function f$1(g,_,E,k){switch(g){case 0:return _&E^~_&k;case 1:return _^E^k;case 2:return _&E^_&k^E&k;case 3:return _^E^k}}function ROTL(g,_){return g<<_|g>>>32-_}function sha1(g){const _=[1518500249,1859775393,2400959708,3395469782],E=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof g=="string"){const D=unescape(encodeURIComponent(g));g=[];for(let $=0;$<D.length;++$)g.push(D.charCodeAt($))}else Array.isArray(g)||(g=Array.prototype.slice.call(g));g.push(128);const k=g.length/4+2,I=Math.ceil(k/16),S=new Array(I);for(let D=0;D<I;++D){const $=new Uint32Array(16);for(let M=0;M<16;++M)$[M]=g[D*64+M*4]<<24|g[D*64+M*4+1]<<16|g[D*64+M*4+2]<<8|g[D*64+M*4+3];S[D]=$}S[I-1][14]=(g.length-1)*8/Math.pow(2,32),S[I-1][14]=Math.floor(S[I-1][14]),S[I-1][15]=(g.length-1)*8&4294967295;for(let D=0;D<I;++D){const $=new Uint32Array(80);for(let U=0;U<16;++U)$[U]=S[D][U];for(let U=16;U<80;++U)$[U]=ROTL($[U-3]^$[U-8]^$[U-14]^$[U-16],1);let M=E[0],R=E[1],j=E[2],q=E[3],G=E[4];for(let U=0;U<80;++U){const Y=Math.floor(U/20),V=ROTL(M,5)+f$1(Y,R,j,q)+G+_[Y]+$[U]>>>0;G=q,q=j,j=ROTL(R,30)>>>0,R=M,M=V}E[0]=E[0]+M>>>0,E[1]=E[1]+R>>>0,E[2]=E[2]+j>>>0,E[3]=E[3]+q>>>0,E[4]=E[4]+G>>>0}return[E[0]>>24&255,E[0]>>16&255,E[0]>>8&255,E[0]&255,E[1]>>24&255,E[1]>>16&255,E[1]>>8&255,E[1]&255,E[2]>>24&255,E[2]>>16&255,E[2]>>8&255,E[2]&255,E[3]>>24&255,E[3]>>16&255,E[3]>>8&255,E[3]&255,E[4]>>24&255,E[4]>>16&255,E[4]>>8&255,E[4]&255]}const v5=v35("v5",80,sha1),_withScopeId$1=g=>(vue$2.pushScopeId("data-v-5e411156"),g=g(),vue$2.popScopeId(),g),_hoisted_1$2={class:"toolbar-left"},_hoisted_2$1={class:"button-group",role:"radiogroup"},_hoisted_3$1=["id"],_hoisted_4$1=_withScopeId$1(()=>vue$2.createElementVNode("div",{class:"toolbar-divider"},null,-1)),_hoisted_5$1=_withScopeId$1(()=>vue$2.createElementVNode("div",{class:"toolbar-divider"},null,-1)),_hoisted_6$1={key:2,class:"toolbar-right","data-testid":"slot-toolbar-right"},_hoisted_7$1={key:3,class:"editor-actions","data-testid":"slot-editor-actions"},_sfc_main$2=vue$2.defineComponent({__name:"MarkdownToolbar",emits:["format-selection","insert-template","change-mode","toggle-html-preview","toggle-fullscreen"],setup(g,{emit:_}){vue$2.useCssVars(ae=>({"5b0ced0f":vue$2.unref(TOOLBAR_HEIGHT)}));const E=vue$2.inject(UNIQUE_ID_INJECTION_KEY,vue$2.ref(v4())),k=vue$2.inject(MODE_INJECTION_KEY,vue$2.ref("read")),I=vue$2.inject(EDITABLE_INJECTION_KEY,vue$2.ref(!1)),S=vue$2.inject(THEME_INJECTION_KEY,vue$2.ref("light")),D=vue$2.inject(FULLSCREEN_INJECTION_KEY,vue$2.ref(!1)),$=vue$2.inject(HTML_PREVIEW_INJECTION_KEY,vue$2.ref(!1)),M=_,R=vue$2.ref(null),{arrivedState:j}=useScroll(R),q=useMediaQuery(`(min-width: ${KUI_BREAKPOINT_PHABLET})`),G=()=>{k.value==="split"&&!q.value&&U("edit")};vue$2.watch(q,()=>{G()});const U=ae=>{k.value!==ae&&M("change-mode",ae)},Y=ae=>{var ce;M("toggle-fullscreen"),(ce=ae==null?void 0:ae.target)==null||ce.blur()},V=ae=>{var ce;M("toggle-html-preview"),(ce=ae==null?void 0:ae.target)==null||ce.blur()},te=[{label:"Bold",action:"bold",keys:["B"],icon:o6},{label:"Italic",action:"italic",keys:["I"],icon:m9},{label:"Underline",action:"underline",keys:["U"],icon:pd},{label:"Strikethrough",action:"strikethrough",keys:["Shift","X"],icon:rd},{label:"Code",action:"code",keys:["Shift","C"],icon:L6},{label:"Link",action:"link",icon:z9}],ne=[{label:"Unordered List",action:"unordered-list",icon:w9},{label:"Ordered List",action:"ordered-list",icon:N9},{label:"Tasklist",action:"task",icon:dd$1},{label:"Codeblock",action:"codeblock",icon:k6},{label:"Table",action:"table",icon:sd},{label:"Blockquote",action:"blockquote",icon:a6}];return vue$2.onMounted(()=>{G()}),(ae,ce)=>vue$2.unref(I)&&vue$2.unref(k)!=="read"?(vue$2.openBlock(),vue$2.createElementBlock("div",{key:0,ref_key:"toolbar",ref:R,class:vue$2.normalizeClass(["markdown-ui-toolbar",`theme-${vue$2.unref(S)}`]),"data-testid":"toolbar"},[vue$2.unref(I)?(vue$2.openBlock(),vue$2.createElementBlock("div",{key:0,class:vue$2.normalizeClass(["toolbar-overlay left",{"overlay-visible":!vue$2.unref(j).left}])},null,2)):vue$2.createCommentVNode("",!0),vue$2.unref(I)?(vue$2.openBlock(),vue$2.createElementBlock("div",{key:1,class:vue$2.normalizeClass(["toolbar-overlay right",{"overlay-visible":!vue$2.unref(j).right}])},null,2)):vue$2.createCommentVNode("",!0),vue$2.createElementVNode("div",_hoisted_1$2,[vue$2.createElementVNode("div",_hoisted_2$1,[vue$2.createElementVNode("label",{id:`editor-mode-options-${vue$2.unref(E)}`,class:"sr-only"},"Select the editor mode",8,_hoisted_3$1),vue$2.createVNode(ToolbarButton,{"aria-checked":vue$2.unref(k)==="edit","aria-labelledby":`editor-mode-options-${vue$2.unref(E)}`,class:vue$2.normalizeClass(["edit",{active:vue$2.unref(k)==="edit"}]),"data-testid":"edit-mode-button",disabled:vue$2.unref(k)==="edit",icon:!1,role:"radio",type:"button",onClick:ce[0]||(ce[0]=vue$2.withModifiers(de=>U("edit"),["prevent"]))},{default:vue$2.withCtx(()=>[vue$2.createTextVNode(" Edit ")]),_:1},8,["aria-checked","aria-labelledby","class","disabled"]),vue$2.createVNode(ToolbarButton,{"aria-checked":vue$2.unref(k)==="split","aria-labelledby":`editor-mode-options-${vue$2.unref(E)}`,class:vue$2.normalizeClass(["mode-split-button",["split",{active:vue$2.unref(k)==="split"}]]),"data-testid":"split-mode-button",disabled:vue$2.unref(k)==="split",icon:!1,role:"radio",type:"button",onClick:ce[1]||(ce[1]=vue$2.withModifiers(de=>U("split"),["prevent"]))},{default:vue$2.withCtx(()=>[vue$2.createTextVNode(" Split ")]),_:1},8,["aria-checked","aria-labelledby","class","disabled"]),vue$2.createVNode(ToolbarButton,{"aria-checked":vue$2.unref(k)==="preview","aria-labelledby":`editor-mode-options-${vue$2.unref(E)}`,class:vue$2.normalizeClass(["preview",{active:vue$2.unref(k)==="preview"}]),"data-testid":"preview-mode-button",disabled:vue$2.unref(k)==="preview",icon:!1,role:"radio",type:"button",onClick:ce[2]||(ce[2]=vue$2.withModifiers(de=>U("preview"),["prevent"]))},{default:vue$2.withCtx(()=>[vue$2.createTextVNode(" Preview ")]),_:1},8,["aria-checked","aria-labelledby","class","disabled"])]),vue$2.unref(I)&&!["preview","read"].includes(vue$2.unref(k))?(vue$2.openBlock(),vue$2.createElementBlock(vue$2.Fragment,{key:0},[(vue$2.openBlock(),vue$2.createElementBlock(vue$2.Fragment,null,vue$2.renderList(te,de=>vue$2.createVNode(InfoTooltip,{key:de.label,"data-testid":`tooltip-${de.action}`,"text-old":de.label},{tooltip:vue$2.withCtx(()=>[vue$2.createVNode(TooltipShortcut,{keys:de.keys,text:de.label},null,8,["keys","text"])]),default:vue$2.withCtx(()=>[vue$2.createVNode(ToolbarButton,{"aria-label":de.label,"data-testid":`format-option-${de.action}`,onClick:vue$2.withModifiers(pe=>M("format-selection",de.action),["prevent"])},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(de.icon),{class:"button-icon",size:vue$2.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,(vue$2.openBlock(),vue$2.createElementBlock(vue$2.Fragment,null,vue$2.renderList(ne,de=>vue$2.createVNode(InfoTooltip,{key:de.label,"data-testid":`tooltip-${de.action}`},{tooltip:vue$2.withCtx(()=>[vue$2.createTextVNode(vue$2.toDisplayString(de.label),1)]),default:vue$2.withCtx(()=>[vue$2.createVNode(ToolbarButton,{"aria-label":de.label,"data-testid":`template-option-${de.action}`,onClick:vue$2.withModifiers(pe=>M("insert-template",de.action),["prevent"])},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(de.icon),{class:"button-icon",size:vue$2.unref(KUI_ICON_SIZE_40)},null,8,["size"]))]),_:2},1032,["aria-label","data-testid","onClick"])]),_:2},1032,["data-testid"])),64))],64)):vue$2.createCommentVNode("",!0),_hoisted_5$1,vue$2.createVNode(InfoTooltip,{"data-testid":"tooltip-fullscreen"},{tooltip:vue$2.withCtx(()=>[vue$2.createTextVNode(vue$2.toDisplayString(vue$2.unref(D)?"Exit Fullscreen":"Enter Fullscreen"),1)]),default:vue$2.withCtx(()=>[vue$2.createVNode(ToolbarButton,{"aria-label":vue$2.unref(D)?"Exit Fullscreen":"Enter Fullscreen","data-testid":"toggle-fullscreen",onClick:vue$2.withModifiers(Y,["prevent"])},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(vue$2.unref(D)?vue$2.unref(M6):vue$2.unref(X6)),{class:"button-icon",size:vue$2.unref(KUI_ICON_SIZE_40)},null,8,["size"]))]),_:1},8,["aria-label"])]),_:1}),["split","preview"].includes(vue$2.unref(k))?(vue$2.openBlock(),vue$2.createBlock(InfoTooltip,{key:1,"data-testid":"tooltip-fullscreen"},{tooltip:vue$2.withCtx(()=>[vue$2.createTextVNode(vue$2.toDisplayString(vue$2.unref($)?"Toggle markdown Preview":"Toggle HTML Preview"),1)]),default:vue$2.withCtx(()=>[vue$2.createVNode(ToolbarButton,{"aria-label":vue$2.unref($)?"Toggle markdown Preview":"Toggle HTML Preview","data-testid":"toggle-html-preview",onClick:vue$2.withModifiers(V,["prevent"])},{default:vue$2.withCtx(()=>[(vue$2.openBlock(),vue$2.createBlock(vue$2.resolveDynamicComponent(vue$2.unref($)?vue$2.unref(L9):vue$2.unref(c9)),{class:"button-icon",size:vue$2.unref(KUI_ICON_SIZE_40)},null,8,["size"]))]),_:1},8,["aria-label"])]),_:1})):vue$2.createCommentVNode("",!0)]),ae.$slots["toolbar-right"]?(vue$2.openBlock(),vue$2.createElementBlock("div",_hoisted_6$1,[vue$2.renderSlot(ae.$slots,"toolbar-right",{},void 0,!0)])):vue$2.createCommentVNode("",!0),ae.$slots["editor-actions"]?(vue$2.openBlock(),vue$2.createElementBlock("div",_hoisted_7$1,[vue$2.renderSlot(ae.$slots,"editor-actions",{},void 0,!0)])):vue$2.createCommentVNode("",!0)],2)):vue$2.createCommentVNode("",!0)}}),MarkdownToolbar=_export_sfc(_sfc_main$2,[["__scopeId","data-v-5e411156"]]),_hoisted_1$1=["innerHTML"],_sfc_main$1=vue$2.defineComponent({__name:"MarkdownContent",props:{content:{type:String,default:""}},setup(g){const _=vue$2.inject(MODE_INJECTION_KEY,vue$2.ref("read")),E=vue$2.inject(THEME_INJECTION_KEY,vue$2.ref("light")),k=g,I=vue$2.ref(k.content);return vue$2.watch(()=>k.content,S=>{I.value=S},{immediate:!0}),(S,D)=>(vue$2.openBlock(),vue$2.createElementBlock("div",{class:vue$2.normalizeClass(["markdown-content",[`mode-${vue$2.unref(_)}`,`theme-${vue$2.unref(E)}`]]),"data-testid":"markdown-content",innerHTML:I.value},null,10,_hoisted_1$1))}}),MarkdownContent=_export_sfc(_sfc_main$1,[["__scopeId","data-v-eac4c7eb"]]);function useDebounce(){return{debounce:(_,E)=>{let k;return(...I)=>{clearTimeout(k),k=window==null?void 0:window.setTimeout(()=>{_(...I)},E)}}}}function useMarkdownActions(g,_){const E=vue$2.reactive({start:0,end:0,text:""}),k=()=>{if(!g.value)throw new Error("getTextarea: Could not find the textarea template ref");return g.value},I=()=>{try{const G=k();if(!G)return;E.start=G.selectionStart||0,E.end=G.selectionEnd||0,E.text=G.value.substring(G.selectionStart,G.selectionEnd)||""}catch(G){console.warn("getTextSelection",G),E.start=0,E.end=0,E.text=""}},S=async()=>{const G=k();G&&(G.focus(),await vue$2.nextTick())},D=async G=>{try{const U=k();let Y="";switch(G){case"bold":Y=InlineFormatWrapper.bold;break;case"italic":Y=InlineFormatWrapper.italic;break;case"underline":Y=InlineFormatWrapper.underline;break;case"strikethrough":Y=InlineFormatWrapper.strikethrough;break;case"subscript":Y=InlineFormatWrapper.subscript;break;case"superscript":Y=InlineFormatWrapper.superscript;break;case"mark":Y=InlineFormatWrapper.mark;break;case"code":Y=InlineFormatWrapper.code;break}if(!U||!Y)return;I();const V=Y.length,te=_.value.substring(0,E.start),ne=_.value.substring(E.end);if(E.text.length===0)if(te.endsWith(Y)&&ne.startsWith(Y)){_.value=te.substring(0,te.length-V)+ne.substring(V),await S(),U.selectionEnd=E.start-V;return}else{_.value=_.value.substring(0,E.start)+Y+Y+_.value.substring(E.end),await S(),U.selectionEnd=E.start+V;return}let ae=!1;const ce=E.text.startsWith(Y)&&E.text.endsWith(Y),de=te.endsWith(Y)&&ne.startsWith(Y);(ce||de)&&(ae=!0);let pe=E.text;ae?ae&&ce&&(pe=E.text.slice(V,-V)):pe=Y+E.text+Y,ae&&de?_.value=_.value.substring(0,E.start-V)+pe+_.value.substring(E.end+V):_.value=_.value.substring(0,E.start)+pe+_.value.substring(E.end),await S(),ae?ae&&ce?U.setSelectionRange(E.start,E.end-V*2):ae&&de&&U.setSelectionRange(E.start-V,E.end-V):U.setSelectionRange(E.start,E.end+V*2)}catch(U){console.warn("toggleInlineFormatting",U)}},$=async(G,U)=>{try{const Y=k();if(!Y)return;I();let V="";Array.from(Array(U).keys()).forEach(()=>V+=" ");let te=0;const ne=_.value.substring(0,E.start);if(G==="remove"&&!ne.endsWith(V)&&!ne.endsWith(" "+MARKDOWN_TEMPLATE_UL)&&!/ {2}\d{1,}\. $/.test(ne))return;if(E.text.length!==0)te=(E.text.match(/\n(?!\n)/g)||[]).length,G==="add"?_.value=ne+V+E.text.replace(/\n(?!\n)/g,`${NEW_LINE_CHARACTER}${V}`)+_.value.substring(E.end):_.value=_.value.substring(0,E.start-V.length)+E.text.replaceAll(`${NEW_LINE_CHARACTER}${V}`,NEW_LINE_CHARACTER)+_.value.substring(E.end);else if(ne.endsWith(MARKDOWN_TEMPLATE_UL))_.value=G==="add"?_.value.substring(0,E.start-MARKDOWN_TEMPLATE_UL.length)+V+MARKDOWN_TEMPLATE_UL+_.value.substring(E.end):_.value.substring(0,E.start-V.length-MARKDOWN_TEMPLATE_UL.length)+MARKDOWN_TEMPLATE_UL+_.value.substring(E.end);else if(/\d{1,}\. $/.test(ne.split(NEW_LINE_CHARACTER).pop()||"")){const ae=MARKDOWN_TEMPLATE_OL.replace("1",""),ce=Number((ne.split(NEW_LINE_CHARACTER).at(-2)||ne.split(NEW_LINE_CHARACTER).pop()||"").trimStart().split(ae)[0])+1;_.value=G==="add"?_.value.substring(0,E.start-MARKDOWN_TEMPLATE_OL.length)+V+MARKDOWN_TEMPLATE_OL+_.value.substring(E.end):_.value.substring(0,E.start-V.length-(ce+ae).length)+(ce+ae)+_.value.substring(E.end)}else _.value=G==="add"?ne+V+_.value.substring(E.end):_.value.substring(0,E.start-V.length)+_.value.substring(E.end);if(await S(),E.text.length!==0){const ae=U+te*U;Y.selectionStart=G==="add"?E.start+V.length:E.start-V.length,Y.selectionEnd=G==="add"?E.end+ae:E.end-ae}else Y.selectionEnd=G==="add"?E.start+V.length:E.start-V.length}catch(Y){console.warn("toggleTab",Y)}},M=(G,U)=>{var Y,V;return U===MARKDOWN_TEMPLATE_OL?/^\d{1,}\. /.test(String(((Y=G==null?void 0:G.split(NEW_LINE_CHARACTER))==null?void 0:Y.pop())||"")):String(((V=G==null?void 0:G.split(NEW_LINE_CHARACTER))==null?void 0:V.pop())||"").endsWith(U)};return{selectedText:E,getTextSelection:I,toggleInlineFormatting:D,toggleTab:$,insertMarkdownTemplate:async G=>{try{const U=k();if(!U||!G||(I(),E.text.length!==0))return;const Y=_.value.substring(0,E.start),V=Y.length===0||Y.endsWith(`${NEW_LINE_CHARACTER}${NEW_LINE_CHARACTER}`)?"":/(.*)?[^\n]$/.test(Y)?`${NEW_LINE_CHARACTER}${NEW_LINE_CHARACTER}`:NEW_LINE_CHARACTER;let te="";switch(G){case"task":if(M(Y,MARKDOWN_TEMPLATE_TASK)){await S();return}te=V+MARKDOWN_TEMPLATE_TASK;break;case"unordered-list":if(M(Y,MARKDOWN_TEMPLATE_UL)){await S();return}te=V+MARKDOWN_TEMPLATE_UL;break;case"ordered-list":if(M(Y,MARKDOWN_TEMPLATE_OL)){await S();return}te=V+MARKDOWN_TEMPLATE_OL;break;case"blockquote":if(M(Y,MARKDOWN_TEMPLATE_BLOCKQUOTE)){await S();return}te=V+MARKDOWN_TEMPLATE_BLOCKQUOTE;break;case"codeblock":te=V+MARKDOWN_TEMPLATE_CODEBLOCK;break;case"table":te=V+MARKDOWN_TEMPLATE_TABLE;break}if(!te)return;switch(_.value=Y+te+_.value.substring(E.end),await S(),G){case"codeblock":U.selectionStart=E.start+(V.length+3),U.selectionEnd=E.start+(V.length+3)+DEFAULT_CODEBLOCK_LANGUAGE.length;break;default:U.selectionEnd=E.start+te.length;break}}catch(U){console.warn("insertMarkdownTemplate",U)}},insertLink:async()=>{try{const G=k();if(!G)return;I();const U=_.value.substring(0,E.start),Y=_.value.substring(E.end);let V="";if(E.text.length!==0){if(E.text==="url"&&U.endsWith("(")&&Y.startsWith(")")){await S();return}const te=/^http(s)?:\/\//.test(E.text);V=te?MARKDOWN_TEMPLATE_LINK.replace(/text/,"").replace(/url/,E.text):MARKDOWN_TEMPLATE_LINK.replace(/text/,E.text),_.value=U+V+Y,await S(),te?G.selectionEnd=E.start+1:(G.selectionStart=U.length+E.text.length+3,G.selectionEnd=U.length+E.text.length+6)}else{if(U.endsWith(MARKDOWN_TEMPLATE_LINK.split("text")[0])&&/^\]\((.*)+\)/.test(Y)){await S();return}V=MARKDOWN_TEMPLATE_LINK.replace(/text/,"");let te=1;/\w+$/.test(U)?(V=" "+V,te++):/^\w+/.test(Y)&&(V+=" "),_.value=U+V+Y,await S(),G.selectionEnd=E.start+te}}catch(G){console.warn("insertLink",G)}},insertNewLine:async()=>{var G;try{const U=k();if(!U)return;I();const Y=_.value.substring(0,E.start),V=((G=Y==null?void 0:Y.split(NEW_LINE_CHARACTER))==null?void 0:G.pop())||"";let te=NEW_LINE_CHARACTER,ne=!1,ae=0;const ce=[MARKDOWN_TEMPLATE_TASK,MARKDOWN_TEMPLATE_UL,MARKDOWN_TEMPLATE_OL,MARKDOWN_TEMPLATE_BLOCKQUOTE];for(const pe of ce)if(pe===MARKDOWN_TEMPLATE_OL){if(/^\d{1,}\. /.test(V.trimStart())){const le=MARKDOWN_TEMPLATE_OL.replace("1",""),ue=Number(V.trimStart().split(le)[0]);if(!isNaN(ue)&&ue>0){const ge=ue+1;ae=String(ge+le).length,/^\d{1,}\. $/.test(V.trimStart())?ne=!0:te+=V.split(ue+le)[0]+ge+le}break}}else{const le=pe===MARKDOWN_TEMPLATE_TASK&&V.trimStart().toLowerCase().startsWith(MARKDOWN_TEMPLATE_TASK_COMPLETED.toLowerCase());if(V.trimStart().startsWith(pe)||le){ae=pe.length,V.trimStart()===pe?ne=!0:le?te+=V.toLowerCase().split(MARKDOWN_TEMPLATE_TASK_COMPLETED.toLowerCase())[0]+pe:te+=V.split(pe)[0]+pe;break}}let de="";te===NEW_LINE_CHARACTER&&Array.from(Array(V.length-V.trimStart().length).keys()).forEach(()=>de+=" "),_.value=ne?_.value.substring(0,E.start-V.length)+_.value.substring(E.end):Y+te+de+_.value.substring(E.end),await S(),U.selectionEnd=ne?E.start-ae:E.start+te.length+de.length}catch(U){console.warn("insertNewLine",U)}}}}function useKeyboardShortcuts(g,_,E,k){const I=useActiveElement(),S=vue$2.computed(()=>{var G,U,Y;return!!((G=I.value)!=null&&G.id)&&((U=I.value)==null?void 0:U.id)===((Y=g.value)==null?void 0:Y.id)}),{toggleInlineFormatting:D,insertNewLine:$,getTextSelection:M,selectedText:R,toggleTab:j}=useMarkdownActions(g,_),q=G=>{let U;switch(G.key){case"b":U="bold";break;case"i":U="italic";break;case"u":U="underline";break;case"x":G.shiftKey&&(U="strikethrough");break;case"c":G.shiftKey&&(U="code");break}return U};useMagicKeys({passive:!1,onEventFired(G){if(!(!S.value||G.type!=="keydown")){if(G.key&&(G.ctrlKey||G.metaKey)){const U=q(G);U&&(G.preventDefault(),D(U),k())}G.key&&G.key==="Enter"&&!G.shiftKey&&(G.preventDefault(),$(),k()),G.key&&G.key==="Tab"&&(M(),R.text&&(G.preventDefault(),G.shiftKey?j("remove",E.value):j("add",E.value),k()))}}})}function setupMarkdownIt(g,_,E){const{parseMetaString:k,trimEndingNewline:I=!0}=E;g.options.highlight=(S,D="text",$)=>{const M=(k==null?void 0:k($,S,D))||{},R={...E,lang:D,meta:{...E.meta,...M,__raw:$}},j=[];return j.push({name:"@shikijs/markdown-it:block-class",code(q){q.properties.class=`language-${D}`}}),I&&S.endsWith(`
|
|
3
3
|
`)&&(S=S.slice(0,-1)),_.codeToHtml(S,{...R,transformers:[...j,...R.transformers||[]]})}}function fromHighlighter(g,_){return function(E){setupMarkdownIt(E,g,_)}}var FontStyle;(function(g){g[g.NotSet=-1]="NotSet",g[g.None=0]="None",g[g.Italic=1]="Italic",g[g.Bold=2]="Bold",g[g.Underline=4]="Underline"})(FontStyle||(FontStyle={})),typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var EncodedTokenAttributes;(function(g){function _(j){return j.toString(2).padStart(32,"0")}g.toBinaryStr=_;function E(j){const q=g.getLanguageId(j),G=g.getTokenType(j),U=g.getFontStyle(j),Y=g.getForeground(j),V=g.getBackground(j);console.log({languageId:q,tokenType:G,fontStyle:U,foreground:Y,background:V})}g.print=E;function k(j){return(j&255)>>>0}g.getLanguageId=k;function I(j){return(j&768)>>>8}g.getTokenType=I;function S(j){return(j&1024)!==0}g.containsBalancedBrackets=S;function D(j){return(j&30720)>>>11}g.getFontStyle=D;function $(j){return(j&16744448)>>>15}g.getForeground=$;function M(j){return(j&4278190080)>>>24}g.getBackground=M;function R(j,q,G,U,Y,V,te){let ne=g.getLanguageId(j),ae=g.getTokenType(j),ce=g.containsBalancedBrackets(j)?1:0,de=g.getFontStyle(j),pe=g.getForeground(j),le=g.getBackground(j);return q!==0&&(ne=q),G!==8&&(ae=G),U!==null&&(ce=U?1:0),Y!==-1&&(de=Y),V!==0&&(pe=V),te!==0&&(le=te),(ne<<0|ae<<8|ce<<10|de<<11|pe<<15|le<<24)>>>0}g.set=R})(EncodedTokenAttributes||(EncodedTokenAttributes={}));function toOptionalTokenType(g){return g}function fromOptionalTokenType(g){return g}function createMatchers(g,_){const E=[],k=newTokenizer(g);let I=k.next();for(;I!==null;){let M=0;if(I.length===2&&I.charAt(1)===":"){switch(I.charAt(0)){case"R":M=1;break;case"L":M=-1;break;default:console.log(`Unknown priority ${I} in scope selector`)}I=k.next()}let R=D();if(E.push({matcher:R,priority:M}),I!==",")break;I=k.next()}return E;function S(){if(I==="-"){I=k.next();const M=S();return R=>!!M&&!M(R)}if(I==="("){I=k.next();const M=$();return I===")"&&(I=k.next()),M}if(isIdentifier(I)){const M=[];do M.push(I),I=k.next();while(isIdentifier(I));return R=>_(M,R)}return null}function D(){const M=[];let R=S();for(;R;)M.push(R),R=S();return j=>M.every(q=>q(j))}function $(){const M=[];let R=D();for(;R&&(M.push(R),I==="|"||I===",");){do I=k.next();while(I==="|"||I===",");R=D()}return j=>M.some(q=>q(j))}}function isIdentifier(g){return!!g&&!!g.match(/[\w\.:]+/)}function newTokenizer(g){let _=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,E=_.exec(g);return{next:()=>{if(!E)return null;const k=E[0];return E=_.exec(g),k}}}function disposeOnigString(g){typeof g.dispose=="function"&&g.dispose()}function clone$4(g){return doClone(g)}function doClone(g){return Array.isArray(g)?cloneArray(g):typeof g=="object"?cloneObj(g):g}function cloneArray(g){let _=[];for(let E=0,k=g.length;E<k;E++)_[E]=doClone(g[E]);return _}function cloneObj(g){let _={};for(let E in g)_[E]=doClone(g[E]);return _}function mergeObjects(g,..._){return _.forEach(E=>{for(let k in E)g[k]=E[k]}),g}function basename(g){const _=~g.lastIndexOf("/")||~g.lastIndexOf("\\");return _===0?g:~_===g.length-1?basename(g.substring(0,g.length-1)):g.substr(~_+1)}let CAPTURING_REGEX_SOURCE=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;class RegexSource{static hasCaptures(_){return _===null?!1:(CAPTURING_REGEX_SOURCE.lastIndex=0,CAPTURING_REGEX_SOURCE.test(_))}static replaceCaptures(_,E,k){return _.replace(CAPTURING_REGEX_SOURCE,(I,S,D,$)=>{let M=k[parseInt(S||D,10)];if(M){let R=E.substring(M.start,M.end);for(;R[0]===".";)R=R.substring(1);switch($){case"downcase":return R.toLowerCase();case"upcase":return R.toUpperCase();default:return R}}else return I})}}function strcmp(g,_){return g<_?-1:g>_?1:0}function strArrCmp(g,_){if(g===null&&_===null)return 0;if(!g)return-1;if(!_)return 1;let E=g.length,k=_.length;if(E===k){for(let I=0;I<E;I++){let S=strcmp(g[I],_[I]);if(S!==0)return S}return 0}return E-k}function isValidHexColor(g){return!!(/^#[0-9a-f]{6}$/i.test(g)||/^#[0-9a-f]{8}$/i.test(g)||/^#[0-9a-f]{3}$/i.test(g)||/^#[0-9a-f]{4}$/i.test(g))}function escapeRegExpCharacters(g){return g.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}class CachedFn{constructor(_){kn(this,"fn");kn(this,"cache",new Map);this.fn=_}get(_){if(this.cache.has(_))return this.cache.get(_);const E=this.fn(_);return this.cache.set(_,E),E}}class TopLevelRuleReference{constructor(_){kn(this,"scopeName");this.scopeName=_}toKey(){return this.scopeName}}class TopLevelRepositoryRuleReference{constructor(_,E){kn(this,"scopeName");kn(this,"ruleName");this.scopeName=_,this.ruleName=E}toKey(){return`${this.scopeName}#${this.ruleName}`}}class ExternalReferenceCollector{constructor(){kn(this,"_references",[]);kn(this,"_seenReferenceKeys",new Set);kn(this,"visitedRule",new Set)}get references(){return this._references}add(_){const E=_.toKey();this._seenReferenceKeys.has(E)||(this._seenReferenceKeys.add(E),this._references.push(_))}}class ScopeDependencyProcessor{constructor(_,E){kn(this,"repo");kn(this,"initialScopeName");kn(this,"seenFullScopeRequests",new Set);kn(this,"seenPartialScopeRequests",new Set);kn(this,"Q");this.repo=_,this.initialScopeName=E,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new TopLevelRuleReference(this.initialScopeName)]}processQueue(){const _=this.Q;this.Q=[];const E=new ExternalReferenceCollector;for(const k of _)collectReferencesOfReference(k,this.initialScopeName,this.repo,E);for(const k of E.references)if(k instanceof TopLevelRuleReference){if(this.seenFullScopeRequests.has(k.scopeName))continue;this.seenFullScopeRequests.add(k.scopeName),this.Q.push(k)}else{if(this.seenFullScopeRequests.has(k.scopeName)||this.seenPartialScopeRequests.has(k.toKey()))continue;this.seenPartialScopeRequests.add(k.toKey()),this.Q.push(k)}}}function collectReferencesOfReference(g,_,E,k){const I=E.lookup(g.scopeName);if(!I){if(g.scopeName===_)throw new Error(`No grammar provided for <${_}>`);return}const S=E.lookup(_);g instanceof TopLevelRuleReference?collectExternalReferencesInTopLevelRule({baseGrammar:S,selfGrammar:I},k):collectExternalReferencesInTopLevelRepositoryRule(g.ruleName,{baseGrammar:S,selfGrammar:I,repository:I.repository},k);const D=E.injections(g.scopeName);if(D)for(const $ of D)k.add(new TopLevelRuleReference($))}function collectExternalReferencesInTopLevelRepositoryRule(g,_,E){if(_.repository&&_.repository[g]){const k=_.repository[g];collectExternalReferencesInRules([k],_,E)}}function collectExternalReferencesInTopLevelRule(g,_){g.selfGrammar.patterns&&Array.isArray(g.selfGrammar.patterns)&&collectExternalReferencesInRules(g.selfGrammar.patterns,{...g,repository:g.selfGrammar.repository},_),g.selfGrammar.injections&&collectExternalReferencesInRules(Object.values(g.selfGrammar.injections),{...g,repository:g.selfGrammar.repository},_)}function collectExternalReferencesInRules(g,_,E){for(const k of g){if(E.visitedRule.has(k))continue;E.visitedRule.add(k);const I=k.repository?mergeObjects({},_.repository,k.repository):_.repository;Array.isArray(k.patterns)&&collectExternalReferencesInRules(k.patterns,{..._,repository:I},E);const S=k.include;if(!S)continue;const D=parseInclude(S);switch(D.kind){case 0:collectExternalReferencesInTopLevelRule({..._,selfGrammar:_.baseGrammar},E);break;case 1:collectExternalReferencesInTopLevelRule(_,E);break;case 2:collectExternalReferencesInTopLevelRepositoryRule(D.ruleName,{..._,repository:I},E);break;case 3:case 4:const $=D.scopeName===_.selfGrammar.scopeName?_.selfGrammar:D.scopeName===_.baseGrammar.scopeName?_.baseGrammar:void 0;if($){const M={baseGrammar:_.baseGrammar,selfGrammar:$,repository:I};D.kind===4?collectExternalReferencesInTopLevelRepositoryRule(D.ruleName,M,E):collectExternalReferencesInTopLevelRule(M,E)}else D.kind===4?E.add(new TopLevelRepositoryRuleReference(D.scopeName,D.ruleName)):E.add(new TopLevelRuleReference(D.scopeName));break}}}class BaseReference{constructor(){kn(this,"kind",0)}}class SelfReference{constructor(){kn(this,"kind",1)}}class RelativeReference{constructor(_){kn(this,"ruleName");kn(this,"kind",2);this.ruleName=_}}class TopLevelReference{constructor(_){kn(this,"scopeName");kn(this,"kind",3);this.scopeName=_}}class TopLevelRepositoryReference{constructor(_,E){kn(this,"scopeName");kn(this,"ruleName");kn(this,"kind",4);this.scopeName=_,this.ruleName=E}}function parseInclude(g){if(g==="$base")return new BaseReference;if(g==="$self")return new SelfReference;const _=g.indexOf("#");if(_===-1)return new TopLevelReference(g);if(_===0)return new RelativeReference(g.substring(1));{const E=g.substring(0,_),k=g.substring(_+1);return new TopLevelRepositoryReference(E,k)}}const HAS_BACK_REFERENCES=/\\(\d+)/,BACK_REFERENCING_END=/\\(\d+)/g,endRuleId=-1,whileRuleId=-2;function ruleIdFromNumber(g){return g}function ruleIdToNumber(g){return g}class Rule{constructor(_,E,k,I){kn(this,"$location");kn(this,"id");kn(this,"_nameIsCapturing");kn(this,"_name");kn(this,"_contentNameIsCapturing");kn(this,"_contentName");this.$location=_,this.id=E,this._name=k||null,this._nameIsCapturing=RegexSource.hasCaptures(this._name),this._contentName=I||null,this._contentNameIsCapturing=RegexSource.hasCaptures(this._contentName)}get debugName(){const _=this.$location?`${basename(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${_}`}getName(_,E){return!this._nameIsCapturing||this._name===null||_===null||E===null?this._name:RegexSource.replaceCaptures(this._name,_,E)}getContentName(_,E){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:RegexSource.replaceCaptures(this._contentName,_,E)}}class CaptureRule extends Rule{constructor(E,k,I,S,D){super(E,k,I,S);kn(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=D}dispose(){}collectPatterns(E,k){throw new Error("Not supported!")}compile(E,k){throw new Error("Not supported!")}compileAG(E,k,I,S){throw new Error("Not supported!")}}class MatchRule extends Rule{constructor(E,k,I,S,D){super(E,k,I,null);kn(this,"_match");kn(this,"captures");kn(this,"_cachedCompiledPatterns");this._match=new RegExpSource(S,this.id),this.captures=D,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(E,k){k.push(this._match)}compile(E,k){return this._getCachedCompiledPatterns(E).compile(E)}compileAG(E,k,I,S){return this._getCachedCompiledPatterns(E).compileAG(E,I,S)}_getCachedCompiledPatterns(E){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new RegExpSourceList,this.collectPatterns(E,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class IncludeOnlyRule extends Rule{constructor(E,k,I,S,D){super(E,k,I,S);kn(this,"hasMissingPatterns");kn(this,"patterns");kn(this,"_cachedCompiledPatterns");this.patterns=D.patterns,this.hasMissingPatterns=D.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(E,k){for(const I of this.patterns)E.getRule(I).collectPatterns(E,k)}compile(E,k){return this._getCachedCompiledPatterns(E).compile(E)}compileAG(E,k,I,S){return this._getCachedCompiledPatterns(E).compileAG(E,I,S)}_getCachedCompiledPatterns(E){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new RegExpSourceList,this.collectPatterns(E,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}}class BeginEndRule extends Rule{constructor(E,k,I,S,D,$,M,R,j,q){super(E,k,I,S);kn(this,"_begin");kn(this,"beginCaptures");kn(this,"_end");kn(this,"endHasBackReferences");kn(this,"endCaptures");kn(this,"applyEndPatternLast");kn(this,"hasMissingPatterns");kn(this,"patterns");kn(this,"_cachedCompiledPatterns");this._begin=new RegExpSource(D,this.id),this.beginCaptures=$,this._end=new RegExpSource(M||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=R,this.applyEndPatternLast=j||!1,this.patterns=q.patterns,this.hasMissingPatterns=q.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(E,k){return this._end.resolveBackReferences(E,k)}collectPatterns(E,k){k.push(this._begin)}compile(E,k){return this._getCachedCompiledPatterns(E,k).compile(E)}compileAG(E,k,I,S){return this._getCachedCompiledPatterns(E,k).compileAG(E,I,S)}_getCachedCompiledPatterns(E,k){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new RegExpSourceList;for(const I of this.patterns)E.getRule(I).collectPatterns(E,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,k):this._cachedCompiledPatterns.setSource(0,k)),this._cachedCompiledPatterns}}class BeginWhileRule extends Rule{constructor(E,k,I,S,D,$,M,R,j){super(E,k,I,S);kn(this,"_begin");kn(this,"beginCaptures");kn(this,"whileCaptures");kn(this,"_while");kn(this,"whileHasBackReferences");kn(this,"hasMissingPatterns");kn(this,"patterns");kn(this,"_cachedCompiledPatterns");kn(this,"_cachedCompiledWhilePatterns");this._begin=new RegExpSource(D,this.id),this.beginCaptures=$,this.whileCaptures=R,this._while=new RegExpSource(M,whileRuleId),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=j.patterns,this.hasMissingPatterns=j.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(E,k){return this._while.resolveBackReferences(E,k)}collectPatterns(E,k){k.push(this._begin)}compile(E,k){return this._getCachedCompiledPatterns(E).compile(E)}compileAG(E,k,I,S){return this._getCachedCompiledPatterns(E).compileAG(E,I,S)}_getCachedCompiledPatterns(E){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new RegExpSourceList;for(const k of this.patterns)E.getRule(k).collectPatterns(E,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(E,k){return this._getCachedCompiledWhilePatterns(E,k).compile(E)}compileWhileAG(E,k,I,S){return this._getCachedCompiledWhilePatterns(E,k).compileAG(E,I,S)}_getCachedCompiledWhilePatterns(E,k){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,k||""),this._cachedCompiledWhilePatterns}}class RuleFactory{static createCaptureRule(_,E,k,I,S){return _.registerRule(D=>new CaptureRule(E,D,k,I,S))}static getCompiledRuleId(_,E,k){return _.id||E.registerRule(I=>{if(_.id=I,_.match)return new MatchRule(_.$vscodeTextmateLocation,_.id,_.name,_.match,RuleFactory._compileCaptures(_.captures,E,k));if(typeof _.begin>"u"){_.repository&&(k=mergeObjects({},k,_.repository));let S=_.patterns;return typeof S>"u"&&_.include&&(S=[{include:_.include}]),new IncludeOnlyRule(_.$vscodeTextmateLocation,_.id,_.name,_.contentName,RuleFactory._compilePatterns(S,E,k))}return _.while?new BeginWhileRule(_.$vscodeTextmateLocation,_.id,_.name,_.contentName,_.begin,RuleFactory._compileCaptures(_.beginCaptures||_.captures,E,k),_.while,RuleFactory._compileCaptures(_.whileCaptures||_.captures,E,k),RuleFactory._compilePatterns(_.patterns,E,k)):new BeginEndRule(_.$vscodeTextmateLocation,_.id,_.name,_.contentName,_.begin,RuleFactory._compileCaptures(_.beginCaptures||_.captures,E,k),_.end,RuleFactory._compileCaptures(_.endCaptures||_.captures,E,k),_.applyEndPatternLast,RuleFactory._compilePatterns(_.patterns,E,k))}),_.id}static _compileCaptures(_,E,k){let I=[];if(_){let S=0;for(const D in _){if(D==="$vscodeTextmateLocation")continue;const $=parseInt(D,10);$>S&&(S=$)}for(let D=0;D<=S;D++)I[D]=null;for(const D in _){if(D==="$vscodeTextmateLocation")continue;const $=parseInt(D,10);let M=0;_[D].patterns&&(M=RuleFactory.getCompiledRuleId(_[D],E,k)),I[$]=RuleFactory.createCaptureRule(E,_[D].$vscodeTextmateLocation,_[D].name,_[D].contentName,M)}}return I}static _compilePatterns(_,E,k){let I=[];if(_)for(let S=0,D=_.length;S<D;S++){const $=_[S];let M=-1;if($.include){const R=parseInclude($.include);switch(R.kind){case 0:case 1:M=RuleFactory.getCompiledRuleId(k[$.include],E,k);break;case 2:let j=k[R.ruleName];j&&(M=RuleFactory.getCompiledRuleId(j,E,k));break;case 3:case 4:const q=R.scopeName,G=R.kind===4?R.ruleName:null,U=E.getExternalGrammar(q,k);if(U)if(G){let Y=U.repository[G];Y&&(M=RuleFactory.getCompiledRuleId(Y,E,U.repository))}else M=RuleFactory.getCompiledRuleId(U.repository.$self,E,U.repository);break}}else M=RuleFactory.getCompiledRuleId($,E,k);if(M!==-1){const R=E.getRule(M);let j=!1;if((R instanceof IncludeOnlyRule||R instanceof BeginEndRule||R instanceof BeginWhileRule)&&R.hasMissingPatterns&&R.patterns.length===0&&(j=!0),j)continue;I.push(M)}}return{patterns:I,hasMissingPatterns:(_?_.length:0)!==I.length}}}class RegExpSource{constructor(_,E){kn(this,"source");kn(this,"ruleId");kn(this,"hasAnchor");kn(this,"hasBackReferences");kn(this,"_anchorCache");if(_){const k=_.length;let I=0,S=[],D=!1;for(let $=0;$<k;$++)if(_.charAt($)==="\\"&&$+1<k){const R=_.charAt($+1);R==="z"?(S.push(_.substring(I,$)),S.push("$(?!\\n)(?<!\\n)"),I=$+2):(R==="A"||R==="G")&&(D=!0),$++}this.hasAnchor=D,I===0?this.source=_:(S.push(_.substring(I,k)),this.source=S.join(""))}else this.hasAnchor=!1,this.source=_;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=E,this.hasBackReferences=HAS_BACK_REFERENCES.test(this.source)}clone(){return new RegExpSource(this.source,this.ruleId)}setSource(_){this.source!==_&&(this.source=_,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(_,E){let k=E.map(I=>_.substring(I.start,I.end));return BACK_REFERENCING_END.lastIndex=0,this.source.replace(BACK_REFERENCING_END,(I,S)=>escapeRegExpCharacters(k[parseInt(S,10)]||""))}_buildAnchorCache(){let _=[],E=[],k=[],I=[],S,D,$,M;for(S=0,D=this.source.length;S<D;S++)$=this.source.charAt(S),_[S]=$,E[S]=$,k[S]=$,I[S]=$,$==="\\"&&S+1<D&&(M=this.source.charAt(S+1),M==="A"?(_[S+1]="",E[S+1]="",k[S+1]="A",I[S+1]="A"):M==="G"?(_[S+1]="",E[S+1]="G",k[S+1]="",I[S+1]="G"):(_[S+1]=M,E[S+1]=M,k[S+1]=M,I[S+1]=M),S++);return{A0_G0:_.join(""),A0_G1:E.join(""),A1_G0:k.join(""),A1_G1:I.join("")}}resolveAnchors(_,E){return!this.hasAnchor||!this._anchorCache?this.source:_?E?this._anchorCache.A1_G1:this._anchorCache.A1_G0:E?this._anchorCache.A0_G1:this._anchorCache.A0_G0}}class RegExpSourceList{constructor(){kn(this,"_items");kn(this,"_hasAnchors");kn(this,"_cached");kn(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(_){this._items.push(_),this._hasAnchors=this._hasAnchors||_.hasAnchor}unshift(_){this._items.unshift(_),this._hasAnchors=this._hasAnchors||_.hasAnchor}length(){return this._items.length}setSource(_,E){this._items[_].source!==E&&(this._disposeCaches(),this._items[_].setSource(E))}compile(_){if(!this._cached){let E=this._items.map(k=>k.source);this._cached=new CompiledRule(_,E,this._items.map(k=>k.ruleId))}return this._cached}compileAG(_,E,k){return this._hasAnchors?E?k?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(_,E,k)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(_,E,k)),this._anchorCache.A1_G0):k?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(_,E,k)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(_,E,k)),this._anchorCache.A0_G0):this.compile(_)}_resolveAnchors(_,E,k){let I=this._items.map(S=>S.resolveAnchors(E,k));return new CompiledRule(_,I,this._items.map(S=>S.ruleId))}}class CompiledRule{constructor(_,E,k){kn(this,"regExps");kn(this,"rules");kn(this,"scanner");this.regExps=E,this.rules=k,this.scanner=_.createOnigScanner(E)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const _=[];for(let E=0,k=this.rules.length;E<k;E++)_.push(" - "+this.rules[E]+": "+this.regExps[E]);return _.join(`
|
|
4
4
|
`)}findNextMatchSync(_,E,k){const I=this.scanner.findNextMatchSync(_,E,k);return I?{ruleId:this.rules[I.index],captureIndices:I.captureIndices}:null}}class Theme{constructor(_,E,k){kn(this,"_colorMap");kn(this,"_defaults");kn(this,"_root");kn(this,"_cachedMatchRoot",new CachedFn(_=>this._root.match(_)));this._colorMap=_,this._defaults=E,this._root=k}static createFromRawTheme(_,E){return this.createFromParsedTheme(parseTheme(_),E)}static createFromParsedTheme(_,E){return resolveParsedThemeRules(_,E)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(_){if(_===null)return this._defaults;const E=_.scopeName,I=this._cachedMatchRoot.get(E).find(S=>_scopePathMatchesParentScopes(_.parent,S.parentScopes));return I?new StyleAttributes(I.fontStyle,I.foreground,I.background):null}}class ScopeStack{constructor(_,E){kn(this,"parent");kn(this,"scopeName");this.parent=_,this.scopeName=E}static push(_,E){for(const k of E)_=new ScopeStack(_,k);return _}static from(..._){let E=null;for(let k=0;k<_.length;k++)E=new ScopeStack(E,_[k]);return E}push(_){return new ScopeStack(this,_)}getSegments(){let _=this;const E=[];for(;_;)E.push(_.scopeName),_=_.parent;return E.reverse(),E}toString(){return this.getSegments().join(" ")}extends(_){return this===_?!0:this.parent===null?!1:this.parent.extends(_)}getExtensionIfDefined(_){const E=[];let k=this;for(;k&&k!==_;)E.push(k.scopeName),k=k.parent;return k===_?E.reverse():void 0}}function _scopePathMatchesParentScopes(g,_){if(_===null)return!0;let E=0,k=_[E];for(;g;){if(_matchesScope(g.scopeName,k)){if(E++,E===_.length)return!0;k=_[E]}g=g.parent}return!1}function _matchesScope(g,_){return _===g||g.startsWith(_)&&g[_.length]==="."}class StyleAttributes{constructor(_,E,k){kn(this,"fontStyle");kn(this,"foregroundId");kn(this,"backgroundId");this.fontStyle=_,this.foregroundId=E,this.backgroundId=k}}function parseTheme(g){if(!g)return[];if(!g.settings||!Array.isArray(g.settings))return[];let _=g.settings,E=[],k=0;for(let I=0,S=_.length;I<S;I++){let D=_[I];if(!D.settings)continue;let $;if(typeof D.scope=="string"){let q=D.scope;q=q.replace(/^[,]+/,""),q=q.replace(/[,]+$/,""),$=q.split(",")}else Array.isArray(D.scope)?$=D.scope:$=[""];let M=-1;if(typeof D.settings.fontStyle=="string"){M=0;let q=D.settings.fontStyle.split(" ");for(let G=0,U=q.length;G<U;G++)switch(q[G]){case"italic":M=M|1;break;case"bold":M=M|2;break;case"underline":M=M|4;break;case"strikethrough":M=M|8;break}}let R=null;typeof D.settings.foreground=="string"&&isValidHexColor(D.settings.foreground)&&(R=D.settings.foreground);let j=null;typeof D.settings.background=="string"&&isValidHexColor(D.settings.background)&&(j=D.settings.background);for(let q=0,G=$.length;q<G;q++){let Y=$[q].trim().split(" "),V=Y[Y.length-1],te=null;Y.length>1&&(te=Y.slice(0,Y.length-1),te.reverse()),E[k++]=new ParsedThemeRule(V,te,I,M,R,j)}}return E}class ParsedThemeRule{constructor(_,E,k,I,S,D){kn(this,"scope");kn(this,"parentScopes");kn(this,"index");kn(this,"fontStyle");kn(this,"foreground");kn(this,"background");this.scope=_,this.parentScopes=E,this.index=k,this.fontStyle=I,this.foreground=S,this.background=D}}function resolveParsedThemeRules(g,_){g.sort((M,R)=>{let j=strcmp(M.scope,R.scope);return j!==0||(j=strArrCmp(M.parentScopes,R.parentScopes),j!==0)?j:M.index-R.index});let E=0,k="#000000",I="#ffffff";for(;g.length>=1&&g[0].scope==="";){let M=g.shift();M.fontStyle!==-1&&(E=M.fontStyle),M.foreground!==null&&(k=M.foreground),M.background!==null&&(I=M.background)}let S=new ColorMap(_),D=new StyleAttributes(E,S.getId(k),S.getId(I)),$=new ThemeTrieElement(new ThemeTrieElementRule(0,null,-1,0,0),[]);for(let M=0,R=g.length;M<R;M++){let j=g[M];$.insert(0,j.scope,j.parentScopes,j.fontStyle,S.getId(j.foreground),S.getId(j.background))}return new Theme(S,D,$)}class ColorMap{constructor(_){kn(this,"_isFrozen");kn(this,"_lastColorId");kn(this,"_id2color");kn(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(_)){this._isFrozen=!0;for(let E=0,k=_.length;E<k;E++)this._color2id[_[E]]=E,this._id2color[E]=_[E]}else this._isFrozen=!1}getId(_){if(_===null)return 0;_=_.toUpperCase();let E=this._color2id[_];if(E)return E;if(this._isFrozen)throw new Error(`Missing color in color map - ${_}`);return E=++this._lastColorId,this._color2id[_]=E,this._id2color[E]=_,E}getColorMap(){return this._id2color.slice(0)}}class ThemeTrieElementRule{constructor(_,E,k,I,S){kn(this,"scopeDepth");kn(this,"parentScopes");kn(this,"fontStyle");kn(this,"foreground");kn(this,"background");this.scopeDepth=_,this.parentScopes=E,this.fontStyle=k,this.foreground=I,this.background=S}clone(){return new ThemeTrieElementRule(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(_){let E=[];for(let k=0,I=_.length;k<I;k++)E[k]=_[k].clone();return E}acceptOverwrite(_,E,k,I){this.scopeDepth>_?console.log("how did this happen?"):this.scopeDepth=_,E!==-1&&(this.fontStyle=E),k!==0&&(this.foreground=k),I!==0&&(this.background=I)}}class ThemeTrieElement{constructor(_,E=[],k={}){kn(this,"_mainRule");kn(this,"_children");kn(this,"_rulesWithParentScopes");this._mainRule=_,this._children=k,this._rulesWithParentScopes=E}static _sortBySpecificity(_){return _.length===1||_.sort(this._cmpBySpecificity),_}static _cmpBySpecificity(_,E){if(_.scopeDepth===E.scopeDepth){const k=_.parentScopes,I=E.parentScopes;let S=k===null?0:k.length,D=I===null?0:I.length;if(S===D)for(let $=0;$<S;$++){const M=k[$].length,R=I[$].length;if(M!==R)return R-M}return D-S}return E.scopeDepth-_.scopeDepth}match(_){if(_==="")return ThemeTrieElement._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let E=_.indexOf("."),k,I;return E===-1?(k=_,I=""):(k=_.substring(0,E),I=_.substring(E+1)),this._children.hasOwnProperty(k)?this._children[k].match(I):ThemeTrieElement._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(_,E,k,I,S,D){if(E===""){this._doInsertHere(_,k,I,S,D);return}let $=E.indexOf("."),M,R;$===-1?(M=E,R=""):(M=E.substring(0,$),R=E.substring($+1));let j;this._children.hasOwnProperty(M)?j=this._children[M]:(j=new ThemeTrieElement(this._mainRule.clone(),ThemeTrieElementRule.cloneArr(this._rulesWithParentScopes)),this._children[M]=j),j.insert(_+1,R,k,I,S,D)}_doInsertHere(_,E,k,I,S){if(E===null){this._mainRule.acceptOverwrite(_,k,I,S);return}for(let D=0,$=this._rulesWithParentScopes.length;D<$;D++){let M=this._rulesWithParentScopes[D];if(strArrCmp(M.parentScopes,E)===0){M.acceptOverwrite(_,k,I,S);return}}k===-1&&(k=this._mainRule.fontStyle),I===0&&(I=this._mainRule.foreground),S===0&&(S=this._mainRule.background),this._rulesWithParentScopes.push(new ThemeTrieElementRule(_,E,k,I,S))}}class BasicScopeAttributes{constructor(_,E){kn(this,"languageId");kn(this,"tokenType");this.languageId=_,this.tokenType=E}}const Gd=class Gd{constructor(_,E){kn(this,"_defaultAttributes");kn(this,"_embeddedLanguagesMatcher");kn(this,"_getBasicScopeAttributes",new CachedFn(_=>{const E=this._scopeToLanguage(_),k=this._toStandardTokenType(_);return new BasicScopeAttributes(E,k)}));this._defaultAttributes=new BasicScopeAttributes(_,8),this._embeddedLanguagesMatcher=new ScopeMatcher(Object.entries(E||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(_){return _===null?Gd._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(_)}_scopeToLanguage(_){return this._embeddedLanguagesMatcher.match(_)||0}_toStandardTokenType(_){const E=_.match(Gd.STANDARD_TOKEN_TYPE_REGEXP);if(!E)return 8;switch(E[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!")}};kn(Gd,"_NULL_SCOPE_METADATA",new BasicScopeAttributes(0,0)),kn(Gd,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/);let BasicScopeAttributesProvider=Gd;class ScopeMatcher{constructor(_){kn(this,"values");kn(this,"scopesRegExp");if(_.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(_);const E=_.map(([k,I])=>escapeRegExpCharacters(k));E.sort(),E.reverse(),this.scopesRegExp=new RegExp(`^((${E.join(")|(")}))($|\\.)`,"")}}match(_){if(!this.scopesRegExp)return;const E=_.match(this.scopesRegExp);if(E)return this.values.get(E[1])}}class TokenizeStringResult{constructor(_,E){kn(this,"stack");kn(this,"stoppedEarly");this.stack=_,this.stoppedEarly=E}}function _tokenizeString(g,_,E,k,I,S,D,$){const M=_.content.length;let R=!1,j=-1;if(D){const U=_checkWhileConditions(g,_,E,k,I,S);I=U.stack,k=U.linePos,E=U.isFirstLine,j=U.anchorPosition}const q=Date.now();for(;!R;){if($!==0&&Date.now()-q>$)return new TokenizeStringResult(I,!0);G()}return new TokenizeStringResult(I,!1);function G(){const U=matchRuleOrInjections(g,_,E,k,I,j);if(!U){S.produce(I,M),R=!0;return}const Y=U.captureIndices,V=U.matchedRuleId,te=Y&&Y.length>0?Y[0].end>k:!1;if(V===endRuleId){const ne=I.getRule(g);S.produce(I,Y[0].start),I=I.withContentNameScopesList(I.nameScopesList),handleCaptures(g,_,E,I,S,ne.endCaptures,Y),S.produce(I,Y[0].end);const ae=I;if(I=I.parent,j=ae.getAnchorPos(),!te&&ae.getEnterPos()===k){I=ae,S.produce(I,M),R=!0;return}}else{const ne=g.getRule(V);S.produce(I,Y[0].start);const ae=I,ce=ne.getName(_.content,Y),de=I.contentNameScopesList.pushAttributed(ce,g);if(I=I.push(V,k,j,Y[0].end===M,null,de,de),ne instanceof BeginEndRule){const pe=ne;handleCaptures(g,_,E,I,S,pe.beginCaptures,Y),S.produce(I,Y[0].end),j=Y[0].end;const le=pe.getContentName(_.content,Y),ue=de.pushAttributed(le,g);if(I=I.withContentNameScopesList(ue),pe.endHasBackReferences&&(I=I.withEndRule(pe.getEndWithResolvedBackReferences(_.content,Y))),!te&&ae.hasSameRuleAs(I)){I=I.pop(),S.produce(I,M),R=!0;return}}else if(ne instanceof BeginWhileRule){const pe=ne;handleCaptures(g,_,E,I,S,pe.beginCaptures,Y),S.produce(I,Y[0].end),j=Y[0].end;const le=pe.getContentName(_.content,Y),ue=de.pushAttributed(le,g);if(I=I.withContentNameScopesList(ue),pe.whileHasBackReferences&&(I=I.withEndRule(pe.getWhileWithResolvedBackReferences(_.content,Y))),!te&&ae.hasSameRuleAs(I)){I=I.pop(),S.produce(I,M),R=!0;return}}else if(handleCaptures(g,_,E,I,S,ne.captures,Y),S.produce(I,Y[0].end),I=I.pop(),!te){I=I.safePop(),S.produce(I,M),R=!0;return}}Y[0].end>k&&(k=Y[0].end,E=!1)}}function _checkWhileConditions(g,_,E,k,I,S){let D=I.beginRuleCapturedEOL?0:-1;const $=[];for(let M=I;M;M=M.pop()){const R=M.getRule(g);R instanceof BeginWhileRule&&$.push({rule:R,stack:M})}for(let M=$.pop();M;M=$.pop()){const{ruleScanner:R,findOptions:j}=prepareRuleWhileSearch(M.rule,g,M.stack.endRule,E,k===D),q=R.findNextMatchSync(_,k,j);if(q){if(q.ruleId!==whileRuleId){I=M.stack.pop();break}q.captureIndices&&q.captureIndices.length&&(S.produce(M.stack,q.captureIndices[0].start),handleCaptures(g,_,E,M.stack,S,M.rule.whileCaptures,q.captureIndices),S.produce(M.stack,q.captureIndices[0].end),D=q.captureIndices[0].end,q.captureIndices[0].end>k&&(k=q.captureIndices[0].end,E=!1))}else{I=M.stack.pop();break}}return{stack:I,linePos:k,anchorPosition:D,isFirstLine:E}}function matchRuleOrInjections(g,_,E,k,I,S){const D=matchRule(g,_,E,k,I,S),$=g.getInjections();if($.length===0)return D;const M=matchInjections($,g,_,E,k,I,S);if(!M)return D;if(!D)return M;const R=D.captureIndices[0].start,j=M.captureIndices[0].start;return j<R||M.priorityMatch&&j===R?M:D}function matchRule(g,_,E,k,I,S){const D=I.getRule(g),{ruleScanner:$,findOptions:M}=prepareRuleSearch(D,g,I.endRule,E,k===S),R=$.findNextMatchSync(_,k,M);return R?{captureIndices:R.captureIndices,matchedRuleId:R.ruleId}:null}function matchInjections(g,_,E,k,I,S,D){let $=Number.MAX_VALUE,M=null,R,j=0;const q=S.contentNameScopesList.getScopeNames();for(let G=0,U=g.length;G<U;G++){const Y=g[G];if(!Y.matcher(q))continue;const V=_.getRule(Y.ruleId),{ruleScanner:te,findOptions:ne}=prepareRuleSearch(V,_,null,k,I===D),ae=te.findNextMatchSync(E,I,ne);if(!ae)continue;const ce=ae.captureIndices[0].start;if(!(ce>=$)&&($=ce,M=ae.captureIndices,R=ae.ruleId,j=Y.priority,$===I))break}return M?{priorityMatch:j===-1,captureIndices:M,matchedRuleId:R}:null}function prepareRuleSearch(g,_,E,k,I){return{ruleScanner:g.compileAG(_,E,k,I),findOptions:0}}function prepareRuleWhileSearch(g,_,E,k,I){return{ruleScanner:g.compileWhileAG(_,E,k,I),findOptions:0}}function handleCaptures(g,_,E,k,I,S,D){if(S.length===0)return;const $=_.content,M=Math.min(S.length,D.length),R=[],j=D[0].end;for(let q=0;q<M;q++){const G=S[q];if(G===null)continue;const U=D[q];if(U.length===0)continue;if(U.start>j)break;for(;R.length>0&&R[R.length-1].endPos<=U.start;)I.produceFromScopes(R[R.length-1].scopes,R[R.length-1].endPos),R.pop();if(R.length>0?I.produceFromScopes(R[R.length-1].scopes,U.start):I.produce(k,U.start),G.retokenizeCapturedWithRuleId){const V=G.getName($,D),te=k.contentNameScopesList.pushAttributed(V,g),ne=G.getContentName($,D),ae=te.pushAttributed(ne,g),ce=k.push(G.retokenizeCapturedWithRuleId,U.start,-1,!1,null,te,ae),de=g.createOnigString($.substring(0,U.end));_tokenizeString(g,de,E&&U.start===0,U.start,ce,I,!1,0),disposeOnigString(de);continue}const Y=G.getName($,D);if(Y!==null){const te=(R.length>0?R[R.length-1].scopes:k.contentNameScopesList).pushAttributed(Y,g);R.push(new LocalStackElement(te,U.end))}}for(;R.length>0;)I.produceFromScopes(R[R.length-1].scopes,R[R.length-1].endPos),R.pop()}class LocalStackElement{constructor(_,E){kn(this,"scopes");kn(this,"endPos");this.scopes=_,this.endPos=E}}function createGrammar(g,_,E,k,I,S,D,$){return new Grammar(g,_,E,k,I,S,D,$)}function collectInjections(g,_,E,k,I){const S=createMatchers(_,nameMatcher),D=RuleFactory.getCompiledRuleId(E,k,I.repository);for(const $ of S)g.push({debugSelector:_,matcher:$.matcher,ruleId:D,grammar:I,priority:$.priority})}function nameMatcher(g,_){if(_.length<g.length)return!1;let E=0;return g.every(k=>{for(let I=E;I<_.length;I++)if(scopesAreMatching(_[I],k))return E=I+1,!0;return!1})}function scopesAreMatching(g,_){if(!g)return!1;if(g===_)return!0;const E=_.length;return g.length>E&&g.substr(0,E)===_&&g[E]==="."}class Grammar{constructor(_,E,k,I,S,D,$,M){kn(this,"_rootScopeName");kn(this,"balancedBracketSelectors");kn(this,"_onigLib");kn(this,"_rootId");kn(this,"_lastRuleId");kn(this,"_ruleId2desc");kn(this,"_includedGrammars");kn(this,"_grammarRepository");kn(this,"_grammar");kn(this,"_injections");kn(this,"_basicScopeAttributesProvider");kn(this,"_tokenTypeMatchers");if(this._rootScopeName=_,this.balancedBracketSelectors=D,this._onigLib=M,this._basicScopeAttributesProvider=new BasicScopeAttributesProvider(k,I),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=$,this._grammar=initGrammar(E,null),this._injections=null,this._tokenTypeMatchers=[],S)for(const R of Object.keys(S)){const j=createMatchers(R,nameMatcher);for(const q of j)this._tokenTypeMatchers.push({matcher:q.matcher,type:S[R]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const _ of this._ruleId2desc)_&&_.dispose()}createOnigScanner(_){return this._onigLib.createOnigScanner(_)}createOnigString(_){return this._onigLib.createOnigString(_)}getMetadataForScope(_){return this._basicScopeAttributesProvider.getBasicScopeAttributes(_)}_collectInjections(){const _={lookup:S=>S===this._rootScopeName?this._grammar:this.getExternalGrammar(S),injections:S=>this._grammarRepository.injections(S)},E=[],k=this._rootScopeName,I=_.lookup(k);if(I){const S=I.injections;if(S)for(let $ in S)collectInjections(E,$,S[$],this,I);const D=this._grammarRepository.injections(k);D&&D.forEach($=>{const M=this.getExternalGrammar($);if(M){const R=M.injectionSelector;R&&collectInjections(E,R,M,this,M)}})}return E.sort((S,D)=>S.priority-D.priority),E}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(_){const E=++this._lastRuleId,k=_(E);return this._ruleId2desc[E]=k,k}getRule(_){return this._ruleId2desc[_]}getExternalGrammar(_,E){if(this._includedGrammars[_])return this._includedGrammars[_];if(this._grammarRepository){const k=this._grammarRepository.lookup(_);if(k)return this._includedGrammars[_]=initGrammar(k,E&&E.$base),this._includedGrammars[_]}}tokenizeLine(_,E,k=0){const I=this._tokenize(_,E,!1,k);return{tokens:I.lineTokens.getResult(I.ruleStack,I.lineLength),ruleStack:I.ruleStack,stoppedEarly:I.stoppedEarly}}tokenizeLine2(_,E,k=0){const I=this._tokenize(_,E,!0,k);return{tokens:I.lineTokens.getBinaryResult(I.ruleStack,I.lineLength),ruleStack:I.ruleStack,stoppedEarly:I.stoppedEarly}}_tokenize(_,E,k,I){this._rootId===-1&&(this._rootId=RuleFactory.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let S;if(!E||E===StateStackImpl.NULL){S=!0;const j=this._basicScopeAttributesProvider.getDefaultAttributes(),q=this.themeProvider.getDefaults(),G=EncodedTokenAttributes.set(0,j.languageId,j.tokenType,null,q.fontStyle,q.foregroundId,q.backgroundId),U=this.getRule(this._rootId).getName(null,null);let Y;U?Y=AttributedScopeStack.createRootAndLookUpScopeName(U,G,this):Y=AttributedScopeStack.createRoot("unknown",G),E=new StateStackImpl(null,this._rootId,-1,-1,!1,null,Y,Y)}else S=!1,E.reset();_=_+`
|
|
5
5
|
`;const D=this.createOnigString(_),$=D.content.length,M=new LineTokens(k,_,this._tokenTypeMatchers,this.balancedBracketSelectors),R=_tokenizeString(this,D,S,0,E,M,!0,I);return disposeOnigString(D),{lineLength:$,lineTokens:M,ruleStack:R.stack,stoppedEarly:R.stoppedEarly}}}function initGrammar(g,_){return g=clone$4(g),g.repository=g.repository||{},g.repository.$self={$vscodeTextmateLocation:g.$vscodeTextmateLocation,patterns:g.patterns,name:g.scopeName},g.repository.$base=_||g.repository.$self,g}class AttributedScopeStack{constructor(_,E,k){kn(this,"parent");kn(this,"scopePath");kn(this,"tokenAttributes");this.parent=_,this.scopePath=E,this.tokenAttributes=k}static fromExtension(_,E){let k=_,I=(_==null?void 0:_.scopePath)??null;for(const S of E)I=ScopeStack.push(I,S.scopeNames),k=new AttributedScopeStack(k,I,S.encodedTokenAttributes);return k}static createRoot(_,E){return new AttributedScopeStack(null,new ScopeStack(null,_),E)}static createRootAndLookUpScopeName(_,E,k){const I=k.getMetadataForScope(_),S=new ScopeStack(null,_),D=k.themeProvider.themeMatch(S),$=AttributedScopeStack.mergeAttributes(E,I,D);return new AttributedScopeStack(null,S,$)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(_){return AttributedScopeStack.equals(this,_)}static equals(_,E){do{if(_===E||!_&&!E)return!0;if(!_||!E||_.scopeName!==E.scopeName||_.tokenAttributes!==E.tokenAttributes)return!1;_=_.parent,E=E.parent}while(!0)}static mergeAttributes(_,E,k){let I=-1,S=0,D=0;return k!==null&&(I=k.fontStyle,S=k.foregroundId,D=k.backgroundId),EncodedTokenAttributes.set(_,E.languageId,E.tokenType,null,I,S,D)}pushAttributed(_,E){if(_===null)return this;if(_.indexOf(" ")===-1)return AttributedScopeStack._pushAttributed(this,_,E);const k=_.split(/ /g);let I=this;for(const S of k)I=AttributedScopeStack._pushAttributed(I,S,E);return I}static _pushAttributed(_,E,k){const I=k.getMetadataForScope(E),S=_.scopePath.push(E),D=k.themeProvider.themeMatch(S),$=AttributedScopeStack.mergeAttributes(_.tokenAttributes,I,D);return new AttributedScopeStack(_,S,$)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(_){var I;const E=[];let k=this;for(;k&&k!==_;)E.push({encodedTokenAttributes:k.tokenAttributes,scopeNames:k.scopePath.getExtensionIfDefined(((I=k.parent)==null?void 0:I.scopePath)??null)}),k=k.parent;return k===_?E.reverse():void 0}}const Tu=class Tu{constructor(_,E,k,I,S,D,$,M){kn(this,"parent");kn(this,"ruleId");kn(this,"beginRuleCapturedEOL");kn(this,"endRule");kn(this,"nameScopesList");kn(this,"contentNameScopesList");kn(this,"_stackElementBrand");kn(this,"_enterPos");kn(this,"_anchorPos");kn(this,"depth");this.parent=_,this.ruleId=E,this.beginRuleCapturedEOL=S,this.endRule=D,this.nameScopesList=$,this.contentNameScopesList=M,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=k,this._anchorPos=I}equals(_){return _===null?!1:Tu._equals(this,_)}static _equals(_,E){return _===E?!0:this._structuralEquals(_,E)?AttributedScopeStack.equals(_.contentNameScopesList,E.contentNameScopesList):!1}static _structuralEquals(_,E){do{if(_===E||!_&&!E)return!0;if(!_||!E||_.depth!==E.depth||_.ruleId!==E.ruleId||_.endRule!==E.endRule)return!1;_=_.parent,E=E.parent}while(!0)}clone(){return this}static _reset(_){for(;_;)_._enterPos=-1,_._anchorPos=-1,_=_.parent}reset(){Tu._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(_,E,k,I,S,D,$){return new Tu(this,_,E,k,I,S,D,$)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(_){return _.getRule(this.ruleId)}toString(){const _=[];return this._writeString(_,0),"["+_.join(",")+"]"}_writeString(_,E){var k,I;return this.parent&&(E=this.parent._writeString(_,E)),_[E++]=`(${this.ruleId}, ${(k=this.nameScopesList)==null?void 0:k.toString()}, ${(I=this.contentNameScopesList)==null?void 0:I.toString()})`,E}withContentNameScopesList(_){return this.contentNameScopesList===_?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,_)}withEndRule(_){return this.endRule===_?this:new Tu(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,_,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(_){let E=this;for(;E&&E._enterPos===_._enterPos;){if(E.ruleId===_.ruleId)return!0;E=E.parent}return!1}toStateStackFrame(){var _,E,k;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((E=this.nameScopesList)==null?void 0:E.getExtensionIfDefined(((_=this.parent)==null?void 0:_.nameScopesList)??null))??[],contentNameScopesList:((k=this.contentNameScopesList)==null?void 0:k.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(_,E){const k=AttributedScopeStack.fromExtension((_==null?void 0:_.nameScopesList)??null,E.nameScopesList);return new Tu(_,E.ruleId,E.enterPos??-1,E.anchorPos??-1,E.beginRuleCapturedEOL,E.endRule,k,AttributedScopeStack.fromExtension(k,E.contentNameScopesList))}};kn(Tu,"NULL",new Tu(null,0,0,0,!1,null,null,null));let StateStackImpl=Tu;class BalancedBracketSelectors{constructor(_,E){kn(this,"balancedBracketScopes");kn(this,"unbalancedBracketScopes");kn(this,"allowAny",!1);this.balancedBracketScopes=_.flatMap(k=>k==="*"?(this.allowAny=!0,[]):createMatchers(k,nameMatcher).map(I=>I.matcher)),this.unbalancedBracketScopes=E.flatMap(k=>createMatchers(k,nameMatcher).map(I=>I.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(_){for(const E of this.unbalancedBracketScopes)if(E(_))return!1;for(const E of this.balancedBracketScopes)if(E(_))return!0;return this.allowAny}}class LineTokens{constructor(_,E,k,I){kn(this,"balancedBracketSelectors");kn(this,"_emitBinaryTokens");kn(this,"_lineText");kn(this,"_tokens");kn(this,"_binaryTokens");kn(this,"_lastTokenEndIndex");kn(this,"_tokenTypeOverrides");this.balancedBracketSelectors=I,this._emitBinaryTokens=_,this._tokenTypeOverrides=k,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(_,E){this.produceFromScopes(_.contentNameScopesList,E)}produceFromScopes(_,E){var I;if(this._lastTokenEndIndex>=E)return;if(this._emitBinaryTokens){let S=(_==null?void 0:_.tokenAttributes)??0,D=!1;if((I=this.balancedBracketSelectors)!=null&&I.matchesAlways&&(D=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const $=(_==null?void 0:_.getScopeNames())??[];for(const M of this._tokenTypeOverrides)M.matcher($)&&(S=EncodedTokenAttributes.set(S,0,M.type,null,-1,0,0));this.balancedBracketSelectors&&(D=this.balancedBracketSelectors.match($))}if(D&&(S=EncodedTokenAttributes.set(S,0,8,D,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===S){this._lastTokenEndIndex=E;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(S),this._lastTokenEndIndex=E;return}const k=(_==null?void 0:_.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:E,scopes:k}),this._lastTokenEndIndex=E}getResult(_,E){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===E-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(_,E),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(_,E){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===E-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(_,E),this._binaryTokens[this._binaryTokens.length-2]=0);const k=new Uint32Array(this._binaryTokens.length);for(let I=0,S=this._binaryTokens.length;I<S;I++)k[I]=this._binaryTokens[I];return k}}class SyncRegistry{constructor(_,E){kn(this,"_onigLibPromise");kn(this,"_grammars",new Map);kn(this,"_rawGrammars",new Map);kn(this,"_injectionGrammars",new Map);kn(this,"_theme");this._onigLibPromise=E,this._theme=_}dispose(){for(const _ of this._grammars.values())_.dispose()}setTheme(_){this._theme=_}getColorMap(){return this._theme.getColorMap()}addGrammar(_,E){this._rawGrammars.set(_.scopeName,_),E&&this._injectionGrammars.set(_.scopeName,E)}lookup(_){return this._rawGrammars.get(_)}injections(_){return this._injectionGrammars.get(_)}getDefaults(){return this._theme.getDefaults()}themeMatch(_){return this._theme.match(_)}async grammarForScopeName(_,E,k,I,S){if(!this._grammars.has(_)){let D=this._rawGrammars.get(_);if(!D)return null;this._grammars.set(_,createGrammar(_,D,E,k,I,S,this,await this._onigLibPromise))}return this._grammars.get(_)}}let Registry$1=class{constructor(_){kn(this,"_options");kn(this,"_syncRegistry");kn(this,"_ensureGrammarCache");this._options=_,this._syncRegistry=new SyncRegistry(Theme.createFromRawTheme(_.theme,_.colorMap),_.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(_,E){this._syncRegistry.setTheme(Theme.createFromRawTheme(_,E))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(_,E,k){return this.loadGrammarWithConfiguration(_,E,{embeddedLanguages:k})}loadGrammarWithConfiguration(_,E,k){return this._loadGrammar(_,E,k.embeddedLanguages,k.tokenTypes,new BalancedBracketSelectors(k.balancedBracketSelectors||[],k.unbalancedBracketSelectors||[]))}loadGrammar(_){return this._loadGrammar(_,0,null,null,null)}async _loadGrammar(_,E,k,I,S){const D=new ScopeDependencyProcessor(this._syncRegistry,_);for(;D.Q.length>0;)await Promise.all(D.Q.map($=>this._loadSingleGrammar($.scopeName))),D.processQueue();return this._grammarForScopeName(_,E,k,I,S)}async _loadSingleGrammar(_){return this._ensureGrammarCache.has(_)||this._ensureGrammarCache.set(_,this._doLoadSingleGrammar(_)),this._ensureGrammarCache.get(_)}async _doLoadSingleGrammar(_){const E=await this._options.loadGrammar(_);if(E){const k=typeof this._options.getInjections=="function"?this._options.getInjections(_):void 0;this._syncRegistry.addGrammar(E,k)}}async addGrammar(_,E=[],k=0,I=null){return this._syncRegistry.addGrammar(_,E),await this._grammarForScopeName(_.scopeName,k,I)}_grammarForScopeName(_,E=0,k=null,I=null,S=null){return this._syncRegistry.grammarForScopeName(_,E,k,I,S)}};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(_){let E=_.toString(2);for(;E.length<32;)E=`0${E}`;return E}static getLanguageId(_){return(_&MetadataConsts.LANGUAGEID_MASK)>>>MetadataConsts.LANGUAGEID_OFFSET}static getTokenType(_){return(_&MetadataConsts.TOKEN_TYPE_MASK)>>>MetadataConsts.TOKEN_TYPE_OFFSET}static getFontStyle(_){return(_&MetadataConsts.FONT_STYLE_MASK)>>>MetadataConsts.FONT_STYLE_OFFSET}static getForeground(_){return(_&MetadataConsts.FOREGROUND_MASK)>>>MetadataConsts.FOREGROUND_OFFSET}static getBackground(_){return(_&MetadataConsts.BACKGROUND_MASK)>>>MetadataConsts.BACKGROUND_OFFSET}static containsBalancedBrackets(_){return(_&MetadataConsts.BALANCED_BRACKETS_MASK)!==0}static set(_,E,k,I,S,D){let $=StackElementMetadata.getLanguageId(_),M=StackElementMetadata.getTokenType(_),R=StackElementMetadata.getFontStyle(_),j=StackElementMetadata.getForeground(_),q=StackElementMetadata.getBackground(_);const G=StackElementMetadata.containsBalancedBrackets(_)?1:0;return E!==0&&($=E),k!==0&&(M=k===8?0:k),I!==FontStyle.NotSet&&(R=I),S!==0&&(j=S),D!==0&&(q=D),($<<MetadataConsts.LANGUAGEID_OFFSET|M<<MetadataConsts.TOKEN_TYPE_OFFSET|R<<MetadataConsts.FONT_STYLE_OFFSET|G<<MetadataConsts.BALANCED_BRACKETS_OFFSET|j<<MetadataConsts.FOREGROUND_OFFSET|q<<MetadataConsts.BACKGROUND_OFFSET)>>>0}}function splitLines(g,_=!1){var S;const E=g.split(/(\r?\n)/g);let k=0;const I=[];for(let D=0;D<E.length;D+=2){const $=_?E[D]+(E[D+1]||""):E[D];I.push([$,k]),k+=E[D].length,k+=((S=E[D+1])==null?void 0:S.length)||0}return I}function isPlainLang(g){return!g||["plaintext","txt","text","plain"].includes(g)}function isSpecialLang(g){return g==="ansi"||isPlainLang(g)}function isNoneTheme(g){return g==="none"}function isSpecialTheme(g){return isNoneTheme(g)}function addClassToHast(g,_){var k;if(!_)return g;g.properties||(g.properties={}),(k=g.properties).class||(k.class=[]),typeof g.properties.class=="string"&&(g.properties.class=g.properties.class.split(/\s+/g)),Array.isArray(g.properties.class)||(g.properties.class=[]);const E=Array.isArray(_)?_:_.split(/\s+/g);for(const I of E)I&&!g.properties.class.includes(I)&&g.properties.class.push(I);return g}function splitToken(g,_){let E=0;const k=[];for(const I of _)I>E&&k.push({...g,content:g.content.slice(E,I),offset:g.offset+E}),E=I;return E<g.content.length&&k.push({...g,content:g.content.slice(E),offset:g.offset+E}),k}function splitTokens(g,_){const E=Array.from(_ instanceof Set?_:new Set(_)).sort((k,I)=>k-I);return E.length?g.map(k=>k.flatMap(I=>{const S=E.filter(D=>I.offset<D&&D<I.offset+I.content.length).map(D=>D-I.offset).sort((D,$)=>D-$);return S.length?splitToken(I,S):I})):g}function applyColorReplacements(g,_){return(_==null?void 0:_[g==null?void 0:g.toLowerCase()])||g}function getTokenStyleObject(g){const _={};return g.color&&(_.color=g.color),g.bgColor&&(_["background-color"]=g.bgColor),g.fontStyle&&(g.fontStyle&FontStyle.Italic&&(_["font-style"]="italic"),g.fontStyle&FontStyle.Bold&&(_["font-weight"]="bold"),g.fontStyle&FontStyle.Underline&&(_["text-decoration"]="underline")),_}function stringifyTokenStyle(g){return Object.entries(g).map(([_,E])=>`${_}:${E}`).join(";")}function createPositionConverter(g){const _=splitLines(g,!0).map(([I])=>I);function E(I){let S=I,D=0;for(const $ of _){if(S<$.length)break;S-=$.length,D++}return{line:D,character:S}}function k(I,S){let D=0;for(let $=0;$<I;$++)D+=_[$].length;return D+=S,D}return{lines:_,indexToPos:E,posToIndex:k}}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(g,_){const E=g.indexOf("\x1B[",_);if(E!==-1){const k=g.indexOf("m",E);return{sequence:g.substring(E+2,k).split(";"),startPosition:E,position:k+1}}return{position:g.length}}function parseColor(g,_){let E=1;const k=g[_+E++];let I;if(k==="2"){const S=[g[_+E++],g[_+E++],g[_+E]].map(D=>Number.parseInt(D));S.length===3&&!S.some(D=>Number.isNaN(D))&&(I={type:"rgb",rgb:S})}else if(k==="5"){const S=Number.parseInt(g[_+E]);Number.isNaN(S)||(I={type:"table",index:Number(S)})}return[E,I]}function parseSequence(g){const _=[];for(let E=0;E<g.length;E++){const k=g[E],I=Number.parseInt(k);if(!Number.isNaN(I))if(I===0)_.push({type:"resetAll"});else if(I<=9)decorations[I]&&_.push({type:"setDecoration",value:decorations[I]});else if(I<=29){const S=decorations[I-20];S&&_.push({type:"resetDecoration",value:S})}else if(I<=37)_.push({type:"setForegroundColor",value:{type:"named",name:namedColors[I-30]}});else if(I===38){const[S,D]=parseColor(g,E);D&&_.push({type:"setForegroundColor",value:D}),E+=S}else if(I===39)_.push({type:"resetForegroundColor"});else if(I<=47)_.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[I-40]}});else if(I===48){const[S,D]=parseColor(g,E);D&&_.push({type:"setBackgroundColor",value:D}),E+=S}else I===49?_.push({type:"resetBackgroundColor"}):I>=90&&I<=97?_.push({type:"setForegroundColor",value:{type:"named",name:namedColors[I-90+8]}}):I>=100&&I<=107&&_.push({type:"setBackgroundColor",value:{type:"named",name:namedColors[I-100+8]}})}return _}function createAnsiSequenceParser(){let g=null,_=null,E=new Set;return{parse(k){const I=[];let S=0;do{const D=findSequence(k,S),$=D.sequence?k.substring(S,D.startPosition):k.substring(S);if($.length>0&&I.push({value:$,foreground:g,background:_,decorations:new Set(E)}),D.sequence){const M=parseSequence(D.sequence);for(const R of M)R.type==="resetAll"?(g=null,_=null,E.clear()):R.type==="resetForegroundColor"?g=null:R.type==="resetBackgroundColor"?_=null:R.type==="resetDecoration"&&E.delete(R.value);for(const R of M)R.type==="setForegroundColor"?g=R.value:R.type==="setBackgroundColor"?_=R.value:R.type==="setDecoration"&&E.add(R.value)}S=D.position}while(S<k.length);return I}}}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(g=defaultNamedColorsMap){function _($){return g[$]}function E($){return`#${$.map(M=>Math.max(0,Math.min(M,255)).toString(16).padStart(2,"0")).join("")}`}let k;function I(){if(k)return k;k=[];for(let R=0;R<namedColors.length;R++)k.push(_(namedColors[R]));let $=[0,95,135,175,215,255];for(let R=0;R<6;R++)for(let j=0;j<6;j++)for(let q=0;q<6;q++)k.push(E([$[R],$[j],$[q]]));let M=8;for(let R=0;R<24;R++,M+=10)k.push(E([M,M,M]));return k}function S($){return I()[$]}function D($){switch($.type){case"named":return _($.name);case"rgb":return E($.rgb);case"table":return S($.index)}}return{value:D}}function tokenizeAnsiWithTheme(g,_,E){const k={...g.colorReplacements,...E==null?void 0:E.colorReplacements},I=splitLines(_),S=createColorPalette(Object.fromEntries(namedColors.map($=>{var M;return[$,(M=g.colors)==null?void 0:M[`terminal.ansi${$[0].toUpperCase()}${$.substring(1)}`]]}))),D=createAnsiSequenceParser();return I.map($=>D.parse($[0]).map(M=>{let R,j;M.decorations.has("reverse")?(R=M.background?S.value(M.background):g.bg,j=M.foreground?S.value(M.foreground):g.fg):(R=M.foreground?S.value(M.foreground):g.fg,j=M.background?S.value(M.background):void 0),R=applyColorReplacements(R,k),M.decorations.has("dim")&&(R=dimColor(R));let q=FontStyle.None;return M.decorations.has("bold")&&(q|=FontStyle.Bold),M.decorations.has("italic")&&(q|=FontStyle.Italic),M.decorations.has("underline")&&(q|=FontStyle.Underline),{content:M.value,offset:$[1],color:R,bgColor:j,fontStyle:q}}))}function dimColor(g){const _=g.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(_)if(_[3]){const k=Math.round(Number.parseInt(_[3],16)/2).toString(16).padStart(2,"0");return`#${_[1]}${_[2]}${k}`}else return _[2]?`#${_[1]}${_[2]}80`:`#${Array.from(_[1]).map(k=>`${k}${k}`).join("")}80`;const E=g.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return E?`var(${E[1]}-dim)`:g}function codeToTokensBase(g,_,E={}){const{lang:k="text",theme:I=g.getLoadedThemes()[0]}=E;if(isPlainLang(k)||isNoneTheme(I))return splitLines(_).map(M=>[{content:M[0],offset:M[1]}]);const{theme:S,colorMap:D}=g.setTheme(I);if(k==="ansi")return tokenizeAnsiWithTheme(S,_,E);const $=g.getLanguage(k);return tokenizeWithTheme(_,$,S,D,E)}function tokenizeWithTheme(g,_,E,k,I){const S={...E.colorReplacements,...I==null?void 0:I.colorReplacements},{tokenizeMaxLineLength:D=0,tokenizeTimeLimit:$=500}=I,M=splitLines(g);let R=INITIAL,j=[];const q=[];for(let G=0,U=M.length;G<U;G++){const[Y,V]=M[G];if(Y===""){j=[],q.push([]);continue}if(D>0&&Y.length>=D){j=[],q.push([{content:Y,offset:V,color:"",fontStyle:0}]);continue}let te,ne,ae;I.includeExplanation&&(te=_.tokenizeLine(Y,R),ne=te.tokens,ae=0);const ce=_.tokenizeLine2(Y,R,$),de=ce.tokens.length/2;for(let pe=0;pe<de;pe++){const le=ce.tokens[2*pe],ue=pe+1<de?ce.tokens[2*pe+2]:Y.length;if(le===ue)continue;const ge=ce.tokens[2*pe+1],Ae=StackElementMetadata.getForeground(ge),ye=applyColorReplacements(k[Ae],S),ie=StackElementMetadata.getFontStyle(ge),we={content:Y.substring(le,ue),offset:V+le,color:ye,fontStyle:ie};if(I.includeExplanation){we.explanation=[];let oe=0;for(;le+oe<ue;){const xe=ne[ae],Le=Y.substring(xe.startIndex,xe.endIndex);oe+=Le.length,we.explanation.push({content:Le,scopes:explainThemeScopes(E,xe.scopes)}),ae+=1}}j.push(we)}q.push(j),j=[],R=ce.ruleStack}return q}function explainThemeScopes(g,_){const E=[];for(let k=0,I=_.length;k<I;k++){const S=_.slice(0,k),D=_[k];E[k]={scopeName:D,themeMatches:explainThemeScope(g,D,S)}}return E}function matchesOne(g,_){const E=`${g}.`;return g===_||_.substring(0,E.length)===E}function matches$2(g,_,E,k){if(!matchesOne(g,E))return!1;let I=_.length-1,S=k.length-1;for(;I>=0&&S>=0;)matchesOne(_[I],k[S])&&(I-=1),S-=1;return I===-1}function explainThemeScope(g,_,E){const k=[];let I=0;for(let S=0,D=g.settings.length;S<D;S++){const $=g.settings[S];let M;if(typeof $.scope=="string")M=$.scope.split(/,/).map(R=>R.trim());else if(Array.isArray($.scope))M=$.scope;else continue;for(let R=0,j=M.length;R<j;R++){const G=M[R].split(/ /),U=G[G.length-1],Y=G.slice(0,G.length-1);matches$2(U,Y,_,E)&&(k[I++]=$,R=j)}}return k}function codeToTokensWithThemes(g,_,E){const k=Object.entries(E.themes).filter(D=>D[1]).map(D=>({color:D[0],theme:D[1]})),I=syncThemesTokenization(...k.map(D=>codeToTokensBase(g,_,{...E,theme:D.theme})));return I[0].map((D,$)=>D.map((M,R)=>{const j={content:M.content,variants:{},offset:M.offset};return I.forEach((q,G)=>{const{content:U,explanation:Y,offset:V,...te}=q[$][R];j.variants[k[G].color]=te}),j}))}function syncThemesTokenization(...g){const _=g.map(()=>[]),E=g.length;for(let k=0;k<g[0].length;k++){const I=g.map(M=>M[k]),S=_.map(()=>[]);_.forEach((M,R)=>M.push(S[R]));const D=I.map(()=>0),$=I.map(M=>M[0]);for(;$.every(M=>M);){const M=Math.min(...$.map(R=>R.content.length));for(let R=0;R<E;R++){const j=$[R];j.content.length===M?(S[R].push(j),D[R]+=1,$[R]=I[R][D[R]]):(S[R].push({...j,content:j.content.slice(0,M)}),$[R]={...j,content:j.content.slice(M),offset:j.offset+M})}}}return _}class ShikiError extends Error{constructor(_){super(_),this.name="ShikiError"}}function codeToTokens(g,_,E){let k,I,S,D,$;if("themes"in E){const{defaultColor:M="light",cssVariablePrefix:R="--shiki-"}=E,j=Object.entries(E.themes).filter(Y=>Y[1]).map(Y=>({color:Y[0],theme:Y[1]})).sort((Y,V)=>Y.color===M?-1:V.color===M?1:0);if(j.length===0)throw new ShikiError("`themes` option must not be empty");const q=codeToTokensWithThemes(g,_,E);if(M&&!j.find(Y=>Y.color===M))throw new ShikiError(`\`themes\` option must contain the defaultColor key \`${M}\``);const G=j.map(Y=>g.getTheme(Y.theme)),U=j.map(Y=>Y.color);S=q.map(Y=>Y.map(V=>mergeToken(V,U,R,M))),I=j.map((Y,V)=>(V===0&&M?"":`${R+Y.color}:`)+(G[V].fg||"inherit")).join(";"),k=j.map((Y,V)=>(V===0&&M?"":`${R+Y.color}-bg:`)+(G[V].bg||"inherit")).join(";"),D=`shiki-themes ${G.map(Y=>Y.name).join(" ")}`,$=M?void 0:[I,k].join(";")}else if("theme"in E){S=codeToTokensBase(g,_,E);const M=g.getTheme(E.theme);k=M.bg,I=M.fg,D=M.name}else throw new ShikiError("Invalid options, either `theme` or `themes` must be provided");return{tokens:S,fg:I,bg:k,themeName:D,rootStyle:$}}function mergeToken(g,_,E,k){const I={content:g.content,explanation:g.explanation,offset:g.offset},S=_.map(M=>getTokenStyleObject(g.variants[M])),D=new Set(S.flatMap(M=>Object.keys(M))),$=S.reduce((M,R,j)=>{for(const q of D){const G=R[q]||"inherit";if(j===0&&k)M[q]=G;else{const U=q==="color"?"":q==="background-color"?"-bg":`-${q}`,Y=E+_[j]+(q==="color"?"":U);M[q]?M[q]+=`;${Y}:${G}`:M[q]=`${Y}:${G}`}}return M},{});return I.htmlStyle=k?stringifyTokenStyle($):Object.values($).join(";"),I}function transformerDecorations(){const g=new WeakMap;function _(k){if(!g.has(k.meta)){let S=function($){return typeof $=="number"?{...I.indexToPos($),offset:$}:{...$,offset:I.posToIndex($.line,$.character)}};const I=createPositionConverter(k.source),D=(k.options.decorations||[]).map($=>({...$,start:S($.start),end:S($.end)}));E(D),g.set(k.meta,{decorations:D,converter:I,source:k.source})}return g.get(k.meta)}function E(k){for(let I=0;I<k.length;I++){const S=k[I];if(S.start.offset>S.end.offset)throw new ShikiError(`Invalid decoration range: ${JSON.stringify(S.start)} - ${JSON.stringify(S.end)}`);for(let D=I+1;D<k.length;D++){const $=k[D],M=S.start.offset<$.start.offset&&$.start.offset<S.end.offset,R=S.start.offset<$.end.offset&&$.end.offset<S.end.offset,j=$.start.offset<S.start.offset&&S.start.offset<$.end.offset,q=$.start.offset<S.end.offset&&S.end.offset<$.end.offset;if(M||R||j||q){if(R&&R||j&&q)continue;throw new ShikiError(`Decorations ${JSON.stringify(S.start)} and ${JSON.stringify($.start)} intersect.`)}}}}return{name:"shiki:decorations",tokens(k){var $;if(!(($=this.options.decorations)!=null&&$.length))return;const S=_(this).decorations.flatMap(M=>[M.start.offset,M.end.offset]);return splitTokens(k,S)},code(k){var q;if(!((q=this.options.decorations)!=null&&q.length))return;const I=_(this),S=Array.from(k.children).filter(G=>G.type==="element"&&G.tagName==="span");if(S.length!==I.converter.lines.length)throw new ShikiError(`Number of lines in code element (${S.length}) does not match the number of lines in the source (${I.converter.lines.length}). Failed to apply decorations.`);function D(G,U,Y,V){const te=S[G];let ne="",ae=-1,ce=-1;function de(le){return le.type==="text"?le.value:le.type==="element"?le.children.map(de).join(""):""}if(U===0&&(ae=0),Y===0&&(ce=0),Y===Number.POSITIVE_INFINITY&&(ce=te.children.length),ae===-1||ce===-1)for(let le=0;le<te.children.length;le++)ne+=de(te.children[le]),ae===-1&&ne.length===U&&(ae=le+1),ce===-1&&ne.length===Y&&(ce=le+1);if(ae===-1)throw new ShikiError(`Failed to find start index for decoration ${JSON.stringify(V.start)}`);if(ce===-1)throw new ShikiError(`Failed to find end index for decoration ${JSON.stringify(V.end)}`);const pe=te.children.slice(ae,ce);if(!V.alwaysWrap&&pe.length===te.children.length)M(te,V,"line");else if(!V.alwaysWrap&&pe.length===1&&pe[0].type==="element")M(pe[0],V,"token");else{const le={type:"element",tagName:"span",properties:{},children:pe};M(le,V,"wrapper"),te.children.splice(ae,pe.length,le)}}function $(G,U){S[G]=M(S[G],U,"line")}function M(G,U,Y){var ne;const V=U.properties||{},te=U.transform||(ae=>ae);return G.tagName=U.tagName||"span",G.properties={...G.properties,...V,class:G.properties.class},(ne=U.properties)!=null&&ne.class&&addClassToHast(G,U.properties.class),G=te(G,Y)||G,G}const R=[],j=I.decorations.sort((G,U)=>U.start.offset-G.start.offset);for(const G of j){const{start:U,end:Y}=G;if(U.line===Y.line)D(U.line,U.character,Y.character,G);else if(U.line<Y.line){D(U.line,U.character,Number.POSITIVE_INFINITY,G);for(let V=U.line+1;V<Y.line;V++)R.unshift(()=>$(V,G));D(Y.line,0,Y.character,G)}}R.forEach(G=>G())}}}const builtInTransformers=[transformerDecorations()];function getTransformers(g){return[...g.transformers||[],...builtInTransformers]}function codeToHast(g,_,E,k={meta:{},options:E,codeToHast:(I,S)=>codeToHast(g,I,S),codeToTokens:(I,S)=>codeToTokens(g,I,S)}){var G,U;let I=_;for(const Y of getTransformers(E))I=((G=Y.preprocess)==null?void 0:G.call(k,I,E))||I;let{tokens:S,fg:D,bg:$,themeName:M,rootStyle:R}=codeToTokens(g,I,E);const{mergeWhitespaces:j=!0}=E;j===!0?S=mergeWhitespaceTokens(S):j==="never"&&(S=splitWhitespaceTokens(S));const q={...k,get source(){return I}};for(const Y of getTransformers(E))S=((U=Y.tokens)==null?void 0:U.call(q,S))||S;return tokensToHast(S,{...E,fg:D,bg:$,themeName:M,rootStyle:R},q)}function tokensToHast(g,_,E){var q,G,U;const k=getTransformers(_),I=[],S={type:"root",children:[]};let D={type:"element",tagName:"pre",properties:{class:`shiki ${_.themeName||""}`,style:_.rootStyle||`background-color:${_.bg};color:${_.fg}`,tabindex:"0",...Object.fromEntries(Array.from(Object.entries(_.meta||{})).filter(([Y])=>!Y.startsWith("_")))},children:[]},$={type:"element",tagName:"code",properties:{},children:I};const M=[],R={...E,addClassToHast,get source(){return E.source},get tokens(){return g},get options(){return _},get root(){return S},get pre(){return D},get code(){return $},get lines(){return M}};g.forEach((Y,V)=>{var ae,ce;V&&I.push({type:"text",value:`
|