1"use strict";var LoggerBundle=(function(){var g={emerg:0,alert:1,crit:2,err:3,warning:4,notice:5,info:6,debug:7};function s(e){e=e||{},this.defaultLogLevel=this._parseLogLevel(e.defaultLogLevel),this.currentLogLevel=this.defaultLogLevel,this.maxLogLength=e.maxLogLength||1e3,this.handler=e.handler||this._defaultHandler,this.tempLevelTimeout=null}s.prototype._parseLogLevel=function(e){return typeof e=="string"&&g.hasOwnProperty(e)?e:"err"};s.prototype._defaultHandler=function(e,o,r,a){if(console&&console.log){var t="["+r+"] ["+e.toUpperCase()+"] "+o;a&&Object.keys(a).length>0?console.log(t,a):console.log(t)}};s.prototype._getLevelName=function(e){for(var o in g)if(g[o]===e)return o;return"unknown"};s.prototype._shouldLog=function(e){return g[this.currentLogLevel]>=g[e]};s.prototype._formatMetadata=function(e){for(var o={},r=0;r<e.length;r++){var a=e[r];if(typeof a=="object"&&a!==null){for(var t in a)if(a.hasOwnProperty(t)){var n=a[t];if(typeof n=="object"&&n!==null)try{o[t]=JSON.stringify(n)}catch(u){o[t]=String(n)}else o[t]=n}}else o["arg"+r]=a}return o};s.prototype._log=function(e){if(this._shouldLog(e)){var o=Array.prototype.slice.call(arguments,1),r=o.length>0?String(o[0]):"",a=o.slice(1);r.length>this.maxLogLength&&(r=r.substring(0,this.maxLogLength)+"...");var t=this._formatMetadata(a),n=new Date().toISOString();this.handler(e,r,n,t)}};s.prototype.emerg=function(){var e=Array.prototype.slice.call(arguments);this._log.apply(this,["emerg"].concat(e))};s.prototype.alert=function(){var e=Array.prototype.slice.call(arguments);this._log.apply(this,["alert"].concat(e))};s.prototype.crit=function(){var e=Array.prototype.slice.call(arguments);this._log.apply(this,["crit"].concat(e))};s.prototype.err=function(){var e=Array.prototype.slice.call(arguments);this._log.apply(this,["err"].concat(e))};s.prototype.warning=function(){var e=Array.prototype.slice.call(arguments);this._log.apply(this,["warning"].concat(e))};s.prototype.notice=function(){var e=Array.prototype.slice.call(arguments);this._log.apply(this,["notice"].concat(e))};s.prototype.info=function(){var e=Array.prototype.slice.call(arguments);this._log.apply(this,["info"].concat(e))};s.prototype.debug=function(){var e=Array.prototype.slice.call(arguments);this._log.apply(this,["debug"].concat(e))};s.prototype.setLogLevel=function(e,o){var r=this;this.tempLevelTimeout&&(clearTimeout(this.tempLevelTimeout),this.tempLevelTimeout=null),this.currentLogLevel=this._parseLogLevel(e),o&&o>0&&(this.tempLevelTimeout=setTimeout(function(){r.currentLogLevel=r.defaultLogLevel,r.tempLevelTimeout=null},o*1e3))};s.LOG_LEVELS=g;var L=1e3,h=function(){return window.location.hostname.includes("localhost")};function A(e,o){if(!h()){var r=function(n){return!n.includes("/km-api/")&&!n.startsWith("https://mc.yandex.com")},a=window.XMLHttpRequest;window.XMLHttpRequest=function(){var t=new a,n=t.open,u;t.open=function(p,i){return u={method:p,url:i},n.apply(t,arguments)};var c=t.send;return t.send=function(p){var i=performance.now(),l=function(d){var m=performance.now()-i;if(r(u.url)){var y=t.responseType==="text"||t.responseType===""?t.responseText:t.responseType==="json"&&t.response&&t.response.result&&t.response.result.retCode?"retCode: "+t.response.result.retCode:JSON.stringify(t.response),D=d!=="load"||t.status<200||t.status>=300;if(e){var T={event:"xhr-request-log",reason:d,duration:m,url:u.url,method:u.method,status:t.status,statusText:t.statusText,responseType:t.responseType,responseText:y.length>L?y.slice(0,L)+"...":y,requestText:JSON.stringify(p),loadType:window.LOADER_DATA&&window.LOADER_DATA.loadType};if(D){var _=o?o(u.url):"err";e[_]("XHR Error",T)}else e.debug("XHR Debug",T)}}};return t.addEventListener("load",function(){l("load")}),t.addEventListener("error",function(){l("error")}),t.addEventListener("abort",function(){l("abort")}),t.addEventListener("timeout",function(){l("timeout")}),c.apply(t,arguments)},t}}}function O(e,o){if(!(h()||!window||!window.fetch)){var r=function(n){return!n.includes("/km-api/")&&!n.startsWith("https://mc.yandex.com")},a=window.fetch;window.fetch=function(t,n){var u=performance.now(),c=typeof t=="string"?t:t.url,p=(typeof t=="string"?n&&n.method||"GET":t.method)||"GET";return a.apply(this,arguments).then(function(i){var l=performance.now()-u;return r(c)&&i.clone().text().then(function(f){var d=!i.ok,m={event:"fetch-request-log",duration:l,url:c,method:p,status:i.status,statusText:i.statusText,responseType:i.type,responseText:f.length>L?f.slice(0,L)+"...":f,requestText:n?JSON.stringify(n.body):void 0,loadType:window.LOADER_DATA&&window.LOADER_DATA.loadType};if(d){var y=o?o(c):"err";e[y]("Fetch Error",m)}else e.debug("Fetch Debug",m)}).catch(function(){}),i}).catch(function(i){var l=performance.now()-u;if(r(c)){var f={event:"fetch-request-log",reason:"error",duration:l,url:c,method:p,status:0,statusText:i.message,responseText:i.stack,requestText:n?JSON.stringify(n.body):void 0,loadType:window.LOADER_DATA&&window.LOADER_DATA.loadType},d=o?o(c):"err";e[d]("Fetch Error",f)}throw i})}}}function E(e){if(!h()){var o=function(){for(var p=arguments.length,i=new Array(p),l=0;l<p;l++)i[l]=arguments[l];return!i.some(function(f){return typeof f=="string"&&f.includes("[KION METRIC]")})},r=function(p){return Array.from(p).map(function(i){if(typeof i=="string")return i;if(typeof i=="object"){if(i instanceof Error)return"ERROR "+i.name+": "+i.message+" "+i.stack;var l="";try{l=JSON.stringify(i)}catch(f){l=i.toString()}return l}else return i}).join(" ")},a=console.log;console.log=function(){a.apply(console,arguments),o.apply(void 0,arguments)&&e&&e.info(r(arguments),{loadType:window.LOADER_DATA&&window.LOADER_DATA.loadType})};var t=console.warn;console.warn=function(){t.apply(console,arguments),o.apply(void 0,arguments)&&e&&e.warning(r(arguments),{loadType:window.LOADER_DATA&&window.LOADER_DATA.loadType})};var n=console.error;console.error=function(){n.apply(console,arguments),o.apply(void 0,arguments)&&e&&e.err(r(arguments),{loadType:window.LOADER_DATA&&window.LOADER_DATA.loadType,trace:new Error().stack})};var u=console.info;console.info=function(){u.apply(console,arguments),o.apply(void 0,arguments)&&e&&e.info(r(arguments),{loadType:window.LOADER_DATA&&window.LOADER_DATA.loadType})}}}var v={"^https:\\/\\/([^\\/]+\\.)?telecid\\.ru":"notice"};function w(e){if(!e)return"err";for(var o in v)if(v.hasOwnProperty(o)){var r=new RegExp(o);if(r.test(e))return v[o]}return"err"}window.dataLayerKION=window.dataLayerKION||[];window.logDataLayerKION=window.logDataLayerKION||[];window.Logger=s;window.logger=new s({defaultLogLevel:"err",maxLogLength:1e3,handler:function(e,o,r,a){var t={};if(a&&typeof a=="object")for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n]);t.logLevel=e,t.message=o,window.logDataLayerKION.push(t)}});window._logLevel&&window.logger.setLogLevel(logLevel);A(window.logger,w);O(window.logger,w);E(window.logger);})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.