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/default_av/ |
//{"name":"SecurityNetwork","version":"1.2.716","created":"2021-03-10T09:56:45.707Z"} import{serviceRequest as e,eventer as t,onlineChecker as n,napiTracker as s,windowApi as i,EventEmitter as o}from"./napi.js";import{logger as c,trapTabNavigation as r,TabableToggler as a,TabTrapper as l,Router as d}from"./libs.js";import u,{nls as p,moment as m,nlsRaw as h}from"./i18n.js";import{productModel as v,settingsService as g,ipmService as f,abTests as _}from"./napiExtensions.js";import k from"./ractive.js";import{objectFromEntriesPolyfill as w}from"./plugins.js";import{svelteComponents as y}from"./Settings.js";function b(){}const I=e=>e;function $(e){return e()}function x(){return Object.create(null)}function N(e){e.forEach($)}function E(e){return"function"==typeof e}function C(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function S(e,...t){if(null==e)return b;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function M(e){let t;return S(e,(e=>t=e))(),t}function T(e,t,n){e.$$.on_destroy.push(S(t,n))}function A(e,t,n,s){if(e){const i=D(e,t,n,s);return e[0](i)}}function D(e,t,n,s){return e[1]&&s?function(e,t){for(const n in t)e[n]=t[n];return e}(n.ctx.slice(),e[1](s(t))):n.ctx}function O(e,t,n,s,i,o,c){const r=function(e,t,n,s){if(e[2]&&s){const i=e[2](s(n));if(void 0===t.dirty)return i;if("object"==typeof i){const e=[],n=Math.max(t.dirty.length,i.length);for(let s=0;s<n;s+=1)e[s]=t.dirty[s]|i[s];return e}return t.dirty|i}return t.dirty}(t,s,i,o);if(r){const i=D(t,n,s,c);e.p(i,r)}}function L(e){return e&&E(e.destroy)?e.destroy:b}const R="undefined"!=typeof window;let j=R?()=>window.performance.now():()=>Date.now(),P=R?e=>requestAnimationFrame(e):b;const H=new Set;function z(e){H.forEach((t=>{t.c(e)||(H.delete(t),t.f())})),0!==H.size&&P(z)}function U(e){let t;return 0===H.size&&P(z),{promise:new Promise((n=>{H.add(t={c:e,f:n})})),abort(){H.delete(t)}}}function W(e,t){e.appendChild(t)}function G(e,t,n){e.insertBefore(t,n||null)}function B(e){e.parentNode.removeChild(e)}function F(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function Y(e){return document.createElement(e)}function V(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function q(e){return document.createTextNode(e)}function K(){return q(" ")}function Q(){return q("")}function J(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function Z(e){return function(t){return t.preventDefault(),e.call(this,t)}}function X(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function ee(e,t,n){t in e?e[t]=n:X(e,t,n)}function te(e,t){t=""+t,e.wholeText!==t&&(e.data=t)}function ne(e,t,n,s){e.style.setProperty(t,n,s?"important":"")}function se(e,t,n){e.classList[n?"add":"remove"](t)}function ie(e,t){const n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!1,!1,t),n}class oe{constructor(e=null){this.a=e,this.e=this.n=null}m(e,t,n=null){this.e||(this.e=Y(t.nodeName),this.t=t,this.h(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)G(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(B)}}const ce=new Set;let re,ae=0;function le(e,t,n,s,i,o,c,r=0){const a=16.666/s;let l="{\n";for(let g=0;g<=1;g+=a){const e=t+(n-t)*o(g);l+=100*g+`%{${c(e,1-e)}}\n`}const d=l+`100% {${c(n,1-n)}}\n}`,u=`__svelte_${function(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(d)}_${r}`,p=e.ownerDocument;ce.add(p);const m=p.__svelte_stylesheet||(p.__svelte_stylesheet=p.head.appendChild(Y("style")).sheet),h=p.__svelte_rules||(p.__svelte_rules={});h[u]||(h[u]=!0,m.insertRule(`@keyframes ${u} ${d}`,m.cssRules.length));const v=e.style.animation||"";return e.style.animation=`${v?`${v}, `:""}${u} ${s}ms linear ${i}ms 1 both`,ae+=1,u}function de(e,t){const n=(e.style.animation||"").split(", "),s=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),i=n.length-s.length;i&&(e.style.animation=s.join(", "),ae-=i,ae||P((()=>{ae||(ce.forEach((e=>{const t=e.__svelte_stylesheet;let n=t.cssRules.length;for(;n--;)t.deleteRule(n);e.__svelte_rules={}})),ce.clear())})))}function ue(e){re=e}function pe(){if(!re)throw new Error("Function called outside component initialization");return re}function me(e){pe().$$.on_mount.push(e)}function he(e){pe().$$.on_destroy.push(e)}function ve(){const e=pe();return(t,n)=>{const s=e.$$.callbacks[t];if(s){const i=ie(t,n);s.slice().forEach((t=>{t.call(e,i)}))}}}const ge=[],fe=[],_e=[],ke=[],we=Promise.resolve();let ye=!1;function be(e){_e.push(e)}let Ie=!1;const $e=new Set;function xe(){if(!Ie){Ie=!0;do{for(let e=0;e<ge.length;e+=1){const t=ge[e];ue(t),Ne(t.$$)}for(ue(null),ge.length=0;fe.length;)fe.pop()();for(let e=0;e<_e.length;e+=1){const t=_e[e];$e.has(t)||($e.add(t),t())}_e.length=0}while(ge.length);for(;ke.length;)ke.pop()();ye=!1,Ie=!1,$e.clear()}}function Ne(e){if(null!==e.fragment){e.update(),N(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(be)}}let Ee;function Ce(){return Ee||(Ee=Promise.resolve(),Ee.then((()=>{Ee=null}))),Ee}function Se(e,t,n){e.dispatchEvent(ie(`${t?"intro":"outro"}${n}`))}const Me=new Set;let Te;function Ae(){Te={r:0,c:[],p:Te}}function De(){Te.r||N(Te.c),Te=Te.p}function Oe(e,t){e&&e.i&&(Me.delete(e),e.i(t))}function Le(e,t,n,s){if(e&&e.o){if(Me.has(e))return;Me.add(e),Te.c.push((()=>{Me.delete(e),s&&(n&&e.d(1),s())})),e.o(t)}}const Re={duration:0};const je="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function Pe(e){e&&e.c()}function He(e,t,n){const{fragment:s,on_mount:i,on_destroy:o,after_update:c}=e.$$;s&&s.m(t,n),be((()=>{const t=i.map($).filter(E);o?o.push(...t):N(t),e.$$.on_mount=[]})),c.forEach(be)}function ze(e,t){const n=e.$$;null!==n.fragment&&(N(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Ue(e,t){-1===e.$$.dirty[0]&&(ge.push(e),ye||(ye=!0,we.then(xe)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function We(e,t,n,s,i,o,c=[-1]){const r=re;ue(e);const a=t.props||{},l=e.$$={fragment:null,ctx:null,props:o,update:b,not_equal:i,bound:x(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(r?r.$$.context:[]),callbacks:x(),dirty:c,skip_bound:!1};let d=!1;if(l.ctx=n?n(e,a,((t,n,...s)=>{const o=s.length?s[0]:n;return l.ctx&&i(l.ctx[t],l.ctx[t]=o)&&(!l.skip_bound&&l.bound[t]&&l.bound[t](o),d&&Ue(e,t)),n})):[],l.update(),d=!0,N(l.before_update),l.fragment=!!s&&s(l.ctx),t.target){if(t.hydrate){const e=function(e){return Array.from(e.childNodes)}(t.target);l.fragment&&l.fragment.l(e),e.forEach(B)}else l.fragment&&l.fragment.c();t.intro&&Oe(e.$$.fragment),He(e,t.target,t.anchor),xe()}ue(r)}class Ge{$destroy(){ze(this,1),this.$destroy=b}$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 Be=[];function Fe(e,t){return{subscribe:Ye(e,t).subscribe}}function Ye(e,t=b){let n;const s=[];function i(t){if(C(e,t)&&(e=t,n)){const t=!Be.length;for(let n=0;n<s.length;n+=1){const t=s[n];t[1](),Be.push(t,e)}if(t){for(let e=0;e<Be.length;e+=2)Be[e][0](Be[e+1]);Be.length=0}}}return{set:i,update:function(t){i(t(e))},subscribe:function(o,c=b){const r=[o,c];return s.push(r),1===s.length&&(n=t(i)||b),o(e),()=>{const e=s.indexOf(r);-1!==e&&s.splice(e,1),0===s.length&&(n(),n=null)}}}}function Ve(e,t,n){const s=!Array.isArray(e),i=s?[e]:e,o=t.length<2;return Fe(n,(e=>{let n=!1;const c=[];let r=0,a=b;const l=()=>{if(r)return;a();const n=t(s?c[0]:c,e);o?e(n):a=E(n)?n:b},d=i.map(((e,t)=>S(e,(e=>{c[t]=e,r&=~(1<<t),n&&l()}),(()=>{r|=1<<t}))));return n=!0,l(),function(){N(d),a()}}))}const qe="#Settings/SecurityNetwork",Ke=100,Qe={avast:{id:201,api:"public.AvastSecureLine"},avg:{id:202,api:"public.AVGSecureVPN"}}[v.getBrand()];const Je=new class{getMyNetwork(){return e("app.anen.get_status",1).then((e=>Array.isArray(e)&&e[0]?e[0]:null))}getNetworks(){return e("app.anen.get_status",0).then((e=>Array.isArray(e)?e:null))}getNetworkType(t){return e("app.anen.storage.app.value.get",{network_id:t,app_id:"hns_general",key:"network_type"}).catch((()=>"unknown"))}getHnsInit(){return e("asw.hns.init",{protocol_version:6}).then((e=>{const t={protocol:e.protocol_version,networkInfo:{name:e.network_name?e.network_name:"",signal:e.wifi_quality,encryption:e.wifi_encryption,auth:e.wifi_auth,scanType:e.scan_type}};return e.scan_id&&e.scan&&(t.scanning={scanId:e.scan_id,category:e.scan.category,startType:e.scan.start_type,type:e.scan.type}),t}))}getLastScan(){return e("asw.hns.devices",{name:"CURRENT_SCAN",type:"full"}).then((e=>!(!e||"no_data"===e.status||!e.protocol_version)&&e))}stopScan(){return e("asw.hns.cancel")}isScanRunning(){return e("asw.hns.progress_r").then((e=>Boolean(e.scan_id)))}startScan(t){return e("asw.hns.start",{scan_type:t}).then((e=>!(!e||"ok"!==e.status)||Promise.reject()))}openVpn(){return e("app."+v.getProductId()+".lis.open.ui",{id:"svpn"})}isSecurelineRunning(){return e(Qe.api+".GetState",{}).then((e=>e&&"connected"===e.vpnStatus)).catch((()=>!1))}isSecurelineInstalled(){return e("app."+v.getProductId()+".lis.get.install",{ids:["svpn"]}).then((e=>e&&e.products&&e.products.svpn&&e.products.svpn.installed)).catch((()=>!1))}isVpnDisabled(){return e("app.settings.Get","avdef://config/GuiCache/VpnDisabled").then((e=>Boolean(e))).catch((()=>!1))}isOtherVpnInstalled(){return e("app.settings.Get","avcfg://settings/Common/VpnIdList").then((e=>((e=e||"").split(","),e.some((function(e){return e!=Qe.id}))))).catch((()=>!1))}updateDevice(t){return e("asw.hns.command",t)}},Ze=Fe(void 0,(function(e){Je.getMyNetwork().then((t=>e(t))).catch((()=>e(null)));const n=t.on("app.anen.network.changed",(()=>Je.getMyNetwork().then((t=>e(t))).catch((()=>e(null)))));return function(){n()}})),Xe=Ve(Ze,((e,t)=>{void 0!==e&&t(e&&e.network_id?e.network_id:null)})),et=Ve(Ze,((e,t)=>{if(void 0===e)return;let n=0;e&&e.connectivity&&(e.connectivity.ipv4&&(n=e.connectivity.ipv4),e.connectivity.ipv6&&e.connectivity.ipv6>n&&(n=e.connectivity.ipv6)),t(n)})),tt=Ve(Xe,((e,n)=>{if(void 0===e)return;function s(){Je.getHnsInit().then((e=>n(e))).catch((()=>n(null)))}s();const i=t.on("asw.hns.progress",(e=>{e&&100===e.progress&&s()}));return function(){i()}}),void 0);let nt=0;const st=Ve(tt,((e,t)=>{var n;void 0!==e&&(nt++,e&&e.networkInfo.scanType?t(!0):(n=nt,Je.getLastScan().then((e=>{n===nt&&t(Boolean(e))})).catch((()=>{n===nt&&t(null)}))))}),void 0),it=Ye(void 0,(e=>{Je.isScanRunning().then((t=>e(t?"running":""))).catch((()=>e(null)));const n=t.on("asw.hns.progress",(e=>{it.update((t=>"stopping"!==t?e.progress>=0&&e.progress<100?"running":"":t))}));return function(){it.stopper&&clearTimeout(it.stopper),n()}}));it.stopping=function(){it.stopper&&clearTimeout(it.stopper),it.set("stopping"),it.stopper=setTimeout((function(){it.set("")}),5e3)};const ot=Fe(void 0,(e=>{function n(){Je.isSecurelineRunning().then((t=>e(t)))}n();const s=t.on(Qe.api+".OnStateChanged",(e=>{e&&e.data&&e.data.vpnStatus&&n()}));return function(){s()}})),ct=Fe(void 0,(e=>{function n(){Je.isSecurelineInstalled().then((t=>e(t)))}n();const s=t.on("app."+v.getProductId()+".lis.install.event",(e=>{e&&"finish"===e.step&&n()}));return function(){s()}})),rt=Fe(void 0,(e=>{Je.isOtherVpnInstalled().then((t=>e(t)))})),at=Fe(void 0,(e=>{function n(){e(v.isLicensed("secureDNS"))}n();const s=t.on("app.setup.ProgramUpdateFinished",(()=>{n()}));return function(){s()}})),lt=Fe(void 0,(e=>{Je.isVpnDisabled().then((t=>e(t)))}));const dt={UNKNOWN:{icon:"icon-m-devices-unknown",group:"OTHER"},ROUTER:{icon:"icon-m-devices-router",group:"IT"},PC:{icon:"icon-m-desktop",group:"IT",protocol:5},GENERIC_COMPUTER:{icon:"icon-m-desktop",group:"IT",protocol:6},MOBILE_PHONE:{icon:"icon-m-devices-mobile",group:"MOBILE"},TABLET:{icon:"icon-m-devices-tablet",group:"MOBILE"},TV:{icon:"icon-m-devices-tv",group:"ENTERTAINMENT"},NAS:{icon:"icon-m-devices-storage",group:"IT"},PRINTER:{icon:"icon-m-devices-printer",group:"IT"},APPLIANCE:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},IP_PHONE:{icon:"icon-m-devices-mobile",group:"IT"},NETWORK_NODE:{icon:"icon-m-devices-router",group:"IT"},GAME_CONSOLE:{icon:"icon-m-devices-videogame",group:"ENTERTAINMENT"},GAME_HANDHELD:{icon:"icon-m-devices-videogame",group:"ENTERTAINMENT"},MEDIA_BOX:{icon:"icon-m-devices-generic-iot",group:"ENTERTAINMENT"},MEDIA_DISPLAY:{icon:"icon-m-devices-tv",group:"ENTERTAINMENT"},LIGHTING:{icon:"icon-m-devices-home-automation",group:"HOUSEHOLD"},ENTRY_CONTROL:{icon:"icon-m-devices-home-automation",group:"HOUSEHOLD"},HVAC_CONTROL:{icon:"icon-m-devices-home-automation",group:"HOUSEHOLD"},POWER_CONTROL:{icon:"icon-m-devices-home-automation",group:"HOUSEHOLD"},INDUSTRIAL:{icon:"icon-m-devices-generic-iot",group:"OTHER"},MEDICAL:{icon:"icon-m-devices-generic-iot",group:"OTHER"},WEARABLE:{icon:"icon-m-devices-smartwatch",group:"MOBILE"},VEHICLE:{icon:"icon-m-devices-car",group:"OTHER"},DRONE:{icon:"icon-m-devices-generic-iot",group:"OTHER"},THERMOSTAT:{icon:"icon-m-devices-home-automation",group:"HOUSEHOLD"},SENSOR:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},CAMERA:{icon:"icon-m-devices-generic-iot",group:"ENTERTAINMENT",protocol:5},PHOTO_CAMERA:{icon:"icon-m-devices-generic-iot",group:"ENTERTAINMENT",protocol:6},VIDEO_CAMERA:{icon:"icon-m-devices-camera",group:"ENTERTAINMENT"},SECURITY_CAMERA:{icon:"icon-m-devices-security-camera",group:"HOUSEHOLD"},AUDIO:{icon:"icon-m-devices-speaker",group:"ENTERTAINMENT"},POS:{icon:"icon-m-devices-generic-iot",group:"IT"},ATM:{icon:"icon-m-devices-generic-iot",group:"OTHER"},VENDING_MACHINE:{icon:"icon-m-devices-generic-iot",group:"OTHER"},INTERACTIVE_SURFACE:{icon:"icon-m-devices-tablet",group:"ENTERTAINMENT"},HMD:{icon:"icon-m-devices-generic-iot",group:"OTHER"},REMOTE_CONTROL:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},HID:{icon:"icon-m-devices-generic-iot",group:"IT"},DVR:{icon:"icon-m-devices-generic-iot",group:"IT"},IOT_HUB:{icon:"icon-m-devices-generic-iot",group:"IT"},VOICE_ASSISTANT:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},SECURITY_BOX:{icon:"icon-m-devices-generic-iot",group:"IT"},TOY:{icon:"icon-m-devices-generic-iot",group:"ENTERTAINMENT"},WELLNESS:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},TOOTHBRUSH:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},HEATING:{icon:"icon-m-devices-generic-iot",group:"APPLIANCE"},VENTILATION:{icon:"icon-m-devices-generic-iot",group:"APPLIANCE"},AIR_CONDITIONING:{icon:"icon-m-devices-generic-iot",group:"APPLIANCE"},POWER_OUTLET:{icon:"icon-m-devices-generic-iot",group:"APPLIANCE"},POWER_SWITCH:{icon:"icon-m-devices-generic-iot",group:"APPLIANCE"},HOUSE_CONTROL:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},SECURITY_ALARM:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},SECURITY_SENSOR:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},SAFE:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},LOCK:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},HOBBY_MANUFACTURING:{icon:"icon-m-devices-generic-iot",group:"OTHER"},UTILITY_METER:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},AUTONOMOUS_APPLIANCE:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},WASTE_MANAGEMENT:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},IRRIGATION:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},FOOTWEAR:{icon:"icon-m-devices-smartwatch",group:"OTHER"},CLOTHING:{icon:"icon-m-devices-smartwatch",group:"OTHER"},PARKING_MONITOR:{icon:"icon-m-devices-generic-iot",group:"OTHER"},GENERIC_MOBILE_DEVICE:{icon:"icon-m-devices-mobile",group:"MOBILE"},GENERIC_MEDIA:{icon:"icon-m-devices-tv",group:"ENTERTAINMENT"},GENERIC_WORK_APPLIANCE:{icon:"icon-m-devices-printer",group:"IT"},GENERIC_HOME_APPLIANCE:{icon:"icon-m-devices-home-appliance",group:"HOUSEHOLD"},GENERIC_HOME_AUTOMATION:{icon:"icon-m-devices-home-appliance",group:"HOUSEHOLD"},GENERIC_SURVEILLANCE:{icon:"icon-m-devices-security-camera",group:"HOUSEHOLD"},GENERIC_NETWORK_ELEMENT:{icon:"icon-m-devices-router",group:"IT"},GENERIC_IOT:{icon:"icon-m-devices-router",group:"HOUSEHOLD"},WIFI_REPEATER:{icon:"icon-m-devices-router",group:"IT"},BABY_MONITOR:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},VIDEO_DISC_PLAYER:{icon:"icon-m-devices-tv",group:"ENTERTAINMENT"},AV_RECEIVER:{icon:"icon-m-devices-tv",group:"ENTERTAINMENT"},PROJECTOR:{icon:"icon-m-devices-tv",group:"ENTERTAINMENT"},PVR:{icon:"icon-m-devices-tv",group:"ENTERTAINMENT"},RADIO:{icon:"icon-m-devices-speaker",group:"ENTERTAINMENT"},REFRIGERATOR:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},WASHING_MACHINE:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},DRYER:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},DISHWASHER:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},MICROWAVE_OVEN:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},OVEN:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},COOKER:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},HOOD:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},KETTLE:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},COFFEE_MAKER:{icon:"icon-m-devices-home-appliance",group:"APPLIANCE"},BODY_SCALE:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},BOTTLE:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},MUG:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},WEATHER_STATION:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},TOILET:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},CLOCK:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},FEEDER:{icon:"icon-m-devices-generic-iot",group:"HOUSEHOLD"},PRINTER_3D:{icon:"icon-m-devices-printer",group:"OTHER"},DESKTOP_PC:{icon:"icon-m-devices-desktop",group:"IT"},LAPTOP_PC:{icon:"icon-m-devices-desktop",group:"IT"},SERVER_COMPUTER:{icon:"icon-m-devices-desktop",group:"IT"},SINGLE_BOARD_COMPUTER:{icon:"icon-m-devices-desktop",group:"IT"}};const ut={UNKNOWN:"icon-s-status-attention",RESOLVING_HIJACK:"icon-m-tools-real-site",WEAK_DEVICE_PASSWORD:"icon-m-tools-passwords",WEAK_WIFI_PASSWORD:"icon-m-tools-passwords",WEAK_WIFI_CRYPTO:"icon-m-tools-passwords",WEAK_WIFI_WPS:"icon-s-status-attention",OPEN_PORT:"icon-s-status-attention",GENERIC_EXPLOITABLE:"icon-s-status-attention",GENERIC_MISCONFIGURED:"icon-s-status-attention",UNSANITIZED_INPUT:"icon-s-status-attention",READ_FILE:"icon-s-status-attention",EXPOSED_SECRET:"icon-s-status-attention",FACTORY_BACKDOOR:"icon-s-status-attention",SESSION_MANIPULATION:"icon-s-status-attention",BUFFER_OVERRUN:"icon-s-status-attention",SQL_INJECTION:"icon-s-status-attention",XSS:"icon-s-status-attention",CSRF:"icon-s-status-attention",FILE_INCLUSION:"icon-s-status-attention",PATH_TRAVERSAL:"icon-s-status-attention",PRIVILEGE_ESCALATION:"icon-s-status-attention",ENCODING_ABUSE:"icon-s-status-attention",RACE_CONDITION:"icon-s-status-attention",RESOURCE_EXHAUSTION:"icon-s-status-attention",WEAK_CRYPTO_ENTROPY:"icon-s-status-attention",WEAK_CRYPTO_ALGO:"icon-s-status-attention"},pt=/^(.+)_\*$/,mt=["DNS_HIJACK","OPEN_PORT_OUTER","WIFI_CRYPTO_NONE","WIFI_CRYPTO_WEAK","WIFI_PW_WEAK"];class ht{constructor(e){this.data=e,this.icon=ut[this.data.category]||ut.UNKNOWN}static findFirstTranslationReverse(e,t,n){if("FOLLOW_GUIDE"===e)return e;n=n||"";const s=e.split(".");for(let i,o,c=s.length-1;c>=0;c--){if(t&&(i="network.issue."+s[c]+t+n,o=p(i),i!==o))return o;if(i="network.issue."+s[c]+n,o=p(i),i!==o)return o}return""}getTitle(e){const t="public"===e?".public":"";return ht.findFirstTranslationReverse(this.data.description[0],t,".title")}getRowTitle(e){return"public"===e&&mt.some((function(e){return-1!==this.data.description[0].indexOf(e)}),this)?ht.findFirstTranslationReverse(this.data.description[0],".public",".title.row"):this.getTitle(e)}getDescription(e){const t="public"===e?".public":"";return ht.findFirstTranslationReverse(this.data.description[0],t)}getRisks(){return this.data.risks.map((e=>ht.findFirstTranslationReverse(e)))}getSolutions(e,t,n){let s;const i=[];return n&&(s=this.getSpecialSolution(e,t))&&i.push(s),i.length||(Array.isArray(this.data.solutions)&&this.data.solutions.forEach((e=>{i.push(ht.findFirstTranslationReverse(e))})),(s=this.getSpecialSolution(e,t))&&i.push(s)),i}getSpecialSolution(e,t){if("public"===e)return ht.findFirstTranslationReverse(this.data.description[0],".public","."+t)}getCategoryDetails(e){let t;const n=this.data[e+"_details"];return n&&(t=n.map((e=>{let t=pt.exec(e);if(t){t=t[1];let e,n=0;const s=[];for(;(e=this.data.details[t+"_"+n])&&n<10;)s.push(e),n++;return[t,s]}return[e,this.data.details[e]]}))),t}isOneOfVulnerabilities(e){"string"==typeof e&&(e=[e]);let t=[this.data.category,this.data.unique_name];return this.data.description.forEach((e=>{t=t.concat(e.split("."))})),e.find((e=>-1!==t.indexOf(e)))}}function vt(e,t){const n=[];for(let s=0;s<e.length;s+=t)n.push(e.substr(s,t));return n}function gt(e,t,n){return vt(e,t).join(n)}function ft(e,t,n){return function(e,t){return vt(e,t=t||2).map((function(e){return parseInt(e,16)}))}(e,t).join(n)}const _t={marks:e=>e.replace(/\(R\)/gi,"®").replace(/\(TM\)/gi,"™"),mac:e=>e?e.indexOf(":")>-1?e:e?gt(e,2,":"):"":"",ip:e=>e?8===e.length?ft(e,2,"."):gt(e,4,":"):""};class kt{constructor(e){this.data={},this.update(e),this._inited=!0}update(e){let t;if(Object.assign(this.data,e),!this._inited||void 0!==e.vulnerabilities||void 0!==e.interfaces||void 0!==e.services){if(this.data.kv||(this.data.kv={}),t={issues:[],deviceId:this.data.device_id,issueId:0,macs:[],ports:[]},this.data.vulnerabilities&&this.data.vulnerabilities.length&&this.data.vulnerabilities.forEach((function(e){e.deviceId=t.deviceId,e.issueId=t.issueId++,t.issues.push(new ht(e))})),this.data.interfaces&&this.data.interfaces.length&&this.data.interfaces.forEach((function(e){e.vulnerabilities&&e.vulnerabilities.length&&e.vulnerabilities.forEach((function(n){kt.groupByMacs(t,e,n,t.macs)}))})),this.data.services&&this.data.services.length&&(this.services=[],this.data.services.forEach((e=>{this.services.push({port:e.port,service_type:e.service_type,transport_protocol:e.transport_protocol}),e.vulnerabilities&&e.vulnerabilities.length&&e.vulnerabilities.forEach((function(n){kt.groupByPorts(t,e,n,t.ports)}))}))),this.issues=t.issues,this.computeIssues(),this.mac=kt.getMac(this),t=this.data.interfaces.find((e=>e.ip&&e.ip.length<16)),t?this.ip=t.ip:this.data.interfaces[0]&&this.data.interfaces[0].ip?this.ip=this.data.interfaces[0].ip:this.ip="",t=[],this.data.interfaces&&this.data.interfaces.length){t={},this.data.interfaces.forEach((function(e){t[e.mac]?t[e.mac].ips.push(e.ip):(t[e.mac]=e,t[e.mac].ips=[e.ip])}));for(const e in t)t[e].ips=t[e].ips.sort((function(e,t){return e<t?-1:e>t?1:0}));t=Object.keys(t).map((function(e){return t[e]}))}this.interfaces=t}return this.os=this.data.kv.DISPLAY_OS,void 0===e.is_shadow&&(this.data.is_shadow=!1),this.model=this.data.model||this.data.kv.DISPLAY_MODEL||"",this.data.kv.DISPLAY_VENDOR?this.vendor=this.data.kv.DISPLAY_VENDOR:this.data.kv.DEVICE_MANUFACTURER?this.vendor=this.data.kv.DEVICE_MANUFACTURER:this.vendor="",this.nameModel="",this.data.name?this.name=this.data.name:this.data.kv.DISPLAY_NAME?this.name=this.data.kv.DISPLAY_NAME:this.data.kv.NETBIOS_NAME?this.name=this.data.kv.NETBIOS_NAME:this.data.kv.DNS_NAME?this.name=this.data.kv.DNS_NAME:this.vendor?(this.name=this.vendor,this.model&&(this.nameModel=this.name+" ("+this.model+")")):this.name="",this.nameModel||(this.nameModel=this.name),this.data.type?this.type=this.data.type:dt[this.data.device_class]?this.type=this.data.device_class:this.type="UNKNOWN",this.icon=this.data.device_roles&&-1!==this.data.device_roles.indexOf("SELF")?dt.GENERIC_COMPUTER.icon:dt[this.type].icon,this}static groupByMacs(e,t,n,s){s[t.mac]&&-1!==s[t.mac].indexOf(n.catalog_name)||(s[t.mac]?s[t.mac].push(n.catalog_name):s[t.mac]=[n.catalog_name],n.deviceId=e.deviceId,n.issueId=e.issueId++,e.issues.push(new ht(n)))}static groupByPorts(e,t,n,s){s[t.port]&&-1!==s[t.port].indexOf(n.catalog_name)||(s[t.port]?s[t.port].push(n.catalog_name):s[t.port]=[n.catalog_name],n.deviceId=e.deviceId,n.issueId=e.issueId++,n.port=t.port,n.serviceType=t.service_type,e.issues.push(new ht(n)))}static getMac(e){return e.data&&e.data.interfaces?_t.mac(e.data.interfaces[0].mac):""}computeIssues(){this.isVulnerable=this.issues.some((e=>!e.state)),this.skippedIssuesCount=0,this.rescanIssuesCount=0,this.issues.forEach((e=>{"skipped"===e.state?this.skippedIssuesCount++:"resolved"===e.state&&this.rescanIssuesCount++}))}setIssueState(e,t){this.issues[e].state=t,this.computeIssues()}getSkippedIssuesCount(){let e=0;return this.issues.forEach((t=>{"skipped"===t.state&&e++})),e}getIssues(){const e=[];for(let t=0;t<this.issues.length;t++)e.push({deviceId:this.data.device_id,pos:t});return e}}class wt{constructor(){this.state=Ye(),this.progress=Ye(),this.devices=Ye(),this.resultType=Ye(),this.scanListeners=[],this.updatedDevices=[],this.emptyScan(),this.prepareScan()}destroy(){this.stopListenScan()}emptyScan(){this.stopListenScan(),this.state.set(""),this.devices.set({}),this.progress.set(""),this.ran=!1,this.type="",this.protocol="",this.time="",this.resultType.set(""),this.canceled=!1,this.networkChanged=!1,this.networkId="",this.forgotDevices=[],this.skippedIssues=[],this.stashUpdatedDevices=[]}start(e){return e?(this.emptyScan(),this.prepareScan(),Je.startScan(e).then((()=>{const t=this.createScanStartTime();localStorage.setItem("hns["+this.networkId+"]lastScanTime",t),localStorage.setItem("hns["+this.networkId+"]lastScanType",e),this.protocol=M(tt).protocol,this.time=t,this.type=e,this.progress.set(0),this.state.set("running"),this.listenScan()}))):Promise.reject()}rescan(){return this.type?this.start(this.type):Promise.reject()}stop(){this.canceled=!0,Je.stopScan(),this.done()}skip(){this.state.set("skipped")}done(){this.stopListenScan(),this.applyDeviceUpdates(),this.devices.update((e=>(Object.values(e).forEach((e=>{if(e.issues){const t=this.skippedIssues[e.mac];if(t)for(const[n,s]of Object.entries(t))e.issues.some(((t,i)=>{if((n===t.data.serviceType||"none"===n&&!t.data.serviceType)&&s.includes(t.data.unique_name))return e.setIssueState(i,"skipped"),!0}))}})),e))),"public"===this.type?this.resultType.set("issues"):this.resultType.set("devices"),this.networkId!==M(Xe)&&(this.networkChanged=!0),this.progress.set(100),this.state.set("done")}finish(){this.state.set("finished")}listenScan(){this.scanListeners.length||(this.deviceUpdates={},this.deviceUpdateTimer=setInterval((()=>{this.applyDeviceUpdates()}),1e3),this.scanListeners=[t.on("asw.hns.progress",(e=>{const t=Math.min(e.progress,100);100===t?this.done():this.progress.set(t)})),t.on("asw.hns.reportdevice",(e=>{this.deviceUpdates[e.device.device_id]=e.device}))])}stopListenScan(){this.deviceUpdateTimer&&(this.deviceUpdateTimer=clearInterval(this.deviceUpdateTimer),this.scanListeners.forEach((e=>e())),this.scanListeners=[])}applyDeviceUpdates(e){e&&(this.deviceUpdates=e),this.deviceUpdates&&(this.updatedDevices=Object.keys(this.deviceUpdates),this.updatedDevices.length&&(this.devices.update((e=>{for(const[t,n]of Object.entries(this.deviceUpdates)){let s=this.forgotDevices.indexOf(kt.getMac(n));-1===s||n.is_shadow||(this.forgotDevices.splice(s,1),localStorage.setItem("hns["+this.networkId+"]forgotDevices",this.forgotDevices.join(",")),s=-1),-1===s&&(e[t]?e[t].update(n):e[t]=new kt(n))}return e})),this.stashUpdatedDevices=this.updatedDevices,this.updatedDevices=[],this.deviceUpdates={}))}getUpdatedDevices(){const e=this.stashUpdatedDevices;return this.stashUpdatedDevices=[],e}getIssues(){let e=[];return Object.values(M(this.devices)).forEach((t=>{e=e.concat(t.getIssues())})),e}getDevicesWithIssues(){const e=[];for(const[t,n]of Object.entries(M(this.devices)))n.issues.length&&e.push(t);return e}isMyDevice(e){return e.data.device_roles&&-1!==e.data.device_roles.indexOf("SELF")}isMyRouter(e){return e.data.device_roles&&-1!==e.data.device_roles.indexOf("INTERNET_GATEWAY")}getMyDeviceId(){for(const[e,t]of Object.entries(M(this.devices)))if(this.isMyDevice(t))return e}getMyRouterId(){for(const[e,t]of Object.entries(M(this.devices)))if(!t.data.is_shadow&&this.isMyRouter(t))return e}getDevicesAroundMe(){const e=[];for(const[t,n]of Object.entries(M(this.devices)))n.data.is_shadow||this.isMyDevice(n)||this.isMyRouter(n)||e.push(t);return e}getShadowDevices(){const e=[];for(const[t,n]of Object.entries(M(this.devices)))n.data.is_shadow&&e.push(t);return e}forgetDevice(e){const t=M(this.devices)[e].mac;-1===this.forgotDevices.indexOf(t)&&(this.forgotDevices.push(t),localStorage.setItem("hns["+this.networkId+"]forgotDevices",this.forgotDevices.toString()),this.skippedIssues[t]&&(delete this.skippedIssues[t],localStorage.setItem("hns["+this.networkId+"]skippedIssues",JSON.stringify(this.skippedIssues))))}skipIssue(e,t){const n=M(this.devices)[e].mac,s=t.data.serviceType||"none";this.skippedIssues[n]||(this.skippedIssues[n]={}),this.skippedIssues[n][s]||(this.skippedIssues[n][s]=[]),-1===this.skippedIssues[n][s].indexOf(t.data.unique_name)&&this.skippedIssues[n][s].push(t.data.unique_name),localStorage.setItem("hns["+this.networkId+"]skippedIssues",JSON.stringify(this.skippedIssues))}resolveIssue(e,t){const n=M(this.devices)[e].mac,s=t.data.serviceType||"none";if(this.skippedIssues[n]&&this.skippedIssues[n][s]){const e=this.skippedIssues[n][s].indexOf(t.data.unique_name);-1!==e&&(this.skippedIssues[n][s].splice(e,1),localStorage.setItem("hns["+this.networkId+"]skippedIssues",JSON.stringify(this.skippedIssues)))}}getSkippedIssuesCount(){let e=0;return Object.values(M(this.devices)).forEach((t=>{e+=t.getSkippedIssuesCount()})),e}createScanStartTime(){return m().format("MM/DD/YYYY h:mm:ss")}prepareScan(){this.networkId=M(Xe),this.forgotDevices=localStorage.getItem("hns["+this.networkId+"]forgotDevices"),this.forgotDevices=this.forgotDevices?this.forgotDevices.split(","):[],this.skippedIssues=localStorage.getItem("hns["+this.networkId+"]skippedIssues"),this.skippedIssues=this.skippedIssues?JSON.parse(this.skippedIssues):{}}getDevices4watcher(){return Object.values(M(this.devices))}static getScanTypeFromStartType(e){switch(e){case"Home":return"home";case"Public":return"public";case"Full":return M(tt).networkInfo.scanType||"home"}return""}}function yt(){return Je.getHnsInit().then((e=>{if(!e.scanning||!e.scanning.scanId)return Promise.reject("NO_SCAN");const t=wt.getScanTypeFromStartType(e.scanning.startType);if(!t)return Promise.reject("TYPE");const n=new wt;return n.type=t,n.protocol=e.protocol,n.time="USER_TRIGGERED"===e.scanning.category&&localStorage.getItem("hns["+n.networkId+"]lastScanTime")||n.createScanStartTime(),n.progress.set(e.progress),n.state.set("running"),n.listenScan(),n}))}function bt(e){let t,n,s,i,o,c,r,a;const l=e[15].default,d=A(l,e,e[14],null);return{c(){t=Y("div"),n=Y("div"),s=Y("iframe"),c=K(),r=Y("div"),d&&d.c(),s.src!==(i=e[2])&&X(s,"src",i),X(s,"data-test",o="ipm-elm-"+e[0]),X(s,"title",e[1]),X(n,"class","sve_ipm"),ne(n,"display",e[4]?"block":"none"),X(r,"data-slot",""),ne(r,"display",e[4]?"none":"block"),X(t,"class","svelte wrap")},m(i,o){G(i,t,o),W(t,n),W(n,s),e[16](s),W(t,c),W(t,r),d&&d.m(r,null),a=!0},p(e,t){(!a||4&t[0]&&s.src!==(i=e[2]))&&X(s,"src",i),(!a||1&t[0]&&o!==(o="ipm-elm-"+e[0]))&&X(s,"data-test",o),(!a||2&t[0])&&X(s,"title",e[1]),(!a||16&t[0])&&ne(n,"display",e[4]?"block":"none"),d&&d.p&&16384&t[0]&&O(d,l,e,e[14],t,null,null),(!a||16&t[0])&&ne(r,"display",e[4]?"none":"block")},i(e){a||(Oe(d,e),a=!0)},o(e){Le(d,e),a=!1},d(n){n&&B(t),e[16](null),d&&d.d(n)}}}w();const It=7e3;function $t(e,t){if(!e)return e;try{const n=new URL(e);return Object.entries(t).forEach((([e,t])=>n.searchParams.set(e,encodeURIComponent(t)))),n.href}catch(n){return console.log(n),e}}function xt(i,o,r){let a;T(i,n,(e=>r(13,a=e)));let{$$slots:l={},$$scope:d}=o,{id:u}=o,{opmUrl:p}=o,{title:m}=o,{params:h={}}=o,{condition:v=!0}=o,{timeout:_=It}=o,{route:k}=o;const w=c.createLogger("component.ipm"),y=ve(),b="true"===localStorage.getItem("automationDisableIpm"),I=[];let $,x,N,E,C,S,M,A,D,O=null;function L(){!N&&O&&e("opm.message_shown",{message_id:O})}function R(t){w.debug({isIframe:$,ipmUrl:x,event:t,id:u,impId:t&&t.data?t.data.elmId:null}),$&&t&&t.data&&("windowLoaded"!==t.data.action||""===t.data.elmId||t.data.elmId!=u&&t.data.placement!=u||(w.info("ipm content loaded"),P(),j(Math.round((performance.now()-S)/1e3)),u==parseInt(u)&&e("app.ipm_tracking.track",{elem_id:parseInt(u),response_time:-1}),y("success",u)))}function j(e){g.getValueCached("avdef://config/GuiCache/TrackIpmLoadTime",!0).then((t=>{var n;t&&s.timing("IPM loading",!1===e?66666:e,u,!1===(n=e)?"timeout":n>=6e4?"> 60s":n>=3e4?"30-60 s":n>=15e3?"15-30 s":n>=1e4?"10-15 s":n>=5e3?"5-10 s":n>=4e3?"4-5 s":n>=3e3?"3-4 s":n>=2e3?"2-3 s":n>=1e3?"1-2 s":"0-1 s")}))}function P(){M&&clearTimeout(M)}function H(){const t=null!=u?E[u]:null;return t?Promise.resolve(t):p?Promise.resolve(p):!u&&0!==u||"object"==typeof u?Promise.resolve("about:blank"):"string"==typeof u?function(){if(Number.isInteger(parseInt(u)))return console.error("IPM Component tried to load OPM component with an integer in a string:",u),f.getUrl(parseInt(u),h);return e("av.opm.GetUrlForPlacement",{id:u}).then((e=>e?(O=e.msg_id||null,$t(e.url||e,h)):(console.warn("OPM URL empty, for ID:",u),""))).catch((e=>(console.error("Ipm component, av.opm.GetUrlForPlacement failed:",e),U("opmCallFailed"),"")))}():Number.isInteger(u)?f.getUrl(parseInt(u),h):(console.error("IPM component could not recognize id:",u,"of type:",typeof u),U("wrongParam"),Promise.resolve(""))}function z(e=null){w.info("updateFrame",{isIframe:$,ipmUrl:x}),r(11,N=null),e&&e.url&&O!=e.msg_id&&(L(),O=e.msg_id),$&&(P(),(e&&e.url?Promise.resolve(e.url):H()).then((e=>{e=$t(e,h),S=performance.now(),w.info("loading ipm url: "+e),x!==e&&(M=setTimeout((()=>{j(!1),U("timeout")}),_),r(2,x=e))})))}function U(e,t=0){r(11,N=e),console.warn("Ipm component error:",N,"for id:",u),y("error",{message:e,code:t,id:u})}return me((()=>{z()})),he((()=>{P(),I.forEach((e=>e())),window.removeEventListener("message",R),window.removeEventListener("beforeunload",L)})),function(){let e;try{e=JSON.parse(localStorage.getItem("IPM_OVERRIDE")),E=e||{},e&&w.info("using override",e)}catch{w.error("Failed to parse localStorage.IPM_OVERRIDE"),E={}}}(),window.addEventListener("beforeunload",L,!1),window.addEventListener("message",R,!1),I.push(t.on("ASW_NOTIF_RELOAD_IPM",(()=>z())),t.on("ipm.reload."+u,(e=>z(e)))),i.$$set=e=>{"id"in e&&r(0,u=e.id),"opmUrl"in e&&r(5,p=e.opmUrl),"title"in e&&r(1,m=e.title),"params"in e&&r(6,h=e.params),"condition"in e&&r(7,v=e.condition),"timeout"in e&&r(8,_=e.timeout),"route"in e&&r(9,k=e.route),"$$scope"in e&&r(14,d=e.$$scope)},i.$$.update=()=>{12288&i.$$.dirty[0]&&null!=a&&(a?!1===A&&(w.debug("went online"),z()):(w.debug("went offline"),P(),U("offline")),r(12,A=a)),2176&i.$$.dirty[0]&&r(10,$=!N&&!b&&v),1544&i.$$.dirty[0]&&null!=k&&$&&(w.debug("change of route: "+k),C.contentWindow&&C.contentWindow.postMessage&&C.contentWindow.postMessage("route:"+k,"*")),1028&i.$$.dirty[0]&&r(4,D=$&&x)},[u,m,x,C,D,p,h,v,_,k,$,N,A,a,d,l,function(e){fe[e?"unshift":"push"]((()=>{C=e,r(3,C)}))}]}class Nt extends Ge{constructor(e){super(),We(this,e,xt,bt,C,{id:0,opmUrl:5,title:1,params:6,condition:7,timeout:8,route:9},[-1,-1])}}const Et=e=>({}),Ct=e=>({}),St=e=>({}),Mt=e=>({}),Tt=e=>({}),At=e=>({}),Dt=e=>({}),Ot=e=>({});function Lt(e){let t,n,s;return{c(){t=Y("div"),X(t,"class","sve_modal__overlay__close")},m(i,o){G(i,t,o),n||(s=J(t,"click",e[14]),n=!0)},p:b,d(e){e&&B(t),n=!1,s()}}}function Rt(e){let t,n;return{c(){t=Y("h2"),n=q(e[0]),X(t,"class","sve_modal__title")},m(e,s){G(e,t,s),W(t,n)},p(e,t){1&t&&te(n,e[0])},d(e){e&&B(t)}}}function jt(e){let t,n;return{c(){t=Y("p"),n=q(e[1]),X(t,"class","sve_modal__subtitle")},m(e,s){G(e,t,s),W(t,n)},p(e,t){2&t&&te(n,e[1])},d(e){e&&B(t)}}}function Pt(e){let t,n,s,i,o;return{c(){t=Y("button"),n=Y("kin-icon"),ee(n,"name","icon-s-controls-close"),ee(n,"size","12"),X(t,"class","sve_modal__close"),X(t,"data-test","close"),X(t,"title",s=p("global.closeModalWindow"))},m(s,c){G(s,t,c),W(t,n),i||(o=J(t,"click",e[15]),i=!0)},p:b,d(e){e&&B(t),i=!1,o()}}}function Ht(e){let t,n,s;const i=e[13]["modal-ipm"],o=A(i,e,e[12],Ct);return{c(){t=Y("div"),o&&o.c(),X(t,"class","sve_modal__ipm"),X(t,"style",n=`${e[7]} margin-top: 0;`)},m(e,n){G(e,t,n),o&&o.m(t,null),s=!0},p(e,c){o&&o.p&&4096&c&&O(o,i,e,e[12],c,Et,Ct),(!s||128&c&&n!==(n=`${e[7]} margin-top: 0;`))&&X(t,"style",n)},i(e){s||(Oe(o,e),s=!0)},o(e){Le(o,e),s=!1},d(e){e&&B(t),o&&o.d(e)}}}function zt(e){let t,n,s,i,o,c,a,l,d,u,p,m,h,v,g,f,_,k,w=e[3]&&Lt(e),y=e[0]&&Rt(e),b=e[1]&&jt(e);const I=e[13]["modal-header"],$=A(I,e,e[12],Ot);let x=e[3]&&Pt(e);const E=e[13]["modal-content"],C=A(E,e,e[12],At),S=e[13]["modal-footer"],M=A(S,e,e[12],Mt);let T=e[5]&&Ht(e);return{c(){t=Y("div"),w&&w.c(),n=K(),s=Y("div"),i=Y("div"),y&&y.c(),o=K(),b&&b.c(),c=K(),$&&$.c(),a=K(),x&&x.c(),l=K(),d=Y("div"),C&&C.c(),u=K(),p=Y("div"),M&&M.c(),m=K(),T&&T.c(),X(i,"class","sve_modal__header"),X(d,"class","sve_modal__content"),X(p,"class","sve_modal__footer"),X(s,"class","sve_modal"),X(s,"style",h=`${e[6]}`),X(t,"class",v="sve_modal__overlay "+e[4]),X(t,"data-test",e[2])},m(h,v){G(h,t,v),w&&w.m(t,null),W(t,n),W(t,s),W(s,i),y&&y.m(i,null),W(i,o),b&&b.m(i,null),W(i,c),$&&$.m(i,null),W(s,a),x&&x.m(s,null),W(s,l),W(s,d),C&&C.m(d,null),W(s,u),W(s,p),M&&M.m(p,null),W(s,m),T&&T.m(s,null),f=!0,_||(k=[J(window,"keydown",e[9],!0),L(g=r.call(null,t))],_=!0)},p(e,[r]){e[3]?w?w.p(e,r):(w=Lt(e),w.c(),w.m(t,n)):w&&(w.d(1),w=null),e[0]?y?y.p(e,r):(y=Rt(e),y.c(),y.m(i,o)):y&&(y.d(1),y=null),e[1]?b?b.p(e,r):(b=jt(e),b.c(),b.m(i,c)):b&&(b.d(1),b=null),$&&$.p&&4096&r&&O($,I,e,e[12],r,Dt,Ot),e[3]?x?x.p(e,r):(x=Pt(e),x.c(),x.m(s,l)):x&&(x.d(1),x=null),C&&C.p&&4096&r&&O(C,E,e,e[12],r,Tt,At),M&&M.p&&4096&r&&O(M,S,e,e[12],r,St,Mt),e[5]?T?(T.p(e,r),32&r&&Oe(T,1)):(T=Ht(e),T.c(),Oe(T,1),T.m(s,null)):T&&(Ae(),Le(T,1,1,(()=>{T=null})),De()),(!f||64&r&&h!==(h=`${e[6]}`))&&X(s,"style",h),(!f||16&r&&v!==(v="sve_modal__overlay "+e[4]))&&X(t,"class",v),(!f||4&r)&&X(t,"data-test",e[2])},i(e){f||(Oe($,e),Oe(C,e),Oe(M,e),Oe(T),f=!0)},o(e){Le($,e),Le(C,e),Le(M,e),Le(T),f=!1},d(e){e&&B(t),w&&w.d(),y&&y.d(),b&&b.d(),$&&$.d(e),x&&x.d(),C&&C.d(e),M&&M.d(e),T&&T.d(),_=!1,N(k)}}}function Ut(e,t,n){let{$$slots:s={},$$scope:i}=t;const o=ve();let c,{title:r=null}=t,{subtitle:a=null}=t,{testId:l=""}=t,{closable:d=!0}=t,{cssCls:u=""}=t,{ipm:p=!1}=t,{width:m}=t,{ipmHeight:h}=t,v="",g="";me((()=>{c=document.activeElement})),he((()=>{document.body.contains(c)&&c.focus()}));return e.$$set=e=>{"title"in e&&n(0,r=e.title),"subtitle"in e&&n(1,a=e.subtitle),"testId"in e&&n(2,l=e.testId),"closable"in e&&n(3,d=e.closable),"cssCls"in e&&n(4,u=e.cssCls),"ipm"in e&&n(5,p=e.ipm),"width"in e&&n(10,m=e.width),"ipmHeight"in e&&n(11,h=e.ipmHeight),"$$scope"in e&&n(12,i=e.$$scope)},e.$$.update=()=>{1024&e.$$.dirty&&m&&n(6,v=`width: ${m}px;`),2080&e.$$.dirty&&p&&h&&n(7,g=`height: ${h}px;`)},[r,a,l,d,u,p,v,g,o,function(e){"Escape"===e.code&&(o("close"),e.preventDefault(),e.stopPropagation())},m,h,i,s,()=>o("close"),()=>o("close")]}class Wt extends Ge{constructor(e){super(),We(this,e,Ut,zt,C,{title:0,subtitle:1,testId:2,closable:3,cssCls:4,ipm:5,width:10,ipmHeight:11})}}const{document:Gt}=je;const Bt=e=>({}),Ft=e=>({}),Yt=e=>({}),Vt=e=>({}),qt=e=>({}),Kt=e=>({}),Qt=e=>({}),Jt=e=>({}),Zt=e=>({}),Xt=e=>({}),en=e=>({}),tn=e=>({});function nn(e){let t,n,s,i,o;const c=[on,sn],r=[];function a(e,t){return""!=e[0]?0:1}return t=a(e),n=r[t]=c[t](e),{c(){n.c(),s=K(),i=Y("kin-loading"),ee(i,"fullscreen","true"),ee(i,"class","svelte-kh5tai")},m(e,n){r[t].m(e,n),G(e,s,n),G(e,i,n),o=!0},p(e,i){let o=t;t=a(e),t===o?r[t].p(e,i):(Ae(),Le(r[o],1,1,(()=>{r[o]=null})),De(),n=r[t],n?n.p(e,i):(n=r[t]=c[t](e),n.c()),Oe(n,1),n.m(s.parentNode,s))},i(e){o||(Oe(n),o=!0)},o(e){Le(n),o=!1},d(e){r[t].d(e),e&&B(s),e&&B(i)}}}function sn(e){let t,n;const s=e[16]["page-title"],i=A(s,e,e[15],tn);return{c(){t=Y("div"),i&&i.c(),X(t,"class","kin_loading__title svelte-kh5tai"),ne(t,"color","transparent")},m(e,s){G(e,t,s),i&&i.m(t,null),n=!0},p(e,t){i&&i.p&&32768&t&&O(i,s,e,e[15],t,en,tn)},i(e){n||(Oe(i,e),n=!0)},o(e){Le(i,e),n=!1},d(e){e&&B(t),i&&i.d(e)}}}function on(e){let t;return{c(){t=Y("h1"),X(t,"class","kin_loading__title svelte-kh5tai"),ne(t,"color","transparent")},m(n,s){G(n,t,s),t.innerHTML=e[0]},p(e,n){1&n&&(t.innerHTML=e[0])},i:b,o:b,d(e){e&&B(t)}}}function cn(e){let t,n;const s=e[16]["page-title"],i=A(s,e,e[15],Jt);return{c(){t=Y("div"),i&&i.c(),X(t,"class","kin_header__title svelte-kh5tai")},m(e,s){G(e,t,s),i&&i.m(t,null),n=!0},p(e,t){i&&i.p&&32768&t&&O(i,s,e,e[15],t,Qt,Jt)},i(e){n||(Oe(i,e),n=!0)},o(e){Le(i,e),n=!1},d(e){e&&B(t),i&&i.d(e)}}}function rn(e){let t;return{c(){t=Y("h1"),X(t,"class","kin_header__title svelte-kh5tai")},m(n,s){G(n,t,s),t.innerHTML=e[0]},p(e,n){1&n&&(t.innerHTML=e[0])},i:b,o:b,d(e){e&&B(t)}}}function an(e){let t,n,s;const i=e[16].controls,o=A(i,e,e[15],Kt);let c=e[4]&&e[5]&&ln(e);return{c(){t=Y("div"),o&&o.c(),n=K(),c&&c.c(),X(t,"class","kin_header__controls svelte-kh5tai")},m(e,i){G(e,t,i),o&&o.m(t,null),W(t,n),c&&c.m(t,null),s=!0},p(e,n){o&&o.p&&32768&n&&O(o,i,e,e[15],n,qt,Kt),e[4]&&e[5]?c?c.p(e,n):(c=ln(e),c.c(),c.m(t,null)):c&&(c.d(1),c=null)},i(e){s||(Oe(o,e),s=!0)},o(e){Le(o,e),s=!1},d(e){e&&B(t),o&&o.d(e),c&&c.d()}}}function ln(e){let t,n;return{c(){t=Y("div"),n=q(e[5]),X(t,"class","kin_header__tooltip tooltip -onboarding -arrow-top svelte-kh5tai")},m(e,s){G(e,t,s),W(t,n)},p(e,t){32&t&&te(n,e[5])},d(e){e&&B(t)}}}function dn(e){let t,n,s,i,o;return{c(){t=Y("button"),n=Y("kin-icon"),ee(n,"name","icon-s-controls-arrow-left"),ee(n,"size","20"),ee(n,"class","svelte-kh5tai"),X(t,"class","kin_back-btn svelte-kh5tai"),X(t,"title",s=p("global.goBack"))},m(s,c){G(s,t,c),W(t,n),i||(o=J(t,"click",e[17]),i=!0)},p:b,d(e){e&&B(t),i=!1,o()}}}function un(e){let t,n,s,i;return{c(){t=Y("a"),n=Y("kin-icon"),ee(n,"name","icon-s-controls-arrow-left"),ee(n,"size","20"),ee(n,"class","svelte-kh5tai"),X(t,"class","kin_back-btn svelte-kh5tai"),X(t,"href",s=e[9]||"#Dashboard"),X(t,"title",i=p("global.goBack"))},m(e,s){G(e,t,s),W(t,n)},p(e,n){512&n&&s!==(s=e[9]||"#Dashboard")&&X(t,"href",s)},d(e){e&&B(t)}}}function pn(e){let t,n,s;return{c(){t=Y("a"),n=Y("kin-icon"),ee(n,"name","icon-s-settings-button"),ee(n,"size","20"),ee(n,"class","svelte-kh5tai"),X(t,"class","kin_settings-btn svelte-kh5tai"),X(t,"href",e[1]),X(t,"title",s=p("settings"))},m(e,s){G(e,t,s),W(t,n)},p(e,n){2&n&&X(t,"href",e[1])},d(e){e&&B(t)}}}function mn(e){let t,n,s,i,o;const c=e[16]["page-content"],r=A(c,e,e[15],Ft);return{c(){t=Y("div"),r&&r.c(),X(t,"class","kin_page__content svelte-kh5tai"),se(t,"-disabled",e[4])},m(c,a){G(c,t,a),r&&r.m(t,null),s=!0,i||(o=L(n=e[13].call(null,t)),i=!0)},p(e,n){r&&r.p&&32768&n&&O(r,c,e,e[15],n,Bt,Ft),16&n&&se(t,"-disabled",e[4])},i(e){s||(Oe(r,e),s=!0)},o(e){Le(r,e),s=!1},d(e){e&&B(t),r&&r.d(e),i=!1,o()}}}function hn(e){let t,n;const s=e[16].upsell,i=A(s,e,e[15],Vt);return{c(){t=Y("div"),i&&i.c(),X(t,"class","kin_page__content svelte-kh5tai")},m(e,s){G(e,t,s),i&&i.m(t,null),n=!0},p(e,t){i&&i.p&&32768&t&&O(i,s,e,e[15],t,Yt,Vt)},i(e){n||(Oe(i,e),n=!0)},o(e){Le(i,e),n=!1},d(e){e&&B(t),i&&i.d(e)}}}function vn(e){let t,n,s,i,o,c,r,a,l,d,u,p,m,h,v,g,f,_=e[10]&&nn(e);const k=e[16].breadcrumbs,w=A(k,e,e[15],Xt),y=[rn,cn],b=[];function I(e,t){return e[0]?0:1}a=I(e),l=b[a]=y[a](e);let $=!e[3]&&an(e);function x(e,t){return e[7]&&!e[8]?un:e[8]?dn:void 0}let N=x(e),E=N&&N(e),C=e[1]&&!e[3]&&pn(e);const S=[hn,mn],M=[];function T(e,t){return e[3]?0:1}return h=T(e),v=M[h]=S[h](e),{c(){t=Y("div"),_&&_.c(),n=K(),s=Y("div"),i=Y("header"),o=Y("div"),w&&w.c(),c=K(),r=Y("div"),l.c(),d=K(),$&&$.c(),u=K(),E&&E.c(),p=K(),C&&C.c(),m=K(),v.c(),X(o,"class","kin_header__crumbs crumbs svelte-kh5tai"),X(r,"class","kin_header__content svelte-kh5tai"),X(i,"class","kin_header svelte-kh5tai"),X(s,"class","svelte-kh5tai"),se(s,"invisible",e[10]),X(t,"class",g="kin_page "+("ltr"!=e[11]?"-"+e[11]:"")+" "+(e[6]?"-"+e[6]:"")+" "+e[2]+" svelte-kh5tai")},m(e,l){G(e,t,l),_&&_.m(t,null),W(t,n),W(t,s),W(s,i),W(i,o),w&&w.m(o,null),W(i,c),W(i,r),b[a].m(r,null),W(r,d),$&&$.m(r,null),W(i,u),E&&E.m(i,null),W(i,p),C&&C.m(i,null),W(s,m),M[h].m(s,null),f=!0},p(e,[o]){e[10]?_?(_.p(e,o),1024&o&&Oe(_,1)):(_=nn(e),_.c(),Oe(_,1),_.m(t,n)):_&&(Ae(),Le(_,1,1,(()=>{_=null})),De()),w&&w.p&&32768&o&&O(w,k,e,e[15],o,Zt,Xt);let c=a;a=I(e),a===c?b[a].p(e,o):(Ae(),Le(b[c],1,1,(()=>{b[c]=null})),De(),l=b[a],l?l.p(e,o):(l=b[a]=y[a](e),l.c()),Oe(l,1),l.m(r,d)),e[3]?$&&(Ae(),Le($,1,1,(()=>{$=null})),De()):$?($.p(e,o),8&o&&Oe($,1)):($=an(e),$.c(),Oe($,1),$.m(r,null)),N===(N=x(e))&&E?E.p(e,o):(E&&E.d(1),E=N&&N(e),E&&(E.c(),E.m(i,p))),e[1]&&!e[3]?C?C.p(e,o):(C=pn(e),C.c(),C.m(i,null)):C&&(C.d(1),C=null);let u=h;h=T(e),h===u?M[h].p(e,o):(Ae(),Le(M[u],1,1,(()=>{M[u]=null})),De(),v=M[h],v?v.p(e,o):(v=M[h]=S[h](e),v.c()),Oe(v,1),v.m(s,null)),1024&o&&se(s,"invisible",e[10]),(!f||2116&o&&g!==(g="kin_page "+("ltr"!=e[11]?"-"+e[11]:"")+" "+(e[6]?"-"+e[6]:"")+" "+e[2]+" svelte-kh5tai"))&&X(t,"class",g)},i(e){f||(Oe(_),Oe(w,e),Oe(l),Oe($),Oe(v),f=!0)},o(e){Le(_),Le(w,e),Le(l),Le($),Le(v),f=!1},d(e){e&&B(t),_&&_.d(),w&&w.d(e),b[a].d(),$&&$.d(),E&&E.d(),C&&C.d(),M[h].d()}}}function gn(e,t,n){let{$$slots:s={},$$scope:i}=t,{heading:o}=t,{settingsUrl:c}=t,{cssCls:r}=t,{upsell:l=!1}=t,{inactive:d=!1}=t,{inactiveMsg:u}=t,{layout:p}=t,{back:m=!0}=t,{backEvent:h=!1}=t,{backHash:v}=t,{loading:g=!1}=t;const f=ve();let _,k="ltr";me((()=>{n(11,k=document.body.dir)}));return e.$$set=e=>{"heading"in e&&n(0,o=e.heading),"settingsUrl"in e&&n(1,c=e.settingsUrl),"cssCls"in e&&n(2,r=e.cssCls),"upsell"in e&&n(3,l=e.upsell),"inactive"in e&&n(4,d=e.inactive),"inactiveMsg"in e&&n(5,u=e.inactiveMsg),"layout"in e&&n(6,p=e.layout),"back"in e&&n(7,m=e.back),"backEvent"in e&&n(8,h=e.backEvent),"backHash"in e&&n(9,v=e.backHash),"loading"in e&&n(10,g=e.loading),"$$scope"in e&&n(15,i=e.$$scope)},e.$$.update=()=>{16400&e.$$.dirty&&_&&_.set(!d)},[o,c,r,l,d,u,p,m,h,v,g,k,f,function(e){return n(14,_=new a(e)),{destroy:_.destroy.bind(_)}},_,i,s,()=>f("backClick")]}class fn extends Ge{constructor(e){var t;super(),Gt.getElementById("svelte-kh5tai-style")||((t=Y("style")).id="svelte-kh5tai-style",t.textContent=".invisible.svelte-kh5tai.svelte-kh5tai{display:none}.svelte-kh5tai.svelte-kh5tai,.svelte-kh5tai.svelte-kh5tai:before,.svelte-kh5tai.svelte-kh5tai:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.kin_page.svelte-kh5tai.svelte-kh5tai{position:absolute;top:0;right:0;bottom:0;left:0;background:var(--page-background);overflow:hidden}.kin_loading__title.svelte-kh5tai.svelte-kh5tai{position:absolute;opacity:0.01}.kin_header.svelte-kh5tai.svelte-kh5tai{padding:1.5rem var(--page-padding) 0;height:var(--header-height);position:relative;text-align:var(--page-header-align)}.kin_header__crumbs.svelte-kh5tai.svelte-kh5tai,.kin_header__content.svelte-kh5tai.svelte-kh5tai{position:absolute;left:var(--page-padding);right:var(--page-padding)}.kin_header__crumbs.svelte-kh5tai.svelte-kh5tai{display:var(--breadcrumbs-vis)}.kin_header__content.svelte-kh5tai.svelte-kh5tai{bottom:1.1rem}.kin_header__title.svelte-kh5tai.svelte-kh5tai,.kin_header__controls.svelte-kh5tai.svelte-kh5tai{display:inline-block;vertical-align:middle;position:relative}.kin_header__title.svelte-kh5tai.svelte-kh5tai{margin-top:0;margin-bottom:0;padding:0;line-height:1.1;font-size:var(--font-size-header);font-weight:var(--font-weight-h1);max-width:100%}.kin_header__tooltip.svelte-kh5tai.svelte-kh5tai{position:absolute;width:24rem;margin-top:calc(var(--switch-height) + 1.5rem);padding-top:1.2rem;padding-bottom:1.2rem;z-index:20;transform:translateX(-50%);left:50%}.kin_back-btn.svelte-kh5tai.svelte-kh5tai,.kin_settings-btn.svelte-kh5tai.svelte-kh5tai{position:absolute;left:0;top:var(--back-button-top);border:0;background-color:rgba(213,211,230,0.1);transition:background-color 0.2s;cursor:pointer;color:inherit;text-decoration:none;width:4rem;height:var(--back-button-height);border-radius:0 var(--back-button-height) var(--back-button-height) 0;display:flex;align-items:center;justify-content:center;z-index:9}.kin_back-btn.svelte-kh5tai kin-icon.svelte-kh5tai,.kin_settings-btn.svelte-kh5tai kin-icon.svelte-kh5tai{opacity:0.8}.kin_back-btn.svelte-kh5tai.svelte-kh5tai:hover,.kin_settings-btn.svelte-kh5tai.svelte-kh5tai:hover{transform:scale(1.1)}.kin_back-btn.svelte-kh5tai.svelte-kh5tai:focus,.kin_settings-btn.svelte-kh5tai.svelte-kh5tai:focus,.kin_back-btn.svelte-kh5tai.svelte-kh5tai:hover,.kin_settings-btn.svelte-kh5tai.svelte-kh5tai:hover{background-color:rgba(213,211,230,0.3);outline:0}.kin_back-btn.svelte-kh5tai:focus kin-icon.svelte-kh5tai,.kin_settings-btn.svelte-kh5tai:focus kin-icon.svelte-kh5tai,.kin_back-btn.svelte-kh5tai:hover kin-icon.svelte-kh5tai,.kin_settings-btn.svelte-kh5tai:hover kin-icon.svelte-kh5tai{opacity:1}.kin_settings-btn.svelte-kh5tai.svelte-kh5tai{left:auto;right:0;border-radius:var(--back-button-height) 0 0 var(--back-button-height)}.kin_settings-btn__tooltip.svelte-kh5tai.svelte-kh5tai{display:none;position:absolute;right:105%}.kin_back-btn.svelte-kh5tai.svelte-kh5tai{display:var(--back-btn-vis)}.kin_back-btn.-static.svelte-kh5tai.svelte-kh5tai{position:fixed;top:6.4rem}.kin_page__content.svelte-kh5tai.svelte-kh5tai{position:absolute;top:var(--header-height);right:0;bottom:0;left:0;display:block}.kin_page__content.-disabled.svelte-kh5tai.svelte-kh5tai{opacity:0.2;pointer-events:none}.kin_upsell.svelte-kh5tai.svelte-kh5tai{top:var(--header-height);bottom:0;left:0;right:0;position:absolute;display:flex;flex-direction:column;justify-content:center;align-items:center}.kin_upsell__icon.svelte-kh5tai.svelte-kh5tai{font-size:18rem;margin-bottom:2rem}.kin_upsell__cta.svelte-kh5tai.svelte-kh5tai{margin-top:1rem}.kin_page.-no-header.svelte-kh5tai .kin_header.svelte-kh5tai{display:none}.kin_page.-no-header.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:0}.kin_page.-cover-header.svelte-kh5tai .kin_header.svelte-kh5tai{position:absolute;width:100%;z-index:1}.kin_page.-cover-header.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:0}.kin_page.-large-header.svelte-kh5tai .kin_header.svelte-kh5tai{height:var(--header-height-large)}.kin_page.-large-header.svelte-kh5tai .kin_header__title.svelte-kh5tai{display:block}.kin_page.-large-header.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:var(--header-height-large)}.kin_page.-medium-header.svelte-kh5tai .kin_header.svelte-kh5tai{height:var(--header-height-medium)}.kin_page.-medium-header.svelte-kh5tai .kin_header__title.svelte-kh5tai{display:block}.kin_page.-medium-header.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:var(--header-height-medium)}.kin_page.-tabs-page.svelte-kh5tai .kin_header.svelte-kh5tai{height:var(--header-height-tabs);text-align:center}.kin_page.-tabs-page.svelte-kh5tai .kin_header__title.svelte-kh5tai{display:block;text-align:center}.kin_page.-tabs-page.svelte-kh5tai .kin_header__controls.svelte-kh5tai{display:block;text-align:center;padding:0}.kin_page.-tabs-page.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:var(--header-height-tabs);text-align:center}.kin_page.-center-header.svelte-kh5tai .kin_header__controls.svelte-kh5tai,.kin_page.-center-header.svelte-kh5tai .kin_header__title.svelte-kh5tai{display:block;text-align:center}.kin_page.-center.svelte-kh5tai.svelte-kh5tai,.kin_page.-center-all.svelte-kh5tai.svelte-kh5tai{text-align:center}.kin_page.-center.svelte-kh5tai .kin_header__controls.svelte-kh5tai,.kin_page.-center-all.svelte-kh5tai .kin_header__controls.svelte-kh5tai{display:none}.kin_page.-center.svelte-kh5tai .kin_header__title.svelte-kh5tai,.kin_page.-center-all.svelte-kh5tai .kin_header__title.svelte-kh5tai{display:block}.kin_page.-center-all.svelte-kh5tai .kin_page__content.svelte-kh5tai{display:flex;align-items:center;justify-content:center;text-align:center}.kin_page.-flex-between.svelte-kh5tai .kin_header__controls.svelte-kh5tai{display:none}.kin_page.-flex-between.svelte-kh5tai .kin_header__title.svelte-kh5tai{display:block}.kin_page.-flex-between.svelte-kh5tai .kin_page__content.svelte-kh5tai{display:flex;align-items:center;justify-content:space-between;text-align:center}.kin_page.-profile.svelte-kh5tai .kin_header.svelte-kh5tai{position:static;height:auto;text-align:start}.kin_page.-profile.svelte-kh5tai .kin_header__content.svelte-kh5tai{position:static}.kin_page.-profile.svelte-kh5tai .kin_header__controls.svelte-kh5tai{position:static;display:block;padding:0;max-height:none}.kin_page.-profile.svelte-kh5tai .kin_header__title.svelte-kh5tai{max-height:none;max-width:100%}.kin_page.-profile.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:calc(var(--header-height) + 6rem)}.kin_page.-detail.svelte-kh5tai .kin_header.svelte-kh5tai{text-align:center;height:calc(var(--header-height-large) + 4rem)}.kin_page.-detail.svelte-kh5tai .kin_header__content.svelte-kh5tai{display:block}.kin_page.-detail.svelte-kh5tai .kin_header__title.svelte-kh5tai{max-height:none;display:block;font-weight:var(--font-weight-h1);padding:0 8%}.kin_page.-detail.svelte-kh5tai .kin_header__controls.svelte-kh5tai{padding:1rem 0 0;position:static;display:block;max-height:none}.kin_page.-detail.svelte-kh5tai .kin_page__content.svelte-kh5tai{top:calc(var(--header-height-large) + 4rem)}.kin_page.-rtl.svelte-kh5tai .kin_header__tooltip.svelte-kh5tai{transform:translateX(50%);left:auto;right:50%}.kin_page.-rtl.svelte-kh5tai .kin_back-btn.svelte-kh5tai,.kin_page.-rtl.svelte-kh5tai .kin_settings-btn.svelte-kh5tai{transform:scale(-1)}.kin_page.-rtl.svelte-kh5tai .kin_back-btn.svelte-kh5tai:hover,.kin_page.-rtl.svelte-kh5tai .kin_settings-btn.svelte-kh5tai:hover{transform:scale(-1.1)}.kin_page.-rtl.svelte-kh5tai .kin_back-btn.svelte-kh5tai{left:auto;right:0}.kin_page.-rtl.svelte-kh5tai .kin_settings-btn.svelte-kh5tai{right:auto;left:0}",W(Gt.head,t)),We(this,e,gn,vn,C,{heading:0,settingsUrl:1,cssCls:2,upsell:3,inactive:4,inactiveMsg:5,layout:6,back:7,backEvent:8,backHash:9,loading:10})}get heading(){return this.$$.ctx[0]}set heading(e){this.$set({heading:e}),xe()}get settingsUrl(){return this.$$.ctx[1]}set settingsUrl(e){this.$set({settingsUrl:e}),xe()}get cssCls(){return this.$$.ctx[2]}set cssCls(e){this.$set({cssCls:e}),xe()}get upsell(){return this.$$.ctx[3]}set upsell(e){this.$set({upsell:e}),xe()}get inactive(){return this.$$.ctx[4]}set inactive(e){this.$set({inactive:e}),xe()}get inactiveMsg(){return this.$$.ctx[5]}set inactiveMsg(e){this.$set({inactiveMsg:e}),xe()}get layout(){return this.$$.ctx[6]}set layout(e){this.$set({layout:e}),xe()}get back(){return this.$$.ctx[7]}set back(e){this.$set({back:e}),xe()}get backEvent(){return this.$$.ctx[8]}set backEvent(e){this.$set({backEvent:e}),xe()}get backHash(){return this.$$.ctx[9]}set backHash(e){this.$set({backHash:e}),xe()}get loading(){return this.$$.ctx[10]}set loading(e){this.$set({loading:e}),xe()}}function _n(e){let t,n,s,i,o,c,r,a,l=(e[0]?p("global.feeling.disconnected.title"):"")+"";return{c(){t=Y("div"),n=Y("kin-view"),s=Y("p"),i=q(l),o=K(),c=q(e[1]),r=K(),a=Y("div"),a.innerHTML='<div class="svg -offline sve_offline-page__icon"></div>',X(s,"slot","description"),X(a,"slot","view-content"),ee(n,"csscls","-center"),X(t,"slot","page-content")},m(e,l){G(e,t,l),W(t,n),W(n,s),W(s,i),W(s,o),W(s,c),W(n,r),W(n,a)},p(e,t){1&t&&l!==(l=(e[0]?p("global.feeling.disconnected.title"):"")+"")&&te(i,l),2&t&&te(c,e[1])},d(e){e&&B(t)}}}function kn(e){let t,n;return t=new fn({props:{layout:"center-header",heading:e[0]?e[0]:p("global.feeling.disconnected.title"),$$slots:{"page-content":[_n]},$$scope:{ctx:e}}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,[n]){const s={};1&n&&(s.heading=e[0]?e[0]:p("global.feeling.disconnected.title")),7&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function wn(e,t,n){let{text:s=""}=t,{desc:i=p("global.feeling.disconnected.desc")}=t;return e.$$set=e=>{"text"in e&&n(0,s=e.text),"desc"in e&&n(1,i=e.desc)},[s,i]}class yn extends Ge{constructor(e){super(),We(this,e,wn,kn,C,{text:0,desc:1})}}function bn(e){const t=e-1;return t*t*t+1}function In(e,{delay:t=0,duration:n=400,easing:s=bn,x:i=0,y:o=0,opacity:c=0}){const r=getComputedStyle(e),a=+r.opacity,l="none"===r.transform?"":r.transform,d=a*(1-c);return{delay:t,duration:n,easing:s,css:(e,t)=>`\n\t\t\ttransform: ${l} translate(${(1-e)*i}px, ${(1-e)*o}px);\n\t\t\topacity: ${a-d*t}`}}const{document:$n}=je;function xn(e){let t;return{c(){t=Y("kin-loading"),ee(t,"fullscreen","true")},m(e,n){G(e,t,n)},d(e){e&&B(t)}}}function Nn(e){let t,n,s,i,o,c,r,a,l,d,u,p,m,h,v,g,f,_,k,w,y,$,x=e[1]&&xn();const C=e[11].default,S=A(C,e,e[10],null);return{c(){t=Y("div"),n=Y("div"),s=Y("header"),i=Y("button"),o=Y("kin-icon"),r=K(),a=Y("div"),l=q(e[2]),d=K(),u=Y("div"),x&&x.c(),p=K(),m=Y("div"),S&&S.c(),g=K(),f=Y("div"),ee(o,"name","icon-s-controls-close"),ee(o,"size","14"),X(i,"class","sve_overlay__cross nui_caption_client nui_caption_client-overlay"),X(i,"title",c=e[4].close),X(i,"data-test","sve_overlay_close"),X(a,"class","sve_overlay__title nui_caption_client nui_caption_client-overlay"),X(s,"class","sve_overlay__titlebar"),X(m,"class","svelte-1stpe6u"),se(m,"invisible",e[1]),X(u,"class","sve_overlay__contents"),X(n,"class","sve_overlay__holder"),X(n,"data-test","sve_overlay"),X(f,"class","sve_overlay__close"),X(t,"class",_="sve_overlay "+(e[3]?"-"+e[3]:"")+" "+("rtl"===e[0]?"-rtl":"")+" svelte-1stpe6u")},m(c,h){G(c,t,h),W(t,n),W(n,s),W(s,i),W(i,o),W(s,r),W(s,a),W(a,l),W(n,d),W(n,u),x&&x.m(u,null),W(u,p),W(u,m),S&&S.m(m,null),W(t,g),W(t,f),w=!0,y||($=[J(window,"keydown",e[7]),J(window,"vNextVisibilityChanged",e[6]),J(window,"kin-isActionBarVisible",e[6]),J(i,"click",e[5]),J(a,"click",e[5]),J(f,"click",e[5]),L(k=e[8].call(null,t))],y=!0)},p(e,[n]){(!w||16&n&&c!==(c=e[4].close))&&X(i,"title",c),(!w||4&n)&&te(l,e[2]),e[1]?x||(x=xn(),x.c(),x.m(u,p)):x&&(x.d(1),x=null),S&&S.p&&1024&n&&O(S,C,e,e[10],n,null,null),2&n&&se(m,"invisible",e[1]),(!w||9&n&&_!==(_="sve_overlay "+(e[3]?"-"+e[3]:"")+" "+("rtl"===e[0]?"-rtl":"")+" svelte-1stpe6u"))&&X(t,"class",_)},i(e){w||(Oe(S,e),be((()=>{v&&v.end(1),h||(h=function(e,t,n){let s,i,o=t(e,n),c=!1,r=0;function a(){s&&de(e,s)}function l(){const{delay:t=0,duration:n=300,easing:l=I,tick:d=b,css:u}=o||Re;u&&(s=le(e,0,1,n,t,l,u,r++)),d(0,1);const p=j()+t,m=p+n;i&&i.abort(),c=!0,be((()=>Se(e,!0,"start"))),i=U((t=>{if(c){if(t>=m)return d(1,0),Se(e,!0,"end"),a(),c=!1;if(t>=p){const e=l((t-p)/n);d(e,1-e)}}return c}))}let d=!1;return{start(){d||(de(e),E(o)?(o=o(),Ce().then(l)):l())},invalidate(){d=!1},end(){c&&(a(),c=!1)}}}(n,In,{duration:400,x:500})),h.start()})),w=!0)},o(e){Le(S,e),h&&h.invalidate(),v=function(e,t,n){let s,i=t(e,n),o=!0;const c=Te;function r(){const{delay:t=0,duration:n=300,easing:r=I,tick:a=b,css:l}=i||Re;l&&(s=le(e,1,0,n,t,r,l));const d=j()+t,u=d+n;be((()=>Se(e,!1,"start"))),U((t=>{if(o){if(t>=u)return a(0,1),Se(e,!1,"end"),--c.r||N(c.c),!1;if(t>=d){const e=r((t-d)/n);a(1-e,e)}}return o}))}return c.r+=1,E(i)?Ce().then((()=>{i=i(),r()})):r(),{end(t){t&&i.tick&&i.tick(1,0),o&&(s&&de(e,s),o=!1)}}}(n,In,{duration:400,x:500}),w=!1},d(e){e&&B(t),x&&x.d(),S&&S.d(e),e&&v&&v.end(),y=!1,N($)}}}function En(e,t,n){let{$$slots:s={},$$scope:o}=t;const c=ve();let r=!0,{loading:a=!1}=t,{dir:d="ltr"}=t,{title:u=p("global.close")}=t,{type:m=""}=t,{txt:h={close:p("global.closeOverlayPage")}}=t,{focuser:v}=t;function g(){setTimeout(i.setCaption,1e3)}function f(){c("close")}return me((()=>{n(0,d=document.body.dir),g()})),e.$$set=e=>{"loading"in e&&n(1,a=e.loading),"dir"in e&&n(0,d=e.dir),"title"in e&&n(2,u=e.title),"type"in e&&n(3,m=e.type),"txt"in e&&n(4,h=e.txt),"focuser"in e&&n(9,v=e.focuser),"$$scope"in e&&n(10,o=e.$$scope)},e.$$.update=()=>{8&e.$$.dirty&&g()},[d,a,u,m,h,f,function(e){r=!e.detail.isVisible},function(e){!r||"Escape"!==e.key&&27!==e.keyCode||(f(),e.preventDefault(),e.stopPropagation())},function(e){const t=new l(e);return n(9,v=t.getFocuser()),{destroy:t.destroy.bind(t)}},v,o,s]}class Cn extends Ge{constructor(e){var t;super(),$n.getElementById("svelte-1stpe6u-style")||((t=Y("style")).id="svelte-1stpe6u-style",t.textContent=".invisible.svelte-1stpe6u{visibility:hidden}",W($n.head,t)),We(this,e,En,Nn,C,{loading:1,dir:0,title:2,type:3,txt:4,focuser:9})}}var Sn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Mn="object"==typeof Sn&&Sn&&Sn.Object===Object&&Sn,Tn="object"==typeof self&&self&&self.Object===Object&&self;Mn||Tn||Function("return this")();function An(e){let t,n,s,i;return{c(){t=Y("div"),n=Y("kin-icon"),ee(n,"name",e[4]),X(t,"class",s="sve_toaster__theme "+(e[3]?"color-"+e[3]:"color-dark -bg")),X(t,"style",i=e[5]?"font-size:"+e[5]:"")},m(e,s){G(e,t,s),W(t,n)},p(e,o){16&o&&ee(n,"name",e[4]),8&o&&s!==(s="sve_toaster__theme "+(e[3]?"color-"+e[3]:"color-dark -bg"))&&X(t,"class",s),32&o&&i!==(i=e[5]?"font-size:"+e[5]:"")&&X(t,"style",i)},d(e){e&&B(t)}}}function Dn(e){let t,n;return{c(){t=Y("kin-icon"),ee(t,"name",e[4]),ee(t,"class",n="g-margin-bottom--20 "+(e[3]?"color-"+e[3]+" -text":""))},m(e,n){G(e,t,n)},p(e,s){16&s&&ee(t,"name",e[4]),8&s&&n!==(n="g-margin-bottom--20 "+(e[3]?"color-"+e[3]+" -text":""))&&ee(t,"class",n)},d(e){e&&B(t)}}}function On(e){let t,n;return{c(){t=Y("h2"),n=q(e[6]),X(t,"class","sve_toaster__title h3")},m(e,s){G(e,t,s),W(t,n)},p(e,t){64&t&&te(n,e[6])},d(e){e&&B(t)}}}function Ln(e){let t,n;function s(e,t){return e[10]?jn:Rn}let i=s(e),o=i(e),c=e[8]&&Pn(e);return{c(){t=Y("p"),o.c(),n=K(),c&&c.c(),X(t,"class","sve_toaster__text p -small")},m(e,s){G(e,t,s),o.m(t,null),W(t,n),c&&c.m(t,null)},p(e,r){i===(i=s(e))&&o?o.p(e,r):(o.d(1),o=i(e),o&&(o.c(),o.m(t,n))),e[8]?c?c.p(e,r):(c=Pn(e),c.c(),c.m(t,null)):c&&(c.d(1),c=null)},d(e){e&&B(t),o.d(),c&&c.d()}}}function Rn(e){let t;return{c(){t=q(e[7])},m(e,n){G(e,t,n)},p(e,n){128&n&&te(t,e[7])},d(e){e&&B(t)}}}function jn(e){let t,n;return{c(){n=Q(),t=new oe(n)},m(s,i){t.m(e[7],s,i),G(s,n,i)},p(e,n){128&n&&t.p(e[7])},d(e){e&&B(n),e&&t.d()}}}function Pn(e){let t,n,s,i,o;return{c(){t=q(" "),n=Y("button"),s=q(e[8]),X(n,"class","a g-font--capital")},m(c,r){G(c,t,r),G(c,n,r),W(n,s),i||(o=J(n,"click",e[14]),i=!0)},p(e,t){256&t&&te(s,e[8])},d(e){e&&B(t),e&&B(n),i=!1,o()}}}function Hn(e){let t;function n(e,t){return e[11]<0||100<e[11]?Un:zn}let s=n(e),i=s(e);return{c(){t=Y("div"),i.c(),X(t,"class","sve_toaster__progress")},m(e,n){G(e,t,n),i.m(t,null)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t,null)))},d(e){e&&B(t),i.d()}}}function zn(e){let t,n,s,i,o;return{c(){t=Y("kin-progress"),n=K(),s=Y("p"),i=q(e[11]),o=q("%"),ee(t,"percentage",e[11]),ee(t,"csscls","-standalone"),X(s,"class","p")},m(e,c){G(e,t,c),G(e,n,c),G(e,s,c),W(s,i),W(s,o)},p(e,n){2048&n&&ee(t,"percentage",e[11]),2048&n&&te(i,e[11])},d(e){e&&B(t),e&&B(n),e&&B(s)}}}function Un(e){let t;return{c(){t=Y("kin-progress"),ee(t,"percentage",e[11]),ee(t,"csscls","-standalone -unknown")},m(e,n){G(e,t,n)},p(e,n){2048&n&&ee(t,"percentage",e[11])},d(e){e&&B(t)}}}function Wn(e){let t,n,s,i;return{c(){t=Y("button"),n=q(e[9]),X(t,"class","btn sve_toaster__btn")},m(o,c){G(o,t,c),W(t,n),s||(i=J(t,"click",e[15]),s=!0)},p(e,t){512&t&&te(n,e[9])},d(e){e&&B(t),s=!1,i()}}}function Gn(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f,_,k,w,y,b,I=e[1]&&An(e),$=e[4]&&!e[1]&&Dn(e),x=e[6]&&On(e),E=e[7]&&Ln(e),C=(e[11]||0===e[11])&&Hn(e);const S=e[24].default,M=A(S,e,e[23],null);let T=e[9]&&Wn(e);return{c(){t=Y("div"),n=Y("div"),s=Y("h1"),s.innerHTML='<span class="logo -white -width-70"></span>',i=K(),o=Y("div"),c=Y("button"),l=K(),d=Y("div"),I&&I.c(),u=K(),$&&$.c(),m=K(),x&&x.c(),h=K(),E&&E.c(),v=K(),C&&C.c(),g=K(),M&&M.c(),f=K(),T&&T.c(),X(s,"class","nui_logo"),X(c,"class","nui_controls__item -close nui_caption_client"),X(c,"title",r=p("global.closeModalWindow")),X(o,"class","nui_controls"),X(n,"class","nui_titlebar -toaster nui_caption"),X(d,"class",_="nui_main -toaster\n\t\t"+(e[2]?"color-"+e[2]+" -bg":"")+"\n\t\t"+(e[1]?e[1]+"-toaster-icon":"")+"\n\t"),X(t,"class","sve_toaster"),ne(t,"width",e[0]+"px")},m(r,p){G(r,t,p),W(t,n),W(n,s),W(n,i),W(n,o),W(o,c),W(t,l),W(t,d),I&&I.m(d,null),W(d,u),$&&$.m(d,null),W(d,m),x&&x.m(d,null),W(d,h),E&&E.m(d,null),W(d,v),C&&C.m(d,null),W(d,g),M&&M.m(d,null),W(d,f),T&&T.m(d,null),w=!0,y||(b=[J(c,"click",e[13]),L(a=e[16].call(null,n)),L(k=e[17].call(null,d)),J(t,"click",e[12])],y=!0)},p(e,[n]){e[1]?I?I.p(e,n):(I=An(e),I.c(),I.m(d,u)):I&&(I.d(1),I=null),e[4]&&!e[1]?$?$.p(e,n):($=Dn(e),$.c(),$.m(d,m)):$&&($.d(1),$=null),e[6]?x?x.p(e,n):(x=On(e),x.c(),x.m(d,h)):x&&(x.d(1),x=null),e[7]?E?E.p(e,n):(E=Ln(e),E.c(),E.m(d,v)):E&&(E.d(1),E=null),e[11]||0===e[11]?C?C.p(e,n):(C=Hn(e),C.c(),C.m(d,g)):C&&(C.d(1),C=null),M&&M.p&&8388608&n&&O(M,S,e,e[23],n,null,null),e[9]?T?T.p(e,n):(T=Wn(e),T.c(),T.m(d,null)):T&&(T.d(1),T=null),(!w||6&n&&_!==(_="nui_main -toaster\n\t\t"+(e[2]?"color-"+e[2]+" -bg":"")+"\n\t\t"+(e[1]?e[1]+"-toaster-icon":"")+"\n\t"))&&X(d,"class",_),(!w||1&n)&&ne(t,"width",e[0]+"px")},i(e){w||(Oe(M,e),w=!0)},o(e){Le(M,e),w=!1},d(e){e&&B(t),I&&I.d(),$&&$.d(),x&&x.d(),E&&E.d(),C&&C.d(),M&&M.d(e),T&&T.d(),y=!1,N(b)}}}function Bn(e,t,n){let{$$slots:o={},$$scope:c}=t,{windowWidth:r=360}=t,{windowHeight:a=360}=t,{theme:l}=t,{skin:d}=t,{severity:u}=t,{icon:p}=t,{iconSize:m}=t,{title:h}=t,{text:v}=t,{textActionLabel:g}=t,{textActionLabelGA:f}=t,{progress:_}=t,{buttonLabel:k}=t,{buttonLabelGA:w}=t,{handleClose:y}=t,{allowHtml:b}=t;const I=ve();let $,x,N;var E;function C(){n(18,a=x.scrollHeight+$.scrollHeight),i.resize(r,a)}let S;return E=()=>{C(),N=new MutationObserver(C.bind(this)),N.observe(x,{attributes:!0,childList:!0,characterData:!0,subtree:!0})},pe().$$.after_update.push(E),he((()=>{N&&N.disconnect()})),e.$$set=e=>{"windowWidth"in e&&n(0,r=e.windowWidth),"windowHeight"in e&&n(18,a=e.windowHeight),"theme"in e&&n(1,l=e.theme),"skin"in e&&n(2,d=e.skin),"severity"in e&&n(3,u=e.severity),"icon"in e&&n(4,p=e.icon),"iconSize"in e&&n(5,m=e.iconSize),"title"in e&&n(6,h=e.title),"text"in e&&n(7,v=e.text),"textActionLabel"in e&&n(8,g=e.textActionLabel),"textActionLabelGA"in e&&n(19,f=e.textActionLabelGA),"progress"in e&&n(20,_=e.progress),"buttonLabel"in e&&n(9,k=e.buttonLabel),"buttonLabelGA"in e&&n(21,w=e.buttonLabelGA),"handleClose"in e&&n(22,y=e.handleClose),"allowHtml"in e&&n(10,b=e.allowHtml),"$$scope"in e&&n(23,c=e.$$scope)},e.$$.update=()=>{1048576&e.$$.dirty&&n(11,S=Number.isNaN(parseInt(_))?_:parseInt(_))},[r,l,d,u,p,m,h,v,g,k,b,S,function(){s.event("Toaster","Click","Area"),I("areaAction")},function(){s.event("Toaster","Close"),y?I("close"):i.close()},function(){f&&s.event("Toaster","Click",f),I("doTextAction")},function(){w&&s.event("Toaster","Click",w),I("doAction")},function(e){$=e},function(e){x=e},a,f,_,w,y,c,o]}class Fn extends Ge{constructor(e){super(),We(this,e,Bn,Gn,C,{windowWidth:0,windowHeight:18,theme:1,skin:2,severity:3,icon:4,iconSize:5,title:6,text:7,textActionLabel:8,textActionLabelGA:19,progress:20,buttonLabel:9,buttonLabelGA:21,handleClose:22,allowHtml:10})}}const Yn=Fe(void 0,(function(t){1==localStorage.deviceWatcherEnabled?t(!0):Promise.all([e("app.settings.Get","avcfg://settings/Hns/DeviceWatcherEnabled"),e("app.settings.Get","avdef://config/GuiCache/DeviceWatcher")]).then((e=>t(1==e[0]&&1==e[1]))).catch((()=>t(!1)))})),Vn=Ye(void 0,(function(){const t=[];return t.push(Yn.subscribe((n=>{void 0!==n&&(n?t.push(Xe.subscribe((t=>{if(void 0!==t){let t=!1;M(Yn)?e("asw.device_watcher.status").then((e=>(e.status&&"ok"===e.status&&(t=e.check),!1))).catch((()=>{})).finally((()=>{Vn.set(t)})):Vn.set(t)}}))):Vn.set(!1))}))),function(){t.forEach((e=>e()))}}));const qn=new class{constructor(){this._dwEnabled=Yn.subscribe((e=>{void 0!==e&&(this._dwEnabled=e)})),this.removedNets=new Set(localStorage.getItem("hns.removedNets")?localStorage.getItem("hns.removedNets").split(","):null)}start(t,n){const s={};return this._dwEnabled?(t&&(s.network_id=t),n&&(s.devices=n),new Promise((e=>{n||t&&t!==M(Xe)?e():Je.getLastScan().then((t=>{s.devices=t&&t.devices?t.devices:[],e()}))})).then((()=>e("asw.device_watcher.start",s).then((()=>{t&&t!==M(Xe)||Vn.set(!0);const e=t||M(Xe);this.removedNets.has(e)&&(this.removedNets.delete(e),localStorage.setItem("hns.removedNets",Array.from(this.removedNets).join(","))),localStorage.setItem("hns["+e+"watcherSet]","1")}))))):Promise.reject()}stop(t){const n={};return this._dwEnabled?(t&&(n.network_id=t),e("asw.device_watcher.stop",n).then((()=>{t&&t!==M(Xe)||Vn.set(!1)}))):Promise.reject()}toggleMyNetwork(e){return M(Vn)?this.stop():this.start(null,e)}getWatchedNetworks(){return this._dwEnabled?e("asw.device_watcher.networks").then((e=>Array.isArray(e)?e:[])).catch((()=>[])):Promise.resolve([])}getNetworks(e){return Je.getNetworks().then((t=>t?(e?t.forEach((e=>{this.removedNets.has(e.network_id)&&(e.removedNet=!0)})):t=t.filter((e=>!this.removedNets.has(e.network_id))),t):[])).catch((()=>[]))}removeNet(e){return!this.removedNets.has(e)&&(this.stop(e),this.removedNets.add(e),localStorage.setItem("hns.removedNets",Array.from(this.removedNets).join(",")),!0)}autoStart4firstTime(e,t){return e&&!localStorage.getItem("hns["+e+"watcherSet]")?this.start(e,t):Promise.reject()}};function Kn(e){let t;function n(e,t){return e[0]?Jn:Qn}let s=n(e),i=s(e);return{c(){i.c(),t=Q()},m(e,n){i.m(e,n),G(e,t,n)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&B(t)}}}function Qn(e){let t,n,s,i,o,c,r,a,l,d;return{c(){t=Y("div"),n=Y("input"),s=K(),i=Y("label"),i.textContent=`${p("network.watcher.toggle")}`,o=K(),c=Y("p"),c.textContent=`${p("network.watcher.desc")}`,r=K(),a=Y("kin-icon"),X(n,"type","checkbox"),X(n,"class","checkbox"),n.checked=e[2],X(n,"id","hns-device-watcher"),X(i,"class","checkbox__label"),X(i,"for","hns-device-watcher"),X(c,"class","checkbox__desc settings__indent"),ee(a,"name","icon-m-tools-wifi-inspector"),ee(a,"size","48"),ee(a,"class","hns_checkbox__row__icon svelte-veo8xz"),X(t,"class","checkbox__row hns_checkbox__row svelte-veo8xz")},m(u,p){G(u,t,p),W(t,n),W(t,s),W(t,i),W(t,o),W(t,c),W(t,r),W(t,a),l||(d=J(n,"click",Z(e[3])),l=!0)},p(e,t){4&t&&(n.checked=e[2])},d(e){e&&B(t),l=!1,d()}}}function Jn(e){let t,n,s,i,o,c;return{c(){t=Y("div"),n=Y("input"),s=K(),i=Y("label"),i.textContent=`${p("network.notify.newdevice")}`,X(n,"type","checkbox"),X(n,"class","checkbox"),n.checked=e[2],X(n,"id","hns-device-watcher2"),X(i,"class","checkbox__label"),X(i,"for","hns-device-watcher2"),X(t,"class","hns_tooltip__checkbox svelte-veo8xz")},m(r,a){G(r,t,a),W(t,n),W(t,s),W(t,i),o||(c=J(n,"click",Z(e[3])),o=!0)},p(e,t){4&t&&(n.checked=e[2])},d(e){e&&B(t),o=!1,c()}}}function Zn(e){let t,n=e[1]&&Kn(e);return{c(){n&&n.c(),t=Q()},m(e,s){n&&n.m(e,s),G(e,t,s)},p(e,[s]){e[1]?n?n.p(e,s):(n=Kn(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:b,o:b,d(e){n&&n.d(e),e&&B(t)}}}function Xn(e,t,n){let i,o;T(e,Vn,(e=>n(2,i=e))),T(e,Yn,(e=>n(1,o=e)));let c,{devices:r}=t,{networkId:a}=t,{inTooltip:l}=t,{autoWatch:d}=t;return e.$$set=e=>{"devices"in e&&n(4,r=e.devices),"networkId"in e&&n(5,a=e.networkId),"inTooltip"in e&&n(0,l=e.inTooltip),"autoWatch"in e&&n(6,d=e.autoWatch)},e.$$.update=()=>{114&e.$$.dirty&&o&&d&&qn.autoStart4firstTime(a,r).catch((()=>{}))},[l,o,i,function(){c||(c=!0,qn.toggleMyNetwork(r).finally((()=>c=!1)),s.event("HNS","Watcher",!i))},r,a,d]}class es extends Ge{constructor(e){var t;super(),document.getElementById("svelte-veo8xz-style")||((t=Y("style")).id="svelte-veo8xz-style",t.textContent=".hns_checkbox__row.svelte-veo8xz{padding:2rem 6rem 2rem 0;position:relative;margin:4rem auto;max-width:80%;border-top:solid 1px var(--table-border)}.hns_checkbox__row__icon.svelte-veo8xz{position:absolute;top:2rem;right:0}.hns_tooltip__checkbox.svelte-veo8xz{display:flex;margin-top:10px}",W(document.head,t)),We(this,e,Xn,Zn,C,{devices:4,networkId:5,inTooltip:0,autoWatch:6})}}function ts(e){let t,n;return t=new fn({props:{cssCls:"hns",layout:"detail",settingsUrl:qe,backHash:"#security",$$slots:{default:[ks],"page-content":[_s],"page-title":[ss]},$$scope:{ctx:e}}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};65787&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function ns(e){let t,n;return t=new fn({props:{cssCls:"hns -no-header -center-all",back:"false",loading:e[3],$$slots:{"page-content":[ws]},$$scope:{ctx:e}}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};8&n&&(s.loading=e[3]),65536&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function ss(e){let t,n,s,i;return{c(){t=Y("div"),n=Y("h1"),n.textContent=`${p("network")}`,s=K(),i=Y("p"),i.textContent=`${p("network.dash.desc")}`,X(n,"class","kin_header__title h1 -margins"),X(i,"class","p -center -secondary"),X(t,"slot","page-title")},m(e,o){G(e,t,o),W(t,n),W(t,s),W(t,i)},p:b,d(e){e&&B(t)}}}function is(e){let t,n,s,i,o,c,r,a,l,d,u;function p(e,t){return"stopping"===e[6]?rs:"running"===e[6]?cs:os}let m=p(e),h=m(e),v=e[7]&&as(e),g=e[1]&&e[1].networkInfo&&ls(e);return{c(){t=Y("div"),n=Y("kin-button"),s=Y("span"),h.c(),c=K(),v&&v.c(),r=K(),g&&g.c(),a=Q(),ee(n,"size","large"),ee(n,"data-test","scan_network-btn"),ee(n,"processing",i="running"===e[6]||"stopping"===e[6]),ee(n,"kin-disabled",o="stopping"===e[6]),X(t,"class","g-margin-bottom--20 g-margin-top--40")},m(i,o){G(i,t,o),W(t,n),W(n,s),h.m(s,null),W(t,c),v&&v.m(t,null),G(i,r,o),g&&g.m(i,o),G(i,a,o),l=!0,d||(u=J(n,"click",e[8]),d=!0)},p(e,c){m===(m=p(e))&&h?h.p(e,c):(h.d(1),h=m(e),h&&(h.c(),h.m(s,null))),(!l||64&c&&i!==(i="running"===e[6]||"stopping"===e[6]))&&ee(n,"processing",i),(!l||64&c&&o!==(o="stopping"===e[6]))&&ee(n,"kin-disabled",o),e[7]?v?v.p(e,c):(v=as(e),v.c(),v.m(t,null)):v&&(v.d(1),v=null),e[1]&&e[1].networkInfo?g?(g.p(e,c),2&c&&Oe(g,1)):(g=ls(e),g.c(),Oe(g,1),g.m(a.parentNode,a)):g&&(Ae(),Le(g,1,1,(()=>{g=null})),De())},i(e){l||(Oe(g),l=!0)},o(e){Le(g),l=!1},d(e){e&&B(t),h.d(),v&&v.d(),e&&B(r),g&&g.d(e),e&&B(a),d=!1,u()}}}function os(e){let t,n=p("network.scan")+"";return{c(){t=q(n)},m(e,n){G(e,t,n)},p:b,d(e){e&&B(t)}}}function cs(e){let t,n=p("network.scan.runs")+"";return{c(){t=q(n)},m(e,n){G(e,t,n)},p:b,d(e){e&&B(t)}}}function rs(e){let t,n=p("network.scan.stopping")+"";return{c(){t=q(n)},m(e,n){G(e,t,n)},p:b,d(e){e&&B(t)}}}function as(e){let t,n,s;return{c(){t=Y("kin-button"),t.textContent=`${p("network.last.result")}`,ee(t,"type","secondary"),ee(t,"class","g-margin-left--20"),ee(t,"size","large")},m(i,o){G(i,t,o),n||(s=J(t,"click",e[9]),n=!0)},p:b,d(e){e&&B(t),n=!1,s()}}}function ls(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f,_,k=p("network.connect.devices")+"",w=p("network.connected.to")+"",y=e[1].networkInfo.name+"",b=e[4]&&ds(e),I=e[1].networkInfo.encryption&&us(e),$=e[1].networkInfo.signal&&ps(e),x="home"===e[1].networkInfo.scanType&&fs();return{c(){t=Y("div"),n=q(k),s=Y("br"),i=K(),o=q(w),c=K(),r=Y("strong"),a=q(y),l=K(),d=Y("kin-tooltip"),u=Y("span"),u.innerHTML='<kin-icon name="circle-question" size="18"></kin-icon>',m=K(),h=Y("div"),b&&b.c(),v=K(),I&&I.c(),g=K(),$&&$.c(),f=K(),x&&x.c(),X(r,"data-test","hns_network-name"),X(u,"slot","tooltip-activator"),X(h,"slot","tooltip")},m(e,p){G(e,t,p),W(t,n),W(t,s),W(t,i),W(t,o),W(t,c),W(t,r),W(r,a),W(t,l),W(t,d),W(d,u),W(d,m),W(d,h),b&&b.m(h,null),W(h,v),I&&I.m(h,null),W(h,g),$&&$.m(h,null),W(h,f),x&&x.m(h,null),_=!0},p(e,t){(!_||2&t)&&y!==(y=e[1].networkInfo.name+"")&&te(a,y),e[4]?b?b.p(e,t):(b=ds(e),b.c(),b.m(h,v)):b&&(b.d(1),b=null),e[1].networkInfo.encryption?I?I.p(e,t):(I=us(e),I.c(),I.m(h,g)):I&&(I.d(1),I=null),e[1].networkInfo.signal?$?$.p(e,t):($=ps(e),$.c(),$.m(h,f)):$&&($.d(1),$=null),"home"===e[1].networkInfo.scanType?x?2&t&&Oe(x,1):(x=fs(),x.c(),Oe(x,1),x.m(h,null)):x&&(Ae(),Le(x,1,1,(()=>{x=null})),De())},i(e){_||(Oe(x),_=!0)},o(e){Le(x),_=!1},d(e){e&&B(t),b&&b.d(),I&&I.d(),$&&$.d(),x&&x.d()}}}function ds(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g=e[4].ip+"",f=e[4].isp+"";return{c(){t=Y("p"),t.textContent=`${p("network.info.ip")}:`,n=K(),s=Y("p"),i=q(g),o=K(),c=Y("p"),c.textContent=`${p("network.info.location")}:`,r=K(),a=Y("p"),l=q(e[5]),d=K(),u=Y("p"),u.textContent=`${p("network.info.isp")}:`,m=K(),h=Y("p"),v=q(f),X(t,"class","p -small -secondary"),X(s,"class","p -small -margins"),X(c,"class","p -small -secondary"),X(a,"class","p -small -margins"),X(u,"class","p -small -secondary"),X(h,"class","p -small -margins")},m(e,p){G(e,t,p),G(e,n,p),G(e,s,p),W(s,i),G(e,o,p),G(e,c,p),G(e,r,p),G(e,a,p),W(a,l),G(e,d,p),G(e,u,p),G(e,m,p),G(e,h,p),W(h,v)},p(e,t){16&t&&g!==(g=e[4].ip+"")&&te(i,g),32&t&&te(l,e[5]),16&t&&f!==(f=e[4].isp+"")&&te(v,f)},d(e){e&&B(t),e&&B(n),e&&B(s),e&&B(o),e&&B(c),e&&B(r),e&&B(a),e&&B(d),e&&B(u),e&&B(m),e&&B(h)}}}function us(e){let t,n,s,i,o,c,r=e[1].networkInfo.encryption+"",a=e[1].networkInfo.auth+"";return{c(){t=Y("p"),t.textContent=`${p("network.info.security")}:`,n=K(),s=Y("p"),i=q(r),o=q("/"),c=q(a),X(t,"class","p -small -secondary"),X(s,"class","p -small -margins g-font--uppercase")},m(e,r){G(e,t,r),G(e,n,r),G(e,s,r),W(s,i),W(s,o),W(s,c)},p(e,t){2&t&&r!==(r=e[1].networkInfo.encryption+"")&&te(i,r),2&t&&a!==(a=e[1].networkInfo.auth+"")&&te(c,a)},d(e){e&&B(t),e&&B(n),e&&B(s)}}}function ps(e){let t,n,s;function i(e,t){return e[1].networkInfo.signal>80?gs:e[1].networkInfo.signal>60?vs:e[1].networkInfo.signal>40?hs:ms}let o=i(e),c=o(e);return{c(){t=Y("p"),t.textContent=`${p("network.info.signal")}:`,n=K(),s=Y("div"),c.c(),X(t,"class","p -small -secondary"),X(s,"class","g-margin-bottom--10")},m(e,i){G(e,t,i),G(e,n,i),G(e,s,i),c.m(s,null)},p(e,t){o!==(o=i(e))&&(c.d(1),c=o(e),c&&(c.c(),c.m(s,null)))},d(e){e&&B(t),e&&B(n),e&&B(s),c.d()}}}function ms(e){let t;return{c(){t=Y("kin-progress"),ee(t,"percentage","25"),ee(t,"csscls","hns_network__signal -critical")},m(e,n){G(e,t,n)},d(e){e&&B(t)}}}function hs(e){let t;return{c(){t=Y("kin-progress"),ee(t,"percentage","50"),ee(t,"csscls","hns_network__signal -attention")},m(e,n){G(e,t,n)},d(e){e&&B(t)}}}function vs(e){let t;return{c(){t=Y("kin-progress"),ee(t,"percentage","75"),ee(t,"csscls","hns_network__signal -ok")},m(e,n){G(e,t,n)},d(e){e&&B(t)}}}function gs(e){let t;return{c(){t=Y("kin-progress"),ee(t,"percentage","100"),ee(t,"csscls","hns_network__signal -ok")},m(e,n){G(e,t,n)},d(e){e&&B(t)}}}function fs(e){let t,n;return t=new es({props:{inTooltip:!0}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function _s(e){let t,n,s,i,o=e[0]&&is(e);return{c(){t=Y("div"),n=Y("kin-view"),s=Y("div"),o&&o.c(),X(s,"slot","view-content"),ee(n,"loading",e[3]),ee(n,"csscls","-center"),X(t,"slot","page-content")},m(e,c){G(e,t,c),W(t,n),W(n,s),o&&o.m(s,null),i=!0},p(e,t){e[0]?o?(o.p(e,t),1&t&&Oe(o,1)):(o=is(e),o.c(),Oe(o,1),o.m(s,null)):o&&(Ae(),Le(o,1,1,(()=>{o=null})),De()),(!i||8&t)&&ee(n,"loading",e[3])},i(e){i||(Oe(o),i=!0)},o(e){Le(o),i=!1},d(e){e&&B(t),o&&o.d()}}}function ks(e){let t;return{c(){t=K()},m(e,n){G(e,t,n)},p:b,i:b,o:b,d(e){e&&B(t)}}}function ws(e){let t,n,s,i,o,c,r,a,l,d,u,m;return{c(){t=Y("div"),n=Y("kin-icon"),s=K(),i=Y("div"),o=Y("h1"),o.textContent=`${p("network.vpn.turn.off.title")}`,c=K(),r=Y("p"),r.textContent=`${p("network.vpn.turn.off.desc")}`,a=K(),l=Y("div"),d=Y("kin-button"),d.textContent=`${p("network.vpn.turn.off")}`,ee(n,"name","circle-attention"),ee(n,"class","kin_scan__icon"),ee(n,"size","96"),X(o,"class","h1 kin_scan__title -overlay"),X(r,"class","kin_scan__subtitle -overlay"),X(i,"class","kin_scan__result"),ee(d,"size","large"),X(l,"class","kin_scan__actions"),X(t,"slot","page-content")},m(p,h){G(p,t,h),W(t,n),W(t,s),W(t,i),W(i,o),W(i,c),W(i,r),W(t,a),W(t,l),W(l,d),u||(m=J(d,"click",e[10]),u=!0)},p:b,d(e){e&&B(t),u=!1,m()}}}function ys(e){let t,n,s,i;const o=[ns,ts],c=[];function r(e,t){return e[2]?0:1}return t=r(e),n=c[t]=o[t](e),{c(){n.c(),s=Q()},m(e,n){c[t].m(e,n),G(e,s,n),i=!0},p(e,[i]){let a=t;t=r(e),t===a?c[t].p(e,i):(Ae(),Le(c[a],1,1,(()=>{c[a]=null})),De(),n=c[t],n?n.p(e,i):(n=c[t]=o[t](e),n.c()),Oe(n,1),n.m(s.parentNode,s))},i(e){i||(Oe(n),i=!0)},o(e){Le(n),i=!1},d(e){c[t].d(e),e&&B(s)}}}function bs(e,t,n){let i,o,c,r,a;T(e,it,(e=>n(6,i=e))),T(e,tt,(e=>n(1,o=e))),T(e,Xe,(e=>n(11,c=e))),T(e,ot,(e=>n(2,r=e))),T(e,st,(e=>n(7,a=e)));const l=ve();let d,u,p,m,h=!0,v="";const g=Xe.subscribe((e=>{void 0!==e&&(null===e?n(4,u=!1):fetch("https://ip-info.ff.avast.com/v2/info").then((e=>e.json())).then((e=>{n(4,u=e),n(5,v=`\n\t\t\t\t\t\t\t${u.postalCode&&u.city?u.postalCode+", ":""}\n\t\t\t\t\t\t\t${u.city?u.city+", ":""}\n\t\t\t\t\t\t\t${u.countryName?u.countryName+", ":""}\n\t\t\t\t\t\t\t${u.continent?u.continent:""}\n\t\t\t\t\t\t`)})).catch((()=>n(4,u=!1))))}));return he((()=>{m&&clearTimeout(m),g()})),e.$$.update=()=>{2055&e.$$.dirty&&(d||void 0===o||void 0===c||void 0===r||(n(0,d=!0),s.view("HNS/LP_"+o.networkInfo.scanType||"home_public"),r&&s.view("HNS-VPN_running"),n(3,h=!1)))},[d,o,r,h,u,v,i,a,function(){p||"stopping"===i||("running"===i?yt().then((e=>l("showScan",e))).catch((e=>{"TYPE"===e?(it.stopping(),Je.stopScan(),m=setTimeout((()=>{l("scanNetwork")}),5e3)):l("scanNetwork")})):(s.event("HNS","Click","OpenStartScanModal"),l("scanNetwork")))},function(){p||(p=!0,s.event("HNS","Click","LastScanResult"),Je.getLastScan().then((e=>{if(localStorage.getItem("DEBUG_HNS")&&(localStorage.setItem("hnsLastResult",JSON.stringify(e)),localStorage.getItem("hnsResult")&&(e=JSON.parse(localStorage.getItem("hnsResult")),console.log("-----\nHNS - override last scan result with data from hnsResult in localstorage\n-----"))),!e)return Promise.reject("no data from backend");const t=new wt;return t.ran=!0,t.type=M(tt).networkInfo.scanType,t.protocol=e.protocol_version,t.time=e.time,e.devices&&(t.deviceUpdates={},e.devices.forEach((function(e){this[e.device_id]=e}),t.deviceUpdates)),t.done(),t})).then((e=>l("showScan",e))).finally((()=>p=!1)))},function(){s.event("HNS","Click","VpnTurnOff"),Je.openVpn()},c]}class Is extends Ge{constructor(e){super(),We(this,e,bs,ys,C,{})}}function $s(e){let t,n,s,i,o,c,r,a,l=p("network.connected.to")+"",d=e[0].networkInfo.name+"";return{c(){t=Y("div"),n=Y("h2"),s=Y("p"),i=q(l),o=K(),c=Y("strong"),r=q(d),a=q("."),X(s,"class","sve_modal__subtitle"),X(n,"class","sve_modal__title"),X(t,"slot","modal-header"),X(t,"data-test","scan_type-mdl-hdrttl")},m(e,l){G(e,t,l),W(t,n),W(n,s),W(s,i),W(s,o),W(s,c),W(c,r),W(s,a)},p(e,t){1&t&&d!==(d=e[0].networkInfo.name+"")&&te(r,d)},d(e){e&&B(t)}}}function xs(e){let t,n,s,i,o,c,r,a;return{c(){t=Y("div"),n=Y("kin-tile"),i=K(),o=Y("kin-tile"),ee(n,"data-test","hns_scan-home"),ee(n,"label",s=p("network.home.title")),ee(n,"size","large"),ee(n,"icon","icon-l-scan-home"),ee(n,"class","g-margin--20"),ee(o,"data-test","hns_scan-public"),ee(o,"label",c=p("network.public.title")),ee(o,"size","large"),ee(o,"icon","icon-l-scan-public"),ee(o,"class","g-margin--20"),X(t,"slot","modal-content")},m(s,c){G(s,t,c),W(t,n),W(t,i),W(t,o),r||(a=[J(n,"click",e[3]),J(o,"click",e[4])],r=!0)},p:b,d(e){e&&B(t),r=!1,N(a)}}}function Ns(e){let t;return{c(){t=K()},m(e,n){G(e,t,n)},p:b,d(e){e&&B(t)}}}function Es(e){let t,n;return t=new Wt({props:{title:p("network.scan.choose"),closable:!0,$$slots:{default:[Ns],"modal-content":[xs],"modal-header":[$s]},$$scope:{ctx:e}}}),t.$on("close",e[5]),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,[n]){const s={};65&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function Cs(e,t,n){let i;T(e,tt,(e=>n(0,i=e)));const o=ve();function c(e){s.event("HNS","Click","StartScan_"+e),o("startScan",e)}return[i,o,c,()=>c("home"),()=>c("public"),()=>o("close")]}class Ss extends Ge{constructor(e){super(),We(this,e,Cs,Es,C,{})}}function Ms(e,t,n){const s=e.slice();return s[12]=t[n],s}function Ts(e,t,n){const s=e.slice();return s[15]=t[n],s}function As(e,t,n){const s=e.slice();return s[18]=t[n],s[20]=n,s}function Ds(e,t,n){const s=e.slice();return s[18]=t[n],s[20]=n,s}function Os(e){let t,n=p("network.device.name.unknown")+"";return{c(){t=q(n)},m(e,n){G(e,t,n)},p:b,d(e){e&&B(t)}}}function Ls(e){let t,n=e[0].nameModel+"";return{c(){t=q(n)},m(e,n){G(e,t,n)},p(e,s){1&s&&n!==(n=e[0].nameModel+"")&&te(t,n)},d(e){e&&B(t)}}}function Rs(e){let t,n,s,i,o,c=p("network.shadow.lastscan")+"";return{c(){t=q(c),n=K(),s=Y("button"),s.textContent=`${p("network.shadow.forget")}`,X(s,"class","a")},m(c,r){G(c,t,r),G(c,n,r),G(c,s,r),i||(o=J(s,"click",e[4]),i=!0)},p:b,d(e){e&&B(t),e&&B(n),e&&B(s),i=!1,o()}}}function js(e){let t,n,s;return{c(){t=Y("kin-icon"),n=K(),s=Y("span"),s.textContent=`${p("network.device.vulnerable")}`,ee(t,"name","icon-s-fill-unsecured"),ee(t,"size","16"),X(s,"class","-text g-margin-left--5")},m(e,i){G(e,t,i),G(e,n,i),G(e,s,i)},p:b,d(e){e&&B(t),e&&B(n),e&&B(s)}}}function Ps(e){let t,n,s,i,o,c,r;function a(e,t){return e[0].nameModel?Ls:Os}let l=a(e),d=l(e);function u(e,t){return e[0].isVulnerable?js:e[0].data.is_shadow?Rs:void 0}let p=u(e),m=p&&p(e);return{c(){t=Y("div"),n=Y("h2"),s=Y("kin-icon"),o=K(),d.c(),c=K(),r=Y("p"),m&&m.c(),ee(s,"name",i=e[0].icon),ee(s,"size","36"),ee(s,"class","g-margin-right--10"),X(n,"class","h2"),X(r,"class","p -small g-margin-top--5"),X(t,"slot","page-title"),X(t,"data-test","hns_device-name")},m(e,i){G(e,t,i),W(t,n),W(n,s),W(n,o),d.m(n,null),W(t,c),W(t,r),m&&m.m(r,null)},p(e,t){1&t&&i!==(i=e[0].icon)&&ee(s,"name",i),l===(l=a(e))&&d?d.p(e,t):(d.d(1),d=l(e),d&&(d.c(),d.m(n,null))),p===(p=u(e))&&m?m.p(e,t):(m&&m.d(1),m=p&&p(e),m&&(m.c(),m.m(r,null)))},d(e){e&&B(t),d.d(),m&&m.d()}}}function Hs(e){let t,n,s=e[0].issues,i=[];for(let c=0;c<s.length;c+=1)i[c]=Us(Ds(e,s,c));let o=e[0].skippedIssuesCount&&Ws(e);return{c(){t=Y("div");for(let e=0;e<i.length;e+=1)i[e].c();n=K(),o&&o.c(),X(t,"class","g-margin-top--20 g-margin-bottom--20")},m(e,s){G(e,t,s);for(let n=0;n<i.length;n+=1)i[n].m(t,null);W(t,n),o&&o.m(t,null)},p(e,c){if(131&c){let o;for(s=e[0].issues,o=0;o<s.length;o+=1){const r=Ds(e,s,o);i[o]?i[o].p(r,c):(i[o]=Us(r),i[o].c(),i[o].m(t,n))}for(;o<i.length;o+=1)i[o].d(1);i.length=s.length}e[0].skippedIssuesCount?o?o.p(e,c):(o=Ws(e),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},d(e){e&&B(t),F(i,e),o&&o.d()}}}function zs(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f,_,k,w=e[18].getTitle(e[1])+"";function y(){return e[9](e[20])}return{c(){t=Y("div"),n=Y("div"),s=Y("kin-icon"),o=K(),c=Y("kin-icon"),r=K(),a=Y("div"),l=Y("strong"),d=q(w),u=Y("br"),m=K(),h=Y("span"),h.textContent=`${p("network.issue.resolve.soon")}`,v=K(),g=Y("div"),f=Y("kin-button"),f.textContent=`${p("network.issue.howtofix")}`,ee(s,"name",i=e[18].icon),ee(s,"size","24"),ee(s,"class","hns_remedy__icon svelte-1efko2c"),ee(c,"name","icon-s-fill-unsecured"),ee(c,"size","16"),ee(c,"class","row__icon__status"),X(n,"class","row__icon"),X(l,"class","-text color-white"),X(a,"class","row__main"),ee(f,"size","small"),ee(f,"data-test","hns_seehowtofix-btn"),X(g,"class","row__actions"),X(t,"class","row -hoverable -borderless hns_remedy svelte-1efko2c"),X(t,"data-test","hns_vuln-row")},m(e,i){G(e,t,i),W(t,n),W(n,s),W(n,o),W(n,c),W(t,r),W(t,a),W(a,l),W(l,d),W(a,u),W(a,m),W(a,h),W(t,v),W(t,g),W(g,f),_||(k=J(t,"click",y),_=!0)},p(t,n){e=t,1&n&&i!==(i=e[18].icon)&&ee(s,"name",i),3&n&&w!==(w=e[18].getTitle(e[1])+"")&&te(d,w)},d(e){e&&B(t),_=!1,k()}}}function Us(e){let t,n=!e[0].issues[e[20]].state&&zs(e);return{c(){n&&n.c(),t=Q()},m(e,s){n&&n.m(e,s),G(e,t,s)},p(e,s){e[0].issues[e[20]].state?n&&(n.d(1),n=null):n?n.p(e,s):(n=zs(e),n.c(),n.m(t.parentNode,t))},d(e){n&&n.d(e),e&&B(t)}}}function Ws(e){let t,n,s,i,o=p("network.ignored.problems",e[0].skippedIssuesCount)+"",c=e[0].issues,r=[];for(let a=0;a<c.length;a+=1)r[a]=Bs(As(e,c,a));return{c(){t=Y("h5"),n=q(o),s=K();for(let e=0;e<r.length;e+=1)r[e].c();i=Q(),X(t,"class","h6 kin_table__row -title")},m(e,o){G(e,t,o),W(t,n),G(e,s,o);for(let t=0;t<r.length;t+=1)r[t].m(e,o);G(e,i,o)},p(e,t){if(1&t&&o!==(o=p("network.ignored.problems",e[0].skippedIssuesCount)+"")&&te(n,o),131&t){let n;for(c=e[0].issues,n=0;n<c.length;n+=1){const s=As(e,c,n);r[n]?r[n].p(s,t):(r[n]=Bs(s),r[n].c(),r[n].m(i.parentNode,i))}for(;n<r.length;n+=1)r[n].d(1);r.length=c.length}},d(e){e&&B(t),e&&B(s),F(r,e),e&&B(i)}}}function Gs(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f,_,k,w,y=e[18].getTitle(e[1])+"";function b(){return e[10](e[20])}return{c(){t=Y("div"),n=Y("div"),s=Y("kin-icon"),o=K(),c=Y("kin-icon"),r=K(),a=Y("div"),l=Y("strong"),d=q(y),u=Y("br"),m=K(),h=Y("span"),h.textContent=`${p("network.issue.resolve.soon")}`,v=K(),g=Y("div"),f=Y("kin-button"),f.textContent=`${p("network.issue.howtofix")}`,_=K(),ee(s,"name",i=e[18].icon),ee(s,"size","24"),ee(s,"class","hns_remedy__icon svelte-1efko2c"),ee(c,"name","icon-s-fill-unsecured"),ee(c,"size","16"),ee(c,"class","row__icon__status"),X(n,"class","row__icon"),X(l,"class","-text color-white"),X(a,"class","row__main"),ee(f,"size","small"),X(g,"class","row__actions"),X(t,"class","row -hoverable -borderless hns_remedy svelte-1efko2c")},m(e,i){G(e,t,i),W(t,n),W(n,s),W(n,o),W(n,c),W(t,r),W(t,a),W(a,l),W(l,d),W(a,u),W(a,m),W(a,h),W(t,v),W(t,g),W(g,f),W(t,_),k||(w=J(t,"click",b),k=!0)},p(t,n){e=t,1&n&&i!==(i=e[18].icon)&&ee(s,"name",i),3&n&&y!==(y=e[18].getTitle(e[1])+"")&&te(d,y)},d(e){e&&B(t),k=!1,w()}}}function Bs(e){let t,n="skipped"===e[0].issues[e[20]].state&&Gs(e);return{c(){n&&n.c(),t=Q()},m(e,s){n&&n.m(e,s),G(e,t,s)},p(e,s){"skipped"===e[0].issues[e[20]].state?n?n.p(e,s):(n=Gs(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&B(t)}}}function Fs(e){let t,n,s,i,o;return{c(){t=Y("kin-button"),n=Y("kin-icon"),ee(n,"name","icon-m-action-pen"),ee(n,"size","18"),ee(t,"title",s=p("global.edit")),ee(t,"icononly",""),ee(t,"type","blank"),ee(t,"size","small")},m(s,c){G(s,t,c),W(t,n),i||(o=J(t,"click",e[8]),i=!0)},p:b,d(e){e&&B(t),i=!1,o()}}}function Ys(e){let t;return{c(){t=q("-")},m(e,n){G(e,t,n)},p:b,d(e){e&&B(t)}}}function Vs(e){let t,n=_t.mac(e[0].mac)+"";return{c(){t=q(n)},m(e,n){G(e,t,n)},p(e,s){1&s&&n!==(n=_t.mac(e[0].mac)+"")&&te(t,n)},d(e){e&&B(t)}}}function qs(e){let t,n,s,i,o,c=e[0].os+"";return{c(){t=Y("div"),n=Y("div"),n.textContent=`${p("network.scan.props.os")}`,s=K(),i=Y("div"),o=q(c),X(t,"class","row -details -compact")},m(e,c){G(e,t,c),W(t,n),W(t,s),W(t,i),W(i,o)},p(e,t){1&t&&c!==(c=e[0].os+"")&&te(o,c)},d(e){e&&B(t)}}}function Ks(e){let t,n,s,i,o,c=e[0].vendor+"";return{c(){t=Y("div"),n=Y("div"),n.textContent=`${p("network.scan.props.vendor")}`,s=K(),i=Y("div"),o=q(c),X(t,"class","row -details -compact")},m(e,c){G(e,t,c),W(t,n),W(t,s),W(t,i),W(i,o)},p(e,t){1&t&&c!==(c=e[0].vendor+"")&&te(o,c)},d(e){e&&B(t)}}}function Qs(e){let t,n,s,i,o,c=e[0].model+"";return{c(){t=Y("div"),n=Y("div"),n.textContent=`${p("network.scan.props.model")}`,s=K(),i=Y("div"),o=q(c),X(t,"class","row -details -compact")},m(e,c){G(e,t,c),W(t,n),W(t,s),W(t,i),W(i,o)},p(e,t){1&t&&c!==(c=e[0].model+"")&&te(o,c)},d(e){e&&B(t)}}}function Js(e){let t,n,s,i,o,c=e[0].data.kv.DNS_NAME+"";return{c(){t=Y("div"),n=Y("div"),n.textContent=`${p("network.scan.props.dnsname")}`,s=K(),i=Y("div"),o=q(c),X(t,"class","row -details -compact")},m(e,c){G(e,t,c),W(t,n),W(t,s),W(t,i),W(i,o)},p(e,t){1&t&&c!==(c=e[0].data.kv.DNS_NAME+"")&&te(o,c)},d(e){e&&B(t)}}}function Zs(e){let t,n,s,i,o=e[0].interfaces,c=[];for(let r=0;r<o.length;r+=1)c[r]=ti(Ts(e,o,r));return{c(){t=Y("section"),n=Y("div"),s=Y("h5"),s.textContent=`${p("network.scan.props.interfaces")}`,i=K();for(let e=0;e<c.length;e+=1)c[e].c();X(s,"class","h6 row__title"),X(n,"class","row -details -compact"),X(t,"class","g-margin-top--40")},m(e,o){G(e,t,o),W(t,n),W(n,s),W(t,i);for(let n=0;n<c.length;n+=1)c[n].m(t,null)},p(e,n){if(1&n){let s;for(o=e[0].interfaces,s=0;s<o.length;s+=1){const i=Ts(e,o,s);c[s]?c[s].p(i,n):(c[s]=ti(i),c[s].c(),c[s].m(t,null))}for(;s<c.length;s+=1)c[s].d(1);c.length=o.length}},d(e){e&&B(t),F(c,e)}}}function Xs(e){let t,n,s,i,o,c=e[15].kv.ADAPTER_NAME+"";return{c(){t=Y("div"),n=Y("div"),n.textContent=`${p("network.scan.props.name")}`,s=K(),i=Y("div"),o=q(c),X(t,"class","row -details -compact")},m(e,c){G(e,t,c),W(t,n),W(t,s),W(t,i),W(i,o)},p(e,t){1&t&&c!==(c=e[15].kv.ADAPTER_NAME+"")&&te(o,c)},d(e){e&&B(t)}}}function ei(e){let t,n,s,i,o,c=e[15].ip+"";return{c(){t=Y("div"),n=Y("div"),n.textContent=`${p("network.scan.props.ip")}`,s=K(),i=Y("div"),o=q(c),X(t,"class","row -details -compact")},m(e,c){G(e,t,c),W(t,n),W(t,s),W(t,i),W(i,o)},p(e,t){1&t&&c!==(c=e[15].ip+"")&&te(o,c)},d(e){e&&B(t)}}}function ti(e){let t,n,s,i,o,c,r,a,l=_t.mac(e[15].mac)+"",d=e[15].kv&&e[15].kv.ADAPTER_NAME&&Xs(e),u=e[15].ip&&ei(e);return{c(){d&&d.c(),t=K(),u&&u.c(),n=K(),s=Y("div"),i=Y("div"),i.textContent=`${p("network.scan.props.mac")}`,o=K(),c=Y("div"),r=q(l),a=K(),X(s,"class","row -details -compact")},m(e,l){d&&d.m(e,l),G(e,t,l),u&&u.m(e,l),G(e,n,l),G(e,s,l),W(s,i),W(s,o),W(s,c),W(c,r),W(s,a)},p(e,s){e[15].kv&&e[15].kv.ADAPTER_NAME?d?d.p(e,s):(d=Xs(e),d.c(),d.m(t.parentNode,t)):d&&(d.d(1),d=null),e[15].ip?u?u.p(e,s):(u=ei(e),u.c(),u.m(n.parentNode,n)):u&&(u.d(1),u=null),1&s&&l!==(l=_t.mac(e[15].mac)+"")&&te(r,l)},d(e){d&&d.d(e),e&&B(t),u&&u.d(e),e&&B(n),e&&B(s)}}}function ni(e){let t,n,s,i,o,c,r,a,l,d,u,m=e[0].services,h=[];for(let p=0;p<m.length;p+=1)h[p]=si(Ms(e,m,p));return{c(){t=Y("section"),n=Y("div"),s=Y("h5"),s.textContent=`${p("network.scan.props.services")}`,i=K(),o=Y("div"),c=Y("div"),c.textContent=`${p("network.serviceType")}`,r=K(),a=Y("div"),a.textContent=`${p("network.port")}`,l=K(),d=Y("div"),d.textContent=`${p("network.scan.props.transportProtocol")}`,u=K();for(let e=0;e<h.length;e+=1)h[e].c();X(s,"class","h6 row__title"),X(n,"class","row -details -compact"),X(c,"class","hns_services__type svelte-1efko2c"),X(a,"class","hns_services__port svelte-1efko2c"),X(d,"class","hns_services__protocol svelte-1efko2c"),X(o,"class","row -details -compact"),X(t,"class","g-margin-top--40")},m(e,p){G(e,t,p),W(t,n),W(n,s),W(t,i),W(t,o),W(o,c),W(o,r),W(o,a),W(o,l),W(o,d),W(t,u);for(let n=0;n<h.length;n+=1)h[n].m(t,null)},p(e,n){if(1&n){let s;for(m=e[0].services,s=0;s<m.length;s+=1){const i=Ms(e,m,s);h[s]?h[s].p(i,n):(h[s]=si(i),h[s].c(),h[s].m(t,null))}for(;s<h.length;s+=1)h[s].d(1);h.length=m.length}},d(e){e&&B(t),F(h,e)}}}function si(e){let t,n,s,i,o,c,r,a,l,d,u=(e[12].service_type||"-")+"",m=(e[12].port||"-")+"",h=(null!=e[12].transport_protocol?p("network.scan.props.transportProtocol."+e[12].transport_protocol):"")+"";return{c(){t=Y("div"),n=Y("div"),s=q(u),i=K(),o=Y("div"),c=q(m),r=K(),a=Y("div"),l=q(h),d=K(),X(n,"class","hns_services__type svelte-1efko2c"),X(o,"class","hns_services__port svelte-1efko2c"),X(a,"class","hns_services__protocol svelte-1efko2c"),X(t,"class","row -details -compact")},m(e,u){G(e,t,u),W(t,n),W(n,s),W(t,i),W(t,o),W(o,c),W(t,r),W(t,a),W(a,l),W(t,d)},p(e,t){1&t&&u!==(u=(e[12].service_type||"-")+"")&&te(s,u),1&t&&m!==(m=(e[12].port||"-")+"")&&te(c,m),1&t&&h!==(h=(null!=e[12].transport_protocol?p("network.scan.props.transportProtocol."+e[12].transport_protocol):"")+"")&&te(l,h)},d(e){e&&B(t)}}}function ii(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f,_,k,w,y,b,I,$,x,N,E,C,S,M,T,A,D,O,L,R,j,P,H,z,U,F,V,Q,J,Z=p("network.device.types."+e[0].type)+"",ne=(e[0].name||p("network.device.name.unknown"))+"",se=e[0].ip+"",ie=e[0].issues&&Hs(e),oe=!e[0].data.is_shadow&&Fs(e);function ce(e,t){return e[0].mac?Vs:Ys}let re=ce(e),ae=re(e),le=e[0].os&&qs(e),de=e[0].vendor&&Ks(e),ue=e[0].model&&Qs(e),pe=e[0].data.kv.DNS_NAME&&Js(e),me=e[0].interfaces.length&&Zs(e),he=e[0].services&&e[0].services.length&&ni(e);return{c(){t=Y("div"),n=Y("kin-view"),s=Y("div"),ie&&ie.c(),i=K(),o=Y("section"),c=Y("div"),r=Y("h5"),r.textContent=`${p("global.details")}`,a=K(),oe&&oe.c(),l=K(),d=Y("div"),u=Y("div"),u.textContent=`${p("network.device.type")}`,m=K(),h=Y("div"),v=Y("kin-icon"),f=K(),_=q(Z),k=K(),w=Y("div"),y=Y("div"),y.textContent=`${p("network.device.name")}`,b=K(),I=Y("div"),$=q(ne),x=K(),N=Y("section"),E=Y("div"),C=Y("h5"),C.textContent=`${p("network.technicalInfo")}`,S=K(),M=Y("div"),T=Y("div"),T.textContent=`${p("network.scan.props.ip")}`,A=K(),D=Y("div"),O=q(se),L=K(),R=Y("div"),j=Y("div"),j.textContent=`${p("network.scan.props.mac")}`,P=K(),H=Y("div"),ae.c(),z=K(),le&&le.c(),U=K(),de&&de.c(),F=K(),ue&&ue.c(),V=K(),pe&&pe.c(),Q=K(),me&&me.c(),J=K(),he&&he.c(),X(r,"class","h6 row__title"),X(c,"class","row -details -compact"),ee(v,"name",g=e[0].icon),ee(v,"size","24"),X(d,"class","row -details -compact"),X(w,"class","row -details -compact"),X(o,"class","g-margin-top--30"),X(C,"class","h6 row__title"),X(E,"class","row -details -compact"),X(M,"class","row -details -compact"),X(R,"class","row -details -compact"),X(N,"class","g-margin-top--40"),X(s,"slot","view-content"),ee(n,"csscls","-detail"),X(t,"slot","page-content")},m(e,p){G(e,t,p),W(t,n),W(n,s),ie&&ie.m(s,null),W(s,i),W(s,o),W(o,c),W(c,r),W(c,a),oe&&oe.m(c,null),W(o,l),W(o,d),W(d,u),W(d,m),W(d,h),W(h,v),W(h,f),W(h,_),W(o,k),W(o,w),W(w,y),W(w,b),W(w,I),W(I,$),W(s,x),W(s,N),W(N,E),W(E,C),W(N,S),W(N,M),W(M,T),W(M,A),W(M,D),W(D,O),W(N,L),W(N,R),W(R,j),W(R,P),W(R,H),ae.m(H,null),W(N,z),le&&le.m(N,null),W(N,U),de&&de.m(N,null),W(N,F),ue&&ue.m(N,null),W(N,V),pe&&pe.m(N,null),W(s,Q),me&&me.m(s,null),W(s,J),he&&he.m(s,null)},p(e,t){e[0].issues?ie?ie.p(e,t):(ie=Hs(e),ie.c(),ie.m(s,i)):ie&&(ie.d(1),ie=null),e[0].data.is_shadow?oe&&(oe.d(1),oe=null):oe?oe.p(e,t):(oe=Fs(e),oe.c(),oe.m(c,null)),1&t&&g!==(g=e[0].icon)&&ee(v,"name",g),1&t&&Z!==(Z=p("network.device.types."+e[0].type)+"")&&te(_,Z),1&t&&ne!==(ne=(e[0].name||p("network.device.name.unknown"))+"")&&te($,ne),1&t&&se!==(se=e[0].ip+"")&&te(O,se),re===(re=ce(e))&&ae?ae.p(e,t):(ae.d(1),ae=re(e),ae&&(ae.c(),ae.m(H,null))),e[0].os?le?le.p(e,t):(le=qs(e),le.c(),le.m(N,U)):le&&(le.d(1),le=null),e[0].vendor?de?de.p(e,t):(de=Ks(e),de.c(),de.m(N,F)):de&&(de.d(1),de=null),e[0].model?ue?ue.p(e,t):(ue=Qs(e),ue.c(),ue.m(N,V)):ue&&(ue.d(1),ue=null),e[0].data.kv.DNS_NAME?pe?pe.p(e,t):(pe=Js(e),pe.c(),pe.m(N,null)):pe&&(pe.d(1),pe=null),e[0].interfaces.length?me?me.p(e,t):(me=Zs(e),me.c(),me.m(s,J)):me&&(me.d(1),me=null),e[0].services&&e[0].services.length?he?he.p(e,t):(he=ni(e),he.c(),he.m(s,null)):he&&(he.d(1),he=null)},d(e){e&&B(t),ie&&ie.d(),oe&&oe.d(),ae.d(),le&&le.d(),de&&de.d(),ue&&ue.d(),pe&&pe.d(),me&&me.d(),he&&he.d()}}}function oi(e){let t;return{c(){t=K()},m(e,n){G(e,t,n)},p:b,d(e){e&&B(t)}}}function ci(e){let t,n;return t=new Wt({props:{closable:!0,$$slots:{default:[li],"modal-footer":[ai],"modal-content":[ri]},$$scope:{ctx:e}}}),t.$on("close",e[5]),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};4194312&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function ri(e){let t,n,s,i,o,c,r,a,l,d=p("network.shadow.forget.desc")+"",u=e[3].networkInfo.name+"";return{c(){t=Y("div"),n=Y("kin-icon"),s=K(),i=Y("p"),i.textContent=`${p("network.shadow.forget")}?`,o=K(),c=Y("p"),r=q(d),a=K(),l=q(u),ee(n,"name","circle-attention"),ee(n,"size","80"),ee(n,"class","g-margin-bottom--20"),X(i,"class","sve_modal__title"),X(c,"class","g-margin-bottom--50"),X(t,"slot","modal-content")},m(e,d){G(e,t,d),W(t,n),W(t,s),W(t,i),W(t,o),W(t,c),W(c,r),W(c,a),W(c,l)},p(e,t){8&t&&u!==(u=e[3].networkInfo.name+"")&&te(l,u)},d(e){e&&B(t)}}}function ai(e){let t,n,s,i,o,c;return{c(){t=Y("div"),n=Y("kin-button"),n.textContent=`${p("network.forget")}`,s=K(),i=Y("kin-button"),i.textContent=`${p("network.cancel")}`,ee(i,"type","secondary"),ee(i,"class","g-margin-left--20"),X(t,"slot","modal-footer")},m(r,a){G(r,t,a),W(t,n),W(t,s),W(t,i),o||(c=[J(n,"click",e[6]),J(i,"click",e[5])],o=!0)},p:b,d(e){e&&B(t),o=!1,N(c)}}}function li(e){let t;return{c(){t=K()},m(e,n){G(e,t,n)},p:b,d(e){e&&B(t)}}}function di(e){let t,n,s,i;t=new fn({props:{layout:"center-header",back:!1,cssCls:"hns_detail",$$slots:{default:[oi],"page-content":[ii],"page-title":[Ps]},$$scope:{ctx:e}}});let o=e[2]&&ci(e);return{c(){Pe(t.$$.fragment),n=K(),o&&o.c(),s=Q()},m(e,c){He(t,e,c),G(e,n,c),o&&o.m(e,c),G(e,s,c),i=!0},p(e,[n]){const i={};4194307&n&&(i.$$scope={dirty:n,ctx:e}),t.$set(i),e[2]?o?(o.p(e,n),4&n&&Oe(o,1)):(o=ci(e),o.c(),Oe(o,1),o.m(s.parentNode,s)):o&&(Ae(),Le(o,1,1,(()=>{o=null})),De())},i(e){i||(Oe(t.$$.fragment,e),Oe(o),i=!0)},o(e){Le(t.$$.fragment,e),Le(o),i=!1},d(e){ze(t,e),e&&B(n),o&&o.d(e),e&&B(s)}}}function ui(e,t,n){let i;function o(e){a("showIssue",{deviceId:c.data.device_id,pos:e})}T(e,tt,(e=>n(3,i=e)));let{device:c}=t,{scanType:r}=t;const a=ve();let l;return e.$$set=e=>{"device"in e&&n(0,c=e.device),"scanType"in e&&n(1,r=e.scanType)},[c,r,l,i,function(){s.event("HNS","Click","ForgetDeviceShow"),n(2,l=!0)},function(){s.event("HNS","Click","ForgetDeviceClose"),n(2,l=!1)},function(){s.event("HNS","Click","ForgetDeviceConfirm"),a("forgetDevice"),n(2,l=!1)},o,function(){a("editDevice")},e=>o(e),e=>o(e)]}class pi extends Ge{constructor(e){var t;super(),document.getElementById("svelte-1efko2c-style")||((t=Y("style")).id="svelte-1efko2c-style",t.textContent=".sve_overlay.-page .hns_detail{--header-height:9rem}.hns_remedy.svelte-1efko2c{padding:1.5rem 4rem;margin:0.5rem 0 1rem}.hns_remedy__icon.svelte-1efko2c{border-radius:5rem;border:solid var(--icon-stroke-small) currentColor;padding:1rem;margin:0 1rem}.hns_services__type.svelte-1efko2c{width:50%}.hns_services__protocol.svelte-1efko2c,.hns_services__port.svelte-1efko2c{width:25%;text-align:end}",W(document.head,t)),We(this,e,ui,di,C,{device:0,scanType:1})}}function mi(e,t,n){const s=e.slice();return s[17]=t[n],s}function hi(e,t,n){const s=e.slice();return s[20]=t[n],s}function vi(e){let t,n;return t=new Wt({props:{closable:!0,cssCls:"-full -headless -footless",$$slots:{"modal-content":[ki]},$$scope:{ctx:e}}}),t.$on("close",e[6]),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};8388619&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function gi(e){let t,n,s,i,o,c,r,a,l,d=e[20].name+"";function u(){return e[10](e[20])}return{c(){t=Y("button"),n=Y("kin-icon"),i=K(),o=Y("p"),c=q(d),r=K(),ee(n,"name",s=dt[e[20].id].icon),ee(n,"size","32"),ee(n,"class","svelte-v476ur"),X(o,"class","p -secondary -small"),X(t,"class","hns_edit__type hns_tile svelte-v476ur"),se(t,"-active",e[1].type===e[20].id),se(t,"-hidden",e[20].hidden)},m(e,s){G(e,t,s),W(t,n),W(t,i),W(t,o),W(o,c),W(t,r),a||(l=J(t,"click",u),a=!0)},p(i,o){e=i,2&o&&s!==(s=dt[e[20].id].icon)&&ee(n,"name",s),2&o&&d!==(d=e[20].name+"")&&te(c,d),2&o&&se(t,"-active",e[1].type===e[20].id),2&o&&se(t,"-hidden",e[20].hidden)},d(e){e&&B(t),a=!1,l()}}}function fi(e){let t,n=(!e[20].protocol||e[20].protocol===e[0].protocol)&&gi(e);return{c(){n&&n.c(),t=Q()},m(e,s){n&&n.m(e,s),G(e,t,s)},p(e,s){e[20].protocol&&e[20].protocol!==e[0].protocol?n&&(n.d(1),n=null):n?n.p(e,s):(n=gi(e),n.c(),n.m(t.parentNode,t))},d(e){n&&n.d(e),e&&B(t)}}}function _i(e){let t,n,s,i,o,c,r=e[17].name+"",a=e[17].cats,l=[];for(let d=0;d<a.length;d+=1)l[d]=fi(hi(e,a,d));return{c(){t=Y("div"),n=Y("h5"),s=q(r),i=K(),o=Y("div");for(let e=0;e<l.length;e+=1)l[e].c();c=K(),X(n,"class","h6"),X(o,"class","hns_edit__section svelte-v476ur"),X(t,"class","svelte-v476ur"),se(t,"-hidden",e[17].hidden)},m(e,r){G(e,t,r),W(t,n),W(n,s),W(t,i),W(t,o);for(let t=0;t<l.length;t+=1)l[t].m(o,null);W(t,c)},p(e,n){if(2&n&&r!==(r=e[17].name+"")&&te(s,r),3&n){let t;for(a=e[17].cats,t=0;t<a.length;t+=1){const s=hi(e,a,t);l[t]?l[t].p(s,n):(l[t]=fi(s),l[t].c(),l[t].m(o,null))}for(;t<l.length;t+=1)l[t].d(1);l.length=a.length}2&n&&se(t,"-hidden",e[17].hidden)},d(e){e&&B(t),F(l,e)}}}function ki(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f,_,k,w,y,b,I,$,x=e[1].groups,E=[];for(let p=0;p<x.length;p+=1)E[p]=_i(mi(e,x,p));return{c(){t=Y("div"),n=Y("div"),s=Y("h2"),s.textContent=`${p("network.device.edit")}`,i=K(),o=Y("kin-input"),a=K(),l=Y("kin-input"),m=K(),h=Y("div"),v=Y("kin-button"),v.textContent=`${p("network.device.save")}`,g=K(),f=Y("div"),_=Y("div"),k=Y("kin-input"),b=K();for(let e=0;e<E.length;e+=1)E[e].c();X(s,"class","h2 g-margin-bottom--30"),ee(o,"label",c=p("network.editDeviceName")),ee(o,"class","g-margin-bottom--20"),ee(o,"value",r=e[1].name),ee(l,"label",d=p("network.scan.props.model")),ee(l,"value",u=e[1].model),ee(v,"type","secondary"),ee(v,"class","g-margin-top--30"),X(n,"class","hns_edit__form svelte-v476ur"),ee(k,"label",w=p("network.search.type.label")),ee(k,"class","g-margin-bottom--30"),ee(k,"value",y=e[1].filter),ee(k,"type","search"),X(_,"class","hns_edit__filter svelte-v476ur"),X(f,"class","hns_edit__types svelte-v476ur"),X(t,"slot","modal-content"),X(t,"class","hns_edit svelte-v476ur")},m(c,r){G(c,t,r),W(t,n),W(n,s),W(n,i),W(n,o),W(n,a),W(n,l),W(n,m),W(n,h),W(h,v),W(t,g),W(t,f),W(f,_),W(_,k),W(f,b);for(let e=0;e<E.length;e+=1)E[e].m(f,null);e[11](f),I||($=[J(o,"input",e[8]),J(l,"input",e[9]),J(v,"click",e[5]),J(k,"input",e[4])],I=!0)},p(e,t){if(2&t&&r!==(r=e[1].name)&&ee(o,"value",r),2&t&&u!==(u=e[1].model)&&ee(l,"value",u),2&t&&y!==(y=e[1].filter)&&ee(k,"value",y),3&t){let n;for(x=e[1].groups,n=0;n<x.length;n+=1){const s=mi(e,x,n);E[n]?E[n].p(s,t):(E[n]=_i(s),E[n].c(),E[n].m(f,null))}for(;n<E.length;n+=1)E[n].d(1);E.length=x.length}},d(n){n&&B(t),F(E,n),e[11](null),I=!1,N($)}}}function wi(e){let t,n,s=e[2]&&vi(e);return{c(){s&&s.c(),t=Q()},m(e,i){s&&s.m(e,i),G(e,t,i),n=!0},p(e,[n]){e[2]?s?(s.p(e,n),4&n&&Oe(s,1)):(s=vi(e),s.c(),Oe(s,1),s.m(t.parentNode,t)):s&&(Ae(),Le(s,1,1,(()=>{s=null})),De())},i(e){n||(Oe(s),n=!0)},o(e){Le(s),n=!1},d(e){s&&s.d(e),e&&B(t)}}}function yi(e,t,n){function i(e){if(m&&clearTimeout(m),e){const e=l.filter.toUpperCase();n(1,l.groups=l.groups.map((t=>{let n=!1;return t.cats.forEach((t=>{t.hidden=-1===t.value.indexOf(e),t.hidden||(n=!0)})),t.hidden=!n,t})),l)}else m=setTimeout((function(){i(!0)}),500)}function o(){n(2,d=!1)}let{device:c}=t,{scan:r}=t;const a=ve(),l={};let d,m,h;return e.$$set=e=>{"device"in e&&n(7,c=e.device),"scan"in e&&n(0,r=e.scan)},e.$$.update=()=>{128&e.$$.dirty&&c&&function(){if(s.event("HNS","Click","DeviceDetailEdit"),r.protocol){if(n(1,l.filter="",l),n(1,l.name=c.nameModel,l),n(1,l.type=c.type,l),n(1,l.model=c.model,l),l.groups)i(!0);else{const e={};for(const[t,n]of Object.entries(dt)){const s=p("network.device.types."+t),i={id:t,name:s,value:s.toUpperCase(),protocol:n.protocol};e[n.group]=e[n.group]||[],e[n.group].push(i)}n(1,l.groups=Object.entries(e).map((function(e){return{name:p("network.device.gtypes."+e[0]),cats:e[1].sort(((e,t)=>e.name.localeCompare(t.name,u.locale)))}})),l),l.groups.sort(((e,t)=>e.name.localeCompare(t.name,u.locale)))}n(2,d=!0),setTimeout((()=>{const e=h.querySelector(".hns_edit__type.-active");e&&e.offsetTop-100>h.clientHeight&&h.scrollTo(0,e.offsetTop-100)}),1)}else o()}()},[r,l,d,h,function(e){n(1,l.filter=e.target.value,l),i()},function(){c.nameModel!==l.name&&s.event("HNS","Click","DeviceName"),c.type!==l.type&&s.event("HNS","Click","DeviceType"),c.model!==l.model&&s.event("HNS","Click","DeviceModel"),n(1,l.name=l.name.trim(),l),n(1,l.model=l.model.trim(),l),""!==l.name&&(Je.updateDevice({type:"device",method:"update",mac:c.mac,name:l.name,device_class:l.type,model:l.model}),a("save",{name:l.name,device_class:l.type,model:l.model}),o())},function(){o()},c,e=>n(1,l.name=e.target.value,l),e=>n(1,l.model=e.target.value,l),e=>n(1,l.type=e.id,l),function(e){fe[e?"unshift":"push"]((()=>{h=e,n(3,h)}))}]}class bi extends Ge{constructor(e){var t;super(),document.getElementById("svelte-v476ur-style")||((t=Y("style")).id="svelte-v476ur-style",t.textContent=".hns_edit.svelte-v476ur.svelte-v476ur{position:absolute;top:0;right:0;bottom:0;left:0;overflow:hidden}.hns_edit__form.svelte-v476ur.svelte-v476ur,.hns_edit__types.svelte-v476ur.svelte-v476ur{position:absolute;top:0;bottom:0;padding:5rem calc(var(--scrollbar-width) + 2rem) 2rem;overflow:auto}.hns_edit__form.svelte-v476ur.svelte-v476ur{right:0;left:50%;display:flex;flex-direction:column;justify-content:center}.hns_edit__types.svelte-v476ur.svelte-v476ur{right:50%;left:0;text-align:start;padding-top:0;border-radius:var(--modal-radius);box-shadow:inset 0 0 0 50rem rgba(255,255,255,0.08)}.hns_edit__types.svelte-v476ur .-hidden.svelte-v476ur{display:none}.hns_edit__filter.svelte-v476ur.svelte-v476ur{position:sticky;top:0;padding-top:3rem;margin:0 -1px;background-color:var(--modal-bg);box-shadow:inset 0 0 0 50rem rgba(255,255,255,0.08);z-index:1}.hns_edit__section.svelte-v476ur.svelte-v476ur{display:flex;flex-wrap:wrap;margin:1rem 0 3rem}.hns_edit__type.svelte-v476ur.svelte-v476ur{width:25%;word-break:normal}.hns_tile.svelte-v476ur.svelte-v476ur{text-align:center;padding:1.2rem 0.4rem 0.4rem;min-height:9.5rem;cursor:pointer;overflow:hidden;border-radius:var(--cube-radius);display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-start;word-break:break-word}.hns_tile.svelte-v476ur kin-icon.svelte-v476ur{margin-bottom:0.6rem}.hns_tile.svelte-v476ur.svelte-v476ur:hover{background-color:rgba(255,255,255,0.1)}.hns_tile.-active.svelte-v476ur.svelte-v476ur{background-color:rgba(0,0,0,0.3)}",W(document.head,t)),We(this,e,yi,wi,C,{device:7,scan:0})}}function Ii(e,t,n){const s=e.slice();return s[14]=t[n],s[16]=n,s}function $i(e){let t,n,s,i,o,c,r,a,l,d,u=(e[3]?e[3]:p("network.property."+e[0]))+"";function m(e,t){return e[7]?Ci:Ei}let h=m(e),v=h(e);return{c(){t=Y("tr"),n=Y("td"),s=K(),i=Y("td"),o=Y("span"),c=Y("span"),r=q(u),a=q(":"),l=K(),d=Y("span"),v.c(),X(n,"class","svelte-oev3ea"),X(c,"class","g-margin-right--10"),X(o,"class","hns_property__wrap svelte-oev3ea"),X(i,"class","svelte-oev3ea"),X(t,"class","hns_property svelte-oev3ea")},m(e,u){G(e,t,u),W(t,n),W(t,s),W(t,i),W(i,o),W(o,c),W(c,r),W(c,a),W(o,l),W(o,d),v.m(d,null)},p(e,t){9&t&&u!==(u=(e[3]?e[3]:p("network.property."+e[0]))+"")&&te(r,u),h===(h=m(e))&&v?v.p(e,t):(v.d(1),v=h(e),v&&(v.c(),v.m(d,null)))},d(e){e&&B(t),v.d()}}}function xi(e){let t;function n(e,t){return e[2]?Ai:Ti}let s=n(e),i=s(e);return{c(){i.c(),t=Q()},m(e,n){i.m(e,n),G(e,t,n)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&B(t)}}}function Ni(e){let t,n,s,i,o,c,r,a,l,d,u,m=p(e[0])+"";function h(e,t){return e[5]?Ri:Li}let v=h(e),g=v(e);return{c(){t=Y("tr"),n=Y("td"),s=K(),i=Y("td"),o=Y("span"),c=q(m),r=q(":"),a=K(),l=Y("input"),u=K(),g.c(),X(n,"class","svelte-oev3ea"),X(o,"class","g-margin-right--10"),X(l,"class","hns_property__input svelte-oev3ea"),l.readOnly=!0,l.value=e[1],X(l,"type",d=e[5]?"text":"password"),X(i,"class","svelte-oev3ea"),X(t,"class","hns_property svelte-oev3ea")},m(e,d){G(e,t,d),W(t,n),W(t,s),W(t,i),W(i,o),W(o,c),W(o,r),W(i,a),W(i,l),W(i,u),g.m(i,null)},p(e,t){1&t&&m!==(m=p(e[0])+"")&&te(c,m),2&t&&l.value!==e[1]&&(l.value=e[1]),32&t&&d!==(d=e[5]?"text":"password")&&X(l,"type",d),v===(v=h(e))&&g?g.p(e,t):(g.d(1),g=v(e),g&&(g.c(),g.m(i,null)))},d(e){e&&B(t),g.d()}}}function Ei(e){let t;return{c(){t=q(e[1])},m(e,n){G(e,t,n)},p(e,n){2&n&&te(t,e[1])},d(e){e&&B(t)}}}function Ci(e){let t,n,s=e[1],i=[];for(let c=0;c<s.length;c+=1)i[c]=Si(Ii(e,s,c));let o=e[7].length>3&&!e[6]&&Mi(e);return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=K(),o&&o.c(),n=Q()},m(e,s){for(let t=0;t<i.length;t+=1)i[t].m(e,s);G(e,t,s),o&&o.m(e,s),G(e,n,s)},p(e,c){if(66&c){let n;for(s=e[1],n=0;n<s.length;n+=1){const o=Ii(e,s,n);i[n]?i[n].p(o,c):(i[n]=Si(o),i[n].c(),i[n].m(t.parentNode,t))}for(;n<i.length;n+=1)i[n].d(1);i.length=s.length}e[7].length>3&&!e[6]?o?o.p(e,c):(o=Mi(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(e){F(i,e),e&&B(t),o&&o.d(e),e&&B(n)}}}function Si(e){let t,n,s,i=e[14]+"";return{c(){t=Y("span"),n=q(i),X(t,"class",s="hns_property__item -item-"+e[16]+" svelte-oev3ea"),se(t,"-show-all",e[6])},m(e,s){G(e,t,s),W(t,n)},p(e,s){2&s&&i!==(i=e[14]+"")&&te(n,i),64&s&&se(t,"-show-all",e[6])},d(e){e&&B(t)}}}function Mi(e){let t,n,s;return{c(){t=Y("button"),t.textContent=`${p("global.more")}...`,X(t,"class","a")},m(i,o){G(i,t,o),n||(s=J(t,"click",e[12]),n=!0)},p:b,d(e){e&&B(t),n=!1,s()}}}function Ti(e){let t,n,s,i,o=("DEVICE_UI_LINK"===e[0]?p("network.goToRouter"):e[1])+"";return{c(){t=Y("button"),n=q(o),X(t,"data-test","hns_vuln-resolve"),X(t,"class","a")},m(o,c){G(o,t,c),W(t,n),s||(i=J(t,"click",e[11]),s=!0)},p(e,t){3&t&&o!==(o=("DEVICE_UI_LINK"===e[0]?p("network.goToRouter"):e[1])+"")&&te(n,o)},d(e){e&&B(t),s=!1,i()}}}function Ai(e){let t,n,s,i;function o(e,t){return"DEVICE_UI_LINK"===e[0]?Oi:Di}let c=o(e),r=c(e);return{c(){t=Y("kin-button"),n=Y("span"),r.c(),ee(t,"data-test","hns_vuln-resolve")},m(o,c){G(o,t,c),W(t,n),r.m(n,null),s||(i=J(t,"click",e[10]),s=!0)},p(e,t){c===(c=o(e))&&r?r.p(e,t):(r.d(1),r=c(e),r&&(r.c(),r.m(n,null)))},d(e){e&&B(t),r.d(),s=!1,i()}}}function Di(e){let t,n=p("network.resolve")+"";return{c(){t=q(n)},m(e,n){G(e,t,n)},p:b,d(e){e&&B(t)}}}function Oi(e){let t,n=p(e[4]?"network.goToRouter":"network.goToDevice")+"";return{c(){t=q(n)},m(e,n){G(e,t,n)},p(e,s){16&s&&n!==(n=p(e[4]?"network.goToRouter":"network.goToDevice")+"")&&te(t,n)},d(e){e&&B(t)}}}function Li(e){let t,n,s;return{c(){t=Y("kin-button"),t.innerHTML='<kin-icon name="icon-m-eye" size="16"></kin-icon>',ee(t,"type","blank"),ee(t,"size","small"),ee(t,"icononly","true"),ee(t,"class","hns_property__show svelte-oev3ea"),ee(t,"title","Show")},m(i,o){G(i,t,o),n||(s=J(t,"click",e[9]),n=!0)},p:b,d(e){e&&B(t),n=!1,s()}}}function Ri(e){let t,n,s;return{c(){t=Y("kin-button"),t.innerHTML='<kin-icon name="icon-m-eye" size="16"></kin-icon>',ee(t,"type","blank"),ee(t,"size","small"),ee(t,"icononly","true"),ee(t,"class","hns_property__show -hide svelte-oev3ea"),ee(t,"title","Hide")},m(i,o){G(i,t,o),n||(s=J(t,"click",e[9]),n=!0)},p:b,d(e){e&&B(t),n=!1,s()}}}function ji(e){let t;function n(e,t){return"PASSWORD"===e[0]||"USERNAME"===e[0]?Ni:"LINK"===e[0]||"DEVICE_UI_LINK"===e[0]?xi:$i}let s=n(e),i=s(e);return{c(){i.c(),t=Q()},m(e,n){i.m(e,n),G(e,t,n)},p(e,[o]){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t.parentNode,t)))},i:b,o:b,d(e){i.d(e),e&&B(t)}}}function Pi(e,t,n){let o,{id:c}=t,{value:r}=t,{button:a}=t,{title:l}=t,{special:d}=t,u=!1;function p(e){i.browse(e),m("resolve"),"DEVICE_UI_LINK"===c&&s.event("HNS","Click",d?"GoToRouter":"GoToDevice")}const m=ve();let h;return e.$$set=e=>{"id"in e&&n(0,c=e.id),"value"in e&&n(1,r=e.value),"button"in e&&n(2,a=e.button),"title"in e&&n(3,l=e.title),"special"in e&&n(4,d=e.special)},e.$$.update=()=>{2&e.$$.dirty&&n(7,h=Array.isArray(r))},[c,r,a,l,d,u,o,h,p,function(){n(5,u=!u)},()=>p(r),()=>p(r),()=>n(6,o=!0)]}class Hi extends Ge{constructor(e){var t;super(),document.getElementById("svelte-oev3ea-style")||((t=Y("style")).id="svelte-oev3ea-style",t.textContent=".hns_property.svelte-oev3ea.svelte-oev3ea{margin:0.3rem 0;display:table-row}.hns_property.svelte-oev3ea td.svelte-oev3ea{color:var(--color-text-secondary);vertical-align:middle;padding:0.2rem 0;position:relative}.hns_property__wrap.svelte-oev3ea.svelte-oev3ea{display:flex;justify-content:flex-start}.hns_property__item.svelte-oev3ea.svelte-oev3ea{display:none}.hns_property__item.-item-0.svelte-oev3ea.svelte-oev3ea,.hns_property__item.-item-1.svelte-oev3ea.svelte-oev3ea,.hns_property__item.-item-2.svelte-oev3ea.svelte-oev3ea,.hns_property__item.-item-3.svelte-oev3ea.svelte-oev3ea,.hns_property__item.-item-4.svelte-oev3ea.svelte-oev3ea,.hns_property__item.-show-all.svelte-oev3ea.svelte-oev3ea{display:block}.hns_property__input.svelte-oev3ea.svelte-oev3ea{background-color:transparent;padding:0.5rem 0;border:0;display:inline-block;color:inherit;font-family:var(--font);font-size:var(--font-size);height:1.6rem;width:auto}.hns_property__value.svelte-oev3ea.svelte-oev3ea{padding:0.5rem 1rem;text-align:start}.hns_property__show.svelte-oev3ea.svelte-oev3ea{position:absolute;top:50%;transform:translateY(-50%)}.hns_property__show.-hide.svelte-oev3ea.svelte-oev3ea::after{content:'/';position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;font-size:23px;display:flex;justify-content:center;align-items:baseline}",W(document.head,t)),We(this,e,Pi,ji,C,{id:0,value:1,button:2,title:3,special:4})}}function zi(e,t,n){const s=e.slice();return s[21]=t[n],s[23]=n,s}function Ui(e,t,n){const s=e.slice();return s[21]=t[n],s}function Wi(e,t,n){const s=e.slice();return s[21]=t[n],s}function Gi(e,t,n){const s=e.slice();return s[28]=t[n],s[23]=n,s}function Bi(e,t,n){const s=e.slice();return s[21]=t[n],s[23]=n,s}function Fi(e,t,n){const s=e.slice();return s[31]=t[n],s[23]=n,s}function Yi(e){let t,n,s=e[0]&&e[4]&&Vi(e);return{c(){s&&s.c(),t=Q()},m(e,i){s&&s.m(e,i),G(e,t,i),n=!0},p(e,n){e[0]&&e[4]?s?(s.p(e,n),17&n[0]&&Oe(s,1)):(s=Vi(e),s.c(),Oe(s,1),s.m(t.parentNode,t)):s&&(Ae(),Le(s,1,1,(()=>{s=null})),De())},i(e){n||(Oe(s),n=!0)},o(e){Le(s),n=!1},d(e){s&&s.d(e),e&&B(t)}}}function Vi(e){let t,n;return t=new Wt({props:{closable:!0,cssCls:"-full -ipm",ipm:e[1].ipm,title:e[4],$$slots:{default:[Io],"modal-ipm":[bo],"modal-footer":[wo],"modal-content":[mo],"modal-header":[Ki]},$$scope:{ctx:e}}}),t.$on("close",e[14]),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};2&n[0]&&(s.ipm=e[1].ipm),16&n[0]&&(s.title=e[4]),235&n[0]|4&n[1]&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function qi(e){let t,n,s;return{c(){t=Y("p"),n=Y("span"),s=q(e[5]),X(n,"class","span -secondary"),X(t,"class","g-margin-top--10")},m(e,i){G(e,t,i),W(t,n),W(n,s)},p(e,t){32&t[0]&&te(s,e[5])},d(e){e&&B(t)}}}function Ki(e){let t,n=(e[5]||e[7])&&qi(e);return{c(){t=Y("div"),n&&n.c(),X(t,"slot","modal-header")},m(e,s){G(e,t,s),n&&n.m(t,null)},p(e,s){e[5]||e[7]?n?n.p(e,s):(n=qi(e),n.c(),n.m(t,null)):n&&(n.d(1),n=null)},d(e){e&&B(t),n&&n.d()}}}function Qi(e){let t,n,s,i,o,c=p("network.risk.potentional")+"";return{c(){t=Y("button"),n=q(c),X(t,"role","tab"),X(t,"aria-selected",s="risk"===e[3]),X(t,"class","tab"),se(t,"-active","risk"===e[3])},m(s,c){G(s,t,c),W(t,n),i||(o=J(t,"click",e[16]),i=!0)},p(e,n){8&n[0]&&s!==(s="risk"===e[3])&&X(t,"aria-selected",s),8&n[0]&&se(t,"-active","risk"===e[3])},d(e){e&&B(t),i=!1,o()}}}function Ji(e){let t,n=e[6],s=[];for(let i=0;i<n.length;i+=1)s[i]=to(Fi(e,n,i));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();t=Q()},m(e,n){for(let t=0;t<s.length;t+=1)s[t].m(e,n);G(e,t,n)},p(e,i){if(321&i[0]){let o;for(n=e[6],o=0;o<n.length;o+=1){const c=Fi(e,n,o);s[o]?s[o].p(c,i):(s[o]=to(c),s[o].c(),s[o].m(t.parentNode,t))}for(;o<s.length;o+=1)s[o].d(1);s.length=n.length}},d(e){F(s,e),e&&B(t)}}}function Zi(e){let t,n,s,i=e[31]+"",o=!e[23]&&e[0].data.catalog_name&&eo(e);return{c(){n=K(),s=Y("span"),o&&o.c(),t=new oe(n),X(s,"class","g-margin-left--5")},m(e,c){t.m(i,e,c),G(e,n,c),G(e,s,c),o&&o.m(s,null)},p(e,n){64&n[0]&&i!==(i=e[31]+"")&&t.p(i),!e[23]&&e[0].data.catalog_name?o?o.p(e,n):(o=eo(e),o.c(),o.m(s,null)):o&&(o.d(1),o=null)},d(e){e&&t.d(),e&&B(n),e&&B(s),o&&o.d()}}}function Xi(e){let t,n,s;return{c(){t=Y("button"),t.textContent=`${p("network.issue.follow.guide")}`,X(t,"class","a g-margin-left--5")},m(i,o){G(i,t,o),n||(s=J(t,"click",e[17]),n=!0)},p:b,d(e){e&&B(t),n=!1,s()}}}function eo(e){let t,n,s,i,o,c,r=p("network.issue.props.id")+"",a=e[0].data.catalog_name+"";return{c(){t=q(r),n=K(),s=Y("button"),i=q(a),X(s,"class","a")},m(r,a){G(r,t,a),G(r,n,a),G(r,s,a),W(s,i),o||(c=J(s,"click",e[18]),o=!0)},p(e,t){1&t[0]&&a!==(a=e[0].data.catalog_name+"")&&te(i,a)},d(e){e&&B(t),e&&B(n),e&&B(s),o=!1,c()}}}function to(e){let t,n,s,i,o,c,r,a,l,d,u,m=p("network.tip")+"",h=e[23]+1+"";function v(e,t){return"FOLLOW_GUIDE"===e[31]?Xi:Zi}let g=v(e),f=g(e);return{c(){t=Y("tr"),n=Y("td"),s=Y("div"),i=q(m),o=K(),c=Y("span"),r=q(h),a=K(),l=Y("td"),d=Y("p"),f.c(),u=K(),X(c,"class","hns_tips__number svelte-man0ih"),X(s,"class","badge -small -tip hns_tips__badge svelte-man0ih"),X(n,"class","svelte-man0ih"),X(d,"class","p -secondary -small"),X(l,"class","svelte-man0ih"),X(t,"class","hns_tips__row svelte-man0ih")},m(e,p){G(e,t,p),W(t,n),W(n,s),W(s,i),W(s,o),W(s,c),W(c,r),W(t,a),W(t,l),W(l,d),f.m(d,null),W(t,u)},p(e,t){g===(g=v(e))&&f?f.p(e,t):(f.d(1),f=g(e),f&&(f.c(),f.m(d,null)))},d(e){e&&B(t),f.d()}}}function no(e){let t,n,s=e[0].getCategoryDetails("solutions"),i=[];for(let c=0;c<s.length;c+=1)i[c]=so(Bi(e,s,c));const o=e=>Le(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=Q()},m(e,s){for(let t=0;t<i.length;t+=1)i[t].m(e,s);G(e,t,s),n=!0},p(e,n){if(1&n[0]){let c;for(s=e[0].getCategoryDetails("solutions"),c=0;c<s.length;c+=1){const o=Bi(e,s,c);i[c]?(i[c].p(o,n),Oe(i[c],1)):(i[c]=so(o),i[c].c(),Oe(i[c],1),i[c].m(t.parentNode,t))}for(Ae(),c=s.length;c<i.length;c+=1)o(c);De()}},i(e){if(!n){for(let e=0;e<s.length;e+=1)Oe(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)Le(i[t]);n=!1},d(e){F(i,e),e&&B(t)}}}function so(e){let t,n,s=e[23]&&function(e){let t,n;return t=new Hi({props:{id:e[21][0],value:e[21][1],special:e[21].issueOnGateway}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.id=e[21][0]),1&n[0]&&(s.value=e[21][1]),1&n[0]&&(s.special=e[21].issueOnGateway),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}(e);return{c(){s&&s.c(),t=Q()},m(e,i){s&&s.m(e,i),G(e,t,i),n=!0},p(e,t){e[23]&&s.p(e,t)},i(e){n||(Oe(s),n=!0)},o(e){Le(s),n=!1},d(e){s&&s.d(e),e&&B(t)}}}function io(e){let t,n,s,i,o,c,r,a,l,d,u,m=p("network.tip.risk")+"",h=e[23]+1+"",v=e[28]+"";return{c(){t=Y("tr"),n=Y("td"),s=Y("div"),i=q(m),o=K(),c=Y("span"),r=q(h),a=K(),l=Y("td"),d=Y("p"),u=q(v),X(c,"class","hns_tips__number svelte-man0ih"),X(s,"class","badge -small -critical hns_tips__badge svelte-man0ih"),X(n,"class","svelte-man0ih"),X(d,"class","p -secondary -small"),X(l,"class","svelte-man0ih"),X(t,"class","hns_tips__row svelte-man0ih")},m(e,p){G(e,t,p),W(t,n),W(n,s),W(s,i),W(s,o),W(s,c),W(c,r),W(t,a),W(t,l),W(l,d),W(d,u)},p(e,t){128&t[0]&&v!==(v=e[28]+"")&&te(u,v)},d(e){e&&B(t)}}}function oo(e){let t,n,s=e[0].getCategoryDetails("risks"),i=[];for(let c=0;c<s.length;c+=1)i[c]=co(Wi(e,s,c));const o=e=>Le(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=Q()},m(e,s){for(let t=0;t<i.length;t+=1)i[t].m(e,s);G(e,t,s),n=!0},p(e,n){if(1&n[0]){let c;for(s=e[0].getCategoryDetails("risks"),c=0;c<s.length;c+=1){const o=Wi(e,s,c);i[c]?(i[c].p(o,n),Oe(i[c],1)):(i[c]=co(o),i[c].c(),Oe(i[c],1),i[c].m(t.parentNode,t))}for(Ae(),c=s.length;c<i.length;c+=1)o(c);De()}},i(e){if(!n){for(let e=0;e<s.length;e+=1)Oe(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)Le(i[t]);n=!1},d(e){F(i,e),e&&B(t)}}}function co(e){let t,n;return t=new Hi({props:{id:e[21][0],value:e[21][1]}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.id=e[21][0]),1&n[0]&&(s.value=e[21][1]),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function ro(e){let t,n,s,i,o=e[0].data.serviceType&&ao(e),c=e[0].data.port&&lo(e),r=e[0].data.description_details&&uo(e);return{c(){o&&o.c(),t=K(),c&&c.c(),n=K(),r&&r.c(),s=Q()},m(e,a){o&&o.m(e,a),G(e,t,a),c&&c.m(e,a),G(e,n,a),r&&r.m(e,a),G(e,s,a),i=!0},p(e,i){e[0].data.serviceType?o?(o.p(e,i),1&i[0]&&Oe(o,1)):(o=ao(e),o.c(),Oe(o,1),o.m(t.parentNode,t)):o&&(Ae(),Le(o,1,1,(()=>{o=null})),De()),e[0].data.port?c?(c.p(e,i),1&i[0]&&Oe(c,1)):(c=lo(e),c.c(),Oe(c,1),c.m(n.parentNode,n)):c&&(Ae(),Le(c,1,1,(()=>{c=null})),De()),e[0].data.description_details?r?(r.p(e,i),1&i[0]&&Oe(r,1)):(r=uo(e),r.c(),Oe(r,1),r.m(s.parentNode,s)):r&&(Ae(),Le(r,1,1,(()=>{r=null})),De())},i(e){i||(Oe(o),Oe(c),Oe(r),i=!0)},o(e){Le(o),Le(c),Le(r),i=!1},d(e){o&&o.d(e),e&&B(t),c&&c.d(e),e&&B(n),r&&r.d(e),e&&B(s)}}}function ao(e){let t,n;return t=new Hi({props:{title:p("network.serviceType"),value:e[0].data.serviceType}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.value=e[0].data.serviceType),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function lo(e){let t,n;return t=new Hi({props:{title:p("network.port"),value:e[0].data.port}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.value=e[0].data.port),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function uo(e){let t,n,s=e[0].getCategoryDetails("description"),i=[];for(let c=0;c<s.length;c+=1)i[c]=po(Ui(e,s,c));const o=e=>Le(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=Q()},m(e,s){for(let t=0;t<i.length;t+=1)i[t].m(e,s);G(e,t,s),n=!0},p(e,n){if(1&n[0]){let c;for(s=e[0].getCategoryDetails("description"),c=0;c<s.length;c+=1){const o=Ui(e,s,c);i[c]?(i[c].p(o,n),Oe(i[c],1)):(i[c]=po(o),i[c].c(),Oe(i[c],1),i[c].m(t.parentNode,t))}for(Ae(),c=s.length;c<i.length;c+=1)o(c);De()}},i(e){if(!n){for(let e=0;e<s.length;e+=1)Oe(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)Le(i[t]);n=!1},d(e){F(i,e),e&&B(t)}}}function po(e){let t,n;return t=new Hi({props:{id:e[21][0],value:e[21][1]}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.id=e[21][0]),1&n[0]&&(s.value=e[21][1]),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function mo(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f,_,k,w,y,b,I,$,x,N,E,C,S,M=p("network.risk.tips")+"",T=e[7]&&Qi(e),A=e[6]&&Ji(e),D=e[0].data.solutions_details&&e[0].data.solutions_details.length>1&&no(e),O=e[7],L=[];for(let p=0;p<O.length;p+=1)L[p]=io(Gi(e,O,p));let R=e[0].data.risks_details&&oo(e),j=(e[0].data.serviceType||e[0].data.port||e[0].data.description_details)&&ro(e);return{c(){t=Y("div"),n=Y("div"),s=Y("div"),i=Y("button"),o=q(M),r=K(),T&&T.c(),a=K(),l=Y("div"),d=Y("div"),u=Y("table"),m=Y("tbody"),A&&A.c(),h=K(),v=Y("tr"),g=K(),D&&D.c(),_=K(),k=Y("div"),w=Y("table"),y=Y("tbody");for(let e=0;e<L.length;e+=1)L[e].c();b=K(),I=Y("tr"),$=K(),R&&R.c(),x=K(),j&&j.c(),X(i,"role","tab"),X(i,"aria-selected",c="tips"===e[3]),X(i,"class","tab"),se(i,"-active","tips"===e[3]),X(s,"class","tab__wrap"),X(v,"class","hns_tips__separator svelte-man0ih"),X(u,"class","hns_tips svelte-man0ih"),X(d,"style",f="tips"!==e[3]?"display: none":""),X(I,"class","hns_tips__separator svelte-man0ih"),X(w,"class","hns_tips svelte-man0ih"),X(k,"style",N="risks"!==e[3]?"display: none":""),X(l,"class","tab__pane"),X(n,"class","tab__block"),X(t,"slot","modal-content")},m(c,p){G(c,t,p),W(t,n),W(n,s),W(s,i),W(i,o),W(s,r),T&&T.m(s,null),W(n,a),W(n,l),W(l,d),W(d,u),W(u,m),A&&A.m(m,null),W(m,h),W(m,v),W(m,g),D&&D.m(m,null),W(l,_),W(l,k),W(k,w),W(w,y);for(let e=0;e<L.length;e+=1)L[e].m(y,null);W(y,b),W(y,I),W(y,$),R&&R.m(y,null),W(y,x),j&&j.m(y,null),E=!0,C||(S=J(i,"click",e[15]),C=!0)},p(e,t){if((!E||8&t[0]&&c!==(c="tips"===e[3]))&&X(i,"aria-selected",c),8&t[0]&&se(i,"-active","tips"===e[3]),e[7]?T?T.p(e,t):(T=Qi(e),T.c(),T.m(s,null)):T&&(T.d(1),T=null),e[6]?A?A.p(e,t):(A=Ji(e),A.c(),A.m(m,h)):A&&(A.d(1),A=null),e[0].data.solutions_details&&e[0].data.solutions_details.length>1?D?(D.p(e,t),1&t[0]&&Oe(D,1)):(D=no(e),D.c(),Oe(D,1),D.m(m,null)):D&&(Ae(),Le(D,1,1,(()=>{D=null})),De()),(!E||8&t[0]&&f!==(f="tips"!==e[3]?"display: none":""))&&X(d,"style",f),128&t[0]){let n;for(O=e[7],n=0;n<O.length;n+=1){const s=Gi(e,O,n);L[n]?L[n].p(s,t):(L[n]=io(s),L[n].c(),L[n].m(y,b))}for(;n<L.length;n+=1)L[n].d(1);L.length=O.length}e[0].data.risks_details?R?(R.p(e,t),1&t[0]&&Oe(R,1)):(R=oo(e),R.c(),Oe(R,1),R.m(y,x)):R&&(Ae(),Le(R,1,1,(()=>{R=null})),De()),e[0].data.serviceType||e[0].data.port||e[0].data.description_details?j?(j.p(e,t),1&t[0]&&Oe(j,1)):(j=ro(e),j.c(),Oe(j,1),j.m(y,null)):j&&(Ae(),Le(j,1,1,(()=>{j=null})),De()),(!E||8&t[0]&&N!==(N="risks"!==e[3]?"display: none":""))&&X(k,"style",N)},i(e){E||(Oe(D),Oe(R),Oe(j),E=!0)},o(e){Le(D),Le(R),Le(j),E=!1},d(e){e&&B(t),T&&T.d(),A&&A.d(),D&&D.d(),F(L,e),R&&R.d(),j&&j.d(),C=!1,S()}}}function ho(e){let t,n,s;return{c(){t=Y("kin-button"),t.textContent=`${p("global.close")}`,ee(t,"type","secondary")},m(i,o){G(i,t,o),n||(s=J(t,"click",e[14]),n=!0)},p:b,i:b,o:b,d(e){e&&B(t),n=!1,s()}}}function vo(e){let t,n,s=e[0].getCategoryDetails("solutions"),i=[];for(let c=0;c<s.length;c+=1)i[c]=fo(zi(e,s,c));const o=e=>Le(i[e],1,1,(()=>{i[e]=null}));return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=Q()},m(e,s){for(let t=0;t<i.length;t+=1)i[t].m(e,s);G(e,t,s),n=!0},p(e,n){if(1025&n[0]){let c;for(s=e[0].getCategoryDetails("solutions"),c=0;c<s.length;c+=1){const o=zi(e,s,c);i[c]?(i[c].p(o,n),Oe(i[c],1)):(i[c]=fo(o),i[c].c(),Oe(i[c],1),i[c].m(t.parentNode,t))}for(Ae(),c=s.length;c<i.length;c+=1)o(c);De()}},i(e){if(!n){for(let e=0;e<s.length;e+=1)Oe(i[e]);n=!0}},o(e){i=i.filter(Boolean);for(let t=0;t<i.length;t+=1)Le(i[t]);n=!1},d(e){F(i,e),e&&B(t)}}}function go(e){let t,n,s,i,o=e[1].solveBtnText+"";return{c(){t=Y("kin-button"),n=q(o),ee(t,"data-test","hns_vuln-resolve")},m(o,c){G(o,t,c),W(t,n),s||(i=J(t,"click",e[11]),s=!0)},p(e,t){2&t[0]&&o!==(o=e[1].solveBtnText+"")&&te(n,o)},i:b,o:b,d(e){e&&B(t),s=!1,i()}}}function fo(e){let t,n,s=!e[23]&&function(e){let t,n;return t=new Hi({props:{id:e[21][0],value:e[21][1],button:!0,special:e[21].issueOnGateway}}),t.$on("resolve",e[10]),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.id=e[21][0]),1&n[0]&&(s.value=e[21][1]),1&n[0]&&(s.special=e[21].issueOnGateway),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}(e);return{c(){s&&s.c(),t=Q()},m(e,i){s&&s.m(e,i),G(e,t,i),n=!0},p(e,t){e[23]||s.p(e,t)},i(e){n||(Oe(s),n=!0)},o(e){Le(s),n=!1},d(e){s&&s.d(e),e&&B(t)}}}function _o(e){let t,n,s,i,o,c,r,a,l="skipped"!==e[0].state&&ko(e);return{c(){t=Y("kin-dropdown"),n=Y("div"),n.innerHTML='<kin-button type="secondary" icononly="true"><kin-icon name="icon-s-controls-menu-more" size="16"></kin-icon></kin-button>',s=K(),i=Y("div"),l&&l.c(),o=K(),c=Y("kin-dropdown-item"),c.textContent=`${p("network.rescan")}`,X(n,"slot","dropdown-activator"),X(n,"data-test","hns_vuln-menu-more")},m(d,u){G(d,t,u),W(t,n),W(t,s),W(t,i),l&&l.m(i,null),W(i,o),W(i,c),r||(a=J(c,"click",e[13]),r=!0)},p(e,t){"skipped"!==e[0].state?l?l.p(e,t):(l=ko(e),l.c(),l.m(i,o)):l&&(l.d(1),l=null)},d(e){e&&B(t),l&&l.d(),r=!1,a()}}}function ko(e){let t,n,s;return{c(){t=Y("kin-dropdown-item"),t.textContent=`${p("network.issue.ignore")}`,ee(t,"data-test","hns_vuln-ignore")},m(i,o){G(i,t,o),n||(s=J(t,"click",e[12]),n=!0)},p:b,d(e){e&&B(t),n=!1,s()}}}function wo(e){let t,n,s,i,o;const c=[go,vo,ho],r=[];function a(e,t){return e[1].solveBtnText?0:e[0].data.solutions_details&&e[0].data.solutions_details.length?1:"public"===e[1].scanType?2:-1}~(n=a(e))&&(s=r[n]=c[n](e));let l="public"!==e[1].scanType&&_o(e);return{c(){t=Y("div"),s&&s.c(),i=K(),l&&l.c(),X(t,"slot","modal-footer")},m(e,s){G(e,t,s),~n&&r[n].m(t,null),W(t,i),l&&l.m(t,null),o=!0},p(e,o){let d=n;n=a(e),n===d?~n&&r[n].p(e,o):(s&&(Ae(),Le(r[d],1,1,(()=>{r[d]=null})),De()),~n?(s=r[n],s?s.p(e,o):(s=r[n]=c[n](e),s.c()),Oe(s,1),s.m(t,i)):s=null),"public"!==e[1].scanType?l?l.p(e,o):(l=_o(e),l.c(),l.m(t,null)):l&&(l.d(1),l=null)},i(e){o||(Oe(s),o=!0)},o(e){Le(s),o=!1},d(e){e&&B(t),~n&&r[n].d(),l&&l.d()}}}function yo(e){let t,n,s;return n=new Nt({props:{id:e[1].ipm}}),{c(){t=Y("div"),Pe(n.$$.fragment),X(t,"class","hns_ipm_issue svelte-man0ih")},m(e,i){G(e,t,i),He(n,t,null),s=!0},p(e,t){const s={};2&t[0]&&(s.id=e[1].ipm),n.$set(s)},i(e){s||(Oe(n.$$.fragment,e),s=!0)},o(e){Le(n.$$.fragment,e),s=!1},d(e){e&&B(t),ze(n)}}}function bo(e){let t,n,s=e[1].ipm&&yo(e);return{c(){t=Y("div"),s&&s.c(),X(t,"slot","modal-ipm")},m(e,i){G(e,t,i),s&&s.m(t,null),n=!0},p(e,n){e[1].ipm?s?(s.p(e,n),2&n[0]&&Oe(s,1)):(s=yo(e),s.c(),Oe(s,1),s.m(t,null)):s&&(Ae(),Le(s,1,1,(()=>{s=null})),De())},i(e){n||(Oe(s),n=!0)},o(e){Le(s),n=!1},d(e){e&&B(t),s&&s.d()}}}function Io(e){let t,n,s;return{c(){t=K(),n=K(),s=K()},m(e,i){G(e,t,i),G(e,n,i),G(e,s,i)},p:b,i:b,o:b,d(e){e&&B(t),e&&B(n),e&&B(s)}}}function $o(e){let t,n,s="loading"!==e[2]&&Yi(e);return{c(){s&&s.c(),t=Q()},m(e,i){s&&s.m(e,i),G(e,t,i),n=!0},p(e,n){"loading"!==e[2]?s?(s.p(e,n),4&n[0]&&Oe(s,1)):(s=Yi(e),s.c(),Oe(s,1),s.m(t.parentNode,t)):s&&(Ae(),Le(s,1,1,(()=>{s=null})),De())},i(e){n||(Oe(s),n=!0)},o(e){Le(s),n=!1},d(e){s&&s.d(e),e&&B(t)}}}function xo(t,n,i){function o(t,n){return s.event("HNS-"+l.scanType,"Click","showVulnerabilityDetails"),e("app.utils.GetUrlParameters",202).then((s=>e("app.windowManager.ShowModaless",{url:s+"&p_scr=hns/"+t.toLowerCase()+(n?"&p_sln="+n:""),width:window.innerWidth||800,height:window.innerHeight||500})))}function c(e){u!==e&&("risks"===u?s.event("HNS-"+l.scanType,"Click","closeRisks"):"risks"===e&&s.event("HNS-"+l.scanType,"Click","showRisks"),i(3,u=e))}function r(){i(0,a=!1)}let{issue:a}=n,{details:l}=n;const d=ve();let u,p,m,h,v,g="loading";_.getTest("ABTest_HNS1").then((e=>i(2,g=e)));return t.$$set=e=>{"issue"in e&&i(0,a=e.issue),"details"in e&&i(1,l=e.details)},t.$$.update=()=>{7&t.$$.dirty[0]&&"loading"!==g&&a&&(c("tips"),i(5,m=a.getDescription(l.scanType)),i(6,h=a.getSolutions(l.scanType,l.resolveType,g)),i(7,v=a.getRisks()),i(4,p=a.getTitle(l.scanType)))},[a,l,g,u,p,m,h,v,o,c,function(){r(),d("resolved",l)},function(){r(),d("resolve",l)},function(){s.event("HNS-"+l.scanType,"Click","ignoreIssue"),r(),d("skip",l)},function(){r(),d("rescan")},function(){s.event("HNS-"+l.type,"Click","close"),r()},()=>c("tips"),()=>c("risks"),()=>o(a.data.catalog_name,"guide"),()=>o(a.data.catalog_name)]}class No extends Ge{constructor(e){var t;super(),document.getElementById("svelte-man0ih-style")||((t=Y("style")).id="svelte-man0ih-style",t.textContent=".hns_tips.svelte-man0ih.svelte-man0ih{text-align:start}.hns_tips__row.svelte-man0ih td.svelte-man0ih{padding:0.5rem 0}.hns_tips__badge.svelte-man0ih.svelte-man0ih{white-space:nowrap;margin:0.2rem 1rem;letter-spacing:1px}.hns_tips__number.svelte-man0ih.svelte-man0ih{min-width:0.8rem;text-align:end;display:inline-block}.hns_tips__separator.svelte-man0ih.svelte-man0ih{height:2rem}.hns_ipm_issue.svelte-man0ih.svelte-man0ih{height:95px;position:relative;overflow:hidden}",W(document.head,t)),We(this,e,xo,$o,C,{issue:0,details:1},[-1,-1])}}function Eo(e){let t,n;return t=new fn({props:{cssCls:"hns -no-header -center-all",back:!1,loading:e[1],$$slots:{"page-content":[So]},$$scope:{ctx:e}}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};2&n&&(s.loading=e[1]),128&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function Co(e){let t,n;return t=new fn({props:{cssCls:"hns -no-header -center-all",back:!1,loading:e[1],$$slots:{"page-content":[To]},$$scope:{ctx:e}}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};2&n&&(s.loading=e[1]),141&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function So(e){let t,n,s,i,o,c,r,a,l,d,u,m;return{c(){t=Y("div"),n=Y("kin-icon"),s=K(),i=Y("div"),o=Y("h1"),o.textContent=`${p("network.scan.netChanged.rescan")}`,c=K(),r=Y("div"),a=Y("kin-button"),a.textContent=`${p("network.scan.again")}`,l=K(),d=Y("kin-button"),d.textContent=`${p("global.done")}`,ee(n,"name","circle-attention"),ee(n,"class","kin_scan__icon"),ee(n,"size","96"),X(o,"class","h1 kin_scan__title -overlay"),X(i,"class","kin_scan__result"),ee(a,"size","large"),ee(d,"size","large"),ee(d,"type","secondary"),ee(d,"class","g-margin-left--10"),ee(d,"data-test","hns_done-global"),X(r,"class","kin_scan__actions"),X(t,"slot","page-content")},m(p,h){G(p,t,h),W(t,n),W(t,s),W(t,i),W(i,o),W(t,c),W(t,r),W(r,a),W(r,l),W(r,d),u||(m=[J(a,"click",e[4]),J(d,"click",e[5])],u=!0)},p:b,d(e){e&&B(t),u=!1,N(m)}}}function Mo(e){let t,n;return t=new es({props:{autoWatch:!0,devices:e[2],networkId:e[0].networkId}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};4&n&&(s.devices=e[2]),1&n&&(s.networkId=e[0].networkId),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function To(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f,_,k=p(e[3]?"network.scan.stopping":"network.scan.again")+"",w="home"===e[0].type&&Mo(e);return{c(){t=Y("div"),n=Y("kin-icon"),s=K(),i=Y("div"),o=Y("h1"),o.textContent=`${p("network.scan.stopped")}`,c=K(),r=Y("p"),r.textContent=`${p("network.scan.stopped.desc")}`,a=K(),w&&w.c(),l=K(),d=Y("div"),u=Y("kin-button"),m=q(k),h=K(),v=Y("kin-button"),v.textContent=`${p("global.done")}`,ee(n,"name","circle-critical"),ee(n,"class","kin_scan__icon"),ee(n,"size","96"),X(o,"class","h1 kin_scan__title -overlay"),X(r,"class","kin_scan__subtitle -overlay"),X(i,"class","kin_scan__result"),ee(u,"size","large"),ee(u,"processing",e[3]),ee(u,"kin-disabled",e[3]),ee(v,"size","large"),ee(v,"type","secondary"),ee(v,"class","g-margin-left--10"),ee(v,"data-test","hns_done-global"),X(d,"class","kin_scan__actions"),X(t,"slot","page-content")},m(p,k){G(p,t,k),W(t,n),W(t,s),W(t,i),W(i,o),W(i,c),W(i,r),W(t,a),w&&w.m(t,null),W(t,l),W(t,d),W(d,u),W(u,m),W(d,h),W(d,v),g=!0,f||(_=[J(u,"click",e[4]),J(v,"click",e[5])],f=!0)},p(e,n){"home"===e[0].type?w?(w.p(e,n),1&n&&Oe(w,1)):(w=Mo(e),w.c(),Oe(w,1),w.m(t,l)):w&&(Ae(),Le(w,1,1,(()=>{w=null})),De()),(!g||8&n)&&k!==(k=p(e[3]?"network.scan.stopping":"network.scan.again")+"")&&te(m,k),(!g||8&n)&&ee(u,"processing",e[3]),(!g||8&n)&&ee(u,"kin-disabled",e[3])},i(e){g||(Oe(w),g=!0)},o(e){Le(w),g=!1},d(e){e&&B(t),w&&w.d(),f=!1,N(_)}}}function Ao(e){let t,n,s,i;const o=[Co,Eo],c=[];function r(e,t){return e[0].canceled?0:e[0].ran?1:-1}return~(t=r(e))&&(n=c[t]=o[t](e)),{c(){n&&n.c(),s=Q()},m(e,n){~t&&c[t].m(e,n),G(e,s,n),i=!0},p(e,[i]){let a=t;t=r(e),t===a?~t&&c[t].p(e,i):(n&&(Ae(),Le(c[a],1,1,(()=>{c[a]=null})),De()),~t?(n=c[t],n?n.p(e,i):(n=c[t]=o[t](e),n.c()),Oe(n,1),n.m(s.parentNode,s)):n=null)},i(e){i||(Oe(n),i=!0)},o(e){Le(n),i=!1},d(e){~t&&c[t].d(e),e&&B(s)}}}function Do(e,t,n){let{scan:s}=t,{loading:i}=t,{devices4watcher:o}=t,{scanStopping:c}=t;const r=ve();return e.$$set=e=>{"scan"in e&&n(0,s=e.scan),"loading"in e&&n(1,i=e.loading),"devices4watcher"in e&&n(2,o=e.devices4watcher),"scanStopping"in e&&n(3,c=e.scanStopping)},[s,i,o,c,function(){r("rescan")},function(){r("scanFinish")}]}class Oo extends Ge{constructor(e){super(),We(this,e,Do,Ao,C,{scan:0,loading:1,devices4watcher:2,scanStopping:3})}}function Lo(e){let t,n,s,i,o,c,r,a,l,d,u;return{c(){t=V("svg"),n=V("style"),s=q(".st0 {\n\t\t\topacity: 0.3;\n\t\t\tfill: #53a0fd;\n\t\t}\n\n\t\t#progressLine-1 { opacity: .2 }\n\t\t.animate > #progressLine-1 { animation: fade 3s linear 2.5s infinite }\n\n\t\t#progressLine-2 { opacity: .2 }\n\t\t.animate > #progressLine-2 { animation: fade 3s linear 2s infinite }\n\n\t\t#progressLine-3 { opacity: .2 }\n\t\t.animate > #progressLine-3 { animation: fade 3s linear 1.5s infinite }\n\n\t\t#progressLine-4 { opacity: .2 }\n\t\t.animate > #progressLine-4 { animation: fade 3s linear 1s infinite }\n\n\t\t#progressLine-5 { opacity: .2 }\n\t\t.animate > #progressLine-5 { animation: fade 3s linear 0.5s infinite }\n\n\t\t@keyframes fade {\n\t\t\t0% {opacity: 0.2}\n\t\t\t20% {opacity: 1}\n\t\t\t40% {opacity: 0.2}\n\t\t}\n\t"),i=V("path"),o=V("path"),c=V("path"),r=V("path"),a=V("path"),X(n,"type","text/css"),X(i,"id","progressLine-5"),X(i,"class","st0"),X(i,"d","M341.25,113.171l1.021-0.553c9.639,10.85,15.51,25.119,15.51,40.74\n\tc0,16.081-6.22,30.73-16.37,41.691l-1.033-0.56c10.08-10.78,16.268-25.243,16.268-41.131\n\tC356.646,137.931,350.815,123.845,341.25,113.171z M236.073,153.358c0-15.427,5.831-29.513,15.396-40.187l-1.02-0.553\n\tc-9.639,10.85-15.51,25.119-15.51,40.74c0,15.835,6.025,30.289,15.902,41.192l1.028-0.557\n\tC242.064,183.268,236.073,169,236.073,153.358z"),X(o,"id","progressLine-4"),X(o,"class","st0"),X(o,"d","M199.535,222.355l-1.006,0.545c-13.999-19.636-22.241-43.645-22.241-69.543\n\tc0-25.687,8.112-49.513,21.903-69.06l1.003,0.543c-13.707,19.382-21.772,43.024-21.772,68.516\n\tC177.422,179.061,185.62,202.884,199.535,222.355z M415.295,153.357c0,25.942-8.354,49.966-22.505,69.536l1.006,0.545\n\tc14.234-19.735,22.634-43.944,22.634-70.081c0-25.687-8.112-49.513-21.903-69.059l-1.003,0.544\n\tC407.231,104.223,415.295,127.866,415.295,153.357z"),X(c,"id","progressLine-3"),X(c,"class","st0"),X(c,"d","M445.372,56.743l1.001-0.542c18.191,27.991,28.774,61.36,28.774,97.158\n\tc0,36.245-10.852,69.998-29.461,98.201l-1.001-0.542c18.524-28.041,29.327-61.609,29.327-97.659\n\tC474.012,117.756,463.477,84.571,445.372,56.743z M118.706,153.358c0-35.603,10.535-68.787,28.64-96.616l-1-0.542\n\tc-18.191,27.991-28.774,61.36-28.774,97.158c0,36.008,10.71,69.556,29.096,97.648l1-0.542\n\tC129.368,222.535,118.706,189.171,118.706,153.358z"),X(r,"id","progressLine-2"),X(r,"class","st0"),X(r,"d","M94.846,279.091l-0.999,0.541c-23.489-37.51-36.068-80.924-36.068-126.275\n\tc0-45.151,12.471-88.379,35.76-125.775l0.999,0.541c-23.201,37.231-35.625,80.275-35.625,125.234\n\tC58.913,198.517,71.445,241.746,94.846,279.091z M533.804,153.357c0,45.385-12.653,88.823-36.28,126.296l0.999,0.541\n\tc23.715-37.638,36.416-81.26,36.416-126.837c0-45.151-12.472-88.379-35.76-125.775l-0.999,0.541\n\tC521.38,65.355,533.804,108.399,533.804,153.357z"),X(a,"id","progressLine-1"),X(a,"class","st0"),X(a,"d","M592.718,153.357c0,55.356-15.093,108.385-43.301,154.42l-0.999-0.541\n\tc28.119-45.869,43.164-98.714,43.164-153.878c0-54.737-14.809-107.194-42.509-152.816L550.073,0\n\tC577.862,45.786,592.718,98.427,592.718,153.357z M43.952,306.673C16.055,260.935,1.134,208.296,1.134,153.357\n\tc0-54.737,14.809-107.194,42.509-152.815L42.644,0C14.856,45.787,0,98.428,0,153.357c0,55.131,14.968,107.954,42.953,153.857\n\tL43.952,306.673z"),X(t,"version","1.1"),X(t,"xmlns","http://www.w3.org/2000/svg"),X(t,"xmlns:xlink","http://www.w3.org/1999/xlink"),X(t,"xml:space","preserve"),X(t,"id","Layer_1"),X(t,"x","0px"),X(t,"y","0px"),X(t,"viewBox","0 0 592.718 307.776"),se(t,"animate",e[0])},m(p,m){G(p,t,m),W(t,n),W(n,s),W(t,i),W(t,o),W(t,c),W(t,r),W(t,a),d||(u=L(l=Ro.call(null,t,e[1])),d=!0)},p(e,[n]){l&&E(l.update)&&2&n&&l.update.call(null,e[1]),1&n&&se(t,"animate",e[0])},i:b,o:b,d(e){e&&B(t),d=!1,u()}}}function Ro(e,t){if(t)for(const n of e.getElementsByClassName("st0"))n.style.fill=t}function jo(e,t,n){let{animate:s}=t,{scanAnimColor:i}=t;return e.$$set=e=>{"animate"in e&&n(0,s=e.animate),"scanAnimColor"in e&&n(1,i=e.scanAnimColor)},[s,i]}class Po extends Ge{constructor(e){super(),We(this,e,jo,Lo,C,{animate:0,scanAnimColor:1})}}function Ho(e,t,n){const s=e.slice();return s[14]=t[n],s[16]=n,s}function zo(e){let t;function n(e,t){return e[5]?Go:Wo}let s=n(e),i=s(e);return{c(){t=Y("p"),i.c(),X(t,"class","p kin_scan__subtitle -overlay")},m(e,n){G(e,t,n),i.m(t,null)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t,null)))},d(e){e&&B(t),i.d()}}}function Uo(e){let t;function n(e,t){return e[4]?Fo:Bo}let s=n(e),i=s(e);return{c(){t=Y("p"),i.c(),X(t,"class","p kin_scan__subtitle -overlay")},m(e,n){G(e,t,n),i.m(t,null)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t,null)))},d(e){e&&B(t),i.d()}}}function Wo(e){let t,n,s=p("network.scan.devices")+"";return{c(){t=q(s),n=q("...")},m(e,s){G(e,t,s),G(e,n,s)},p:b,d(e){e&&B(t),e&&B(n)}}}function Go(e){let t,n,s=p("network.scan.devices.found",e[5])+"";return{c(){t=q(s),n=q("...")},m(e,s){G(e,t,s),G(e,n,s)},p(e,n){32&n&&s!==(s=p("network.scan.devices.found",e[5])+"")&&te(t,s)},d(e){e&&B(t),e&&B(n)}}}function Bo(e){let t,n,s=p("network.scan.issues")+"";return{c(){t=q(s),n=q("...")},m(e,s){G(e,t,s),G(e,n,s)},p:b,d(e){e&&B(t),e&&B(n)}}}function Fo(e){let t,n,s=p("network.scan.issues.found",e[4])+"";return{c(){t=q(s),n=q("...")},m(e,s){G(e,t,s),G(e,n,s)},p(e,n){16&n&&s!==(s=p("network.scan.issues.found",e[4])+"")&&te(t,s)},d(e){e&&B(t),e&&B(n)}}}function Yo(e){let t,n,s,i,o,c,r;function a(e,t){return(null==c||258&t)&&(c=!!e[11].includes(e[1][e[14]].data.device_status)),c?qo:Vo}let l=a(e,-1),d=l(e);return{c(){t=Y("div"),n=Y("kin-icon"),i=K(),o=Y("h5"),d.c(),r=K(),ee(n,"name",s=e[1][e[14]].icon),ee(n,"size","32"),ee(n,"class","svelte-p2qvdi"),X(o,"class","p -secondary -small"),X(t,"class","hns_map__device hns_tile svelte-p2qvdi"),se(t,"-fade",e[7][e[16]])},m(e,s){G(e,t,s),W(t,n),W(t,i),W(t,o),d.m(o,null),W(t,r)},p(e,i){258&i&&s!==(s=e[1][e[14]].icon)&&ee(n,"name",s),l===(l=a(e,i))&&d?d.p(e,i):(d.d(1),d=l(e),d&&(d.c(),d.m(o,null))),128&i&&se(t,"-fade",e[7][e[16]])},d(e){e&&B(t),d.d()}}}function Vo(e){let t,n=p("network.scan.found",e[1][e[14]].nameModel)+"";return{c(){t=q(n)},m(e,n){G(e,t,n)},p(e,s){258&s&&n!==(n=p("network.scan.found",e[1][e[14]].nameModel)+"")&&te(t,n)},d(e){e&&B(t)}}}function qo(e){let t,n=p("network.scan."+e[1][e[14]].data.device_status,e[1][e[14]].nameModel)+"";return{c(){t=q(n)},m(e,n){G(e,t,n)},p(e,s){258&s&&n!==(n=p("network.scan."+e[1][e[14]].data.device_status,e[1][e[14]].nameModel)+"")&&te(t,n)},d(e){e&&B(t)}}}function Ko(e){let t,n=e[14]&&Yo(e);return{c(){n&&n.c(),t=Q()},m(e,s){n&&n.m(e,s),G(e,t,s)},p(e,s){e[14]?n?n.p(e,s):(n=Yo(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&B(t)}}}function Qo(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f,_=p("network.scanningNetwork",e[9].networkInfo.name,e[3])+"";function k(e,t){return"public"===e[2].type?Uo:zo}let w=k(e),y=w(e);a=new Po({props:{animate:e[3]<100,scanAnimColor:e[6]}});let b=e[8],I=[];for(let p=0;p<b.length;p+=1)I[p]=Ko(Ho(e,b,p));return{c(){t=Y("div"),n=Y("div"),s=Y("div"),i=Y("h2"),o=K(),y.c(),c=K(),r=Y("div"),Pe(a.$$.fragment),l=K(),d=Y("div");for(let e=0;e<I.length;e+=1)I[e].c();u=K(),m=Y("section"),h=Y("kin-button"),h.textContent=`${p("global.stopScan")}`,X(i,"class","h1 kin_scan__title -overlay"),X(s,"class","hns_map__title svelte-p2qvdi"),X(r,"class","hns_map__bg svelte-p2qvdi"),ee(h,"type","secondary"),ee(h,"size","large"),ee(h,"data-test","scn_progress_stopBtn"),X(m,"class","kin_scan__actions"),X(n,"class","hns_map svelte-p2qvdi"),X(t,"slot","page-content")},m(p,k){G(p,t,k),W(t,n),W(n,s),W(s,i),i.innerHTML=_,W(s,o),y.m(s,null),W(n,c),W(n,r),He(a,r,null),W(n,l),W(n,d);for(let e=0;e<I.length;e+=1)I[e].m(d,null);W(n,u),W(n,m),W(m,h),v=!0,g||(f=J(h,"click",e[10]),g=!0)},p(e,t){(!v||520&t)&&_!==(_=p("network.scanningNetwork",e[9].networkInfo.name,e[3])+"")&&(i.innerHTML=_),w===(w=k(e))&&y?y.p(e,t):(y.d(1),y=w(e),y&&(y.c(),y.m(s,null)));const n={};if(8&t&&(n.animate=e[3]<100),64&t&&(n.scanAnimColor=e[6]),a.$set(n),2434&t){let n;for(b=e[8],n=0;n<b.length;n+=1){const s=Ho(e,b,n);I[n]?I[n].p(s,t):(I[n]=Ko(s),I[n].c(),I[n].m(d,null))}for(;n<I.length;n+=1)I[n].d(1);I.length=b.length}},i(e){v||(Oe(a.$$.fragment,e),v=!0)},o(e){Le(a.$$.fragment,e),v=!1},d(e){e&&B(t),y.d(),ze(a),F(I,e),g=!1,f()}}}function Jo(e){let t,n;return t=new fn({props:{cssCls:"hns",layout:"no-header",back:!1,loading:e[0],$$slots:{"page-content":[Qo]},$$scope:{ctx:e}}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,[n]){const s={};1&n&&(s.loading=e[0]),132094&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function Zo(e,t,n){let i;T(e,tt,(e=>n(9,i=e)));let{loading:o}=t,{devices:c}=t,{scan:r}=t,{progress:a}=t,{issueCount:l}=t,{deviceCount:d}=t,{scanAnimColor:u}=t;const p=ve(),m=["vuln_scan_in_progress","vuln_scan_completed"],h=new Array(12),v=new Array(12);let g=0;return s.view("HNS-"+r.type+"_progress"),e.$$set=e=>{"loading"in e&&n(0,o=e.loading),"devices"in e&&n(1,c=e.devices),"scan"in e&&n(2,r=e.scan),"progress"in e&&n(3,a=e.progress),"issueCount"in e&&n(4,l=e.issueCount),"deviceCount"in e&&n(5,d=e.deviceCount),"scanAnimColor"in e&&n(6,u=e.scanAnimColor)},e.$$.update=()=>{4102&e.$$.dirty&&"home"===r.type&&c&&r.getUpdatedDevices().forEach((e=>{const t=c[e];t&&(t.nameModel&&!t.nameShown||m.includes(t.data.device_status))&&(t.nameShown=!0,n(7,h[g]=!1,h),n(8,v[g]=e,v),n(7,h[g]=!0,h),n(12,g++,g),12===g&&n(12,g=0))}))},[o,c,r,a,l,d,u,h,v,i,function(){p("scanStop")},m,g]}class Xo extends Ge{constructor(e){var t;super(),document.getElementById("svelte-p2qvdi-style")||((t=Y("style")).id="svelte-p2qvdi-style",t.textContent=".hns_map.svelte-p2qvdi.svelte-p2qvdi{top:0;right:0;bottom:0;left:0;position:absolute;text-align:center}.hns_map__title.svelte-p2qvdi.svelte-p2qvdi{position:absolute;top:45%;width:100%;padding:0 4rem}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi{position:absolute;width:20rem;height:auto;padding:0;transform:translateX(-50%);opacity:0;pointer-events:none}.hns_map__device.-fade.svelte-p2qvdi.svelte-p2qvdi{animation:svelte-p2qvdi-map 5s linear}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(1){left:50%;top:68%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(2){left:80%;top:30%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(3){left:20%;top:68%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(4){left:50%;top:30%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(5){left:80%;top:68%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(6){left:20%;top:30%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(7){left:65%;top:58%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(8){left:35%;top:18%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(9){left:65%;top:18%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(10){left:35%;top:58%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(11){left:11%;top:18%}.hns_map__device.svelte-p2qvdi.svelte-p2qvdi:nth-child(12){left:89%;top:55%}.hns_map__bg.svelte-p2qvdi.svelte-p2qvdi{width:85%;position:absolute;left:7.5%;right:7.5%;top:50%;transform:translateY(-50%);transition:opacity 2s;pointer-events:none}.hns_tile.svelte-p2qvdi.svelte-p2qvdi{text-align:center;padding:1.2rem 0.4rem 0.4rem;min-height:9.5rem;cursor:pointer;overflow:hidden;border-radius:var(--cube-radius);display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-start;word-break:break-word}.hns_tile.svelte-p2qvdi kin-icon.svelte-p2qvdi{margin-bottom:0.6rem}.hns_tile.svelte-p2qvdi.svelte-p2qvdi:hover{background-color:rgba(255,255,255,0.1)}@-moz-keyframes svelte-p2qvdi-map{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@-webkit-keyframes svelte-p2qvdi-map{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@-o-keyframes svelte-p2qvdi-map{0%{opacity:0}50%{opacity:1}100%{opacity:0}}@keyframes svelte-p2qvdi-map{0%{opacity:0}50%{opacity:1}100%{opacity:0}}",W(document.head,t)),We(this,e,Zo,Jo,C,{loading:0,devices:1,scan:2,progress:3,issueCount:4,deviceCount:5,scanAnimColor:6})}}function ec(e){let t,n;return t=new es({props:{autoWatch:!0,devices:e[2],networkId:e[1].networkId}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};4&n&&(s.devices=e[2]),2&n&&(s.networkId=e[1].networkId),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function tc(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g="home"===e[1].type&&ec(e);return{c(){t=Y("div"),n=Y("kin-icon"),s=K(),i=Y("div"),o=Y("h1"),o.textContent=`${p("network.scan.skipped")}`,c=K(),r=Y("p"),r.textContent=`${p("network.scan.skipped.desc")}`,a=K(),g&&g.c(),l=K(),d=Y("section"),u=Y("kin-button"),u.textContent=`${p("global.done")}`,ee(n,"name","circle-critical"),ee(n,"class","kin_scan__icon"),ee(n,"size","96"),X(o,"class","h1 kin_scan__title -overlay"),X(r,"class","kin_scan__subtitle -overlay"),X(i,"class","kin_scan__result"),ee(u,"size","large"),ee(u,"data-test","hns_done-global"),X(d,"class","kin_scan__actions"),X(t,"slot","page-content")},m(p,f){G(p,t,f),W(t,n),W(t,s),W(t,i),W(i,o),W(i,c),W(i,r),W(t,a),g&&g.m(t,null),W(t,l),W(t,d),W(d,u),m=!0,h||(v=J(u,"click",e[3]),h=!0)},p(e,n){"home"===e[1].type?g?(g.p(e,n),2&n&&Oe(g,1)):(g=ec(e),g.c(),Oe(g,1),g.m(t,l)):g&&(Ae(),Le(g,1,1,(()=>{g=null})),De())},i(e){m||(Oe(g),m=!0)},o(e){Le(g),m=!1},d(e){e&&B(t),g&&g.d(),h=!1,v()}}}function nc(e){let t,n;return t=new fn({props:{cssCls:"hns -no-header -center-all",back:!1,loading:e[0],$$slots:{"page-content":[tc]},$$scope:{ctx:e}}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,[n]){const s={};1&n&&(s.loading=e[0]),38&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function sc(e,t,n){let{loading:s}=t,{scan:i}=t,{devices4watcher:o}=t;const c=ve();return e.$$set=e=>{"loading"in e&&n(0,s=e.loading),"scan"in e&&n(1,i=e.scan),"devices4watcher"in e&&n(2,o=e.devices4watcher)},[s,i,o,function(){c("scanFinish")}]}class ic extends Ge{constructor(e){super(),We(this,e,sc,nc,C,{loading:0,scan:1,devices4watcher:2})}}function oc(e){let t,n,s,i,o,c,r,a,l,d,u,m,h=p("network.wifi.protecting")+"",v=e[4].networkInfo.name+"",g="home"===e[1].type&&rc(e);return{c(){t=Y("kin-icon"),n=K(),s=Y("h2"),s.textContent=`${p("network.scan.finished")}`,i=K(),o=Y("p"),c=q(h),r=q(": "),a=Y("strong"),l=q(v),d=K(),g&&g.c(),u=Q(),ee(t,"name","circle-ok"),ee(t,"size","128"),ee(t,"class","g-margin-bottom--20"),X(s,"class","h2 -margins"),X(o,"class","p -secondary -small")},m(e,p){G(e,t,p),G(e,n,p),G(e,s,p),G(e,i,p),G(e,o,p),W(o,c),W(o,r),W(o,a),W(a,l),G(e,d,p),g&&g.m(e,p),G(e,u,p),m=!0},p(e,t){(!m||16&t)&&v!==(v=e[4].networkInfo.name+"")&&te(l,v),"home"===e[1].type?g?(g.p(e,t),2&t&&Oe(g,1)):(g=rc(e),g.c(),Oe(g,1),g.m(u.parentNode,u)):g&&(Ae(),Le(g,1,1,(()=>{g=null})),De())},i(e){m||(Oe(g),m=!0)},o(e){Le(g),m=!1},d(e){e&&B(t),e&&B(n),e&&B(s),e&&B(i),e&&B(o),e&&B(d),g&&g.d(e),e&&B(u)}}}function cc(e){let t,n,s;function i(e,t){return e[3]?dc:e[5]&&!e[3]?lc:e[6]?ac:void 0}let o=i(e),c=o&&o(e);return{c(){t=Y("kin-icon"),n=K(),c&&c.c(),s=Q(),ee(t,"name","circle-ok"),ee(t,"size","128"),ee(t,"class","g-margin-bottom--20")},m(e,i){G(e,t,i),G(e,n,i),c&&c.m(e,i),G(e,s,i)},p(e,t){o===(o=i(e))&&c?c.p(e,t):(c&&c.d(1),c=o&&o(e),c&&(c.c(),c.m(s.parentNode,s)))},i:b,o:b,d(e){e&&B(t),e&&B(n),c&&c.d(e),e&&B(s)}}}function rc(e){let t,n;return t=new es({props:{autoWatch:!0,devices:e[2],networkId:e[1].networkId}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};4&n&&(s.devices=e[2]),2&n&&(s.networkId=e[1].networkId),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function ac(e){let t;return{c(){t=Y("h2"),t.textContent=`${p("network.vpn.protected")}`,X(t,"class","h2 -margins")},m(e,n){G(e,t,n)},p:b,d(e){e&&B(t)}}}function lc(e){let t,n,s,i,o,c,r,a,l,d=p("network.vpn.maximized")+"";return{c(){t=Y("h2"),t.textContent=`${p("network.smart.choice")}`,n=K(),s=Y("p"),i=q(d),o=Y("br"),c=K(),r=Y("button"),r.textContent=`${p("network.vpn.turniton")}`,X(t,"class","h2 -margins"),X(r,"class","a"),X(s,"class","p -secondary -small")},m(d,u){G(d,t,u),G(d,n,u),G(d,s,u),W(s,i),W(s,o),W(s,c),W(s,r),a||(l=J(r,"click",e[8]),a=!0)},p:b,d(e){e&&B(t),e&&B(n),e&&B(s),a=!1,l()}}}function dc(e){let t,n,s,i,o,c,r,a=p("network.vpn.protecting")+"",l=e[4].networkInfo.name+"";return{c(){t=Y("h2"),t.textContent=`${p("network.vpn.protected")}`,n=K(),s=Y("p"),i=q(a),o=K(),c=Y("strong"),r=q(l),X(t,"class","h2 -margins"),X(s,"class","p -secondary -small")},m(e,a){G(e,t,a),G(e,n,a),G(e,s,a),W(s,i),W(s,o),W(s,c),W(c,r)},p(e,t){16&t&&l!==(l=e[4].networkInfo.name+"")&&te(r,l)},d(e){e&&B(t),e&&B(n),e&&B(s)}}}function uc(e){let t,n,s,i,o,c,r,a,l;const d=[cc,oc],u=[];function m(e,t){return"public"===e[1].type?0:1}return n=m(e),s=u[n]=d[n](e),{c(){t=Y("div"),s.c(),i=K(),o=Y("div"),c=Y("kin-button"),c.textContent=`${p("global.done")}`,ee(c,"size","large"),ee(c,"data-test","hns_done-global"),X(o,"class","hns_cta svelte-1vqd2hk"),X(t,"slot","page-content")},m(s,d){G(s,t,d),u[n].m(t,null),W(t,i),W(t,o),W(o,c),r=!0,a||(l=J(c,"click",e[7]),a=!0)},p(e,o){let c=n;n=m(e),n===c?u[n].p(e,o):(Ae(),Le(u[c],1,1,(()=>{u[c]=null})),De(),s=u[n],s?s.p(e,o):(s=u[n]=d[n](e),s.c()),Oe(s,1),s.m(t,i))},i(e){r||(Oe(s),r=!0)},o(e){Le(s),r=!1},d(e){e&&B(t),u[n].d(),a=!1,l()}}}function pc(e){let t,n;return t=new fn({props:{cssCls:"hns -no-header -center-all",settingsUrl:qe,backHash:"#security",loading:e[0],$$slots:{"page-content":[uc]},$$scope:{ctx:e}}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,[n]){const s={};1&n&&(s.loading=e[0]),1150&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function mc(e,t,n){let i,o,c,r;T(e,ot,(e=>n(3,i=e))),T(e,tt,(e=>n(4,o=e))),T(e,ct,(e=>n(5,c=e))),T(e,rt,(e=>n(6,r=e)));let{loading:a}=t,{scan:l}=t,{devices4watcher:d}=t;const u=ve();return l.ran||(s.view("HNS-"+l.type+"_end"),s.event("HNS-"+l.type,"Scan","Exit")),e.$$set=e=>{"loading"in e&&n(0,a=e.loading),"scan"in e&&n(1,l=e.scan),"devices4watcher"in e&&n(2,d=e.devices4watcher)},[a,l,d,i,o,c,r,function(){u("scanFinish")},function(){u("go2secureline")}]}class hc extends Ge{constructor(e){var t;super(),document.getElementById("svelte-1vqd2hk-style")||((t=Y("style")).id="svelte-1vqd2hk-style",t.textContent=".hns_cta.svelte-1vqd2hk{position:absolute;bottom:4rem;text-align:center;left:0;right:0}",W(document.head,t)),We(this,e,mc,pc,C,{loading:0,scan:1,devices4watcher:2})}}function vc(e,t,n){const s=e.slice();return s[29]=t[n],s}function gc(e,t,n){const s=e.slice();return s[29]=t[n],s}function fc(e,t,n){const s=e.slice();return s[29]=t[n],s}function _c(e){let t,n;return t=new fn({props:{cssCls:"hns -large-header -center-header",back:!1,$$slots:{default:[Xc],"page-content":[Zc],controls:[Nc],"page-title":[bc]},$$scope:{ctx:e}}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};16383&n[0]|32&n[1]&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function kc(e){let t,n;return t=new fn({props:{cssCls:"hns -no-header -center-all",settingsUrl:qe,backHash:"#security",loading:e[2],$$slots:{"page-content":[er]},$$scope:{ctx:e}}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};4&n[0]&&(s.loading=e[2]),1024&n[0]|32&n[1]&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function wc(e){let t,n,s,i=p("network.no.problems")+"";return{c(){t=Y("kin-icon"),n=K(),s=q(i),ee(t,"name","circle-ok"),ee(t,"size","38"),ee(t,"data-test","hns_results-ok")},m(e,i){G(e,t,i),G(e,n,i),G(e,s,i)},p:b,d(e){e&&B(t),e&&B(n),e&&B(s)}}}function yc(e){let t,n,s,i=p("network.issues.found",e[1])+"";return{c(){t=Y("kin-icon"),n=K(),s=q(i),ee(t,"name","circle-critical"),ee(t,"size","38"),ee(t,"data-test","hns_results-vulns")},m(e,i){G(e,t,i),G(e,n,i),G(e,s,i)},p(e,t){2&t[0]&&i!==(i=p("network.issues.found",e[1])+"")&&te(s,i)},d(e){e&&B(t),e&&B(n),e&&B(s)}}}function bc(e){let t,n;function s(e,t){return e[1]?yc:wc}let i=s(e),o=i(e);return{c(){t=Y("div"),n=Y("h2"),o.c(),X(n,"data-test","hns_main-results-header"),X(t,"slot","page-title")},m(e,s){G(e,t,s),W(t,n),o.m(n,null)},p(e,t){i===(i=s(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(n,null)))},d(e){e&&B(t),o.d()}}}function Ic(e){let t,n,s;return{c(){t=Y("button"),t.textContent=`${p("network.scan.go2devices")}`,X(t,"class","a")},m(i,o){G(i,t,o),n||(s=J(t,"click",e[14]),n=!0)},p:b,d(e){e&&B(t),n=!1,s()}}}function $c(e){let t,n=!e[4]&&xc(e);return{c(){n&&n.c(),t=Q()},m(e,s){n&&n.m(e,s),G(e,t,s)},p(e,s){e[4]?n&&(n.d(1),n=null):n?n.p(e,s):(n=xc(e),n.c(),n.m(t.parentNode,t))},d(e){n&&n.d(e),e&&B(t)}}}function xc(e){let t,n,s;return{c(){t=Y("button"),t.textContent=`${p("network.rescan")}`,X(t,"class","a")},m(i,o){G(i,t,o),n||(s=J(t,"click",e[19]),n=!0)},p:b,d(e){e&&B(t),n=!1,s()}}}function Nc(e){let t,n,s,i=p("network.scanned.network",e[10].networkInfo.name,e[0].time)+"";function o(e,t){return"public"===e[0].type?$c:Ic}let c=o(e),r=c(e);return{c(){t=Y("div"),n=q(i),s=K(),r.c(),X(t,"slot","controls"),X(t,"class","p -secondary g-margin-top--10")},m(e,i){G(e,t,i),W(t,n),W(t,s),r.m(t,null)},p(e,s){1025&s[0]&&i!==(i=p("network.scanned.network",e[10].networkInfo.name,e[0].time)+"")&&te(n,i),c===(c=o(e))&&r?r.p(e,s):(r.d(1),r=c(e),r&&(r.c(),r.m(t,null)))},d(e){e&&B(t),r.d()}}}function Ec(e){let t,n,s=e[1]>e[5]&&Cc(e),i=e[5]&&Rc(e);return{c(){s&&s.c(),t=K(),i&&i.c(),n=Q()},m(e,o){s&&s.m(e,o),G(e,t,o),i&&i.m(e,o),G(e,n,o)},p(e,o){e[1]>e[5]?s?s.p(e,o):(s=Cc(e),s.c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null),e[5]?i?i.p(e,o):(i=Rc(e),i.c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null)},d(e){s&&s.d(e),e&&B(t),i&&i.d(e),e&&B(n)}}}function Cc(e){let t,n,s=e[8],i=[];for(let c=0;c<s.length;c+=1)i[c]=Tc(fc(e,s,c));let o=e[6]&&Ac(e);return{c(){for(let e=0;e<i.length;e+=1)i[e].c();t=K(),o&&o.c(),n=Q()},m(e,s){for(let t=0;t<i.length;t+=1)i[t].m(e,s);G(e,t,s),o&&o.m(e,s),G(e,n,s)},p(e,c){if(33537&c[0]){let n;for(s=e[8],n=0;n<s.length;n+=1){const o=fc(e,s,n);i[n]?i[n].p(o,c):(i[n]=Tc(o),i[n].c(),i[n].m(t.parentNode,t))}for(;n<i.length;n+=1)i[n].d(1);i.length=s.length}e[6]?o?o.p(e,c):(o=Ac(e),o.c(),o.m(n.parentNode,n)):o&&(o.d(1),o=null)},d(e){F(i,e),e&&B(t),o&&o.d(e),e&&B(n)}}}function Sc(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f,_,k,w=e[9][e[29].deviceId].issues[e[29].pos].getRowTitle(e[0].type)+"",y="home"===e[0].type&&Mc(e);function b(){return e[22](e[29])}function I(){return e[23](e[29])}return{c(){t=Y("div"),n=Y("div"),s=Y("kin-icon"),o=K(),c=Y("kin-icon"),r=K(),a=Y("div"),y&&y.c(),l=K(),u=K(),m=Y("div"),h=Y("button"),v=Y("span"),v.textContent=`${p("network.show.details")}`,g=Y("kin-icon"),ee(s,"name",i=e[9][e[29].deviceId].icon),ee(s,"size","24"),ee(c,"name","icon-s-fill-unsecured"),ee(c,"size","16"),ee(c,"class","row__icon__status"),X(n,"class","row__icon hns_problems__icon svelte-m7b09z"),X(n,"data-test","hns_results-vuln"),d=new oe(null),X(a,"class","row__main"),X(v,"class","row__show-on-hover span -small"),ee(g,"name","icon-s-controls-arrow-right"),ee(g,"size","16"),ee(g,"rtlflip","true"),ee(g,"class","hns_problems__status svelte-m7b09z"),X(h,"class","a -fake"),X(h,"title",f=e[9][e[29].deviceId].nameModel+" - "+p("network.show.details")),X(m,"class","row__actions"),X(t,"class","row -hoverable"),X(t,"data-test","hns_vuln-row")},m(e,i){G(e,t,i),W(t,n),W(n,s),W(n,o),W(n,c),W(t,r),W(t,a),y&&y.m(a,null),W(a,l),d.m(w,a),W(t,u),W(t,m),W(m,h),W(h,v),W(h,g),_||(k=[J(h,"click",b),J(t,"click",I)],_=!0)},p(t,n){e=t,768&n[0]&&i!==(i=e[9][e[29].deviceId].icon)&&ee(s,"name",i),"home"===e[0].type?y?y.p(e,n):(y=Mc(e),y.c(),y.m(a,l)):y&&(y.d(1),y=null),769&n[0]&&w!==(w=e[9][e[29].deviceId].issues[e[29].pos].getRowTitle(e[0].type)+"")&&d.p(w),768&n[0]&&f!==(f=e[9][e[29].deviceId].nameModel+" - "+p("network.show.details"))&&X(h,"title",f)},d(e){e&&B(t),y&&y.d(),_=!1,N(k)}}}function Mc(e){let t,n,s,i=e[9][e[29].deviceId].nameModel+"";return{c(){t=Y("strong"),n=q(i),s=q(" ")},m(e,i){G(e,t,i),W(t,n),G(e,s,i)},p(e,t){768&t[0]&&i!==(i=e[9][e[29].deviceId].nameModel+"")&&te(n,i)},d(e){e&&B(t),e&&B(s)}}}function Tc(e){let t,n=!e[9][e[29].deviceId].issues[e[29].pos].state&&Sc(e);return{c(){n&&n.c(),t=Q()},m(e,s){n&&n.m(e,s),G(e,t,s)},p(e,s){e[9][e[29].deviceId].issues[e[29].pos].state?n&&(n.d(1),n=null):n?n.p(e,s):(n=Sc(e),n.c(),n.m(t.parentNode,t))},d(e){n&&n.d(e),e&&B(t)}}}function Ac(e){let t,n,s,i,o=p("network.rescan.needed",e[6])+"",c=e[8],r=[];for(let a=0;a<c.length;a+=1)r[a]=Lc(gc(e,c,a));return{c(){t=Y("h5"),n=q(o),s=K();for(let e=0;e<r.length;e+=1)r[e].c();i=Q(),X(t,"class","h6 kin_table__row -title")},m(e,o){G(e,t,o),W(t,n),G(e,s,o);for(let t=0;t<r.length;t+=1)r[t].m(e,o);G(e,i,o)},p(e,t){if(64&t[0]&&o!==(o=p("network.rescan.needed",e[6])+"")&&te(n,o),33537&t[0]){let n;for(c=e[8],n=0;n<c.length;n+=1){const s=gc(e,c,n);r[n]?r[n].p(s,t):(r[n]=Lc(s),r[n].c(),r[n].m(i.parentNode,i))}for(;n<r.length;n+=1)r[n].d(1);r.length=c.length}},d(e){e&&B(t),e&&B(s),F(r,e),e&&B(i)}}}function Dc(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f,_,k,w,y=e[9][e[29].deviceId].issues[e[29].pos].getRowTitle(e[0].type)+"",b="home"===e[0].type&&Oc(e);function I(){return e[24](e[29])}function $(){return e[25](e[29])}return{c(){t=Y("div"),n=Y("div"),s=Y("kin-icon"),o=K(),c=Y("kin-icon"),r=K(),a=Y("div"),b&&b.c(),l=K(),u=K(),m=Y("div"),h=Y("button"),v=Y("span"),v.textContent=`${p("network.show.details")}`,g=Y("kin-icon"),_=K(),ee(s,"name",i=e[9][e[29].deviceId].icon),ee(s,"size","24"),ee(c,"name","icon-s-fill-unsecured"),ee(c,"size","16"),ee(c,"class","row__icon__status"),X(n,"class","row__icon hns_problems__icon svelte-m7b09z"),X(n,"data-test","hns_results-vuln"),d=new oe(null),X(a,"class","row__main"),X(v,"class","row__show-on-hover span -small"),ee(g,"name","icon-s-controls-arrow-right"),ee(g,"size","16"),ee(g,"rtlflip","true"),ee(g,"class","hns_problems__status svelte-m7b09z"),X(h,"class","a -fake"),X(h,"title",f=e[9][e[29].deviceId].nameModel+" - "+p("network.show.details")),X(m,"class","row__actions"),X(t,"class","row -hoverable")},m(e,i){G(e,t,i),W(t,n),W(n,s),W(n,o),W(n,c),W(t,r),W(t,a),b&&b.m(a,null),W(a,l),d.m(y,a),W(t,u),W(t,m),W(m,h),W(h,v),W(h,g),W(t,_),k||(w=[J(h,"click",I),J(t,"click",$)],k=!0)},p(t,n){e=t,768&n[0]&&i!==(i=e[9][e[29].deviceId].icon)&&ee(s,"name",i),"home"===e[0].type?b?b.p(e,n):(b=Oc(e),b.c(),b.m(a,l)):b&&(b.d(1),b=null),769&n[0]&&y!==(y=e[9][e[29].deviceId].issues[e[29].pos].getRowTitle(e[0].type)+"")&&d.p(y),768&n[0]&&f!==(f=e[9][e[29].deviceId].nameModel+" - "+p("network.show.details"))&&X(h,"title",f)},d(e){e&&B(t),b&&b.d(),k=!1,N(w)}}}function Oc(e){let t,n,s,i=e[9][e[29].deviceId].nameModel+"";return{c(){t=Y("strong"),n=q(i),s=q(" ")},m(e,i){G(e,t,i),W(t,n),G(e,s,i)},p(e,t){768&t[0]&&i!==(i=e[9][e[29].deviceId].nameModel+"")&&te(n,i)},d(e){e&&B(t),e&&B(s)}}}function Lc(e){let t,n="resolved"===e[9][e[29].deviceId].issues[e[29].pos].state&&Dc(e);return{c(){n&&n.c(),t=Q()},m(e,s){n&&n.m(e,s),G(e,t,s)},p(e,s){"resolved"===e[9][e[29].deviceId].issues[e[29].pos].state?n?n.p(e,s):(n=Dc(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&B(t)}}}function Rc(e){let t,n,s,i,o=p("network.ignored.problems",e[5])+"",c=e[8],r=[];for(let a=0;a<c.length;a+=1)r[a]=Hc(vc(e,c,a));return{c(){t=Y("h5"),n=q(o),s=K();for(let e=0;e<r.length;e+=1)r[e].c();i=Q(),X(t,"class","h6 kin_table__row -title")},m(e,o){G(e,t,o),W(t,n),G(e,s,o);for(let t=0;t<r.length;t+=1)r[t].m(e,o);G(e,i,o)},p(e,t){if(32&t[0]&&o!==(o=p("network.ignored.problems",e[5])+"")&&te(n,o),33537&t[0]){let n;for(c=e[8],n=0;n<c.length;n+=1){const s=vc(e,c,n);r[n]?r[n].p(s,t):(r[n]=Hc(s),r[n].c(),r[n].m(i.parentNode,i))}for(;n<r.length;n+=1)r[n].d(1);r.length=c.length}},d(e){e&&B(t),e&&B(s),F(r,e),e&&B(i)}}}function jc(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f,_,k=e[9][e[29].deviceId].issues[e[29].pos].getRowTitle(e[0].type)+"",w="home"===e[0].type&&Pc(e);function y(){return e[26](e[29])}function b(){return e[27](e[29])}return{c(){t=Y("div"),n=Y("div"),s=Y("kin-icon"),o=K(),c=Y("div"),w&&w.c(),r=K(),l=K(),d=Y("div"),u=Y("button"),m=Y("span"),m.textContent=`${p("network.show.details")}`,h=Y("kin-icon"),g=K(),ee(s,"name",i=e[9][e[29].deviceId].icon),ee(s,"size","24"),X(n,"class","row__icon hns_problems__icon svelte-m7b09z"),X(n,"data-test","hns_results-vuln"),a=new oe(null),X(c,"class","row__main"),X(m,"class","row__show-on-hover span -small"),ee(h,"name","icon-s-controls-arrow-right"),ee(h,"size","16"),ee(h,"rtlflip","true"),ee(h,"class","hns_problems__status svelte-m7b09z"),X(u,"class","a -fake"),X(u,"title",v=e[9][e[29].deviceId].nameModel+" - "+p("network.show.details")),X(d,"class","row__actions"),X(t,"class","row -hoverable")},m(e,i){G(e,t,i),W(t,n),W(n,s),W(t,o),W(t,c),w&&w.m(c,null),W(c,r),a.m(k,c),W(t,l),W(t,d),W(d,u),W(u,m),W(u,h),W(t,g),f||(_=[J(u,"click",y),J(t,"click",b)],f=!0)},p(t,n){e=t,768&n[0]&&i!==(i=e[9][e[29].deviceId].icon)&&ee(s,"name",i),"home"===e[0].type?w?w.p(e,n):(w=Pc(e),w.c(),w.m(c,r)):w&&(w.d(1),w=null),769&n[0]&&k!==(k=e[9][e[29].deviceId].issues[e[29].pos].getRowTitle(e[0].type)+"")&&a.p(k),768&n[0]&&v!==(v=e[9][e[29].deviceId].nameModel+" - "+p("network.show.details"))&&X(u,"title",v)},d(e){e&&B(t),w&&w.d(),f=!1,N(_)}}}function Pc(e){let t,n,s,i=e[9][e[29].deviceId].nameModel+"";return{c(){t=Y("strong"),n=q(i),s=q(" ")},m(e,i){G(e,t,i),W(t,n),G(e,s,i)},p(e,t){768&t[0]&&i!==(i=e[9][e[29].deviceId].nameModel+"")&&te(n,i)},d(e){e&&B(t),e&&B(s)}}}function Hc(e){let t,n="skipped"===e[9][e[29].deviceId].issues[e[29].pos].state&&jc(e);return{c(){n&&n.c(),t=Q()},m(e,s){n&&n.m(e,s),G(e,t,s)},p(e,s){"skipped"===e[9][e[29].deviceId].issues[e[29].pos].state?n?n.p(e,s):(n=jc(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&B(t)}}}function zc(e){let t,n,s;return{c(){t=Y("kin-button"),t.textContent=`${p("global.done")}`,ee(t,"size","small"),ee(t,"data-test","hns_done-global")},m(i,o){G(i,t,o),n||(s=J(t,"click",e[20]),n=!0)},p:b,d(e){e&&B(t),n=!1,s()}}}function Uc(e){let t,n,s,i,o;function c(e,t){return e[7]?Bc:Gc}let r=c(e),a=r(e);return{c(){a.c(),t=K(),n=Y("div"),s=Y("button"),s.textContent=`${p("global.skipForNow")}`,X(s,"class","a"),X(n,"class","kin_actions__right")},m(c,r){a.m(c,r),G(c,t,r),G(c,n,r),W(n,s),i||(o=J(s,"click",e[18]),i=!0)},p(e,n){r===(r=c(e))&&a?a.p(e,n):(a.d(1),a=r(e),a&&(a.c(),a.m(t.parentNode,t)))},d(e){a.d(e),e&&B(t),e&&B(n),i=!1,o()}}}function Wc(e){let t;function n(e,t){return e[1]&&!e[7]?qc:Vc}let s=n(e),i=s(e);return{c(){i.c(),t=Q()},m(e,n){i.m(e,n),G(e,t,n)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&B(t)}}}function Gc(e){let t,n,s,i,o,c;return{c(){t=Y("div"),n=Y("p"),n.textContent=`${p("network.fix.first.problem")}`,s=K(),i=Y("kin-button"),i.textContent=`${p("network.issue.howtofix")}`,X(n,"class","g-margin-bottom--5"),ee(i,"size","small"),X(t,"class","g-align--center")},m(r,a){G(r,t,a),W(t,n),W(t,s),W(t,i),o||(c=J(i,"click",e[17]),o=!0)},p:b,d(e){e&&B(t),o=!1,c()}}}function Bc(e){let t;function n(e,t){return e[6]?Yc:Fc}let s=n(e),i=s(e);return{c(){i.c(),t=Q()},m(e,n){i.m(e,n),G(e,t,n)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&B(t)}}}function Fc(e){let t,n,s;return{c(){t=Y("kin-button"),t.textContent=`${p("global.done")}`,ee(t,"size","small"),ee(t,"data-test","hns_done-global")},m(i,o){G(i,t,o),n||(s=J(t,"click",e[20]),n=!0)},p:b,d(e){e&&B(t),n=!1,s()}}}function Yc(e){let t,n,s;return{c(){t=Y("kin-button"),t.textContent=`${p("network.rescan")}`,ee(t,"size","small")},m(i,o){G(i,t,o),n||(s=J(t,"click",e[19]),n=!0)},p:b,d(e){e&&B(t),n=!1,s()}}}function Vc(e){let t,n,s;return{c(){t=Y("kin-button"),t.textContent=`${p("global.done")}`,ee(t,"size","small"),ee(t,"data-test","hns_done-global")},m(i,o){G(i,t,o),n||(s=J(t,"click",e[20]),n=!0)},p:b,d(e){e&&B(t),n=!1,s()}}}function qc(e){let t,n,s,i,o,c,r,a,l;function d(e,t){return e[11]&&!e[12]?Jc:e[13]?Qc:e[11]||e[13]?void 0:Kc}let u=d(e),m=u&&u(e);return{c(){t=Y("div"),m&&m.c(),n=K(),s=Y("kin-button"),i=q(e[3]),o=K(),c=Y("div"),r=Y("button"),r.textContent=`${p("global.skipForNow")}`,ee(s,"size","small"),ee(s,"data-test","vpn_resolve"),X(t,"class","g-align--center"),X(r,"class","a"),X(r,"data-test","scan_skip-all-btn"),X(c,"class","kin_actions__right")},m(d,u){G(d,t,u),m&&m.m(t,null),W(t,n),W(t,s),W(s,i),G(d,o,u),G(d,c,u),W(c,r),a||(l=[J(s,"click",e[16]),J(r,"click",e[18])],a=!0)},p(e,s){u===(u=d(e))&&m?m.p(e,s):(m&&m.d(1),m=u&&u(e),m&&(m.c(),m.m(t,n))),8&s[0]&&te(i,e[3])},d(e){e&&B(t),m&&m.d(),e&&B(o),e&&B(c),a=!1,N(l)}}}function Kc(e){let t;return{c(){t=Y("p"),t.textContent=`${p("network.vpn.turn.on.buy")}`,X(t,"class","g-margin-bottom--5")},m(e,n){G(e,t,n)},p:b,d(e){e&&B(t)}}}function Qc(e){let t;return{c(){t=Y("p"),t.textContent=`${p("network.vpn.other.turn.on")}`,X(t,"class","g-margin-bottom--5")},m(e,n){G(e,t,n)},p:b,d(e){e&&B(t)}}}function Jc(e){let t;return{c(){t=Y("p"),t.textContent=`${p("network.vpn.turn.on.desc")}`,X(t,"class","g-margin-bottom--5")},m(e,n){G(e,t,n)},p:b,d(e){e&&B(t)}}}function Zc(e){let t,n,s,i,o,c=e[1]&&Ec(e);function r(e,t){return"public"===e[0].type?Wc:e[1]?Uc:zc}let a=r(e),l=a(e);return{c(){t=Y("div"),n=Y("kin-view"),s=Y("div"),c&&c.c(),i=K(),o=Y("div"),l.c(),X(s,"slot","view-content"),X(s,"class","hns_problems svelte-m7b09z"),X(o,"slot","view-actions"),ee(n,"actionbar","true"),ee(n,"csscls","-center"),ee(n,"loading",e[2]),X(t,"slot","page-content")},m(e,r){G(e,t,r),W(t,n),W(n,s),c&&c.m(s,null),W(n,i),W(n,o),l.m(o,null)},p(e,t){e[1]?c?c.p(e,t):(c=Ec(e),c.c(),c.m(s,null)):c&&(c.d(1),c=null),a===(a=r(e))&&l?l.p(e,t):(l.d(1),l=a(e),l&&(l.c(),l.m(o,null))),4&t[0]&&ee(n,"loading",e[2])},d(e){e&&B(t),c&&c.d(),l.d()}}}function Xc(e){let t,n;return{c(){t=K(),n=K()},m(e,s){G(e,t,s),G(e,n,s)},p:b,d(e){e&&B(t),e&&B(n)}}}function er(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f,_=p("network.looks.safe",e[10].networkInfo.name)+"";return d=new Nt({props:{id:432}}),{c(){t=Y("div"),n=Y("kin-icon"),s=K(),i=Y("h2"),o=q(_),c=K(),r=Y("p"),r.textContent=`${p("network.no.vuls")}`,a=K(),l=Y("div"),Pe(d.$$.fragment),u=K(),m=Y("div"),h=Y("kin-button"),h.textContent=`${p("global.done")}`,ee(n,"name","circle-ok"),ee(n,"size","128"),ee(n,"class","g-margin-bottom--20"),X(i,"class","h2 -margins"),X(r,"class","p -secondary -small hns_public__novuls svelte-m7b09z"),X(l,"class","hns_public__ipm svelte-m7b09z"),ee(h,"type","secondary"),ee(h,"data-test","hns_done-global"),X(m,"class","hns_cta svelte-m7b09z"),X(t,"slot","page-content")},m(p,_){G(p,t,_),W(t,n),W(t,s),W(t,i),W(i,o),W(t,c),W(t,r),W(t,a),W(t,l),He(d,l,null),W(t,u),W(t,m),W(m,h),v=!0,g||(f=J(h,"click",e[21]),g=!0)},p(e,t){(!v||1024&t[0])&&_!==(_=p("network.looks.safe",e[10].networkInfo.name)+"")&&te(o,_)},i(e){v||(Oe(d.$$.fragment,e),v=!0)},o(e){Le(d.$$.fragment,e),v=!1},d(e){e&&B(t),ze(d),g=!1,f()}}}function tr(e){let t,n,s,i;const o=[kc,_c],c=[];function r(e,t){return"public"!==e[0].type||e[1]?1:0}return t=r(e),n=c[t]=o[t](e),{c(){n.c(),s=Q()},m(e,n){c[t].m(e,n),G(e,s,n),i=!0},p(e,i){let a=t;t=r(e),t===a?c[t].p(e,i):(Ae(),Le(c[a],1,1,(()=>{c[a]=null})),De(),n=c[t],n?n.p(e,i):(n=c[t]=o[t](e),n.c()),Oe(n,1),n.m(s.parentNode,s))},i(e){i||(Oe(n),i=!0)},o(e){Le(n),i=!1},d(e){c[t].d(e),e&&B(s)}}}function nr(e,t,n){let s,i,o,c;function r(e,t){_("showIssue",{deviceId:e,pos:t})}T(e,tt,(e=>n(10,s=e))),T(e,ct,(e=>n(11,i=e))),T(e,ot,(e=>n(12,o=e))),T(e,rt,(e=>n(13,c=e)));let{scan:a}=t,{issueCount:l}=t,{loading:d}=t,{solveText:u}=t,{scanStopping:p}=t,{issuesSkippedCount:m}=t,{issuesSolvedCount:h}=t,{allIssuesSolved:v}=t,{issues:g}=t,{devices:f}=t;const _=ve();return e.$$set=e=>{"scan"in e&&n(0,a=e.scan),"issueCount"in e&&n(1,l=e.issueCount),"loading"in e&&n(2,d=e.loading),"solveText"in e&&n(3,u=e.solveText),"scanStopping"in e&&n(4,p=e.scanStopping),"issuesSkippedCount"in e&&n(5,m=e.issuesSkippedCount),"issuesSolvedCount"in e&&n(6,h=e.issuesSolvedCount),"allIssuesSolved"in e&&n(7,v=e.allIssuesSolved),"issues"in e&&n(8,g=e.issues),"devices"in e&&n(9,f=e.devices)},[a,l,d,u,p,m,h,v,g,f,s,i,o,c,function(){_("showDevices")},r,function(){_("resolve")},function(){_("showNextIssue")},function(){_("skipAllIssuesShow")},function(){_("rescan")},function(){_("scanDone")},function(){_("scanFinish")},e=>r(e.deviceId,e.pos),e=>r(e.deviceId,e.pos),e=>r(e.deviceId,e.pos),e=>r(e.deviceId,e.pos),e=>r(e.deviceId,e.pos),e=>r(e.deviceId,e.pos)]}class sr extends Ge{constructor(e){var t;super(),document.getElementById("svelte-m7b09z-style")||((t=Y("style")).id="svelte-m7b09z-style",t.textContent=".hns_problems.svelte-m7b09z{padding-top:3rem}.hns_problems__icon.svelte-m7b09z{background-color:rgba(255,255,255,0.1);padding:1rem;border-radius:5rem}.hns_problems__status.svelte-m7b09z{width:2.5rem;display:inline-block;text-align:end}.hns_public__novuls.svelte-m7b09z{margin-bottom:20px;padding-bottom:30px;border-bottom:1px solid #808080}.hns_public__ipm.svelte-m7b09z{width:600px;height:120px;position:relative;overflow:hidden}.hns_cta.svelte-m7b09z{position:absolute;bottom:4rem;text-align:center;left:0;right:0}",W(document.head,t)),We(this,e,nr,tr,C,{scan:0,issueCount:1,loading:2,solveText:3,scanStopping:4,issuesSkippedCount:5,issuesSolvedCount:6,allIssuesSolved:7,issues:8,devices:9},[-1,-1])}}function ir(e,t,n){const s=e.slice();return s[30]=t[n],s}function or(e,t,n){const s=e.slice();return s[30]=t[n],s}function cr(e){let t,n,s,i=p("network.scan.vuln.no")+"";return{c(){t=Y("kin-icon"),n=K(),s=q(i),ee(t,"name","circle-ok"),ee(t,"size","38"),ee(t,"data-test","hns_results-ok")},m(e,i){G(e,t,i),G(e,n,i),G(e,s,i)},p:b,d(e){e&&B(t),e&&B(n),e&&B(s)}}}function rr(e){let t,n,s,i=p("network.scan.vuln.devices",e[3])+"";return{c(){t=Y("kin-icon"),n=K(),s=q(i),ee(t,"name","circle-critical"),ee(t,"size","38"),ee(t,"data-test","hns_results-vulns")},m(e,i){G(e,t,i),G(e,n,i),G(e,s,i)},p(e,t){8&t[0]&&i!==(i=p("network.scan.vuln.devices",e[3])+"")&&te(s,i)},d(e){e&&B(t),e&&B(n),e&&B(s)}}}function ar(e){let t,n;function s(e,t){return e[3]?rr:cr}let i=s(e),o=i(e);return{c(){t=Y("div"),n=Y("h2"),o.c(),X(t,"slot","page-title")},m(e,s){G(e,t,s),W(t,n),o.m(n,null)},p(e,t){i===(i=s(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(n,null)))},d(e){e&&B(t),o.d()}}}function lr(e){let t,n,s;return{c(){t=Y("button"),t.textContent=`${p("network.rescan")}`,X(t,"class","a"),X(t,"data-test","network_rescan-btn")},m(i,o){G(i,t,o),n||(s=J(t,"click",e[19]),n=!0)},p:b,d(e){e&&B(t),n=!1,s()}}}function dr(e){let t,n,s,i=p("network.scanned.network",e[13].networkInfo.name,e[0].time)+"",o=!e[4]&&lr(e);return{c(){t=Y("p"),n=q(i),s=K(),o&&o.c(),X(t,"slot","controls"),X(t,"class","p -secondary g-margin-top--10")},m(e,i){G(e,t,i),W(t,n),W(t,s),o&&o.m(t,null)},p(e,s){8193&s[0]&&i!==(i=p("network.scanned.network",e[13].networkInfo.name,e[0].time)+"")&&te(n,i),e[4]?o&&(o.d(1),o=null):o?o.p(e,s):(o=lr(e),o.c(),o.m(t,null))},d(e){e&&B(t),o&&o.d()}}}function ur(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f,_,k,w,y,b,I,$=(e[1][e[6]].nameModel||p("network.device.name.unknown"))+"",x=e[14](e[1][e[6]])+"",E=e[1][e[6]].issues.length&&pr();return{c(){t=Y("div"),n=Y("h5"),n.textContent=`${p("network.computer")}`,s=K(),i=Y("div"),o=Y("div"),c=Y("kin-icon"),a=K(),E&&E.c(),l=K(),d=Y("div"),u=Y("p"),m=q($),h=K(),v=Y("div"),g=K(),f=Y("div"),_=Y("button"),k=Y("span"),k.textContent=`${p("network.show.details")}`,w=Y("kin-icon"),X(n,"class","h6"),X(t,"role","row"),X(t,"class","kin_table__row -title svelte-1lmoxuq"),ee(c,"name",r=e[1][e[6]].icon),ee(c,"size","24"),X(o,"class","kin_table__icon"),X(u,"class","g-ellipsis"),X(v,"class","p -small"),X(k,"class","kin_table__show-on-hover"),ee(w,"name","icon-s-controls-arrow-right"),ee(w,"size","16"),ee(w,"rtlflip","true"),ee(w,"class","hns_problems__status svelte-1lmoxuq"),X(_,"class","a -fake"),X(_,"title",y=(e[1][e[6]].nameModel||p("network.device.name.unknown"))+" - "+p("network.show.details")),X(f,"class","kin_table__end"),X(i,"role","row"),X(i,"class","kin_table__row -clickable svelte-1lmoxuq"),X(i,"data-test","computer_show-details")},m(r,p){G(r,t,p),W(t,n),G(r,s,p),G(r,i,p),W(i,o),W(o,c),W(o,a),E&&E.m(o,null),W(i,l),W(i,d),W(d,u),W(u,m),W(i,h),W(i,v),v.innerHTML=x,W(i,g),W(i,f),W(f,_),W(_,k),W(_,w),b||(I=[J(_,"click",e[21]),J(i,"click",e[22])],b=!0)},p(e,t){66&t[0]&&r!==(r=e[1][e[6]].icon)&&ee(c,"name",r),e[1][e[6]].issues.length?E||(E=pr(),E.c(),E.m(o,null)):E&&(E.d(1),E=null),66&t[0]&&$!==($=(e[1][e[6]].nameModel||p("network.device.name.unknown"))+"")&&te(m,$),66&t[0]&&x!==(x=e[14](e[1][e[6]])+"")&&(v.innerHTML=x),66&t[0]&&y!==(y=(e[1][e[6]].nameModel||p("network.device.name.unknown"))+" - "+p("network.show.details"))&&X(_,"title",y)},d(e){e&&B(t),e&&B(s),e&&B(i),E&&E.d(),b=!1,N(I)}}}function pr(e){let t;return{c(){t=Y("kin-icon"),ee(t,"name","icon-s-fill-unsecured"),ee(t,"size","16"),ee(t,"class","hns_devices__icon__status svelte-1lmoxuq"),ee(t,"data-test","hns_results-vuln")},m(e,n){G(e,t,n)},d(e){e&&B(t)}}}function mr(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f,_,k,w,y,b,I,$=(e[1][e[7]].nameModel||p("network.device.name.unknown"))+"",x=e[14](e[1][e[7]])+"",E=e[1][e[7]].issues.length&&hr();return{c(){t=Y("div"),n=Y("h5"),n.textContent=`${p("network.scan.heading.router")}`,s=K(),i=Y("div"),o=Y("div"),c=Y("kin-icon"),a=K(),E&&E.c(),l=K(),d=Y("div"),u=Y("p"),m=q($),h=K(),v=Y("div"),g=K(),f=Y("div"),_=Y("button"),k=Y("span"),k.textContent=`${p("network.show.details")}`,w=Y("kin-icon"),X(n,"class","h6"),X(t,"role","row"),X(t,"class","kin_table__row -title svelte-1lmoxuq"),ee(c,"name",r=e[1][e[7]].icon),ee(c,"size","24"),X(o,"class","kin_table__icon"),X(u,"class","g-ellipsis"),X(v,"class","p -small"),X(k,"class","kin_table__show-on-hover"),ee(w,"name","icon-s-controls-arrow-right"),ee(w,"size","16"),ee(w,"rtlflip","true"),ee(w,"class","hns_problems__status svelte-1lmoxuq"),X(_,"class","a -fake"),X(_,"title",y=(e[1][e[7]].nameModel||p("network.device.name.unknown"))+" - "+p("network.show.details")),X(f,"class","kin_table__end"),X(i,"role","row"),X(i,"class","kin_table__row -clickable svelte-1lmoxuq"),X(i,"data-test","router_show-details")},m(r,p){G(r,t,p),W(t,n),G(r,s,p),G(r,i,p),W(i,o),W(o,c),W(o,a),E&&E.m(o,null),W(i,l),W(i,d),W(d,u),W(u,m),W(i,h),W(i,v),v.innerHTML=x,W(i,g),W(i,f),W(f,_),W(_,k),W(_,w),b||(I=[J(_,"click",e[23]),J(i,"click",e[24])],b=!0)},p(e,t){130&t[0]&&r!==(r=e[1][e[7]].icon)&&ee(c,"name",r),e[1][e[7]].issues.length?E||(E=hr(),E.c(),E.m(o,null)):E&&(E.d(1),E=null),130&t[0]&&$!==($=(e[1][e[7]].nameModel||p("network.device.name.unknown"))+"")&&te(m,$),130&t[0]&&x!==(x=e[14](e[1][e[7]])+"")&&(v.innerHTML=x),130&t[0]&&y!==(y=(e[1][e[7]].nameModel||p("network.device.name.unknown"))+" - "+p("network.show.details"))&&X(_,"title",y)},d(e){e&&B(t),e&&B(s),e&&B(i),E&&E.d(),b=!1,N(I)}}}function hr(e){let t;return{c(){t=Y("kin-icon"),ee(t,"name","icon-s-fill-unsecured"),ee(t,"size","16"),ee(t,"class","hns_devices__icon__status svelte-1lmoxuq"),ee(t,"data-test","hns_results-vuln")},m(e,n){G(e,t,n)},d(e){e&&B(t)}}}function vr(e){let t,n,s,i,o,c=p("network.other.devices",e[9].length)+"",r=e[9],a=[];for(let l=0;l<r.length;l+=1)a[l]=fr(or(e,r,l));return{c(){t=Y("div"),n=Y("h5"),s=q(c),i=K();for(let e=0;e<a.length;e+=1)a[e].c();o=Q(),X(n,"class","h6"),X(t,"role","row"),X(t,"class","kin_table__row -title svelte-1lmoxuq")},m(e,c){G(e,t,c),W(t,n),W(n,s),G(e,i,c);for(let t=0;t<a.length;t+=1)a[t].m(e,c);G(e,o,c)},p(e,t){if(512&t[0]&&c!==(c=p("network.other.devices",e[9].length)+"")&&te(s,c),82434&t[0]){let n;for(r=e[9],n=0;n<r.length;n+=1){const s=or(e,r,n);a[n]?a[n].p(s,t):(a[n]=fr(s),a[n].c(),a[n].m(o.parentNode,o))}for(;n<a.length;n+=1)a[n].d(1);a.length=r.length}},d(e){e&&B(t),e&&B(i),F(a,e),e&&B(o)}}}function gr(e){let t;return{c(){t=Y("kin-icon"),ee(t,"name","icon-s-fill-unsecured"),ee(t,"size","16"),ee(t,"class","hns_devices__icon__status svelte-1lmoxuq"),ee(t,"data-test","hns_results-vuln")},m(e,n){G(e,t,n)},d(e){e&&B(t)}}}function fr(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f,_,k,w,y,b=(e[1][e[30]].nameModel||p("network.device.name.unknown"))+"",I=e[14](e[1][e[30]])+"",$=e[1][e[30]].issues.length&&gr();function x(){return e[25](e[30])}function E(){return e[26](e[30])}return{c(){t=Y("div"),n=Y("div"),s=Y("kin-icon"),o=K(),$&&$.c(),c=K(),r=Y("div"),a=Y("p"),l=q(b),d=K(),u=Y("div"),m=K(),h=Y("div"),v=Y("button"),g=Y("span"),g.textContent=`${p("network.show.details")}`,f=Y("kin-icon"),k=K(),ee(s,"name",i=e[1][e[30]].icon),ee(s,"size","24"),X(n,"class","kin_table__icon"),X(a,"class","g-ellipsis"),X(u,"class","p -small"),X(g,"class","kin_table__show-on-hover"),ee(f,"name","icon-s-controls-arrow-right"),ee(f,"size","16"),ee(f,"rtlflip","true"),ee(f,"class","hns_problems__status svelte-1lmoxuq"),X(v,"class","a -fake"),X(v,"title",_=(e[1][e[30]].nameModel||p("network.device.name.unknown"))+" - "+p("network.show.details")),X(h,"class","kin_table__end"),X(t,"role","row"),X(t,"class","kin_table__row -clickable svelte-1lmoxuq"),X(t,"data-test","device_show-details")},m(e,i){G(e,t,i),W(t,n),W(n,s),W(n,o),$&&$.m(n,null),W(t,c),W(t,r),W(r,a),W(a,l),W(t,d),W(t,u),u.innerHTML=I,W(t,m),W(t,h),W(h,v),W(v,g),W(v,f),W(t,k),w||(y=[J(v,"click",x),J(t,"click",E)],w=!0)},p(t,o){e=t,514&o[0]&&i!==(i=e[1][e[30]].icon)&&ee(s,"name",i),e[1][e[30]].issues.length?$||($=gr(),$.c(),$.m(n,null)):$&&($.d(1),$=null),514&o[0]&&b!==(b=(e[1][e[30]].nameModel||p("network.device.name.unknown"))+"")&&te(l,b),514&o[0]&&I!==(I=e[14](e[1][e[30]])+"")&&(u.innerHTML=I),514&o[0]&&_!==(_=(e[1][e[30]].nameModel||p("network.device.name.unknown"))+" - "+p("network.show.details"))&&X(v,"title",_)},d(e){e&&B(t),$&&$.d(),w=!1,N(y)}}}function _r(e){let t,n,s,i,o,c=p("network.shadow.devices",e[8].length)+"",r=e[8],a=[];for(let l=0;l<r.length;l+=1)a[l]=kr(ir(e,r,l));return{c(){t=Y("div"),n=Y("h5"),s=q(c),i=K();for(let e=0;e<a.length;e+=1)a[e].c();o=Q(),X(n,"class","h6"),X(t,"role","row"),X(t,"class","kin_table__row -title svelte-1lmoxuq")},m(e,c){G(e,t,c),W(t,n),W(n,s),G(e,i,c);for(let t=0;t<a.length;t+=1)a[t].m(e,c);G(e,o,c)},p(e,t){if(256&t[0]&&c!==(c=p("network.shadow.devices",e[8].length)+"")&&te(s,c),65794&t[0]){let n;for(r=e[8],n=0;n<r.length;n+=1){const s=ir(e,r,n);a[n]?a[n].p(s,t):(a[n]=kr(s),a[n].c(),a[n].m(o.parentNode,o))}for(;n<a.length;n+=1)a[n].d(1);a.length=r.length}},d(e){e&&B(t),e&&B(i),F(a,e),e&&B(o)}}}function kr(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f,_,k,w,y=(e[1][e[30]].nameModel||p("network.device.name.unknown"))+"";function b(){return e[27](e[30])}function I(){return e[28](e[30])}return{c(){t=Y("div"),n=Y("div"),s=Y("kin-icon"),o=K(),c=Y("div"),r=Y("p"),a=q(y),l=K(),d=Y("div"),u=K(),m=Y("div"),h=Y("button"),v=Y("span"),v.textContent=`${p("network.show.details")}`,g=Y("kin-icon"),_=K(),ee(s,"name",i=e[1][e[30]].icon),ee(s,"size","24"),X(n,"class","kin_table__icon"),X(r,"class","g-ellipsis"),X(v,"class","kin_table__show-on-hover"),ee(g,"name","icon-s-controls-arrow-right"),ee(g,"size","16"),ee(g,"rtlflip","true"),ee(g,"class","hns_problems__status svelte-1lmoxuq"),X(h,"class","a -fake"),X(h,"title",f=(e[1][e[30]].nameModel||p("network.device.name.unknown"))+" - "+p("network.show.details")),X(m,"class","kin_table__end"),X(t,"role","row"),X(t,"class","kin_table__row -hoverable svelte-1lmoxuq"),X(t,"data-test","device_show-details")},m(e,i){G(e,t,i),W(t,n),W(n,s),W(t,o),W(t,c),W(c,r),W(r,a),W(t,l),W(t,d),W(t,u),W(t,m),W(m,h),W(h,v),W(h,g),W(t,_),k||(w=[J(h,"click",b),J(t,"click",I)],k=!0)},p(t,n){e=t,258&n[0]&&i!==(i=e[1][e[30]].icon)&&ee(s,"name",i),258&n[0]&&y!==(y=(e[1][e[30]].nameModel||p("network.device.name.unknown"))+"")&&te(a,y),258&n[0]&&f!==(f=(e[1][e[30]].nameModel||p("network.device.name.unknown"))+" - "+p("network.show.details"))&&X(h,"title",f)},d(e){e&&B(t),k=!1,N(w)}}}function wr(e){let t,n,s;return{c(){t=Y("kin-button"),t.textContent=`${p("global.done")}`,ee(t,"size","small"),ee(t,"data-test","scan_done-btn")},m(i,o){G(i,t,o),n||(s=J(t,"click",e[20]),n=!0)},p:b,d(e){e&&B(t),n=!1,s()}}}function yr(e){let t,n,s,i,o;function c(e,t){return e[11]?Ir:br}let r=c(e),a=r(e);return{c(){a.c(),t=K(),n=Y("div"),s=Y("button"),s.textContent=`${p("global.skipForNow")}`,X(s,"class","a"),X(s,"data-test","scan_skip-all-btn"),X(n,"class","kin_actions__right")},m(c,r){a.m(c,r),G(c,t,r),G(c,n,r),W(n,s),i||(o=J(s,"click",e[18]),i=!0)},p(e,n){r===(r=c(e))&&a?a.p(e,n):(a.d(1),a=r(e),a&&(a.c(),a.m(t.parentNode,t)))},d(e){a.d(e),e&&B(t),e&&B(n),i=!1,o()}}}function br(e){let t;function n(e,t){return 1===e[3]?xr:$r}let s=n(e),i=s(e);return{c(){t=Y("div"),i.c(),X(t,"class","g-align--center")},m(e,n){G(e,t,n),i.m(t,null)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t,null)))},d(e){e&&B(t),i.d()}}}function Ir(e){let t;function n(e,t){return e[12]?Er:Nr}let s=n(e),i=s(e);return{c(){i.c(),t=Q()},m(e,n){i.m(e,n),G(e,t,n)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i.d(1),i=s(e),i&&(i.c(),i.m(t.parentNode,t)))},d(e){i.d(e),e&&B(t)}}}function $r(e){let t,n,s,i,o;return{c(){t=Y("p"),t.textContent=`${p("network.issue.look")}`,n=K(),s=Y("kin-button"),s.textContent=`${p("network.show.problems")}`,X(t,"class","g-margin-bottom--5"),ee(s,"size","small"),ee(s,"data-test","scan_show-issues-btn")},m(c,r){G(c,t,r),G(c,n,r),G(c,s,r),i||(o=J(s,"click",e[15]),i=!0)},p:b,d(e){e&&B(t),e&&B(n),e&&B(s),i=!1,o()}}}function xr(e){let t,n,s,i,o,c,r=p("network.fix.device.problem",e[1][e[2][0].deviceId].nameModel)+"";return{c(){t=Y("p"),n=q(r),s=K(),i=Y("kin-button"),i.textContent=`${p("network.issue.howtofix")}`,X(t,"class","g-margin-bottom--5"),ee(i,"size","small"),ee(i,"data-test","scan_fix-issues-btn")},m(r,a){G(r,t,a),W(t,n),G(r,s,a),G(r,i,a),o||(c=J(i,"click",e[17]),o=!0)},p(e,t){6&t[0]&&r!==(r=p("network.fix.device.problem",e[1][e[2][0].deviceId].nameModel)+"")&&te(n,r)},d(e){e&&B(t),e&&B(s),e&&B(i),o=!1,c()}}}function Nr(e){let t,n,s;return{c(){t=Y("kin-button"),t.textContent=`${p("global.done")}`,ee(t,"size","small"),ee(t,"data-test","scan_done-btn")},m(i,o){G(i,t,o),n||(s=J(t,"click",e[20]),n=!0)},p:b,d(e){e&&B(t),n=!1,s()}}}function Er(e){let t,n,s;return{c(){t=Y("kin-button"),t.textContent=`${p("network.rescan")}`,ee(t,"size","small"),ee(t,"data-test","network_rescan-btn")},m(i,o){G(i,t,o),n||(s=J(t,"click",e[19]),n=!0)},p:b,d(e){e&&B(t),n=!1,s()}}}function Cr(e){let t,n,s,i,o,c,r,a,l,d,u=e[6]&&ur(e),p=e[7]&&mr(e),m=e[9].length&&vr(e),h=e[8].length&&_r(e);function v(e,t){return e[10]?yr:wr}let g=v(e),f=g(e);return{c(){t=Y("div"),n=Y("kin-view"),s=Y("div"),i=Y("kin-table"),o=Y("div"),u&&u.c(),c=K(),p&&p.c(),r=K(),m&&m.c(),a=K(),h&&h.c(),l=K(),d=Y("div"),f.c(),X(o,"slot","table-body"),ee(i,"class","hns_devices svelte-1lmoxuq"),X(s,"slot","view-content"),X(d,"slot","view-actions"),ee(n,"loading",e[5]),ee(n,"csscls","-center -actions"),ee(n,"actionbar","true"),X(t,"slot","page-content")},m(e,v){G(e,t,v),W(t,n),W(n,s),W(s,i),W(i,o),u&&u.m(o,null),W(o,c),p&&p.m(o,null),W(o,r),m&&m.m(o,null),W(o,a),h&&h.m(o,null),W(n,l),W(n,d),f.m(d,null)},p(e,t){e[6]?u?u.p(e,t):(u=ur(e),u.c(),u.m(o,c)):u&&(u.d(1),u=null),e[7]?p?p.p(e,t):(p=mr(e),p.c(),p.m(o,r)):p&&(p.d(1),p=null),e[9].length?m?m.p(e,t):(m=vr(e),m.c(),m.m(o,a)):m&&(m.d(1),m=null),e[8].length?h?h.p(e,t):(h=_r(e),h.c(),h.m(o,null)):h&&(h.d(1),h=null),g===(g=v(e))&&f?f.p(e,t):(f.d(1),f=g(e),f&&(f.c(),f.m(d,null))),32&t[0]&&ee(n,"loading",e[5])},d(e){e&&B(t),u&&u.d(),p&&p.d(),m&&m.d(),h&&h.d(),f.d()}}}function Sr(e){let t,n;return{c(){t=K(),n=K()},m(e,s){G(e,t,s),G(e,n,s)},p:b,d(e){e&&B(t),e&&B(n)}}}function Mr(e){let t,n;return t=new fn({props:{cssCls:"hns -large-header -center-header",back:!1,$$slots:{default:[Sr],"page-content":[Cr],controls:[dr],"page-title":[ar]},$$scope:{ctx:e}}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};16383&n[0]|16&n[1]&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function Tr(e,t,n){let s;function i(e){k("showDevice",e)}T(e,tt,(e=>n(13,s=e)));let{scan:o}=t,{devices:c}=t,{issues:r}=t,{issuedDevicesCount:a}=t,{scanStopping:l}=t,{loading:d}=t,{myDeviceId:u}=t,{myRouterId:m}=t,{shadowDevices:h}=t,{devicesAroundMe:v}=t,{issueCount:g}=t,{allIssuesSolved:f}=t,{issuesSolvedCount:_}=t;const k=ve();return e.$$set=e=>{"scan"in e&&n(0,o=e.scan),"devices"in e&&n(1,c=e.devices),"issues"in e&&n(2,r=e.issues),"issuedDevicesCount"in e&&n(3,a=e.issuedDevicesCount),"scanStopping"in e&&n(4,l=e.scanStopping),"loading"in e&&n(5,d=e.loading),"myDeviceId"in e&&n(6,u=e.myDeviceId),"myRouterId"in e&&n(7,m=e.myRouterId),"shadowDevices"in e&&n(8,h=e.shadowDevices),"devicesAroundMe"in e&&n(9,v=e.devicesAroundMe),"issueCount"in e&&n(10,g=e.issueCount),"allIssuesSolved"in e&&n(11,f=e.allIssuesSolved),"issuesSolvedCount"in e&&n(12,_=e.issuesSolvedCount)},[o,c,r,a,l,d,u,m,h,v,g,f,_,s,function(e){return e.issues.length?e.rescanIssuesCount?p("network.device.rescan"):e.skippedIssuesCount===e.issues.length?p("network.device.problems.ignored"):'<kin-icon name="icon-s-fill-unsecured" size="16" data-test="hns_results-vuln"></kin-icon><span class="g-margin-left--5">'+p("network.device.vulnerable")+"</span>":""},function(){k("showIssues")},i,function(){k("showNextIssue")},function(){k("skipAllIssuesShow")},function(){k("rescan")},function(){k("scanDone")},()=>i(u),()=>i(u),()=>i(m),()=>i(m),e=>i(e),e=>i(e),e=>i(e),e=>i(e)]}class Ar extends Ge{constructor(e){var t;super(),document.getElementById("svelte-1lmoxuq-style")||((t=Y("style")).id="svelte-1lmoxuq-style",t.textContent=".hns_devices.svelte-1lmoxuq .kin_table__row.svelte-1lmoxuq{grid-template-columns:4rem 38% auto 22%}.hns_devices__icon__status.svelte-1lmoxuq.svelte-1lmoxuq{position:absolute;top:55%;left:50%}.hns_problems__status.svelte-1lmoxuq.svelte-1lmoxuq{width:2.5rem;display:inline-block;text-align:end}",W(document.head,t)),We(this,e,Tr,Mr,C,{scan:0,devices:1,issues:2,issuedDevicesCount:3,scanStopping:4,loading:5,myDeviceId:6,myRouterId:7,shadowDevices:8,devicesAroundMe:9,issueCount:10,allIssuesSolved:11,issuesSolvedCount:12},[-1,-1])}}function Dr(e){let t,n;return t=new hc({props:{loading:e[7],devices4watcher:e[20],scan:e[0]}}),t.$on("scanFinish",e[42]),t.$on("go2secureline",e[39]),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};128&n[0]&&(s.loading=e[7]),1048576&n[0]&&(s.devices4watcher=e[20]),1&n[0]&&(s.scan=e[0]),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function Or(e){let t,n,s,i;const o=[zr,Hr,Pr,jr],c=[];function r(e,t){return e[0].networkChanged?0:e[19]?"devices"!==e[17]||(!e[1]||e[11])&&e[1]?"issues"===e[17]?3:-1:2:1}return~(t=r(e))&&(n=c[t]=o[t](e)),{c(){n&&n.c(),s=Q()},m(e,n){~t&&c[t].m(e,n),G(e,s,n),i=!0},p(e,i){let a=t;t=r(e),t===a?~t&&c[t].p(e,i):(n&&(Ae(),Le(c[a],1,1,(()=>{c[a]=null})),De()),~t?(n=c[t],n?n.p(e,i):(n=c[t]=o[t](e),n.c()),Oe(n,1),n.m(s.parentNode,s)):n=null)},i(e){i||(Oe(n),i=!0)},o(e){Le(n),i=!1},d(e){~t&&c[t].d(e),e&&B(s)}}}function Lr(e){let t,n;return t=new ic({props:{loading:e[7],scan:e[0],devices4watcher:e[20]}}),t.$on("scanFinish",e[42]),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};128&n[0]&&(s.loading=e[7]),1&n[0]&&(s.scan=e[0]),1048576&n[0]&&(s.devices4watcher=e[20]),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function Rr(e){let t,n;return t=new Xo({props:{loading:e[7],devices:e[18],scan:e[0],progress:e[16],issueCount:e[3],deviceCount:e[19],scanAnimColor:e[2]}}),t.$on("scanStop",e[43]),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};128&n[0]&&(s.loading=e[7]),262144&n[0]&&(s.devices=e[18]),1&n[0]&&(s.scan=e[0]),65536&n[0]&&(s.progress=e[16]),8&n[0]&&(s.issueCount=e[3]),524288&n[0]&&(s.deviceCount=e[19]),4&n[0]&&(s.scanAnimColor=e[2]),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function jr(e){let t,n;return t=new sr({props:{scan:e[0],issueCount:e[3],loading:e[7],scanStopping:e[27],issuesSkippedCount:e[5],issues:e[14],devices:e[18],issuesSolvedCount:e[4],allIssuesSolved:e[26],solveText:e[38]()}}),t.$on("resolve",e[36]),t.$on("showDevices",e[49]),t.$on("showIssue",e[33]),t.$on("scanFinish",e[42]),t.$on("scanDone",e[41]),t.$on("showNextIssue",e[34]),t.$on("skipAllIssuesShow",e[45]),t.$on("rescan",e[40]),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.scan=e[0]),8&n[0]&&(s.issueCount=e[3]),128&n[0]&&(s.loading=e[7]),134217728&n[0]&&(s.scanStopping=e[27]),32&n[0]&&(s.issuesSkippedCount=e[5]),16384&n[0]&&(s.issues=e[14]),262144&n[0]&&(s.devices=e[18]),16&n[0]&&(s.issuesSolvedCount=e[4]),67108864&n[0]&&(s.allIssuesSolved=e[26]),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function Pr(e){let t,n;return t=new Ar({props:{scan:e[0],issues:e[14],issuedDevicesCount:e[15],scanStopping:e[27],loading:e[7],myDeviceId:e[21],devices:e[18],myRouterId:e[22],shadowDevices:e[24],devicesAroundMe:e[23],issueCount:e[3],allIssuesSolved:e[26],issuesSolvedCount:e[4]}}),t.$on("showDevice",e[28]),t.$on("scanDone",e[41]),t.$on("showIssues",e[48]),t.$on("showNextIssue",e[34]),t.$on("skipAllIssuesShow",e[45]),t.$on("rescan",e[40]),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.scan=e[0]),16384&n[0]&&(s.issues=e[14]),32768&n[0]&&(s.issuedDevicesCount=e[15]),134217728&n[0]&&(s.scanStopping=e[27]),128&n[0]&&(s.loading=e[7]),2097152&n[0]&&(s.myDeviceId=e[21]),262144&n[0]&&(s.devices=e[18]),4194304&n[0]&&(s.myRouterId=e[22]),16777216&n[0]&&(s.shadowDevices=e[24]),8388608&n[0]&&(s.devicesAroundMe=e[23]),8&n[0]&&(s.issueCount=e[3]),67108864&n[0]&&(s.allIssuesSolved=e[26]),16&n[0]&&(s.issuesSolvedCount=e[4]),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function Hr(e){let t,n;return t=new Oo({props:{scan:e[0],loading:e[7],devices4watcher:e[20],scanStopping:e[27]}}),t.$on("rescan",e[40]),t.$on("scanFinish",e[42]),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};1&n[0]&&(s.scan=e[0]),128&n[0]&&(s.loading=e[7]),1048576&n[0]&&(s.devices4watcher=e[20]),134217728&n[0]&&(s.scanStopping=e[27]),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function zr(e){let t,n;return t=new fn({props:{cssCls:"hns -no-header -center-all",back:"false",loading:e[7],$$slots:{"page-content":[Ur]},$$scope:{ctx:e}}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};128&n[0]&&(s.loading=e[7]),64&n[0]|32&n[2]&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function Ur(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f,_,k=p("network.scan.netChanged.desc",e[6].networkInfo.name)+"",w=p("network.scan.netChanged.rescan")+"";return{c(){t=Y("div"),n=Y("kin-icon"),s=K(),i=Y("div"),o=Y("h1"),o.textContent=`${p("network.scan.netChanged")}`,c=K(),r=Y("p"),a=q(k),l=Y("br"),d=q(w),u=K(),m=Y("div"),h=Y("kin-button"),h.textContent=`${p("network.scan.again")}`,v=K(),g=Y("kin-button"),g.textContent=`${p("global.done")}`,ee(n,"name","circle-attention"),ee(n,"class","kin_scan__icon"),ee(n,"size","96"),X(o,"class","h1 kin_scan__title -overlay"),X(r,"class","kin_scan__subtitle -overlay"),X(i,"class","kin_scan__result"),ee(h,"size","large"),ee(g,"size","large"),ee(g,"type","secondary"),ee(g,"class","g-margin-left--10"),ee(g,"data-test","hns_done-global"),X(m,"class","kin_scan__actions"),X(t,"slot","page-content")},m(p,k){G(p,t,k),W(t,n),W(t,s),W(t,i),W(i,o),W(i,c),W(i,r),W(r,a),W(r,l),W(r,d),W(t,u),W(t,m),W(m,h),W(m,v),W(m,g),f||(_=[J(h,"click",e[47]),J(g,"click",e[42])],f=!0)},p(e,t){64&t[0]&&k!==(k=p("network.scan.netChanged.desc",e[6].networkInfo.name)+"")&&te(a,k)},d(e){e&&B(t),f=!1,N(_)}}}function Wr(e){let t,n;return t=new Wt({props:{closable:!0,$$slots:{default:[Fr],"modal-footer":[Br],"modal-content":[Gr]},$$scope:{ctx:e}}}),t.$on("close",e[46]),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};32&n[2]&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function Gr(e){let t,n,s,i,o,c,r,a,l,d=p("network.vuln.hackers")+"",u=p("network.issue.resolveit")+"";return{c(){t=Y("div"),n=Y("kin-icon"),s=K(),i=Y("p"),i.textContent=`${p("network.vuln.skip")}`,o=K(),c=Y("p"),r=q(d),a=Y("br"),l=q(u),ee(n,"name","circle-error"),ee(n,"size","80"),ee(n,"class","g-margin-bottom--20"),X(i,"class","sve_modal__title"),X(c,"class","sve_modal__subtitle"),X(t,"slot","modal-content")},m(e,d){G(e,t,d),W(t,n),W(t,s),W(t,i),W(t,o),W(t,c),W(c,r),W(c,a),W(c,l)},p:b,d(e){e&&B(t)}}}function Br(e){let t,n,s,i,o,c;return{c(){t=Y("div"),n=Y("kin-button"),n.textContent=`${p("global.skip")}`,s=K(),i=Y("kin-button"),i.textContent=`${p("global.stop")}`,ee(n,"type","critical"),ee(n,"data-test","modal_confirm"),ee(i,"type","secondary"),ee(i,"class","g-margin-left--10"),ee(i,"data-test","skip_all-issues"),X(t,"slot","modal-footer")},m(r,a){G(r,t,a),W(t,n),W(t,s),W(t,i),o||(c=[J(n,"click",e[44]),J(i,"click",e[46])],o=!0)},p:b,d(e){e&&B(t),o=!1,N(c)}}}function Fr(e){let t;return{c(){t=K()},m(e,n){G(e,t,n)},p:b,d(e){e&&B(t)}}}function Yr(e){let t,n,s,i;const o=[qr,Vr],c=[];function r(e,t){return e[1]?0:1}return t=r(e),n=c[t]=o[t](e),{c(){n.c(),s=Q()},m(e,n){c[t].m(e,n),G(e,s,n),i=!0},p(e,i){let a=t;t=r(e),t===a?c[t].p(e,i):(Ae(),Le(c[a],1,1,(()=>{c[a]=null})),De(),n=c[t],n?n.p(e,i):(n=c[t]=o[t](e),n.c()),Oe(n,1),n.m(s.parentNode,s))},i(e){i||(Oe(n),i=!0)},o(e){Le(n),i=!1},d(e){c[t].d(e),e&&B(s)}}}function Vr(e){let t,n,s;return t=new Cn({props:{type:"page",$$slots:{default:[Kr]},$$scope:{ctx:e}}}),t.$on("close",e[29]),{c(){Pe(t.$$.fragment),n=q(">")},m(e,i){He(t,e,i),G(e,n,i),s=!0},p(e,n){const s={};33816576&n[0]|32&n[2]&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){s||(Oe(t.$$.fragment,e),s=!0)},o(e){Le(t.$$.fragment,e),s=!1},d(e){ze(t,e),e&&B(n)}}}function qr(e){let t,n,s,i,o,c,r,a;return o=new pi({props:{device:e[18][e[25]]}}),o.$on("forgetDevice",e[32]),o.$on("showIssue",e[33]),o.$on("editDevice",e[30]),{c(){t=Y("button"),n=Y("kin-icon"),i=K(),Pe(o.$$.fragment),ee(n,"name","icon-s-controls-arrow-left"),ee(n,"size","20"),ee(n,"rtlflip","true"),X(t,"id","layout_backBtn"),X(t,"class","nui__layout-back hns_back svelte-copg3x"),X(t,"title",s=p("global.back"))},m(s,l){G(s,t,l),W(t,n),G(s,i,l),He(o,s,l),c=!0,r||(a=J(t,"click",e[29]),r=!0)},p(e,t){const n={};33816576&t[0]&&(n.device=e[18][e[25]]),o.$set(n)},i(e){c||(Oe(o.$$.fragment,e),c=!0)},o(e){Le(o.$$.fragment,e),c=!1},d(e){e&&B(t),e&&B(i),ze(o,e),r=!1,a()}}}function Kr(e){let t,n,s;return t=new pi({props:{device:e[18][e[25]]}}),t.$on("forgetDevice",e[32]),t.$on("showIssue",e[33]),t.$on("editDevice",e[30]),{c(){Pe(t.$$.fragment),n=K()},m(e,i){He(t,e,i),G(e,n,i),s=!0},p(e,n){const s={};33816576&n[0]&&(s.device=e[18][e[25]]),t.$set(s)},i(e){s||(Oe(t.$$.fragment,e),s=!0)},o(e){Le(t.$$.fragment,e),s=!1},d(e){ze(t,e),e&&B(n)}}}function Qr(e){let t,n,s,i,o,c,r,a,l,d;const u=[Rr,Lr,Or,Dr],p=[];function m(e,t){return"running"===e[13]?0:"skipped"===e[13]?1:"done"===e[13]?2:"finished"===e[13]?3:-1}~(t=m(e))&&(n=p[t]=u[t](e)),i=new No({props:{issue:e[8],details:e[9]}}),i.$on("rescan",e[40]),i.$on("resolve",e[36]),i.$on("resolved",e[37]),i.$on("skip",e[35]),c=new bi({props:{device:e[12],scan:e[0]}}),c.$on("save",e[31]);let h=e[10]&&Wr(e),v=e[11]&&Yr(e);return{c(){n&&n.c(),s=K(),Pe(i.$$.fragment),o=K(),Pe(c.$$.fragment),r=K(),h&&h.c(),a=K(),v&&v.c(),l=Q()},m(e,n){~t&&p[t].m(e,n),G(e,s,n),He(i,e,n),G(e,o,n),He(c,e,n),G(e,r,n),h&&h.m(e,n),G(e,a,n),v&&v.m(e,n),G(e,l,n),d=!0},p(e,o){let r=t;t=m(e),t===r?~t&&p[t].p(e,o):(n&&(Ae(),Le(p[r],1,1,(()=>{p[r]=null})),De()),~t?(n=p[t],n?n.p(e,o):(n=p[t]=u[t](e),n.c()),Oe(n,1),n.m(s.parentNode,s)):n=null);const d={};256&o[0]&&(d.issue=e[8]),512&o[0]&&(d.details=e[9]),i.$set(d);const g={};4096&o[0]&&(g.device=e[12]),1&o[0]&&(g.scan=e[0]),c.$set(g),e[10]?h?(h.p(e,o),1024&o[0]&&Oe(h,1)):(h=Wr(e),h.c(),Oe(h,1),h.m(a.parentNode,a)):h&&(Ae(),Le(h,1,1,(()=>{h=null})),De()),e[11]?v?(v.p(e,o),2048&o[0]&&Oe(v,1)):(v=Yr(e),v.c(),Oe(v,1),v.m(l.parentNode,l)):v&&(Ae(),Le(v,1,1,(()=>{v=null})),De())},i(e){d||(Oe(n),Oe(i.$$.fragment,e),Oe(c.$$.fragment,e),Oe(h),Oe(v),d=!0)},o(e){Le(n),Le(i.$$.fragment,e),Le(c.$$.fragment,e),Le(h),Le(v),d=!1},d(e){~t&&p[t].d(e),e&&B(s),ze(i,e),e&&B(o),ze(c,e),e&&B(r),h&&h.d(e),e&&B(a),v&&v.d(e),e&&B(l)}}}function Jr(e,t,n){let i,o,c,r,a,l,d;function u(e,t){s.event("HNS-"+F.type,"Click","ShowIssue"),s.view("HNS-"+F.type+"_issue-detail");const r=j[e].issues[t],a={deviceId:e,pos:t};a.scanType=F.type,a.issueOnGateway=F.isMyRouter(j[e]),a.resolveType=g(e,t),a.solveBtnText=h(e,t),a.ipm=!1,"home"!==F.type||!M||i||o||c||(a.ipm=418),n(9,$=a),n(8,I=r)}function m(e,t){const n=g(e,t);if("vpn"===n)if(c&&!o)s.event("HNS-"+F.type,"Click","openVpn"),_();else if(i)w();else{const e=M?416:417;s.event("HNS-"+F.type,"Click","IPM "+e),f.openWindow(e)}else"dns"===n&&(r?location.hash="SecureDNS":(s.event("HNS-"+F.type,"Click","IPM 343"),f.openWindow(343)))}function h(e,t){const n=g(e,t);return"vpn"===n?p(c&&!o?"network.issue.action.open.secureline":i?"network.vpn.other.btn":"network.issue.action.buy.secureline"):"dns"===n?p(r?"network.issue.action.open.securedns":"network.issue.action.buy.securedns"):void 0}function g(e,t){if(v.isAfbEdition())return!1;let n;if(n=null!=e?null!=t?[j[e].issues[t]]:j[e].issues:S.map((e=>j[e.deviceId].issues[e.pos])),n.find((e=>e.data.risks.includes("RESOLVING_HIJACK")))){if("home"===F.type)return"dns";if("public"===F.type)return!i||c&&!a?"vpn":"dns"}return!("public"!==F.type||!i&&a)&&"vpn"}function _(){Je.openVpn()}function k(){Q.forEach((e=>e())),Q.length=0}function w(){F.ran?y():F.finish()}function y(){K("page")}T(e,rt,(e=>n(51,i=e))),T(e,ot,(e=>n(52,o=e))),T(e,ct,(e=>n(53,c=e))),T(e,at,(e=>n(54,r=e))),T(e,lt,(e=>n(55,a=e))),T(e,it,(e=>n(56,l=e))),T(e,tt,(e=>n(6,d=e)));let b,I,$,x,N,E,C,S,M,A,D,O,L,R,j,P,H,z,U,W,G,B,{scan:F}=t,{showModuleInOverlay:Y}=t,{scanAnimColor:V}=t,q=!0;const K=ve(),Q=[];let J,Z;return he((()=>{k()})),e.$$set=e=>{"scan"in e&&n(0,F=e.scan),"showModuleInOverlay"in e&&n(1,Y=e.showModuleInOverlay),"scanAnimColor"in e&&n(2,V=e.scanAnimColor)},e.$$.update=()=>{65&e.$$.dirty[0]|33030144&e.$$.dirty[1]&&(b||void 0===c||void 0===o||void 0===i||void 0===a||void 0===r||void 0===d||(n(50,b=!0),F?n(7,q=!1):K("page"))),56&e.$$.dirty[0]&&n(26,J=A+D===M),e.$$.dirty[1],33554432&e.$$.dirty[1]&&n(27,Z="stopping"===l),1&e.$$.dirty[0]&&void 0!==F&&(k(),Q.push(F.state.subscribe((e=>n(13,C=e)))),Q.push(F.resultType.subscribe((e=>n(17,R=e)))),Q.push(F.devices.subscribe((e=>{e&&(n(18,j=e),"public"===F.type?(n(22,U=F.getMyRouterId()),n(14,S=U?j[U].getIssues():[])):(n(14,S=F.getIssues()),n(15,O=F.getDevicesWithIssues().length)),n(19,P=Object.keys(e).length),n(3,M=S.length))}))),Q.push(F.progress.subscribe((e=>{n(16,L=e||0),100===L&&(n(4,A=0),n(5,D=0),"public"===F.type?(n(22,U=F.getMyRouterId()),U&&n(5,D=j[U].getSkippedIssuesCount()),(o||i&&!M)&&F.finish()):(n(5,D=F.getSkippedIssuesCount()),n(21,z=F.getMyDeviceId()),n(22,U=F.getMyRouterId()),n(23,W=F.getDevicesAroundMe()),n(24,G=F.getShadowDevices()),n(20,H=F.getDevices4watcher())),F.ran||(s.view("HNS-"+F.type+"_results"),M&&M-D>0?(s.view("HNS-"+F.type+"_issues"),s.ipm(419)):s.ipm(420),s.event("HNS-"+F.type,"Number of issues",M),s.event("HNS-"+F.type,"Number of devices",P),s.event("HNS-"+F.type,"Type of issues",S.map((e=>j[e.deviceId].issues[e.pos].data.catalog_name)).join(","))),F.networkChanged&&s.view("HNS-"+F.type+"_networkChanged"),localStorage.getItem("DEBUG_HNS")&&console.log("100F",{issuesSolvedCount:A,issuesSkippedCount:D,issueCount:M,deviceCount:P,issuedDevicesCount:O,myRouterId:U})),localStorage.getItem("DEBUG_HNS")&&(window.hns={devices:j,issues:S})}))))},[F,Y,V,M,A,D,d,q,I,$,x,N,E,C,S,O,L,R,j,P,H,z,U,W,G,B,J,Z,function(e){s.view("HNS-"+F.type+"_device-detail"),n(25,B=e.detail),n(11,N=!0)},function(){n(11,N=!1)},function(){n(12,E=j[B])},function(e){n(18,j[B]=j[B].update(e.detail),j)},function(){const e=G.indexOf(B);-1!==e&&(n(11,N=!1),F.forgetDevice(B),G.splice(e,1),delete j[B])},function(e){u(e.detail.deviceId,e.detail.pos)},function(){const e=S.find((e=>!j[e.deviceId].issues[e.pos].state));e?u(e.deviceId,e.pos):w()},function(e){var t,s;t=e.detail.deviceId,s=e.detail.pos,j[t].issues[s].state||(j[t].setIssueState(s,"skipped"),n(18,j),n(5,D++,D),F.skipIssue(t,j[t].issues[s]))},function(e){e&&e.detail?m(e.detail.deviceId,e.detail.pos):m()},function(e){var t,s;t=e.detail.deviceId,s=e.detail.pos,"resolved"!==j[t].issues[s].state&&("skipped"===j[t].issues[s].state&&n(5,D--,D),j[t].setIssueState(s,"resolved"),n(18,j),n(4,A++,A),F.resolveIssue(t,j[t].issues[s]))},h,_,function(){n(11,N=!1),"stopping"!==l&&(s.event("HNS-"+F.type,"Click","RescanNetwork"),F.rescan())},w,y,function(){s.event("HNS-"+F.type,"Click","StopScan"),it.stopping(),F.stop()},function(){s.event("HNS-"+F.type,"Click","SkipAllIssues"),F.skip(),n(10,x=!1)},function(){n(10,x=!0)},function(){n(10,x=!1)},function(){K("scanNetwork")},function(){F.resultType.set("issues")},function(){F.resultType.set("devices")},b,i,o,c,r,a,l]}class Zr extends Ge{constructor(e){var t;super(),document.getElementById("svelte-copg3x-style")||((t=Y("style")).id="svelte-copg3x-style",t.textContent=".hns_back.svelte-copg3x{position:relative;margin-top:-6.2rem;margin-left:-5rem}",W(document.head,t)),We(this,e,Jr,Qr,C,{scan:0,showModuleInOverlay:1,scanAnimColor:2},[-1,-1,-1])}}function Xr(e){let t,n;return t=new Is({}),t.$on("showScan",e[7]),t.$on("scanNetwork",e[9]),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p:b,i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function ea(e){let t,n;return t=new Zr({props:{scan:e[3],showModuleInOverlay:e[0],scanAnimColor:e[1]}}),t.$on("page",e[6]),t.$on("scanNetwork",e[9]),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};8&n&&(s.scan=e[3]),1&n&&(s.showModuleInOverlay=e[0]),2&n&&(s.scanAnimColor=e[1]),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function ta(e){let t,n;return t=new yn({props:{text:p("network")}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p:b,i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function na(e){let t,n;return t=new Ss({}),t.$on("startScan",e[8]),t.$on("close",e[10]),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p:b,i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function sa(e){let t,n,s,i,o;const c=[ta,ea,Xr],r=[];function a(e,t){return e[5]?0:"scan"===e[2]?1:2}t=a(e),n=r[t]=c[t](e);let l=e[4]&&na(e);return{c(){n.c(),s=K(),l&&l.c(),i=Q()},m(e,n){r[t].m(e,n),G(e,s,n),l&&l.m(e,n),G(e,i,n),o=!0},p(e,[o]){let d=t;t=a(e),t===d?r[t].p(e,o):(Ae(),Le(r[d],1,1,(()=>{r[d]=null})),De(),n=r[t],n?n.p(e,o):(n=r[t]=c[t](e),n.c()),Oe(n,1),n.m(s.parentNode,s)),e[4]?l?(l.p(e,o),16&o&&Oe(l,1)):(l=na(e),l.c(),Oe(l,1),l.m(i.parentNode,i)):l&&(Ae(),Le(l,1,1,(()=>{l=null})),De())},i(e){o||(Oe(n),Oe(l),o=!0)},o(e){Le(n),Le(l),o=!1},d(e){r[t].d(e),e&&B(s),l&&l.d(e),e&&B(i)}}}function ia(e,t,i){let o,r;function a(e){e?(h&&h.destroy(),i(3,h=e),i(2,m="scan")):i(2,m="")}function l(e){i(4,v=!1),function(e){const t=new wt;return t.start(e).then((()=>t))}(e).then((e=>a(e))).catch((t=>u.error("cant start scan of type("+e+")",t)))}T(e,n,(e=>i(11,o=e))),T(e,et,(e=>i(12,r=e)));const u=c.createLogger("network.app"),p=new d;p.on("/",(()=>i(2,m=""))),p.on("/runningScan",(()=>yt().then((e=>a(e))).catch((e=>u.error("cant hook to scan on /runningScan page",e))).finally((()=>window.location.hash="SecurityNetwork"))));let m,h,v,g,{showModuleInOverlay:f}=t,{scanAnimColor:_}=t;return he((()=>{p.removeAllListeners(),h&&h.destroy()})),e.$$set=e=>{"showModuleInOverlay"in e&&i(0,f=e.showModuleInOverlay),"scanAnimColor"in e&&i(1,_=e.scanAnimColor)},e.$$.update=()=>{6144&e.$$.dirty&&i(5,g=!o.online&&r<=Ke)},[f,_,m,h,v,g,function(e){var t;t=e.detail,i(2,m=t)},function(e){a(e.detail)},function(e){l(e.detail)},function(){i(4,v=!0)},function(){i(4,v=!1),s.event("HNS","Click","CloseScanTypeModal")},o,r]}function oa(e,t,n){const s=e.slice();return s[14]=t[n],s[16]=n,s}function ca(e){let t;function n(e,t){return e[2]?aa:e[0]&&e[0].length?ra:void 0}let s=n(e),i=s&&s(e);return{c(){t=Y("div"),i&&i.c()},m(e,n){G(e,t,n),i&&i.m(t,null)},p(e,o){s===(s=n(e))&&i?i.p(e,o):(i&&i.d(1),i=s&&s(e),i&&(i.c(),i.m(t,null)))},d(e){e&&B(t),i&&i.d()}}}function ra(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f,_=e[0],k=[];for(let p=0;p<_.length;p+=1)k[p]=ua(oa(e,_,p));return{c(){t=Y("p"),t.textContent=`${p(ha.notifyMeWhen)}`,n=K(),s=Y("table"),i=Y("colgroup"),i.innerHTML='<col width="5%"/> \n\t\t\t\t\t\t\t<col width="60%"/> \n\t\t\t\t\t\t\t<col width="30%"/> \n\t\t\t\t\t\t\t<col width="5%"/>',o=K(),c=Y("tr"),r=Y("th"),a=K(),l=Y("th"),l.textContent=`${p(ha.visitedNets)}`,d=K(),u=Y("th"),u.textContent=`${p(ha.notifyNew)}`,m=K(),h=Y("th"),v=K(),g=Y("th"),f=K();for(let e=0;e<k.length;e+=1)k[e].c();X(t,"class","p -small -secondary -margins g-margin-top--15"),X(s,"class","table -small -fixed")},m(e,p){G(e,t,p),G(e,n,p),G(e,s,p),W(s,i),W(s,o),W(s,c),W(c,r),W(c,a),W(c,l),W(c,d),W(c,u),W(c,m),W(c,h),W(c,v),W(c,g),W(s,f);for(let t=0;t<k.length;t+=1)k[t].m(s,null)},p(e,t){if(25&t){let n;for(_=e[0],n=0;n<_.length;n+=1){const i=oa(e,_,n);k[n]?k[n].p(i,t):(k[n]=ua(i),k[n].c(),k[n].m(s,null))}for(;n<k.length;n+=1)k[n].d(1);k.length=_.length}},d(e){e&&B(t),e&&B(n),e&&B(s),F(k,e)}}}function aa(e){let t,n;return{c(){t=Y("kin-loading"),ee(t,"fullscreen",n=!0)},m(e,n){G(e,t,n)},p:b,d(e){e&&B(t)}}}function la(e){let t,n,s,i,o,c,r,a,l,d=p("domain"===e[14].type?ha.netDomain:ha.netPublic)+"",u=p("domain"===e[14].type?ha.notifyTipDomain:ha.notifyTipPublic)+"";return{c(){t=Y("kin-tooltip"),n=Y("div"),s=q(d),i=K(),o=Y("kin-icon"),c=K(),r=Y("div"),a=Y("p"),l=q(u),ee(o,"name","icon-m-action-info"),ee(o,"size","16"),X(n,"slot","tooltip-activator"),X(a,"class","p -small"),X(r,"slot","tooltip"),ee(t,"class","sta_info")},m(e,d){G(e,t,d),W(t,n),W(n,s),W(n,i),W(n,o),W(t,c),W(t,r),W(r,a),W(a,l)},p(e,t){1&t&&d!==(d=p("domain"===e[14].type?ha.netDomain:ha.netPublic)+"")&&te(s,d),1&t&&u!==(u=p("domain"===e[14].type?ha.notifyTipDomain:ha.notifyTipPublic)+"")&&te(l,u)},d(e){e&&B(t)}}}function da(e){let t,n,s,i,o;function c(){return e[8](e[16])}return{c(){t=Y("kin-switch"),ee(t,"checked",n=e[14].watched),ee(t,"processing",s=e[14].updating)},m(e,n){G(e,t,n),i||(o=J(t,"click",c),i=!0)},p(i,o){e=i,1&o&&n!==(n=e[14].watched)&&ee(t,"checked",n),1&o&&s!==(s=e[14].updating)&&ee(t,"processing",s)},d(e){e&&B(t),i=!1,o()}}}function ua(e){let t,n,s,i,o,c,r,a,l,d,u,m,h,v,g,f=e[14].network_suggested_name+"";function _(e,t){return"home"===e[14].type?da:la}let k=_(e),w=k(e);function y(){return e[9](e[16])}return{c(){t=Y("tr"),n=Y("td"),n.innerHTML='<kin-icon name="icon-m-wifi" size="16"></kin-icon>',s=K(),i=Y("td"),o=q(f),c=K(),r=Y("td"),w.c(),a=K(),l=Y("td"),d=Y("button"),u=Y("kin-icon"),h=K(),ee(u,"name","icon-s-controls-bin"),ee(u,"size","14"),X(d,"class","a"),X(d,"title",m=p("global.remove")),X(l,"class","table__delete")},m(e,p){G(e,t,p),W(t,n),W(t,s),W(t,i),W(i,o),W(t,c),W(t,r),w.m(r,null),W(t,a),W(t,l),W(l,d),W(d,u),W(t,h),v||(g=J(d,"click",y),v=!0)},p(t,n){e=t,1&n&&f!==(f=e[14].network_suggested_name+"")&&te(o,f),k===(k=_(e))&&w?w.p(e,n):(w.d(1),w=k(e),w&&(w.c(),w.m(r,null)))},d(e){e&&B(t),w.d(),v=!1,g()}}}function pa(e){let t,n,s,i,o,c;t=new e[6]({props:{property:e[7].scanNewNetsAutomatically}}),s=new e[6]({props:{property:e[7].rescanHomeNetsAutomatically}});let r=e[1]&&ca(e);return{c(){Pe(t.$$.fragment),n=K(),Pe(s.$$.fragment),i=K(),r&&r.c(),o=Q()},m(e,a){He(t,e,a),G(e,n,a),He(s,e,a),G(e,i,a),r&&r.m(e,a),G(e,o,a),c=!0},p(e,t){e[1]?r?r.p(e,t):(r=ca(e),r.c(),r.m(o.parentNode,o)):r&&(r.d(1),r=null)},i(e){c||(Oe(t.$$.fragment,e),Oe(s.$$.fragment,e),c=!0)},o(e){Le(t.$$.fragment,e),Le(s.$$.fragment,e),c=!1},d(e){ze(t,e),e&&B(n),ze(s,e),e&&B(i),r&&r.d(e),e&&B(o)}}}function ma(e){let t,n;return t=new e[5]({props:{component:"network",title:p(ha.title),desc:p(ha.desc),noEnable:!0,$$slots:{default:[pa]},$$scope:{ctx:e}}}),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,[n]){const s={};131079&n&&(s.$$scope={dirty:n,ctx:e}),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}const ha={title:"network",desc:"network.settings.desc",scanNewNetsAutomatically:"network.settings.scanNewNetsAutomatically",rescanHomeNetsAutomatically:"network.settings.rescanHomeNetsAutomatically",notifyMeWhen:"network.settings.notifyMeWhen",monitoringOn:"network.settings.monitoringOn",monitoringOff:"network.settings.monitoringOff",visitedNets:"network.settings.visitedNets",notifyNew:"network.settings.notifyNew",notifyTipPublic:"network.settings.notifyTip.public",netPublic:"network.settings.netPublic",notifyTipDomain:"network.settings.notifyTip.domain",netDomain:"network.settings.netDomain"};function va(){return{scanNewNetsAutomatically:{label:p(ha.scanNewNetsAutomatically),path:"avcfg://settings/Hns/EnabledNetworkChanged",track:{subject:"Scan new networks automatically"},search:ha.scanNewNetsAutomatically},rescanHomeNetsAutomatically:{label:p(ha.rescanHomeNetsAutomatically),path:"avcfg://settings/Hns/EnabledTimer",track:{subject:"Rescan home networks automatically"},search:ha.rescanHomeNetsAutomatically}}}function ga(){return{title:ha.title,desc:ha.desc,items:Object.assign({},va(),{notifyMeWhen:{title:ha.notifyMeWhen,others:[ha.monitoringOn,ha.monitoringOff,ha.visitedNets,ha.notifyNew,ha.notifyTipPublic,ha.netPublic,ha.notifyTipDomain,ha.netDomain]}})}}function fa(e,n,s){let i;function o(){return qn.getNetworks(!0).then((e=>Promise.all(e.map((e=>(e.watched=-1!==m.findIndex((t=>t.network_id===e.network_id)),e.watched?Promise.resolve("home"):e.removedNet?Promise.resolve("public"):Je.getNetworkType(e.network_id))))).then((t=>{s(0,h=e.map(((e,n)=>(e.anenType=t[n],e.type=u[e.anenType],e)))),s(0,h=h.filter((e=>!e.removedNet||e.watched))),s(0,h=h.sort((function(e,t){return e===t?0:"home"===e?1:-1})))})))).catch((()=>s(0,h=null)))}function c(e){h[e].updating||(s(0,h[e].updating=!0,h),h[e].watched?qn.stop(h[e].network_id).then((()=>{s(0,h[e].watched=!1,h),s(0,h[e].updating=!1,h),t.emit("Settings.gaTrack","Network watcher",0)})):qn.start(h[e].network_id).then((()=>{s(0,h[e].watched=!0,h),s(0,h[e].updating=!1,h),t.emit("Settings.gaTrack","Network watcher",1)})))}function r(e){const n=h[e].network_id;qn.removeNet(n)&&(s(0,h=h.filter((e=>e.network_id!==n))),t.emit("Settings.gaTrack","Network removed"))}T(e,Yn,(e=>s(1,i=e)));const{Container:a,Checkbox:l}=y,d=va(),u={unknown:"public",home:"home",public:"public",temporary:"public",administered:"domain"},p=[];let m,h,v=!0;he((()=>{p.forEach((e=>e()))}));return e.$$.update=()=>{2&e.$$.dirty&&i&&(p.push(Xe.subscribe((()=>o()))),qn.getWatchedNetworks().then((e=>(m=e,o()))).finally((()=>{s(2,v=!1)})))},[h,i,v,c,r,a,l,d,e=>c(e),e=>r(e)]}class _a extends Ge{constructor(e){super(),We(this,e,fa,ma,C,{})}}function ka(e){let t,n;return t=new Fn({props:{buttonLabel:p("network.scanResults.showNetwork"),buttonLabelGA:p("global.details"),icon:e[2],text:p("network.newDevicesInNetwork",e[1]),windowHeight:"250"}}),t.$on("doAction",e[3]),t.$on("doAreaAction",e[3]),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,n){const s={};4&n&&(s.icon=e[2]),2&n&&(s.text=p("network.newDevicesInNetwork",e[1])),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function wa(e){let t,n,s=!e[0]&&ka(e);return{c(){s&&s.c(),t=Q()},m(e,i){s&&s.m(e,i),G(e,t,i),n=!0},p(e,[n]){e[0]?s&&(Ae(),Le(s,1,1,(()=>{s=null})),De()):s?(s.p(e,n),1&n&&Oe(s,1)):(s=ka(e),s.c(),Oe(s,1),s.m(t.parentNode,t))},i(e){n||(Oe(s),n=!0)},o(e){Le(s),n=!1},d(e){s&&s.d(e),e&&B(t)}}}function ya(t,n,o){let r=!0,a="",l=dt.UNKNOWN.icon;const d=c.createLogger("network.toasters.newDevice");const u=i.getUrlParams(),p=parseInt(u.get("deviceId"),10);return new Promise((t=>{if(Number.isInteger(p))return e("app.device_watcher.get_new_device_toaster_data",{deviceId:p}).then((e=>{if(e&&e.device){const t=new kt(e.device);o(1,a=t.nameModel),o(2,l=t.icon)}t()})).catch((()=>t()));t()})).finally((()=>o(0,r=!1))),s.view("HNS-new_device_toaster"),[r,a,l,function(){e("app.windowManager.ShowMainWindow",{route:"SecurityNetwork"}).then((function(){e("app.windowManager.FocusMainWindow"),i.close({reason:i.CLOSE_REASONS.navigateToOtherWindow})})).catch((function(e){d.error("opening details failed",e)}))}]}class ba extends Ge{constructor(e){super(),We(this,e,ya,wa,C,{})}}function Ia(e){let t,n;return t=new Fn({props:{allowHtml:!0,buttonLabel:p("antivirus.toasters.scanProgress.buttonLabel"),buttonLabelGA:"Details",text:e[0],severity:e[1],icon:e[2],progress:e[3],windowHeight:"250"}}),t.$on("doAction",e[4]),t.$on("areaAction",e[4]),{c(){Pe(t.$$.fragment)},m(e,s){He(t,e,s),n=!0},p(e,[n]){const s={};1&n&&(s.text=e[0]),2&n&&(s.severity=e[1]),4&n&&(s.icon=e[2]),8&n&&(s.progress=e[3]),t.$set(s)},i(e){n||(Oe(t.$$.fragment,e),n=!0)},o(e){Le(t.$$.fragment,e),n=!1},d(e){ze(t,e)}}}function $a(t,n,s){let o,r,a,l;const d=[];he((()=>{o&&o.destroy(),d.forEach((e=>e()))}));const u=c.createLogger("network.toasters.newDevice");u.info("oninit");const m=p("global.scanquick");let h,v,g,f;return yt().then((e=>{o=e,s(5,r=!0),d.push(o.devices.subscribe((e=>{s(6,a=o.getIssues().length)}))),d.push(o.progress.subscribe((e=>{s(7,l=e),100===l&&s(5,r=!1)})))})).catch((e=>{u.error("cant hook to scan",e)})),t.$$.update=()=>{96&t.$$.dirty&&s(0,h=function(e,t){let n="";return t?n="<br/>"+p("antivirus.toasters.scanProgress.title.running",m):!t&&e?n=p("antivirus.toasters.scanProgress.title.finished",m)+"<br/>"+p("antivirus.toasters.scanProgress.text.issues",e):t||e||(n=p("antivirus.toasters.scanProgress.title.finished",m)+"<br/>"+p("antivirus.toasters.scanProgress.text.noIssues")),n}(a,r)),160&t.$$.dirty&&s(3,f=r?l:"")},s(1,v=function(e,t){let n="";return e?n="danger":t||(n="ok"),n}()),s(2,g=function(e,t){let n="";return t?n="":e?n="circle-critical":e||(n="circle-ok"),n}()),[h,v,g,f,function(){u.info("opening details"),e("app.windowManager.ShowMainWindow",{route:"SecurityNetwork/runningScan"}).then((()=>{e("app.windowManager.FocusMainWindow"),i.close({reason:i.CLOSE_REASONS.navigateToOtherWindow})})).catch((function(e){u.error("opening details failed",e)}))},r,a,l]}class xa extends Ge{constructor(e){super(),We(this,e,$a,Ia,C,{})}}var Na='.hns_bg {\n width: 72%;\n position: absolute;\n left: 13.9%;\n top: 18rem;\n transform: translateY(-50%);\n opacity: 0.5;\n}\n.hns_router__img {\n background-repeat: no-repeat;\n background-position: center;\n width: 15rem;\n height: 8rem;\n margin-top: 1rem;\n background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMTQiIGhlaWdodD0iODgiIHZpZXdCb3g9IjAgMCAxMTQgODgiPiAgICA8ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDEgLTEyKSI+ICAgICAgICA8cmVjdCB3aWR0aD0iMTA3LjIiIGhlaWdodD0iOS41NzgiIHg9IjIuNCIgeT0iOTAuNDIyIiBmaWxsPSIjMDAwIiBmaWxsLW9wYWNpdHk9Ii4wODEiIHJ4PSI0Ii8+ICAgICAgICA8cGF0aCBmaWxsPSIjRENERkU1IiBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iIzJEMzY0QyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2Utd2lkdGg9IjEuNSIgZD0iTTEzLjkxMiAxMy4wNzFjLS4zNjQuMDc3LS42NS4yNzctLjg2LjU5N2ExLjQxIDEuNDEgMCAwIDAtLjIzLjg4bDcuOTczIDQyLjQ0OGMuMTM4LjY1MS41MDMgMS4xNjcgMS4wODkgMS41NDYuNTg3LjM4IDEuMjA4LjUgMS44NjMuMzYyLjY1NC0uMTM5IDEuMTcyLS41IDEuNTUzLTEuMDg0LjM4MS0uNTg1LjUwMy0xLjIwMy4zNjMtMS44NTJMMTUuNTg0IDEzLjk2NGExLjQzIDEuNDMgMCAwIDAtLjU3LS43MWMtLjMyMy0uMjEtLjY5LS4yNy0xLjEwMi0uMTgzTTk3LjY4NyAxMy4wODVhMS4zMiAxLjMyIDAgMCAwLTEuMDI5LjE5N2MtLjI2NS4xNzEtLjQ1NC40MS0uNTcuNzEyTDg2LjAxNCA1NS45OTVjLS4xMzguNjUyLS4wMTcgMS4yNjkuMzY1IDEuODUzLjM4LjU4NS44OTguOTQ2IDEuNTUyIDEuMDg1LjY1NC4xMzggMS4yNzYuMDE4IDEuODYyLS4zNjIuNTg4LS4zOC45NTEtLjg5NCAxLjA5LTEuNTQ1bDcuOTY1LTQyLjQ0OWExLjQxNiAxLjQxNiAwIDAgMC0uMjI5LS44OGMtLjIxLS4zMi0uNTItLjUyNS0uOTMzLS42MTIiLz4gICAgICAgIDxwYXRoIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0ibm9uemVybyIgc3Ryb2tlPSIjMkQzNjRDIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIHN0cm9rZS13aWR0aD0iMS41IiBkPSJNMi4zNzggODEuNDgyQzQgNzkuODcgNS45NDEgNzkuMDY0IDguMjAyIDc5LjA2NGg5NS4xNTljMi4zMDMgMCA0LjI2NS44MDUgNS44ODcgMi40MTggMS4wMjQgMS4wMTkgMS43MjggMi4xNjUgMi4xMTIgMy40MzgtMy43OTYtMTUuMDY3LTYuNDg1LTIzLjM4OC04LjA2My0yNC45NTctMS42MjItMS42MTQtMy41NjItMi40Mi01LjgyNC0yLjQyaC04My4zMmMtMi4yNiAwLTQuMjAyLjgwNi01LjgyMyAyLjQyLTEuNjIyIDEuNTctNC4zMDggOS45MzItOC4wNjQgMjUuMDg1YTguMDQzIDguMDQzIDAgMCAxIDIuMTEyLTMuNTY2Ii8+ICAgICAgICA8cGF0aCBmaWxsPSIjRENERkU1IiBmaWxsLXJ1bGU9Im5vbnplcm8iIHN0cm9rZT0iIzJEMzY0QyIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBzdHJva2Utd2lkdGg9IjEuNSIgZD0iTTguMjAyIDc5LjA2NGMtMi4yNiAwLTQuMjAyLjgwNS01LjgyNCAyLjQxOGE4LjA0MyA4LjA0MyAwIDAgMC0yLjExMiAzLjU2NiA5LjY3NiA5LjY3NiAwIDAgMC0uMjU2IDIuMjI4YzAgMi4yOTQuNzkgNC4yMjQgMi4zNjggNS43OTVDNCA5NC42ODMgNS45NDEgOTUuNDkgOC4yMDIgOTUuNDloOTUuMTU5YzIuMzAzIDAgNC4yNjUtLjgwNiA1Ljg4Ny0yLjQxOCAxLjYyMi0xLjU3MSAyLjQzMi0zLjUwMSAyLjQzMi01Ljc5NSAwLS41NTEtLjA2NC0xLjEyNC0uMTkyLTEuNzE5YTExMi4wMyAxMTIuMDMgMCAwIDAtLjEyOC0uNjM3Yy0uMzg0LTEuMjczLTEuMDg4LTIuNDE5LTIuMTEyLTMuNDM4LTEuNjIyLTEuNjEzLTMuNTg0LTIuNDE4LTUuODg3LTIuNDE4SDguMiIvPiAgICAgICAgPGVsbGlwc2UgY3g9IjE3LjkyOSIgY3k9Ijg3LjA0IiBmaWxsPSIjMENCNzU0IiByeD0iMS45MiIgcnk9IjEuOTEiLz4gICAgICAgIDxlbGxpcHNlIGN4PSIyOC4xNjgiIGN5PSI4Ny4wNCIgZmlsbD0iI0E3QUJCMyIgcng9IjEuOTIiIHJ5PSIxLjkxIi8+ICAgICAgICA8ZWxsaXBzZSBjeD0iMzguNDA3IiBjeT0iODcuMDQiIGZpbGw9IiNBN0FCQjMiIHJ4PSIxLjkyIiByeT0iMS45MSIvPiAgICAgICAgPGVsbGlwc2UgY3g9IjQ4LjY0NiIgY3k9Ijg3LjA0IiBmaWxsPSIjQTdBQkIzIiByeD0iMS45MiIgcnk9IjEuOTEiLz4gICAgPC9nPjwvc3ZnPg==");\n}\n.hns_item {\n width: 15rem;\n height: 10rem;\n display: block;\n position: relative;\n}\n.hns_item__wrap {\n position: relative;\n text-align: center;\n}\n.hns_item__icon_cont {\n width: auto;\n top: 0;\n left: 0;\n right: 0;\n position: absolute;\n}\n.hns_item__icon_cont.-group {\n display: flex;\n}\n.hns_item__icon_cont.-group .hns_item__icon {\n position: absolute;\n border: 2px solid var(--page-background);\n padding-top: 12px;\n}\n.hns_item__icon_cont.-group .hns_item__icon.-number {\n padding-top: 12px;\n font-size: 20px;\n font-weight: bold;\n}\n.hns_item__icon_cont.-group .hns_item__icon:nth-child(1) {\n left: 2rem;\n}\n.hns_item__icon_cont.-group .hns_item__icon:nth-child(2) {\n left: 5rem;\n}\n.hns_item__icon_cont.-group .hns_item__icon:nth-child(3) {\n left: 8rem;\n}\n.hns_item__icon_cont.-shortGroup:nth-child(1) {\n left: 1.5rem;\n}\n.hns_item__icon_cont.-shortGroup:nth-child(2) {\n left: 4.5rem;\n}\n.hns_item__icon {\n font-size: 24px;\n background-color: #555c73;\n border-radius: 5rem;\n width: 5rem;\n height: 5rem;\n padding-top: 14px;\n}\n.hns_item__name {\n font-size: 13px;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n position: absolute;\n top: 6rem;\n left: 0;\n right: 0;\n line-height: 1.1;\n padding: 2px 7px;\n word-wrap: break-word;\n -webkit-line-clamp: 2;\n -webkit-box-orient: vertical;\n}\n.hns_item__name.-secondary {\n opacity: 0.7;\n}\n.hns_item__wrap {\n position: absolute;\n top: 50%;\n left: 50%;\n margin-left: 5000px;\n}\n.hns_item__wrap.-gateway {\n margin-top: 12rem;\n margin-left: -75px;\n}\n.hns_item__wrap.-gateway .hns_item__name {\n top: 9rem;\n}\n.hns_item__wrap.-others:nth-child(2),\n.hns_item__wrap.-group:nth-child(2) {\n margin-top: 3rem;\n margin-left: -230px;\n}\n.hns_item__wrap.-others:nth-child(3),\n.hns_item__wrap.-group:nth-child(3) {\n margin-top: 3rem;\n margin-left: 80px;\n}\n.hns_item__wrap.-others:nth-child(4),\n.hns_item__wrap.-group:nth-child(4) {\n margin-top: 25rem;\n margin-left: -230px;\n}\n.hns_item__wrap.-others:nth-child(5),\n.hns_item__wrap.-group:nth-child(5) {\n margin-top: 25rem;\n margin-left: 80px;\n}\n.hns_virus__wrap {\n position: absolute;\n}\n.hns_virus__wrap .hns_virus__item {\n animation: shake 20s cubic-bezier(0.36, 0.07, 0.19, 0.97) both infinite;\n transform: translate3d(0, 0, 0);\n backface-visibility: hidden;\n perspective: 100rem;\n background-repeat: no-repeat;\n background-position: center;\n width: 2rem;\n height: 2rem;\n background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMS45OTUiIGhlaWdodD0iMzEuOTk1IiB2aWV3Qm94PSIwIDAgMzEuOTk1NDk2OSAzMS45OTU0OTY5Ij4gICAgPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiBzdHJva2U9IiNGNTIwM0UiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+ICAgICAgICA8cGF0aCBkPSJNMTQuMzM3IDIzLjI4N2MuMTA3LjU5NS4zNDcgMS40NzMuNzE4IDIuNjM0LjY3MS0xLjA2IDEuMTMtMS44NTMgMS4zOC0yLjM4MmE3LjY4OCA3LjY4OCAwIDAgMCA3LjUxNS04LjM4M2MuNDc2LS4zIDEuMDc1LS43MiAxLjc5NC0xLjI1Ny0uODg1LS4yMS0xLjYwMi0uMzYtMi4xNS0uNDUybC0uMDQtLjExNmE3LjY4NSA3LjY4NSAwIDAgMC0xNC43MjIuNjgzYy0uNDU3LjA4Mi0uOTkuMTktMS42MDMuMzI4LjUzNi40MSAxIC43NSAxLjM5MyAxLjAyNGE3LjY1IDcuNjUgMCAwIDAgLjQxMiAzLjAxIDcuNjc4IDcuNjc4IDAgMCAwIDUuMzAzIDQuOTF6Ii8+ICAgICAgICA8cGF0aCBkPSJNMTUuNDYgMTYuNDAxYTEuNDQgMS40NCAwIDEgMSAyLjcyLS45NDYgMS40NCAxLjQ0IDAgMCAxLTIuNzIuOTQ2eiIvPiAgICAgICAgPHBhdGggZmlsbD0iIzM1M0Y1OSIgZD0iTTE5LjMxIDEwLjgxYy0uNTIzLS40MDgtLjYzNy0xLjEzOS0uMjUyLTEuNjMzLjI1Ny0uMzMxIDEuMTczLS45NjUgMi43NTEtMS45LS4zMTMgMS45MTgtLjU5NyAzLjA0My0uODU1IDMuMzcyLS4zODUuNDk2LTEuMTIxLjU2Ny0xLjY0NC4xNnpNMjEuMTU2IDIwLjkyYy0uNDQ0LS40NDMtLjQyNC0xLjE4My4wNDMtMS42NTIuNDY3LS40NzIgMS4yMDctLjQ5NCAxLjY1MS0uMDUxLjI5Ni4yOTMuODEzIDEuMjggMS41NSAyLjk2Mi0xLjg2Ny0uNTQ1LTIuOTQ2LS45NjUtMy4yNDQtMS4yNnpNMTEuODU0IDE5LjA4Yy40MzcuNDk5LjQwOSAxLjI0LS4wNjMgMS42NS0uMzE1LjI3Ny0xLjMzNi43MjItMy4wNjUgMS4zNC42NzUtMS44MjMgMS4xNjgtMi44NzIgMS40ODQtMy4xNDcuNDcxLS40MTMgMS4yMDgtLjM0MyAxLjY0NC4xNTd6TTEyLjE1NiAxMS43OTJjLS41Mi40MS0xLjI1OC4zNDMtMS42NDUtLjE1MS0uMjU5LS4zMjgtLjY1MS0xLjM3Mi0xLjE3Ny0zLjEyOSAxLjc4NS43NjkgMi44MDYgMS4zMTggMy4wNjUgMS42NDYuMzg4LjQ5My4yNzkgMS4yMjUtLjI0MyAxLjYzNHoiLz4gICAgPC9nPjwvc3ZnPg==");\n}\n.hns_virus__wrap .hns_virus__item.-pos0 {\n scale: 0.8;\n animation-delay: 0s;\n margin-left: 10px;\n}\n.hns_virus__wrap .hns_virus__item.-pos1 {\n scale: 1;\n animation-delay: 2s;\n margin-left: 35px;\n}\n.hns_virus__wrap .hns_virus__item.-pos2 {\n scale: 1;\n animation-delay: 5s;\n margin-left: 95px;\n}\n.hns_virus__wrap .hns_virus__item.-pos3 {\n scale: 0.7;\n animation-delay: 10s;\n margin-left: 130px;\n}\n[dir=rtl] .hns_virus__item.-pos0 {\n margin-right: 10px;\n}\n[dir=rtl] .hns_virus__item.-pos1 {\n margin-right: 35px;\n}\n[dir=rtl] .hns_virus__item.-pos2 {\n margin-right: 95px;\n}\n[dir=rtl] .hns_virus__item.-pos3 {\n margin-right: 130px;\n}\n@-moz-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@-webkit-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@-o-keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n@keyframes shake {\n 10%, 90% {\n transform: translate3d(-1px, 0, 0);\n }\n 20%, 80% {\n transform: translate3d(2px, 0, 0);\n }\n 30%, 50%, 70% {\n transform: translate3d(-4px, 0, 0);\n }\n 40%, 60% {\n transform: translate3d(4px, 0, 0);\n }\n}\n';!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var s=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&s.firstChild?s.insertBefore(i,s.firstChild):s.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}(Na);const Ea={UNKNOWN:"device-unknown",ROUTER:"router",GENERIC_COMPUTER:"desktop",DESKTOP_PC:"desktop",LAPTOP_PC:"desktop",PC:"desktop",MOBILE_PHONE:"mobile",TABLET:"tablet",TV:"tv",NAS:"nas",PRINTER:"printer",APPLIANCE:"appliance",IP_PHONE:"ip-phone",NETWORK_NODE:"wifi-router",GAME_CONSOLE:"gaming",GAME_HANDHELD:"gaming",MEDIA_BOX:"play-circle",MEDIA_DISPLAY:"play-circle",LIGHTING:"light",ENTRY_CONTROL:"door",HVAC_CONTROL:"thermostat",POWER_CONTROL:"switch",INDUSTRIAL:"industrial",MEDICAL:"medical",WEARABLE:"smart-watch",VEHICLE:"vehicle",DRONE:"drone",THERMOSTAT:"thermostat",SENSOR:"sensor",CAMERA:"camera",VIDEO_CAMERA:"video-camera",SECURITY_CAMERA:"security-camera",AUDIO:"hifi",POS:"cashier",ATM:"atm",VENDING_MACHINE:"vending-machine",INTERACTIVE_SURFACE:"tablet",HMD:"hmd",REMOTE_CONTROL:"remote-control",HID:"keyboard",DVR:"dvr",IOT_HUB:"iot-hub",VOICE_ASSISTANT:"voice-assistant",SECURITY_BOX:"security-box",TOY:"toy",WELLNESS:"wellness",TOOTHBRUSH:"toothbrush",HEATING:"heating",VENTILATION:"ventilation",AIR_CONDITIONING:"air-conditioning",POWER_OUTLET:"power-outlet",POWER_SWITCH:"power-switch",HOUSE_CONTROL:"remote-control",SECURITY_ALARM:"security-alarm",SECURITY_SENSOR:"sensor",SAFE:"safe",LOCK:"lock",HOBBY_MANUFACTURING:"hobby-manufacturing",UTILITY_METER:"utility-meter",AUTONOMOUS_APPLIANCE:"autonomous-appliance",WASTE_MANAGEMENT:"waste-management",IRRIGATION:"irrigation",FOOTWEAR:"footwear",CLOTHING:"clothing",PARKING_MONITOR:"parking-monitor",GENERIC_MOBILE_DEVICE:"mobile",GENERIC_MEDIA:"hifi",GENERIC_WORK_APPLIANCE:"printer",GENERIC_HOME_APPLIANCE:"appliance",GENERIC_HOME_AUTOMATION:"switch",GENERIC_SURVEILLANCE:"security-camera",GENERIC_NETWORK_ELEMENT:"router",GENERIC_IOT:"iot-hub"};const Ca=new class extends o{constructor(){super();var e=localStorage["avs__hns-devices"];this.data=e?JSON.parse(e):{}}getName(e){return this.get("name",e)}setName(e,t){this.set("name",e,t)}getType(e){return this.get("type",e)}setType(e,t){this.set("type",e,t)}getModel(e){return this.get("model",e)}setModel(e,t){this.set("model",e,t)}get(e,t=[]){for(let n=0,s=t.length;n<s;n++)if(this.data[t[n]]&&this.data[t[n]][e])return this.data[t[n]][e]}set(t,n,s){this.data[n]||(this.data[n]={}),this.data[n][t]=s,this.store(),e("asw.hns.command",{type:"device",method:"update",mac:n,name:this.data[n].name,model:this.data[n].model,device_class:this.data[n].type}),this.emit("update",t,n,s),this.emit("update."+t,n,s),this.emit("update."+n+"."+t,s)}store(){localStorage["avs__hns-devices"]=JSON.stringify(this.data)}},Sa={version:0,networkType:"public"},Ma={getMyDevices(e,t){for(var n in e)if((Sa.version<=4&&"SELF"==e[n].device_class||Sa.version>=5&&e[n].device_roles&&e[n].device_roles.indexOf("SELF")>-1)&&(!t||this.getIssuesFromDevice(e[n]).length))return[e[n]];return[]},getMyRouters(e,t){const n=[];for(var s in e)this.isMyRouter(e[s])&&(t&&!this.getIssuesFromDevice(e[s]).length||n.push(e[s]));return n},getDiscoveredDevices:(e={})=>Object.keys(e).map((function(t){return e[t]})).filter((function(e){return!(Sa.version<=4&&"SELF"==e.device_class||Sa.version>=5&&e.device_roles&&e.device_roles.indexOf("SELF")>-1||"ROUTER"==e.device_class)})).sort((function(e,t){var n=e.device_class.toUpperCase(),s=t.device_class.toUpperCase();return n<s?-1:n>s?1:0})),isMyRouter:e=>e.kv&&(Sa.version<=4&&"INTERNET_GATEWAY"==e.kv.DEVICE_ROLE||Sa.version>=5&&e.device_roles&&e.device_roles.indexOf("INTERNET_GATEWAY")>-1),isOneOfVulnerabilities(e,t){"string"==typeof t&&(t=[t]);let n=[e.category,e.unique_name];e.description.forEach((e=>{n=n.concat(e.split("."))}));for(var s=0,i=t.length;s<i;s++)if(n.indexOf(t[s])>-1)return!0;return!1},deviceName(e="",t=null){let n=t;return this.get(e+"name")?n=this.get(e+"name"):this.get(e+"kv.DISPLAY_NAME")?n=this.get(e+"kv.DISPLAY_NAME"):this.get(e+"kv.NETBIOS_NAME")?n=this.get(e+"kv.NETBIOS_NAME"):this.get(e+"kv.DNS_NAME")?n=this.get(e+"kv.DNS_NAME"):this.get(e+"kv.DISPLAY_VENDOR")?n=this.get(e+"kv.DISPLAY_VENDOR"):this.get(e+"kv.DEVICE_MANUFACTURER")&&(n=this.get(e+"kv.DEVICE_MANUFACTURER")),n?n.trim():null},getIssuesFromDevice(e){if(!e)return[];const t=[],n=[],s=[],i=e.device_id;let o=0;return e.vulnerabilities&&e.vulnerabilities.length&&e.vulnerabilities.forEach((e=>{e.deviceId=i,e.issueId=o++,t.push(e)})),e.interfaces&&e.interfaces.length&&e.interfaces.forEach((e=>{function s(s){n[e.mac]&&-1!=n[e.mac].indexOf(s.catalog_name)||(n[e.mac]?n[e.mac].push(s.catalog_name):n[e.mac]=[s.catalog_name],s.deviceId=i,s.issueId=o++,t.push(s))}e.vulnerabilities&&e.vulnerabilities.length&&e.vulnerabilities.forEach(s),e.services&&e.services.length&&e.services.forEach((e=>{e.vulnerabilities&&e.vulnerabilities.length&&e.vulnerabilities.forEach(s)}))})),e.services&&e.services.length&&e.services.forEach((e=>{e.vulnerabilities&&e.vulnerabilities.length&&e.vulnerabilities.forEach((function(n){s[e.port]&&-1!=s[e.port].indexOf(n.catalog_name)||(s[e.port]?s[e.port].push(n.catalog_name):s[e.port]=[n.catalog_name],n.deviceId=i,n.issueId=o++,n.port=e.port,n.serviceType=e.service_type,t.push(n))}))})),t}},Ta={chunk:function(e,t){for(var n=[],s=0,i=e.length;s<i;s+=t)n.push(e.substr(s,t));return n},chunkInsert:function(e,t,n){return Ta.chunk(e,t).join(n)},chunkHex:function(e,t){return t=t||2,Ta.chunk(e,t).map((function(e){return parseInt(e,16)}))},chunkInsertHex:function(e,t,n){return Ta.chunkHex(e,t).join(n)}},Aa={marks:e=>e.replace(/\(R\)/gi,"®").replace(/\(TM\)/gi,"™"),mac:e=>e?e.indexOf(":")>-1?e:e?Ta.chunkInsert(e,2,":"):"":"",ip:e=>e?8==e.length?Ta.chunkInsertHex(e,2,"."):Ta.chunkInsert(e,4,":"):""};var Da=/^\s+|\s+$/g,Oa=/^[-+]0x[0-9a-f]+$/i,La=/^0b[01]+$/i,Ra=/^0o[0-7]+$/i,ja=parseInt,Pa="object"==typeof Sn&&Sn&&Sn.Object===Object&&Sn,Ha="object"==typeof self&&self&&self.Object===Object&&self,za=Pa||Ha||Function("return this")(),Ua=Object.prototype.toString,Wa=Math.max,Ga=Math.min,Ba=function(){return za.Date.now()};function Fa(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ya(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==Ua.call(e)}(e))return NaN;if(Fa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Fa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Da,"");var n=La.test(e);return n||Ra.test(e)?ja(e.slice(2),n?2:8):Oa.test(e)?NaN:+e}var Va=function(e,t,n){var s,i,o,c,r,a,l=0,d=!1,u=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function m(t){var n=s,o=i;return s=i=void 0,l=t,c=e.apply(o,n)}function h(e){return l=e,r=setTimeout(g,t),d?m(e):c}function v(e){var n=e-a;return void 0===a||n>=t||n<0||u&&e-l>=o}function g(){var e=Ba();if(v(e))return f(e);r=setTimeout(g,function(e){var n=t-(e-a);return u?Ga(n,o-(e-l)):n}(e))}function f(e){return r=void 0,p&&s?m(e):(s=i=void 0,c)}function _(){var e=Ba(),n=v(e);if(s=arguments,i=this,a=e,n){if(void 0===r)return h(a);if(u)return r=setTimeout(g,t),m(a)}return void 0===r&&(r=setTimeout(g,t)),c}return t=Ya(t)||0,Fa(n)&&(d=!!n.leading,o=(u="maxWait"in n)?Wa(Ya(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),_.cancel=function(){void 0!==r&&clearTimeout(r),l=0,s=a=i=r=void 0},_.flush=function(){return void 0===r?c:f(Ba())},_};const qa=k.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"g-margin-bottom--5"},f:[{t:7,e:"span",a:{class:"hns_property -label"},f:[{t:3,x:{r:["nls","stringKey"],s:"_0(_1)"}},":"]}," ",{t:7,e:"BoxFlip",a:{flipped:[{t:2,r:"displayed"}],cssCls:"hns_property -password"},f:[{t:7,e:"div",a:{class:"hns_boxflip"},v:{click:"display"},f:["••••••••"]}," ",{t:7,e:"div",a:{class:"hns_boxflip"},v:{click:"display"},f:[{t:2,r:"detail"}]}]}]}],n:50,x:{r:["id"],s:'_0==="PASSWORD"||_0==="USERNAME"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["id"],s:'_0==="LINK"'},f:[{t:7,e:"a",a:{href:[{t:2,r:"detail"}],class:"a hns_issue__link"},v:{click:"browser"},f:[{t:2,r:"detail"}]}]},{t:4,n:50,x:{r:["id"],s:'(!(_0==="LINK"))&&(_0==="DEVICE_UI_LINK")'},f:[" ",{t:7,e:"a",a:{href:[{t:2,r:"detail"}],class:"a hns_issue__link"},v:{click:"browser"},f:[{t:3,x:{r:["nls"],s:'_0("network.goToRouter")'}}]}]},{t:4,n:50,x:{r:["id"],s:'(!(_0==="LINK"))&&(!(_0==="DEVICE_UI_LINK"))'},f:[" ",{t:7,e:"div",a:{class:["g-margin-bottom--5 ",{t:2,x:{r:["dnsHijack"],s:'_0?"hns_hijack -hijack-"+_0:""'}}," ",{t:2,x:{r:["showAllHijacks"],s:'_0?"-show-all":""'}}]},f:[{t:7,e:"span",a:{class:"hns_property -label"},f:[{t:3,x:{r:["nls","stringKey"],s:"_0(_1)"}},":"]}," ",{t:7,e:"span",a:{class:"hns_property"},f:[{t:2,r:"detail"}]}]}]}],x:{r:["id"],s:'_0==="PASSWORD"||_0==="USERNAME"'}},{t:4,f:[{t:7,e:"button",v:{click:"showAllHijacks"},a:{class:"a hns_hijack__expand"},f:[{t:2,x:{r:["nls"],s:'_0("global.more")'}},"..."]}],n:50,x:{r:["dnsHijack","showAllHijacks"],s:"_0==4&&!_1"}}]},data:()=>({id:null,detail:null,showAllHijacks:!1,displayed:!1}),computed:{stringKey:function(){return"network.property."+this.get("id").replace(/_([0-9]+)/,"")},dnsHijack:function(){return this.get("id").indexOf("DNS_HIJACK_DOM_")>-1?this.get("id").replace("DNS_HIJACK_DOM_",""):void 0}},oninit(){this.on("showAllHijacks",(()=>{this.set("showAllHijacks",!0)})),this.on("display",(()=>{this.toggle("displayed")}))}}),Ka=k.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"h4",a:{class:"h4 -margins"},f:[{t:3,x:{r:["nls"],s:'_0("network.issue.section.solution")'}}]}," ",{t:7,e:"p",f:["This issue was successfully fixed!"]}],n:50,x:{r:["type","issue.fixes","issue.fixes.0.resolve_status"],s:'_0==="solution"&&_1&&_2==="resolved"'}},{t:4,n:51,f:[{t:4,f:[{t:7,e:"div",a:{class:"g-margin-bottom--15"},f:[{t:7,e:"h4",a:{class:"h4 -margins"},f:[{t:3,x:{r:["nls","type"],s:'_0("network.issue.section."+_1)'}}]}," ",{t:4,f:[{t:7,e:"p",a:{class:"p -small -secondary"},f:[{t:3,x:{r:["nls","showIpm.text"],s:"_0(_1)"}}]}],n:50,x:{r:["type","showIpm"],s:'_0==="solution"&&_1'}},{t:4,n:51,f:[{t:4,f:[{t:7,e:"p",a:{class:"p -small -secondary"},f:[{t:2,x:{r:["issues","."],s:'_0.nls("network.issue."+_1)'}}]}],n:52,r:"text"}],x:{r:["type","showIpm"],s:'_0==="solution"&&_1'}}]}],n:50,x:{r:["type"],s:'_0!=="description"'}}," ",{t:4,f:[{t:7,e:"Property",a:{id:[{t:2,r:"."}],detail:[{t:2,rx:{r:"issue.details",m:[{t:30,n:"."}]}}]}}],n:52,r:"details"}," ",{t:4,f:[{t:4,f:[{t:7,e:"div",a:{class:"g-margin-bottom--5"},f:[{t:7,e:"span",a:{class:"hns_property -label"},f:[{t:3,x:{r:["nls"],s:'_0("network.serviceType")'}},":"]}," ",{t:7,e:"span",a:{class:"hns_property"},f:[{t:2,r:"serviceType"}]}]}],n:50,r:"serviceType"}," ",{t:4,f:[{t:7,e:"div",a:{class:"g-margin-bottom--5"},f:[{t:7,e:"span",a:{class:"hns_property -label"},f:[{t:3,x:{r:["nls"],s:'_0("network.port")'}},":"]}," ",{t:7,e:"span",a:{class:"hns_property"},f:[{t:2,r:"port"}]}]}],n:50,r:"port"}," ",{t:7,e:"div",a:{class:"g-margin-bottom--5"},f:[{t:7,e:"span",a:{class:"hns_property -label"},f:[{t:3,x:{r:["nls"],s:'_0("network.issue.props.id")'}},":"]}," ",{t:7,e:"span",a:{class:"hns_property"},f:[{t:7,e:"button",v:{click:"openDetail"},a:{class:"a"},f:[{t:2,r:"catalog_name"}]}]}]}],n:50,x:{r:["type"],s:'_0==="description"'}}," ",{t:4,f:[{t:7,e:"button",a:{class:"btn g-float--left g-margin-right--10"},v:{click:"openIpm"},f:[{t:3,x:{r:["nls","showIpm.button"],s:"_0(_1)"}}]}],n:50,x:{r:["type","showIpm"],s:'_0==="solution"&&_1'}}," ",{t:4,f:[{t:7,e:"button",v:{click:"openGuide"},a:{class:"a hns_issue__link"},f:[{t:3,x:{r:["nls"],s:'_0("network.issue.follow.guide")'}}]}],n:50,x:{r:["type","issue.solutions"],s:'_0==="solution"&&_1.indexOf("FOLLOW_GUIDE")>-1'}}],x:{r:["type","issue.fixes","issue.fixes.0.resolve_status"],s:'_0==="solution"&&_1&&_2==="resolved"'}}]},components:{Property:qa},data:()=>({showIpm:null,type:null,issue:null}),computed:{text(){switch(this.get("type")){case"risk":return this.get("issue.risks");case"description":return this.get("issue.description");case"solution":return this.get("issue.solutions")}},details(){switch(this.get("type")){case"risk":return this.get("issue.risks_details_expanded");case"description":return this.get("issue.description_details_expanded");case"solution":return this.get("issue.solutions_details_expanded")}}},oninit(){this.on("openDetail",(()=>{this.openDetails()})),this.on("openGuide",(()=>{this.openDetails("guide")})),this.on("openIpm",(()=>{const e=this.get("showIpm");null!=e&&(e.licensed?e.isLicensedAction():(f.openWindow(e.el),s.event("HNS","Click","IPM "+e.el)))})),this.getShowIpmValue().then((e=>{this.set("showIpm",e)}))},getShowIpmValue(){let t=null;const n=this.get("issue");return v.isAfbEdition()?Promise.resolve(null):(!this.get("vpnDisabled")&&(Ma.isMyRouter(this.get("device"))||Ma.isOneOfVulnerabilities(n,["VULN_WEAK_WIFI_SETTINGS","VULN_WEAK_WIFI_PASSWORD","WEAK_DEVICE_PASSWORD","WIFI_CRYPTO_NONE","WIFI_CRYPTO_WEAK","WIFI_PW_DEDUCIBLE","WIFI_PW_WEAK","WIFI_WPS_ENABLED","OPEN_PORT_OUTER"])||"RESOLVING_HIJACK"==n.category&&"public"==Sa.networkType)&&(t=e("app.avast.lis.get.all",{ids:["svpn"]}).then((e=>!!(e&&e.products&&e.products.svpn)&&e.products.svpn.installed)).catch((e=>(console.log(e),!1))).then((e=>({el:40,licensed:e,button:e?"network.issue.action.open.secureline":"network.issue.action.buy.secureline",isLicensedAction:function(){location.hash="SecureLine"}})))),t||Promise.resolve(null))},openDetails(t){return e("app.utils.GetUrlParameters",202).then((n=>e("app.windowManager.ShowModaless",{url:n+"&p_scr=hns/"+this.get("catalog_name").toLowerCase()+(t?"&p_sln="+t:""),width:window.innerWidth||800,height:window.innerHeight||500})))}}),Qa=k.extend({template:{v:3,t:[{t:7,e:"Modal",f:[{t:4,f:[{t:7,e:"form",v:{submit:"dnsChange"},f:[{t:7,e:"h2",a:{class:"h2 -margins"},f:[{t:2,x:{r:["nls"],s:'_0("network.deviceFix.changeDNS.title")'}}]}," ",{t:7,e:"p",a:{class:"p -small -secondary g-margin-bottom--20"},f:[{t:3,x:{r:["nls"],s:'_0("network.deviceFix.changeDNS.details")'}}]}," ",{t:7,e:"select",a:{class:"input",placeholder:[{t:2,r:"dnsOptions.0"}],value:[{t:2,r:"dnsSelected"}]},f:[{t:4,f:[{t:7,e:"option",a:{value:[{t:2,r:"."}]},f:[{t:2,r:"name"}," - ",{t:2,r:"."}]}],i:"name",r:"dnsOptions"}]}," ",{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"Button",a:{type:"submit"},f:[{t:2,x:{r:["nls"],s:'_0("network.deviceFix.action.change")'}}]}," ",{t:16}]}]}],n:50,x:{r:["status"],s:'_0==="fixing"'}}," ",{t:4,f:[{t:7,e:"Icon",a:{name:"tick-circle",cssCls:"hns_fixer__icon color-ok -text"}}," ",{t:7,e:"h2",a:{class:"h2 -margins"},f:[{t:2,x:{r:["nls"],s:'_0("network.deviceFix.success.title")'}}]}," ",{t:7,e:"p",a:{class:"p -small -secondary g-margin-bottom--40"},f:[{t:2,x:{r:["nls"],s:'_0("network.deviceFix.changeDNS.success.description")'}}]}," ",{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"Button",v:{domClick:"modalClose"},f:[{t:2,x:{r:["nls"],s:'_0("global.done")'}}]}]}],n:50,x:{r:["status"],s:'_0==="success"'}}," ",{t:4,f:[{t:7,e:"Icon",a:{name:"x-circle",cssCls:"hns_fixer__icon color-critical -text"}}," ",{t:7,e:"h2",a:{class:"h2 -margins"},f:[{t:2,x:{r:["nls"],s:'_0("network.deviceFix.changeDNS.error.title")'}}]}," ",{t:7,e:"p",a:{class:"p -small -secondary"},f:[{t:2,x:{r:["nls"],s:'_0("network.deviceFix.changeDNS.error.description")'}}]}," ",{t:7,e:"div",a:{class:"modal__actions g-margin-bottom--40"},f:[{t:16}," ",{t:7,e:"Button",v:{domClick:"modalClose"},f:[{t:2,x:{r:["nls"],s:'_0("global.close")'}}]}]}],n:50,x:{r:["status"],s:'_0==="error"'}}]}]},data:function(){return{status:"fixing",dnsSelected:null,fixId:null,vulnerabilityId:null,details:null}},computed:{dnsOptions:function(){const e=this.get("details"),t={};return Object.keys(e).filter((e=>e.includes("DNS_CANDIDATE_NAME"))).forEach((n=>{const s=n.replace("DNS_CANDIDATE_NAME_","DNS_CANDIDATE_IP_"),i=e[s],o=e[n];t[o]?t[o].DNS_SECONDARY=i:t[o]={DNS_PRIMARY:i}})),t}},oninit(){this.on("dnsChange",(t=>{t.original.preventDefault(),e("asw.hns.vulnerability_fix",{fix_details:this.get("dnsSelected"),fix_id:this.get("fixId"),vulnerability_id:this.get("vulnerabilityId")}).then((e=>{this.set("status",e.state?"success":"error")})).catch((e=>{console.error(e)}))}))}}),Ja=k.extend({template:{v:3,t:[{t:7,e:"Modal",f:[{t:4,f:[{t:7,e:"h2",a:{class:"h2 -margins"},f:[{t:2,x:{r:["nls"],s:'_0("network.deviceFix.routerPassword.title")'}}]}," ",{t:7,e:"p",a:{class:"p -small -secondary g-margin-bottom--20"},f:[{t:3,x:{r:["nls"],s:'_0("network.deviceFix.routerPassword.details")'}}]}," ",{t:7,e:"form",v:{submit:"passwordChange"},a:{class:"form -simple"},f:[{t:7,e:"div",a:{class:"form__messages"},f:[{t:4,f:[{t:7,e:"p",a:{class:"form__error"},f:[{t:2,r:"errorMessage"}]}],n:50,x:{r:["wasSubmitted","isValid"],s:"_0&&!_1"}}]}," ",{t:7,e:"div",a:{class:"form__row"},f:[{t:7,e:"label",a:{class:"input__label"},f:[{t:2,x:{r:["nls"],s:'_0("network.deviceFix.routerPassword.newPassword")'}}]}," ",{t:7,e:"input",a:{type:"password",class:"input",placeholder:[{t:2,x:{r:["nls"],s:'_0("network.deviceFix.routerPassword.newPassword")'}}],value:[{t:2,r:"newPassword"}]}}]}," ",{t:7,e:"div",a:{class:"form__row"},f:[{t:7,e:"label",a:{class:"input__label"},f:[{t:2,x:{r:["nls"],s:'_0("network.deviceFix.routerPassword.retypePassword")'}}]}," ",{t:7,e:"input",a:{type:"password",class:"input",placeholder:[{t:2,x:{r:["nls"],s:'_0("network.deviceFix.routerPassword.retypePassword")'}}],value:[{t:2,r:"retypedPassword"}]}}]}," ",{t:7,e:"Button",a:{type:"submit",cssCls:"-large"},f:[{t:2,x:{r:["nls"],s:'_0("network.deviceFix.action.change")'}}]}]}],n:50,x:{r:["status"],s:'_0==="fixing"'}}," ",{t:4,f:[{t:7,e:"Icon",a:{name:"tick-circle",cssCls:"hns_fixer__icon color-ok -text"}}," ",{t:7,e:"h2",a:{class:"h2 -margins"},f:[{t:2,x:{r:["nls"],s:'_0("network.deviceFix.success.title")'}}]}," ",{t:7,e:"p",a:{class:"p -small -secondary"},f:[{t:2,x:{r:["nls"],s:'_0("network.deviceFix.routerPassword.success.description")'}}]}," ",{t:7,e:"div",a:{class:"modal__actions g-margin-top--40"},f:[{t:7,e:"Button",v:{domClick:"modalClose"},a:{cssCls:"-large"},f:[{t:2,x:{r:["nls"],s:'_0("global.done")'}}]}]}],n:50,x:{r:["status"],s:'_0==="success"'}}," ",{t:4,f:[{t:7,e:"Icon",a:{name:"x-circle",cssCls:"hns_fixer__icon color-critical -text"}}," ",{t:7,e:"h2",a:{class:"h2 -margins"},f:[{t:2,x:{r:["nls"],s:'_0("network.deviceFix.routerPassword.error.title")'}}]}," ",{t:7,e:"p",a:{class:"p -small -secondary"},f:[{t:2,x:{r:["nls"],s:'_0("network.deviceFix.routerPassword.error.description")'}}]}," ",{t:7,e:"div",a:{class:"modal__actions g-margin-top--40"},f:[{t:7,e:"Button",v:{domClick:"modalClose"},a:{cssCls:"-secondary -large"},f:[{t:2,x:{r:["nls"],s:'_0("global.close")'}}]}," ",{t:4,f:[{t:7,e:"a",a:{href:[{t:2,r:"issue.details.DEVICE_UI_LINK"}],class:"btn -large g-margin-left--10"},v:{click:"browser"},f:[{t:2,x:{r:["nls"],s:'_0("network.device.action.routerSettings")'}}]}],n:50,r:"issue.details.DEVICE_UI_LINK"}]}],n:50,x:{r:["status"],s:'_0==="error"'}}]}]},data:function(){return{status:"fixing",newPassword:"",retypedPassword:"",passwordLength:4,wasSubmitted:!1,isValid:!1,errorMessage:"",fixId:null,vulnerabilityId:null,details:null}},oninit(){this.on("passwordChange",(t=>{const n=this.get("newPassword"),s=this.get("retypedPassword"),i=this.get("passwordLength");return t.original.preventDefault(),this.set("wasSubmitted",!0),0==n.length?this.set({isValid:!1,errorMessage:p("network.error.emptyPw")}):n.length<i?this.set({isValid:!1,errorMessage:p("network.error.weakPw",i)}):n!==s?this.set({isValid:!1,errorMessage:p("network.error.pwDontMatch")}):(this.set("isValid",!0),e("asw.hns.vulnerability_fix",{fix_details:{NEW_PASSWORD:this.get("newPassword")},fix_id:this.get("fixId"),vulnerability_id:this.get("vulnerabilityId")}).then((e=>{this.set("status",e.state?"success":"error")})).catch((()=>{this.set("status","error")})))}))}});function Za(e){var t="",n=e.replace("network.issue.","").split(".");for("title"==n[n.length-1]&&(t=".title",n.pop());n.length>0;){var s=h("network.issue."+n[n.length-1]+t);if(s)return s;n.pop()}if(".title"==t)return Za(e.replace(".title",""))}const Xa={nls:function(e){return Za(e)||Za(e)||e}},el=k.extend({template:{v:3,t:[{t:7,e:"button",a:{class:["hns_row -large ",{t:4,f:["-expanded"],r:"expanded"}]},v:{click:"toggleExpand"},f:[{t:7,e:"div",a:{class:"hns_row__icon"},f:[{t:7,e:"SvgIcon",a:{name:["sign-",{t:2,r:"issueSeverity"}]}}]}," ",{t:7,e:"div",a:{class:"hns_row__desc"},f:[{t:4,f:[{t:7,e:"h4",a:{class:"h4"},f:[{t:4,f:[{t:2,r:"serviceType"},": "],n:50,r:"serviceType"},{t:2,x:{r:["issues","issue.description.0"],s:'_0.nls("network.issue."+_1+".title")'}}," - Fixed!"]}],n:50,x:{r:["issue.fixes.0.resolve_status"],s:'_0=="resolved"'}},{t:4,n:51,f:[{t:7,e:"h4",a:{class:"h4"},f:[{t:4,f:[{t:2,r:"serviceType"},": "],n:50,r:"serviceType"},{t:2,x:{r:["issues","issue.description.0"],s:'_0.nls("network.issue."+_1+".title")'}}]}," ",{t:4,f:[{t:7,e:"button",a:{class:"btn -secondary g-float--right -small",on:0},v:{click:{n:"fixIssue",d:[{t:2,r:"issue.fixes.0"}]}},f:["Let's fix it together!"]}],n:50,x:{r:["allowFixes","issue.fixes"],s:"_0&&_1"}}],x:{r:["issue.fixes.0.resolve_status"],s:'_0=="resolved"'}}," ",{t:7,e:"p",a:{class:["p -small -secondary ",{t:4,f:["hns_issue__desc"],n:51,r:"expanded"}]},f:[{t:2,x:{r:["issues","issue.description.0"],s:'_0.nls("network.issue."+_1)'}}]}]}," ",{t:7,e:"div",a:{class:"hns_row__link text -small -secondary"},f:[{t:7,e:"span",a:{class:"a -fake"},f:[{t:3,x:{r:["nls"],s:'_0("network.device.heading.details")'}}]}," ",{t:7,e:"i",a:{class:["icon -chevron-down hns_row__arrow ",{t:4,f:["g-rotate--180"],r:"expanded"}]}}]}]}," ",{t:4,f:[{t:7,e:"div",t0:"slide",a:{class:"hns_row__pane g-selectable"},f:[{t:7,e:"div",a:{class:["hns_issue__block -",{t:2,r:"issueSeverity"}," g-clearfix"]},f:[{t:7,e:"IssueBlock",a:{type:"risk",issue:[{t:2,r:"issue"}]}}," ",{t:7,e:"IssueBlock",a:{type:"description",issue:[{t:2,r:"issue"}]}}]}," ",{t:7,e:"div",a:{class:"hns_issue__block -ok g-clearfix"},f:[{t:7,e:"IssueBlock",a:{type:"solution",issue:[{t:2,r:"issue"}]}}]}," ",{t:4,f:[{t:4,f:[" "],n:50,x:{r:["issue.category"],s:'_0==="WEAK_DEVICE_PASSWORD"'}}," ",{t:4,f:[" "],n:50,x:{r:["issue.category"],s:'_0==="RESOLVING_HIJACK"'}}," ",{t:4,f:[{t:7,e:"FixPassword",a:{fixId:[{t:2,r:"issue.fix_info.id"}],vulnerabilityId:[{t:2,r:"issue.id"}]}}],n:50,x:{r:["fixing"],s:'_0==="password"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["fixing"],s:'_0==="dns"'},f:[{t:7,e:"FixDns",a:{fixId:[{t:2,r:"issue.fix_info.id"}],vulnerabilityId:[{t:2,r:"issue.id"}],details:[{t:2,r:"issue.fix_info.details"}]}}]}],x:{r:["fixing"],s:'_0==="password"'}}],n:50,x:{r:["deviceType"],s:'_0==="ROUTER"'}}]}],r:"expanded"},{t:4,f:[{t:7,e:"Modal",a:{title:""},f:[{t:7,e:"p",a:{class:"p"},f:[{t:2,r:"fixer.type"}]}," ",{t:7,e:"div",a:{class:"modal__actions"},f:[{t:7,e:"Button",v:{domClick:"modalClose"},a:{cssCls:"-secondary"},f:["Close"]}," ",{t:7,e:"Button",v:{click:"submitFix"},f:["OK"]}]}]}],n:50,r:"fixer"}," "],p:{fixers:[{t:4,f:[{t:7,e:"div",a:{class:"g-margin-bottom--5"},f:[{t:7,e:"p",f:["YAY! We can fix this fo you..."]}," ",{t:4,f:[{t:7,e:"p",a:{class:"g-margin-top--10"},f:[{t:2,r:"type"}]}," ",{t:7,e:"button",a:{on:0,class:"btn -small"},v:{click:{n:"fixIssue",d:[{t:2,r:"."}]}},f:["Let's fix it together!"]}],r:"issue.fixes"}]}],n:50,x:{r:["type","issue.fixes"],s:'_0=="solution"&&_1'}}],routerLink:[{t:4,f:[{t:7,e:"a",a:{href:[{t:2,r:"issue.details.DEVICE_UI_LINK"}],class:"a"},v:{click:"browser"},f:[{t:2,x:{r:["nls"],s:'_0("network.device.action.routerSettings")'}}]}],n:50,r:"issue.details.DEVICE_UI_LINK"}]}},components:{FixDns:Qa,FixPassword:Ja,IssueBlock:Ka},data:()=>({expand:!1,expanded:null,issues:Xa,fixer:null,fixing:null,vpnDisabled:void 0}),computed:{issueSeverity(){return"SEVERITY_WARNING"==this.get("severity")?"attention":"danger"}},oninit(){e("app.settings.Get","avdef://config/GuiCache/VpnDisabled").then((e=>this.set("vpnDisabled",e))),this.set("expanded",this.get("expand")),this.on("toggleExpand",(()=>{const e=!this.get("expanded");e&&this.emit("issuefocus",e),this.set("expanded",e)})),this.expandDetails("description"),this.expandDetails("risks"),this.expandDetails("solutions"),this.on("blur",(()=>{this.set("expanded",!1)})),this.on("fixIssue",((e,t)=>(e.original.stopPropagation(),this.set("fixer",t),!1))),this.on("fixPassword",(e=>(e.original.stopPropagation(),this.set("fixing","password"),!1))),this.on("fixDns",(e=>(e.original.stopPropagation(),this.set("fixing","dns"),!1))),this.on("submitFix",(()=>{this.set("issue.fixes.0.resolve_status","resolved"),this.set("fixer",null)})),this.on("modalClose *.modalClose",(e=>{e.original.stopPropagation(),this.set({fixer:null,fixing:null})}))},expandDetails(e){this.observe("issue."+e+"_details",Va((t=>{if(!t||0==t.length)return;const n=[],s=this.get("issue.details");t.forEach((e=>{if(e.indexOf("*")>-1){const t=new RegExp("^"+e);for(const e in s)t.test(e)&&n.push(e)}else n.push(e)})),this.set("issue."+e+"_details_expanded",n)}),500))}}),tl=Va((function(e,t,n){Ca.setModel(e,t),n&&n()}),500,{leading:!1,trailing:!0}),nl=k.extend({data:function(){return{insertedName:"",itemDetails:!1,deviceTypes:Ea,tracked:!1}},components:{Issue:el},computed:{deviceName:{get(){return Ma.deviceName.call(this)},set(e){"string"!=typeof e||e&&e.trim&&!e.trim()||(!this.get("tracked")&&this.get("name")&&this.get("name")!==e&&(this.set("tracked",!0),s.event("HNS","Click","DeviceName")),this.set("name",e),tl(this.get("interfaces.0.mac"),e))}},deviceType:{get(){return this.get("type")?this.get("type"):this.get("device_class")in this.get("deviceTypes")?this.get("device_class"):"UNKNOWN"},set(e){this.get("tracked")||(this.set("tracked",!0),s.event("HNS","Click","DeviceType")),this.set("type",e),Ca.setType(this.get("interfaces.0.mac"),e)}},deviceModel:{get(){return this.get("model")?this.get("model"):this.get("kv.DISPLAY_MODEL")},set(e){!this.get("tracked")&&this.get("model")&&this.get("model")!==e&&(this.set("tracked",!0),s.event("HNS","Click","DeviceModel")),this.set("model",e),tl(this.get("interfaces.0.mac"),e),this.update("deviceModel")}},deviceTypeOptions(){const e=this.get("deviceTypes");return Object.keys(e).map((e=>({value:e,option:p("network.device.types."+e)})))},status(){switch(this.get("device_status")){case"vuln_scan_completed":return"complete";case"skipped":case"skipped_partially_mined":case"skipped_mined":case"skipped_partially_scanned":return"skipped";case"discovered":return"scanning";case"on_hold":return"waiting";default:return this.get("final_report")?"complete":"scanning"}},mac(){return Aa.mac(this.get("interfaces.0.mac"))},os(){return this.get("kv.DISPLAY_OS")},isShadow(){return this.get("is_shadow")},ipPreferred(){const e=this.get("interfaces")||[];for(let t=0,n=e.length;t<n;t++)if(e[t].ip&&e[t].ip.length<16)return e[t].ip;return e[0]&&e[0]&&e[0].ip?e[0].ip:null},vendor(){return this.getVendor()},issues(){return Ma.getIssuesFromDevice(this.get("d"))},services(){let e=this.get("d.services")||[];const t=this.get("d.interfaces")||[];return t&&t.length&&t.forEach((function(t){t.services&&(e=e.concat(t.services))})),e},issueSeverity(){const e=Ma.getIssuesFromDevice(this.get("d"));if(0==e.length)return"ok";let t="attention";return e.forEach((function(e){"SEVERITY_CRITICAL"==e.severity&&(t="danger")})),t},deviceIcon(){const e=this.get("device_roles");return e&&e.indexOf("SELF")>-1?"user":Ea[this.get("deviceType")]},networkInterfaces(){const e={};(this.get("d.interfaces")||[]).forEach((function(t){e[t.mac]?e[t.mac].ips.push(t.ip):(e[t.mac]=t,e[t.mac].ips=[t.ip])}));for(const t in e)e[t].ips=e[t].ips.sort((function(e,t){return e<t?-1:e>t?1:0}));return Object.keys(e).map((t=>e[t]))}},getVendor(){return this.get("kv.DISPLAY_VENDOR")?this.get("kv.DISPLAY_VENDOR"):this.get("kv.DEVICE_MANUFACTURER")?this.get("kv.DEVICE_MANUFACTURER"):null},observeStorage(){},onteardown(){this.listeners&&this.listeners.forEach((e=>{e()}))}}).extend({template:{v:3,t:[{t:7,e:"div",a:{class:["hns_item__wrap ",{t:2,r:"cssCls"}]},f:[{t:7,e:"div",a:{class:"hns_item"},f:[{t:4,f:[{t:7,e:"div",a:{class:"hns_router__img"}}],n:50,r:"myRouter"},{t:4,n:51,f:[{t:4,n:50,x:{r:["devicesGroup"],s:"_0"},f:[{t:7,e:"div",a:{class:["hns_item__icon_cont -group ",{t:2,x:{r:["devicesGroup.length"],s:'_0===2?"-shortGroup":""'}}]},f:[{t:4,f:[{t:4,f:[{t:7,e:"Icon",a:{name:["device-",{t:2,x:{r:["getDeviceIcon","."],s:"_0(_1)"}}],cssCls:"hns_item__icon"}}],n:50,x:{r:["@index","devicesGroup.length"],s:"_0<=1||_1===3"}}],n:52,r:"devicesGroup"}," ",{t:4,f:[{t:7,e:"div",a:{class:"hns_item__icon -number"},f:["+",{t:2,x:{r:["devicesGroup.length"],s:"_0-2>99?99:_0-2"}}]}],n:50,x:{r:["devicesGroup.length"],s:"_0>3"}}]}," ",{t:7,e:"div",a:{class:"hns_virus__wrap"},f:[{t:7,e:"div",a:{class:"hns_virus__item -pos0"}}," ",{t:7,e:"div",a:{class:"hns_virus__item -pos3"}}," ",{t:7,e:"div",a:{class:"hns_virus__item -pos1"}}]}]},{t:4,n:50,x:{r:["devicesGroup"],s:"!(_0)"},f:[" ",{t:7,e:"div",a:{class:"hns_item__icon_cont"},f:[{t:7,e:"Icon",a:{name:["device-",{t:2,x:{r:["getDeviceIcon","device"],s:"_0(_1)"}}],cssCls:"hns_item__icon"}}]}," ",{t:7,e:"div",a:{class:"hns_virus__wrap"},f:[{t:7,e:"div",a:{class:["hns_virus__item -pos",{t:2,r:"virusRandom.0"}]}}," ",{t:7,e:"div",a:{class:["hns_virus__item -pos",{t:2,r:"virusRandom.1"}]}}," ",{t:7,e:"div",a:{class:["hns_virus__item -pos",{t:2,r:"virusRandom.2"}]}}]}]}],r:"myRouter"}," ",{t:7,e:"h5",a:{class:["hns_item__name ",{t:2,x:{r:["myRouter"],s:'!_0?"-secondary":""'}}]},f:[{t:4,f:[{t:3,x:{r:["nls","devicesGroup.length"],s:'_0("network.ss2.devices",_1)'}}],n:50,r:"devicesGroup"},{t:4,n:51,f:[{t:4,n:50,x:{r:["deviceName"],s:"_0"},f:[{t:2,r:"deviceName"}]},{t:4,n:50,x:{r:["deviceName"],s:"!(_0)"},f:[" ",{t:3,x:{r:["nls"],s:'_0("network.device.name.unknown")'}}]}],r:"devicesGroup"}," ",{t:4,f:[{t:7,e:"div",a:{class:"g-margin-top--5 text color-ok -text -small"},f:[{t:2,r:"networkName"}]}],n:50,r:"networkName"}]}]}]}]},data:()=>({devices:null,myRouter:!1,networkName:null,device:null,devicesGroup:null,virusRandom:[0,1,2,3],getDeviceIcon:e=>e&&Ea[e.device_class]?Ea[e.device_class]:Ea.UNKNOWN}),oninit(){this.randomizeVirusesAnim();const e=this.get("devices");if(e&&e.length>1){const t=e.slice(3,e.length);this.set("devicesGroup",t)}else this.set("device",e[0])},randomizeVirusesAnim(){const e=this.shuffleArray(this.get("virusRandom"));this.set("virusRandom",e)},shuffleArray(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}return e}}),sl=k.extend({template:'<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 592.718 307.776" xml:space="preserve">\n<style type="text/css">\n\t.st0{opacity:0.3;fill:#53a0fd;}\n\t#progressLine-1 {\n\t\t{{#isAnimated}}animation: fade 3s linear 2.5s infinite;{{/}}\n\t\topacity: .2\n\t}\n\t#progressLine-2 {\n\t\t{{#isAnimated}}animation: fade 3s linear 2s infinite;{{/}}\n\t\topacity: .2\n\t}\n\t#progressLine-3 {\n\t\t{{#isAnimated}}animation: fade 3s linear 1.5s infinite;{{/}}\n\t\topacity: .2\n\t}\n\t#progressLine-4 {\n\t\t{{#isAnimated}}animation: fade 3s linear 1s infinite;{{/}}\n\t\topacity: .2\n\t}\n\t#progressLine-5 {\n\t\t{{#isAnimated}}animation: fade 3s linear 0.5s infinite;{{/}}\n\t\topacity: .2\n\t}\n\t@keyframes fade {\n\t\t0% {opacity: 0.2}\n\t\t20% {opacity: 1}\n\t\t40% {opacity: 0.2}\n\t}\n</style>\n<path id="progressLine-5" class="st0" d="M341.25,113.171l1.021-0.553c9.639,10.85,15.51,25.119,15.51,40.74\n\tc0,16.081-6.22,30.73-16.37,41.691l-1.033-0.56c10.08-10.78,16.268-25.243,16.268-41.131\n\tC356.646,137.931,350.815,123.845,341.25,113.171z M236.073,153.358c0-15.427,5.831-29.513,15.396-40.187l-1.02-0.553\n\tc-9.639,10.85-15.51,25.119-15.51,40.74c0,15.835,6.025,30.289,15.902,41.192l1.028-0.557\n\tC242.064,183.268,236.073,169,236.073,153.358z"/>\n<path id="progressLine-4" class="st0" d="M199.535,222.355l-1.006,0.545c-13.999-19.636-22.241-43.645-22.241-69.543\n\tc0-25.687,8.112-49.513,21.903-69.06l1.003,0.543c-13.707,19.382-21.772,43.024-21.772,68.516\n\tC177.422,179.061,185.62,202.884,199.535,222.355z M415.295,153.357c0,25.942-8.354,49.966-22.505,69.536l1.006,0.545\n\tc14.234-19.735,22.634-43.944,22.634-70.081c0-25.687-8.112-49.513-21.903-69.059l-1.003,0.544\n\tC407.231,104.223,415.295,127.866,415.295,153.357z"/>\n<path id="progressLine-3" class="st0" d="M445.372,56.743l1.001-0.542c18.191,27.991,28.774,61.36,28.774,97.158\n\tc0,36.245-10.852,69.998-29.461,98.201l-1.001-0.542c18.524-28.041,29.327-61.609,29.327-97.659\n\tC474.012,117.756,463.477,84.571,445.372,56.743z M118.706,153.358c0-35.603,10.535-68.787,28.64-96.616l-1-0.542\n\tc-18.191,27.991-28.774,61.36-28.774,97.158c0,36.008,10.71,69.556,29.096,97.648l1-0.542\n\tC129.368,222.535,118.706,189.171,118.706,153.358z"/>\n<path id="progressLine-2" class="st0" d="M94.846,279.091l-0.999,0.541c-23.489-37.51-36.068-80.924-36.068-126.275\n\tc0-45.151,12.471-88.379,35.76-125.775l0.999,0.541c-23.201,37.231-35.625,80.275-35.625,125.234\n\tC58.913,198.517,71.445,241.746,94.846,279.091z M533.804,153.357c0,45.385-12.653,88.823-36.28,126.296l0.999,0.541\n\tc23.715-37.638,36.416-81.26,36.416-126.837c0-45.151-12.472-88.379-35.76-125.775l-0.999,0.541\n\tC521.38,65.355,533.804,108.399,533.804,153.357z"/>\n<path id="progressLine-1" class="st0" d="M592.718,153.357c0,55.356-15.093,108.385-43.301,154.42l-0.999-0.541\n\tc28.119-45.869,43.164-98.714,43.164-153.878c0-54.737-14.809-107.194-42.509-152.816L550.073,0\n\tC577.862,45.786,592.718,98.427,592.718,153.357z M43.952,306.673C16.055,260.935,1.134,208.296,1.134,153.357\n\tc0-54.737,14.809-107.194,42.509-152.815L42.644,0C14.856,45.787,0,98.428,0,153.357c0,55.131,14.968,107.954,42.953,153.857\n\tL43.952,306.673z"/>\n</svg>',data:function(){return{isAnimated:!1}}}),il=k.extend({template:{v:3,t:[{t:4,f:[{t:7,e:"div",a:{class:"kin_scan__result"},f:[{t:7,e:"h1",a:{class:"h1 smr_progress__title","data-test":"ss_scanSmarthome_progress"},f:[{t:3,x:{r:["nls","scannerData.progress"],s:'_0("network.ss2.progress.title",_1)'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("network.ss2.progress.subtitle")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_scan__actions"},f:[{t:7,e:"button",a:{class:"btn -secondary -medium -submit","data-test":"ss_scanSmarthome_stop"},v:{click:"stop"},f:[{t:3,x:{r:["nls"],s:'_0("global.stopScan")'}}]}]}],n:50,x:{r:["scannerData.status"],s:'_0!=="done"'}},{t:4,n:51,f:[{t:4,n:50,x:{r:["scannerData.issuesCount"],s:"_0===0"},f:[{t:7,e:"div",a:{class:"kin_scan__result"},f:[{t:7,e:"h1",a:{class:"h1","data-test":"ss_scanSmarthome_titleEmpty"},f:[{t:3,x:{r:["nls"],s:'_0("network.ss2.noIssues.title")'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("network.ss2.noIssues.subtitle")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_scan__actions"},f:[{t:7,e:"button",a:{class:"btn -medium -submit","data-test":"ss_scanSmarthome_next"},v:{click:"next"},f:[{t:3,x:{r:["nls"],s:'_0("global.next")'}}]}]}]},{t:4,n:50,x:{r:["scannerData.issuesCount"],s:"!(_0===0)"},f:[" ",{t:7,e:"kin-view",a:{csscls:"-center",loading:[{t:2,r:"loading"}],actionbar:"true"},f:[{t:7,e:"div",a:{slot:"description"},f:[{t:7,e:"h1",a:{class:"h1","data-test":"ss_scanSmarthome_title"},f:[{t:3,x:{r:["nls"],s:'_0("network.ss2.results.title")'}}]}," ",{t:7,e:"p",a:{class:"kin_scan__subtitle"},f:[{t:3,x:{r:["nls"],s:'_0("network.ss2.results.subtitle")'}}]}]}," ",{t:7,e:"div",a:{slot:"view-content"},f:[{t:4,f:[{t:4,f:[{t:7,e:"Item",a:{cssCls:"-gateway",devices:[{t:2,x:{r:["."],s:"[_0]"}}],networkName:[{t:2,r:"networkName"}],myRouter:"true"}}],n:50,x:{r:["@index"],s:"_0<1"}}],n:52,r:"myRouters"}," ",{t:4,f:[{t:4,f:[{t:7,e:"Item",a:{cssCls:"-others",devices:[{t:2,x:{r:["."],s:"[_0]"}}]}}],n:52,r:"otherDevices"}],n:50,x:{r:["otherDevices.length"],s:"_0<=4"}},{t:4,n:51,f:[{t:4,f:[{t:4,f:[{t:7,e:"Item",a:{cssCls:"-others",devices:[{t:2,x:{r:["."],s:"[_0]"}}]}}],n:50,x:{r:["@index"],s:"_0<=2"}},{t:4,n:51,f:[{t:4,n:50,x:{r:["@index"],s:"_0===3"},f:[{t:7,e:"Item",a:{cssCls:"-group",devices:[{t:2,r:"otherDevices"}]}}]}],x:{r:["@index"],s:"_0<=2"}}],n:52,r:"otherDevices"}],x:{r:["otherDevices.length"],s:"_0<=4"}}," ",{t:7,e:"div",a:{class:"hns_bg"},f:[{t:7,e:"ProgressBg",a:{isAnimated:"true"}}]}]}," ",{t:7,e:"div",a:{slot:"view-actions"},f:[{t:4,f:[{t:7,e:"div",f:[{t:7,e:"button",a:{class:"btn -small -submit","data-test":"ss_scanSmarthome_skip"},v:{click:"next"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}," ",{t:7,e:"button",a:{class:"btn -small -submit -secondary g-margin-left--5","data-test":"ss_scanSmarthome_resolve"},v:{click:"openIpmBuy"},f:[{t:3,x:{r:["nls"],s:'_0("global.resolveAll")'}}]}]}],n:50,r:"ipmOpened"},{t:4,n:51,f:[{t:7,e:"div",f:[{t:7,e:"button",a:{class:"btn -small -submit","data-test":"ss_scanSmarthome_resolve"},v:{click:"openIpmBuy"},f:[{t:3,x:{r:["nls"],s:'_0("global.learnMore")'}}]}]}," ",{t:7,e:"div",a:{class:"kin_actions__right"},f:[{t:7,e:"button",a:{class:"a","data-test":"ss_scanSmarthome_skip"},v:{click:"skip"},f:[{t:3,x:{r:["nls"],s:'_0("global.skipForNow")'}}]}]}],r:"ipmOpened"}]}]}]}],x:{r:["scannerData.status"],s:'_0!=="done"'}}]},css:Na,components:{Item:nl,ProgressBg:sl},scannerId:void 0,data:()=>({scannerData:{progress:void 0,status:void 0,issuesCount:void 0},loading:!1,issuesCount:0,otherDevices:null,myRouters:null,networkName:null,ipmOpened:!1}),oninit(){s.view("SmartScan/Resolve/Smarthome"),this.listeners=[],this.on("skip",(()=>{this.fire("skipScanner",this.scannerId)})),this.on("next",(()=>{this.fire("nextScanner")})),this.on("stop",(()=>{this.fire("stopScan")})),this.on("updateScannerData",(e=>{this.set("scannerData",{progress:e.progress,status:e.status,issuesCount:e.issuesCount}),"done"===e.status&&(s.ipm(373),e.issuesCount>0&&this._init())})),this.on("openIpmBuy",(()=>{f.openWindow(379),setTimeout((()=>{this.set("ipmOpened",!0)}),2e3),this.addInstallListeners()}))},_init(){this.set("loading",!0),e("app.smartScan.GetIssues","scanSmarthome").then((e=>{const t=e.issues.devices;if(t&&t.length){Sa.version=e.issues.protocol_version;const n=Ma.getDiscoveredDevices(t),s=Ma.getMyDevices(t).concat(n).filter((e=>!e.is_shadow));this.set({myRouters:Ma.getMyRouters(t),otherDevices:s,networkName:e.issues.network_name,loading:!1})}}))},addInstallListeners(){this.listeners.push(t.on("app.setup.ProgramUpdateFinished",(()=>{this.fire("productPurchased","omni")})))},onteardown(){this.listeners.forEach((e=>e()))}});export default class extends Ge{constructor(e){super(),We(this,e,ia,sa,C,{showModuleInOverlay:0,scanAnimColor:1})}}export{il as SmartScanV2,ba as newDevice,xa as scanProgressToaster,_a as settings,ga as settingsSearchStrings};const ol={name:"SecurityNetwork",version:"1.2.716",created:"2021-03-10T09:56:45.707Z"};export{ol as metadata};