/**
 * Minified by jsDelivr using Terser v5.37.0.
 * Original file: /npm/get-system-fonts@2.0.2/dist/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const path=require("path"),os=require("os"),recursiveWalk_1=require("./recursiveWalk"),directories={win32:()=>{const e=path.join(process.env.WINDIR||"C:\\Windows","Fonts"),s="Microsoft\\Windows\\Fonts";let t;return process.env.LOCALAPPDATA?t=path.join(process.env.LOCALAPPDATA,s):process.env.APPDATA?t=path.join(process.env.APPDATA,"Local",s):process.env.USERPROFILE&&(t=path.join(process.env.USERPROFILE,"AppData","Local",s)),t?[e,t]:[e]},darwin:()=>{const e=os.homedir();return[...e?[path.join(e,"/Library/Fonts")]:[],"/Library/Fonts","/Network/Library/Fonts","/System/Library/Fonts","/System Folder/Fonts"]},linux:()=>{const e=os.homedir();return["/usr/share/fonts","/usr/local/share/fonts",...e?[path.join(e,".fonts"),path.join(e,".local/share/fonts")]:[]]}};function getSystemFonts(e){const s=Object.assign({extensions:["ttf","otf","ttc","woff","woff2"],additionalFolders:[]},e),t=os.platform(),o=directories[t];if(!o)throw new Error(`Unsupported platform: ${t}`);const r=o();return recursiveWalk_1.default([...r,...s.additionalFolders],s.extensions)}module.exports=Object.assign(getSystemFonts,{default:getSystemFonts}),exports.default=getSystemFonts;
//# sourceMappingURL=/sm/a1c4c1dd4f3f10a6871b90914c505a44bd27bc43fb02025bd74cc19fcd325759.map