text: "use strict";
  
  var userHome = require("user-home");
  var path = require("path");
  
  const CACHE_DIR =
    process.env.FIREBASE_EMULATORS_PATH || path.join(userHome, ".cache", "firebase", "emulators");
  
  const _emulators = {
    database: {
      name: "database",
      instance: null,
      port: 9000,
      stdout: null,
      cacheDir: CACHE_DIR,
      remoteUrl:
        "https://storage.googleapis.com/firebase-preview-drop/emulator/firebase-database-emulator-v3.5.0.jar",
      expectedSize: 17013124,
      expectedChecksum: "4bc8a67bc2a11d3e7ed226eda1b1a986",
      localPath: path.join(CACHE_DIR, "firebase-database-emulator-v3.5.0.jar"),
    },
    firestore: {
      name: "firestore",
      instance: null,
      port: 8080,
      stdout: null,
      cacheDir: CACHE_DIR,
      remoteUrl:
        "https://storage.googleapis.com/firebase-preview-drop/emulator/cloud-firestore-emulator-v1.4.5.jar",
      expectedSize: 56840576,
      expectedChecksum: "7fa4ebe4615650038c79ea260b0e7bf6",
      localPath: path.join(CACHE_DIR, "cloud-firestore-emulator-v1.4.5.jar"),
    },
  };
  
  const _commands = {
    database: {
      binary: "java",
      args: [
        "-Duser.language=en",
        "-jar",
        _emulators.database.localPath,
        "--port",
        _emulators.database.port,
      ],
    },
    firestore: {
      binary: "java",
      args: [
        "-Duser.language=en",
        "-jar",
        _emulators.firestore.localPath,
        "--port",
        _emulators.firestore.port,
      ],
    },
  };
  
  module.exports = {
    emulators: _emulators,
    commands: _commands,
  };
  