{"version":3,"file":"browser-detect.js","names":["check","name","passed","console","warn","window","WeakMap","Promise","globalThis","String","prototype","replaceAll","CSS","supports","has","err","unsupportedBrowser","match","navigator","userAgent","firefoxVersion","parseInt"],"sources":["scripts/browser-detect.js"],"sourcesContent":["/* eslint-disable no-var */ // `let` is not supported in very old browsers\n\n(function () {\n  function check(name, passed) {\n    if (!passed) {\n      // eslint-disable-next-line no-console\n      console.warn(name + \" is not supported\");\n    }\n    return passed;\n  }\n  if (\n    !check(\"weakMap\", window.WeakMap) ||\n    !check(\"promise\", window.Promise) ||\n    !check(\"globalThis\", typeof globalThis !== \"undefined\") ||\n    !check(\"replaceAll\", String.prototype.replaceAll) ||\n    !check(\"supports\", CSS.supports) ||\n    !check(\"aspectRatio\", CSS.supports(\"aspect-ratio: 1\")) ||\n    !check(\"relativeColor\", CSS.supports(\"(color: hsl(from white h s l))\")) ||\n    !check(\"subgrid\", CSS.supports(\"(grid-template-rows: subgrid)\"))\n  ) {\n    window.unsupportedBrowser = true;\n  } else {\n    // Some implementations of `WeakMap.prototype.has` do not accept false\n    // values and Ember's `isClassicDecorator` sometimes does that (it only\n    // checks for `null` and `undefined`).\n    try {\n      new WeakMap().has(0);\n      // eslint-disable-next-line no-unused-vars -- old browsers require binding this variable, even if unused\n    } catch (err) {\n      window.unsupportedBrowser = true;\n    }\n\n    var match = window.navigator.userAgent.match(/Firefox\\/([0-9]+)\\./);\n    var firefoxVersion = match ? parseInt(match[1], 10) : null;\n    if (firefoxVersion && firefoxVersion < 89) {\n      // prior to v89, Firefox has bugs with document.execCommand(\"insertText\")\n      // https://bugzil.la/1220696\n      window.unsupportedBrowser = true;\n    }\n  }\n})();\n"],"mappings":"CAEA,WACE,SAASA,EAAMC,EAAMC,GAKnB,OAJKA,GAEHC,QAAQC,KAAKH,EAAO,qBAEfC,CACT,CACA,GACGF,EAAM,UAAWK,OAAOC,UACxBN,EAAM,UAAWK,OAAOE,UACxBP,EAAM,aAAoC,oBAAfQ,aAC3BR,EAAM,aAAcS,OAAOC,UAAUC,aACrCX,EAAM,WAAYY,IAAIC,WACtBb,EAAM,cAAeY,IAAIC,SAAS,qBAClCb,EAAM,gBAAiBY,IAAIC,SAAS,oCACpCb,EAAM,UAAWY,IAAIC,SAAS,kCAG1B,CAIL,KACE,IAAIP,SAAUQ,IAAI,EAEpB,CAAE,MAAOC,GACPV,OAAOW,oBAAqB,CAC9B,CAEA,IAAIC,EAAQZ,OAAOa,UAAUC,UAAUF,MAAM,uBACzCG,EAAiBH,EAAQI,SAASJ,EAAM,GAAI,IAAM;AAClDG,GAAkBA,EAAiB,KAGrCf,OAAOW,oBAAqB,EAEhC,MAnBEX,OAAOW,oBAAqB,CAoB/B,EAtCD","ignoreList":[]}