/** * Mermaid rendered in the page, in a real browser, under the policy the shell ships. * * The native component seals an untrusted diagram inside a `WebView` whose document embeds the * whole engine as a string. The page has no second content process, so what replaces it is * `import('mermaid')` on demand and mermaid's own `securityLevel: 'strict'` output. That makes * three claims this file measures rather than asserts: that rendering violates no directive and * asks for no JIT, that what the page paints is the diagram the phone already paints, and that a * hostile diagram reaches the document inert. * * The equality oracle is the native `buildHtml` itself, bundled and served as its own document in * the same browser. Two differences survive and are normalised away: the diagram id (mermaid's own * `mermaid-` on the native path, the component's `useId` on the page) and the `xmlns:xlink` * declaration the native document's `innerHTML` serialization adds. Everything else — the viewBox, * the `max-width`, the injected `