<!doctype html>
<html lang="en">
  <head>
    <script type="module" crossorigin src="/login/assets/polyfills-92a670d7.js"></script>

    <meta charset="UTF-8" />
    <link rel="icon" href="/login/favicon.png" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>登录</title>
    <script src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    <script src="https://g.alicdn.com/dingding/h5-dingtalk-login/0.21.0/ddlogin.js"></script>
    <script src="https://lf-package-cn.feishucdn.com/obj/feishu-static/lark/passport/qrcode/LarkSSOSDKWebQRCode-1.0.3.js"></script>
    <style>
      .browser-compatibility {
        display: none;
        position: fixed;
        z-index: 9999;
        top: 0;
        left: 0;
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        padding: 40px;
        overflow-y: auto;
        background-color: #f8d7da;
        color: #721c24;
      }

      .browser-compatibility h2 {
        margin-top: 0;
        font-size: 24px;
        font-weight: bold;
      }

      .browser-compatibility p {
        margin-bottom: 20px;
        font-size: 18px;
        line-height: 1.5;
      }

      .browser-compatibility ul {
        margin-bottom: 20px;
        padding-left: 20px;
      }

      .browser-compatibility li {
        margin-bottom: 10px;
        font-size: 16px;
        line-height: 1.5;
      }

      .browser-compatibility a {
        color: #721c24;
        text-decoration: underline;
      }

      .browser-compatibility a:hover {
        text-decoration: none;
      }
    </style>
    <script type="module" crossorigin src="/login/assets/index-d5d6a983.js"></script>
    <link rel="stylesheet" href="/login/assets/index-70bf0e53.css">
    <script type="module">import.meta.url;import("_").catch(()=>1);async function* g(){};if(location.protocol!="file:"){window.__vite_is_modern_browser=true}</script>
    <script type="module">!function(){if(window.__vite_is_modern_browser)return;console.warn("vite: loading legacy chunks, syntax error above and the same error below should be ignored");var e=document.getElementById("vite-legacy-polyfill"),n=document.createElement("script");n.src=e.src,n.onload=function(){System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))},document.body.appendChild(n)}();</script>
  <script>document.onselectstart=function(){return false;};document.oncontextmenu=function(){return false;};document.oncopy=function(){return false;};document.oncut=function(){return false;};</script></head>
  <body>
    <div id="app"></div>
    <div id="browser-compatibility" class="browser-compatibility">
      <h2>浏览器兼容性提示</h2>
      <p>您当前使用的浏览器版本过旧,可能无法正常使用系统的某些功能。</p>
      <p>为了获得最佳的使用体验,我们建议您升级到以下浏览器的最新版本:</p>
      <ul>
        <li><a href="https://www.google.com/chrome/" target="_blank">Google Chrome</a></li>
        <li><a href="https://www.mozilla.org/firefox/" target="_blank">Mozilla Firefox</a></li>
        <li><a href="https://www.apple.com/safari/" target="_blank">Apple Safari</a></li>
        <li><a href="https://www.microsoft.com/edge/" target="_blank">Microsoft Edge</a></li>
      </ul>
    </div>
    
    <script>
      function getBrowserInfo(userAgent) {
        var browserData = [
          { name: 'Chrome', regex: /Chrome\/(\d+)/ },
          { name: 'Firefox', regex: /Firefox\/(\d+)/ },
          { name: 'Safari', regex: /Version\/(\d+).*Safari/ },
          { name: 'Edge', regex: /Edg\/(\d+)/ }
        ]

        for (var i = 0; i < browserData.length; i++) {
          var match = userAgent.match(browserData[i].regex)
          if (match) {
            return { name: browserData[i].name, version: parseFloat(match[1]) }
          }
        }
        return { name: 'Unknown', version: 0 }
      }

      function checkBrowserCompatibility(userAgent) {
        if (userAgent.indexOf('MSIE') !== -1 || userAgent.indexOf('Trident/') !== -1) {
          return false
        }

        var browserVersions = {
          Chrome: 51,
          Firefox: 54,
          Safari: 10,
          Edge: 15
        }

        var browserInfo = getBrowserInfo(userAgent)
        if (browserVersions[browserInfo.name]) {
          return browserInfo.version >= browserVersions[browserInfo.name]
        }
        return true
      }

      // 在页面加载完成后执行兼容性检测
      window.onload = function () {
        var userAgent = navigator.userAgent
        var isCompatible = checkBrowserCompatibility(userAgent)
        if (!isCompatible) {
          document.getElementById('browser-compatibility').style.display = 'block'
          document.getElementById('app').style.display = 'none'
        }
      }
    </script>
    <script nomodule>!function(){var e=document,t=e.createElement("script");if(!("noModule"in t)&&"onbeforeload"in t){var n=!1;e.addEventListener("beforeload",(function(e){if(e.target===t)n=!0;else if(!e.target.hasAttribute("nomodule")||!n)return;e.preventDefault()}),!0),t.type="module",t.src=".",e.head.appendChild(t),t.remove()}}();</script>
    <script nomodule crossorigin id="vite-legacy-polyfill" src="/login/assets/polyfills-legacy-6aa3788f.js"></script>
    <script nomodule crossorigin id="vite-legacy-entry" data-src="/login/assets/index-legacy-9de3c412.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
  </body>
</html>

