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KI,eAAkB,IACvB,MAAM,EAAkB,eAAe,GACvC,MAAO,CAAC,YAAY,GAAkB,YAAY,GAAiB,SAI3D","file":"/npm/vite-plugin-static-copy@3.1.4/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/vite-plugin-static-copy@3.1.4/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","import * as qs from \"node:querystring\";\nimport { createReadStream, existsSync, statSync } from \"node:fs\";\nimport path, { join, resolve, sep } from \"node:path\";\nimport { glob } from \"tinyglobby\";\nimport fs from \"node:fs/promises\";\nimport pc from \"picocolors\";\nimport { createHash } from \"node:crypto\";\nimport pMap from \"p-map\";\nimport chokidar from \"chokidar\";\n\n//#region src/options.ts\nconst resolveOptions = (options) => ({\n\ttargets: options.targets,\n\tstructured: options.structured ?? false,\n\tsilent: options.silent ?? false,\n\twatch: {\n\t\toptions: options.watch?.options ?? {},\n\t\treloadPageOnChange: options.watch?.reloadPageOnChange ?? false\n\t},\n\thook: options.hook ?? \"writeBundle\"\n});\n\n//#endregion\n//#region node_modules/.pnpm/@polka+url@1.0.0-next.29/node_modules/@polka/url/build.mjs\n/**\n* @typedef ParsedURL\n* @type {import('.').ParsedURL}\n*/\n/**\n* @typedef Request\n* @property {string} url\n* @property {ParsedURL} _parsedUrl\n*/\n/**\n* @param {Request} req\n* @returns {ParsedURL|void}\n*/\nfunction parse(req) {\n\tlet raw = req.url;\n\tif (raw == null) return;\n\tlet prev = req._parsedUrl;\n\tif (prev && prev.raw === raw) return prev;\n\tlet pathname = raw, search = \"\", query, hash;\n\tif (raw.length > 1) {\n\t\tlet idx = raw.indexOf(\"#\", 1);\n\t\tif (idx !== -1) {\n\t\t\thash = raw.substring(idx);\n\t\t\tpathname = raw.substring(0, idx);\n\t\t}\n\t\tidx = pathname.indexOf(\"?\", 1);\n\t\tif (idx !== -1) {\n\t\t\tsearch = pathname.substring(idx);\n\t\t\tpathname = pathname.substring(0, idx);\n\t\t\tif (search.length > 1) query = qs.parse(search.substring(1));\n\t\t}\n\t}\n\treturn req._parsedUrl = {\n\t\tpathname,\n\t\tsearch,\n\t\tquery,\n\t\thash,\n\t\traw\n\t};\n}\n\n//#endregion\n//#region node_modules/.pnpm/mrmime@2.0.1/node_modules/mrmime/index.mjs\nconst mimes = {\n\t\"3g2\": \"video/3gpp2\",\n\t\"3gp\": \"video/3gpp\",\n\t\"3gpp\": \"video/3gpp\",\n\t\"3mf\": \"model/3mf\",\n\t\"aac\": \"audio/aac\",\n\t\"ac\": \"application/pkix-attr-cert\",\n\t\"adp\": \"audio/adpcm\",\n\t\"adts\": \"audio/aac\",\n\t\"ai\": \"application/postscript\",\n\t\"aml\": \"application/automationml-aml+xml\",\n\t\"amlx\": \"application/automationml-amlx+zip\",\n\t\"amr\": \"audio/amr\",\n\t\"apng\": \"image/apng\",\n\t\"appcache\": \"text/cache-manifest\",\n\t\"appinstaller\": \"application/appinstaller\",\n\t\"appx\": \"application/appx\",\n\t\"appxbundle\": \"application/appxbundle\",\n\t\"asc\": \"application/pgp-keys\",\n\t\"atom\": \"application/atom+xml\",\n\t\"atomcat\": \"application/atomcat+xml\",\n\t\"atomdeleted\": \"application/atomdeleted+xml\",\n\t\"atomsvc\": \"application/atomsvc+xml\",\n\t\"au\": \"audio/basic\",\n\t\"avci\": \"image/avci\",\n\t\"avcs\": \"image/avcs\",\n\t\"avif\": \"image/avif\",\n\t\"aw\": \"application/applixware\",\n\t\"bdoc\": \"application/bdoc\",\n\t\"bin\": \"application/octet-stream\",\n\t\"bmp\": \"image/bmp\",\n\t\"bpk\": \"application/octet-stream\",\n\t\"btf\": \"image/prs.btif\",\n\t\"btif\": \"image/prs.btif\",\n\t\"buffer\": \"application/octet-stream\",\n\t\"ccxml\": \"application/ccxml+xml\",\n\t\"cdfx\": \"application/cdfx+xml\",\n\t\"cdmia\": \"application/cdmi-capability\",\n\t\"cdmic\": \"application/cdmi-container\",\n\t\"cdmid\": \"application/cdmi-domain\",\n\t\"cdmio\": \"application/cdmi-object\",\n\t\"cdmiq\": \"application/cdmi-queue\",\n\t\"cer\": \"application/pkix-cert\",\n\t\"cgm\": \"image/cgm\",\n\t\"cjs\": \"application/node\",\n\t\"class\": \"application/java-vm\",\n\t\"coffee\": \"text/coffeescript\",\n\t\"conf\": \"text/plain\",\n\t\"cpl\": \"application/cpl+xml\",\n\t\"cpt\": \"application/mac-compactpro\",\n\t\"crl\": \"application/pkix-crl\",\n\t\"css\": \"text/css\",\n\t\"csv\": \"text/csv\",\n\t\"cu\": \"application/cu-seeme\",\n\t\"cwl\": \"application/cwl\",\n\t\"cww\": \"application/prs.cww\",\n\t\"davmount\": \"application/davmount+xml\",\n\t\"dbk\": \"application/docbook+xml\",\n\t\"deb\": \"application/octet-stream\",\n\t\"def\": \"text/plain\",\n\t\"deploy\": \"application/octet-stream\",\n\t\"dib\": \"image/bmp\",\n\t\"disposition-notification\": \"message/disposition-notification\",\n\t\"dist\": \"application/octet-stream\",\n\t\"distz\": \"application/octet-stream\",\n\t\"dll\": \"application/octet-stream\",\n\t\"dmg\": \"application/octet-stream\",\n\t\"dms\": \"application/octet-stream\",\n\t\"doc\": \"application/msword\",\n\t\"dot\": \"application/msword\",\n\t\"dpx\": \"image/dpx\",\n\t\"drle\": \"image/dicom-rle\",\n\t\"dsc\": \"text/prs.lines.tag\",\n\t\"dssc\": \"application/dssc+der\",\n\t\"dtd\": \"application/xml-dtd\",\n\t\"dump\": \"application/octet-stream\",\n\t\"dwd\": \"application/atsc-dwd+xml\",\n\t\"ear\": \"application/java-archive\",\n\t\"ecma\": \"application/ecmascript\",\n\t\"elc\": \"application/octet-stream\",\n\t\"emf\": \"image/emf\",\n\t\"eml\": \"message/rfc822\",\n\t\"emma\": \"application/emma+xml\",\n\t\"emotionml\": \"application/emotionml+xml\",\n\t\"eps\": \"application/postscript\",\n\t\"epub\": \"application/epub+zip\",\n\t\"exe\": \"application/octet-stream\",\n\t\"exi\": \"application/exi\",\n\t\"exp\": \"application/express\",\n\t\"exr\": \"image/aces\",\n\t\"ez\": \"application/andrew-inset\",\n\t\"fdf\": \"application/fdf\",\n\t\"fdt\": \"application/fdt+xml\",\n\t\"fits\": \"image/fits\",\n\t\"g3\": \"image/g3fax\",\n\t\"gbr\": \"application/rpki-ghostbusters\",\n\t\"geojson\": \"application/geo+json\",\n\t\"gif\": \"image/gif\",\n\t\"glb\": \"model/gltf-binary\",\n\t\"gltf\": \"model/gltf+json\",\n\t\"gml\": \"application/gml+xml\",\n\t\"gpx\": \"application/gpx+xml\",\n\t\"gram\": \"application/srgs\",\n\t\"grxml\": \"application/srgs+xml\",\n\t\"gxf\": \"application/gxf\",\n\t\"gz\": \"application/gzip\",\n\t\"h261\": \"video/h261\",\n\t\"h263\": \"video/h263\",\n\t\"h264\": \"video/h264\",\n\t\"heic\": \"image/heic\",\n\t\"heics\": \"image/heic-sequence\",\n\t\"heif\": \"image/heif\",\n\t\"heifs\": \"image/heif-sequence\",\n\t\"hej2\": \"image/hej2k\",\n\t\"held\": \"application/atsc-held+xml\",\n\t\"hjson\": \"application/hjson\",\n\t\"hlp\": \"application/winhlp\",\n\t\"hqx\": \"application/mac-binhex40\",\n\t\"hsj2\": \"image/hsj2\",\n\t\"htm\": \"text/html\",\n\t\"html\": \"text/html\",\n\t\"ics\": \"text/calendar\",\n\t\"ief\": \"image/ief\",\n\t\"ifb\": \"text/calendar\",\n\t\"iges\": \"model/iges\",\n\t\"igs\": \"model/iges\",\n\t\"img\": \"application/octet-stream\",\n\t\"in\": \"text/plain\",\n\t\"ini\": \"text/plain\",\n\t\"ink\": \"application/inkml+xml\",\n\t\"inkml\": \"application/inkml+xml\",\n\t\"ipfix\": \"application/ipfix\",\n\t\"iso\": \"application/octet-stream\",\n\t\"its\": \"application/its+xml\",\n\t\"jade\": \"text/jade\",\n\t\"jar\": \"application/java-archive\",\n\t\"jhc\": \"image/jphc\",\n\t\"jls\": \"image/jls\",\n\t\"jp2\": \"image/jp2\",\n\t\"jpe\": \"image/jpeg\",\n\t\"jpeg\": \"image/jpeg\",\n\t\"jpf\": \"image/jpx\",\n\t\"jpg\": \"image/jpeg\",\n\t\"jpg2\": \"image/jp2\",\n\t\"jpgm\": \"image/jpm\",\n\t\"jpgv\": \"video/jpeg\",\n\t\"jph\": \"image/jph\",\n\t\"jpm\": \"image/jpm\",\n\t\"jpx\": \"image/jpx\",\n\t\"js\": \"text/javascript\",\n\t\"json\": \"application/json\",\n\t\"json5\": \"application/json5\",\n\t\"jsonld\": \"application/ld+json\",\n\t\"jsonml\": \"application/jsonml+json\",\n\t\"jsx\": \"text/jsx\",\n\t\"jt\": \"model/jt\",\n\t\"jxl\": \"image/jxl\",\n\t\"jxr\": \"image/jxr\",\n\t\"jxra\": \"image/jxra\",\n\t\"jxrs\": \"image/jxrs\",\n\t\"jxs\": \"image/jxs\",\n\t\"jxsc\": \"image/jxsc\",\n\t\"jxsi\": \"image/jxsi\",\n\t\"jxss\": \"image/jxss\",\n\t\"kar\": \"audio/midi\",\n\t\"ktx\": \"image/ktx\",\n\t\"ktx2\": \"image/ktx2\",\n\t\"less\": \"text/less\",\n\t\"lgr\": \"application/lgr+xml\",\n\t\"list\": \"text/plain\",\n\t\"litcoffee\": \"text/coffeescript\",\n\t\"log\": \"text/plain\",\n\t\"lostxml\": \"application/lost+xml\",\n\t\"lrf\": \"application/octet-stream\",\n\t\"m1v\": \"video/mpeg\",\n\t\"m21\": \"application/mp21\",\n\t\"m2a\": \"audio/mpeg\",\n\t\"m2t\": \"video/mp2t\",\n\t\"m2ts\": \"video/mp2t\",\n\t\"m2v\": \"video/mpeg\",\n\t\"m3a\": \"audio/mpeg\",\n\t\"m4a\": \"audio/mp4\",\n\t\"m4p\": \"application/mp4\",\n\t\"m4s\": \"video/iso.segment\",\n\t\"ma\": \"application/mathematica\",\n\t\"mads\": \"application/mads+xml\",\n\t\"maei\": \"application/mmt-aei+xml\",\n\t\"man\": \"text/troff\",\n\t\"manifest\": \"text/cache-manifest\",\n\t\"map\": \"application/json\",\n\t\"mar\": \"application/octet-stream\",\n\t\"markdown\": \"text/markdown\",\n\t\"mathml\": \"application/mathml+xml\",\n\t\"mb\": \"application/mathematica\",\n\t\"mbox\": \"application/mbox\",\n\t\"md\": \"text/markdown\",\n\t\"mdx\": \"text/mdx\",\n\t\"me\": \"text/troff\",\n\t\"mesh\": \"model/mesh\",\n\t\"meta4\": \"application/metalink4+xml\",\n\t\"metalink\": \"application/metalink+xml\",\n\t\"mets\": \"application/mets+xml\",\n\t\"mft\": \"application/rpki-manifest\",\n\t\"mid\": \"audio/midi\",\n\t\"midi\": \"audio/midi\",\n\t\"mime\": \"message/rfc822\",\n\t\"mj2\": \"video/mj2\",\n\t\"mjp2\": \"video/mj2\",\n\t\"mjs\": \"text/javascript\",\n\t\"mml\": \"text/mathml\",\n\t\"mods\": \"application/mods+xml\",\n\t\"mov\": \"video/quicktime\",\n\t\"mp2\": \"audio/mpeg\",\n\t\"mp21\": \"application/mp21\",\n\t\"mp2a\": \"audio/mpeg\",\n\t\"mp3\": \"audio/mpeg\",\n\t\"mp4\": \"video/mp4\",\n\t\"mp4a\": \"audio/mp4\",\n\t\"mp4s\": \"application/mp4\",\n\t\"mp4v\": \"video/mp4\",\n\t\"mpd\": \"application/dash+xml\",\n\t\"mpe\": \"video/mpeg\",\n\t\"mpeg\": \"video/mpeg\",\n\t\"mpf\": \"application/media-policy-dataset+xml\",\n\t\"mpg\": \"video/mpeg\",\n\t\"mpg4\": \"video/mp4\",\n\t\"mpga\": \"audio/mpeg\",\n\t\"mpp\": \"application/dash-patch+xml\",\n\t\"mrc\": \"application/marc\",\n\t\"mrcx\": \"application/marcxml+xml\",\n\t\"ms\": \"text/troff\",\n\t\"mscml\": \"application/mediaservercontrol+xml\",\n\t\"msh\": \"model/mesh\",\n\t\"msi\": \"application/octet-stream\",\n\t\"msix\": \"application/msix\",\n\t\"msixbundle\": \"application/msixbundle\",\n\t\"msm\": \"application/octet-stream\",\n\t\"msp\": \"application/octet-stream\",\n\t\"mtl\": \"model/mtl\",\n\t\"mts\": \"video/mp2t\",\n\t\"musd\": \"application/mmt-usd+xml\",\n\t\"mxf\": \"application/mxf\",\n\t\"mxmf\": \"audio/mobile-xmf\",\n\t\"mxml\": \"application/xv+xml\",\n\t\"n3\": \"text/n3\",\n\t\"nb\": \"application/mathematica\",\n\t\"nq\": \"application/n-quads\",\n\t\"nt\": \"application/n-triples\",\n\t\"obj\": \"model/obj\",\n\t\"oda\": \"application/oda\",\n\t\"oga\": \"audio/ogg\",\n\t\"ogg\": \"audio/ogg\",\n\t\"ogv\": \"video/ogg\",\n\t\"ogx\": \"application/ogg\",\n\t\"omdoc\": \"application/omdoc+xml\",\n\t\"onepkg\": \"application/onenote\",\n\t\"onetmp\": \"application/onenote\",\n\t\"onetoc\": \"application/onenote\",\n\t\"onetoc2\": \"application/onenote\",\n\t\"opf\": \"application/oebps-package+xml\",\n\t\"opus\": \"audio/ogg\",\n\t\"otf\": \"font/otf\",\n\t\"owl\": \"application/rdf+xml\",\n\t\"oxps\": \"application/oxps\",\n\t\"p10\": \"application/pkcs10\",\n\t\"p7c\": \"application/pkcs7-mime\",\n\t\"p7m\": \"application/pkcs7-mime\",\n\t\"p7s\": \"application/pkcs7-signature\",\n\t\"p8\": \"application/pkcs8\",\n\t\"pdf\": \"application/pdf\",\n\t\"pfr\": \"application/font-tdpfr\",\n\t\"pgp\": \"application/pgp-encrypted\",\n\t\"pkg\": \"application/octet-stream\",\n\t\"pki\": \"application/pkixcmp\",\n\t\"pkipath\": \"application/pkix-pkipath\",\n\t\"pls\": \"application/pls+xml\",\n\t\"png\": \"image/png\",\n\t\"prc\": \"model/prc\",\n\t\"prf\": \"application/pics-rules\",\n\t\"provx\": \"application/provenance+xml\",\n\t\"ps\": \"application/postscript\",\n\t\"pskcxml\": \"application/pskc+xml\",\n\t\"pti\": \"image/prs.pti\",\n\t\"qt\": \"video/quicktime\",\n\t\"raml\": \"application/raml+yaml\",\n\t\"rapd\": \"application/route-apd+xml\",\n\t\"rdf\": \"application/rdf+xml\",\n\t\"relo\": \"application/p2p-overlay+xml\",\n\t\"rif\": \"application/reginfo+xml\",\n\t\"rl\": \"application/resource-lists+xml\",\n\t\"rld\": \"application/resource-lists-diff+xml\",\n\t\"rmi\": \"audio/midi\",\n\t\"rnc\": \"application/relax-ng-compact-syntax\",\n\t\"rng\": \"application/xml\",\n\t\"roa\": \"application/rpki-roa\",\n\t\"roff\": \"text/troff\",\n\t\"rq\": \"application/sparql-query\",\n\t\"rs\": \"application/rls-services+xml\",\n\t\"rsat\": \"application/atsc-rsat+xml\",\n\t\"rsd\": \"application/rsd+xml\",\n\t\"rsheet\": \"application/urc-ressheet+xml\",\n\t\"rss\": \"application/rss+xml\",\n\t\"rtf\": \"text/rtf\",\n\t\"rtx\": \"text/richtext\",\n\t\"rusd\": \"application/route-usd+xml\",\n\t\"s3m\": \"audio/s3m\",\n\t\"sbml\": \"application/sbml+xml\",\n\t\"scq\": \"application/scvp-cv-request\",\n\t\"scs\": \"application/scvp-cv-response\",\n\t\"sdp\": \"application/sdp\",\n\t\"senmlx\": \"application/senml+xml\",\n\t\"sensmlx\": \"application/sensml+xml\",\n\t\"ser\": \"application/java-serialized-object\",\n\t\"setpay\": \"application/set-payment-initiation\",\n\t\"setreg\": \"application/set-registration-initiation\",\n\t\"sgi\": \"image/sgi\",\n\t\"sgm\": \"text/sgml\",\n\t\"sgml\": \"text/sgml\",\n\t\"shex\": \"text/shex\",\n\t\"shf\": \"application/shf+xml\",\n\t\"shtml\": \"text/html\",\n\t\"sieve\": \"application/sieve\",\n\t\"sig\": \"application/pgp-signature\",\n\t\"sil\": \"audio/silk\",\n\t\"silo\": \"model/mesh\",\n\t\"siv\": \"application/sieve\",\n\t\"slim\": \"text/slim\",\n\t\"slm\": \"text/slim\",\n\t\"sls\": \"application/route-s-tsid+xml\",\n\t\"smi\": \"application/smil+xml\",\n\t\"smil\": \"application/smil+xml\",\n\t\"snd\": \"audio/basic\",\n\t\"so\": \"application/octet-stream\",\n\t\"spdx\": \"text/spdx\",\n\t\"spp\": \"application/scvp-vp-response\",\n\t\"spq\": \"application/scvp-vp-request\",\n\t\"spx\": \"audio/ogg\",\n\t\"sql\": \"application/sql\",\n\t\"sru\": \"application/sru+xml\",\n\t\"srx\": \"application/sparql-results+xml\",\n\t\"ssdl\": \"application/ssdl+xml\",\n\t\"ssml\": \"application/ssml+xml\",\n\t\"stk\": \"application/hyperstudio\",\n\t\"stl\": \"model/stl\",\n\t\"stpx\": \"model/step+xml\",\n\t\"stpxz\": \"model/step-xml+zip\",\n\t\"stpz\": \"model/step+zip\",\n\t\"styl\": \"text/stylus\",\n\t\"stylus\": \"text/stylus\",\n\t\"svg\": \"image/svg+xml\",\n\t\"svgz\": \"image/svg+xml\",\n\t\"swidtag\": \"application/swid+xml\",\n\t\"t\": \"text/troff\",\n\t\"t38\": \"image/t38\",\n\t\"td\": \"application/urc-targetdesc+xml\",\n\t\"tei\": \"application/tei+xml\",\n\t\"teicorpus\": \"application/tei+xml\",\n\t\"text\": \"text/plain\",\n\t\"tfi\": \"application/thraud+xml\",\n\t\"tfx\": \"image/tiff-fx\",\n\t\"tif\": \"image/tiff\",\n\t\"tiff\": \"image/tiff\",\n\t\"toml\": \"application/toml\",\n\t\"tr\": \"text/troff\",\n\t\"trig\": \"application/trig\",\n\t\"ts\": \"video/mp2t\",\n\t\"tsd\": \"application/timestamped-data\",\n\t\"tsv\": \"text/tab-separated-values\",\n\t\"ttc\": \"font/collection\",\n\t\"ttf\": \"font/ttf\",\n\t\"ttl\": \"text/turtle\",\n\t\"ttml\": \"application/ttml+xml\",\n\t\"txt\": \"text/plain\",\n\t\"u3d\": \"model/u3d\",\n\t\"u8dsn\": \"message/global-delivery-status\",\n\t\"u8hdr\": \"message/global-headers\",\n\t\"u8mdn\": \"message/global-disposition-notification\",\n\t\"u8msg\": \"message/global\",\n\t\"ubj\": \"application/ubjson\",\n\t\"uri\": \"text/uri-list\",\n\t\"uris\": \"text/uri-list\",\n\t\"urls\": \"text/uri-list\",\n\t\"vcard\": \"text/vcard\",\n\t\"vrml\": \"model/vrml\",\n\t\"vtt\": \"text/vtt\",\n\t\"vxml\": \"application/voicexml+xml\",\n\t\"war\": \"application/java-archive\",\n\t\"wasm\": \"application/wasm\",\n\t\"wav\": \"audio/wav\",\n\t\"weba\": \"audio/webm\",\n\t\"webm\": \"video/webm\",\n\t\"webmanifest\": \"application/manifest+json\",\n\t\"webp\": \"image/webp\",\n\t\"wgsl\": \"text/wgsl\",\n\t\"wgt\": \"application/widget\",\n\t\"wif\": \"application/watcherinfo+xml\",\n\t\"wmf\": \"image/wmf\",\n\t\"woff\": \"font/woff\",\n\t\"woff2\": \"font/woff2\",\n\t\"wrl\": \"model/vrml\",\n\t\"wsdl\": \"application/wsdl+xml\",\n\t\"wspolicy\": \"application/wspolicy+xml\",\n\t\"x3d\": \"model/x3d+xml\",\n\t\"x3db\": \"model/x3d+fastinfoset\",\n\t\"x3dbz\": \"model/x3d+binary\",\n\t\"x3dv\": \"model/x3d-vrml\",\n\t\"x3dvz\": \"model/x3d+vrml\",\n\t\"x3dz\": \"model/x3d+xml\",\n\t\"xaml\": \"application/xaml+xml\",\n\t\"xav\": \"application/xcap-att+xml\",\n\t\"xca\": \"application/xcap-caps+xml\",\n\t\"xcs\": \"application/calendar+xml\",\n\t\"xdf\": \"application/xcap-diff+xml\",\n\t\"xdssc\": \"application/dssc+xml\",\n\t\"xel\": \"application/xcap-el+xml\",\n\t\"xenc\": \"application/xenc+xml\",\n\t\"xer\": \"application/patch-ops-error+xml\",\n\t\"xfdf\": \"application/xfdf\",\n\t\"xht\": \"application/xhtml+xml\",\n\t\"xhtml\": \"application/xhtml+xml\",\n\t\"xhvml\": \"application/xv+xml\",\n\t\"xlf\": \"application/xliff+xml\",\n\t\"xm\": \"audio/xm\",\n\t\"xml\": \"text/xml\",\n\t\"xns\": \"application/xcap-ns+xml\",\n\t\"xop\": \"application/xop+xml\",\n\t\"xpl\": \"application/xproc+xml\",\n\t\"xsd\": \"application/xml\",\n\t\"xsf\": \"application/prs.xsf+xml\",\n\t\"xsl\": \"application/xml\",\n\t\"xslt\": \"application/xml\",\n\t\"xspf\": \"application/xspf+xml\",\n\t\"xvm\": \"application/xv+xml\",\n\t\"xvml\": \"application/xv+xml\",\n\t\"yaml\": \"text/yaml\",\n\t\"yang\": \"application/yang\",\n\t\"yin\": \"application/yin+xml\",\n\t\"yml\": \"text/yaml\",\n\t\"zip\": \"application/zip\"\n};\nfunction lookup(extn) {\n\tlet tmp = (\"\" + extn).trim().toLowerCase();\n\tlet idx = tmp.lastIndexOf(\".\");\n\treturn mimes[!~idx ? tmp : tmp.substring(++idx)];\n}\n\n//#endregion\n//#region src/utils.ts\nconst createTrieNode = () => ({\n\tchildren: /* @__PURE__ */ new Map(),\n\ttargets: []\n});\nconst createPathNormalizer = () => {\n\tconst pathCache = /* @__PURE__ */ new Map();\n\treturn (filePath) => {\n\t\tif (!pathCache.has(filePath)) {\n\t\t\tconst normalizedPath = path.normalize(filePath).toLowerCase().replace(/\\\\/g, \"/\");\n\t\t\tpathCache.set(filePath, normalizedPath);\n\t\t}\n\t\treturn pathCache.get(filePath);\n\t};\n};\nconst splitPath = function* (normalizedPath) {\n\tconst cleaned = normalizedPath.replace(/^\\/+|\\/+$/g, \"\");\n\tif (cleaned === \"\") return;\n\tlet start = 0;\n\twhile (start < cleaned.length) {\n\t\tconst idx = cleaned.indexOf(\"/\", start);\n\t\tif (idx === -1) {\n\t\t\tyield cleaned.slice(start);\n\t\t\tbreak;\n\t\t}\n\t\tyield cleaned.slice(start, idx);\n\t\tstart = idx + 1;\n\t}\n};\nconst groupTargetsByDirectoryTree = (targets) => {\n\tif (targets.length === 0) return [];\n\tif (targets.length === 1) return [targets];\n\tconst targetsWithOrder = targets.map((target, order) => ({\n\t\t...target,\n\t\torder\n\t}));\n\tconst getNormalizedPath = createPathNormalizer();\n\tconst root = createTrieNode();\n\tfor (const target of targetsWithOrder) {\n\t\tconst normalizedPath = getNormalizedPath(target.resolvedDest);\n\t\tconst segments = splitPath(normalizedPath);\n\t\tlet currentNode = root;\n\t\tfor (const segment of segments) {\n\t\t\tif (!currentNode.children.has(segment)) currentNode.children.set(segment, createTrieNode());\n\t\t\tcurrentNode = currentNode.children.get(segment);\n\t\t}\n\t\tcurrentNode.targets.push(target);\n\t}\n\tconst groups = [];\n\tconst collectGroups = (node) => {\n\t\tif (node.children.size === 0) return node.targets;\n\t\tif (node.targets.length > 0) {\n\t\t\tconst allTargets = [...node.targets];\n\t\t\tfor (const child of node.children.values()) {\n\t\t\t\tconst childTargets = collectTargets(child);\n\t\t\t\tif (childTargets.length > 0) allTargets.push(...childTargets);\n\t\t\t}\n\t\t\treturn allTargets;\n\t\t}\n\t\tfor (const child of node.children.values()) {\n\t\t\tconst childTargets = collectGroups(child);\n\t\t\tif (childTargets.length > 0) groups.push(childTargets);\n\t\t}\n\t\treturn [];\n\t};\n\tconst collectTargets = (node) => {\n\t\tif (node.children.size === 0) return node.targets;\n\t\tconst allTargets = [...node.targets];\n\t\tfor (const child of node.children.values()) {\n\t\t\tconst childTargets = collectTargets(child);\n\t\t\tif (childTargets.length > 0) allTargets.push(...childTargets);\n\t\t}\n\t\treturn allTargets;\n\t};\n\tconst rootTargets = collectGroups(root);\n\tif (rootTargets.length > 0) groups.push(rootTargets);\n\tfor (const group of groups) group.sort((a, b) => a.order - b.order);\n\treturn groups;\n};\nasync function renameTarget(target, rename, src) {\n\tconst parsedPath = path.parse(target);\n\tif (typeof rename === \"string\") return rename;\n\treturn rename(parsedPath.name, parsedPath.ext.replace(\".\", \"\"), src);\n}\nconst collectCopyTargets = async (root, targets, structured, silent) => {\n\tconst copyTargets = [];\n\tfor (const target of targets) {\n\t\tconst { src, dest, rename, transform, preserveTimestamps, dereference, overwrite } = target;\n\t\tconst matchedPaths = await glob(src, {\n\t\t\tonlyFiles: false,\n\t\t\tdot: true,\n\t\t\texpandDirectories: false,\n\t\t\tcwd: root\n\t\t});\n\t\tif (matchedPaths.length === 0 && !silent) throw new Error(`No file was found to copy on ${src} src.`);\n\t\tfor (const matchedPath of matchedPaths) {\n\t\t\tconst relativeMatchedPath = path.isAbsolute(matchedPath) ? path.relative(root, matchedPath) : matchedPath;\n\t\t\tconst absoluteMatchedPath = path.resolve(root, matchedPath);\n\t\t\tif (transform) {\n\t\t\t\tif (!(await fs.stat(absoluteMatchedPath)).isFile()) throw new Error(`\"transform\" option only supports a file: '${relativeMatchedPath}' is not a file`);\n\t\t\t}\n\t\t\tconst { base, dir } = path.parse(relativeMatchedPath);\n\t\t\tlet destDir;\n\t\t\tif (!structured || !dir) destDir = dest;\n\t\t\telse {\n\t\t\t\tconst dirClean = dir.replace(/^(?:\\.\\.\\/)+/, \"\");\n\t\t\t\tdestDir = `${dest}/${dirClean}`.replace(/^\\/+|\\/+$/g, \"\");\n\t\t\t}\n\t\t\tcopyTargets.push({\n\t\t\t\tsrc: relativeMatchedPath,\n\t\t\t\tdest: path.join(destDir, rename ? await renameTarget(base, rename, absoluteMatchedPath) : base),\n\t\t\t\ttransform,\n\t\t\t\tpreserveTimestamps: preserveTimestamps ?? false,\n\t\t\t\tdereference: dereference ?? true,\n\t\t\t\toverwrite: overwrite ?? true\n\t\t\t});\n\t\t}\n\t}\n\treturn copyTargets;\n};\nasync function getTransformedContent(file, transform) {\n\tif (transform.encoding === \"buffer\") {\n\t\tconst content$1 = await fs.readFile(file);\n\t\treturn transform.handler(content$1, file);\n\t}\n\tconst content = await fs.readFile(file, transform.encoding);\n\treturn transform.handler(content, file);\n}\nasync function transformCopy(transform, src, dest, overwrite) {\n\tif (overwrite === false || overwrite === \"error\") {\n\t\tif (await fsExists(dest)) {\n\t\t\tif (overwrite === false) return { copied: false };\n\t\t\tif (overwrite === \"error\") throw new Error(`File ${dest} already exists`);\n\t\t}\n\t}\n\tconst transformedContent = await getTransformedContent(src, transform);\n\tif (transformedContent === null) return { copied: false };\n\tawait fs.mkdir(path.dirname(dest), { recursive: true });\n\tawait fs.writeFile(dest, transformedContent);\n\treturn { copied: true };\n}\nconst copyAll = async (rootSrc, rootDest, targets, structured, silent) => {\n\tconst copyTargets = await collectCopyTargets(rootSrc, targets, structured, silent);\n\tconst resolvedTargets = copyTargets.map((target) => ({\n\t\t...target,\n\t\tresolvedSrc: path.resolve(rootSrc, target.src),\n\t\tresolvedDest: path.resolve(rootSrc, rootDest, target.dest)\n\t}));\n\tconst groups = groupTargetsByDirectoryTree(resolvedTargets);\n\tlet copiedCount = 0;\n\tawait pMap(groups, async (targetGroup) => {\n\t\tfor (const resolvedTarget of targetGroup) {\n\t\t\tconst { resolvedSrc, resolvedDest, transform, preserveTimestamps, dereference, overwrite } = resolvedTarget;\n\t\t\tconst transformOption = resolveTransformOption(transform);\n\t\t\tif (transformOption) {\n\t\t\t\tif ((await transformCopy(transformOption, resolvedSrc, resolvedDest, overwrite)).copied) copiedCount++;\n\t\t\t} else {\n\t\t\t\tawait fs.cp(resolvedSrc, resolvedDest, {\n\t\t\t\t\trecursive: true,\n\t\t\t\t\tpreserveTimestamps,\n\t\t\t\t\tdereference,\n\t\t\t\t\tforce: overwrite === true,\n\t\t\t\t\terrorOnExist: overwrite === \"error\"\n\t\t\t\t});\n\t\t\t\tcopiedCount++;\n\t\t\t}\n\t\t}\n\t}, { concurrency: 5 });\n\treturn {\n\t\ttargets: copyTargets.length,\n\t\tcopied: copiedCount\n\t};\n};\nconst updateFileMapFromTargets = (targets, fileMap, absoluteBuildOutDir) => {\n\tfileMap.clear();\n\tfor (const target of [...targets].reverse()) {\n\t\tlet dest = path.isAbsolute(target.dest) ? path.relative(absoluteBuildOutDir, target.dest) : target.dest;\n\t\tdest = dest.replace(/\\\\/g, \"/\");\n\t\tif (path.isAbsolute(dest) || dest.startsWith(\"../\")) continue;\n\t\tif (dest.startsWith(\"./\")) dest = dest.slice(1);\n\t\telse if (!dest.startsWith(\"/\")) dest = `/${dest}`;\n\t\tif (!fileMap.has(dest)) fileMap.set(dest, []);\n\t\tfileMap.get(dest).push({\n\t\t\tsrc: target.src,\n\t\t\tdest: target.dest,\n\t\t\toverwrite: target.overwrite,\n\t\t\ttransform: target.transform\n\t\t});\n\t}\n};\nconst calculateMd5Base64 = (content) => createHash(\"md5\").update(content).digest(\"base64\");\nconst formatConsole = (msg) => `${pc.cyan(\"[vite-plugin-static-copy]\")} ${msg}`;\nconst outputCollectedLog = (logger, collectedMap) => {\n\tif (collectedMap.size > 0) {\n\t\tlogger.info(formatConsole(pc.green(`Collected ${collectedMap.size} items.`)));\n\t\tif (process.env.DEBUG === \"vite:plugin-static-copy\") for (const [key, vals] of collectedMap) for (const val of vals) logger.info(formatConsole(`  - '${key}' -> '${val.src}'${val.transform ? \" (with content transform)\" : \"\"}`));\n\t} else logger.warn(formatConsole(pc.yellow(\"No items found.\")));\n};\nconst outputCopyLog = (logger, result) => {\n\tif (result.targets > 0) {\n\t\tconst copiedMessage = pc.green(`Copied ${result.copied} items.`);\n\t\tconst skipped = result.targets - result.copied;\n\t\tconst skippedMessage = skipped > 0 ? ` ${pc.gray(`(Skipped ${skipped} items.)`)}` : \"\";\n\t\tlogger.info(formatConsole(`${copiedMessage}${skippedMessage}`));\n\t}\n};\nfunction resolveTransformOption(transformOption) {\n\tif (typeof transformOption === \"function\") return {\n\t\thandler: transformOption,\n\t\tencoding: \"utf8\"\n\t};\n\treturn transformOption;\n}\nasync function fsExists(p) {\n\ttry {\n\t\tawait fs.stat(p);\n\t} catch (e) {\n\t\tif (e.code === \"ENOENT\") return false;\n\t\tthrow e;\n\t}\n\treturn true;\n}\n\n//#endregion\n//#region src/middleware.ts\nconst knownJavascriptExtensionRE = /\\.(?:[tj]sx?|[cm][tj]s)$/;\nfunction shouldServeOverwriteCheck(overwrite, srcAbsolutePath, root, publicDir, dest) {\n\tif (overwrite === true || publicDir === \"\") return true;\n\tconst publicFile = resolve(publicDir, dest);\n\tif (existsSync(publicFile)) {\n\t\tif (overwrite === \"error\" && existsSync(srcAbsolutePath)) {\n\t\t\tconst destAbsolutePath = resolve(root, dest);\n\t\t\tthrow new Error(`File ${destAbsolutePath} will be copied from ${publicFile} (overwrite option is set to \"error\")`);\n\t\t}\n\t\treturn false;\n\t}\n\treturn true;\n}\nfunction isFileInside(filepath, srcBase) {\n\tconst srcBaseWithTrailingSlash = srcBase.endsWith(sep) ? srcBase : `${srcBase}${sep}`;\n\treturn filepath.startsWith(srcBaseWithTrailingSlash);\n}\nfunction viaLocal(root, publicDir, fileMap, uri) {\n\tif (uri.endsWith(\"/\")) uri = uri.slice(0, -1);\n\tconst files = fileMap.get(uri);\n\tif (files && files[0]) {\n\t\tconst file = files[0];\n\t\tconst filepath = resolve(root, file.src);\n\t\tif (shouldServeOverwriteCheck(file.overwrite, filepath, root, publicDir, file.dest) === false) return;\n\t\tconst stats = statSync(filepath);\n\t\treturn {\n\t\t\tfilepath,\n\t\t\tstats,\n\t\t\ttransform: file.transform\n\t\t};\n\t}\n\tfor (const [key, vals] of fileMap) {\n\t\tconst dir = key.endsWith(\"/\") ? key : `${key}/`;\n\t\tif (!uri.startsWith(dir)) continue;\n\t\tfor (const val of vals) {\n\t\t\tconst srcBase = resolve(root, val.src);\n\t\t\tconst filepath = resolve(srcBase, uri.slice(dir.length));\n\t\t\tif (!isFileInside(filepath, srcBase)) return;\n\t\t\tif (shouldServeOverwriteCheck(val.overwrite, filepath, root, publicDir, join(val.dest, uri.slice(dir.length))) === false) return;\n\t\t\tconst stats = statSync(filepath, { throwIfNoEntry: false });\n\t\t\tif (stats) return {\n\t\t\t\tfilepath,\n\t\t\t\tstats\n\t\t\t};\n\t\t}\n\t\treturn;\n\t}\n}\nfunction getStaticHeaders(stats) {\n\treturn {\n\t\t\"Content-Length\": stats.size,\n\t\t\"Last-Modified\": stats.mtime.toUTCString(),\n\t\tETag: `W/\"${stats.size}-${stats.mtime.getTime()}\"`,\n\t\t\"Cache-Control\": \"no-cache\"\n\t};\n}\nfunction getTransformHeaders(encoding, content) {\n\treturn {\n\t\t\"Content-Length\": Buffer.byteLength(content, encoding === \"buffer\" ? void 0 : encoding),\n\t\tETag: `W/\"${calculateMd5Base64(content)}\"`,\n\t\t\"Cache-Control\": \"no-cache\"\n\t};\n}\nfunction getMergeHeaders(headers, res) {\n\theaders = { ...headers };\n\tfor (const key in headers) {\n\t\tconst tmp = res.getHeader(key);\n\t\tif (tmp) headers[key] = tmp;\n\t}\n\tconst contentTypeHeader = res.getHeader(\"content-type\");\n\tif (contentTypeHeader) headers[\"Content-Type\"] = contentTypeHeader;\n\treturn headers;\n}\nfunction sendStatic(req, res, file, stats) {\n\tconst staticHeaders = getStaticHeaders(stats);\n\tif (req.headers[\"if-none-match\"] === staticHeaders[\"ETag\"]) {\n\t\tres.writeHead(304);\n\t\tres.end();\n\t\treturn;\n\t}\n\tlet code = 200;\n\tconst headers = getMergeHeaders(staticHeaders, res);\n\tconst opts = {};\n\tif (req.headers.range) {\n\t\tcode = 206;\n\t\tconst [x, y] = req.headers.range.replace(\"bytes=\", \"\").split(\"-\");\n\t\tlet end = (y ? parseInt(y, 10) : 0) || stats.size - 1;\n\t\tconst start = (x ? parseInt(x, 10) : 0) || 0;\n\t\topts.end = end;\n\t\topts.start = start;\n\t\tif (end >= stats.size) end = stats.size - 1;\n\t\tif (start >= stats.size) {\n\t\t\tres.setHeader(\"Content-Range\", `bytes */${stats.size}`);\n\t\t\tres.statusCode = 416;\n\t\t\tres.end();\n\t\t\treturn;\n\t\t}\n\t\theaders[\"Content-Range\"] = `bytes ${start}-${end}/${stats.size}`;\n\t\theaders[\"Content-Length\"] = end - start + 1;\n\t\theaders[\"Accept-Ranges\"] = \"bytes\";\n\t}\n\tres.writeHead(code, headers);\n\tcreateReadStream(file, opts).pipe(res);\n}\nfunction sendTransform(req, res, transform, transformedContent) {\n\tconst transformHeaders = getTransformHeaders(transform.encoding, transformedContent);\n\tif (req.headers[\"if-none-match\"] === transformHeaders[\"ETag\"]) {\n\t\tres.writeHead(304);\n\t\tres.end();\n\t\treturn;\n\t}\n\tconst code = 200;\n\tconst headers = getMergeHeaders(transformHeaders, res);\n\tres.writeHead(code, headers);\n\tres.end(transformedContent);\n}\nfunction setHeaders(res, pathname, headers) {\n\tif (knownJavascriptExtensionRE.test(pathname)) res.setHeader(\"Content-Type\", \"text/javascript\");\n\telse {\n\t\tlet ctype = lookup(pathname) || \"\";\n\t\tif (ctype === \"text/html\") ctype += \";charset=utf-8\";\n\t\tres.setHeader(\"Content-Type\", ctype);\n\t}\n\tif (headers) for (const name in headers) res.setHeader(name, headers[name]);\n}\nfunction return404(res, next) {\n\tif (next) {\n\t\tnext();\n\t\treturn;\n\t}\n\tres.statusCode = 404;\n\tres.end();\n}\nfunction serveStaticCopyMiddleware({ root, publicDir, server }, fileMap) {\n\treturn async function viteServeStaticCopyMiddleware(req, res, next) {\n\t\tlet pathname = parse(req).pathname;\n\t\tif (pathname.includes(\"%\")) try {\n\t\t\tpathname = decodeURI(pathname);\n\t\t} catch {}\n\t\ttry {\n\t\t\tconst data = viaLocal(root, publicDir, fileMap, pathname);\n\t\t\tif (!data || data.stats.isDirectory()) {\n\t\t\t\treturn404(res, next);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst transformOption = resolveTransformOption(data.transform);\n\t\t\tif (transformOption) {\n\t\t\t\tconst transformedContent = await getTransformedContent(data.filepath, transformOption);\n\t\t\t\tif (transformedContent === null) {\n\t\t\t\t\treturn404(res, next);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tsetHeaders(res, pathname, server.headers);\n\t\t\t\tsendTransform(req, res, transformOption, transformedContent);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tsetHeaders(res, pathname, server.headers);\n\t\t\tsendStatic(req, res, data.filepath, data.stats);\n\t\t} catch (e) {\n\t\t\tif (e instanceof Error) {\n\t\t\t\tnext(e);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthrow e;\n\t\t}\n\t};\n}\n\n//#endregion\n//#region node_modules/.pnpm/throttle-debounce@5.0.2/node_modules/throttle-debounce/esm/index.js\n/**\n* Throttle execution of a function. Especially useful for rate limiting\n* execution of handlers on events like resize and scroll.\n*\n* @param {number} delay -                  A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher)\n*                                            are most useful.\n* @param {Function} callback -               A function to be executed after delay milliseconds. The `this` context and all arguments are passed through,\n*                                            as-is, to `callback` when the throttled-function is executed.\n* @param {object} [options] -              An object to configure options.\n* @param {boolean} [options.noTrailing] -   Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds\n*                                            while the throttled-function is being called. If noTrailing is false or unspecified, callback will be executed\n*                                            one final time after the last throttled-function call. (After the throttled-function has not been called for\n*                                            `delay` milliseconds, the internal counter is reset).\n* @param {boolean} [options.noLeading] -   Optional, defaults to false. If noLeading is false, the first throttled-function call will execute callback\n*                                            immediately. If noLeading is true, the first the callback execution will be skipped. It should be noted that\n*                                            callback will never executed if both noLeading = true and noTrailing = true.\n* @param {boolean} [options.debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is\n*                                            false (at end), schedule `callback` to execute after `delay` ms.\n*\n* @returns {Function} A new, throttled, function.\n*/\nfunction throttle(delay, callback, options) {\n\tvar _ref = options || {}, _ref$noTrailing = _ref.noTrailing, noTrailing = _ref$noTrailing === void 0 ? false : _ref$noTrailing, _ref$noLeading = _ref.noLeading, noLeading = _ref$noLeading === void 0 ? false : _ref$noLeading, _ref$debounceMode = _ref.debounceMode, debounceMode = _ref$debounceMode === void 0 ? void 0 : _ref$debounceMode;\n\tvar timeoutID;\n\tvar cancelled = false;\n\tvar lastExec = 0;\n\tfunction clearExistingTimeout() {\n\t\tif (timeoutID) clearTimeout(timeoutID);\n\t}\n\tfunction cancel(options$1) {\n\t\tvar _ref2$upcomingOnly = (options$1 || {}).upcomingOnly, upcomingOnly = _ref2$upcomingOnly === void 0 ? false : _ref2$upcomingOnly;\n\t\tclearExistingTimeout();\n\t\tcancelled = !upcomingOnly;\n\t}\n\tfunction wrapper() {\n\t\tfor (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) arguments_[_key] = arguments[_key];\n\t\tvar self = this;\n\t\tvar elapsed = Date.now() - lastExec;\n\t\tif (cancelled) return;\n\t\tfunction exec() {\n\t\t\tlastExec = Date.now();\n\t\t\tcallback.apply(self, arguments_);\n\t\t}\n\t\tfunction clear() {\n\t\t\ttimeoutID = void 0;\n\t\t}\n\t\tif (!noLeading && debounceMode && !timeoutID) exec();\n\t\tclearExistingTimeout();\n\t\tif (debounceMode === void 0 && elapsed > delay) if (noLeading) {\n\t\t\tlastExec = Date.now();\n\t\t\tif (!noTrailing) timeoutID = setTimeout(debounceMode ? clear : exec, delay);\n\t\t} else exec();\n\t\telse if (noTrailing !== true) timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === void 0 ? delay - elapsed : delay);\n\t}\n\twrapper.cancel = cancel;\n\treturn wrapper;\n}\n/**\n* Debounce execution of a function. Debouncing, unlike throttling,\n* guarantees that a function is only executed a single time, either at the\n* very beginning of a series of calls, or at the very end.\n*\n* @param {number} delay -               A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.\n* @param {Function} callback -          A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,\n*                                        to `callback` when the debounced-function is executed.\n* @param {object} [options] -           An object to configure options.\n* @param {boolean} [options.atBegin] -  Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds\n*                                        after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.\n*                                        (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).\n*\n* @returns {Function} A new, debounced function.\n*/\nfunction debounce(delay, callback, options) {\n\tvar _ref$atBegin = (options || {}).atBegin;\n\treturn throttle(delay, callback, { debounceMode: (_ref$atBegin === void 0 ? false : _ref$atBegin) !== false });\n}\n\n//#endregion\n//#region src/serve.ts\nconst servePlugin = ({ targets, structured, watch, silent }) => {\n\tlet config;\n\tlet watcher;\n\tconst fileMap = /* @__PURE__ */ new Map();\n\tconst collectFileMap = async () => {\n\t\tconst absoluteBuildOutDir = path.resolve(config.root, config.build.outDir);\n\t\ttry {\n\t\t\tconst copyTargets = await collectCopyTargets(config.root, targets, structured, silent);\n\t\t\tupdateFileMapFromTargets(copyTargets, fileMap, absoluteBuildOutDir);\n\t\t} catch (e) {\n\t\t\tif (!silent) config.logger.error(formatConsole(pc.red(e.toString())));\n\t\t}\n\t};\n\tconst collectFileMapDebounce = debounce(100, async () => {\n\t\tawait collectFileMap();\n\t});\n\treturn {\n\t\tname: \"vite-plugin-static-copy:serve\",\n\t\tapply: \"serve\",\n\t\tconfigResolved(_config) {\n\t\t\tconfig = _config;\n\t\t},\n\t\tasync buildStart() {\n\t\t\tawait collectFileMap();\n\t\t},\n\t\tconfigureServer({ httpServer, middlewares, ws }) {\n\t\t\tconst reloadPage = () => {\n\t\t\t\tws.send({\n\t\t\t\t\ttype: \"full-reload\",\n\t\t\t\t\tpath: \"*\"\n\t\t\t\t});\n\t\t\t};\n\t\t\twatcher = chokidar.watch(targets.flatMap((target) => target.src), {\n\t\t\t\tcwd: config.root,\n\t\t\t\tignoreInitial: true,\n\t\t\t\t...watch.options\n\t\t\t});\n\t\t\twatcher.on(\"add\", async (path$1) => {\n\t\t\t\tif (!silent) config.logger.info(formatConsole(`${pc.green(\"detected new file\")} ${path$1}`), { timestamp: true });\n\t\t\t\tawait collectFileMapDebounce();\n\t\t\t\tif (watch.reloadPageOnChange) reloadPage();\n\t\t\t});\n\t\t\tif (watch.reloadPageOnChange) {\n\t\t\t\twatcher.on(\"change\", (path$1) => {\n\t\t\t\t\tif (!silent) config.logger.info(formatConsole(`${pc.green(\"file changed\")} ${path$1}`), { timestamp: true });\n\t\t\t\t\treloadPage();\n\t\t\t\t});\n\t\t\t\twatcher.on(\"unlink\", (path$1) => {\n\t\t\t\t\tif (!silent) config.logger.info(formatConsole(`${pc.green(\"file deleted\")} ${path$1}`), { timestamp: true });\n\t\t\t\t\treloadPage();\n\t\t\t\t});\n\t\t\t}\n\t\t\tif (!silent) httpServer?.once(\"listening\", () => {\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\toutputCollectedLog(config.logger, fileMap);\n\t\t\t\t}, 0);\n\t\t\t});\n\t\t\treturn () => {\n\t\t\t\tconst middleware = serveStaticCopyMiddleware(config, fileMap);\n\t\t\t\tmiddlewares.use(middleware);\n\t\t\t\tconst targetMiddlewareIndex = findMiddlewareIndex(middlewares.stack, [\"viteServePublicMiddleware\", \"viteTransformMiddleware\"]);\n\t\t\t\tconst serveStaticCopyMiddlewareIndex = middlewares.stack.findIndex((item) => item.handle === middleware);\n\t\t\t\tconst serveStaticCopyMiddlewareItem = middlewares.stack.splice(serveStaticCopyMiddlewareIndex, 1)[0];\n\t\t\t\tif (serveStaticCopyMiddlewareItem === void 0) throw new Error();\n\t\t\t\tmiddlewares.stack.splice(targetMiddlewareIndex, 0, serveStaticCopyMiddlewareItem);\n\t\t\t};\n\t\t},\n\t\tasync closeBundle() {\n\t\t\tawait watcher.close();\n\t\t}\n\t};\n};\nconst findMiddlewareIndex = (stack, names) => {\n\tconst ns = Array.isArray(names) ? names : [names];\n\tfor (const name of ns) {\n\t\tconst index = stack.findIndex((middleware) => typeof middleware.handle === \"function\" && middleware.handle.name === name);\n\t\tif (index > 0) return index;\n\t}\n\treturn -1;\n};\n\n//#endregion\n//#region src/build.ts\nconst buildPlugin = ({ targets, structured, silent, hook }) => {\n\tlet config;\n\tlet output = false;\n\treturn {\n\t\tname: \"vite-plugin-static-copy:build\",\n\t\tapply: \"build\",\n\t\tconfigResolved(_config) {\n\t\t\tconfig = _config;\n\t\t},\n\t\tbuildEnd() {\n\t\t\toutput = false;\n\t\t},\n\t\tasync [hook]() {\n\t\t\tif (output) return;\n\t\t\toutput = true;\n\t\t\tconst result = await copyAll(config.root, config.build.outDir, targets, structured, silent);\n\t\t\tif (!silent) outputCopyLog(config.logger, result);\n\t\t}\n\t};\n};\n\n//#endregion\n//#region src/index.ts\nconst viteStaticCopy = (options) => {\n\tconst resolvedOptions = resolveOptions(options);\n\treturn [servePlugin(resolvedOptions), buildPlugin(resolvedOptions)];\n};\n\n//#endregion\nexport { viteStaticCopy };"]}