{"version":3,"names":["root","document","documentElement","redirecting","test","location","search","classList","add","addEventListener","body","contains","getElementById","querySelector","replace","encodeURIComponent","pathname","remove"],"sources":["theme-23-inline-common-head_tag-2.js"],"sourcesContent":["\n  // A 404 loaded directly is rendered by the server without the forum app\n  // (logo only, light). Reopen the app at the home page with the missing path\n  // so it shows Discourse's in-app 404 inside the full forum shell, in the\n  // member's theme. Crawlers and no-JS visitors keep the plain 404 response.\n  (function () {\n    var root = document.documentElement;\n    var redirecting = /[?&]forum_not_found=/.test(location.search);\n    if (redirecting) {\n      root.classList.add(\"forum-not-found-redirect\");\n      return;\n    }\n    root.classList.add(\"forum-server-page\");\n    document.addEventListener(\"DOMContentLoaded\", function () {\n      if (\n        document.body.classList.contains(\"no-ember\") &&\n        document.getElementById(\"discourse-error\") &&\n        document.querySelector(\".page-not-found\")\n      ) {\n        location.replace(\n          \"/?forum_not_found=\" +\n            encodeURIComponent(location.pathname + location.search)\n        );\n      } else {\n        root.classList.remove(\"forum-server-page\");\n      }\n    });\n  })();\n"],"mappings":"AACE;AACA;AACA;AACA;AACA,CAAC,YAAY;EACX,IAAIA,IAAI,GAAGC,QAAQ,CAACC,eAAe;EACnC,IAAIC,WAAW,GAAG,sBAAsB,CAACC,IAAI,CAACC,QAAQ,CAACC,MAAM,CAAC;EAC9D,IAAIH,WAAW,EAAE;IACfH,IAAI,CAACO,SAAS,CAACC,GAAG,CAAC,0BAA0B,CAAC;IAC9C;EACF;EACAR,IAAI,CAACO,SAAS,CAACC,GAAG,CAAC,mBAAmB,CAAC;EACvCP,QAAQ,CAACQ,gBAAgB,CAAC,kBAAkB,EAAE,YAAY;IACxD,IACER,QAAQ,CAACS,IAAI,CAACH,SAAS,CAACI,QAAQ,CAAC,UAAU,CAAC,IAC5CV,QAAQ,CAACW,cAAc,CAAC,iBAAiB,CAAC,IAC1CX,QAAQ,CAACY,aAAa,CAAC,iBAAiB,CAAC,EACzC;MACAR,QAAQ,CAACS,OAAO,CACd,oBAAoB,GAClBC,kBAAkB,CAACV,QAAQ,CAACW,QAAQ,GAAGX,QAAQ,CAACC,MAAM,CAC1D,CAAC;IACH,CAAC,MAAM;MACLN,IAAI,CAACO,SAAS,CAACU,MAAM,CAAC,mBAAmB,CAAC;IAC5C;EACF,CAAC,CAAC;AACJ,CAAC,EAAE,CAAC","ignoreList":[]}