importScripts('{{route}}{{/uv/uv.bundle.js}}');
importScripts('{{route}}{{/uv/uv.config.js}}');
importScripts(self['{{__uv$config}}'].sw || '{{route}}{{/uv/uv.sw.js}}');
const uv = new UVServiceWorker();
self.addEventListener('fetch', (event) => {
event.respondWith(
(async () => {
if (uv.route(event)) return await uv.fetch(event);
return await fetch(event.request);
})()
);
});