const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/document-oklUB2x8.js","assets/ui-CuDKrJrQ.js","assets/dates-n-jl3C-v.js","assets/pdf-font-COqyuVvS.js","assets/rolldown-runtime-hePW80VL.js","assets/pdf-26wlXapU.js","assets/document-yLK3WJ28.css","assets/planner-D5fqdPah.js","assets/planner-BLkPNopu.css","assets/mapper-BjTHm_Ch.js","assets/purify.es-CYRiAeUx.js","assets/mapper-BmtGrNqh.css"])))=>i.map(i=>d[i]);
(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var e=`modulepreload`,t=function(e){return`/`+e},n={},r=function(r,i,a){let o=Promise.resolve();if(i&&i.length>0){let r=document.getElementsByTagName(`link`),s=document.querySelector(`meta[property=csp-nonce]`),c=s?.nonce||s?.getAttribute(`nonce`);function l(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function u(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}o=l(i.map(i=>{if(i=t(i,a),i=u(i),i in n)return;n[i]=!0;let o=i.endsWith(`.css`);for(let e=r.length-1;e>=0;e--){let t=r[e];if(t.href===i&&(!o||t.rel===`stylesheet`))return}let s=document.createElement(`link`);if(s.rel=o?`stylesheet`:e,o||(s.as=`script`),s.crossOrigin=``,s.href=i,c&&s.setAttribute(`nonce`,c),document.head.appendChild(s),o)return new Promise((e,t)=>{s.addEventListener(`load`,e),s.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${i}`)))})}))}function s(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return o.then(e=>{for(let t of e||[])t.status===`rejected`&&s(t.reason);return r().catch(s)})},i=document.getElementById(`workspace`),a=document.getElementById(`demo-status`),o,s=``,c=0;document.querySelectorAll(`[data-tool]`).forEach(e=>e.addEventListener(`click`,async()=>{if(s&&!confirm(`Switch tools? Download JSON first if you want to keep the open draft.`))return;let t=++c;o?.(),o=void 0,s=e.dataset.tool,a.textContent=`Loading the local tool…`;try{let e=s===`document`?await r(()=>import(`./document-oklUB2x8.js`),__vite__mapDeps([0,1,2,3,4,5,6])):s===`planner`?await r(()=>import(`./planner-D5fqdPah.js`).then(e=>e.t),__vite__mapDeps([7,4,1,2,8])):await r(()=>import(`./mapper-BjTHm_Ch.js`),__vite__mapDeps([9,1,10,3,4,5,11]));if(t!==c)return;o=e.mount(i),a.textContent=`Tool ready. Save JSON to keep an editable copy.`}catch{a.textContent=`The tool could not load. Check the build instructions and try again.`}})),window.addEventListener(`pagehide`,()=>o?.());export{r as t};