https://t.me/VPSTG(()=>{var f=Object.defineProperty;var b=(o,t,e)=>t in o?f(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e;var r=(o,t,e)=>(b(o,typeof t!="symbol"?t+"":t,e),e);var a={analytics:null,archive:{dateformat:"01-02",paginate:20},baseURL:"https://www.bestcheapvps.org",brand:"VPSMarket",breadcrumb:!0,codeblock:{linenos:!1},color:"light",contact:null,counttaxonomyposts:!0,creativecommons:null,customcss:null,customjs:null,dateformat:":date_long",description:"VPSMarket-VPS\u8D85\u5E02-\u4E91\u670D\u52A1\u5668-\u4E3B\u673A\u535A\u5BA2",diagram:!1,featuredpostcount:5,fixedheader:!0,fontsize:null,fullwidth:!1,googleadsense:null,keywords:"VPS, VPSMarket, \u4E3B\u673A, \u4E91\u670D\u52A1",logo:"https://image.bestcheapvps.org/images/logo.webp",mainsections:["posts"],metarobots:"index, follow",palette:"blue",palettes:["blue","blue gray","brown","cyan","green","indigo","orange","pink","purple","red","teal","yellow"],pinnedpost:!0,pinnedpostcount:3,post:{featuredimage:!0,numberifyheadings:!0,numberifyheadingsseparator:"."},postdate:!0,poweredby:!0,pwa:{manifest:{short_name:"VSPMarket"}},readingtime:!0,recentpostcount:5,relatedpostcount:5,search:{fuse:{threshold:.1},paginate:5},searchbar:!0,seo:{noindexthintagthreshold:1},sidebar:null,sidebartaxonomies:["series","categories","tags","authors"],siteverification:{baidu:null,baiduunion:null,bing:null,google:null,shenma:null,so:null,sogou:null},taxonomypaginate:10,taxonomypostcount:20,titlecase:!0,titleseparator:"-",tocwordcount:1,topappbar:null,viewer:!0};var l=class{constructor(t){this.baseURL=t;r(this,"prefix","hbs:");t.substring(0,2)==="//"&&(t="http:"+t);let e;try{e=new URL(t)}catch(n){e=new URL(t,location.protocol+"//"+location.host)}let s=e.pathname.replace(/^(\/+)/,"").replace(/(\/+)$/,"");s!==""&&(this.prefix+=s.replace("/","-")+":")}getItem(t){return localStorage.getItem(this.prefix+t)}setItem(t,e){localStorage.setItem(this.prefix+t,e)}removeItem(t){localStorage.removeItem(this.prefix+t)}},i=new l(a.baseURL);var c="auto",v="dark",y="light",k=[c,v,y],d=class o{constructor(){r(this,"key","mode");r(this,"mode");r(this,"items");let t=i.getItem(this.key);t||(t=a.color),this.mode=k.includes(t)?t:c}run(){this.setMode(this.mode),window.addEventListener("load",()=>{this.initListeners(),this.active(this.mode)})}initListeners(){this.items=document.querySelectorAll(".mode-item"),this.items.forEach(t=>{t.addEventListener("click",()=>{let e=t.getAttribute("data-color-mode");this.setMode(e),this.active(e)})}),window.matchMedia("(prefers-color-scheme: dark)").addListener(t=>{this.isAuto()&&this.setMode(t.matches?"dark":"light")})}isAuto(){return this.mode===c}active(t){var s,n;this.mode=t,i.setItem(this.key,t),this.items.forEach(u=>{let p=u.querySelector(".dropdown-item").classList;u.getAttribute("data-color-mode")===t?p.add("active"):p.remove("active")});let e=(s=document.querySelector('.mode-item[data-color-mode="'+t+'"] .mode-icon'))==null?void 0:s.cloneNode(!0);e&&(e.setAttribute("id","modeIcon"),(n=document.querySelector("#modeIcon"))==null||n.replaceWith(e))}setMode(t){t==="auto"&&(t=o.getPreferredMode()),console.debug(`Switch to ${t} mode`),document.documentElement.setAttribute("data-bs-theme",t);let e=new CustomEvent("hbs:mode",{detail:{mode:t}});document.dispatchEvent(e)}static getPreferredMode(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}},h=d;var m=class{constructor(){r(this,"key","palette")}run(){let t=this.getPalette();t&&this.setPalette(t),window.addEventListener("load",()=>{this.initPalette()})}initPalette(){let t=this.getPalette();document.querySelectorAll(".palette").forEach(e=>{let s=e.getAttribute("id").replace("palette-","");s===t&&e.classList.add("active"),e.addEventListener("click",()=>{this.setPalette(s),document.querySelector(".palette.active").classList.remove("active"),e.classList.add("active")})})}getPalette(){let t=i.getItem(this.key);if(t)return t;let e=document.documentElement.getAttribute("data-palette");return e||""}setPalette(t){console.debug(`switch to palette: ${t}`),document.documentElement.setAttribute("data-palette",t),i.setItem(this.key,t)}},g=m;new h().run();new g().run();})();