1 line
14 KiB
Plaintext
1 line
14 KiB
Plaintext
|
!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},r.apply(this,arguments)};t.__esModule=!0;var i=n(1),o=n(2),a=n(3),c=n(4);!function(){function e(e){var t="";if(t=window.location.origin?window.location.origin:window.location.protocol+"://"+window.location.host,e&&"string"==typeof e)if(0===e.indexOf("/"))t+=e;else try{var n=new URL(e);return n.protocol+"://"+n.host+n.pathname}catch(e){}else{var r=window.location.pathname;r&&r.length>0&&(t+=r)}return t}function t(e){if("function"==typeof performance.getEntriesByType){var t=performance.getEntriesByType("paint").filter(function(t){return t.name===e})[0];return t?t.startTime:0}return 0}function n(){var e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);if(!e)return!1;var t=parseInt(e[2],10),n=navigator.connection;return t>=55&&!!n&&"cellular"===n.type&&n.downlinkMax<=.115}function s(e){return null==e?void 0:Math.round(1e3*e)/1e3}function u(e,t){for(var n in e){var r=e[n];void 0===t||"number"!=typeof r&&"string"!=typeof r||(t[n]=r)}}!function(){function f(){var t=l.timing,n="";try{n="function"==typeof l.getEntriesByType?new URL(l.getEntriesByType("navigation")[0].name).pathname:b?new URL(b).pathname:window.location.pathname}catch(e){}var r={referrer:document.referrer||"",eventType:i.EventType.WebVitalsV2,lcp:{value:-1,path:void 0},cls:{value:-1,path:void 0},fid:{value:-1,path:void 0},si:g?g.si:0,versions:{js:"2021.12.0"},pageloadId:v,location:e(),landingPath:n,startTime:l.timeOrigin||(t?t.navigationStart:0)};return g&&(g.version&&(r.versions.fl=g.version),g.icTag&&(r.icTag=g.icTag),r.siteToken=g.token),C&&(r.lcp=C.lcp&&void 0!==C.lcp.value?C.lcp:r.lcp,r.fid=C.fid&&void 0!==C.fid.value?C.fid:r.fid,r.cls=C.cls&&void 0!==C.cls.value?C.cls:r.cls),r}function d(r){var o=l.timing,a=l.memory,c=r||e(),f=document.referrer||"",d=m[2]||m[1]||m[0],p={memory:{},timings:{},resources:[],tempResources:[],referrer:k&&R&&d?d.url:f,documentWriteIntervention:!1,errorCount:0,eventType:i.EventType.Load,firstPaint:0,firstContentfulPaint:0,si:g?g.si:0,startTime:l.timeOrigin||(o?o.navigationStart:0),versions:{fl:g?g.version:"",js:"2021.12.0",timings:1},pageloadId:v,location:c};if(void 0==E){if("function"==typeof l.getEntriesByType){var y=l.getEntriesByType("navigation");y&&Array.isArray(y)&&y.length>0&&(p.timingsV2={},p.versions.timings=2,delete p.timings,u(y[0],p.timingsV2))}1===p.versions.timings&&u(o,p.timings),u(a,p.memory)}if(p.documentWriteIntervention=n(),p.firstPaint=t("first-paint"),p.firstContentfulPaint=t("first-contentful-paint"),p.errorCount=window.__cfErrCount||0,g&&(g.icTag&&(p.icTag=g.icTag),p.siteToken=g.token,R=!0),"function"==typeof l.getEntriesByType){var h=l.getEntriesByType("resource"),w=0,T=0;h.forEach(function(e){var t={n:e.name,s:s(e.startTime),d:s(e.duration),i:e.initiatorType,p:e.nextHopProtocol,rs:s(e.redirectStart),re:s(e.redirectEnd),fs:s(e.fetchStart),ds:s(e.domainLookupStart),de:s(e.domainLookupEnd),cs:s(e.connectStart),ce:s(e.connectEnd),qs:s(e.requestStart),ps:s(e.responseStart),pe:s(e.responseEnd),ws:s(e.workerStart),ss:s(e.secureConnectionStart),ts:e.transferSize,ec:e.encodedBodySize,dc:e.decodedBodySize};p.tempResources&&void 0===p.tempResources[T]&&(p.tempResources[T]=[]);var n=JSON.stringify(t).length;w+n<62e3&&p.tempResources?(w+=n,p.tempResources[T].push(t)):(T++,w=0)})}return JSON.stringify(p).length>=64e3&&(p.resources=[]),void 0!==E&&(delete p.timings,delete p.memory,delete p.errorCount,delete p.documentWriteInterv
|