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


Current File : C:/Program Files/Avast Software/Avast/gui_resources/1.0.663/libs.js
//{"name":"libs","version":"1.2.421","created":"2021-09-06T10:53:38.096Z"}
function t(t,e){if(e||null==t){const e=window.getSelection().toString();e&&(null==t||t.includes(e))&&(t=e)}if(null!=t){let e=document.createElement("textarea");e.style.opacity="0",e.tabIndex="-1",document.body.appendChild(e),e.value=t,e.select(),document.execCommand("copy"),e.remove(),e=void 0}}class e{constructor(t,e,s,n){if(!t||!e)return t||console.warn("Logger: no loggerId"),e||console.warn("Logger ("+t+"): no config => no logs"),void(this.c={});this.loggerId=t,this.loggerPrefix=s||t,this.concretization=n,this._setMessagePrefix(),this.c=e}error(...t){t.unshift(this.messagePrefix),this.c.isError&&console[this.c.trace?"trace":"error"].apply(console,t)}warn(...t){t.unshift(this.messagePrefix),this.c.isWarn&&console[this.c.trace?"trace":"warn"].apply(console,t)}info(...t){t.unshift(this.messagePrefix),this.c.isInfo&&console[this.c.trace?"trace":"info"].apply(console,t)}debug(...t){t.unshift(this.messagePrefix),this.c.isDebug&&console[this.c.trace?"trace":"log"].apply(console,t)}isSeverity(t){return t>this.c.severity-1}_setMessagePrefix(){this.messagePrefix="defaultLogger"===this.loggerId?"":this.loggerPrefix,this.messagePrefix&&(null!=this.concretization&&(this.messagePrefix+=" ["+this.concretization+"]"),this.messagePrefix+=": ")}}const s="nitro-libs-logger",n={NO_LOG:0,ERROR:1,WARN:2,INFO:3,DEBUG:4},i={SEVERITIES:n,setDefaultSeverity:function(t){h(),r=t},createLogger:function(t,s,n){h(),t||console.warn("logger: cannot create logger, no loggerId");o[t]||(u(t,r),function(t){l.forEach((e=>{const s=c[e],n=e&&new RegExp(e);s&&n&&n.test(t)&&u(t,s)}))}(t));return new e(t,o[t],s,n)},setSeverity:u,setSeverities:function(t=[],e){h(),t.forEach((t=>{const s=t.loggerId,n=t.severity;"^"===s[0]?g(s,n,e):u(s,n,e)}))},setTrace:function(t,e){h(),o[t]||(o[t]={});o[t].trace=e,f()},getConfig:function(t){return h(),t?o[t]:o},clearConfigs:function(){h(),localStorage&&localStorage[s]&&delete localStorage[s];o={}}};let r=n.ERROR,o={},a=!1;const c={},l=[];function h(){if(!a&&localStorage&&localStorage[s])try{o=JSON.parse(localStorage[s]),a=!0}catch(t){console.error("logger: parsing stored logger configs failed; error: ",t)}}function u(t,e,s){h(),t&&null!=e?t instanceof RegExp?g(t,e,s):function(t,e,s){s&&console.log("logger: setting severity of logger "+t+" to "+e),o[t]||(o[t]={});const i=o[t];e&&e===i.severity||(i.severity=e,i.isError=i.severity>=n.ERROR,i.isWarn=i.severity>=n.WARN,i.isInfo=i.severity>=n.INFO,i.isDebug=i.severity>=n.DEBUG);f()}(t,e,s):console.error("logger: setting severity failed, no loggerId or no severity")}function g(t,e,s){if(h(),!t||null==e)return void console.warn("logger: setting severity by pattern failed, no pattern or no severity");let n;for(n in s&&console.log("logger: setting severity "+e+" by pattern "+t),function(t,e){if(!t||!e)return;const s=l.indexOf(t);-1!==s&&l.splice(s,1);l.push(t),c[t]=e}(t.toString(),e),o)undefined.test(n)&&u(n,e,s)}function f(){localStorage&&(localStorage[s]=JSON.stringify(o))}const d="(?:25[0-5]|2[0-4]\\d|1\\d\\d|0?[1-9]\\d|0{0,2}\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|0?[1-9]\\d|0{0,2}\\d)){3}",p="[a-fA-F\\d]{1,4}",y="((?:"+p+":){7}(?:"+p+"|:)|(?:"+p+":){6}(?:"+d+"|:"+p+"|:)|(?:"+p+":){5}(?::"+d+"|(:"+p+"){1,2}|:)|(?:"+p+":){4}(?:(:"+p+"){0,1}:"+d+"|(:"+p+"){1,3}|:)|(?:"+p+":){3}(?:(:"+p+"){0,2}:"+d+"|(:"+p+"){1,4}|:)|(?:"+p+":){2}(?:(:"+p+"){0,3}:"+d+"|(:"+p+"){1,5}|:)|(?:"+p+":){1}(?:(:"+p+"){0,4}:"+d+"|(:"+p+"){1,6}|:)|(?::((?::"+p+"){0,5}:"+d+"|(?::"+p+"){1,7}|:)))(%[0-9a-zA-Z]{1,})?";function b(t,e={}){let s,n;if(null!=e.version&&(s=6===e.version?y:d),n=s?e.range?`^${s}(-${s})?$`:`^${s}$`:e.range?`(?:^${d}(-${d})?$)|(?:^${y}(-${y})?$)`:`(?:^${d}$)|(?:^${y}$)`,e.list){return t.split(e.separator||",").every((t=>new RegExp(n).test(t)))}return new RegExp(n).test(t)}class m{constructor(){this._NAMED_CHUNK_PATTERN=/^:/,this._ROUTE_START_PATTERN=/^[/#]/,this._listeners=[]}on(t,e){const s=t.replace(/^\//,"").split("/");this._listeners.push({chunks:s,callback:e})}emit(t){const e=t.replace(this._ROUTE_START_PATTERN,"").split("/");this._listeners.forEach((t=>{const s=this._getResultChunks(e,t.chunks);s&&t.callback(s,e)}))}removeAllListeners(){this._listeners.length=0}_getResultChunks(t,e){const s={};let n=!1;return this._isMatchable(t,e)&&(n=e.every(((n,i)=>{if("*"===n&&i===e.length-1)s.wildcard=t.slice(i).join("/");else if(this._NAMED_CHUNK_PATTERN.test(n)){if(""===t[i]||null==t[i])return!1;{const e=n.replace(this._NAMED_CHUNK_PATTERN,"");s[e]=t[i]}}else if(n!==t[i])return!1;return!0}))),n&&s}_isMatchable(t,e){return e.length===t.length||"*"===e[e.length-1]&&e.length<=t.length+1}}function v(t){return t instanceof Date&&t instanceof RegExp}function _(t){if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);throw new Error("Unexpected situation")}function E(t){const e=[];return t.forEach((function(t,s){"object"==typeof t&&null!==t?Array.isArray(t)?e[s]=E(t):v(t)?e[s]=_(t):e[s]=A({},t):e[s]=t})),e}function w(t,e){return"__proto__"===e?void 0:t[e]}function I(t){return t&&"object"==typeof t&&!Array.isArray(t)}function A(t,...e){return!!I(t)&&(e.length?(e.forEach((function(e){I(e)&&Object.keys(e).forEach((function(s){const n=w(t,s),i=w(e,s);return i===t?void 0:"object"!=typeof i||null===i?void(t[s]=i):Array.isArray(i)?void(t[s]=E(i)):v(i)?void(t[s]=_(i)):"object"!=typeof n||null===n||Array.isArray(n)?void(t[s]=A({},i)):void(t[s]=A(n,i))}))})),t):t)}const S={replace:function(t,e=[]){return Array.isArray(e)?e.reduce(((t,e)=>x(t,e)),t):x(t,e)},remove:function(t){return t.replace(P,"")}},P=/{URL_(START|END)_[A-Z_]+}/g;function x(t,e={}){const s=e.suffix,n=new RegExp("{URL_START_"+s+"}(.+){URL_END_"+s+"}"),i=e.href,r=Array.isArray(e.onclick)?e.onclick.join(";"):e.onclick,o=r?'<button onclick="'+r+'" class="a">$1</button>':'<a href="'+i+'" class="a">$1</a>';return t.replace(n,o)}const R=/^[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z](?:[a-zA-Z-]*[a-zA-Z])?$/,T={escapeHtml:function(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;")},stripHtml:function(t){return S.remove(String(t)).replace(/<\/?[^>]+(>|$)/g,"")},ellipsis:function(t,e){if("string"==typeof t&&"number"==typeof e&&e>3&&t.length>=e)return t.substr(0,e-3)+"...";return t},piiStrip:function(t){return t.replace(/.{4}@.{3,}\..{2,3}/g,"[EMAIL]")},isEmailValid:function(t){return R.test(t)}};function O(t,e){return t.prototype.teardown?(e.target&&!e.el&&(e.el=e.target,delete e.target),e.props&&!e.data&&(e.data=e.props,delete e.props),t.prototype.$on=function(){return this.on.apply(this,arguments)},t.prototype.$destroy=function(){return this.teardown.apply(this,arguments)}):t.prototype.destroy?(e.props&&!e.data&&(e.data=e.props,delete e.props),t.prototype.$on=function(){return this.on.apply(this,arguments)},t.prototype.$destroy=function(){return this.destroy.apply(this,arguments)},t.prototype.handlesWindowInit&&(t.handlesWindowInit=t.prototype.handlesWindowInit),delete e.isolated):delete e.isolated,new t(e)}const F=["a","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].join(",");function D(t){const e=new L(t);return{destroy:e.destroy.bind(e),teardown:e.destroy.bind(e)}}const N=[];class L{constructor(t){this.body=document.querySelector("body"),this.wrapper=t,this.initFocusSet=!1,this.mutationObserver=new MutationObserver((()=>this.setFocus())),this.running=!1,this.userInteracted=!1,this._stopPrevInstance(),N.push(this),this._startWatchingHashChange(),this._startWatchingUserInteraction(),this.start()}destroy(){this.stop();const t=N.findIndex((t=>t===this));N.splice(t,1),this._startPrevInstance(),delete this.body,delete this.wrapper,delete this.mutationObserver}start(){this.running||(this.mutationObserver.observe(this.wrapper,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),this.setFocus(),this.running=!0)}stop(){this.running&&(this.mutationObserver.disconnect(),this._stopWatchingHashChange(),this._stopWatchingUserInteraction(),this.running=!1,this.initFocusSet=!1)}setFocus(t={}){if(t.force&&(this.userInteracted=!1,this.initFocusSet=!1),this.userInteracted)return;if(this.initFocusElem&&!this.wrapper.contains(this.initFocusElem)&&(this.initFocusElem=null),this.initFocusElem&&this.initFocusSet)return;let e=1;if(!this.initFocusElem){for(;!this.initFocusElem&&e<=6;)this.initFocusElem=this.wrapper.querySelector("h"+e),e++;if(!this.initFocusElem&&this.initFocusSet)return}if(this.initFocusElem)this.initFocusElem.tabIndex=-1,this.initFocusElem.focus(),this.initFocusSet=!0;else{const t=Array.from(this.wrapper.querySelectorAll(F)).filter((t=>-1!==t.tabIndex&&t.offsetWidth&&t.offsetHeight&&t.getClientRects().length));!t.includes(document.activeElement)&&t.length&&t[0].focus()}}_getPreviousInstance(){if(N.length)return N[N.length-1]}_startPrevInstance(){const t=this._getPreviousInstance();t&&t.start()}_stopPrevInstance(){const t=this._getPreviousInstance();t&&t.stop()}_startWatchingUserInteraction(){this._onUserInteraction=()=>{this.userInteracted=!0,this._stopWatchingUserInteraction()},this.body.addEventListener("keydown",this._onUserInteraction),this.body.addEventListener("click",this._onUserInteraction)}_stopWatchingUserInteraction(){this._onUserInteraction&&(this.body.removeEventListener("keydown",this._onUserInteraction),this.body.removeEventListener("click",this._onUserInteraction),delete this._onUserInteraction)}_startWatchingHashChange(){this._onHashChange=()=>{this.userInteracted=!1},window.addEventListener("hashchange",this._onHashChange)}_stopWatchingHashChange(){this._onHashChange&&(window.removeEventListener("hashchange",this._onHashChange),delete this._onHashChange)}}function $(t){const e=new U(t);return{destroy:e.destroy.bind(e),teardown:e.destroy.bind(e)}}const C=[];class U{constructor(t){this.body=document.querySelector("body"),this.wrapper=t,this.focusableElems=[],this.mutationObserver=new MutationObserver((()=>this._trapTabNavigation())),this.running=!1,this.focuser=new L(this.wrapper),this.keyDownOffs=[],this._stopPrevInstance(),C.push(this),this.start()}getFocuser(){return this.focuser}destroy(){this.stop(),this.focuser.destroy();const t=C.findIndex((t=>t===this));C.splice(t,1),this._startPrevInstance()}start(){this.running||(this.mutationObserver.observe(this.wrapper,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),this._trapTabNavigation(),this.focuser.start(),this.running=!0)}stop(){this.running&&(this.mutationObserver.disconnect(),this._untrapTabNavigation(),this.focuser.stop(),this.running=!1)}_getPreviousInstance(){if(C.length)return C[C.length-1]}_startPrevInstance(){const t=this._getPreviousInstance();t&&t.start()}_stopPrevInstance(){const t=this._getPreviousInstance();t&&t.stop()}_trapTabNavigation(){this._untrapTabNavigation(),this.focusableElems=Array.from(this.wrapper.querySelectorAll(F)).filter((t=>-1!==t.tabIndex&&t.offsetWidth&&t.offsetHeight&&t.getClientRects().length)),this.focusableElems.length&&(this._addKeyDownListener(-1),this._addKeyDownListener(0),this.focusableElems.length>1&&this._addKeyDownListener(this.focusableElems.length-1),this.focuser.setFocus())}_untrapTabNavigation(){this.keyDownOffs.forEach((t=>t())),this.keyDownOffs=[],this.focusableElems.length=0}_addKeyDownListener(t){const e=-1===t?this.body:this.focusableElems[t],s=this._onKeyDown.bind(this,t),n=e.removeEventListener.bind(e,"keydown",s,!1);e.addEventListener("keydown",s,!1),this.keyDownOffs.push(n)}_onKeyDown(t,e){if("Tab"===e.key){if(-1===t&&(this.focusableElems.includes(document.activeElement)||-1==document.activeElement.getAttribute("tabindex")))return;if(e.preventDefault(),-1!==t&&this.focusableElems.length<=1)return;let s;s=-1===t?e.shiftKey?this.focusableElems.length-1:0:e.shiftKey?t?t-1:this.focusableElems.length-1:t<this.focusableElems.length-1?t+1:0,this.focusableElems[s].focus()}}}class k{constructor(t){this.wrapper=t,this.elems=[],this.elemsChanged=new Set,this.tabable=!0,this.mutationObserver=new MutationObserver((()=>this._updateElems())),this.mutationObserver.observe(this.wrapper,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}set(t=this.tabable){t!==this.tabable&&(this.tabable=t),this.elems.forEach((e=>{const s=e.getAttribute("tabindex");t?this.elemsChanged.has(e)&&"-1"===s&&e.removeAttribute("tabindex"):"-1"!==s&&this.elemsChanged.add(e)&&e.setAttribute("tabindex","-1")}))}destroy(){this.mutationObserver.disconnect()}_updateElems(){this.elems=Array.from(this.wrapper.querySelectorAll(F)),this.set()}}function W(t){const e={};for(const[s,n]of t)e[s]=n;return e}function H(){Object.fromEntries=Object.fromEntries||W}function j(t){const e=t.map((t=>t instanceof Promise||"function"==typeof t.then&&"function"==typeof t.catch?t.then((t=>({status:"fulfilled",value:t}))).catch((t=>({status:"rejected",reason:t}))):{status:"fulfilled",value:t}));return Promise.all(e)}function z(){Promise.allSettled=Promise.allSettled||j}const K={copyToClipboard:t,logger:i,ipValidator:b,Router:m,deepExtend:A,stringUtils:T,svelte3Adapter:O,TabTrapper:U,trapTabNavigation:$,TabableToggler:k,Focuser:L,setInitFocus:D,urlPlaceholders:S,objectFromEntriesPolyfill:H,promiseAllSettledPolyfill:z};export{L as Focuser,m as Router,U as TabTrapper,k as TabableToggler,t as copyToClipboard,K as debug,A as deepExtend,b as ipValidator,i as logger,H as objectFromEntriesPolyfill,z as promiseAllSettledPolyfill,D as setInitFocus,T as stringUtils,O as svelte3Adapter,$ as trapTabNavigation,S as urlPlaceholders};const M={name:"libs",version:"1.2.421",created:"2021-09-06T10:53:38.096Z"};export{M as metadata};