import{s as ia,e as a,a as l,c as p,l as i,g as o,p as k,i as s,f as n,H as Xt,b as Zt,m as te,n as ee}from"./scheduler.DKiYiPX0.js";import{S as ca,i as ua,c as Yt,a as Bt,m as Dt,t as Jt,b as Ot,d as Qt}from"./index.z4bt_ZBS.js";import{C as Vt}from"./Code.tlNrnEug.js";function ra(v){let c,r,d=`const ext: Plugin = { // ... }; const carta = new Carta({ extensions: [ext] });`;return{c(){c=a("pre"),r=new Xt(!1),this.h()},l(u){c=p(u,"PRE",{class:!0});var f=Zt(c);r=te(f,!1),f.forEach(n),this.h()},h(){r.a=null,k(c,"class","language-ts")},m(u,f){s(u,c,f),r.m(d,c)},p:ee,d(u){u&&n(c)}}}function fa(v){let c,r,d=`{ execution: 'sync', type: 'rehype', transform({ processor }) { processor .use(rehypeSlug) .use(rehypeAutolinkHeadings); } }`;return{c(){c=a("pre"),r=new Xt(!1),this.h()},l(u){c=p(u,"PRE",{class:!0});var f=Zt(c);r=te(f,!1),f.forEach(n),this.h()},h(){r.a=null,k(c,"class","language-ts")},m(u,f){s(u,c,f),r.m(d,c)},p:ee,d(u){u&&n(c)}}}function ka(v){let c,r,d=`const shortcut: KeyboardShortcut = { id: 'bold', combination: new Set(['control', 'b']), action: (input) => input.toggleSelectionSurrounding('**') };`;return{c(){c=a("pre"),r=new Xt(!1),this.h()},l(u){c=p(u,"PRE",{class:!0});var f=Zt(c);r=te(f,!1),f.forEach(n),this.h()},h(){r.a=null,k(c,"class","language-ts")},m(u,f){s(u,c,f),r.m(d,c)},p:ee,d(u){u&&n(c)}}}function da(v){let c,r,d=`const icon: Icon = { id: 'heading', action: (input) => input.toggleLinePrefix('###'), component: HeadingIcon };`;return{c(){c=a("pre"),r=new Xt(!1),this.h()},l(u){c=p(u,"PRE",{class:!0});var f=Zt(c);r=te(f,!1),f.forEach(n),this.h()},h(){r.a=null,k(c,"class","language-ts")},m(u,f){s(u,c,f),r.m(d,c)},p:ee,d(u){u&&n(c)}}}function va(v){let c,r,d=`const prefix: Prefix = { id: 'bulletedList', match: (line) => { const prefix = line.slice(0, 2); if (prefix === '- ') return prefix; }, maker: () => '- ' };`;return{c(){c=a("pre"),r=new Xt(!1),this.h()},l(u){c=p(u,"PRE",{class:!0});var f=Zt(c);r=te(f,!1),f.forEach(n),this.h()},h(){r.a=null,k(c,"class","language-ts")},m(u,f){s(u,c,f),r.m(d,c)},p:ee,d(u){u&&n(c)}}}function xa(v){let c,r,d=`const prefix: Prefix = { id: 'numberedList', match: (line) => line.match(/^d+./)?.at(0), maker: (prev) => `${Number(prev.slice(0, -1)) + 1}. ` };`;return{c(){c=a("pre"),r=new Xt(!1),this.h()},l(u){c=p(u,"PRE",{class:!0});var f=Zt(c);r=te(f,!1),f.forEach(n),this.h()},h(){r.a=null,k(c,"class","language-ts")},m(u,f){s(u,c,f),r.m(d,c)},p:ee,d(u){u&&n(c)}}}function ma(v){let c,r,d=`const click: Listener = ['click', () => console.log('I was clicked!')]; const render: Listener = [ 'carta-render', (e) => { const carta = e.detail.carta; // ... }, { once: true } ];`;return{c(){c=a("pre"),r=new Xt(!1),this.h()},l(u){c=p(u,"PRE",{class:!0});var f=Zt(c);r=te(f,!1),f.forEach(n),this.h()},h(){r.a=null,k(c,"class","language-ts")},m(u,f){s(u,c,f),r.m(d,c)},p:ee,d(u){u&&n(c)}}}function ha(v){let c,r='Plugin properties',d,u,f="You can easily extend Carta by creating custom plugins.",ne,x,se,J,qn="Here are all the Plugin properties:",ae,m,Rn='transformers',pe,O,In="Type: UnifiedTransformer",le,Q,gn="Remark or Rehype transformers.",oe,h,zn='UnifiedTransformer.execution',ie,V,Kn="Type: 'sync' | 'async'",ce,X,An="If you specify async, this transformer won’t be available for SSR.",ue,T,Fn='UnifiedTransformer.type',re,Z,Un="Type: 'remark' | 'rehype'",fe,tt,Gn="This determines at which step the transformer will operate, whether on Remark, on a Markdown-based syntax tree, or Rehype, on a HTML-based one.",ke,H,Nn='UnifiedTransformer.transform',de,et,Wn="Type: ({ processor, carta }) => void",ve,nt,Yn="The actual processor, can be async if the execution is specified as such.",xe,C,me,_,Bn='shortcuts',he,st,Dn="Type: KeyboardShortcut[]",Te,at,Jn="Additional keyboards shortcut. For example:",He,L,Ce,M,On='KeyboardShortcut.id',_e,pt,Qn="Type: string",Le,lt,Vn="Id of the shortcut.",Me,$,Xn='KeyboardShortcut.combination',$e,ot,Zn="Type: Set<string>",ye,it,ts="Set of keys, corresponding to the e.key of KeyboardEvents, but lowercase.",be,y,es='KeyboardShortcut.action',Pe,ct,ns="Type: (input: InputEnhancer) => void",we,ut,ss="Shortcut callback.",Ee,b,as='KeyboardShortcut.preventSave',Se,rt,ps="Prevent saving the current state in history.",je,P,ls='icons',qe,ft,os="Type: Icon[]",Re,kt,is="Additional toolbar icons. For example:",Ie,w,ge,E,cs='Icon.id',ze,dt,us="Type: string",Ke,vt,rs="Id of the icon.",Ae,S,fs='Icon.action',Fe,xt,ks="Type: (input: InputEnhancer) => void",Ue,mt,ds="Click callback.",Ge,j,vs='Icon.component',Ne,ht,xs="Type: ComponentType (SvelteComponent)",We,Tt,ms="The Icon as a Svelte component.",Ye,q,hs='prefixes',Be,Ht,Ts="Type: Prefix[]",De,Ct,Hs="Text prefixes, default ones include the - for bulleted lists, 1. for numbered lists, - [ ] for task lists.",Je,R,Oe,I,Cs='Prefix.id',Qe,_t,_s="Type: string",Ve,Lt,Ls="Id of the prefix.",Xe,g,Ms='Prefix.match',Ze,Mt,$s="Type: (line: string) => string | undefined",tn,$t,ys="Function that returns the prefix, if it is present.",en,z,bs='Prefix.maker',nn,yt,Ps="Type: (previousMatch: string, previousLine: string) => string",sn,bt,ws="Function that returns the prefix for the new line.",an,Pt,Es="Example:",pn,K,ln,A,Ss='listeners',on,wt,js="Type: Listener[]",cn,Et,qs="Textarea event listeners. Has an additional carta-render and carta-render-ssr events keys.",un,F,rn,U,Rs='components',fn,St,Is="Type: ExtensionComponent[]",kn,jt,gs="Additional components to be added to the editor or viewer.",dn,G,zs='ExtensionComponent<T>.component',vn,qt,Ks="Type: typeof SvelteComponentTyped<T & { carta: Carta }>",xn,Rt,As="Svelte components that exports carta: Carta and all the other properties specified as the generic parameter and in props.",mn,N,Fs='ExtensionComponent<T>.props',hn,It,Us="Type: T",Tn,gt,Gs="Properties that will be handed to the component.",Hn,W,Ns='ExtensionComponent<T>.parent',Cn,zt,Ws="Type: MaybeArray<'editor' | 'input' | 'renderer' | 'preview'>",_n,Kt,Ys="Where the element will be placed.",Ln,Y,Bs='grammarRules',Mn,At,Ds="Type: GrammarRule[]",$n,Ft,Js="Custom Markdown TextMate grammar rules for Shiki. They will be injected into the language.",yn,B,Os='highlightRules',bn,Ut,Qs="Type: HighlightingRule[]",Pn,Gt,Vs="Custom highlighting rules for ShiKi. They will be injected into the selected theme.",wn,D,Xs='onLoad',En,Nt,Zs="Type: (data: { carta: Carta; highlight: HighlightFunctions }) => void",Sn,Wt,ta="Use this callback to execute code when one Carta instance loads the extension.",jn;return x=new Vt({props:{$$slots:{default:[ra]},$$scope:{ctx:v}}}),C=new Vt({props:{$$slots:{default:[fa]},$$scope:{ctx:v}}}),L=new Vt({props:{$$slots:{default:[ka]},$$scope:{ctx:v}}}),w=new Vt({props:{$$slots:{default:[da]},$$scope:{ctx:v}}}),R=new Vt({props:{$$slots:{default:[va]},$$scope:{ctx:v}}}),K=new Vt({props:{$$slots:{default:[xa]},$$scope:{ctx:v}}}),F=new Vt({props:{$$slots:{default:[ma]},$$scope:{ctx:v}}}),{c(){c=a("h1"),c.innerHTML=r,d=l(),u=a("p"),u.textContent=f,ne=l(),Yt(x.$$.fragment),se=l(),J=a("p"),J.innerHTML=qn,ae=l(),m=a("h3"),m.innerHTML=Rn,pe=l(),O=a("p"),O.innerHTML=In,le=l(),Q=a("p"),Q.textContent=gn,oe=l(),h=a("h4"),h.innerHTML=zn,ie=l(),V=a("p"),V.innerHTML=Kn,ce=l(),X=a("p"),X.textContent=An,ue=l(),T=a("h4"),T.innerHTML=Fn,re=l(),Z=a("p"),Z.innerHTML=Un,fe=l(),tt=a("p"),tt.textContent=Gn,ke=l(),H=a("h4"),H.innerHTML=Nn,de=l(),et=a("p"),et.innerHTML=Wn,ve=l(),nt=a("p"),nt.textContent=Yn,xe=l(),Yt(C.$$.fragment),me=l(),_=a("h3"),_.innerHTML=Bn,he=l(),st=a("p"),st.innerHTML=Dn,Te=l(),at=a("p"),at.textContent=Jn,He=l(),Yt(L.$$.fragment),Ce=l(),M=a("h4"),M.innerHTML=On,_e=l(),pt=a("p"),pt.innerHTML=Qn,Le=l(),lt=a("p"),lt.textContent=Vn,Me=l(),$=a("h4"),$.innerHTML=Xn,$e=l(),ot=a("p"),ot.innerHTML=Zn,ye=l(),it=a("p"),it.innerHTML=ts,be=l(),y=a("h4"),y.innerHTML=es,Pe=l(),ct=a("p"),ct.innerHTML=ns,we=l(),ut=a("p"),ut.textContent=ss,Ee=l(),b=a("h4"),b.innerHTML=as,Se=l(),rt=a("p"),rt.textContent=ps,je=l(),P=a("h3"),P.innerHTML=ls,qe=l(),ft=a("p"),ft.innerHTML=os,Re=l(),kt=a("p"),kt.textContent=is,Ie=l(),Yt(w.$$.fragment),ge=l(),E=a("h4"),E.innerHTML=cs,ze=l(),dt=a("p"),dt.innerHTML=us,Ke=l(),vt=a("p"),vt.textContent=rs,Ae=l(),S=a("h4"),S.innerHTML=fs,Fe=l(),xt=a("p"),xt.innerHTML=ks,Ue=l(),mt=a("p"),mt.textContent=ds,Ge=l(),j=a("h4"),j.innerHTML=vs,Ne=l(),ht=a("p"),ht.innerHTML=xs,We=l(),Tt=a("p"),Tt.textContent=ms,Ye=l(),q=a("h3"),q.innerHTML=hs,Be=l(),Ht=a("p"),Ht.innerHTML=Ts,De=l(),Ct=a("p"),Ct.innerHTML=Hs,Je=l(),Yt(R.$$.fragment),Oe=l(),I=a("h4"),I.innerHTML=Cs,Qe=l(),_t=a("p"),_t.innerHTML=_s,Ve=l(),Lt=a("p"),Lt.textContent=Ls,Xe=l(),g=a("h4"),g.innerHTML=Ms,Ze=l(),Mt=a("p"),Mt.innerHTML=$s,tn=l(),$t=a("p"),$t.textContent=ys,en=l(),z=a("h4"),z.innerHTML=bs,nn=l(),yt=a("p"),yt.innerHTML=Ps,sn=l(),bt=a("p"),bt.textContent=ws,an=l(),Pt=a("p"),Pt.textContent=Es,pn=l(),Yt(K.$$.fragment),ln=l(),A=a("h3"),A.innerHTML=Ss,on=l(),wt=a("p"),wt.innerHTML=js,cn=l(),Et=a("p"),Et.innerHTML=qs,un=l(),Yt(F.$$.fragment),rn=l(),U=a("h3"),U.innerHTML=Rs,fn=l(),St=a("p"),St.innerHTML=Is,kn=l(),jt=a("p"),jt.textContent=gs,dn=l(),G=a("h4"),G.innerHTML=zs,vn=l(),qt=a("p"),qt.innerHTML=Ks,xn=l(),Rt=a("p"),Rt.innerHTML=As,mn=l(),N=a("h4"),N.innerHTML=Fs,hn=l(),It=a("p"),It.innerHTML=Us,Tn=l(),gt=a("p"),gt.textContent=Gs,Hn=l(),W=a("h4"),W.innerHTML=Ns,Cn=l(),zt=a("p"),zt.innerHTML=Ws,_n=l(),Kt=a("p"),Kt.textContent=Ys,Ln=l(),Y=a("h3"),Y.innerHTML=Bs,Mn=l(),At=a("p"),At.innerHTML=Ds,$n=l(),Ft=a("p"),Ft.textContent=Js,yn=l(),B=a("h3"),B.innerHTML=Os,bn=l(),Ut=a("p"),Ut.innerHTML=Qs,Pn=l(),Gt=a("p"),Gt.textContent=Vs,wn=l(),D=a("h3"),D.innerHTML=Xs,En=l(),Nt=a("p"),Nt.innerHTML=Zs,Sn=l(),Wt=a("p"),Wt.textContent=ta,this.h()},l(t){c=p(t,"H1",{id:!0,"data-svelte-h":!0}),i(c)!=="svelte-te3xm9"&&(c.innerHTML=r),d=o(t),u=p(t,"P",{"data-svelte-h":!0}),i(u)!=="svelte-vqgc1w"&&(u.textContent=f),ne=o(t),Bt(x.$$.fragment,t),se=o(t),J=p(t,"P",{"data-svelte-h":!0}),i(J)!=="svelte-ojhiez"&&(J.innerHTML=qn),ae=o(t),m=p(t,"H3",{id:!0,"data-svelte-h":!0}),i(m)!=="svelte-t6l7yj"&&(m.innerHTML=Rn),pe=o(t),O=p(t,"P",{"data-svelte-h":!0}),i(O)!=="svelte-xjnbrs"&&(O.innerHTML=In),le=o(t),Q=p(t,"P",{"data-svelte-h":!0}),i(Q)!=="svelte-h81kcw"&&(Q.textContent=gn),oe=o(t),h=p(t,"H4",{id:!0,"data-svelte-h":!0}),i(h)!=="svelte-ebqnks"&&(h.innerHTML=zn),ie=o(t),V=p(t,"P",{"data-svelte-h":!0}),i(V)!=="svelte-gibbua"&&(V.innerHTML=Kn),ce=o(t),X=p(t,"P",{"data-svelte-h":!0}),i(X)!=="svelte-umc34g"&&(X.textContent=An),ue=o(t),T=p(t,"H4",{id:!0,"data-svelte-h":!0}),i(T)!=="svelte-1aor0ss"&&(T.innerHTML=Fn),re=o(t),Z=p(t,"P",{"data-svelte-h":!0}),i(Z)!=="svelte-1v9dwks"&&(Z.innerHTML=Un),fe=o(t),tt=p(t,"P",{"data-svelte-h":!0}),i(tt)!=="svelte-e43zst"&&(tt.textContent=Gn),ke=o(t),H=p(t,"H4",{id:!0,"data-svelte-h":!0}),i(H)!=="svelte-mx0qo6"&&(H.innerHTML=Nn),de=o(t),et=p(t,"P",{"data-svelte-h":!0}),i(et)!=="svelte-1jsm31q"&&(et.innerHTML=Wn),ve=o(t),nt=p(t,"P",{"data-svelte-h":!0}),i(nt)!=="svelte-2w24mv"&&(nt.textContent=Yn),xe=o(t),Bt(C.$$.fragment,t),me=o(t),_=p(t,"H3",{id:!0,"data-svelte-h":!0}),i(_)!=="svelte-jocq82"&&(_.innerHTML=Bn),he=o(t),st=p(t,"P",{"data-svelte-h":!0}),i(st)!=="svelte-ls8kwy"&&(st.innerHTML=Dn),Te=o(t),at=p(t,"P",{"data-svelte-h":!0}),i(at)!=="svelte-16kpv2s"&&(at.textContent=Jn),He=o(t),Bt(L.$$.fragment,t),Ce=o(t),M=p(t,"H4",{id:!0,"data-svelte-h":!0}),i(M)!=="svelte-rquu0x"&&(M.innerHTML=On),_e=o(t),pt=p(t,"P",{"data-svelte-h":!0}),i(pt)!=="svelte-1uqpafo"&&(pt.innerHTML=Qn),Le=o(t),lt=p(t,"P",{"data-svelte-h":!0}),i(lt)!=="svelte-16g2glh"&&(lt.textContent=Vn),Me=o(t),$=p(t,"H4",{id:!0,"data-svelte-h":!0}),i($)!=="svelte-1ayjyp1"&&($.innerHTML=Xn),$e=o(t),ot=p(t,"P",{"data-svelte-h":!0}),i(ot)!=="svelte-88tabz"&&(ot.innerHTML=Zn),ye=o(t),it=p(t,"P",{"data-svelte-h":!0}),i(it)!=="svelte-i93vvt"&&(it.innerHTML=ts),be=o(t),y=p(t,"H4",{id:!0,"data-svelte-h":!0}),i(y)!=="svelte-1a4j8no"&&(y.innerHTML=es),Pe=o(t),ct=p(t,"P",{"data-svelte-h":!0}),i(ct)!=="svelte-1cxa5mx"&&(ct.innerHTML=ns),we=o(t),ut=p(t,"P",{"data-svelte-h":!0}),i(ut)!=="svelte-11hfkx3"&&(ut.textContent=ss),Ee=o(t),b=p(t,"H4",{id:!0,"data-svelte-h":!0}),i(b)!=="svelte-1y6l9pl"&&(b.innerHTML=as),Se=o(t),rt=p(t,"P",{"data-svelte-h":!0}),i(rt)!=="svelte-1t38il8"&&(rt.textContent=ps),je=o(t),P=p(t,"H3",{id:!0,"data-svelte-h":!0}),i(P)!=="svelte-1ebgahj"&&(P.innerHTML=ls),qe=o(t),ft=p(t,"P",{"data-svelte-h":!0}),i(ft)!=="svelte-c4b34g"&&(ft.innerHTML=os),Re=o(t),kt=p(t,"P",{"data-svelte-h":!0}),i(kt)!=="svelte-1vzwnn1"&&(kt.textContent=is),Ie=o(t),Bt(w.$$.fragment,t),ge=o(t),E=p(t,"H4",{id:!0,"data-svelte-h":!0}),i(E)!=="svelte-vlce8n"&&(E.innerHTML=cs),ze=o(t),dt=p(t,"P",{"data-svelte-h":!0}),i(dt)!=="svelte-1uqpafo"&&(dt.innerHTML=us),Ke=o(t),vt=p(t,"P",{"data-svelte-h":!0}),i(vt)!=="svelte-1oavrww"&&(vt.textContent=rs),Ae=o(t),S=p(t,"H4",{id:!0,"data-svelte-h":!0}),i(S)!=="svelte-1lns4qa"&&(S.innerHTML=fs),Fe=o(t),xt=p(t,"P",{"data-svelte-h":!0}),i(xt)!=="svelte-1cxa5mx"&&(xt.innerHTML=ks),Ue=o(t),mt=p(t,"P",{"data-svelte-h":!0}),i(mt)!=="svelte-1v7o0af"&&(mt.textContent=ds),Ge=o(t),j=p(t,"H4",{id:!0,"data-svelte-h":!0}),i(j)!=="svelte-ifnk2r"&&(j.innerHTML=vs),Ne=o(t),ht=p(t,"P",{"data-svelte-h":!0}),i(ht)!=="svelte-3i2tof"&&(ht.innerHTML=xs),We=o(t),Tt=p(t,"P",{"data-svelte-h":!0}),i(Tt)!=="svelte-1em7plh"&&(Tt.textContent=ms),Ye=o(t),q=p(t,"H3",{id:!0,"data-svelte-h":!0}),i(q)!=="svelte-1lx4d9z"&&(q.innerHTML=hs),Be=o(t),Ht=p(t,"P",{"data-svelte-h":!0}),i(Ht)!=="svelte-blajub"&&(Ht.innerHTML=Ts),De=o(t),Ct=p(t,"P",{"data-svelte-h":!0}),i(Ct)!=="svelte-5g0fjc"&&(Ct.innerHTML=Hs),Je=o(t),Bt(R.$$.fragment,t),Oe=o(t),I=p(t,"H4",{id:!0,"data-svelte-h":!0}),i(I)!=="svelte-gddn0y"&&(I.innerHTML=Cs),Qe=o(t),_t=p(t,"P",{"data-svelte-h":!0}),i(_t)!=="svelte-1uqpafo"&&(_t.innerHTML=_s),Ve=o(t),Lt=p(t,"P",{"data-svelte-h":!0}),i(Lt)!=="svelte-1gan88v"&&(Lt.textContent=Ls),Xe=o(t),g=p(t,"H4",{id:!0,"data-svelte-h":!0}),i(g)!=="svelte-17zzrii"&&(g.innerHTML=Ms),Ze=o(t),Mt=p(t,"P",{"data-svelte-h":!0}),i(Mt)!=="svelte-1ktwwvx"&&(Mt.innerHTML=$s),tn=o(t),$t=p(t,"P",{"data-svelte-h":!0}),i($t)!=="svelte-k42jg2"&&($t.textContent=ys),en=o(t),z=p(t,"H4",{id:!0,"data-svelte-h":!0}),i(z)!=="svelte-g66sq1"&&(z.innerHTML=bs),nn=o(t),yt=p(t,"P",{"data-svelte-h":!0}),i(yt)!=="svelte-1ul36kx"&&(yt.innerHTML=Ps),sn=o(t),bt=p(t,"P",{"data-svelte-h":!0}),i(bt)!=="svelte-1rjhqgb"&&(bt.textContent=ws),an=o(t),Pt=p(t,"P",{"data-svelte-h":!0}),i(Pt)!=="svelte-11lpom8"&&(Pt.textContent=Es),pn=o(t),Bt(K.$$.fragment,t),ln=o(t),A=p(t,"H3",{id:!0,"data-svelte-h":!0}),i(A)!=="svelte-1x903hg"&&(A.innerHTML=Ss),on=o(t),wt=p(t,"P",{"data-svelte-h":!0}),i(wt)!=="svelte-103zbuj"&&(wt.innerHTML=js),cn=o(t),Et=p(t,"P",{"data-svelte-h":!0}),i(Et)!=="svelte-a4iodw"&&(Et.innerHTML=qs),un=o(t),Bt(F.$$.fragment,t),rn=o(t),U=p(t,"H3",{id:!0,"data-svelte-h":!0}),i(U)!=="svelte-a3xxfv"&&(U.innerHTML=Rs),fn=o(t),St=p(t,"P",{"data-svelte-h":!0}),i(St)!=="svelte-7uoepn"&&(St.innerHTML=Is),kn=o(t),jt=p(t,"P",{"data-svelte-h":!0}),i(jt)!=="svelte-1p54v4b"&&(jt.textContent=gs),dn=o(t),G=p(t,"H4",{id:!0,"data-svelte-h":!0}),i(G)!=="svelte-4nc8mt"&&(G.innerHTML=zs),vn=o(t),qt=p(t,"P",{"data-svelte-h":!0}),i(qt)!=="svelte-19zys37"&&(qt.innerHTML=Ks),xn=o(t),Rt=p(t,"P",{"data-svelte-h":!0}),i(Rt)!=="svelte-1xjyux0"&&(Rt.innerHTML=As),mn=o(t),N=p(t,"H4",{id:!0,"data-svelte-h":!0}),i(N)!=="svelte-1361cdi"&&(N.innerHTML=Fs),hn=o(t),It=p(t,"P",{"data-svelte-h":!0}),i(It)!=="svelte-1phll8j"&&(It.innerHTML=Us),Tn=o(t),gt=p(t,"P",{"data-svelte-h":!0}),i(gt)!=="svelte-1hgf4c0"&&(gt.textContent=Gs),Hn=o(t),W=p(t,"H4",{id:!0,"data-svelte-h":!0}),i(W)!=="svelte-4zyqdu"&&(W.innerHTML=Ns),Cn=o(t),zt=p(t,"P",{"data-svelte-h":!0}),i(zt)!=="svelte-1greb9j"&&(zt.innerHTML=Ws),_n=o(t),Kt=p(t,"P",{"data-svelte-h":!0}),i(Kt)!=="svelte-1oocx94"&&(Kt.textContent=Ys),Ln=o(t),Y=p(t,"H3",{id:!0,"data-svelte-h":!0}),i(Y)!=="svelte-63aqo3"&&(Y.innerHTML=Bs),Mn=o(t),At=p(t,"P",{"data-svelte-h":!0}),i(At)!=="svelte-1a6pzpg"&&(At.innerHTML=Ds),$n=o(t),Ft=p(t,"P",{"data-svelte-h":!0}),i(Ft)!=="svelte-v18ein"&&(Ft.textContent=Js),yn=o(t),B=p(t,"H3",{id:!0,"data-svelte-h":!0}),i(B)!=="svelte-7nxrbg"&&(B.innerHTML=Os),bn=o(t),Ut=p(t,"P",{"data-svelte-h":!0}),i(Ut)!=="svelte-map36l"&&(Ut.innerHTML=Qs),Pn=o(t),Gt=p(t,"P",{"data-svelte-h":!0}),i(Gt)!=="svelte-1p0s8h1"&&(Gt.textContent=Vs),wn=o(t),D=p(t,"H3",{id:!0,"data-svelte-h":!0}),i(D)!=="svelte-w2wb36"&&(D.innerHTML=Xs),En=o(t),Nt=p(t,"P",{"data-svelte-h":!0}),i(Nt)!=="svelte-1qimjqx"&&(Nt.innerHTML=Zs),Sn=o(t),Wt=p(t,"P",{"data-svelte-h":!0}),i(Wt)!=="svelte-1acr24e"&&(Wt.textContent=ta),this.h()},h(){k(c,"id","plugin-properties"),k(m,"id","transformers"),k(h,"id","unifiedtransformerexecution"),k(T,"id","unifiedtransformertype"),k(H,"id","unifiedtransformertransform"),k(_,"id","shortcuts"),k(M,"id","keyboardshortcutid"),k($,"id","keyboardshortcutcombination"),k(y,"id","keyboardshortcutaction"),k(b,"id","keyboardshortcutpreventsave"),k(P,"id","icons"),k(E,"id","iconid"),k(S,"id","iconaction"),k(j,"id","iconcomponent"),k(q,"id","prefixes"),k(I,"id","prefixid"),k(g,"id","prefixmatch"),k(z,"id","prefixmaker"),k(A,"id","listeners"),k(U,"id","components"),k(G,"id","extensioncomponentlttgtcomponent"),k(N,"id","extensioncomponentlttgtprops"),k(W,"id","extensioncomponentlttgtparent"),k(Y,"id","grammarrules"),k(B,"id","highlightrules"),k(D,"id","onload")},m(t,e){s(t,c,e),s(t,d,e),s(t,u,e),s(t,ne,e),Dt(x,t,e),s(t,se,e),s(t,J,e),s(t,ae,e),s(t,m,e),s(t,pe,e),s(t,O,e),s(t,le,e),s(t,Q,e),s(t,oe,e),s(t,h,e),s(t,ie,e),s(t,V,e),s(t,ce,e),s(t,X,e),s(t,ue,e),s(t,T,e),s(t,re,e),s(t,Z,e),s(t,fe,e),s(t,tt,e),s(t,ke,e),s(t,H,e),s(t,de,e),s(t,et,e),s(t,ve,e),s(t,nt,e),s(t,xe,e),Dt(C,t,e),s(t,me,e),s(t,_,e),s(t,he,e),s(t,st,e),s(t,Te,e),s(t,at,e),s(t,He,e),Dt(L,t,e),s(t,Ce,e),s(t,M,e),s(t,_e,e),s(t,pt,e),s(t,Le,e),s(t,lt,e),s(t,Me,e),s(t,$,e),s(t,$e,e),s(t,ot,e),s(t,ye,e),s(t,it,e),s(t,be,e),s(t,y,e),s(t,Pe,e),s(t,ct,e),s(t,we,e),s(t,ut,e),s(t,Ee,e),s(t,b,e),s(t,Se,e),s(t,rt,e),s(t,je,e),s(t,P,e),s(t,qe,e),s(t,ft,e),s(t,Re,e),s(t,kt,e),s(t,Ie,e),Dt(w,t,e),s(t,ge,e),s(t,E,e),s(t,ze,e),s(t,dt,e),s(t,Ke,e),s(t,vt,e),s(t,Ae,e),s(t,S,e),s(t,Fe,e),s(t,xt,e),s(t,Ue,e),s(t,mt,e),s(t,Ge,e),s(t,j,e),s(t,Ne,e),s(t,ht,e),s(t,We,e),s(t,Tt,e),s(t,Ye,e),s(t,q,e),s(t,Be,e),s(t,Ht,e),s(t,De,e),s(t,Ct,e),s(t,Je,e),Dt(R,t,e),s(t,Oe,e),s(t,I,e),s(t,Qe,e),s(t,_t,e),s(t,Ve,e),s(t,Lt,e),s(t,Xe,e),s(t,g,e),s(t,Ze,e),s(t,Mt,e),s(t,tn,e),s(t,$t,e),s(t,en,e),s(t,z,e),s(t,nn,e),s(t,yt,e),s(t,sn,e),s(t,bt,e),s(t,an,e),s(t,Pt,e),s(t,pn,e),Dt(K,t,e),s(t,ln,e),s(t,A,e),s(t,on,e),s(t,wt,e),s(t,cn,e),s(t,Et,e),s(t,un,e),Dt(F,t,e),s(t,rn,e),s(t,U,e),s(t,fn,e),s(t,St,e),s(t,kn,e),s(t,jt,e),s(t,dn,e),s(t,G,e),s(t,vn,e),s(t,qt,e),s(t,xn,e),s(t,Rt,e),s(t,mn,e),s(t,N,e),s(t,hn,e),s(t,It,e),s(t,Tn,e),s(t,gt,e),s(t,Hn,e),s(t,W,e),s(t,Cn,e),s(t,zt,e),s(t,_n,e),s(t,Kt,e),s(t,Ln,e),s(t,Y,e),s(t,Mn,e),s(t,At,e),s(t,$n,e),s(t,Ft,e),s(t,yn,e),s(t,B,e),s(t,bn,e),s(t,Ut,e),s(t,Pn,e),s(t,Gt,e),s(t,wn,e),s(t,D,e),s(t,En,e),s(t,Nt,e),s(t,Sn,e),s(t,Wt,e),jn=!0},p(t,[e]){const ea={};e&1&&(ea.$$scope={dirty:e,ctx:t}),x.$set(ea);const na={};e&1&&(na.$$scope={dirty:e,ctx:t}),C.$set(na);const sa={};e&1&&(sa.$$scope={dirty:e,ctx:t}),L.$set(sa);const aa={};e&1&&(aa.$$scope={dirty:e,ctx:t}),w.$set(aa);const pa={};e&1&&(pa.$$scope={dirty:e,ctx:t}),R.$set(pa);const la={};e&1&&(la.$$scope={dirty:e,ctx:t}),K.$set(la);const oa={};e&1&&(oa.$$scope={dirty:e,ctx:t}),F.$set(oa)},i(t){jn||(Jt(x.$$.fragment,t),Jt(C.$$.fragment,t),Jt(L.$$.fragment,t),Jt(w.$$.fragment,t),Jt(R.$$.fragment,t),Jt(K.$$.fragment,t),Jt(F.$$.fragment,t),jn=!0)},o(t){Ot(x.$$.fragment,t),Ot(C.$$.fragment,t),Ot(L.$$.fragment,t),Ot(w.$$.fragment,t),Ot(R.$$.fragment,t),Ot(K.$$.fragment,t),Ot(F.$$.fragment,t),jn=!1},d(t){t&&(n(c),n(d),n(u),n(ne),n(se),n(J),n(ae),n(m),n(pe),n(O),n(le),n(Q),n(oe),n(h),n(ie),n(V),n(ce),n(X),n(ue),n(T),n(re),n(Z),n(fe),n(tt),n(ke),n(H),n(de),n(et),n(ve),n(nt),n(xe),n(me),n(_),n(he),n(st),n(Te),n(at),n(He),n(Ce),n(M),n(_e),n(pt),n(Le),n(lt),n(Me),n($),n($e),n(ot),n(ye),n(it),n(be),n(y),n(Pe),n(ct),n(we),n(ut),n(Ee),n(b),n(Se),n(rt),n(je),n(P),n(qe),n(ft),n(Re),n(kt),n(Ie),n(ge),n(E),n(ze),n(dt),n(Ke),n(vt),n(Ae),n(S),n(Fe),n(xt),n(Ue),n(mt),n(Ge),n(j),n(Ne),n(ht),n(We),n(Tt),n(Ye),n(q),n(Be),n(Ht),n(De),n(Ct),n(Je),n(Oe),n(I),n(Qe),n(_t),n(Ve),n(Lt),n(Xe),n(g),n(Ze),n(Mt),n(tn),n($t),n(en),n(z),n(nn),n(yt),n(sn),n(bt),n(an),n(Pt),n(pn),n(ln),n(A),n(on),n(wt),n(cn),n(Et),n(un),n(rn),n(U),n(fn),n(St),n(kn),n(jt),n(dn),n(G),n(vn),n(qt),n(xn),n(Rt),n(mn),n(N),n(hn),n(It),n(Tn),n(gt),n(Hn),n(W),n(Cn),n(zt),n(_n),n(Kt),n(Ln),n(Y),n(Mn),n(At),n($n),n(Ft),n(yn),n(B),n(bn),n(Ut),n(Pn),n(Gt),n(wn),n(D),n(En),n(Nt),n(Sn),n(Wt)),Qt(x,t),Qt(C,t),Qt(L,t),Qt(w,t),Qt(R,t),Qt(K,t),Qt(F,t)}}}const _a={section:"API",title:"Extension"};class La extends ca{constructor(c){super(),ua(this,c,null,ha,ia,{})}}export{La as default,_a as metadata};