{"version":3,"names":["d","document","documentElement","v","localStorage","getItem","e","classList","add","mm","window","matchMedia","saveData","navigator","connection","matches","weakHW","deviceMemory","hardwareConcurrency","setAttribute"],"sources":["theme-2-inline-common-head_tag.js"],"sourcesContent":["\n  // Isuzu \"Lite mode\" pre-paint bootstrap. Runs synchronously during <head>\n  // parse — BEFORE first paint and before the Ember/Glimmer app boots — so a\n  // low-end machine never sees a frame of the heavy glass theme (no FOUC) and the\n  // class is present when the first stylesheet applies. The runtime toggle\n  // (isuzu-perf-mode.gjs) reads/writes the same localStorage key.\n  //\n  // Tri-state localStorage 'isuzu_perf_mode':\n  //   \"1\"  -> user (or a prior auto-detect) turned Lite ON\n  //   \"0\"  -> user explicitly turned Lite OFF (must always win; never re-enable)\n  //   null -> no choice yet: silently auto-enable on genuinely weak devices only\n  (function () {\n    try {\n      var d = document.documentElement;\n      var v = null;\n      try {\n        v = localStorage.getItem(\"isuzu_perf_mode\");\n      } catch (e) {}\n\n      if (v === \"1\") {\n        d.classList.add(\"isuzu-perf\");\n        return;\n      }\n      if (v === \"0\") {\n        return; // explicit opt-out — leave full glass\n      }\n\n      // No choice yet: conservative auto-detect (silent). Kept deliberately\n      // narrow to avoid flattening the theme for capable machines:\n      //  - Save-Data / reduced-data: an explicit \"give me less\" signal.\n      //  - low memory AND few cores (AND, not OR): 4 cores OR 4GB alone flags\n      //    huge numbers of perfectly capable laptops; require both.\n      var mm = window.matchMedia;\n      var saveData =\n        (navigator.connection && navigator.connection.saveData === true) ||\n        (mm && mm(\"(prefers-reduced-data: reduce)\").matches);\n      var weakHW =\n        typeof navigator.deviceMemory === \"number\" &&\n        navigator.deviceMemory <= 4 &&\n        typeof navigator.hardwareConcurrency === \"number\" &&\n        navigator.hardwareConcurrency <= 4;\n\n      if (saveData || weakHW) {\n        d.classList.add(\"isuzu-perf\");\n        d.setAttribute(\"data-isuzu-perf-auto\", \"1\"); // marks an auto (not chosen) session\n      }\n    } catch (e) {\n      // Never let this break head parsing.\n    }\n  })();\n"],"mappings":"AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,YAAY;EACX,IAAI;IACF,IAAIA,CAAC,GAAGC,QAAQ,CAACC,eAAe;IAChC,IAAIC,CAAC,GAAG,IAAI;IACZ,IAAI;MACFA,CAAC,GAAGC,YAAY,CAACC,OAAO,CAAC,iBAAiB,CAAC;IAC7C,CAAC,CAAC,OAAOC,CAAC,EAAE,CAAC;IAEb,IAAIH,CAAC,KAAK,GAAG,EAAE;MACbH,CAAC,CAACO,SAAS,CAACC,GAAG,CAAC,YAAY,CAAC;MAC7B;IACF;IACA,IAAIL,CAAC,KAAK,GAAG,EAAE;MACb,OAAO,CAAC;IACV;;IAEA;IACA;IACA;IACA;IACA;IACA,IAAIM,EAAE,GAAGC,MAAM,CAACC,UAAU;IAC1B,IAAIC,QAAQ,GACTC,SAAS,CAACC,UAAU,IAAID,SAAS,CAACC,UAAU,CAACF,QAAQ,KAAK,IAAI,IAC9DH,EAAE,IAAIA,EAAE,CAAC,gCAAgC,CAAC,CAACM,OAAQ;IACtD,IAAIC,MAAM,GACR,OAAOH,SAAS,CAACI,YAAY,KAAK,QAAQ,IAC1CJ,SAAS,CAACI,YAAY,IAAI,CAAC,IAC3B,OAAOJ,SAAS,CAACK,mBAAmB,KAAK,QAAQ,IACjDL,SAAS,CAACK,mBAAmB,IAAI,CAAC;IAEpC,IAAIN,QAAQ,IAAII,MAAM,EAAE;MACtBhB,CAAC,CAACO,SAAS,CAACC,GAAG,CAAC,YAAY,CAAC;MAC7BR,CAAC,CAACmB,YAAY,CAAC,sBAAsB,EAAE,GAAG,CAAC,CAAC,CAAC;IAC/C;EACF,CAAC,CAAC,OAAOb,CAAC,EAAE;IACV;EAAA;AAEJ,CAAC,EAAE,CAAC","ignoreList":[]}