cask "firefox" do
  version "153.0.3"

  language "ach" do
    sha256 "59de62a13fb6758ea567a2f55e52fc5e452cfea5d270d238ab37e2a9899408a9"
    "ach"
  end
  language "af" do
    sha256 "e500c956cdfb856780c0cdebf9183b87b91a436530313dbda6b4f26022ade6eb"
    "af"
  end
  language "an" do
    sha256 "f04eeab8a0ba072d542f4caa39c4272e220e387a1f864570eb5420b759891032"
    "an"
  end
  language "ar" do
    sha256 "edff7d9cecab82be70d3e7c70c342521a13fb84d0f59151a3dac86b772c12420"
    "ar"
  end
  language "ast" do
    sha256 "e6d9355b911626394033fc9b0edebf887131e7e037f86d2d9f5cd8d5d7749bbb"
    "ast"
  end
  language "az" do
    sha256 "40609de0b8dcd8d42c6430b68ecf1108580f29de8e881e6f44e732db65b9190e"
    "az"
  end
  language "be" do
    sha256 "89a5bd1fc74c4cc53da0f755d0cbbf8b16fa60186809c4a5a1a6b408945f2b6e"
    "be"
  end
  language "bg" do
    sha256 "219d291b6a30318c9c98b4ed39284643d2d436d9db854129ec039e8666bfe7fb"
    "bg"
  end
  language "bn" do
    sha256 "892f54d935e06414a352b39c248653277e53db7a2311f10488ad7313a4c7615f"
    "bn"
  end
  language "br" do
    sha256 "35d2c2fe9e9ff3a3eeef9cd19a153f4bcedfa9f3ffaa24e071ef70d3f54fd5e8"
    "br"
  end
  language "bs" do
    sha256 "7410f580d2e6fab08e0dd42090001b8a06df3928e2975a2f1de24389d68a2bbe"
    "bs"
  end
  language "ca" do
    sha256 "9fdd7130e32b44f7789c14b69937d6c4cb72efb6a9919ee6a13021ea9989339c"
    "ca"
  end
  language "cak" do
    sha256 "590f3b3559f0606d2d00c59500052fe18dd7dafdf35dea902f9f61278b380bdc"
    "cak"
  end
  language "cs" do
    sha256 "35663ea10acb39540745412c8afaa5e8612216691251c7778bba780a603e1753"
    "cs"
  end
  language "cy" do
    sha256 "8ff23e0cb29e510e71d467f9b3c9870518781d85a3efe889c1e6f5cd9eff6a7b"
    "cy"
  end
  language "da" do
    sha256 "60f261b08d73087af43f49eedaa72230d0167a2d853c00b20e0d568a77848020"
    "da"
  end
  language "de" do
    sha256 "91d8a5d33c23deafac2b9a1f75461da2aaae6c8eb216ba572e308bb0ca0b7c7d"
    "de"
  end
  language "dsb" do
    sha256 "8a1210047e03779c4cd95fa5cf8d33f1f3aaa226ec314ea1dace5ceb18661b93"
    "dsb"
  end
  language "el" do
    sha256 "7163e4d505a9625b99089d1956623c7c450c280d482c50a6b2e69da572c64ba3"
    "el"
  end
  language "en-CA" do
    sha256 "ac2401e98c1f34fe2f70dc6b77fd783af4fd94ef4c2fb17e627158a8d2589f3e"
    "en-CA"
  end
  language "en-GB" do
    sha256 "2f08cb6236071e2348890e1d20ce6d231d03b84f03d1cb3a425cd62a48788d7e"
    "en-GB"
  end
  language "en", default: true do
    sha256 "a0523b6f2f10f13c6071d8b53ed7678193d693febd8a5d4fd8d7417b3c661045"
    "en-US"
  end
  language "eo" do
    sha256 "5e171a6bcafdc9e905246e0035bf134e9fd0def3e63585af69d0384bc719e4ce"
    "eo"
  end
  language "es-AR" do
    sha256 "f53db721728f55285e7010ce99e950b226ebb179e7e4df7978656cab8224f796"
    "es-AR"
  end
  language "es-CL" do
    sha256 "7bc53583acd66129f68f8c2206da66cce331b497f05ef39db0cc576334348fec"
    "es-CL"
  end
  language "es-ES" do
    sha256 "49ef7698316af54199cadec39da8b3b289b5bdfae85f07f910ad35762afc7472"
    "es-ES"
  end
  language "es-MX" do
    sha256 "9765cde607bce2de8d9ea76eaf68b0658bab161843cd572ff4345ef4e41ce7b4"
    "es-MX"
  end
  language "et" do
    sha256 "767d4b73b8f80a98bab7ca7f022635457893985caf676633998e13f1fe6f3605"
    "et"
  end
  language "eu" do
    sha256 "443a608a647461b88b17d3c540b0058ea516cdf5902225978ddaf56bb7814ae8"
    "eu"
  end
  language "fa" do
    sha256 "70feadfbbdc6675e12ce7611143e25e3c304232b9ab42ced9ee3816c2453414f"
    "fa"
  end
  language "ff" do
    sha256 "187418b1000887b2eb9e7edf14d13165d5818e5dbdf42e2def74561b6d37e942"
    "ff"
  end
  language "fi" do
    sha256 "75e5ac16831732da80dd39ddfc5e9b22c6d555e4d97aa570a6b46e29c624114f"
    "fi"
  end
  language "fr" do
    sha256 "7ddc7a4f3c87c122d4cd358de0aabae034bc3ed6497c99eb4c9474065b54b9ed"
    "fr"
  end
  language "fur" do
    sha256 "9937f3ad556dc9442c83192c3b74a8d8dccdbfa33d2408b3bc26874ff5329b45"
    "fur"
  end
  language "fy" do
    sha256 "ad862ae6fdce67de7794f4ba8a3bf4891e01373f5716ae5014133dac9df7764e"
    "fy-NL"
  end
  language "ga" do
    sha256 "9fc1d37541f5969a8997353fec193318212f40efb1589e01391531ea40b99fa2"
    "ga-IE"
  end
  language "gd" do
    sha256 "083c502ce09fe65af3134f389e85eff43e4d45f0fc43bcafce14502156117d28"
    "gd"
  end
  language "gl" do
    sha256 "d57e30a8845ea8fa00b3bfb59cfc93bbd494bfdd3eac62a301f3e77863334616"
    "gl"
  end
  language "gn" do
    sha256 "e3eda1b3f3a4040a850f541b29b5a29773af5d391d86d0fad55c864eb32a27ab"
    "gn"
  end
  language "gu" do
    sha256 "b7ef8232e82c371922e1c27ca977d36490db7b5e7836f2747583bfdae6c75a97"
    "gu-IN"
  end
  language "he" do
    sha256 "ad35c3551192eee32ebc926163f32d998010c88986adc326e04581ca294ffc59"
    "he"
  end
  language "hi" do
    sha256 "01b03239c1a6f1461f393cc98e458315318083e06f97b00e45fdac1b718d07a7"
    "hi-IN"
  end
  language "hr" do
    sha256 "687ad354d95ac82c464286b7b14755f2304618977eeabcf28e7b439d53c46ede"
    "hr"
  end
  language "hsb" do
    sha256 "4d8ca11faf2605ea11926255e8cbecda8bf7d4a3e862c7b61afa7ae6ff9d54bf"
    "hsb"
  end
  language "hu" do
    sha256 "98619b86d0c3c4f5242e042a766f935d91bd00344b62e9b528af457cf7684ef2"
    "hu"
  end
  language "hy" do
    sha256 "db54ba17d205095123b63940f9c314c5c3fe96ba876c36099b3202fe47d724e7"
    "hy-AM"
  end
  language "ia" do
    sha256 "366e547160510a6b4a69a3bc7516b46232dc1cc0ab075872b9b85270fe82657d"
    "ia"
  end
  language "id" do
    sha256 "a709129337f55ffed9c3574e1dfba28a1be60939ca3a3a3d73353d4b3538be13"
    "id"
  end
  language "in" do
    sha256 "01b03239c1a6f1461f393cc98e458315318083e06f97b00e45fdac1b718d07a7"
    "hi-IN"
  end
  language "is" do
    sha256 "1a16dce5151cf4b0fefd6be577ea1fc33acee54ddce5232607c8c333430e6cca"
    "is"
  end
  language "it" do
    sha256 "9a1b8cb3019859ee70cb35a90cb7051ebfaf469e4d9766dc969a6cb1c183d15a"
    "it"
  end
  language "ja" do
    sha256 "d15ecd999150a90be9fb22bd225c6c37fa7ded65a76496be999625ec57a29018"
    "ja-JP-mac"
  end
  language "ka" do
    sha256 "1bf07d66d934227123d6694497f031c4214402b2ce2fdbeaf3450f7fb68da89a"
    "ka"
  end
  language "kab" do
    sha256 "5bcf41990aca039efc2d385f239492da138fbba836f7d73aecde8f9daada9d4b"
    "kab"
  end
  language "kk" do
    sha256 "e1c316d10ef81d51a8208f631bc57547efedc535b76cf39b4efb5438c67137b2"
    "kk"
  end
  language "km" do
    sha256 "602432d62bc74a7960dc9d35a955e2ca9123e9e20dac73b2f7226530b4a0b098"
    "km"
  end
  language "kn" do
    sha256 "dec19bb7cbb9c331b10a356ff4c85fcfd9502ac7ce81d54071ce460bead05cc8"
    "kn"
  end
  language "ko" do
    sha256 "7229ed7865e78b101e441c864e6d2a4b48c4f409601f7c2376030a9b0662cc1b"
    "ko"
  end
  language "lij" do
    sha256 "3181069f34da49332e5cdf25a43524f59e9f4ece9bef5b79aecafbee7539d1c3"
    "lij"
  end
  language "lt" do
    sha256 "4a58a939213ffd1376d073c092917c4faf2dd091a48c2c1c60fe37abed185ed9"
    "lt"
  end
  language "lv" do
    sha256 "d936a53bf4c94abc22b819ea5cfb4f45d6e572f44b77e3538b34ff28c5bd2601"
    "lv"
  end
  language "mk" do
    sha256 "c5ae1425f771af13843291548065887f31f51c61e32f59fe8912123294f26aca"
    "mk"
  end
  language "mr" do
    sha256 "ae4fb19cbd4981ad7c8556b0b990967d88c58e23b99347811b9a8ef516ff5095"
    "mr"
  end
  language "ms" do
    sha256 "f8214134f0ea0b9f741dfef906f24123c9bf1637c244fa52cf7b0064b2021409"
    "ms"
  end
  language "my" do
    sha256 "d5304a7bb8e6757e268722a14324cb55a82640d3c57ba2760a9b23594484de19"
    "my"
  end
  language "nb" do
    sha256 "a18c235cca376acc19086e68041abc9d9794aa414541d07bda653bbac2101205"
    "nb-NO"
  end
  language "ne" do
    sha256 "9b443226f9c2dcc417d50e77585dd7ae51fbb037d94b17a58345c44c3ededbd0"
    "ne-NP"
  end
  language "nl" do
    sha256 "382831d9f3af712436384c946af95d7001ce98f9f3a3972bbf51c98a4643b837"
    "nl"
  end
  language "nn" do
    sha256 "b6bf39944cee88a7b9b274be5eb798ca571a46514afeba6c04dd40a004ec0fac"
    "nn-NO"
  end
  language "oc" do
    sha256 "7e5d2aabb378b69f649f1e23c07a1f2edaf5cae4145eac409be512eee399671c"
    "oc"
  end
  language "pa-IN" do
    sha256 "f08a9ae7185a2d981040927b952e96f0138bcf77ef75fea487882e26d16fe0e0"
    "pa-IN"
  end
  language "pl" do
    sha256 "b8d8ef3564647ad8373f9aa4ca0d9be6d9e25f28bc4abd06ce9284123605dd59"
    "pl"
  end
  language "pt-BR" do
    sha256 "bfb8ee31e5db98078f3f2924798998d08dcff9259fe425efd5c408de87e91566"
    "pt-BR"
  end
  language "pt" do
    sha256 "d56a965abfb387df4919a7c7cc3407474d9d389760c8f6f0eb6b0dbe5287178a"
    "pt-PT"
  end
  language "rm" do
    sha256 "488c68b9d8b5a3ce3eb0fe5c6a52c51231ba05ec6e3dd6e59de7fc40dc972b55"
    "rm"
  end
  language "ro" do
    sha256 "7e8d337071febdf4e36947fe3c88dd91295dbef2cf694cd9210cfd6afc4fd35f"
    "ro"
  end
  language "ru" do
    sha256 "dcdb0fa1962f99401df6b14dca3bfa6f213f1db066dcd5fa6c3c0b6a5df9470d"
    "ru"
  end
  language "sat" do
    sha256 "d1e55e49450215312f63f571b2b93b4352eccdd13f39d270e8e279eea4d3c068"
    "sat"
  end
  language "sc" do
    sha256 "2dba4fe3641f2dd3648394d3ca5228a2f5e55f34b7babc80ac13bab9da40d70d"
    "sc"
  end
  language "sco" do
    sha256 "bbb1c526ebc7e5695690d5411088c7a9df7b54f1033afde50137b847b10caccc"
    "sco"
  end
  language "si" do
    sha256 "edd9a336bf5842925a5a89dd6152f998744e0e218e4d141c5aa9de179d8c3fab"
    "si"
  end
  language "sk" do
    sha256 "4754218612454aea0fe184e919efdabe1ba3a801c87bb2cbab85bab3654f0efb"
    "sk"
  end
  language "skr" do
    sha256 "fb8cb07112e9189e17f50c26eed36084d87914f547a3578abe22846b4b7ed567"
    "skr"
  end
  language "sl" do
    sha256 "c867df3f5c6f04641bf5fd52541b501f5e0bbb8072a3dc7a52736a012b3a908d"
    "sl"
  end
  language "son" do
    sha256 "9bc81ae6c402a91860b4c0995df95be4a86e3bd222e79c1dda9e7799d89495af"
    "son"
  end
  language "sq" do
    sha256 "edcabf82371ffa40abd42ec972bb519f66f3a2f868f0598b068c6b1d3bf88260"
    "sq"
  end
  language "sr" do
    sha256 "94241ffa350696827b988aac36a37cee6a8dfa4688aed9ca24cd8fa3118ad01a"
    "sr"
  end
  language "sv" do
    sha256 "4bfe26e82d00bf97a29a62b6654932e4eecc06d4496d651554853bc4d765e269"
    "sv-SE"
  end
  language "szl" do
    sha256 "724cd834b6b2ed0d1b4ec01307df8e26ee3827649064d105a4c7c9b2e3a9eec1"
    "szl"
  end
  language "ta" do
    sha256 "8cb5e4dbe78b9a964ca84dbb3ad389676db74182bf058824bd46e589a5d7d1ef"
    "ta"
  end
  language "te" do
    sha256 "fb4e5378086c406fcfb8d9d0a1729d88798b9a119d2fff96e5ab83bdb4cfe735"
    "te"
  end
  language "tg" do
    sha256 "c8e6e59fadf8782c16346622c4f09876047b5ff6d1e899e6230e4360dbd7dc60"
    "tg"
  end
  language "th" do
    sha256 "7f7cd9d285885bd4d6c95720188a7cd39b61032d57d49bb3fc239547756350c2"
    "th"
  end
  language "tl" do
    sha256 "fefa906fa0cd7f54a295627863165cab1c21fed5f660b394ce87790579b269de"
    "tl"
  end
  language "tr" do
    sha256 "89f4ff2e6d3a4e96af30473001ec89c6bdc0375c5c7df88980a04ddb22781206"
    "tr"
  end
  language "trs" do
    sha256 "ceb86e690c79ee992513e75dc0996b3ecb06a6c0832744cbb9d47dd3c1ba7085"
    "trs"
  end
  language "uk" do
    sha256 "4abc647f268af4e901b6e0cfe3631637584779fa2bb35d65f2f7f63ba44ef882"
    "uk"
  end
  language "ur" do
    sha256 "dc84eb5e9b09c3dad3c382d08033954e99a6614bcc0f9a5cb232308361414fb1"
    "ur"
  end
  language "uz" do
    sha256 "739a3fc0f65acc978a852f53f654abd9524ea4734f9ffa97a236bb17746c6270"
    "uz"
  end
  language "vi" do
    sha256 "dee56a7d71582abaf3ab5db18f402bf24f827a491d74b90e2d2293eeb3e5ca53"
    "vi"
  end
  language "xh" do
    sha256 "cf14a0267002b7adcd648e6f73f7243cecd0b64986c592e8c4ff979753709555"
    "xh"
  end
  language "zh-TW" do
    sha256 "551483d7ec5df75d4dc3299fafd12f94ef337967d0929a323b8771a733c5d7d8"
    "zh-TW"
  end
  language "zh" do
    sha256 "9b4c455525c29d3307d0c2801723e6dae21c7a6555d2021e671d78c74fcf96c3"
    "zh-CN"
  end

  url "https://download-installer.cdn.mozilla.net/pub/firefox/releases/#{version}/mac/#{language}/Firefox%20#{version}.dmg",
      verified: "download-installer.cdn.mozilla.net/pub/firefox/releases/"
  name "Mozilla Firefox"
  desc "Web browser"
  homepage "https://www.mozilla.org/firefox/"

  livecheck do
    url "https://product-details.mozilla.org/1.0/firefox_versions.json"
    strategy :json do |json|
      json["LATEST_FIREFOX_VERSION"]
    end
  end

  auto_updates true
  conflicts_with cask: [
    "firefox@beta",
    "firefox@cn",
    "firefox@esr",
  ]
  depends_on :macos

  app "Firefox.app"
  command_wrapper "firefox",
                  executable: "#{appdir}/Firefox.app/Contents/MacOS/firefox"

  uninstall quit: "org.mozilla.firefox"

  zap trash: [
        "/Library/Logs/DiagnosticReports/firefox_*",
        "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.mozilla.firefox.sfl*",
        "~/Library/Application Support/CrashReporter/firefox_*",
        "~/Library/Application Support/Firefox",
        "~/Library/Caches/Firefox",
        "~/Library/Caches/Mozilla/updates/Applications/Firefox",
        "~/Library/Caches/org.mozilla.crashreporter",
        "~/Library/Caches/org.mozilla.firefox",
        "~/Library/Preferences/org.mozilla.crashreporter.plist",
        "~/Library/Preferences/org.mozilla.firefox.plist",
        "~/Library/Saved Application State/org.mozilla.firefox.savedState",
        "~/Library/WebKit/org.mozilla.firefox",
      ],
      rmdir: [
        "~/Library/Application Support/Mozilla", #  May also contain non-Firefox data
        "~/Library/Caches/Mozilla",
        "~/Library/Caches/Mozilla/updates",
        "~/Library/Caches/Mozilla/updates/Applications",
      ]
end
