Buckets:
| import{s as oe,n as G,r as Ce,h as Ve,t as _e,d as be}from"./scheduler.53228c21.js";import{S as ie,i as ce,y as P,z as O,f as h,d as u,k as a,m as H,l as o,q as X,r as Y,w as pe,e as N,c as Z,s as S,a as E,g as ee,b as j,n as te,u as F,x as ve,t as B,C as Ne,o as q,B as Ee,p as re,j as De,E as Ae}from"./index.100fac89.js";import{g as Te}from"./globals.7f7f1b26.js";import{e as xe}from"./each.e59479a4.js";import{I as Ie,c as ze}from"./IconCopy.38cf8f56.js";import{aL as Be}from"./MermaidChart.svelte_svelte_type_style_lang.6cf479e3.js";function Le(s){let e,r;return{c(){e=P("svg"),r=P("path"),this.h()},l(t){e=O(t,"svg",{class:!0,width:!0,height:!0,viewBox:!0,fill:!0,xmlns:!0});var n=h(e);r=O(n,"path",{d:!0,stroke:!0}),h(r).forEach(u),n.forEach(u),this.h()},h(){a(r,"d","M1 1L6 6L11 1"),a(r,"stroke","currentColor"),a(e,"class",s[0]),a(e,"width","1em"),a(e,"height","1em"),a(e,"viewBox","0 0 12 7"),a(e,"fill","none"),a(e,"xmlns","http://www.w3.org/2000/svg")},m(t,n){H(t,e,n),o(e,r)},p(t,[n]){n&1&&a(e,"class",t[0])},i:G,o:G,d(t){t&&u(e)}}}function Ue(s,e,r){let{classNames:t=""}=e;return s.$$set=n=>{"classNames"in n&&r(0,t=n.classNames)},[t]}class Pe extends ie{constructor(e){super(),ce(this,e,Ue,Le,oe,{classNames:0})}}function Oe(s){let e,r,t;return{c(){e=P("svg"),r=P("path"),t=P("path"),this.h()},l(n){e=O(n,"svg",{class:!0,xmlns:!0,width:!0,height:!0,viewBox:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-linecap":!0,"stroke-linejoin":!0});var l=h(e);r=O(l,"path",{d:!0}),h(r).forEach(u),t=O(l,"path",{d:!0}),h(t).forEach(u),l.forEach(u),this.h()},h(){a(r,"d","M7 7h10v10"),a(t,"d","M7 17 17 7"),a(e,"class",s[0]),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"width","24"),a(e,"height","24"),a(e,"viewBox","0 0 24 24"),a(e,"fill","none"),a(e,"stroke","currentColor"),a(e,"stroke-width","1.75"),a(e,"stroke-linecap","round"),a(e,"stroke-linejoin","round")},m(n,l){H(n,e,l),o(e,r),o(e,t)},p(n,[l]){l&1&&a(e,"class",n[0])},i:G,o:G,d(n){n&&u(e)}}}function Se(s,e,r){let{classNames:t=""}=e;return s.$$set=n=>{"classNames"in n&&r(0,t=n.classNames)},[t]}class Me extends ie{constructor(e){super(),ce(this,e,Se,Oe,oe,{classNames:0})}}function je(s){let e,r,t,n;return{c(){e=P("svg"),r=P("title"),t=X("OpenAI"),n=P("path"),this.h()},l(l){e=O(l,"svg",{class:!0,fill:!0,"fill-rule":!0,height:!0,viewBox:!0,width:!0,xmlns:!0});var c=h(e);r=O(c,"title",{});var d=h(r);t=Y(d,"OpenAI"),d.forEach(u),n=O(c,"path",{d:!0}),h(n).forEach(u),c.forEach(u),this.h()},h(){a(n,"d","M21.55 10.004a5.416 5.416 0 00-.478-4.501c-1.217-2.09-3.662-3.166-6.05-2.66A5.59 5.59 0 0010.831 1C8.39.995 6.224 2.546 5.473 4.838A5.553 5.553 0 001.76 7.496a5.487 5.487 0 00.691 6.5 5.416 5.416 0 00.477 4.502c1.217 2.09 3.662 3.165 6.05 2.66A5.586 5.586 0 0013.168 23c2.443.006 4.61-1.546 5.361-3.84a5.553 5.553 0 003.715-2.66 5.488 5.488 0 00-.693-6.497v.001zm-8.381 11.558a4.199 4.199 0 01-2.675-.954c.034-.018.093-.05.132-.074l4.44-2.53a.71.71 0 00.364-.623v-6.176l1.877 1.069c.02.01.033.029.036.05v5.115c-.003 2.274-1.87 4.118-4.174 4.123zM4.192 17.78a4.059 4.059 0 01-.498-2.763c.032.02.09.055.131.078l4.44 2.53c.225.13.504.13.73 0l5.42-3.088v2.138a.068.068 0 01-.027.057L9.9 19.288c-1.999 1.136-4.552.46-5.707-1.51h-.001zM3.023 8.216A4.15 4.15 0 015.198 6.41l-.002.151v5.06a.711.711 0 00.364.624l5.42 3.087-1.876 1.07a.067.067 0 01-.063.005l-4.489-2.559c-1.995-1.14-2.679-3.658-1.53-5.63h.001zm15.417 3.54l-5.42-3.088L14.896 7.6a.067.067 0 01.063-.006l4.489 2.557c1.998 1.14 2.683 3.662 1.529 5.633a4.163 4.163 0 01-2.174 1.807V12.38a.71.71 0 00-.363-.623zm1.867-2.773a6.04 6.04 0 00-.132-.078l-4.44-2.53a.731.731 0 00-.729 0l-5.42 3.088V7.325a.068.068 0 01.027-.057L14.1 4.713c2-1.137 4.555-.46 5.707 1.513.487.833.664 1.809.499 2.757h.001zm-11.741 3.81l-1.877-1.068a.065.065 0 01-.036-.051V6.559c.001-2.277 1.873-4.122 4.181-4.12.976 0 1.92.338 2.671.954-.034.018-.092.05-.131.073l-4.44 2.53a.71.71 0 00-.365.623l-.003 6.173v.002zm1.02-2.168L12 9.25l2.414 1.375v2.75L12 14.75l-2.415-1.375v-2.75z"),a(e,"class",s[0]),a(e,"fill","currentColor"),a(e,"fill-rule","evenodd"),a(e,"height","1em"),a(e,"viewBox","0 0 24 24"),a(e,"width","1em"),a(e,"xmlns","http://www.w3.org/2000/svg")},m(l,c){H(l,e,c),o(e,r),o(r,t),o(e,n)},p(l,[c]){c&1&&a(e,"class",l[0])},i:G,o:G,d(l){l&&u(e)}}}function qe(s,e,r){let{classNames:t=""}=e;return s.$$set=n=>{"classNames"in n&&r(0,t=n.classNames)},[t]}class Re extends ie{constructor(e){super(),ce(this,e,qe,je,oe,{classNames:0})}}function We(s){let e,r,t,n;return{c(){e=P("svg"),r=P("title"),t=X("Anthropic"),n=P("path"),this.h()},l(l){e=O(l,"svg",{class:!0,fill:!0,height:!0,viewBox:!0,width:!0,xmlns:!0});var c=h(e);r=O(c,"title",{});var d=h(r);t=Y(d,"Anthropic"),d.forEach(u),n=O(c,"path",{d:!0}),h(n).forEach(u),c.forEach(u),this.h()},h(){a(n,"d","M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z"),a(e,"class",s[0]),a(e,"fill","currentColor"),a(e,"height","1em"),a(e,"viewBox","0 0 24 24"),a(e,"width","1em"),a(e,"xmlns","http://www.w3.org/2000/svg")},m(l,c){H(l,e,c),o(e,r),o(r,t),o(e,n)},p(l,[c]){c&1&&a(e,"class",l[0])},i:G,o:G,d(l){l&&u(e)}}}function Fe(s,e,r){let{classNames:t=""}=e;return s.$$set=n=>{"classNames"in n&&r(0,t=n.classNames)},[t]}class He extends ie{constructor(e){super(),ce(this,e,Fe,We,oe,{classNames:0})}}function Ge(s){let e,r,t,n,l;return{c(){e=P("svg"),r=P("title"),t=X("ModelContextProtocol"),n=P("path"),l=P("path"),this.h()},l(c){e=O(c,"svg",{xmlns:!0,fill:!0,"fill-rule":!0,height:!0,style:!0,viewBox:!0,width:!0,class:!0});var d=h(e);r=O(d,"title",{});var I=h(r);t=Y(I,"ModelContextProtocol"),I.forEach(u),n=O(d,"path",{d:!0}),h(n).forEach(u),l=O(d,"path",{d:!0}),h(l).forEach(u),d.forEach(u),this.h()},h(){a(n,"d","M15.688 2.343a2.588 2.588 0 00-3.61 0l-9.626 9.44a.863.863 0 01-1.203 0 .823.823 0 010-1.18l9.626-9.44a4.313 4.313 0 016.016 0 4.116 4.116 0 011.204 3.54 4.3 4.3 0 013.609 1.18l.05.05a4.115 4.115 0 010 5.9l-8.706 8.537a.274.274 0 000 .393l1.788 1.754a.823.823 0 010 1.18.863.863 0 01-1.203 0l-1.788-1.753a1.92 1.92 0 010-2.754l8.706-8.538a2.47 2.47 0 000-3.54l-.05-.049a2.588 2.588 0 00-3.607-.003l-7.172 7.034-.002.002-.098.097a.863.863 0 01-1.204 0 .823.823 0 010-1.18l7.273-7.133a2.47 2.47 0 00-.003-3.537z"),a(l,"d","M14.485 4.703a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a4.115 4.115 0 000 5.9 4.314 4.314 0 006.016 0l7.12-6.982a.823.823 0 000-1.18.863.863 0 00-1.204 0l-7.119 6.982a2.588 2.588 0 01-3.61 0 2.47 2.47 0 010-3.54l7.12-6.982z"),a(e,"xmlns","http://www.w3.org/2000/svg"),a(e,"fill","currentColor"),a(e,"fill-rule","evenodd"),a(e,"height","1em"),pe(e,"flex","none"),pe(e,"line-height","1"),a(e,"viewBox","0 0 24 24"),a(e,"width","1em"),a(e,"class",s[0])},m(c,d){H(c,e,d),o(e,r),o(r,t),o(e,n),o(e,l)},p(c,[d]){d&1&&a(e,"class",c[0])},i:G,o:G,d(c){c&&u(e)}}}function Ke(s,e,r){let{classNames:t=""}=e;return s.$$set=n=>{"classNames"in n&&r(0,t=n.classNames)},[t]}class Je extends ie{constructor(e){super(),ce(this,e,Ke,Ge,oe,{classNames:0})}}const{window:fe}=Te;function ke(s,e,r){const t=s.slice();return t[35]=e[r],t}function ye(s){let e,r,t,n,l,c,d,I,A,T,p,_,z,V,v,C,M,L,m,g,k,D,R,w,b="View this page as plain text",W,U,K,ae;c=new Ie({props:{classNames:"w-4 h-4 shrink-0"}}),M=new Be({props:{classNames:"w-4 h-4 shrink-0"}}),D=new Me({props:{classNames:"w-4 h-4 text-gray-500 dark:text-gray-300 shrink-0"}});let J=xe(s[9]),y=[];for(let f=0;f<J.length;f+=1)y[f]=$e(ke(s,J,f));const he=f=>q(y[f],1,1,()=>{y[f]=null});return{c(){e=N("div"),r=S(),t=N("div"),n=N("button"),l=N("div"),Z(c.$$.fragment),d=S(),I=N("div"),A=N("div"),T=X(s[0]),p=S(),_=N("div"),z=X(s[1]),V=S(),v=N("button"),C=N("div"),Z(M.$$.fragment),L=S(),m=N("div"),g=N("div"),k=X(`View as Markdown | |
| `),Z(D.$$.fragment),R=S(),w=N("div"),w.textContent=b,W=S();for(let f=0;f<y.length;f+=1)y[f].c();this.h()},l(f){e=E(f,"DIV",{class:!0,"aria-hidden":!0,style:!0}),h(e).forEach(u),r=j(f),t=E(f,"DIV",{role:!0,class:!0,style:!0,"aria-label":!0});var $=h(t);n=E($,"BUTTON",{role:!0,class:!0});var x=h(n);l=E(x,"DIV",{class:!0});var ne=h(l);ee(c.$$.fragment,ne),ne.forEach(u),d=j(x),I=E(x,"DIV",{class:!0});var se=h(I);A=E(se,"DIV",{class:!0});var i=h(A);T=Y(i,s[0]),i.forEach(u),p=j(se),_=E(se,"DIV",{class:!0});var Q=h(_);z=Y(Q,s[1]),Q.forEach(u),se.forEach(u),x.forEach(u),V=j($),v=E($,"BUTTON",{role:!0,class:!0});var le=h(v);C=E(le,"DIV",{class:!0});var ue=h(C);ee(M.$$.fragment,ue),ue.forEach(u),L=j(le),m=E(le,"DIV",{class:!0});var de=h(m);g=E(de,"DIV",{class:!0});var me=h(g);k=Y(me,`View as Markdown | |
| `),ee(D.$$.fragment,me),me.forEach(u),R=j(de),w=E(de,"DIV",{class:!0,"data-svelte-h":!0}),De(w)!=="svelte-8wg9lb"&&(w.textContent=b),de.forEach(u),le.forEach(u),W=j($);for(let ge=0;ge<y.length;ge+=1)y[ge].l($);$.forEach(u),this.h()},h(){a(e,"class","fixed inset-0 z-40"),a(e,"aria-hidden","true"),pe(e,"background","transparent"),a(l,"class","border border-gray-200 dark:border-gray-850 rounded-lg p-1.5"),a(A,"class","text-sm font-medium text-gray-800 dark:text-gray-300 flex items-center gap-1"),a(_,"class","text-xs text-gray-600 dark:text-gray-400"),a(I,"class","flex flex-col px-1"),a(n,"role","menuitem"),a(n,"class",we),a(C,"class","border border-gray-200 dark:border-gray-850 rounded-lg p-1.5"),a(g,"class","text-sm font-medium text-gray-800 dark:text-gray-300 flex items-center gap-1"),a(w,"class","text-xs text-gray-600 dark:text-gray-400"),a(m,"class","flex flex-col px-1"),a(v,"role","menuitem"),a(v,"class",we),a(t,"role","menu"),a(t,"class","fixed z-50 backdrop-blur-xl rounded-xl max-h-[420px] overflow-y-auto p-1 border flex flex-col border-gray-200 bg-white dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200"),a(t,"style",s[8]),a(t,"aria-label","Copy menu")},m(f,$){H(f,e,$),H(f,r,$),H(f,t,$),o(t,n),o(n,l),te(c,l,null),o(n,d),o(n,I),o(I,A),o(A,T),o(I,p),o(I,_),o(_,z),o(t,V),o(t,v),o(v,C),te(M,C,null),o(v,L),o(v,m),o(m,g),o(g,k),te(D,g,null),o(m,R),o(m,w),o(t,W);for(let x=0;x<y.length;x+=1)y[x]&&y[x].m(t,null);s[23](t),U=!0,K||(ae=[F(e,"click",s[11]),F(n,"click",s[20]),F(v,"click",s[21])],K=!0)},p(f,$){if((!U||$[0]&1)&&ve(T,f[0]),(!U||$[0]&2)&&ve(z,f[1]),$[0]&16896){J=xe(f[9]);let x;for(x=0;x<J.length;x+=1){const ne=ke(f,J,x);y[x]?(y[x].p(ne,$),B(y[x],1)):(y[x]=$e(ne),y[x].c(),B(y[x],1),y[x].m(t,null))}for(Ne(),x=J.length;x<y.length;x+=1)he(x);Ee()}(!U||$[0]&256)&&a(t,"style",f[8])},i(f){if(!U){B(c.$$.fragment,f),B(M.$$.fragment,f),B(D.$$.fragment,f);for(let $=0;$<J.length;$+=1)B(y[$]);U=!0}},o(f){q(c.$$.fragment,f),q(M.$$.fragment,f),q(D.$$.fragment,f),y=y.filter(Boolean);for(let $=0;$<y.length;$+=1)q(y[$]);U=!1},d(f){f&&(u(e),u(r),u(t)),re(c),re(M),re(D),Ae(y,f),s[23](null),K=!1,Ce(ae)}}}function Qe(s){let e,r;return e=new Je({props:{classNames:"w-4 h-4 shrink-0"}}),{c(){Z(e.$$.fragment)},l(t){ee(e.$$.fragment,t)},m(t,n){te(e,t,n),r=!0},i(t){r||(B(e.$$.fragment,t),r=!0)},o(t){q(e.$$.fragment,t),r=!1},d(t){re(e,t)}}}function Xe(s){let e,r;return e=new He({props:{classNames:"w-4 h-4 shrink-0"}}),{c(){Z(e.$$.fragment)},l(t){ee(e.$$.fragment,t)},m(t,n){te(e,t,n),r=!0},i(t){r||(B(e.$$.fragment,t),r=!0)},o(t){q(e.$$.fragment,t),r=!1},d(t){re(e,t)}}}function Ye(s){let e,r;return e=new Re({props:{classNames:"w-4 h-4 shrink-0"}}),{c(){Z(e.$$.fragment)},l(t){ee(e.$$.fragment,t)},m(t,n){te(e,t,n),r=!0},i(t){r||(B(e.$$.fragment,t),r=!0)},o(t){q(e.$$.fragment,t),r=!1},d(t){re(e,t)}}}function $e(s){let e,r,t,n,l,c,d,I=s[35].label+"",A,T,p,_=s[35].description+"",z,V,v,C,M,L,m;const g=[Ye,Xe,Qe],k=[];function D(w,b){return w[35].icon==="chatgpt"?0:w[35].icon==="claude"?1:w[35].icon==="mcp"?2:-1}~(t=D(s))&&(n=k[t]=g[t](s)),v=new Me({props:{classNames:"w-4 h-4 text-gray-500 dark:text-gray-300"}});function R(){return s[22](s[35])}return{c(){e=N("button"),r=N("div"),n&&n.c(),l=S(),c=N("div"),d=N("div"),A=X(I),T=S(),p=N("div"),z=X(_),V=S(),Z(v.$$.fragment),C=S(),this.h()},l(w){e=E(w,"BUTTON",{role:!0,class:!0});var b=h(e);r=E(b,"DIV",{class:!0});var W=h(r);n&&n.l(W),W.forEach(u),l=j(b),c=E(b,"DIV",{class:!0});var U=h(c);d=E(U,"DIV",{class:!0});var K=h(d);A=Y(K,I),K.forEach(u),T=j(U),p=E(U,"DIV",{class:!0});var ae=h(p);z=Y(ae,_),ae.forEach(u),U.forEach(u),V=j(b),ee(v.$$.fragment,b),C=j(b),b.forEach(u),this.h()},h(){a(r,"class","border border-gray-200 dark:border-gray-850 rounded-lg p-1.5"),a(d,"class","text-sm font-medium text-gray-800 dark:text-gray-200 flex items-center gap-1"),a(p,"class","text-xs text-gray-600 dark:text-gray-400"),a(c,"class","flex flex-col px-1"),a(e,"role","menuitem"),a(e,"class",we)},m(w,b){H(w,e,b),o(e,r),~t&&k[t].m(r,null),o(e,l),o(e,c),o(c,d),o(d,A),o(c,T),o(c,p),o(p,z),o(e,V),te(v,e,null),o(e,C),M=!0,L||(m=F(e,"click",R),L=!0)},p(w,b){s=w},i(w){M||(B(n),B(v.$$.fragment,w),M=!0)},o(w){q(n),q(v.$$.fragment,w),M=!1},d(w){w&&u(e),~t&&k[t].d(),re(v),L=!1,m()}}}function Ze(s){let e,r,t,n,l,c,d,I=(s[5]?"Copied":s[0])+"",A,T,p,_,z,V,v,C,M,L;l=new Ie({props:{classNames:"w-3 h-3 max-sm:w-2.5 max-sm:h-2.5"}}),_=new Pe({props:{classNames:`transition-transform text-gray-400 overflow-visible w-3 h-3 max-sm:w-2.5 max-sm:h-2.5 ${s[4]?"rotate-180":"rotate-0"}`}});let m=s[4]&&ye(s);return{c(){e=N("div"),r=N("div"),t=N("button"),n=N("span"),Z(l.$$.fragment),c=S(),d=N("span"),A=X(I),T=S(),p=N("button"),Z(_.$$.fragment),V=S(),m&&m.c(),this.h()},l(g){e=E(g,"DIV",{class:!0,style:!0});var k=h(e);r=E(k,"DIV",{class:!0});var D=h(r);t=E(D,"BUTTON",{class:!0,"aria-live":!0});var R=h(t);n=E(R,"SPAN",{class:!0});var w=h(n);ee(l.$$.fragment,w),w.forEach(u),c=j(R),d=E(R,"SPAN",{});var b=h(d);A=Y(b,I),b.forEach(u),R.forEach(u),T=j(D),p=E(D,"BUTTON",{class:!0,"aria-haspopup":!0,"aria-expanded":!0,"aria-label":!0});var W=h(p);ee(_.$$.fragment,W),W.forEach(u),D.forEach(u),V=j(k),m&&m.l(k),k.forEach(u),this.h()},h(){a(n,"class","inline-flex items-center justify-center rounded-md p-0.5 max-sm:p-0"),a(t,"class","inline-flex items-center gap-1 max-sm:gap-0.5 h-6 max-sm:h-5 px-2 max-sm:px-1.5 text-[11px] max-sm:text-[9px] font-medium text-gray-800 border border-r-0 rounded-l-md max-sm:rounded-l-sm border-gray-200 bg-white hover:shadow-inner dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200 dark:hover:bg-gray-800"),a(t,"aria-live","polite"),a(p,"class","inline-flex items-center justify-center w-6 max-sm:w-5 h-6 max-sm:h-5 disabled:pointer-events-none text-sm text-gray-500 hover:text-gray-700 dark:hover:text-white rounded-r-md max-sm:rounded-r-sm border border-l transition border-gray-200 bg-white hover:shadow-inner dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200 dark:hover:bg-gray-800"),a(p,"aria-haspopup","menu"),a(p,"aria-expanded",s[4]),a(p,"aria-label",z=s[4]?"Close copy menu":"Open copy menu"),a(r,"class","inline-flex rounded-md max-sm:rounded-sm"),a(e,"class",v=`items-center shrink-0 min-w-[100px] max-sm:min-w-[50px] justify-end ml-auto flex${s[2]?` ${s[2]}`:""}`),a(e,"style",s[3])},m(g,k){H(g,e,k),o(e,r),o(r,t),o(t,n),te(l,n,null),o(t,c),o(t,d),o(d,A),o(r,T),o(r,p),te(_,p,null),s[19](r),o(e,V),m&&m.m(e,null),C=!0,M||(L=[F(fe,"mousedown",s[15]),F(fe,"keydown",s[16]),F(fe,"resize",s[17]),F(fe,"scroll",s[18]),F(t,"click",s[10]),F(p,"click",s[12])],M=!0)},p(g,k){(!C||k[0]&33)&&I!==(I=(g[5]?"Copied":g[0])+"")&&ve(A,I);const D={};k[0]&16&&(D.classNames=`transition-transform text-gray-400 overflow-visible w-3 h-3 max-sm:w-2.5 max-sm:h-2.5 ${g[4]?"rotate-180":"rotate-0"}`),_.$set(D),(!C||k[0]&16)&&a(p,"aria-expanded",g[4]),(!C||k[0]&16&&z!==(z=g[4]?"Close copy menu":"Open copy menu"))&&a(p,"aria-label",z),g[4]?m?(m.p(g,k),k[0]&16&&B(m,1)):(m=ye(g),m.c(),B(m,1),m.m(e,null)):m&&(Ne(),q(m,1,1,()=>{m=null}),Ee()),(!C||k[0]&4&&v!==(v=`items-center shrink-0 min-w-[100px] max-sm:min-w-[50px] justify-end ml-auto flex${g[2]?` ${g[2]}`:""}`))&&a(e,"class",v),(!C||k[0]&8)&&a(e,"style",g[3])},i(g){C||(B(l.$$.fragment,g),B(_.$$.fragment,g),B(m),C=!0)},o(g){q(l.$$.fragment,g),q(_.$$.fragment,g),q(m),C=!1},d(g){g&&u(e),re(l),re(_),s[19](null),m&&m.d(),M=!1,Ce(L)}}}const we="cursor-pointer text-sm group relative w-full select-none outline-none flex items-center gap-1 px-1.5 py-1.5 rounded-xl text-left transition border-gray-200 bg-white hover:shadow-inner dark:border-gray-850 dark:bg-gray-950 dark:text-gray-200 dark:hover:bg-gray-800";function et(s,e,r){let{label:t="Copy page"}=e,{markdownDescription:n="Copy page as Markdown for LLMs"}=e,{containerClass:l=""}=e,{containerStyle:c=""}=e;const d=typeof window<"u",I=typeof document<"u";function A(){if(!d||!window.location)return;const i=window.location.href.replace(/#.*$/,"");return i.endsWith(".md")?i:`${i}.md`}const T=A();let p=null,_=!1,z=!1,V=null,v=null,C="",M=null,L=null,m=null;const g=[{label:"Open in ChatGPT",description:"Ask questions about this page",icon:"chatgpt",buildUrl:()=>p?`https://chatgpt.com/?hints=search&q=${p}`:"https://chatgpt.com"},{label:"Open in Claude",description:"Ask questions about this page",icon:"claude",buildUrl:()=>p?`https://claude.ai/new?q=${p}`:"https://claude.ai/new"},{label:"Connect to MCP Client",description:"Install MCP server on Cursor, VS Code, etc.",icon:"mcp",buildUrl:()=>"https://huggingface.co/mcp"}];function k(){p||!d||(p=encodeURIComponent(`Read from ${T} so I can ask questions about it.`))}async function D(){return!d||typeof fetch!="function"||!T?"":(k(),L||(m||(m=fetch(T,{headers:{Accept:"text/plain"}}).then(i=>{if(!i.ok)throw new Error(`Failed to fetch source content: ${i.status}`);return i.text()}).then(i=>(L=i,i)).catch(i=>(console.error("Unable to fetch remote markdown",i),L="",""))),m))}async function R(){if(!d){console.warn("Clipboard API unavailable");return}try{const i=await D();if(!i){console.warn("Nothing to copy");return}if(typeof navigator<"u"&&!!navigator.clipboard&&typeof navigator.clipboard.writeText=="function")await navigator.clipboard.writeText(i);else if(I)ze(i);else{console.warn("Clipboard API unavailable");return}r(5,z=!0),await _e(),M&&clearTimeout(M),M=setTimeout(()=>{r(5,z=!1)},2e3)}catch(i){console.error("Failed to write to clipboard",i)}}function w(){r(4,_=!0),d&&V&&_e().then(()=>{if(!V)return;const i=V.getBoundingClientRect(),Q=10,le=Math.max(i.width+80,220),ue=Math.max(window.innerWidth-i.right,Q);r(8,C=`top:${i.bottom+Q}px;right:${ue}px;min-width:${le}px;`)})}function b(){r(4,_=!1)}function W(){_?b():w()}function U(){d&&(window.open(T,"_blank","noopener,noreferrer"),b())}function K(i){k(),d&&window.open(i.buildUrl(),"_blank","noopener,noreferrer"),b()}function ae(i){if(!_||!d)return;const Q=i.target;v!=null&&v.contains(Q)||V!=null&&V.contains(Q)||b()}function J(i){i.key==="Escape"&&_&&b()}function y(){_&&b()}function he(){_&&b()}Ve(()=>{M&&clearTimeout(M)});function f(i){be[i?"unshift":"push"](()=>{V=i,r(6,V)})}const $=()=>{R(),b()},x=()=>{U()},ne=i=>K(i);function se(i){be[i?"unshift":"push"](()=>{v=i,r(7,v)})}return s.$$set=i=>{"label"in i&&r(0,t=i.label),"markdownDescription"in i&&r(1,n=i.markdownDescription),"containerClass"in i&&r(2,l=i.containerClass),"containerStyle"in i&&r(3,c=i.containerStyle)},[t,n,l,c,_,z,V,v,C,g,R,b,W,U,K,ae,J,y,he,f,$,x,ne,se]}class ot extends ie{constructor(e){super(),ce(this,e,et,Ze,oe,{label:0,markdownDescription:1,containerClass:2,containerStyle:3},null,[-1,-1])}}export{ot as C}; | |
Xet Storage Details
- Size:
- 19.2 kB
- Xet hash:
- efb250ae13f34dd51b77709a54965bdcb6cad49555a97d064f4f3a16d97db79c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.