const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/browser-module-DP4DadQ8.js","assets/rolldown-runtime-hePW80VL.js"])))=>i.map(i=>d[i]);
import{n as e}from"./rolldown-runtime-hePW80VL.js";import{t}from"./index-CKr-jwvi.js";import{c as n}from"./ui-CuDKrJrQ.js";var r=e({assertPdfTextSupported:()=>a}),i=new WeakMap;async function a(e,r){let a=i.get(r);a||(a=(await t(()=>import(`./browser-module-DP4DadQ8.js`).then(e=>e.n),__vite__mapDeps([0,1]))).create(r),i.set(r,a));let o=new Set;for(let t of e)for(let e of t){if(/^[\n\r\t]$/.test(e))continue;let t=e.codePointAt(0);if(a.hasGlyphForCodePoint(t)||o.add(t),o.size>=6)break}if(o.size){let e=[...o].map(e=>`U+${e.toString(16).toUpperCase().padStart(4,`0`)}`).join(`, `);throw new n(`The PDF font cannot display some characters (${e}). Replace those characters for PDF export, or save JSON to keep the original text. Your draft has not changed.`)}}export{r as n,a as t};