PageSourceSearch

https://www.0876kk.com/assets/theme-0/stats-points.impl.CT2t72rG.js

js 0876kk.com collected 2026-10-09 04:37:31 UTC 2,772 bytes, 11 lines download raw bytes

1const __vite__fileDeps=["assets/theme-0/commonChunk.B9nih3pK.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
2import{_ as b}from"./vendorChunk.96TTY5fG.js";import{a3 as x,em as $,pv as D,a1 as O,pw as h,a8 as S}from"./commonChunk.CbHrP2ip.js";import{P,A as y}from"../vendors/vendor-stable.CbjAnMzp.js";class v{static log(t,...i){x.info(`stats@${t}`,...i)}static enable(){return $.getInstances()[D.Sensors]}static debug(){return O()["mock.statsPoints"]}static initial(t){var o;const i=(o=h.get("statsPoints"))!=null?o:{};i[t]=[],h.set("statsPoints",i)}static get(t){var i;return(i=h.get("statsPoints"))==null?void 0:i[t]}static set(t,i){var r;const o=this.get(t),g={date:Date.now(),action:i},a=o?[...o,g]:[g],c=(r=h.get("statsPoints"))!=null?r:{};h.set("statsPoints",{...c,[t]:a})}static stats(t,i){i==="start"&&this.initial(t),this.set(t,i)}static checkActionName(t,i){let o=0;const[g,a]=t.split("_");return a&&(o=+a),i[t]?(o++,this.checkActionName(`${g}_${o}`,i)):t}static payload(t,i,o){var g;try{if(!this.enable())return this.log(t,"disabled"),{};const a=(g=this.get(t))!=null?g:[],c=a.shift(),r=a.pop();if(!c||!r)return this.log(t,"invalid","first",c,"last",r),{};if(!a.length)return this.log(t,"invalid","not sources",a),{};if(a.length%2!==0)return this.log(t,"invalid","illegal source length",a),{};if(!c.date||!r.date)return this.log(t,"invalid","illegal first or last",c,r),{};if(c.action!=="start"||r.action!=="end")return this.log(t,"invalid","illegal first or last",c,r),{};const u=r.date-c.date;if(u<=0)return this.log(t,"invalid","illegal date",c,r),{};const d=[];for(let s=0;s<a.length;s+=2){const[e,l]=[a[s],a[s+1]];if(e.action!==l.action)return this.log(t,"invalid","illegal sources",[e,l],a),{};d.push({date:[e.date,l.date],action:e.action})}const n={statsTotalTime:u},p=[];let f=0;for(const s of d){const e=this.checkActionName(s.action,n),l=s.date[1]-s.date[0];if(l<0)return this.log(t,"invalid","illegal group",s,a),{};f+=l,n[e]=l,p.push([s.action,l])}const m=p.map(([s,e])=>`${s}: ${e}`).join(" -> "),_=Object.keys(n).map(s=>`${s}: ${n[s]}`).join(`\r
3`);if(this.debug()){let s="";s+=m,s+=`\r
4\r
5 ------------- \r
6\r
7`,s+=_,s+=`\r
8\r
9 ------------- \r
10\r
11`,s+=`statsOtherTime: ${u-f}`,S(()=>b(()=>import("./commonChunk.CbHrP2ip.js").then(e=>e.wK),__vite__mapDeps([0])))().then(e=>{var l;(l=e.Dialog)!=null&&l.showDialog&&e.Dialog.showDialog({message:s,overlayStyle:{zIndex:99999},closeOnRouteChange:!1})})}if(this.log(t,"stats",a,d,n,p),n.statsSteps=m,n.statsOtherTime=u-f,i==="include"){if(!(o!=null&&o.length))return[];const s={};return o.forEach(e=>P(s,e,y(n,e))),s}if(i==="exclude"){if(!(o!=null&&o.length))return n;const s=n;return o.forEach(e=>P(s,e,void 0)),s}return n}catch(a){return this.log(t,"error",a),{}}}}export{v as StatsPoints};

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.