"+(e.debug||e.stack||""),n.classList.add("hst__initial__loading__error-msg"),t.appendChild(n)}}}function g(){const e=document.querySelector("base")?document.querySelector("base").href:window.location.origin,o=window.backend&&window.backend.api?window.backend.api:e;return o.length-1===o.lastIndexOf("/")?o.slice(0,-1):o}function m(e){if(!assetsloaded){assetsloaded=!0;var o=jsFiles.split(",").filter(Boolean),t=cssFiles.split(",");window.MSInputMethodContext||document.documentMode||(o=o.filter((function(e){return e.indexOf("ie11")<0}))),a(0)}function n(){"function"==typeof window.loadMobileAssets&&"function"==typeof window.loadDesktopAssets&&e()}function i(e){return function(){a(e)}}function a(e){o[e]&&_loadAssets(document,"script",{defer:!0,src:window.cdnBaseUrl+o[e],onload:o[e+1]?i(e+1):n}),t[e]&&_loadAssets(document,"link",{href:window.cdnBaseUrl+t[e],type:"text/css",rel:"stylesheet"})}}function p(){window.isMobile()?window.loadMobileAssets():window.loadDesktopAssets()}isDingTalk?(window.initDingTalkParams.push(o),window.initDingTalkParams.push(w),m(p)):window.__doNotFetchUser?m(p):w(o),window.showBrokenNetwork=d}function getQueryParam(e,o,t){var n,i=o.indexOf(e);if(i<0||"="!==o.charAt(i+e.length))return void 0!==t?t:"";i+=e.length+1;var a=o.indexOf("&",i),s=o.indexOf("#",i);if((n=a<0&&s<0?o.length:a>0&&s>0?Math.min(a,s):Math.max(a,s))===i)return void 0!==t?t:"";var r=o.substring(i,n);return"undefined"===r?"":(r.indexOf("+")>=0&&(r=r.replace(/\+/g," ")),decodeURIComponent(r))}function getMeta(e){var o;return document.querySelectorAll('meta[name="'+e+'"]').forEach((function(e){e&&e.content&&(o=e.content)})),o}function setBackgroundColor(e){var o=getQueryParam("bg",window.location.href);o&&e&&(e.style.background=o)}function isCookieEnabled(){var e=navigator.cookieEnabled||!0;try{var o=(new Date).getTime(),t="hsTestCookie="+o+"; Expires="+new Date(o+1e3).toUTCString()+"; Path=/";document.cookie=t,e=-1!==document.cookie.indexOf("hsTestCookie")}catch(o){e=!1}return e}function requestAllowCookies(){"function"==typeof document.requestStorageAccess&&document.requestStorageAccess().then((function(){window.location.reload()}),(function(e){init(),console.log("requestStorageAccess failed",e)}))}function setAllowCookiesButton(){var e='
您的浏览器可能阻止了本站点的cookie存储,这会导致本站点无法正常运行
\n请点击下方按钮,允许浏览器存储cookie
\n ';switch(navigator.language){case"en-US":e='Your browser blocked the storage of cookies on this site, which will cause this site to not work properly
\nPlease click the button below to allow the browser to store cookies
\n ';break;case"zh-TW":e='您的瀏覽器可能阻止了本站點的cookie存儲,這會導致本站點無法正常運行
\n請點擊下方按鈕,允許瀏覽器存儲cookie
\n '}document.querySelector("#initialSpinner").innerHTML+=e,document.querySelector(".hst__initial__loading__allow-btn").addEventListener("click",requestAllowCookies)}function checkCookieAccess(){return isSafari?isShare||!window.isSecureContext||isCookieEnabled()||"function"!=typeof document.hasStorageAccess?init():void document.hasStorageAccess().then((function(e){e||isCookieEnabled()?init():setAllowCookiesButton()}),(function(e){setAllowCookiesButton()})):init()}window.addEventListener("DOMContentLoaded",checkCookieAccess)