Buckets:

hf-doc-build/doc-dev / xet /pr_2299 /en /_app /immutable /chunks /MermaidChart.18ec4e45.js
rtrm's picture
download
raw
1.39 kB
import{s as u,n as c,o as g,b as _}from"./scheduler.de5597d1.js";import{S as b,i as y,e as M,a as v,f as x,d,k as m,q as E,m as L}from"./index.f8bac2c1.js";import{m as l}from"./MermaidChart.svelte_svelte_type_style_lang.c78ae8b2.js";function N(n){let e,s;return{c(){e=M("div"),this.h()},l(t){e=v(t,"DIV",{class:!0,style:!0}),x(e).forEach(d),this.h()},h(){m(e,"class",s="mermaid-chart "+n[0]),E(e,"text-align","center")},m(t,i){L(t,e,i),n[3](e)},p(t,[i]){i&1&&s!==(s="mermaid-chart "+t[0])&&m(e,"class",s)},i:c,o:c,d(t){t&&d(e),n[3](null)}}}function S(n,e,s){let{code:t=""}=e,{classNames:i=""}=e,a,o;g(async()=>{o=`mermaid-${Math.random().toString(36).substr(2,9)}`,l.initialize({startOnLoad:!1,theme:"default",securityLevel:"sandbox",fontFamily:"inherit"});try{const{svg:r}=await l.render(o,decodeURIComponent(atob(t)));a&&s(1,a.innerHTML=r,a)}catch(r){if(console.error("Error rendering mermaid chart:",r),a){const h=r instanceof Error?r.message:String(r);s(1,a.innerHTML=`<div class="text-red-500 p-4 border border-red-300 rounded">
<strong>Error rendering mermaid chart:</strong><br>
<code class="text-sm">${h}</code>
</div>`,a)}}});function f(r){_[r?"unshift":"push"](()=>{a=r,s(1,a)})}return n.$$set=r=>{"code"in r&&s(2,t=r.code),"classNames"in r&&s(0,i=r.classNames)},[i,a,t,f]}class k extends b{constructor(e){super(),y(this,e,S,N,u,{code:2,classNames:0})}}export{k as M};

Xet Storage Details

Size:
1.39 kB
·
Xet hash:
66c8561f8bcec2407fce3e0941b632d3acb8d211ec5fc7df342f119c031d31d6

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.