This commit is contained in:
tuend-work
2025-11-12 23:10:39 +07:00
parent bd58de709f
commit 2e16431888
953 changed files with 57002 additions and 0 deletions

View File

@@ -0,0 +1 @@
!function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[o]={i:o,l:!1,exports:{}};return e[o].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,o){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(o,n,function(t){return e[t]}.bind(null,n));return o},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t){const r=localStorage&&Number(localStorage.loadFailures)||0,o=e=>{const[t,r={},n=[]]=e,i=Object.assign(document.createElement(t),r);return n.forEach(e=>i.appendChild(o(e))),i};class n{constructor(e,t){if(!t)return;this.timeout=e,this.preloader=t,this.preloader.innerHTML="",localStorage&&localStorage.setItem&&localStorage.setItem("loadFailures",r+1);const n=o(["img",{className:"error",src:"/assets/img/preloader-error.svg"}]);this.preloader.appendChild(n);const i=o(["div",{className:"errorNotification"},[["h1",{innerText:"Oops... something went wrong!"}],r<2?["h2",{},[["span",{innerText:"Page will be refreshed in "}],["span",{id:"refresh-timeout",innerText:this.timeout}],["span",{innerText:" seconds"}]]]:["div",{},[["h3",{innerText:"Problems loading the skin appeared for 3rd time in a row. Please contact tech support for troubleshooting."}],["h3",{},[["span",{innerText:"If the problem does not resolve after refresh, you may "}],["a",{innerText:"reset the skin",href:"/CMD_SKINS?reset=yes&skin=enhanced"}],["span",{innerText:" to "}],["strong",{innerText:"enhanced"}],["span",{innerText:"."}]]]]]]]);this.preloader.appendChild(i),r<2&&setTimeout(this.sheduleUpdate.bind(this),4e3)}updateTimeout(){const e=this.timeout-1;e?(this.setTimeout(e),this.sheduleUpdate()):window.location.reload()}sheduleUpdate(){setTimeout(this.updateTimeout.bind(this),1e3)}setTimeout(e){const t=document.querySelector("#refresh-timeout");t&&(t.innerText=e),this.timeout=e}}window.preloader=new class{constructor(){this.$el=o(["div",{id:"preloader",style:"opacity:0;"},[["img",{className:"loading",src:"/assets/img/preloader.svg"}]]]),this.mount()}mount(){if(document.body.appendChild(this.$el),document.body.classList.add("-preloader-active"),this.errorTimeout=setTimeout(this.showError.bind(this),12e4),"enabled"===localStorage.getItem("evolution:dark-mode"))document.body.classList.add("-preloader-dark-mode");else if("auto"===localStorage.getItem("evolution:dark-mode")&&window.matchMedia){const{matches:e}=window.matchMedia("(prefers-color-scheme: dark)");e&&document.body.classList.add("-preloader-dark-mode")}}unmount(){document.body.classList.remove("-preloader-active"),document.body.classList.remove("-preloader-dark-mode"),localStorage&&localStorage.removeItem&&localStorage.removeItem("loadFailures"),clearTimeout(this.errorTimeout),setTimeout(()=>{this.$el.remove()},1e3)}showError(){this.error=new n(10,this.$el),this.$el.classList.add("-errorState")}}}]);