PageSourceSearch

https://www.bettom.com/chunk-D4MA7U4N-0d718619fd.js

js bettom.com collected 2026-09-30 18:13:52 UTC 5,831 bytes, 1 lines download raw bytes

1import{a as C}from"./chunk-T6EXKGY2-0d718619fd.js";import{a as q,b as d,c as P,d as j,e as U,f as V,g as N,h as k}from"./chunk-LJMDTJMY-0d718619fd.js";import{a as _}from"./chunk-X57RZRHZ-0d718619fd.js";import"./chunk-ZBRKOKDC-0d718619fd.js";import{b as O}from"./chunk-LTLRCGON-0d718619fd.js";import{a as w,c as z}from"./chunk-2G4QLF3B-0d718619fd.js";import{a as T,c as b}from"./chunk-T2YCWQKY-0d718619fd.js";import{a as R}from"./chunk-UOQWDWNV-0d718619fd.js";import"./chunk-FSWCFVNX-0d718619fd.js";import"./chunk-JSH3PFYE-0d718619fd.js";import"./chunk-YSY7J76D-0d718619fd.js";import{k as G,p as M,q as x,r as I}from"./chunk-BI2OUMOP-0d718619fd.js";import"./chunk-KTTPAWML-0d718619fd.js";import"./chunk-IIET3LBA-0d718619fd.js";import"./chunk-T76KE36H-0d718619fd.js";import{a as L}from"./chunk-QU7MDXGQ-0d718619fd.js";import{C as B,L as H,M as E,l as v,w as c}from"./chunk-MRJZQG62-0d718619fd.js";import{a as u,b as S}from"./chunk-HU6DUUP4-0d718619fd.js";function D({body:t,query:s}={}){if(!(!t&&!s))try{let e=Y(K(t));if(e)return e;let o=J(Z(s));if(o)return o}catch{}}function J(t){if(typeof t!="object"||!t.query||typeof t.query!="string")return;let s=t.query.trim().match(/^(query|mutation|subscription)\s?(\w*)/),e=s?.[1];return e?{operationName:t.operationName||s?.[2]||"Anonymous",operationType:e,operationFramework:"GraphQL"}:void 0}function Y(t){if(!t)return;Array.isArray(t)||(t=[t]);let s=[],e=[];for(let o of t){let a=J(o);a&&(s.push(a.operationName),e.push(a.operationType))}if(e.length)return{operationName:s.join(","),operationType:e.join(","),operationFramework:"GraphQL"}}function K(t){let s;if(!t||typeof t!="string"&&typeof t!="object"||(typeof t=="string"?s=JSON.parse(t):s=t,!C(s)&&!Array.isArray(s)))return;let e=!1;if(Array.isArray(s)?e=s.some(o=>F(o)):e=F(s),!!e)return s}function Z(t){if(!t||typeof t!="string")return;let s=new URLSearchParams(t);return K(Object.fromEntries(s))}function F(t){return!(typeof t!="object"||!t.query||typeof t.query!="string")}function X(t){return Array.isArray(t?.errors)&&t.errors.some(s=>s&&typeof s=="object"&&typeof s.message=="string")}function W(t){if(!t)return!1;try{let s=t;return typeof t=="string"&&(s=JSON.parse(t)),Array.isArray(s)?s.some(X):X(s)}catch{return!1}}var me=(()=>{class t extends _{static featureName=T;constructor(e){super(e,T),z(e.runtime.denyList);let o=this;this.obfuscator=new O(e,R.AJAX),e.init.ajax.block_internal?super.customAttributesAreSeparate=!0:super.canHarvestEarly=!1,L("returnAjax",a=>this.events.add(a),this.featureName,this.ee),L("xhr",function(a,f,h,p,i,r){o.storeXhr(a,f,h,p,i,r,this)},this.featureName,this.ee),this.ee.on("long-task",(a,f)=>{if(f instanceof B().o.XHR){let h=this.ee.context(f);h.latestLongtaskEnd=a.end}}),this.waitForFlags([]).then(()=>this.drain())}storeXhr(e,o,a,f,h,p,i){o.time=a;let r;e.cat?r=E([e.status,e.cat]):r=E([e.status,e.host,e.pathname]);let m=w(e),l=this.agentRef.init.feature_flags?.includes("ajax_metrics_deny_list");if(this.agentRef.features?.[c.jserrors]&&(m||!l)&&this.agentRef.sharedAggregator?.add(["xhr",r,e,o]),!m){e.hostname===this.agentRef.info.errorBeacon||this.agentRef.init.proxy?.beacon&&e.hostname===this.agentRef.init.proxy.beacon?(this.reportSupportabilityMetric("Ajax/Events/Excluded/Agent"),l&&this.reportSupportabilityMetric("Ajax/Metrics/Excluded/Agent")):(this.reportSupportabilityMetric("Ajax/Events/Excluded/App"),l&&this.reportSupportabilityMetric("Ajax/Metrics/Excluded/App"));return}H("bstXhrAgg",["xhr",r,e,o],void 0,c.sessionTrace,this.ee);let n={method:e.method,status:e.status,domain:e.host,path:e.pathname,requestSize:o.txSize,responseSize:o.rxSize,type:h,startTime:a,endTime:f,callbackDuration:o.cbTime,[b]:v()};n.gql=D({body:i.requestBody,query:i.parsedOrigin?.search}),n.gql&&(n.gql.operationHasErrors=W(i.responseBody));let g=this.agentRef.init.ajax.capture_payloads;U(g,{statusCode:n.status,hasGQLErrors:n.gql?.operationHasErrors,payloadHostname:e.hostname,payloadHost:e.host,payloadPathname:e.pathname},this.agentRef.beacons)&&(n.requestQuery=V(i.parsedOrigin?.search),n.requestHeaders=i.requestHeaders,n.responseHeaders=i.responseHeaders,N(i.requestHeaders,i.requestBody)&&(n.requestBody=i.requestBody),N(i.responseHeaders,i.responseBody)&&(n.responseBody=i.responseBody)),i.dt&&(n.spanId=i.dt.spanId,n.traceId=i.dt.traceId,n.spanTimestamp=Math.floor(this.agentRef.runtime.timeKeeper.correctAbsoluteTimestamp(i.dt.timestamp))),n.gql&&this.reportSupportabilityMetric("Ajax/Events/GraphQL/Bytes-Added",E(n.gql).length),G(p)?(this.events.add(S(u({},n),{targetAttributes:M(p,this)})),I(p,this)&&this.reportContainerEvent(S(u({},n),{targetAttributes:x(p,this)}
1),i)):this.reportContainerEvent(n,i)}reportContainerEvent(e,o){!!this.agentRef.features?.[c.softNav]?H("ajax",[e,o],void 0,c.softNav,this.ee):this.events.add(e)}serializer(e){if(!e.length)return;let{addString:o,addStringRaw:a,addStringWithTruncation:f}=k(P,this.obfuscator),h="bel.7;",p=0;for(let i=0;i<e.length;i++){let r=e[i],m=r.startTime-p;i===0&&(p=r.startTime);let l=[d(m),d(r.endTime-r.startTime),d(0),d(0),a(r.method),d(r.status),o(r.domain),o(r.path),d(r.requestSize),d(r.responseSize),r.type==="fetch"?1:"",a(0),q(r.spanId,a,!0)+q(r.traceId,a,!0)+q(r.spanTimestamp,d,!1)],y="2,",n=this.agentRef.info.jsAttributes,g=j(u(u(u({},n||{}),r.targetAttributes||{}),r.gql||{}),{addKey:a,addVal:o});g.push(...j({[b]:r[b]},{addKey:a,addVal:a}));let Q=j(u(u(u(u(u({},r.requestBody?{requestBody:r.requestBody}:{}),r.requestHeaders?{requestHeaders:r.requestHeaders}:{}),r.requestQuery?{requestQuery:r.requestQuery}:{}),r.responseBody?{responseBody:r.responseBody}:{}),r.responseHeaders?{responseHeaders:r.responseHeaders}:{}),{addKey:a,addVal:f}),A=[...g,...Q];l.unshift(d(A.length)),y+=l.join(","),A&&A.length>0&&(y+=";"+A.join(";")),i+1<e.length&&(y+=";"),h+=y}return h}}return t})();export{me as Aggregate};

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.