intlayer-editor 9.7.3 → 9.8.0-canary.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/shikiBundle-B_RsV0dz.js","assets/compat-BjqSD5_n.js","assets/MarkDownRender-Jcoifdy4.js","assets/index-Sv0lhwTV.js","assets/index-CfrSXy49.css"])))=>i.map(i=>d[i]);
2
- import{d as e,l as t,o as n,u as r}from"./MarkDownRender-Jcoifdy4.js";import{p as i,v as a,w as o}from"./compat-BjqSD5_n.js";import{Z as s,tt as c}from"./index-Sv0lhwTV.js";i();var l=async(e,r)=>{let{codeToHtml:i}=await s(async()=>{let{codeToHtml:e}=await import(`./shikiBundle-B_RsV0dz.js`).then(e=>e.i);return{codeToHtml:e}},__vite__mapDeps([0,1,2,3,4]));return i(String(e),{lang:t(r).id,themes:n,defaultColor:!1})},u=({children:t,lang:n})=>{let[i,s]=o(null);return a(()=>{let e=!1;return l(t,n).then(t=>{e||s(t)}).catch(t=>{console.error(`Failed to highlight code:`,t),e||s(``)}),()=>{e=!0}},[t,n]),c(`div`,{className:e,children:i?c(`div`,{dangerouslySetInnerHTML:{__html:i}}):c(r,{children:t})})};export{u as CodeBlockShiki};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/shikiBundle-COH1-0sb.js","assets/compat-BjqSD5_n.js","assets/MarkDownRender-D8CwQluK.js","assets/index-BFplB-Zw.js","assets/index-CfrSXy49.css"])))=>i.map(i=>d[i]);
2
+ import{d as e,l as t,o as n,u as r}from"./MarkDownRender-D8CwQluK.js";import{p as i,v as a,w as o}from"./compat-BjqSD5_n.js";import{Z as s,tt as c}from"./index-BFplB-Zw.js";i();var l=async(e,r)=>{let{codeToHtml:i}=await s(async()=>{let{codeToHtml:e}=await import(`./shikiBundle-COH1-0sb.js`).then(e=>e.i);return{codeToHtml:e}},__vite__mapDeps([0,1,2,3,4]));return i(String(e),{lang:t(r).id,themes:n,defaultColor:!1})},u=({children:t,lang:n})=>{let[i,s]=o(null);return a(()=>{let e=!1;return l(t,n).then(t=>{e||s(t)}).catch(t=>{console.error(`Failed to highlight code:`,t),e||s(``)}),()=>{e=!0}},[t,n]),c(`div`,{className:e,children:i?c(`div`,{dangerouslySetInnerHTML:{__html:i}}):c(r,{children:t})})};export{u as CodeBlockShiki};
@@ -0,0 +1 @@
1
+ export{t as MarkdownRenderer}from"./MarkDownRender-D8CwQluK.js";
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CodeBlockShiki-DKQtJiEv.js","assets/compat-BjqSD5_n.js","assets/index-Sv0lhwTV.js","assets/index-CfrSXy49.css","assets/astro-BZ97kZFP.js","assets/json-B88Oqtu5.js","assets/javascript-BzbQS41l.js","assets/typescript-j_1H8WHN.js","assets/css-BGIxQoYs.js","assets/postcss-D_Wz94rJ.js","assets/tsx-BOvsFOI6.js","assets/css-DgaLhXQH.js","assets/html-BCy9P6D2.js","assets/html-DSw1lh5G.js","assets/javascript-CpIGwZ_Y.js","assets/json-C3WlssX3.js","assets/svelte-CdeT-Ich.js","assets/tsx-CGosfAUg.js","assets/typescript-Bb1J8qyy.js","assets/vue-jUI-lpPb.js","assets/shikiBundle-B_RsV0dz.js"])))=>i.map(i=>d[i]);
2
- import{A as e,J as t,M as n,N as r,X as i,Y as a,Z as o,_ as s,a as c,c as l,d as u,i as d,k as f,l as p,n as m,o as h,r as g,s as _,t as v,tt as y,u as b,v as x,z as S}from"./index-Sv0lhwTV.js";import{A as C,C as w,E as T,F as E,M as D,N as O,O as k,P as A,f as j,g as ee,h as M,n as te,p as N,t as ne,v as P,w as F,x as I}from"./compat-BjqSD5_n.js";var L={blockQuote:`0`,breakLine:`1`,breakThematic:`2`,codeBlock:`3`,codeFenced:`4`,codeInline:`5`,footnote:`6`,footnoteReference:`7`,gfmTask:`8`,heading:`9`,headingSetext:`10`,htmlBlock:`11`,htmlComment:`12`,htmlSelfClosing:`13`,customComponent:`34`,image:`14`,link:`15`,linkAngleBraceStyleDetector:`16`,linkBareUrlDetector:`17`,newlineCoalescer:`19`,orderedList:`20`,paragraph:`21`,ref:`22`,refImage:`23`,refLink:`24`,table:`25`,tableSeparator:`26`,text:`27`,textBolded:`28`,textEmphasized:`29`,textEscaped:`30`,textMarked:`31`,textStrikethroughed:`32`,unorderedList:`33`},R={MAX:0,HIGH:1,MED:2,LOW:3,MIN:4},re={BLOCK:1,INLINE:2,BOTH:3},z=re.BLOCK,B=re.INLINE,V=re.BOTH,ie=`allowFullScreen.autoComplete.autoFocus.autoPlay.cellPadding.cellSpacing.charSet.classId.colSpan.contentEditable.contextMenu.crossOrigin.encType.formAction.formEncType.formMethod.formNoValidate.formTarget.frameBorder.hrefLang.inputMode.keyParams.keyType.marginHeight.marginWidth.maxLength.mediaGroup.minLength.noValidate.radioGroup.readOnly.rowSpan.spellCheck.srcDoc.srcLang.srcSet.tabIndex.useMap`.split(`.`).reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:`className`,for:`htmlFor`}),ae={amp:`&`,apos:`'`,gt:`>`,lt:`<`,nbsp:`\xA0`,quot:`“`},oe=[`style`,`script`,`pre`],se=[`src`,`href`,`data`,`formAction`,`srcDoc`,`action`],ce=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})|(?:\[[^\]]*\])))?/gi,le=/^[A-Z_:]/i,ue=/\n{2,}$/,de=/^(\s*>[\s\S]*?)(?=\n\n|$)/,fe=/^ *> ?/gm,pe=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,me=/^(?=( {2,}))\1\n/,he=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,ge=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n((?:[^\n]*(?:\n|$))*?)(?:\1\n?|$)/,_e=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,ve=/^([ \t]*)(`{3,}|~{3,})/,ye=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,be=/^(?:\n *)*\n/,xe=/\r\n?/g,Se=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Ce=/^\[\^([^\]]+)]/,we=/\f/g,Te=/^---[ \t]*\n(.|\n)*?\n---[ \t]*\n/,Ee=/^\s*?\[(x|\s)\]/,De=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Oe=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ke=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Ae=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,je=/^<!--[\s\S]*?(?:-->)/,Me=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ne=/^\{.*\}$/,Pe=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Fe=/^<([^ >]+[:@/][^ >]+)>/,Ie=/-([a-z])?/gi,Le=/^(\|[^\n]*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:[^\n]*\|[^\n]*\n)*))?\n?/,Re=/(^ *\||\| *$)/g,ze=/^ *:-+: *$/,Be=/^ *:-+ *$/,Ve=/^ *-+: *$/,He=/^[^\n]+(?: {2}\n|\n{2,})/,Ue=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,We=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Ge=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Ke=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,qe=/\t/g,Je=/^\n+/,Ye=/^\n*([ \t]*)/,Xe=`(?:\\d+\\.)`,Ze=`(?:[*+-])`,Qe=/^\\([^0-9A-Za-z\s])/,$e=/\\([^0-9A-Za-z\s])/g,et=/^(:[a-zA-Z0-9-_]+:)/,H=e=>`(?=[\\s\\S]+?\\1${e?`\\1`:``})`,U="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\[^\\s]|[\\s\\S])+?)",tt=RegExp(`^([*_])\\1${H(1)}${U}\\1\\1(?!\\1)`),nt=RegExp(`^([*_])${H(0)}${U}\\1(?!\\1)`),rt=RegExp(`^(==)${H(0)}${U}\\1`),it=RegExp(`^(~~)${H(0)}${U}\\1`),at=e=>`( *)(`+(e===1?Xe:Ze)+`) +`,ot=at(1),st=at(2),ct=e=>RegExp(`^`+(e===1?ot:st)),lt=ct(1),ut=ct(2),dt=e=>RegExp(`^`+(e===1?ot:st)+`[^\\n]*(?:\\n(?!\\1`+(e===1?Xe:Ze)+` )[^\\n]*)*(\\n|$)`,`gm`),ft=dt(1),pt=dt(2),mt=e=>{let t=e===1?Xe:Ze;return RegExp(`^( *)(`+t+`) (?=[\\s\\S])(?:[^\\n]*(?:\\n|$))+?(?:\\n+(?! )(?!\\1`+t+` (?!`+t+` ))\\n*|\\s*$)`)},ht=mt(1),gt=mt(2),_t=(e,t)=>{let n=e.length,r=t;for(;r<n;){let t=e.charCodeAt(r);if(t===62)return r;if(t===34||t===39){let i=r+1;for(;i<n&&e.charCodeAt(i)!==t&&e.charCodeAt(i)!==10;)i++;r=e.charCodeAt(i)===t?i+1:r+1}else r++}return-1},vt=e=>e>=65&&e<=90?e+32:e,yt=(e,t,n)=>{for(let r=0;r<t.length;r++)if(vt(e.charCodeAt(n+r))!==vt(t.charCodeAt(r)))return!1;return!0},bt=(e,t,n,r,i)=>{if(!r){let r=e.indexOf(t,n);return r===-1||r>=i?-1:r}let a=Math.min(i,e.length-t.length+1),o=n;for(;o<a;){let n=e.indexOf(`<`,o);if(n===-1||n>=a)return-1;if(yt(e,t,n))return n;o=n+1}return-1},xt=(e,t,n,r,i)=>{let a=[e.slice(0,t),n,r,i];return a.index=0,a.input=e,a},St=e=>e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57,Ct=e=>{let t=0;for(;e.charCodeAt(t)===32;)t++;return e.charCodeAt(t)===60?t:-1},wt=(e,t)=>{let n=Ct(e);if(n===-1)return null;let r=n+1,i=r,a=e.charCodeAt(r);if(t){if(a<65||a>90)return null;for(;i<e.length&&St(e.charCodeAt(i));)i++}else{if(!(a>=65&&a<=90||a>=97&&a<=122))return null;for(;i<e.length;){let t=e.charCodeAt(i);if(t===32||t===9||t===10||t===13||t===62||t===47)break;i++}}let o=e.slice(r,i),s=_t(e,i);if(s===-1||!t&&e.charCodeAt(s-1)===47)return null;let c=s+1;e.charCodeAt(c)===10&&c++;let l=`<${o}`,u=`</${o}`,d=1,f=c,p=e.length,m=-1,h=-1;for(;f<p;){let n=bt(e,u,f,!t,p);if(n===-1)return null;let r=bt(e,l,f,!t,n);if(r!==-1){let t=e.charCodeAt(r+l.length);if(t===32||t===9||t===10||t===13||t===62||t===47){let t=_t(e,r+l.length);if(t===-1)return null;d++,f=t+1}else f=r+1;continue}if(e.charCodeAt(n+u.length)!==62){f=n+1;continue}let i=n+u.length+1;if(d--,d>0)f=i;else if(bt(e,u,i,!t,p)===i&&e.charCodeAt(i+u.length)===62)d=1,f=i;else{m=n,h=i;break}}if(h===-1)return null;for(;e.charCodeAt(h)===10;)h++;return xt(e,h,o,e.slice(i,s),e.slice(c,m))},Tt=e=>{let t=Ct(e);if(t===-1)return null;let n=t+1,r=e.charCodeAt(n);if(!(r>=65&&r<=90||r>=97&&r<=122))return null;let i=n+1;for(;i<e.length&&(St(e.charCodeAt(i))||e.charCodeAt(i)===58);)i++;let a=e.charCodeAt(i),o=a===32||a===9||a===10||a===13,s;if(o){if(s=_t(e,i),s===-1)return null}else if(s=e.charCodeAt(i)===47?i+1:i,e.charCodeAt(s)!==62)return null;let c=e.slice(n,i),l=s+1;if(e.charCodeAt(l)===60&&e.charCodeAt(l+1)===47&&yt(e,c,l+2)&&e.charCodeAt(l+2+c.length)===62)return null;let u=l,d=l;for(;d<e.length;){let t=e.charCodeAt(d);if(t!==32&&t!==9&&t!==10&&t!==13)break;d++,e.charCodeAt(d-1)===10&&(u=d)}return xt(e,u,c,o?e.slice(i+1,s):void 0,u>l?e.slice(l,u):void 0)},Et=e=>wt(e,!1),Dt=e=>wt(e,!0),Ot=e=>Et(e)!==null,kt=e=>Tt(e)!==null,At=e=>Dt(e)!==null,jt=e=>Ot(e)||kt(e),W=e=>{let t=e.length;for(;t>0&&e.charCodeAt(t-1)<=32;)t--;return t===e.length?e:e.slice(0,t)},Mt=(e,t)=>e.startsWith(t),Nt=e=>{let t=e[0];return(t===`"`||t===`'`)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e},G=e=>e&&e.indexOf(`\\`)!==-1?e.replace($e,`$1`):e,Pt=(...e)=>e.filter(Boolean).join(` `),Ft=(e,t,n)=>{if(t.indexOf(`.`)===-1)return e?.[t]??n;let r=e,i=t.split(`.`);for(;i.length&&(r=r[i[0]],r!==void 0);)i.shift();return r??n},It=[[/[ÀÁÂÃÄÅàáâãä忯]/g,`a`],[/[çÇ]/g,`c`],[/[ðÐ]/g,`d`],[/[ÈÉÊËéèêë]/g,`e`],[/[ÏïÎîÍíÌì]/g,`i`],[/[Ññ]/g,`n`],[/[øØœŒÕõÔôÓóÒò]/g,`o`],[/[ÜüÛûÚúÙù]/g,`u`],[/[ŸÿÝý]/g,`y`]],Lt=/[\u0080-\uffff]/,Rt=/[^\p{L}\p{N}\p{M} -]/gu,zt=/ /g,Bt=e=>{let t=e;if(Lt.test(t))for(let e=0;e<It.length;e++){let[n,r]=It[e];t=t.replace(n,r)}return t=t.replace(Rt,``).replace(zt,`-`),t.toLowerCase()},Vt=/(javascript|vbscript|data(?!:image)):/i,Ht=/[^A-Za-z0-9/:]/g,Ut=e=>{if(e.indexOf(`:`)===-1&&e.indexOf(`%`)===-1)return e;try{let t=decodeURIComponent(e).replace(Ht,``);if(Vt.test(t))return console.warn(`Input contains an unsafe JavaScript/VBScript/data expression, it will not be rendered.`,t),null}catch{return console.warn(`Input could not be decoded due to malformed syntax or characters, it will not be rendered.`,e),null}return e},Wt=e=>{let t=e;return t.indexOf(` `)!==-1&&(t=t.replace(qe,` `)),t.indexOf(`\r`)!==-1&&(t=t.replace(xe,`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/CodeBlockShiki-CqqBaQWK.js","assets/compat-BjqSD5_n.js","assets/index-BFplB-Zw.js","assets/index-CfrSXy49.css","assets/astro-BZ97kZFP.js","assets/json-B88Oqtu5.js","assets/javascript-BzbQS41l.js","assets/typescript-j_1H8WHN.js","assets/css-BGIxQoYs.js","assets/postcss-D_Wz94rJ.js","assets/tsx-BOvsFOI6.js","assets/css-DgaLhXQH.js","assets/html-BCy9P6D2.js","assets/html-DSw1lh5G.js","assets/javascript-CpIGwZ_Y.js","assets/json-C3WlssX3.js","assets/svelte-CdeT-Ich.js","assets/tsx-CGosfAUg.js","assets/typescript-Bb1J8qyy.js","assets/vue-jUI-lpPb.js","assets/shikiBundle-COH1-0sb.js"])))=>i.map(i=>d[i]);
2
+ import{A as e,J as t,M as n,N as r,X as i,Y as a,Z as o,_ as s,a as c,c as l,d as u,i as d,k as f,l as p,n as m,o as h,r as g,s as _,t as v,tt as y,u as b,v as x,z as S}from"./index-BFplB-Zw.js";import{A as C,C as w,E as T,F as E,M as D,N as O,O as k,P as A,f as j,g as ee,h as M,n as te,p as N,t as ne,v as P,w as F,x as I}from"./compat-BjqSD5_n.js";var L={blockQuote:`0`,breakLine:`1`,breakThematic:`2`,codeBlock:`3`,codeFenced:`4`,codeInline:`5`,footnote:`6`,footnoteReference:`7`,gfmTask:`8`,heading:`9`,headingSetext:`10`,htmlBlock:`11`,htmlComment:`12`,htmlSelfClosing:`13`,customComponent:`34`,image:`14`,link:`15`,linkAngleBraceStyleDetector:`16`,linkBareUrlDetector:`17`,newlineCoalescer:`19`,orderedList:`20`,paragraph:`21`,ref:`22`,refImage:`23`,refLink:`24`,table:`25`,tableSeparator:`26`,text:`27`,textBolded:`28`,textEmphasized:`29`,textEscaped:`30`,textMarked:`31`,textStrikethroughed:`32`,unorderedList:`33`},R={MAX:0,HIGH:1,MED:2,LOW:3,MIN:4},re={BLOCK:1,INLINE:2,BOTH:3},z=re.BLOCK,B=re.INLINE,V=re.BOTH,ie=`allowFullScreen.autoComplete.autoFocus.autoPlay.cellPadding.cellSpacing.charSet.classId.colSpan.contentEditable.contextMenu.crossOrigin.encType.formAction.formEncType.formMethod.formNoValidate.formTarget.frameBorder.hrefLang.inputMode.keyParams.keyType.marginHeight.marginWidth.maxLength.mediaGroup.minLength.noValidate.radioGroup.readOnly.rowSpan.spellCheck.srcDoc.srcLang.srcSet.tabIndex.useMap`.split(`.`).reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:`className`,for:`htmlFor`}),ae={amp:`&`,apos:`'`,gt:`>`,lt:`<`,nbsp:`\xA0`,quot:`“`},oe=[`style`,`script`,`pre`],se=[`src`,`href`,`data`,`formAction`,`srcDoc`,`action`],ce=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})|(?:\[[^\]]*\])))?/gi,le=/^[A-Z_:]/i,ue=/\n{2,}$/,de=/^(\s*>[\s\S]*?)(?=\n\n|$)/,fe=/^ *> ?/gm,pe=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,me=/^(?=( {2,}))\1\n/,he=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,ge=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n((?:[^\n]*(?:\n|$))*?)(?:\1\n?|$)/,_e=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,ve=/^([ \t]*)(`{3,}|~{3,})/,ye=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,be=/^(?:\n *)*\n/,xe=/\r\n?/g,Se=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Ce=/^\[\^([^\]]+)]/,we=/\f/g,Te=/^---[ \t]*\n(.|\n)*?\n---[ \t]*\n/,Ee=/^\s*?\[(x|\s)\]/,De=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Oe=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,ke=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Ae=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,je=/^<!--[\s\S]*?(?:-->)/,Me=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Ne=/^\{.*\}$/,Pe=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Fe=/^<([^ >]+[:@/][^ >]+)>/,Ie=/-([a-z])?/gi,Le=/^(\|[^\n]*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:[^\n]*\|[^\n]*\n)*))?\n?/,Re=/(^ *\||\| *$)/g,ze=/^ *:-+: *$/,Be=/^ *:-+ *$/,Ve=/^ *-+: *$/,He=/^[^\n]+(?: {2}\n|\n{2,})/,Ue=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,We=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Ge=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Ke=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,qe=/\t/g,Je=/^\n+/,Ye=/^\n*([ \t]*)/,Xe=`(?:\\d+\\.)`,Ze=`(?:[*+-])`,Qe=/^\\([^0-9A-Za-z\s])/,$e=/\\([^0-9A-Za-z\s])/g,et=/^(:[a-zA-Z0-9-_]+:)/,H=e=>`(?=[\\s\\S]+?\\1${e?`\\1`:``})`,U="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\[^\\s]|[\\s\\S])+?)",tt=RegExp(`^([*_])\\1${H(1)}${U}\\1\\1(?!\\1)`),nt=RegExp(`^([*_])${H(0)}${U}\\1(?!\\1)`),rt=RegExp(`^(==)${H(0)}${U}\\1`),it=RegExp(`^(~~)${H(0)}${U}\\1`),at=e=>`( *)(`+(e===1?Xe:Ze)+`) +`,ot=at(1),st=at(2),ct=e=>RegExp(`^`+(e===1?ot:st)),lt=ct(1),ut=ct(2),dt=e=>RegExp(`^`+(e===1?ot:st)+`[^\\n]*(?:\\n(?!\\1`+(e===1?Xe:Ze)+` )[^\\n]*)*(\\n|$)`,`gm`),ft=dt(1),pt=dt(2),mt=e=>{let t=e===1?Xe:Ze;return RegExp(`^( *)(`+t+`) (?=[\\s\\S])(?:[^\\n]*(?:\\n|$))+?(?:\\n+(?! )(?!\\1`+t+` (?!`+t+` ))\\n*|\\s*$)`)},ht=mt(1),gt=mt(2),_t=(e,t)=>{let n=e.length,r=t;for(;r<n;){let t=e.charCodeAt(r);if(t===62)return r;if(t===34||t===39){let i=r+1;for(;i<n&&e.charCodeAt(i)!==t&&e.charCodeAt(i)!==10;)i++;r=e.charCodeAt(i)===t?i+1:r+1}else r++}return-1},vt=e=>e>=65&&e<=90?e+32:e,yt=(e,t,n)=>{for(let r=0;r<t.length;r++)if(vt(e.charCodeAt(n+r))!==vt(t.charCodeAt(r)))return!1;return!0},bt=(e,t,n,r,i)=>{if(!r){let r=e.indexOf(t,n);return r===-1||r>=i?-1:r}let a=Math.min(i,e.length-t.length+1),o=n;for(;o<a;){let n=e.indexOf(`<`,o);if(n===-1||n>=a)return-1;if(yt(e,t,n))return n;o=n+1}return-1},xt=(e,t,n,r,i)=>{let a=[e.slice(0,t),n,r,i];return a.index=0,a.input=e,a},St=e=>e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57,Ct=e=>{let t=0;for(;e.charCodeAt(t)===32;)t++;return e.charCodeAt(t)===60?t:-1},wt=(e,t)=>{let n=Ct(e);if(n===-1)return null;let r=n+1,i=r,a=e.charCodeAt(r);if(t){if(a<65||a>90)return null;for(;i<e.length&&St(e.charCodeAt(i));)i++}else{if(!(a>=65&&a<=90||a>=97&&a<=122))return null;for(;i<e.length;){let t=e.charCodeAt(i);if(t===32||t===9||t===10||t===13||t===62||t===47)break;i++}}let o=e.slice(r,i),s=_t(e,i);if(s===-1||!t&&e.charCodeAt(s-1)===47)return null;let c=s+1;e.charCodeAt(c)===10&&c++;let l=`<${o}`,u=`</${o}`,d=1,f=c,p=e.length,m=-1,h=-1;for(;f<p;){let n=bt(e,u,f,!t,p);if(n===-1)return null;let r=bt(e,l,f,!t,n);if(r!==-1){let t=e.charCodeAt(r+l.length);if(t===32||t===9||t===10||t===13||t===62||t===47){let t=_t(e,r+l.length);if(t===-1)return null;d++,f=t+1}else f=r+1;continue}if(e.charCodeAt(n+u.length)!==62){f=n+1;continue}let i=n+u.length+1;if(d--,d>0)f=i;else if(bt(e,u,i,!t,p)===i&&e.charCodeAt(i+u.length)===62)d=1,f=i;else{m=n,h=i;break}}if(h===-1)return null;for(;e.charCodeAt(h)===10;)h++;return xt(e,h,o,e.slice(i,s),e.slice(c,m))},Tt=e=>{let t=Ct(e);if(t===-1)return null;let n=t+1,r=e.charCodeAt(n);if(!(r>=65&&r<=90||r>=97&&r<=122))return null;let i=n+1;for(;i<e.length&&(St(e.charCodeAt(i))||e.charCodeAt(i)===58);)i++;let a=e.charCodeAt(i),o=a===32||a===9||a===10||a===13,s;if(o){if(s=_t(e,i),s===-1)return null}else if(s=e.charCodeAt(i)===47?i+1:i,e.charCodeAt(s)!==62)return null;let c=e.slice(n,i),l=s+1;if(e.charCodeAt(l)===60&&e.charCodeAt(l+1)===47&&yt(e,c,l+2)&&e.charCodeAt(l+2+c.length)===62)return null;let u=l,d=l;for(;d<e.length;){let t=e.charCodeAt(d);if(t!==32&&t!==9&&t!==10&&t!==13)break;d++,e.charCodeAt(d-1)===10&&(u=d)}return xt(e,u,c,o?e.slice(i+1,s):void 0,u>l?e.slice(l,u):void 0)},Et=e=>wt(e,!1),Dt=e=>wt(e,!0),Ot=e=>Et(e)!==null,kt=e=>Tt(e)!==null,At=e=>Dt(e)!==null,jt=e=>Ot(e)||kt(e),W=e=>{let t=e.length;for(;t>0&&e.charCodeAt(t-1)<=32;)t--;return t===e.length?e:e.slice(0,t)},Mt=(e,t)=>e.startsWith(t),Nt=e=>{let t=e[0];return(t===`"`||t===`'`)&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e},G=e=>e&&e.indexOf(`\\`)!==-1?e.replace($e,`$1`):e,Pt=(...e)=>e.filter(Boolean).join(` `),Ft=(e,t,n)=>{if(t.indexOf(`.`)===-1)return e?.[t]??n;let r=e,i=t.split(`.`);for(;i.length&&(r=r[i[0]],r!==void 0);)i.shift();return r??n},It=[[/[ÀÁÂÃÄÅàáâãä忯]/g,`a`],[/[çÇ]/g,`c`],[/[ðÐ]/g,`d`],[/[ÈÉÊËéèêë]/g,`e`],[/[ÏïÎîÍíÌì]/g,`i`],[/[Ññ]/g,`n`],[/[øØœŒÕõÔôÓóÒò]/g,`o`],[/[ÜüÛûÚúÙù]/g,`u`],[/[ŸÿÝý]/g,`y`]],Lt=/[\u0080-\uffff]/,Rt=/[^\p{L}\p{N}\p{M} -]/gu,zt=/ /g,Bt=e=>{let t=e;if(Lt.test(t))for(let e=0;e<It.length;e++){let[n,r]=It[e];t=t.replace(n,r)}return t=t.replace(Rt,``).replace(zt,`-`),t.toLowerCase()},Vt=/(javascript|vbscript|data(?!:image)):/i,Ht=/[^A-Za-z0-9/:]/g,Ut=e=>{if(e.indexOf(`:`)===-1&&e.indexOf(`%`)===-1)return e;try{let t=decodeURIComponent(e).replace(Ht,``);if(Vt.test(t))return console.warn(`Input contains an unsafe JavaScript/VBScript/data expression, it will not be rendered.`,t),null}catch{return console.warn(`Input could not be decoded due to malformed syntax or characters, it will not be rendered.`,e),null}return e},Wt=e=>{let t=e;return t.indexOf(` `)!==-1&&(t=t.replace(qe,` `)),t.indexOf(`\r`)!==-1&&(t=t.replace(xe,`
3
3
  `)),t.indexOf(`\f`)!==-1&&(t=t.replace(we,``)),t},Gt=(e,t)=>{if(!t)return e;let n=e.split(`
4
4
  `),r=null,i=(e,t)=>t&&e.startsWith(t)?e.slice(t.length):e;return n.map(e=>{let n=e.match(ve);if(!r)return n&&(r={indentation:n[1],marker:n[2]}),i(e,t);let a=n?.[2]?.startsWith(r.marker),{indentation:o}=r;return a&&(r=null),i(e,o)}).join(`
5
5
  `)},Kt=e=>(e.indexOf(`-`)!==-1&&e.match(Me)===null&&(e=e.replace(Ie,(e,t)=>t.toUpperCase())),e),qt=e=>{let t=[],n=``,r=!1,i=!1,a=``;if(!e)return t;for(let o=0;o<e.length;o++){let s=e[o];if(s!==`"`&&s!==`'`||r||(i?s===a&&(i=!1,a=``):(i=!0,a=s)),s===`(`&&n.endsWith(`url`)?r=!0:s===`)`&&r&&(r=!1),s===`;`&&!i&&!r){let e=n.trim();if(e){let n=e.indexOf(`:`);if(n>0){let r=e.slice(0,n).trim(),i=e.slice(n+1).trim();t.push([r,i])}}n=``}else n+=s}let o=n.trim();if(o){let e=o.indexOf(`:`);if(e>0){let n=o.slice(0,e).trim(),r=o.slice(e+1).trim();t.push([n,r])}}return t},Jt=(e,t,n,r)=>t===`style`?qt(n).reduce((t,[n,i])=>{let a=n.replace(/(-[a-z])/g,e=>e[1].toUpperCase());return t[a]=r(i,e,n),t},{}):se.indexOf(t)===-1?(n.match(Ne)&&(n=G(n.slice(1,n.length-1))),n===`true`||n!==`false`&&n):r(G(n),e,t),Yt=e=>e.indexOf(`:`)===-1?`left`:Ve.test(e)?`right`:ze.test(e)?`center`:(Be.test(e),`left`),Xt=e=>e.replace(Re,``).split(`|`).map(Yt),Zt=(e,t,n,r)=>{let i=n.inTable;n.inTable=!0;let a=0,o=e.length;for(;a<o;){let t=e.charCodeAt(a);if(t===32||t===9)a++;else break}for(;o>a;){let t=e.charCodeAt(o-1);if(t===32||t===9)o--;else break}if(a<o&&e.charCodeAt(a)===124&&a++,o>a&&e.charCodeAt(o-1)===124&&(o-2<a||e.charCodeAt(o-2)!==92)&&o--,!r){let r=t(e.slice(a,o),n);return n.inTable=i,[r]}let s=[],c=e.length,l=a,u=a,d=(r,i)=>{let a=e.slice(r,i).trim();return a===``?[]:t(a,n)},f=-1,p=-1,m=-1;for(;u<o;){if(f<u){let t=e.indexOf(`|`,u);f=t===-1?c:t}if(p<u){let t=e.indexOf(`\\`,u);p=t===-1?c:t}if(m<u){let t=e.indexOf("`",u);m=t===-1?c:t}if(u=Math.min(f,p,m),u>=o)break;if(u===p)u+=u+1<o?2:1;else if(u===m){let t=0;for(;u<o&&e.charCodeAt(u)===96;)t++,u++;let n=!1;for(;u<o&&!n;){let r=0;for(;u<o&&e.charCodeAt(u)===96;)r++,u++;r===t?n=!0:r===0&&u++}}else s.push(d(l,u)),u++,l=u}return s.push(d(l,o)),n.inTable=i,s},Qt=(e,t,n)=>{if(!e)return[];let r=[],i=0,a=e.length;for(;i<a;){let o=e.indexOf(`
@@ -21,5 +21,5 @@ import{A as e,J as t,M as n,N as r,X as i,Y as a,Z as o,_ as s,a as c,c as l,d a
21
21
  `]}if(e.charCodeAt(0)===58){let t=et.exec(e);if(t)return t}return wn.lastIndex=1,wn.test(e),Cn[0]=e.slice(0,Tn(e,wn.lastIndex)),Cn}),_order:R.MIN,_parse(e){let t=e[0]??``;return{type:L.text,text:t.charCodeAt(0)===38?t.replace(Ae,(e,t)=>t.startsWith(`#x`)?String.fromCharCode(parseInt(t.slice(2),16)):t.startsWith(`#`)?String.fromCharCode(parseInt(t.slice(1),10)):l[t]||e):t}},_render(e){return e.text}},[L.textBolded]:{_scope:B,_firstChars:[42,95],_qualify:e=>{let t=e.charCodeAt(0);if(t===42){let t=e.charCodeAt(2);return t===32||t===10||t===9?!1:e.charCodeAt(1)===42&&e.indexOf(`**`,2)!==-1}if(t===95){let t=e.charCodeAt(2);return t===32||t===10||t===9?!1:e.charCodeAt(1)===95&&e.indexOf(`__`,2)!==-1}return!1},_match:J(tt),_order:R.MED,_parse(e,t,n){return{children:t(e[2]??``,n)}},_render(t,n,r={}){return e(`strong`,{key:r.key},n(t.children,r))}},[L.textEmphasized]:{_scope:B,_firstChars:[42,95],_qualify:e=>{let t=e.charCodeAt(0),n=e.charCodeAt(1);return n===32||n===10||n===9?!1:t===42&&e.indexOf(`*`,1)!==-1||t===95&&e.indexOf(`_`,1)!==-1},_match:J(nt),_order:R.LOW,_parse(e,t,n){return{children:t(e[2]??``,n)}},_render(t,n,r={}){return e(`em`,{key:r.key},n(t.children,r))}},[L.textEscaped]:{_scope:B,_qualify:[`\\`],_match:J(Qe),_order:R.HIGH,_parse(e){return{text:e[1]??``,type:L.text}}},[L.textMarked]:{_scope:B,_firstChars:[61],_qualify:e=>{let t=e.charCodeAt(2);return t===32||t===10||t===9?!1:e.charCodeAt(1)===61&&e.indexOf(`==`,2)!==-1},_match:J(rt),_order:R.LOW,_parse(e,t,n){return{children:nn(e,t,n).children}},_render(t,n,r={}){return e(`mark`,{key:r.key},n(t.children,r))}},[L.textStrikethroughed]:{_scope:B,_firstChars:[126],_qualify:e=>{let t=e.charCodeAt(2);return t===32||t===10||t===9?!1:e.charCodeAt(1)===126&&e.indexOf(`~~`,2)!==-1},_match:J(it),_order:R.LOW,_parse(e,t,n){return{children:nn(e,t,n).children}},_render(t,n,r={}){return e(`del`,{key:r.key},n(t.children,r))}}}},Sn=[null,/^ {1,1}/gm,/^ {1,2}/gm,/^ {1,3}/gm,/^ {1,4}/gm,/^ {1,5}/gm,/^ {1,6}/gm,/^ {1,7}/gm,/^ {1,8}/gm],Cn=[``],wn=/(?:[^\n&h!*:<=[\\_`~]+|h(?!ttp))*/y,Tn=(e,t)=>t>=3&&e.charCodeAt(t)===10&&e.charCodeAt(t-1)===32&&e.charCodeAt(t-2)===32?t-2:t,En=(e,t,...n)=>({children:n,props:t,type:e}),Dn=(e,t,n,r)=>{let i=(e,r)=>{if(!r?.trim())return null;let i=r.match(ce);return i?i.reduce((r,i)=>{let a=i.indexOf(`=`);if(a!==-1){let o=Kt(i.slice(0,a)).trim(),s=Nt(i.slice(a+1).trim()),c=ie[o]??o;if(c===`ref`)return r;r[c]=Jt(e,o,s,t.sanitizer??Ut),typeof r[c]==`string`&&jt(r[c])&&(r[c]=An(r[c].trim(),t,n).ast)}else i!==`style`&&le.test(i)&&(r[ie[i]??i]=!0);return r},{}):null},a=[de,ge,_e,n.enforceAtxHeadings?Oe:De,Le,ht,gt,At],o=n.disableParsingRawHTML?a:[...a,He,Ot,je,kt,At],s=xn(e,t,n,r,i,e=>{let t=e.replace(Je,``),n=t.length>2048?t.slice(0,2048):t;return n.indexOf(`
22
22
 
23
23
  `)!==-1||on(o,n)},a);return n.disableParsingRawHTML?Object.keys(s).reduce((e,t)=>(t!==L.htmlBlock&&t!==L.htmlSelfClosing&&(e[t]=s[t]),e),{}):s},On=(e,t,n,r,i)=>{let a=!t.preserveFrontmatter&&e.charCodeAt(0)===45?e.replace(Te,``):e,o=a.charCodeAt(0)===10?a.replace(Je,``):a,s=t.forceInline||!t.forceBlock&&Ke.test(o)===!1,c=n(s?a:`${W(o)}\n\n`,{inline:s});if(r.length>0)for(let e of r)e.parsedAst=n(e.footnote,{inline:!0});return{ast:c,footnotes:r,references:i,inline:s}},kn=(e,t,n,r,i)=>{let a=t.components??{},o=mn(t),s=e.footnotes||[],c=e.inline,l=r(e.ast,{inline:c});for(;typeof l[l.length-1]==`string`&&!l[l.length-1].trim();)l.pop();let u=(()=>{if(n.wrapper===null)return l;let e=n.wrapper??(c?`span`:`div`);if(l.length>1||n.forceWrapper)return i(e,{key:`outer`},l);if(l.length===1){let t=l[0];if(Array.isArray(t))return i(e,{key:`outer`},t);if(typeof t==`string`){let e={key:`outer`};if(!c&&a){let n=Ft(a,`p.props`,{})??{},r=Pt(e.className,n.className),o={...e,...n};return r&&(o.className=r),i(`span`,o,t)}return i(`span`,e,t)}return t}return i(e,{key:`outer`},null)})();return s.length?i(`div`,null,u,i(`footer`,{key:`footer`},...s.map(e=>i(`div`,{id:o(e.identifier),key:e.identifier},e.identifier,r(e.parsedAst||e.footnote,{inline:!0}))))):u},An=(e=``,t,n={})=>{let{parse:r,scope:i}=yn(t,n,!0),a=gn();return bn(i,a,()=>On(e,n,r,a.footnotes,a.references))},jn=(e,t,n={})=>{let{emit:r,createElement:i,scope:a}=yn(t,n,!1);return bn(a,{footnotes:e.footnotes??[],references:e.references??{}},()=>kn(e,t,n,r,i))},Mn=(e=``,t,n={})=>{if(typeof e!=`string`)throw Error(`intlayer: the first argument must be a string`);let{parse:r,emit:i,createElement:a,scope:o}=yn(t,n,!1),s=gn();return bn(o,s,()=>kn(On(e,n,r,s.footnotes,s.references),t,n,i,a))},Nn=(e,t,n={})=>{let{components:r,namedCodesToUnicode:i,sanitizer:a,slugify:o,...s}=n;return Mn(e,{runtime:t,components:r,namedCodesToUnicode:i,sanitizer:a,slugify:o},s)},Pn={name:`move-diagonal`,size:24,node:[[`path`,{d:`M11 19H5v-6`,key:`8awifj`}],[`path`,{d:`M13 5h6v6`,key:`7voy1q`}],[`path`,{d:`M19 5 5 19`,key:`wwaj1z`}]]};Pn.node;var Fn=t(Pn);A(),N();var In=e=>{let{enable:t=!0,onSwipeLeft:n,onSwipeRight:r,itemIndex:i,itemCount:a,thresholdPct:o=20,touchAction:s=`pan-y`,disableWhenSelectingText:c=!0}=e,l=I(null),[u,d]=F(!1),[f,p]=F(0),m=I({pointerId:null,startX:0,startY:0,lastX:0,axisLocked:!1,isHorizontal:!1}),h=I(!1),g=()=>{let e=l.current;return e?e.clientWidth:0},_=e=>{let t=i<=0,n=i>=a-1;return t&&e>0||n&&e<0?e/(1+Math.abs(e)/30):e},v=e=>{t&&m.current.pointerId===null&&(m.current.pointerId=e.pointerId,m.current.startX=e.clientX,m.current.startY=e.clientY,m.current.lastX=e.clientX,m.current.axisLocked=!1,m.current.isHorizontal=!1,h.current=!1,d(!1),p(0))},y=e=>{if(!t||m.current.pointerId!==e.pointerId)return;let n=g();if(!n)return;let r=e.clientX-m.current.startX,i=e.clientY-m.current.startY;if(c){let e=typeof window<`u`?window.getSelection?.():null;if(e&&e.rangeCount>0&&!e.isCollapsed){h.current=!0;return}}if(!m.current.axisLocked){let e=Math.abs(r),t=Math.abs(i);(e>6||t>6)&&(m.current.axisLocked=!0,m.current.isHorizontal=e>t)}if(!m.current.isHorizontal)return;try{e.currentTarget.setPointerCapture(e.pointerId)}catch{}e.preventDefault(),u||d(!0);let a=r/n*100;p(_(a)),m.current.lastX=e.clientX},b=e=>{try{e.currentTarget.releasePointerCapture(e.pointerId)}catch{}let t=m.current.isHorizontal,i=f;d(!1),p(0),m.current.pointerId=null,m.current.axisLocked=!1,m.current.isHorizontal=!1,h.current?h.current=!1:t&&(i>o?r?.():i<-o&&n?.())};return P(()=>{p(0),d(!1)},[i]),{containerRef:l,isDragging:u,dragDeltaPct:f,containerProps:{ref:l,onPointerDown:v,onPointerMove:y,onPointerUp:e=>{t&&m.current.pointerId===e.pointerId&&b(e)},onPointerCancel:e=>{t&&m.current.pointerId===e.pointerId&&b(e)},style:{touchAction:s}}}};N();var Ln=({children:e})=>y(`div`,{className:`max-w-full min-w-0 overflow-x-auto`,children:y(`pre`,{className:`max-w-full min-w-0 [scrollbar-width:none] overflow-x-auto [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden`,children:y(`code`,{children:typeof e==`string`?e.split(`
24
- `).map((e,t)=>y(`span`,{className:`line block w-full`,children:e},`line-${t}-${e.slice(0,10)}`)):e})})}),Rn=`[&_pre.shiki]:!bg-transparent min-w-0 max-w-full overflow-auto bg-transparent [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden [&_pre.shiki]:max-w-full [&_pre.shiki]:overflow-x-auto [&_pre::-webkit-scrollbar]:hidden [&_pre]:[-ms-overflow-style:none] [&_pre]:[scrollbar-width:none]`,zn=({html:e})=>y(`div`,{className:Rn,children:y(`div`,{dangerouslySetInnerHTML:{__html:e}})}),Bn=M(()=>o(()=>import(`./CodeBlockShiki-DKQtJiEv.js`).then(e=>({default:e.CodeBlockShiki})),__vite__mapDeps([0,1,2,3]))),Vn=({className:e,onChange:t,isEditable:n,isInverse:r=!1,isInverseColor:i,inverse:o,isDarkMode:s,children:c,lang:l,highlightedHtml:u,...d})=>{let f=r||i||o;return y(`div`,{className:a(`flex w-full max-w-full min-w-0 overflow-x-auto`,f&&`shiki-inverse text-text-opposite`,s===!0&&`shiki-dark`,s===!1&&`shiki-light`,e),"data-inverse":f?`true`:void 0,"data-shiki-theme":s===!0?`dark`:s===!1?`light`:void 0,...d,children:u?y(zn,{html:u}):y(j,{fallback:y(Ln,{children:c}),children:y(Bn,{lang:l,children:c})})})},Hn={astro:()=>o(()=>import(`./astro-BZ97kZFP.js`),__vite__mapDeps([4,5,6,7,8,9,10])),bash:()=>o(()=>import(`./bash-CLZ0U2zV.js`),[]),css:()=>o(()=>import(`./css-DgaLhXQH.js`),__vite__mapDeps([11,8])),html:()=>o(()=>import(`./html-BCy9P6D2.js`),__vite__mapDeps([12,13,6,8])),javascript:()=>o(()=>import(`./javascript-CpIGwZ_Y.js`),__vite__mapDeps([14,6])),json:()=>o(()=>import(`./json-C3WlssX3.js`),__vite__mapDeps([15,5])),json5:()=>o(()=>import(`./json5-BR5RXkoi.js`),[]),jsonc:()=>o(()=>import(`./jsonc-CYpm1nAK.js`),[]),markdown:()=>o(()=>import(`./markdown-BYOwaDjH.js`),[]),svelte:()=>o(()=>import(`./svelte-CdeT-Ich.js`),__vite__mapDeps([16,6,7,8,9])),tsx:()=>o(()=>import(`./tsx-CGosfAUg.js`),__vite__mapDeps([17,10])),typescript:()=>o(()=>import(`./typescript-Bb1J8qyy.js`),__vite__mapDeps([18,7])),vue:()=>o(()=>import(`./vue-jUI-lpPb.js`),__vite__mapDeps([19,8,6,7,5,13])),xml:()=>o(()=>import(`./xml-DMbpbO54.js`),[]),yaml:()=>o(()=>import(`./yaml-rwi0_p6S.js`),[])};Object.keys(Hn);var Un={cjs:`javascript`,console:`bash`,cts:`typescript`,htm:`html`,js:`javascript`,jsonc:`json5`,jsx:`tsx`,md:`markdown`,mdx:`markdown`,mjs:`javascript`,mts:`typescript`,postcss:`css`,sh:`bash`,shell:`bash`,shellscript:`bash`,ts:`typescript`,yml:`yaml`,zsh:`bash`},Wn=`plaintext`,Gn=e=>{let t=(e??``).trim().toLowerCase(),n=Un[t]??t,r=Hn[n];return r?{id:n,loadGrammar:r}:{id:Wn,loadGrammar:null}},Kn={light:`github-light`,dark:`github-dark`},qn=e=>e?e.match(/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\?v=|shorts\/))([\w-]{11})/i)?.[1]??null:null,Jn=e=>`https://www.youtube.com/embed/${e}`,Yn=e=>`https://www.youtube.com/watch?v=${e}`;N();var Xn=`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,Zn=(e,t)=>{let n=qn(e);return n?{isYoutubeVideo:!0,src:Jn(n),frameProps:{...t,allow:Xn,allowFullScreen:!0,referrerPolicy:`strict-origin-when-cross-origin`}}:{src:e,frameProps:t,isYoutubeVideo:!1}},Qn=e=>{if(!e)return{href:``,label:``};let t=qn(e);if(t)return{href:Yn(t),label:`youtube.com`};if(/^https?:\/\//i.test(e))try{let t=new URL(e);return{href:t.href,label:t.host}}catch{return{href:e,label:e}}return{href:e,label:e}},$n=()=>{let e=I(null),[t,n]=F(!1);return P(()=>{let r=e.current;if(!r||t)return;if(typeof IntersectionObserver>`u`){n(!0);return}let i=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(n(!0),i.disconnect())},{rootMargin:`200px`});return i.observe(r),()=>i.disconnect()},[t]),{elementRef:e,hasBecomeVisible:t}},er=({src:e,title:t,className:n,frameProps:r})=>{let{elementRef:i,hasBecomeVisible:a}=$n();return a?y(`iframe`,{...r,src:e,title:t,loading:`lazy`,className:n}):y(`div`,{ref:i,"aria-hidden":!0,className:n})},tr=t=>{let{src:n,className:i,title:o,...s}=t,[c,l]=F(!1),{src:u,frameProps:d,isYoutubeVideo:f}=Zn(n,s),{href:p,label:m}=Qn(n);return y(e,{roundedSize:`2xl`,border:!0,borderColor:`neutral`,className:`overflow-hidden p-0`,gap:`none`,children:[y(er,{src:u,title:o,frameProps:d,className:a(`block max-h-[80vh] min-h-[12rem] w-full border-0`,f&&`aspect-video`,i)}),y(`div`,{className:`flex items-center justify-between gap-3 px-3 py-1`,children:[p?y(b,{href:p,target:`_blank`,rel:`noopener noreferrer`,label:``,color:`neutral`,className:`inline-flex max-w-[calc(100%-3rem)] min-w-0 items-center gap-2 text-xs text-muted-foreground underline-offset-2 hover:text-foreground hover:underline`,children:m}):y(`span`,{className:`text-sm text-neutral`,children:`Embedded frame`}),y(r,{variant:`hoverable`,size:`icon-md`,onClick:()=>l(!0),label:`Open embedded page in fullscreen`,Icon:Fn})]}),y(v,{isOpen:c,onClose:()=>l(!1),size:`unset`,hasCloseButton:!0,isScrollable:!0,padding:`sm`,children:c&&u?y(e,{roundedSize:`2xl`,border:!0,borderColor:`neutral`,className:`overflow-hidden p-0`,gap:`none`,children:y(`iframe`,{...d,src:u,title:o??`Embedded content`,allowFullScreen:!0,className:`block min-h-[82vh] w-full border-0`})}):null})]})},nr={key:`expand-collapse`,content:{nodeType:`translation`,translation:{en:{expandCollapseContent:{nodeType:`condition`,condition:{true:`Show all`,false:`Show less`}}},"en-GB":{expandCollapseContent:{nodeType:`condition`,condition:{true:`Show all`,false:`Show less`}}},fr:{expandCollapseContent:{nodeType:`condition`,condition:{true:`Afficher tout`,false:`Afficher moins`}}},es:{expandCollapseContent:{nodeType:`condition`,condition:{true:`Mostrar todo`,false:`Mostrar menos`}}},de:{expandCollapseContent:{nodeType:`condition`,condition:{true:`Mehr anzeigen`,false:`Weniger anzeigen`}}},ja:{expandCollapseContent:{nodeType:`condition`,condition:{true:`すべて表示`,false:`表示を減らす`}}},ko:{expandCollapseContent:{nodeType:`condition`,condition:{true:`모두 보기`,false:`간략히 보기`}}},zh:{expandCollapseContent:{nodeType:`condition`,condition:{true:`显示全部`,false:`显示较少`}}},it:{expandCollapseContent:{nodeType:`condition`,condition:{true:`Mostra tutto`,false:`Mostra meno`}}},pt:{expandCollapseContent:{nodeType:`condition`,condition:{true:`Mostrar tudo`,false:`Mostrar menos`}}},hi:{expandCollapseContent:{nodeType:`condition`,condition:{true:`सभी दिखाएँ`,false:`कम दिखाएँ`}}},ar:{expandCollapseContent:{nodeType:`condition`,condition:{true:`عرض الكل`,false:`عرض أقل`}}},ru:{expandCollapseContent:{nodeType:`condition`,condition:{true:`Показать все`,false:`Показать меньше`}}}}},title:`Expand collapse toggle`,description:`Content declaration for the expand/collapse toggle component, defining the labels shown when content is expanded or collapsed.`,tags:[`ui component`,`toggle`,`expand collapse`],location:`local`,localId:`expand-collapse::local::../@intlayer/design-system/dist/esm/components/ExpandCollapse/expandCollapse.content.mjs`,filePath:`../@intlayer/design-system/dist/esm/components/ExpandCollapse/expandCollapse.content.mjs`};N();var rr=700,ir=({isRollable:e=!0,minHeight:t=rr,children:r,className:o})=>{let[s,c]=F(0),[l,u]=F(!0),d=I(null),{expandCollapseContent:f}=i(nr),p=s>t,m=w(e=>{if(d.current?.disconnect(),d.current=null,!e)return;if(typeof ResizeObserver>`u`){c(e.clientHeight);return}let t=new ResizeObserver(([e])=>{e&&c(e.contentRect.height)});t.observe(e),d.current=t},[]);return P(()=>()=>d.current?.disconnect(),[]),e?p?y(n,{isHidden:l,minHeight:t,className:`w-full overflow-x-auto overflow-y-hidden`,style:{gridTemplateRows:l?`${t}px`:`${s}px`},children:[y(`div`,{className:a(`grid w-full`,o),ref:m,children:r}),y(`button`,{className:a(`text-md absolute inset-e-0 bottom-0 flex w-full cursor-pointer items-center justify-center rounded-t-2xl bg-linear-to-t from-card/80 to-transparent px-3 py-0.5 text-neutral-700 shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur transition-all duration-300 hover:py-1 dark:text-neutral-400`,l?`w-full`:`w-32`),type:`button`,onClick:()=>u(e=>!e),children:f(l)})]}):y(`div`,{className:a(`grid w-full`,o),ref:m,children:r}):r};N();var ar=({children:e,originalLang:t,targetFormat:n,initialHtml:r})=>{let[i,a]=F(r??null),s=I(r??null);P(()=>{if(r&&n===`typescript`){s.current=r,a(r);return}let i=!1;return(async()=>{try{let r=e,c=Gn(t).id;if(n!==`typescript`){let{transformCode:a,deriveLanguage:s}=await o(async()=>{let{transformCode:e,deriveLanguage:t}=await import(`./codeTransformer-pmm6yJGh.js`);return{transformCode:e,deriveLanguage:t}},[]);if(i)return;r=a(String(e),n),c=Gn(s(t,n)).id}let{codeToHtml:l}=await o(async()=>{let{codeToHtml:e}=await import(`./shikiBundle-B_RsV0dz.js`).then(e=>e.i);return{codeToHtml:e}},__vite__mapDeps([20,1,2,3]));if(i)return;let u=await l(String(r),{lang:c,themes:Kn,defaultColor:!1});i||(s.current=u,a(u))}catch{i||a(``)}})(),()=>{i=!0}},[e,t,n,r]);let c=i??s.current;return c?y(`div`,{dangerouslySetInnerHTML:{__html:c},style:{backgroundColor:`transparent`}}):y(`pre`,{className:`max-w-full min-w-0 overflow-x-auto`,children:y(`code`,{children:e})})};N();var or=D({packageManager:`npm`,setPackageManager:()=>{},codeFormat:`typescript`,setCodeFormat:()=>{},contentDeclarationFormat:`typescript`,setContentDeclarationFormat:()=>{}}),$=()=>T(or),sr=({children:e})=>{let[t,n]=f(`packageManager`,`npm`),[r,i]=f(`codeFormat`,`typescript`),[a,o]=f(`contentDeclarationFormat`,`typescript`);return y(or,{value:{packageManager:t,setPackageManager:n,codeFormat:r,setCodeFormat:i,contentDeclarationFormat:a,setContentDeclarationFormat:o},children:e})};A();var cr=e=>{if(e!=null){if(Array.isArray(e))return e;if(typeof e==`string`&&e.startsWith(`[`))try{let t=JSON.parse(e);if(Array.isArray(t))return t}catch{}return[e]}},lr=({children:e,...t})=>{let{packageManager:n,codeFormat:r,contentDeclarationFormat:i}=$(),a=t.packageManager===void 0,o=n===t.packageManager,s=cr(t.codeFormat),c=s===void 0,l=s?s.includes(r):!1,u=cr(t.contentDeclarationFormat),d=u===void 0,f=u?u.includes(i):!1;return(a||o)&&(c||l)&&(d||f)?e:y(C,{})},ur={key:`code-selectors`,content:{nodeType:`translation`,translation:{en:{codeFormat:{label:`Select code format`,placeholder:`Code Format`},contentDeclarationFormat:{label:`Select dictionary format`,placeholder:`Dictionary Format`},packageManager:{label:`Select package manager`,placeholder:`Package Manager`}},"en-GB":{codeFormat:{label:`Select code format`,placeholder:`Code Format`},contentDeclarationFormat:{label:`Select dictionary format`,placeholder:`Dictionary Format`},packageManager:{label:`Select package manager`,placeholder:`Package Manager`}},fr:{codeFormat:{label:`Sélectionner le format de code`,placeholder:`Format de code`},contentDeclarationFormat:{label:`Sélectionner le format de dictionnaire`,placeholder:`Format de dictionnaire`},packageManager:{label:`Sélectionner le gestionnaire de paquets`,placeholder:`Gestionnaire de paquets`}},es:{codeFormat:{label:`Seleccionar formato de código`,placeholder:`Formato de código`},contentDeclarationFormat:{label:`Seleccionar formato de diccionario`,placeholder:`Formato de diccionario`},packageManager:{label:`Seleccionar gestor de paquetes`,placeholder:`Gestor de paquetes`}},de:{codeFormat:{label:`Code-Format auswählen`,placeholder:`Code-Format`},contentDeclarationFormat:{label:`Wörterbuchformat auswählen`,placeholder:`Wörterbuchformat`},packageManager:{label:`Paketmanager auswählen`,placeholder:`Paketmanager`}},ja:{codeFormat:{label:`コード形式を選択`,placeholder:`コード形式`},contentDeclarationFormat:{label:`辞書形式を選択`,placeholder:`辞書形式`},packageManager:{label:`パッケージマネージャーを選択`,placeholder:`パッケージマネージャー`}},ko:{codeFormat:{label:`코드 형식 선택`,placeholder:`코드 형식`},contentDeclarationFormat:{label:`사전 형식 선택`,placeholder:`사전 형식`},packageManager:{label:`패키지 관리자 선택`,placeholder:`패키지 관리자`}},zh:{codeFormat:{label:`选择代码格式`,placeholder:`代码格式`},contentDeclarationFormat:{label:`选择字典格式`,placeholder:`字典格式`},packageManager:{label:`选择包管理器`,placeholder:`包管理器`}},it:{codeFormat:{label:`Seleziona il formato del codice`,placeholder:`Formato del codice`},contentDeclarationFormat:{label:`Seleziona il formato del dizionario`,placeholder:`Formato del dizionario`},packageManager:{label:`Seleziona il gestore dei pacchetti`,placeholder:`Gestore dei pacchetti`}},pt:{codeFormat:{label:`Selecionar formato de código`,placeholder:`Formato de código`},contentDeclarationFormat:{label:`Selecionar formato de dicionário`,placeholder:`Formato de dicionário`},packageManager:{label:`Selecionar gerenciador de pacotes`,placeholder:`Gerenciador de pacotes`}},hi:{codeFormat:{label:`कोड प्रारूप चुनें`,placeholder:`कोड प्रारूप`},contentDeclarationFormat:{label:`शब्दकोश प्रारूप चुनें`,placeholder:`शब्दकोश प्रारूप`},packageManager:{label:`पैकेज प्रबंधक चुनें`,placeholder:`पैकेज प्रबंधक`}},ar:{codeFormat:{label:`اختر تنسيق الكود`,placeholder:`تنسيق الكود`},contentDeclarationFormat:{label:`اختر تنسيق القاموس`,placeholder:`تنسيق القاموس`},packageManager:{label:`اختر مدير الحزم`,placeholder:`مدير الحزم`}},ru:{codeFormat:{label:`Выбрать формат кода`,placeholder:`Формат кода`},contentDeclarationFormat:{label:`Выбрать формат словаря`,placeholder:`Формат словаря`},packageManager:{label:`Выбрать менеджер пакетов`,placeholder:`Менеджер пакетов`}}}},title:`Code selector accessibility labels`,description:`Accessible labels for code block selector buttons used by screen readers.`,tags:[`accessibility`,`code block`,`design system`],location:`local`,localId:`code-selectors::local::../@intlayer/design-system/dist/esm/components/IDE/selectors.content.mjs`,filePath:`../@intlayer/design-system/dist/esm/components/IDE/selectors.content.mjs`},dr=({availableFormats:e})=>{let{codeFormat:t,setCodeFormat:n,setContentDeclarationFormat:r}=$(),a=i(ur),o=t=>!e||e.includes(t);return y(x,{value:t,onValueChange:e=>{n(e),r(e)},children:[y(x.Trigger,{className:`py-1!`,"aria-label":a.codeFormat.label.value,children:y(x.Value,{placeholder:a.codeFormat.placeholder.value})}),y(x.Content,{children:[o(`typescript`)&&y(x.Item,{value:`typescript`,children:`TypeScript`}),o(`esm`)&&y(x.Item,{value:`esm`,children:`ESM`}),o(`commonjs`)&&y(x.Item,{value:`commonjs`,children:`CommonJS`})]})]})},fr=()=>{let{contentDeclarationFormat:e,setContentDeclarationFormat:t}=$(),n=i(ur);return y(x,{value:e,onValueChange:t,children:[y(x.Trigger,{className:`py-1!`,"aria-label":n.contentDeclarationFormat.label.value,children:y(x.Value,{placeholder:n.contentDeclarationFormat.placeholder.value})}),y(x.Content,{children:[y(x.Item,{value:`typescript`,children:`TypeScript`}),y(x.Item,{value:`commonjs`,children:`CommonJS`}),y(x.Item,{value:`esm`,children:`ESM`}),y(x.Item,{value:`json`,children:`JSON`})]})]})},pr={key:`code`,content:{nodeType:`translation`,translation:{en:{description:`Copy the code to the clipboard`,title:`Copy code`},"en-GB":{description:`Copy the code to the clipboard`,title:`Copy code`},fr:{description:`Copier le code dans le presse-papiers`,title:`Copier le code`},es:{description:`Copiar el código al portapapeles`,title:`Copiar código`},de:{description:`Kopieren Sie den Code in die Zwischenablage`,title:`Code kopieren`},ja:{description:`コードをクリップボードにコピー`,title:`コードをコピー`},ko:{description:`코드를 클립보드에 복사`,title:`코드 복사`},zh:{description:`复制代码到剪贴板`,title:`复制代码`},it:{description:`Copiare il codice nella clipboard`,title:`Copiare il codice`},pt:{description:`Copiar o código para a área de transferência`,title:`Copiar código`},hi:{description:`कोड को क्लिपबोर्ड पर कॉपी करें`,title:`कोड कॉपी करें`},ar:{description:`نسخ الكود إلى الحافظة`,title:`نسخ الكود`},ru:{description:`Копировать код в буфер обмена`,title:`Копировать код`}}},localIds:[`code::local::../@intlayer/design-system/dist/esm/components/IDE/copyCode.content.mjs`,`code::local::../@intlayer/design-system/dist/esm/components/IDE/code.content.mjs`]},mr=({code:e,...t})=>{let{title:n,description:r}=i(pr);return y(s,{identifier:`copy`,children:[y(l,{content:e,...t}),y(s.Detail,{identifier:`copy`,className:`flex min-w-64 flex-col gap-3 p-3 text-sm`,xAlign:`end`,children:[y(`strong`,{children:n}),y(`p`,{className:`text-neutral`,children:r})]})]})},hr=()=>{let{packageManager:e,setPackageManager:t}=$(),n=i(ur);return i(ur),y(x,{value:e,onValueChange:t,children:[y(x.Trigger,{className:`py-1!`,"aria-label":n.packageManager.label.value,children:y(x.Value,{placeholder:n.packageManager.placeholder.value})}),y(x.Content,{children:[y(x.Item,{value:`npm`,children:`npm`}),y(x.Item,{value:`pnpm`,children:`pnpm`}),y(x.Item,{value:`yarn`,children:`yarn`}),y(x.Item,{value:`bun`,children:`bun`})]})]})};N(),A();var gr=700,_r=new Set([`tsx`,`jsx`]),vr=[`typescript`,`commonjs`,`esm`],yr=e=>vr.includes(e),br=e=>{if(Array.isArray(e))return e.map(String);if(typeof e==`string`&&e!==``){if(e.startsWith(`[`))try{let t=JSON.parse(e);if(Array.isArray(t))return t.map(String)}catch{}return[e]}},xr=({children:t,language:n,highlightedHtml:r,showHeader:i=!0,showLineNumbers:s=!0,className:c,fileName:l,packageManager:u,codeFormat:d,contentDeclarationFormat:f,isRollable:p=!0,lang:m,...h})=>{let{codeFormat:g,contentDeclarationFormat:_}=$(),v=k(()=>br(d),[d]),b=k(()=>br(f),[f]),x=v!==void 0&&v.length>1&&v.includes(`typescript`),S=b!==void 0&&b.length>1&&b.includes(`typescript`),w=x||S,T=S?_:g,E=k(()=>{let e=S?b:v;if(!e)return;let t=e.filter(yr);return _r.has(n)?t.filter(e=>e!==`commonjs`):t},[S,b,v,n]),D=k(()=>!E||E.includes(T)?T:E[E.length-1]??`typescript`,[E,T]),[O,A]=F(l);P(()=>{if(!w||D===`typescript`){A(l);return}if(!l)return;let e=!1;return(async()=>{let{deriveFileName:t}=await o(async()=>{let{deriveFileName:e}=await import(`./codeTransformer-pmm6yJGh.js`);return{deriveFileName:e}},[]);e||A(t(l,D))})(),()=>{e=!0}},[l,w,D]);let j=k(()=>{let e=Array.isArray(t)?t.join(``):String(t);return e.endsWith(`
24
+ `).map((e,t)=>y(`span`,{className:`line block w-full`,children:e},`line-${t}-${e.slice(0,10)}`)):e})})}),Rn=`[&_pre.shiki]:!bg-transparent min-w-0 max-w-full overflow-auto bg-transparent [-ms-overflow-style:none] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden [&_pre.shiki]:max-w-full [&_pre.shiki]:overflow-x-auto [&_pre::-webkit-scrollbar]:hidden [&_pre]:[-ms-overflow-style:none] [&_pre]:[scrollbar-width:none]`,zn=({html:e})=>y(`div`,{className:Rn,children:y(`div`,{dangerouslySetInnerHTML:{__html:e}})}),Bn=M(()=>o(()=>import(`./CodeBlockShiki-CqqBaQWK.js`).then(e=>({default:e.CodeBlockShiki})),__vite__mapDeps([0,1,2,3]))),Vn=({className:e,onChange:t,isEditable:n,isInverse:r=!1,isInverseColor:i,inverse:o,isDarkMode:s,children:c,lang:l,highlightedHtml:u,...d})=>{let f=r||i||o;return y(`div`,{className:a(`flex w-full max-w-full min-w-0 overflow-x-auto`,f&&`shiki-inverse text-text-opposite`,s===!0&&`shiki-dark`,s===!1&&`shiki-light`,e),"data-inverse":f?`true`:void 0,"data-shiki-theme":s===!0?`dark`:s===!1?`light`:void 0,...d,children:u?y(zn,{html:u}):y(j,{fallback:y(Ln,{children:c}),children:y(Bn,{lang:l,children:c})})})},Hn={astro:()=>o(()=>import(`./astro-BZ97kZFP.js`),__vite__mapDeps([4,5,6,7,8,9,10])),bash:()=>o(()=>import(`./bash-CLZ0U2zV.js`),[]),css:()=>o(()=>import(`./css-DgaLhXQH.js`),__vite__mapDeps([11,8])),html:()=>o(()=>import(`./html-BCy9P6D2.js`),__vite__mapDeps([12,13,6,8])),javascript:()=>o(()=>import(`./javascript-CpIGwZ_Y.js`),__vite__mapDeps([14,6])),json:()=>o(()=>import(`./json-C3WlssX3.js`),__vite__mapDeps([15,5])),json5:()=>o(()=>import(`./json5-BR5RXkoi.js`),[]),jsonc:()=>o(()=>import(`./jsonc-CYpm1nAK.js`),[]),markdown:()=>o(()=>import(`./markdown-BYOwaDjH.js`),[]),svelte:()=>o(()=>import(`./svelte-CdeT-Ich.js`),__vite__mapDeps([16,6,7,8,9])),tsx:()=>o(()=>import(`./tsx-CGosfAUg.js`),__vite__mapDeps([17,10])),typescript:()=>o(()=>import(`./typescript-Bb1J8qyy.js`),__vite__mapDeps([18,7])),vue:()=>o(()=>import(`./vue-jUI-lpPb.js`),__vite__mapDeps([19,8,6,7,5,13])),xml:()=>o(()=>import(`./xml-DMbpbO54.js`),[]),yaml:()=>o(()=>import(`./yaml-rwi0_p6S.js`),[])};Object.keys(Hn);var Un={cjs:`javascript`,console:`bash`,cts:`typescript`,htm:`html`,js:`javascript`,jsonc:`json5`,jsx:`tsx`,md:`markdown`,mdx:`markdown`,mjs:`javascript`,mts:`typescript`,postcss:`css`,sh:`bash`,shell:`bash`,shellscript:`bash`,ts:`typescript`,yml:`yaml`,zsh:`bash`},Wn=`plaintext`,Gn=e=>{let t=(e??``).trim().toLowerCase(),n=Un[t]??t,r=Hn[n];return r?{id:n,loadGrammar:r}:{id:Wn,loadGrammar:null}},Kn={light:`github-light`,dark:`github-dark`},qn=e=>e?e.match(/(?:youtu\.be\/|youtube(?:-nocookie)?\.com\/(?:embed\/|v\/|watch\?v=|shorts\/))([\w-]{11})/i)?.[1]??null:null,Jn=e=>`https://www.youtube.com/embed/${e}`,Yn=e=>`https://www.youtube.com/watch?v=${e}`;N();var Xn=`accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share`,Zn=(e,t)=>{let n=qn(e);return n?{isYoutubeVideo:!0,src:Jn(n),frameProps:{...t,allow:Xn,allowFullScreen:!0,referrerPolicy:`strict-origin-when-cross-origin`}}:{src:e,frameProps:t,isYoutubeVideo:!1}},Qn=e=>{if(!e)return{href:``,label:``};let t=qn(e);if(t)return{href:Yn(t),label:`youtube.com`};if(/^https?:\/\//i.test(e))try{let t=new URL(e);return{href:t.href,label:t.host}}catch{return{href:e,label:e}}return{href:e,label:e}},$n=()=>{let e=I(null),[t,n]=F(!1);return P(()=>{let r=e.current;if(!r||t)return;if(typeof IntersectionObserver>`u`){n(!0);return}let i=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(n(!0),i.disconnect())},{rootMargin:`200px`});return i.observe(r),()=>i.disconnect()},[t]),{elementRef:e,hasBecomeVisible:t}},er=({src:e,title:t,className:n,frameProps:r})=>{let{elementRef:i,hasBecomeVisible:a}=$n();return a?y(`iframe`,{...r,src:e,title:t,loading:`lazy`,className:n}):y(`div`,{ref:i,"aria-hidden":!0,className:n})},tr=t=>{let{src:n,className:i,title:o,...s}=t,[c,l]=F(!1),{src:u,frameProps:d,isYoutubeVideo:f}=Zn(n,s),{href:p,label:m}=Qn(n);return y(e,{roundedSize:`2xl`,border:!0,borderColor:`neutral`,className:`overflow-hidden p-0`,gap:`none`,children:[y(er,{src:u,title:o,frameProps:d,className:a(`block max-h-[80vh] min-h-[12rem] w-full border-0`,f&&`aspect-video`,i)}),y(`div`,{className:`flex items-center justify-between gap-3 px-3 py-1`,children:[p?y(b,{href:p,target:`_blank`,rel:`noopener noreferrer`,label:``,color:`neutral`,className:`inline-flex max-w-[calc(100%-3rem)] min-w-0 items-center gap-2 text-xs text-muted-foreground underline-offset-2 hover:text-foreground hover:underline`,children:m}):y(`span`,{className:`text-sm text-neutral`,children:`Embedded frame`}),y(r,{variant:`hoverable`,size:`icon-md`,onClick:()=>l(!0),label:`Open embedded page in fullscreen`,Icon:Fn})]}),y(v,{isOpen:c,onClose:()=>l(!1),size:`unset`,hasCloseButton:!0,isScrollable:!0,padding:`sm`,children:c&&u?y(e,{roundedSize:`2xl`,border:!0,borderColor:`neutral`,className:`overflow-hidden p-0`,gap:`none`,children:y(`iframe`,{...d,src:u,title:o??`Embedded content`,allowFullScreen:!0,className:`block min-h-[82vh] w-full border-0`})}):null})]})},nr={key:`expand-collapse`,content:{nodeType:`translation`,translation:{en:{expandCollapseContent:{nodeType:`condition`,condition:{true:`Show all`,false:`Show less`}}},"en-GB":{expandCollapseContent:{nodeType:`condition`,condition:{true:`Show all`,false:`Show less`}}},fr:{expandCollapseContent:{nodeType:`condition`,condition:{true:`Afficher tout`,false:`Afficher moins`}}},es:{expandCollapseContent:{nodeType:`condition`,condition:{true:`Mostrar todo`,false:`Mostrar menos`}}},de:{expandCollapseContent:{nodeType:`condition`,condition:{true:`Mehr anzeigen`,false:`Weniger anzeigen`}}},ja:{expandCollapseContent:{nodeType:`condition`,condition:{true:`すべて表示`,false:`表示を減らす`}}},ko:{expandCollapseContent:{nodeType:`condition`,condition:{true:`모두 보기`,false:`간략히 보기`}}},zh:{expandCollapseContent:{nodeType:`condition`,condition:{true:`显示全部`,false:`显示较少`}}},it:{expandCollapseContent:{nodeType:`condition`,condition:{true:`Mostra tutto`,false:`Mostra meno`}}},pt:{expandCollapseContent:{nodeType:`condition`,condition:{true:`Mostrar tudo`,false:`Mostrar menos`}}},hi:{expandCollapseContent:{nodeType:`condition`,condition:{true:`सभी दिखाएँ`,false:`कम दिखाएँ`}}},ar:{expandCollapseContent:{nodeType:`condition`,condition:{true:`عرض الكل`,false:`عرض أقل`}}},ru:{expandCollapseContent:{nodeType:`condition`,condition:{true:`Показать все`,false:`Показать меньше`}}}}},title:`Expand collapse toggle`,description:`Content declaration for the expand/collapse toggle component, defining the labels shown when content is expanded or collapsed.`,tags:[`ui component`,`toggle`,`expand collapse`],location:`local`,localId:`expand-collapse::local::../@intlayer/design-system/dist/esm/components/ExpandCollapse/expandCollapse.content.mjs`,filePath:`../@intlayer/design-system/dist/esm/components/ExpandCollapse/expandCollapse.content.mjs`};N();var rr=700,ir=({isRollable:e=!0,minHeight:t=rr,children:r,className:o})=>{let[s,c]=F(0),[l,u]=F(!0),d=I(null),{expandCollapseContent:f}=i(nr),p=s>t,m=w(e=>{if(d.current?.disconnect(),d.current=null,!e)return;if(typeof ResizeObserver>`u`){c(e.clientHeight);return}let t=new ResizeObserver(([e])=>{e&&c(e.contentRect.height)});t.observe(e),d.current=t},[]);return P(()=>()=>d.current?.disconnect(),[]),e?p?y(n,{isHidden:l,minHeight:t,className:`w-full overflow-x-auto overflow-y-hidden`,style:{gridTemplateRows:l?`${t}px`:`${s}px`},children:[y(`div`,{className:a(`grid w-full`,o),ref:m,children:r}),y(`button`,{className:a(`text-md absolute inset-e-0 bottom-0 flex w-full cursor-pointer items-center justify-center rounded-t-2xl bg-linear-to-t from-card/80 to-transparent px-3 py-0.5 text-neutral-700 shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur transition-all duration-300 hover:py-1 dark:text-neutral-400`,l?`w-full`:`w-32`),type:`button`,onClick:()=>u(e=>!e),children:f(l)})]}):y(`div`,{className:a(`grid w-full`,o),ref:m,children:r}):r};N();var ar=({children:e,originalLang:t,targetFormat:n,initialHtml:r})=>{let[i,a]=F(r??null),s=I(r??null);P(()=>{if(r&&n===`typescript`){s.current=r,a(r);return}let i=!1;return(async()=>{try{let r=e,c=Gn(t).id;if(n!==`typescript`){let{transformCode:a,deriveLanguage:s}=await o(async()=>{let{transformCode:e,deriveLanguage:t}=await import(`./codeTransformer-pmm6yJGh.js`);return{transformCode:e,deriveLanguage:t}},[]);if(i)return;r=a(String(e),n),c=Gn(s(t,n)).id}let{codeToHtml:l}=await o(async()=>{let{codeToHtml:e}=await import(`./shikiBundle-COH1-0sb.js`).then(e=>e.i);return{codeToHtml:e}},__vite__mapDeps([20,1,2,3]));if(i)return;let u=await l(String(r),{lang:c,themes:Kn,defaultColor:!1});i||(s.current=u,a(u))}catch{i||a(``)}})(),()=>{i=!0}},[e,t,n,r]);let c=i??s.current;return c?y(`div`,{dangerouslySetInnerHTML:{__html:c},style:{backgroundColor:`transparent`}}):y(`pre`,{className:`max-w-full min-w-0 overflow-x-auto`,children:y(`code`,{children:e})})};N();var or=D({packageManager:`npm`,setPackageManager:()=>{},codeFormat:`typescript`,setCodeFormat:()=>{},contentDeclarationFormat:`typescript`,setContentDeclarationFormat:()=>{}}),$=()=>T(or),sr=({children:e})=>{let[t,n]=f(`packageManager`,`npm`),[r,i]=f(`codeFormat`,`typescript`),[a,o]=f(`contentDeclarationFormat`,`typescript`);return y(or,{value:{packageManager:t,setPackageManager:n,codeFormat:r,setCodeFormat:i,contentDeclarationFormat:a,setContentDeclarationFormat:o},children:e})};A();var cr=e=>{if(e!=null){if(Array.isArray(e))return e;if(typeof e==`string`&&e.startsWith(`[`))try{let t=JSON.parse(e);if(Array.isArray(t))return t}catch{}return[e]}},lr=({children:e,...t})=>{let{packageManager:n,codeFormat:r,contentDeclarationFormat:i}=$(),a=t.packageManager===void 0,o=n===t.packageManager,s=cr(t.codeFormat),c=s===void 0,l=s?s.includes(r):!1,u=cr(t.contentDeclarationFormat),d=u===void 0,f=u?u.includes(i):!1;return(a||o)&&(c||l)&&(d||f)?e:y(C,{})},ur={key:`code-selectors`,content:{nodeType:`translation`,translation:{en:{codeFormat:{label:`Select code format`,placeholder:`Code Format`},contentDeclarationFormat:{label:`Select dictionary format`,placeholder:`Dictionary Format`},packageManager:{label:`Select package manager`,placeholder:`Package Manager`}},"en-GB":{codeFormat:{label:`Select code format`,placeholder:`Code Format`},contentDeclarationFormat:{label:`Select dictionary format`,placeholder:`Dictionary Format`},packageManager:{label:`Select package manager`,placeholder:`Package Manager`}},fr:{codeFormat:{label:`Sélectionner le format de code`,placeholder:`Format de code`},contentDeclarationFormat:{label:`Sélectionner le format de dictionnaire`,placeholder:`Format de dictionnaire`},packageManager:{label:`Sélectionner le gestionnaire de paquets`,placeholder:`Gestionnaire de paquets`}},es:{codeFormat:{label:`Seleccionar formato de código`,placeholder:`Formato de código`},contentDeclarationFormat:{label:`Seleccionar formato de diccionario`,placeholder:`Formato de diccionario`},packageManager:{label:`Seleccionar gestor de paquetes`,placeholder:`Gestor de paquetes`}},de:{codeFormat:{label:`Code-Format auswählen`,placeholder:`Code-Format`},contentDeclarationFormat:{label:`Wörterbuchformat auswählen`,placeholder:`Wörterbuchformat`},packageManager:{label:`Paketmanager auswählen`,placeholder:`Paketmanager`}},ja:{codeFormat:{label:`コード形式を選択`,placeholder:`コード形式`},contentDeclarationFormat:{label:`辞書形式を選択`,placeholder:`辞書形式`},packageManager:{label:`パッケージマネージャーを選択`,placeholder:`パッケージマネージャー`}},ko:{codeFormat:{label:`코드 형식 선택`,placeholder:`코드 형식`},contentDeclarationFormat:{label:`사전 형식 선택`,placeholder:`사전 형식`},packageManager:{label:`패키지 관리자 선택`,placeholder:`패키지 관리자`}},zh:{codeFormat:{label:`选择代码格式`,placeholder:`代码格式`},contentDeclarationFormat:{label:`选择字典格式`,placeholder:`字典格式`},packageManager:{label:`选择包管理器`,placeholder:`包管理器`}},it:{codeFormat:{label:`Seleziona il formato del codice`,placeholder:`Formato del codice`},contentDeclarationFormat:{label:`Seleziona il formato del dizionario`,placeholder:`Formato del dizionario`},packageManager:{label:`Seleziona il gestore dei pacchetti`,placeholder:`Gestore dei pacchetti`}},pt:{codeFormat:{label:`Selecionar formato de código`,placeholder:`Formato de código`},contentDeclarationFormat:{label:`Selecionar formato de dicionário`,placeholder:`Formato de dicionário`},packageManager:{label:`Selecionar gerenciador de pacotes`,placeholder:`Gerenciador de pacotes`}},hi:{codeFormat:{label:`कोड प्रारूप चुनें`,placeholder:`कोड प्रारूप`},contentDeclarationFormat:{label:`शब्दकोश प्रारूप चुनें`,placeholder:`शब्दकोश प्रारूप`},packageManager:{label:`पैकेज प्रबंधक चुनें`,placeholder:`पैकेज प्रबंधक`}},ar:{codeFormat:{label:`اختر تنسيق الكود`,placeholder:`تنسيق الكود`},contentDeclarationFormat:{label:`اختر تنسيق القاموس`,placeholder:`تنسيق القاموس`},packageManager:{label:`اختر مدير الحزم`,placeholder:`مدير الحزم`}},ru:{codeFormat:{label:`Выбрать формат кода`,placeholder:`Формат кода`},contentDeclarationFormat:{label:`Выбрать формат словаря`,placeholder:`Формат словаря`},packageManager:{label:`Выбрать менеджер пакетов`,placeholder:`Менеджер пакетов`}}}},title:`Code selector accessibility labels`,description:`Accessible labels for code block selector buttons used by screen readers.`,tags:[`accessibility`,`code block`,`design system`],location:`local`,localId:`code-selectors::local::../@intlayer/design-system/dist/esm/components/IDE/selectors.content.mjs`,filePath:`../@intlayer/design-system/dist/esm/components/IDE/selectors.content.mjs`},dr=({availableFormats:e})=>{let{codeFormat:t,setCodeFormat:n,setContentDeclarationFormat:r}=$(),a=i(ur),o=t=>!e||e.includes(t);return y(x,{value:t,onValueChange:e=>{n(e),r(e)},children:[y(x.Trigger,{className:`py-1!`,"aria-label":a.codeFormat.label.value,children:y(x.Value,{placeholder:a.codeFormat.placeholder.value})}),y(x.Content,{children:[o(`typescript`)&&y(x.Item,{value:`typescript`,children:`TypeScript`}),o(`esm`)&&y(x.Item,{value:`esm`,children:`ESM`}),o(`commonjs`)&&y(x.Item,{value:`commonjs`,children:`CommonJS`})]})]})},fr=()=>{let{contentDeclarationFormat:e,setContentDeclarationFormat:t}=$(),n=i(ur);return y(x,{value:e,onValueChange:t,children:[y(x.Trigger,{className:`py-1!`,"aria-label":n.contentDeclarationFormat.label.value,children:y(x.Value,{placeholder:n.contentDeclarationFormat.placeholder.value})}),y(x.Content,{children:[y(x.Item,{value:`typescript`,children:`TypeScript`}),y(x.Item,{value:`commonjs`,children:`CommonJS`}),y(x.Item,{value:`esm`,children:`ESM`}),y(x.Item,{value:`json`,children:`JSON`})]})]})},pr={key:`code`,content:{nodeType:`translation`,translation:{en:{description:`Copy the code to the clipboard`,title:`Copy code`},"en-GB":{description:`Copy the code to the clipboard`,title:`Copy code`},fr:{description:`Copier le code dans le presse-papiers`,title:`Copier le code`},es:{description:`Copiar el código al portapapeles`,title:`Copiar código`},de:{description:`Kopieren Sie den Code in die Zwischenablage`,title:`Code kopieren`},ja:{description:`コードをクリップボードにコピー`,title:`コードをコピー`},ko:{description:`코드를 클립보드에 복사`,title:`코드 복사`},zh:{description:`复制代码到剪贴板`,title:`复制代码`},it:{description:`Copiare il codice nella clipboard`,title:`Copiare il codice`},pt:{description:`Copiar o código para a área de transferência`,title:`Copiar código`},hi:{description:`कोड को क्लिपबोर्ड पर कॉपी करें`,title:`कोड कॉपी करें`},ar:{description:`نسخ الكود إلى الحافظة`,title:`نسخ الكود`},ru:{description:`Копировать код в буфер обмена`,title:`Копировать код`}}},localIds:[`code::local::../@intlayer/design-system/dist/esm/components/IDE/copyCode.content.mjs`,`code::local::../@intlayer/design-system/dist/esm/components/IDE/code.content.mjs`]},mr=({code:e,...t})=>{let{title:n,description:r}=i(pr);return y(s,{identifier:`copy`,children:[y(l,{content:e,...t}),y(s.Detail,{identifier:`copy`,className:`flex min-w-64 flex-col gap-3 p-3 text-sm`,xAlign:`end`,children:[y(`strong`,{children:n}),y(`p`,{className:`text-neutral`,children:r})]})]})},hr=()=>{let{packageManager:e,setPackageManager:t}=$(),n=i(ur);return i(ur),y(x,{value:e,onValueChange:t,children:[y(x.Trigger,{className:`py-1!`,"aria-label":n.packageManager.label.value,children:y(x.Value,{placeholder:n.packageManager.placeholder.value})}),y(x.Content,{children:[y(x.Item,{value:`npm`,children:`npm`}),y(x.Item,{value:`pnpm`,children:`pnpm`}),y(x.Item,{value:`yarn`,children:`yarn`}),y(x.Item,{value:`bun`,children:`bun`})]})]})};N(),A();var gr=700,_r=new Set([`tsx`,`jsx`]),vr=[`typescript`,`commonjs`,`esm`],yr=e=>vr.includes(e),br=e=>{if(Array.isArray(e))return e.map(String);if(typeof e==`string`&&e!==``){if(e.startsWith(`[`))try{let t=JSON.parse(e);if(Array.isArray(t))return t.map(String)}catch{}return[e]}},xr=({children:t,language:n,highlightedHtml:r,showHeader:i=!0,showLineNumbers:s=!0,className:c,fileName:l,packageManager:u,codeFormat:d,contentDeclarationFormat:f,isRollable:p=!0,lang:m,...h})=>{let{codeFormat:g,contentDeclarationFormat:_}=$(),v=k(()=>br(d),[d]),b=k(()=>br(f),[f]),x=v!==void 0&&v.length>1&&v.includes(`typescript`),S=b!==void 0&&b.length>1&&b.includes(`typescript`),w=x||S,T=S?_:g,E=k(()=>{let e=S?b:v;if(!e)return;let t=e.filter(yr);return _r.has(n)?t.filter(e=>e!==`commonjs`):t},[S,b,v,n]),D=k(()=>!E||E.includes(T)?T:E[E.length-1]??`typescript`,[E,T]),[O,A]=F(l);P(()=>{if(!w||D===`typescript`){A(l);return}if(!l)return;let e=!1;return(async()=>{let{deriveFileName:t}=await o(async()=>{let{deriveFileName:e}=await import(`./codeTransformer-pmm6yJGh.js`);return{deriveFileName:e}},[]);e||A(t(l,D))})(),()=>{e=!0}},[l,w,D]);let j=k(()=>{let e=Array.isArray(t)?t.join(``):String(t);return e.endsWith(`
25
25
  `)?e.slice(0,-1):e},[t]),[ee,M]=F(j);P(()=>{if(!w||D===`typescript`){M(j);return}let e=!1;return(async()=>{let{transformCode:t}=await o(async()=>{let{transformCode:e}=await import(`./codeTransformer-pmm6yJGh.js`);return{transformCode:e}},[]);e||M(t(j,D))})(),()=>{e=!0}},[j,w,D]);let te=u||d||f;return y(lr,{packageManager:u,codeFormat:d,contentDeclarationFormat:f,children:y(e,{className:a(`relative max-w-full min-w-0 text-sm leading-6`,s&&`with-line-number ms-0`,c),transparency:`lg`,dir:`ltr`,...h,children:[i&&y(C,{children:[y(`div`,{className:`grid w-full grid-cols-[1fr_auto] items-center justify-between rounded-t-xl border-b bg-card/50 py-1.5 ps-4 pe-12 text-xs text-muted-foreground`,children:[y(`span`,{className:`truncate`,children:O??n}),y(`div`,{className:`flex items-center gap-2`,children:[u&&y(hr,{}),d&&y(dr,{availableFormats:E}),f&&y(fr,{})]})]}),y(`div`,{className:`sticky top-46 z-20`,children:y(`div`,{className:a(`absolute inset-e-2 bottom-0 flex h-7 items-center`,te&&`h-11`),children:y(mr,{code:ee})})})]}),y(ir,{minHeight:gr,isRollable:p,className:`max-w-full min-w-0 overflow-x-auto p-2`,children:w?y(ar,{originalLang:n,targetFormat:D,initialHtml:r,children:j}):y(Vn,{lang:n,highlightedHtml:r,children:j})})]})})};N();var Sr=D({tabsValues:{},setTabsValues:(()=>{})}),Cr=()=>T(Sr),wr=({children:e})=>{let[t,n]=F({}),r=k(()=>({tabsValues:t,setTabsValues:n}),[t]);return y(Sr,{value:r,children:e})};N();var Tr=e=>e.trim().replace(/\s+/g,`-`).replace(/[^\w-]/g,``),Er=e=>{let t=new Map;return e.map((e,n)=>{let r=Tr(e)||String(n),i=t.get(r)??0;return t.set(r,i+1),i===0?r:`${r}-${i+1}`})},Dr=D(void 0),Or=S(`relative w-full rounded-lg`,{variants:{background:{with:`border bg-background/2 shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur`,without:``},variant:{default:``,bordered:`border-2`,ghost:`border-0 bg-transparent shadow-none`}},defaultVariants:{variant:`default`}}),kr=({value:e,label:t},n)=>{let r=e??t;return typeof r==`string`?r:String(n)},Ar=({children:e,...t})=>y(`div`,{...t,children:e});Ar.displayName=`TabItem`;var jr=Object.assign(({defaultTab:e,group:t,variant:n,children:r,className:i,headerClassName:o,fullHeight:s,...c})=>{let l=te.toArray(r).filter(e=>ee(e)&&e.type===Ar).map((e,t)=>({...e.props,value:kr(e.props,t)})),d=l[0]?.value,f=e!==void 0&&l.some(t=>t.value===e),p=f?e:d,{tabsValues:m,setTabsValues:h}=Cr(),[g,_]=F(e??d??``),[v,b]=F(e);e!==v&&(b(e),f&&_(e));let x=!!(t&&typeof m==`object`),S=x&&t?m?.[t]:g,C=l.some(e=>e.value===S);!x&&!C&&p!==void 0&&g!==p&&_(p);let T=C?S:p??e??d??``,E=l.length===0?-1:Math.max(0,l.findIndex(e=>e.value===T)),D=l.length,O=Er(l.map(({value:e})=>e)),{containerProps:A,dragDeltaPct:j,isDragging:M}=In({itemIndex:E,itemCount:D,onSwipeLeft:()=>{let e=Math.min(D-1,E+1),t=l[e]?.value;t&&N(t)},onSwipeRight:()=>{let e=Math.max(0,E-1),t=l[e]?.value;t&&N(t)}}),N=w(e=>{_(e),t&&typeof h==`function`&&h(n=>({...n,[t]:e}))},[t,h]),ne=k(()=>({activeTab:T??``,setActiveTab:N}),[T,N]);return y(Dr.Provider,{value:ne,children:y(`div`,{className:a(Or({variant:n}),s&&`flex h-full flex-col overflow-hidden`,i),...c,children:[y(`div`,{className:a(`flex shrink-0 gap-3 p-3`,o),children:y(u,{selectedChoice:T,tabs:l.map(({label:e,value:t,disabled:n},r)=>{let i=T===t,o=O[r];return y(`button`,{className:a(`cursor-pointer rounded-md px-4 py-1 text-sm font-medium whitespace-nowrap transition-colors focus:outline-none`,!i&&`text-neutral/70`),"data-active":i,disabled:n,onClick:()=>!n&&N(t),role:`tab`,"aria-selected":i,"aria-controls":`tabpanel-${o}`,id:`tab-${o}`,type:`button`,children:e??t},t)}),hoverable:!0,color:`text`})}),y(`div`,{className:a(`relative w-full min-w-0 overflow-x-clip [-webkit-clip-path:inset(0)] [clip-path:inset(0)]`,s&&`min-h-0 flex-1`),...A,children:y(`div`,{className:a(`grid w-full min-w-0`,s&&`h-full`,M?`transition-none`:`transition-transform duration-300 ease-in-out`),style:{gridTemplateColumns:`repeat(${l.length}, 100%)`,transform:`translateX(-${E*100-(M?j:0)}%)`},children:l.map(({value:e,children:t,className:n},r)=>{let i=r===E,o=O[r];return y(`div`,{role:`tabpanel`,"aria-labelledby":`tab-${o}`,id:`tabpanel-${o}`,inert:!i,tabIndex:i?0:-1,"data-active":i,className:a(`w-full min-w-0 p-3 opacity-100 transition-opacity duration-300 ease-in-out`,s&&`h-full overflow-y-auto`,!i&&`pointer-events-none opacity-0`,n),children:y(`div`,{className:a(`flex w-full min-w-0 flex-col items-stretch gap-6`,s&&`min-h-full`),children:t})},e)})})})]})})},{Item:Ar}),Mr=({className:e,...t})=>y(`th`,{className:a(`border border-b border-solid bg-neutral/10 p-4`,e),...t}),Nr=({className:e,...t})=>y(`tr`,{className:a(`hover:bg-neutral/10`,e),...t}),Pr=({className:e,...t})=>y(`td`,{className:a(`border border-b border-solid p-4`,e),...t}),Fr=({className:e,...t})=>y(`hr`,{className:a(`mx-6 mt-16 border-dashed text-neutral`,e),...t}),Ir={key:`table`,content:{nodeType:`translation`,translation:{en:{modal:{description:`Open the table in a modal to view all data content clearly`,title:`Show all table content`}},"en-GB":{modal:{description:`Open the table in a modal to view all data content clearly`,title:`Show all table content`}},fr:{modal:{description:`Ouvrir le tableau dans une fenêtre modale pour voir tout le contenu clairement`,title:`Afficher tout le contenu du tableau`}},es:{modal:{description:`Abrir la tabla en una ventana flotante para ver todo el contenido claramente`,title:`Mostrar todo el contenido de la tabla`}},de:{modal:{description:`Tabelle in einem Modal öffnen, um alle Daten übersichtlich anzuzeigen`,title:`Alle Tabellendaten anzeigen`}},ja:{modal:{description:`テーブルをモーダルで開き、すべてのデータを明確に表示`,title:`テーブルのすべての内容を表示`}},ko:{modal:{description:`테이블을 모달로 열어 모든 데이터를 명확하게 확인`,title:`테이블의 모든 내용 표시`}},zh:{modal:{description:`在弹窗中打开表格以清晰地查看所有数据`,title:`显示表格的所有内容`}},it:{modal:{description:`Apri la tabella in una finestra modale per visualizzare tutti i dati in modo chiaro`,title:`Mostra tutto il contenuto della tabella`}},pt:{modal:{description:`Abrir a tabela em um modal para ver todo o conteúdo claramente`,title:`Mostrar todo o conteúdo da tabela`}},hi:{modal:{description:`सभी डेटा सामग्री को स्पष्ट रूप से देखने के लिए तालिका को मोडल में खोलें`,title:`सभी तालिका सामग्री दिखाएं`}},ar:{modal:{description:`افتح الجدول في نافذة منبثقة لعرض جميع محتويات البيانات بوضوح`,title:`اظهار جميع محتويات الجدول`}},ru:{modal:{description:`Открыть таблицу в модальном окне для четкого просмотра всех данных`,title:`Показать все данные таблицы`}}}},title:`Table component content`,description:`Content declaration related to the Table component, specifically for UI message to display all table content.`,tags:[`table`,`component content`,`design system`],location:`local`,localId:`table::local::../@intlayer/design-system/dist/esm/components/Table/table.content.mjs`,filePath:`../@intlayer/design-system/dist/esm/components/Table/table.content.mjs`},Lr=({setIsModalOpen:e})=>{let{modal:t}=i(Ir);return y(`div`,{className:`pointer-events-none absolute inset-y-0 inset-e-4 z-10`,children:y(`div`,{className:`pointer-events-auto sticky top-48 pt-4`,children:y(s,{identifier:`expand`,children:[y(r,{variant:`hoverable`,size:`icon-md`,onClick:()=>{e(!0)},label:t.title,Icon:Fn}),y(s.Detail,{identifier:`expand`,className:`flex min-w-64 flex-col gap-3 p-3 text-sm`,xAlign:`end`,children:[y(`strong`,{children:t.title}),y(`p`,{className:`text-neutral`,children:t.description})]})]})})})};N();var Rr=.55,zr=5,Br=30,Vr=(e,t,n)=>{P(()=>{if(!e.current)return;let n=[];Array.from(e.current.querySelectorAll(`tr`)).forEach(e=>{Array.from(e.children).forEach((e,t)=>{let r=e.textContent?.trim().length??0;(n[t]===void 0||r>n[t])&&(n[t]=r)})});let r=e=>{let t=Array.from(e.querySelectorAll(`tr`));if(t.length===0)return;let r=(e,t)=>{let r=Math.min(Br,Math.max(zr,(n[t]??0)*Rr));e.style.minWidth=`${r}rem`,e.style.maxWidth=`${Br}rem`};e.querySelectorAll(`th`).forEach((e,t)=>{r(e,t)}),t.forEach(e=>{e.querySelectorAll(`td`).forEach((e,t)=>{r(e,t)})})};r(e.current),t.current&&r(t.current)},n)};N(),A();var Hr=({className:e,isRollable:t=!1,displayModal:n,isInteractive:r,onClick:i,...o})=>{let[s,c]=F(!1),[l,u]=F(null),d=I(null),f=I(null);Vr(d,f,[o.children,s]),P(()=>{if(s&&l!==null&&f.current){let e=f.current.rows[l];e&&(e.scrollIntoView({behavior:`smooth`,block:`center`}),e.classList.add(`bg-card`),e.style.transition=`background-color 0.3s ease-in-out`)}},[s,l]),P(()=>{s||u(null)},[s]);let m=e=>{if(n){let t=e.target.closest(`tr`);t?.closest(`tbody`)&&(u(t.rowIndex),c(!0))}i?.(e)};return y(`div`,{className:`group relative`,children:[n&&y(Lr,{setIsModalOpen:c}),y(ir,{isRollable:t,className:`max-w-full overflow-x-auto bg-background text-start`,children:y(p,{ref:d,className:e,isInteractive:r??n,onClick:m,onKeyDown:e=>{(e.key===`Enter`||e.key===` `)&&m(e)},...o})}),y(v,{isOpen:s,onClose:()=>c(!1),size:`xl`,hasCloseButton:!0,isScrollable:!0,children:s?y(`div`,{className:`grid`,children:y(p,{ref:f,className:a(`max-w-full min-w-full text-start`,e),isInteractive:r,...o})}):y(C,{})})]})},Ur={createElement:(e,t,...n)=>E(e,t,...n),cloneElement:(e,t,...n)=>O(e,t,...n),Fragment:C,normalizeProps:(e,t)=>t},Wr=(e=``,t={})=>{if(typeof e==`string`)return Nn(e,Ur,t);let{components:n,namedCodesToUnicode:r,sanitizer:i,slugify:a,...o}=t;return jn(e,{runtime:Ur,components:n,namedCodesToUnicode:r,sanitizer:i,slugify:a},o)},Gr=(e,{components:t,wrapper:n,forceBlock:r,forceInline:i,preserveFrontmatter:a,tagfilter:o}={})=>Wr(e,{components:t,forceBlock:r,forceInline:i,wrapper:n,forceWrapper:!!n,preserveFrontmatter:a,tagfilter:o});N(),A();var Kr=e=>y(m,{isClickable:!0,className:`mb-8 mb-16 text-foreground`,...e}),qr=e=>y(g,{isClickable:!0,className:`mt-16 text-foreground`,...e}),Jr=e=>y(d,{isClickable:!0,className:`mt-5 text-foreground`,...e}),Yr=e=>y(c,{isClickable:!0,className:`mt-3 text-foreground`,...e}),Xr=e=>y(h,{isClickable:!0,className:`mt-3 text-foreground`,...e}),Zr=e=>y(_,{isClickable:!0,className:`mt-3 text-foreground`,...e}),Qr=e=>y(`strong`,{className:`text-foreground`,...e}),$r=ne(({className:e,children:t,highlightedHtml:n,lang:r,...i})=>{let a=String(t??``).replace(/\n$/,``);if(!e){let e=a.replace(/&(?:amp;)?#(\d+);/g,(e,t)=>String.fromCharCode(parseInt(t,10)));return y(`code`,{className:`rounded-md border border-neutral/30 bg-card/60 box-decoration-clone px-1.5 py-0.5 font-mono text-[0.875em] leading-[inherit]`,children:e})}let o=e?.replace(/lang(?:uage)?-/,``)||`plaintext`;return y(xr,{...i,language:o,showHeader:!0,highlightedHtml:n,className:`border`,children:a})},(e,t)=>e.children===t.children&&e.className===t.className&&e.highlightedHtml===t.highlightedHtml),ei=e=>y($r,{...e}),ti=({className:e,...t})=>y(`blockquote`,{className:a(`mt-5 gap-3 border-s-4 border-card ps-5 text-muted-foreground [&_strong]:text-neutral`,e),...t}),ni=({className:e,...t})=>y(`ul`,{className:a(`mt-5 flex list-disc flex-col gap-3 ps-5 marker:text-neutral/80`,e),...t}),ri=({className:e,...t})=>y(`ol`,{className:a(`mt-5 flex list-decimal flex-col gap-3 ps-5 marker:text-neutral/80`,e),...t}),ii=({className:e,alt:t,src:n,...r})=>y(`img`,{...r,alt:t??``,loading:`lazy`,decoding:`async`,className:a(`max-h-[80vh] max-w-full rounded-md [corner-shape:squircle] supports-[corner-shape:squircle]:rounded-lg`,e),src:n?.includes(`github.com`)?n?.replace(`github.com`,`raw.githubusercontent.com`).replace(`/blob/`,`/`):n}),ai=e=>t=>y(b,{isExternalLink:t.href?.startsWith(`http`),underlined:!0,locale:e,label:``,color:`text`,...t}),oi={h1:Kr,h2:qr,h3:Jr,h4:Yr,h5:Xr,h6:Zr,strong:Qr,blockquote:ti,ul:ni,ol:ri,img:ii,pre:e=>y(C,{children:e.children}),table:e=>y(Hr,{isRollable:!0,displayModal:!0,...e}),th:Mr,tr:Nr,td:Pr,hr:Fr,Tabs:e=>y(jr,{...e,className:`rounded-xl border border-card`,headerClassName:`sticky rounded-xl top-24 z-5 bg-background/70 backdrop-blur overflow-x-auto`}),Tab:jr.Item,Columns:({className:e,...t})=>y(`div`,{className:a(`flex gap-4 max-md:flex-col`,e),...t}),Column:({className:e,...t})=>y(`div`,{className:a(`flex-1`,e),...t}),iframe:e=>y(tr,{...e})},si=e=>({...oi,code:ei,a:ai(e)}),ci=({children:e,locale:t,forceBlock:n,preserveFrontmatter:r,tagfilter:i,components:a,wrapper:o})=>{let s=Gr(e,{components:k(()=>({...si(t),...a}),[t,a]),wrapper:o,forceBlock:n,preserveFrontmatter:r,tagfilter:i});return y(sr,{children:y(wr,{children:s})})};export{Yn as a,Hn as c,Rn as d,qn as i,Gn as l,tr as n,Kn as o,Jn as r,Un as s,ci as t,Ln as u};