{"version":3,"sources":["jsdelivr-header.js","/npm/tiny-spin@1.0.2/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,MAAM,cACiB,UAArB,QAAQ,SACJ,CAAC,IAAK,KAAM,IAAK,KACjB,CAAC,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,KAC9C,IAAM,QAAQ,OAEpB,QAAQ,KAAO,SACb,EAAU,GACV,EAAS,cACT,EAAW,IAEX,IAAI,EAAQ,EAEZ,IAAI,MAAM,UACV,MAAM,EAAQ,aAAY,KACxB,IAAI,MAAM,GAAG,EAAO,MAAU,KAC9B,GAAS,EAAQ,GAAK,EAAO,OAC7B,IAAI,SAAS,EAAE,GACd,GAEH,OAAO,WACL,cAAc,GACd,IAAI,SAAS,GAEb,IAAI,MAAM,SACZ,CACF","file":"/npm/tiny-spin@1.0.2/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/tiny-spin@1.0.2/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","const defaultFrames =\n  process.platform === \"win32\"\n    ? [\"-\", \"\\\\\", \"|\", \"/\"]\n    : [\"⠋\", \"⠙\", \"⠹\", \"⠸\", \"⠼\", \"⠴\", \"⠦\", \"⠧\", \"⠇\", \"⠏\"];\nconst out = process.stderr;\n\nexports.spin = function spin(\n  message = \"\",\n  frames = defaultFrames,\n  interval = 80\n) {\n  let frame = 0;\n  // Hide cursor\n  out.write(\"\\x1b[?25l\");\n  const timer = setInterval(() => {\n    out.write(`${frames[frame]} ${message}`);\n    frame = (frame + 1) % frames.length;\n    out.cursorTo(0);\n  }, interval);\n\n  return function stop() {\n    clearInterval(timer);\n    out.cursorTo(0);\n    // Show cursor\n    out.write(\"\\x1b[?25h\");\n  };\n};\n"]}