PageSourceSearch

https://elysiatools.com/_next/static/chunks/6685.e8f340f0dc5b2638.js

js elysiatools.com collected 2026-10-02 00:21:12 UTC 5,051 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6685],{76685:(t,e,r)=>{r.d(e,{renderDiagram:()=>h});var i=r(97730),a=r(74185);let n=t=>t.defaultView||("undefined"!=typeof window?window:void 0),l=(t,e,r)=>{let i=t.createElement(e);return r&&(i.className=r),i},s=(t,e,r)=>{let i=new DOMParser().parseFromString(e,"image/svg+xml"),a=i.querySelector("parsererror");if(a)throw Error(a.textContent||r("drawing.error.svgParseFailed"));i.querySelectorAll("script,iframe,object,embed").forEach(t=>t.remove()),i.querySelectorAll("*").forEach(t=>{for(let e of Array.from(t.attributes))/^on/i.test(e.name)&&t.removeAttribute(e.name)});let n=i.documentElement;return t.importNode(n,!0)},o=async(t,e,i,a)=>{let l=(await Promise.all([r.e(279),r.e(2280),r.e(9995),r.e(4979),r.e(2893),r.e(9618),r.e(2454),r.e(8499)]).then(r.bind(r,84725))).default,o=`file-viewer-mermaid-${Date.now()}-${Math.random().toString(36).slice(2)}`;return l.initialize({startOnLoad:!1,securityLevel:"strict",theme:((t,e)=>"dark"===e||"light"!==e&&!!n(t)?.matchMedia?.("(prefers-color-scheme: dark)").matches)(t,i)?"dark":"default"}),s(t,(await l.render(o,e)).svg,a)},u=(t,e,r,i,a,n="500")=>{let l=t.createElementNS("http://www.w3.org/2000/svg","tspan");l.setAttribute("x",String(i)),l.setAttribute("dy",a),l.setAttribute("font-weight",n),l.textContent=r,e.appendChild(l)},d=(t,e,r)=>{let i=t.createElementNS("http://www.w3.org/2000/svg","svg");i.setAttribute("viewBox","0 0 1100 720"),i.setAttribute("width",String(1100)),i.setAttribute("height",String(720));let a=t.createElementNS("http://www.w3.org/2000/svg","rect");a.setAttribute("width","100%"),a.setAttribute("height","100%"),a.setAttribute("rx","28"),a.setAttribute("fill","#f8fbff"),i.appendChild(a);let n=t.createElementNS("http://www.w3.org/2000/svg","rect");n.setAttribute("x","42"),n.setAttribute("y","42"),n.setAttribute("width",String(1016)),n.setAttribute("height",String(636)),n.setAttribute("rx","22"),n.setAttribute("fill","#ffffff"),n.setAttribute("stroke","#cbd5e1"),i.appendChild(n);let l=t.createElementNS("http://www.w3.org/2000/svg","text");l.setAttribute("x","74"),l.setAttribute("y","92"),l.setAttribute("fill","#0f766e"),l.setAttribute("font-family","Inter, Arial, sans-serif"),l.setAttribute("font-size","24"),l.setAttribute("font-weight","800"),l.textContent="PlantUML source preview",i.appendChild(l);let s=t.createElementNS("http://www.w3.org/2000/svg","text");s.setAttribute("x","74"),s.setAttribute("y","128"),s.setAttribute("fill","#64748b"),s.setAttribute("font-family","Inter, Arial, sans-serif"),s.setAttribute("font-size","15"),s.textContent=r,i.appendChild(s);let o=t.createElementNS("http://www.w3.org/2000/svg","text");o.setAttribute("x","74"),o.setAttribute("y","172"),o.setAttribute("fill","#172033"),o.setAttribute("font-family","ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"),o.setAttribute("font-size","16"),o.setAttribute("xml:space","preserve");let d=e.replace(/\r\n?/g,"\n").split("\n").slice(0,26);return d.forEach((e,r)=>{u(t,o,e.slice(0,110),74,0===r?"0":"24",/^\s*@/.test(e)?"800":"500")}),d.length<e.split("\n").length&&u(t,o,"... truncated for preview ...",74,"24","700"),i.appendChild(o),i},w=async(t,e,i,a)=>{if(!i?.plantumlServerUrl)return d(t,e,"Offline mode is active. Configure options.drawing.plantumlServerUrl for server-rendered PlantUML SVG.");let{encode:l}=await r.e(7698).then(r.t.bind(r,57698,19)),o=`${((t,e)=>{let r=e.endsWith("/")?e:`${e}/`;try{return new URL(r,t.baseURI).href}catch{return r}})(t,i.plantumlServerUrl)}${l(e)}`,u=n(t),w=new AbortController,h=u?.setTimeout(()=>w.abort(),Math.max(1e3,i?.plantumlTimeoutMs||8e3));try{let e=await fetch(o,{signal:w.signal});if(!e.ok)throw Error(a("drawing.error.plantumlRenderFailed",{status:e.status}));return s(t,await e.text(),a)}catch(r){if(r instanceof DOMException&&"AbortError"===r.name)throw r;return d(t,e,"Configure options.drawing.plantumlServerUrl for full PlantUML SVG rendering.")}finally{void 0!==h&&u?.clearTimeout(h)}},h=async({documentRef:t,text:e,target:r,kind:n,options:s,theme:u,viewerOptions:d})=>{let h=(0,i.Nxi)(d),g=l(t,"div","drawing-diagram-shell"),m=l(t,"div","drawing-diagram-pan");g.appendChild(m),r.replaceChildren(g);let c="mermaid"===n?await o(t,e,u,h):await w(t,e,s,h);((t,e)=>{t.classList.add("drawing-svg","drawing-diagram-svg"),t.setAttribute("role","img"),t.setAttribute("aria-label",`${e} diagram preview`),!t.getAttribute("width")&&t.viewBox.baseVal.width&&t.setAttribute("width",String(Math.ceil(t.viewBox.baseVal.width))),!t.getAttribute("height")&&t.viewBox.baseVal.height&&t.setAttribute("height",String(Math.ceil(t.viewBox.baseVal.height)))})(c,n),m.replaceChildren(c);let f=(0,a.A)(m,{minScale:.4,maxScale:4,contain:"outside",canvas:!0}),b=g.parentElement||g,p=t=>{(t.ctrlKey||t.metaKey)&&(t.preventDefault(),f.zoomWithWheel(t))};return b.addEventListener("wheel",p,{passive:!1}),{setZoom(t){f.zoom(t,{animate:!0})},reset(){f.reset({animate:!0})},getScale:()=>f.getScale(),destroy(){b.removeEventListener("wheel",p),f.destroy()}}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.