Server : Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.6
System : Windows NT USER-PC 6.1 build 7601 (Windows 7 Professional Edition Service Pack 1) AMD64
User : User ( 0)
PHP Version : 7.4.6
Disable Function : NONE
Directory :  C:/Program Files/Avast Software/Avast/gui_resources/1.0.663/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : C:/Program Files/Avast Software/Avast/gui_resources/1.0.663/core.js
//{"name":"core","version":"1.2.583","created":"2021-09-06T10:48:49.197Z"}
import{moduleManager as e,windowApi as t,napiTracker as n,debugMode as i,eventer as o,serviceRequest as r}from"./napi.js";import{productModel as a,abTests as l,passwordService as s,settingsService as c,setupService as u}from"./napiExtensions.js";import d,{nls as p}from"./i18n.js";import{fileLogging as f,nitroObjectSetup as m,tabNavigation as g}from"./plugins.js";import{extendRactive as h}from"./ractiveAdapter.js";import{objectFromEntriesPolyfill as b,promiseAllSettledPolyfill as y,svelte3Adapter as v,stringUtils as w,deepExtend as $}from"./libs.js";function x(){}function S(e){return e()}function _(){return Object.create(null)}function E(e){e.forEach(S)}function T(e){return"function"==typeof e}function C(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function M(e,t,n,i){if(e){const o=R(e,t,n,i);return e[0](o)}}function R(e,t,n,i){return e[1]&&i?function(e,t){for(const n in t)e[n]=t[n];return e}(n.ctx.slice(),e[1](i(t))):n.ctx}function k(e,t,n,i,o,r,a){const l=function(e,t,n,i){if(e[2]&&i){const o=e[2](i(n));if(void 0===t.dirty)return o;if("object"==typeof o){const e=[],n=Math.max(t.dirty.length,o.length);for(let i=0;i<n;i+=1)e[i]=t.dirty[i]|o[i];return e}return t.dirty|o}return t.dirty}(t,i,o,r);if(l){const o=R(t,n,i,a);e.p(o,l)}}function P(e,t){e.appendChild(t)}function N(e,t,n){e.insertBefore(t,n||null)}function L(e){e.parentNode.removeChild(e)}function A(e){return document.createElement(e)}function j(e){return document.createTextNode(e)}function z(){return j(" ")}function D(e,t,n,i){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n,i)}function I(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function O(e,t,n){t in e?e[t]=n:I(e,t,n)}let F;function U(e){F=e}function B(){if(!F)throw new Error("Function called outside component initialization");return F}function H(e){B().$$.on_mount.push(e)}const V=[],W=[],q=[],G=[],J=Promise.resolve();let Z=!1;function K(e){q.push(e)}let Q=!1;const X=new Set;function Y(){if(!Q){Q=!0;do{for(let e=0;e<V.length;e+=1){const t=V[e];U(t),ee(t.$$)}for(U(null),V.length=0;W.length;)W.pop()();for(let e=0;e<q.length;e+=1){const t=q[e];X.has(t)||(X.add(t),t())}q.length=0}while(V.length);for(;G.length;)G.pop()();Z=!1,Q=!1,X.clear()}}function ee(e){if(null!==e.fragment){e.update(),E(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(K)}}const te=new Set;let ne;function ie(e,t){e&&e.i&&(te.delete(e),e.i(t))}function oe(e,t,n,i){if(e&&e.o){if(te.has(e))return;te.add(e),ne.c.push((()=>{te.delete(e),i&&(n&&e.d(1),i())})),e.o(t)}}const re="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function ae(e,t,n,i){const{fragment:o,on_mount:r,on_destroy:a,after_update:l}=e.$$;o&&o.m(t,n),i||K((()=>{const t=r.map(S).filter(T);a?a.push(...t):E(t),e.$$.on_mount=[]})),l.forEach(K)}function le(e,t){const n=e.$$;null!==n.fragment&&(E(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function se(e,t){-1===e.$$.dirty[0]&&(V.push(e),Z||(Z=!0,J.then(Y)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function ce(e,t,n,i,o,r,a=[-1]){const l=F;U(e);const s=e.$$={fragment:null,ctx:null,props:r,update:x,not_equal:o,bound:_(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:[]),callbacks:_(),dirty:a,skip_bound:!1};let c=!1;if(s.ctx=n?n(e,t.props||{},((t,n,...i)=>{const r=i.length?i[0]:n;return s.ctx&&o(s.ctx[t],s.ctx[t]=r)&&(!s.skip_bound&&s.bound[t]&&s.bound[t](r),c&&se(e,t)),n})):[],s.update(),c=!0,E(s.before_update),s.fragment=!!i&&i(s.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);s.fragment&&s.fragment.l(e),e.forEach(L)}else s.fragment&&s.fragment.c();t.intro&&ie(e.$$.fragment),ae(e,t.target,t.anchor,t.customElement),Y()}U(l)}class ue{$destroy(){le(this,1),this.$destroy=x}$on(e,t){const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{const e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const{document:de}=re;function pe(e){let t;return{c(){t=A("kin-loading"),O(t,"fullscreen","true")},m(e,n){N(e,t,n)},p:x,d(e){e&&L(t)}}}function fe(e){let t,n;function i(e,t){return e[4]?he:ge}let o=i(e),r=o(e);return{c(){t=A("div"),n=A("div"),r.c(),I(n,"class","pre__center"),I(t,"class","pre svelte-1agmfxf")},m(e,i){N(e,t,i),P(t,n),r.m(n,null)},p(e,t){o===(o=i(e))&&r?r.p(e,t):(r.d(1),r=o(e),r&&(r.c(),r.m(n,null)))},d(e){e&&L(t),r.d()}}}function me(e){let t,n,i,o,r,a,l,s,c,u,d,p,f,m;return{c(){t=A("div"),n=A("div"),i=A("h1"),i.textContent="Sorry, we’ve crashed",o=z(),r=A("p"),r.textContent="Please restart your computer to re-enable your protection.",a=z(),l=A("p"),l.textContent="If that doesn’t help, try to repair your installation.",s=z(),c=A("br"),u=A("br"),d=z(),p=A("kin-button"),p.textContent="Exit",I(i,"class","h1"),O(p,"type","secondary"),I(n,"class","pre__center"),I(t,"class","pre svelte-1agmfxf")},m(g,h){N(g,t,h),P(t,n),P(n,i),P(n,o),P(n,r),P(n,a),P(n,l),P(n,s),P(n,c),P(n,u),P(n,d),P(n,p),f||(m=D(p,"click",e[10]),f=!0)},p:x,d(e){e&&L(t),f=!1,m()}}}function ge(e){let t,n,i,o,r,a,l,s,c,u,d,p,f,m,g,h;function b(e,t){return e[5]===e[6].REPAIRING?ye:e[5]===e[6].ERROR?be:void 0}let y=b(e),v=y&&y(e);return{c(){t=A("h1"),t.textContent="Hmm... Let's try a restart instead",n=z(),i=A("p"),i.textContent="Sorry, that refresh didn't work, but you're still protected.",o=z(),r=A("p"),a=j("Try restarting your computer, or "),l=A("button"),l.textContent="repair your installation",s=j("."),c=z(),v&&v.c(),u=z(),d=A("br"),p=A("br"),f=z(),m=A("kin-button"),m.textContent="Exit",I(t,"class","h1"),I(l,"class","a"),O(m,"type","secondary")},m(b,y){N(b,t,y),N(b,n,y),N(b,i,y),N(b,o,y),N(b,r,y),P(r,a),P(r,l),P(r,s),N(b,c,y),v&&v.m(b,y),N(b,u,y),N(b,d,y),N(b,p,y),N(b,f,y),N(b,m,y),g||(h=[D(l,"click",e[7]),D(m,"click",e[12])],g=!0)},p(e,t){y!==(y=b(e))&&(v&&v.d(1),v=y&&y(e),v&&(v.c(),v.m(u.parentNode,u)))},d(e){e&&L(t),e&&L(n),e&&L(i),e&&L(o),e&&L(r),e&&L(c),v&&v.d(e),e&&L(u),e&&L(d),e&&L(p),e&&L(f),e&&L(m),g=!1,E(h)}}}function he(e){let t,n,i,o,r,a,l,s,c,u,d,p;return{c(){t=A("h1"),t.textContent="Sorry, our screen didn't load",n=z(),i=A("p"),i.textContent="But don’t worry, we’re still protecting you.",o=z(),r=A("p"),r.textContent="A quick refresh should fix the problem.",a=z(),l=A("br"),s=A("br"),c=z(),u=A("kin-button"),u.textContent="Refresh this screen",I(t,"class","h1"),O(u,"type","secondary")},m(f,m){N(f,t,m),N(f,n,m),N(f,i,m),N(f,o,m),N(f,r,m),N(f,a,m),N(f,l,m),N(f,s,m),N(f,c,m),N(f,u,m),d||(p=D(u,"click",e[11]),d=!0)},p:x,d(e){e&&L(t),e&&L(n),e&&L(i),e&&L(o),e&&L(r),e&&L(a),e&&L(l),e&&L(s),e&&L(c),e&&L(u),d=!1,p()}}}function be(e){let t;return{c(){t=A("p"),t.innerHTML="<strong>Repair failed</strong>"},m(e,n){N(e,t,n)},d(e){e&&L(t)}}}function ye(e){let t;return{c(){t=A("p"),t.innerHTML="<strong>Repairing...</strong>"},m(e,n){N(e,t,n)},d(e){e&&L(t)}}}function ve(e){let t;function n(e,t){return e[2]?me:e[1]?fe:e[0]?pe:void 0}let i=n(e),o=i&&i(e);return{c(){t=A("div"),o&&o.c(),I(t,"id","app")},m(n,i){N(n,t,i),o&&o.m(t,null),e[13](t)},p(e,[r]){i===(i=n(e))&&o?o.p(e,r):(o&&o.d(1),o=i&&i(e),o&&(o.c(),o.m(t,null)))},i:x,o:x,d(n){n&&L(t),o&&o.d(),e[13](null)}}}function we(p,w,$){b(),y();let{moduleMap:x={}}=w,{plugins:S=[]}=w;const _={ui:new RegExp("^#"),settings:new RegExp("^#Settings"),protection_settings:new RegExp("^#Settings/Shields"),scan:new RegExp("^#Scans"),scan_settings:new RegExp("^#Settings/Scans|^#Scans/customScans/({.*}|new)/settings"),update:new RegExp("^#Settings/update"),chest:new RegExp("^#(Settings/)?VirusChest"),firewall:new RegExp("^#(Settings/)?Firewall")},E=Promise.all([e.init({moduleMap:x}),a.init()]),T=t.getUrlParams(),C=T.view,M=C&&"default"!==C?" ["+C+"]":"",R={NONE:"",REPAIRING:"repairing",ERROR:"error"};document.querySelector("head title").textContent+=M;let k,P=!0,N=!1,L=!1,A=!0,j=R.NONE;function z(){const i=T.module||"mainLayout";return"mainLayout"!==i&&n.view(i+"_"+C),e.importModule(i,C).then((e=>{if(e.prototype.teardown)!function(e){v(e,{el:k,data:{params:T,standalone:!0},onready(){function e(){t.resize(this.get("windowWidth"),this.get("windowHeight"))}this._super(),this.observe("windowHeight",(function(){setTimeout(e.bind(this),0)}),{init:!1}),this.observe("windowWidth",(function(){setTimeout(e.bind(this),0)}),{init:!1}),t.init({width:this.get("windowWidth"),height:this.get("windowHeight")})}})}(e);else{const n=["ui.opm.slider.open","ui.opm.modal.open"];v(e,{target:k}).handlesWindowInit||n.includes(T.eventName)||t.init(),$(0,P=!1)}}))}function D(){if(T.eventName){let e;try{e=JSON.parse(T.eventArgs)}catch{e=T.eventArgs}setTimeout((()=>{o.emitEvent(T.eventName,e)}),0)}}function I(){const e=()=>{localStorage.setItem("dwmLang",null)},t=()=>{let e=a.getUserConfig().language;if(e===localStorage.getItem("dwmLang"))return;localStorage.setItem("dwmLang",e);const t=e.split("-");t.length>1&&(e=t[0]+"-"+t[1].toUpperCase()),r("app.dwm.DoRequest",{endpoint:"/v1/command/update-settings",payload:{language:e}}).catch((e=>{console.error("DWM - failed to set language",e)}))};c.getValue("avdef://config/GuiCache/EnableDarkWeb").then((n=>{"1"===n&&(t(),o.on("app.lif.account.logged_in",(()=>{e(),t()})),o.on("app.lif.account.logged_out",(()=>{e(),c.set("avcfg://settings/common/DWMEmailsEntered",0)})))})).catch((e=>{}))}H((function(){E.then((()=>(document.body.classList.add(a.getProduct()||"undefined"),void document.body.classList.add("status-"+a.getStatus())))).then((()=>Promise.all([f(),m(),g(),...Object.values(S).map((e=>e()))]))).then((()=>l.getTests().then((e=>Object.values(e).reduce(((e,t)=>t?(e.length>0&&!e.endsWith(";")&&(e+=";"),e+=t):e),""))).then((e=>d.init(a.getUserConfig().language,e))))).then((()=>h())).then((()=>s.init({protectedHashDefs:_}))).then(z).then(D).then(I).then((()=>localStorage.removeItem("loadErrorTryAgain"))).catch((e=>{console.error("Initializing core failed",e),$(2,L=a.serviceUnavailable()),$(1,N=!0),localStorage.getItem("loadErrorTryAgain")&&$(4,A=!1),localStorage.setItem("loadErrorTryAgain","1"),n.view(`UILoadFailed.avStatus:${a.getStatus()}.firstTime${A}`),"toaster"===T.windowType?!i.isEnabled()&&t.close():t.init()}))}));return p.$$set=e=>{"moduleMap"in e&&$(8,x=e.moduleMap),"plugins"in e&&$(9,S=e.plugins)},[P,N,L,k,A,j,R,function(){$(5,j=R.REPAIRING),u.repair().catch((e=>{console.error("Repair Setup failed:",e),$(5,j=R.ERROR)}))},x,S,()=>t.close(),()=>t.reload(),()=>t.close(),function(e){W[e?"unshift":"push"]((()=>{k=e,$(3,k)}))}]}class $e extends ue{constructor(e){var t;super(),de.getElementById("svelte-1agmfxf-style")||((t=A("style")).id="svelte-1agmfxf-style",t.textContent=".pre.svelte-1agmfxf{font-family:'Nitro Font', 'Proxina Nova', 'Open Sans', Helvetica, 'Helvetica Neue', Corbel, Calibri, Arial, sans-serif;font-size:15px;position:absolute;width:100%;height:100%;top:0;right:0;bottom:0;left:0;background:#242a36;background:var(--app-bg);background-attachment:fixed;color:#fff;text-align:center;display:flex;flex-flow:column;align-items:center;justify-content:center}.pre.svelte-1agmfxf:before{content:'';position:absolute;top:0;right:0;bottom:0;left:0;background-image:var(--app-bg-pseudo);background-attachment:fixed;opacity:0.5;pointer-events:none !important}",P(de.head,t)),ce(this,e,we,ve,C,{moduleMap:8,plugins:9})}}var xe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Se=/^\s+|\s+$/g,_e=/^[-+]0x[0-9a-f]+$/i,Ee=/^0b[01]+$/i,Te=/^0o[0-7]+$/i,Ce=parseInt,Me="object"==typeof xe&&xe&&xe.Object===Object&&xe,Re="object"==typeof self&&self&&self.Object===Object&&self,ke=Me||Re||Function("return this")(),Pe=Object.prototype.toString,Ne=Math.max,Le=Math.min,Ae=function(){return ke.Date.now()};function je(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function ze(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Pe.call(e)}(e))return NaN;if(je(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=je(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Se,"");var n=Ee.test(e);return n||Te.test(e)?Ce(e.slice(2),n?2:8):_e.test(e)?NaN:+e}var De=function(e,t,n){var i,o,r,a,l,s,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=i,r=o;return i=o=void 0,c=t,a=e.apply(r,n)}function m(e){return c=e,l=setTimeout(h,t),u?f(e):a}function g(e){var n=e-s;return void 0===s||n>=t||n<0||d&&e-c>=r}function h(){var e=Ae();if(g(e))return b(e);l=setTimeout(h,function(e){var n=t-(e-s);return d?Le(n,r-(e-c)):n}(e))}function b(e){return l=void 0,p&&i?f(e):(i=o=void 0,a)}function y(){var e=Ae(),n=g(e);if(i=arguments,o=this,s=e,n){if(void 0===l)return m(s);if(d)return l=setTimeout(h,t),f(s)}return void 0===l&&(l=setTimeout(h,t)),a}return t=ze(t)||0,je(n)&&(u=!!n.leading,r=(d="maxWait"in n)?Ne(ze(n.maxWait)||0,t):r,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==l&&clearTimeout(l),c=0,i=s=o=l=void 0},y.flush=function(){return void 0===l?a:b(Ae())},y};const Ie=e=>({}),Oe=e=>({}),Fe=e=>({}),Ue=e=>({});function Be(e){let t;return{c(){t=A("span"),t.textContent="BETA",I(t,"class","nui_logo__beta")},m(e,n){N(e,t,n)},d(e){e&&L(t)}}}function He(e){let t,n,i,o;return{c(){t=A("button"),n=A("kin-icon"),O(n,"name","minimize"),O(n,"size","16"),I(t,"class","nui_controls__item -minimize -win nui_caption_client"),I(t,"title",e[6]),I(t,"data-test","titlebar_minimize")},m(r,a){N(r,t,a),P(t,n),i||(o=D(t,"click",e[9]),i=!0)},p(e,n){64&n&&I(t,"title",e[6])},d(e){e&&L(t),i=!1,o()}}}function Ve(e){let t,n,i;return{c(){t=A("button"),I(t,"class","nui_controls__item -close -win nui_caption_client"),I(t,"title",e[7]),I(t,"data-test","titlebar_close")},m(o,r){N(o,t,r),n||(i=D(t,"click",e[8]),n=!0)},p(e,n){128&n&&I(t,"title",e[7])},d(e){e&&L(t),n=!1,i()}}}function We(e){let t,n,i,o,r,a,l,s,c,u,d,p,f,m,g,h,b=e[3]&&Be();const y=e[13]["titlebar-logo"],v=M(y,e,e[12],Ue),w=e[13]["titlebar-controls"],$=M(w,e,e[12],Oe);let S=e[4]&&He(e),_=e[5]&&Ve(e);return{c(){t=A("header"),n=A("h1"),i=A("span"),r=z(),a=A("span"),l=j(e[1]),s=z(),b&&b.c(),c=z(),v&&v.c(),u=z(),d=A("div"),$&&$.c(),p=z(),S&&S.c(),f=z(),_&&_.c(),I(i,"class",o="logo -white -ameba "+(e[2]?"-brand-label":"")+" -"+e[0]),I(i,"title",e[2]),I(a,"class","nui_logo__label"),I(n,"class","nui_logo"),I(d,"class","nui_controls"),I(t,"id","nui_titlebar"),I(t,"class","nui_titlebar nui_caption")},m(o,y){var w;N(o,t,y),P(t,n),P(n,i),P(n,r),P(n,a),P(a,l),P(a,s),b&&b.m(a,null),P(n,c),v&&v.m(n,null),P(t,u),P(t,d),$&&$.m(d,null),P(d,p),S&&S.m(d,null),P(d,f),_&&_.m(d,null),m=!0,g||(w=e[10].call(null,t),h=w&&T(w.destroy)?w.destroy:x,g=!0)},p(e,[t]){(!m||5&t&&o!==(o="logo -white -ameba "+(e[2]?"-brand-label":"")+" -"+e[0]))&&I(i,"class",o),(!m||4&t)&&I(i,"title",e[2]),(!m||2&t)&&function(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}(l,e[1]),e[3]?b||(b=Be(),b.c(),b.m(a,null)):b&&(b.d(1),b=null),v&&v.p&&4096&t&&k(v,y,e,e[12],t,Fe,Ue),$&&$.p&&4096&t&&k($,w,e,e[12],t,Ie,Oe),e[4]?S?S.p(e,t):(S=He(e),S.c(),S.m(d,f)):S&&(S.d(1),S=null),e[5]?_?_.p(e,t):(_=Ve(e),_.c(),_.m(d,null)):_&&(_.d(1),_=null)},i(e){m||(ie(v,e),ie($,e),m=!0)},o(e){oe(v,e),oe($,e),m=!1},d(e){e&&L(t),b&&b.d(),v&&v.d(e),$&&$.d(e),S&&S.d(),_&&_.d(),g=!1,h()}}}function qe(e,n,i){let{$$slots:r={},$$scope:a}=n,{product:l}=n,{title:s}=n,{logoLabel:c=null}=n,{isBeta:u=!1}=n,{minimizeEnabled:d=!0}=n,{closeEnabled:f=!0}=n,{minimizeTitle:m=p("global.minimize")+" "+s}=n,{closeTitle:g=p("global.close")+" "+s}=n,{elem:h=null}=n;const b=new MutationObserver(De((()=>t.setCaption()),100)),y=[];let v=!1;var w;function $(){!v&&h&&(b.observe(h,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),v=!0)}function x(){v&&(b.disconnect(),v=!1)}return H((()=>{y.push(o.on("titlebar.setCaption.enable",(()=>$())),o.on("titlebar.setCaption.disable",(()=>x())))})),w=()=>{y.forEach((e=>e()))},B().$$.on_destroy.push(w),e.$$set=e=>{"product"in e&&i(0,l=e.product),"title"in e&&i(1,s=e.title),"logoLabel"in e&&i(2,c=e.logoLabel),"isBeta"in e&&i(3,u=e.isBeta),"minimizeEnabled"in e&&i(4,d=e.minimizeEnabled),"closeEnabled"in e&&i(5,f=e.closeEnabled),"minimizeTitle"in e&&i(6,m=e.minimizeTitle),"closeTitle"in e&&i(7,g=e.closeTitle),"elem"in e&&i(11,h=e.elem),"$$scope"in e&&i(12,a=e.$$scope)},[l,s,c,u,d,f,m,g,function(){t.close()},function(){t.minimize()},function(e){return i(11,h=e),$(),{destroy:()=>x()}},h,a,r]}class Ge extends ue{constructor(e){super(),ce(this,e,qe,We,C,{product:0,title:1,logoLabel:2,isBeta:3,minimizeEnabled:4,closeEnabled:5,minimizeTitle:6,closeTitle:7,elem:11})}}function Je(e){let t,n,i;function o(t){e[8](t)}let r={title:e[5],product:e[4],minimizeEnabled:e[2],closeEnabled:e[3]};return void 0!==e[0]&&(r.elem=e[0]),t=new Ge({props:r}),W.push((()=>function(e,t,n){const i=e.$$.props[t];void 0!==i&&(e.$$.bound[i]=n,n(e.$$.ctx[i]))}(t,"elem",o))),{c(){var e;(e=t.$$.fragment)&&e.c()},m(e,n){ae(t,e,n),i=!0},p(e,i){const o={};var r;4&i&&(o.minimizeEnabled=e[2]),8&i&&(o.closeEnabled=e[3]),!n&&1&i&&(n=!0,o.elem=e[0],r=()=>n=!1,G.push(r)),t.$set(o)},i(e){i||(ie(t.$$.fragment,e),i=!0)},o(e){oe(t.$$.fragment,e),i=!1},d(e){le(t,e)}}}function Ze(e){let t,n,i=e[1]&&Je(e);return{c(){i&&i.c(),t=j("")},m(e,o){i&&i.m(e,o),N(e,t,o),n=!0},p(e,[n]){e[1]?i?(i.p(e,n),2&n&&ie(i,1)):(i=Je(e),i.c(),ie(i,1),i.m(t.parentNode,t)):i&&(ne={r:0,c:[],p:ne},oe(i,1,1,(()=>{i=null})),ne.r||E(ne.c),ne=ne.p)},i(e){n||(ie(i),n=!0)},o(e){oe(i),n=!1},d(e){i&&i.d(e),e&&L(t)}}}function Ke(n,i,o){let r,l,{moduleMap:s={}}=i;b();const u=t.getUrlParams();let p=u.controls||"close";u.controls||c.getValue("avdef://config/common/IPM_ShowMinimize").then((e=>{1==e&&o(7,p="minimize,close")}));const f=u.product||a.getBrand(),m=u.title&&w.stripHtml(u.title)||f.charAt(0).toUpperCase()+f.slice(1);let g,h=!1;return Promise.all([e.init({moduleMap:s}),a.init()]).then((()=>{d.init(a.getUserConfig().language).then((()=>o(1,h=!0)))})),t.setTitle(m+" (Titlebar)"),n.$$set=e=>{"moduleMap"in e&&o(6,s=e.moduleMap)},n.$$.update=()=>{128&n.$$.dirty&&o(2,r=p.includes("minimize")),128&n.$$.dirty&&o(3,l=p.includes("close")),3&n.$$.dirty&&h&&g&&t.init()},[g,h,r,l,f,m,s,p,function(e){g=e,o(0,g)}]}class Qe extends ue{constructor(e){super(),ce(this,e,Ke,Ze,C,{moduleMap:6})}}const Xe={MainLayout:"mainLayout",PasswordProtection:"passwordProtection",Feedback:"FeedbackForm",PerformanceGaming:"DoNotDisturb",PrivacyDataShredder:"DataShredder",CleanupPp:"Tuneup",PerformanceCleanup:"Tuneup",SecurityFirewall:"Firewall",SecuritySecureDNS:"SecureDNS",SecurityAntispam:"Antispam",system:"System"},Ye=$({},Xe,{SecuritySandbox:"Sandbox",PerformanceBcu:"BrowserCleanup",PrivacyAntiTrack:"AntiTrack",SecurityRescueDisk:"RescueDisk",PrivacySecureLine:"SecureLine",SecuritySoftware:"Software",PerformanceDriverUpdater:"DriverUpdater",PrivacyPasswords:"pam"});$({},Xe,{PerformanceBcu:"BrowserCleanup",Scans:{hashRedirect:e=>"Scans"===e?"SecurityAntivirus":null}}),$({},Xe,{PerformanceBcu:"BrowserCleanup",PrivacySecureLine:"SecureLine.detailVPN","SecureLine.detailprivacy":"SecureLine.detailVPN",SecuritySoftware:"Software",Firewall:{hashRedirect:e=>"Firewall"===e?"Firewall.detailFirewall":null},Scans:{hashRedirect:e=>"Scans"===e||/^Scans\/scanHistory$/i.test(e)?"Scans.detailScans":null},DriverUpdater:{hashRedirect:e=>{if("DriverUpdater"===e)return"DriverUpdater.detailDriverUpdater"}},VirusChest:{hashRedirect:e=>{if("VirusChest"===e)return"VirusChest.detailVirusChest"}}});const et={setTheme(){let t;t||(t=c.getValue("avcfg://settings/Common/UITheme").catch((()=>!1)));const n=c.getValue("avdef://config/GuiCache/ThemeTweaks").catch((()=>""));return Promise.allSettled([t,n]).then((([t,n])=>{const i=t.value;let o=n.value;if(o){o=o.replace(/;/g,";\n");const e=document.createElement("style");e.setAttribute("type","text/css");const t=document.createTextNode(`:root {\n${o}\n}`);e.appendChild(t),document.head&&document.head.appendChild(e)}if(!i)return;const r=e.getModuleDefs();r["MainCss_"+i]&&document.querySelector("#MainCss").setAttribute("href","/MainCss_"+i+".css"),r["MainFont_"+i]&&document.querySelector("#MainFont").setAttribute("href","/MainFont_"+i+".css"),r["MainSprite_"+i]&&document.querySelector("#MainSprite").setAttribute("href","/MainSprite_"+i+".css"),document.querySelector("body").classList.add("-is-"+i+"-style")}))}};class tt extends Qe{constructor(e){e.props=e.props||{},e.props.moduleMap=Ye,super(e)}}export default class extends $e{constructor(e){e.props=e.props||{},e.props.moduleMap=Ye,e.props.plugins=et,super(e)}}export{tt as Titlebar};const nt={name:"core",version:"1.2.583",created:"2021-09-06T10:48:49.197Z"};export{nt as metadata};