PageSourceSearch

https://www.fancode.com/fc-web-app/1789129030736/build/mobile/clie…-aggregate.mobile.eddc3732df2a6484.chunk.js

js fancode.com collected 2026-09-24 09:34:33 UTC 10,238 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_fancode_web_app=self.webpackChunk_fancode_web_app||[]).push([["932"],{84149:function(e,t,r){r.d(t,{u:()=>i});function i(e){return!!e&&e.self!==e.top}},61777:function(e,t,r){r.d(t,{B:()=>i});class i{constructor(e,t){if(!e.onEnd)throw Error("onEnd handler is required");if(!t)throw Error("ms duration is required");this.onEnd=e.onEnd,this.initialMs=t,this.startTimestamp=Date.now(),this.timer=this.create(this.onEnd,t)}create(e,t){return this.timer&&this.clear(),setTimeout(()=>e?e():this.onEnd(),t||this.initialMs)}clear(){clearTimeout(this.timer),this.timer=null}end(){this.clear(),this.onEnd()}isValid(){return this.initialMs-(Date.now()-this.startTimestamp)>0}}},23267:function(e,t,r){r.d(t,{S:()=>i});function i(e){return e?.constructor===({}).constructor}},35811:function(e,t,r){r.r(t),r.d(t,{Aggregate:()=>b});var i=r(15188),s=r(17200),a=r(8347),n=r(69039),o=r(53777),c=r(47543),l=r(40931),h=r(10565),u=r(4393),d=r(69288);let p=(e,t=[],r)=>{let i=[],s={path:void 0,nearestFields:{},get targets(){return i.length?i:[void 0]},hasButton:!1,hasLink:!1};if(!e)return s;if(e===window)return s.path="window",s;if(e===document)return s.path="document",s;let a="",n=function(e){try{let t=1,{tagName:r}=e;for(;e.previousElementSibling;)e.previousElementSibling.tagName===r&&t++,e=e.previousElementSibling;return t}catch(e){}}(e);try{for(;e?.tagName;){let n=e.tagName.toLowerCase();s.hasLink||="a"===n,s.hasButton||="button"===n||"input"===n&&"button"===e.type.toLowerCase(),t.forEach(t=>{var r;s.nearestFields[r=t,"tagName"===r&&(r="tag"),"className"===r&&(r="class"),"nearest".concat(r.charAt(0).toUpperCase()+r.slice(1))]||=e[t]?.baseVal||e[t]});let o=e?.dataset;o.nrMfeId&&i.push(...(0,d.OD)(o.nrMfeId,r)),a=function(e,t){let{id:r,localName:i}=e;return[i,r?"#".concat(r):"",t?">".concat(t):""].join("")}(e,a),e=e.parentNode}}catch(e){}return s.path=a?n?"".concat(a,":nth-of-type(").concat(n,")"):a:void 0,s};class g{constructor(e,t){this.event=e,this.count=1,this.originMs=Math.floor(e.timeStamp),this.relativeMs=[0],this.selectorPath=t.path,this.rageClick=void 0,this.nearestTargetFields=t.nearestFields,this.currentUrl=(0,s.f)(""+location),this.deadClick=!1,this.errorClick=!1,this.targets=t.targets}aggregate(e){this.count++,this.relativeMs.push(Math.floor(e.timeStamp-this.originMs)),this.isRageClick()&&(this.rageClick=!0)}isRageClick(){let e=this.relativeMs.length;return"click"===this.event.type&&e>=a.lj&&this.relativeMs[e-1]-this.relativeMs[e-a.lj]<a.LV}}var m=r(61777),f=r(61187);class v{#e=void 0;#t="";#r=void 0;#i=void 0;#s=void 0;constructor(e){this.agentRef=e,(0,f.mF)().o.MO&&(this.#i=new MutationObserver(this.isLiveClick.bind(this)))}get aggregationEvent(){let e=this.#e;return this.#t="",this.#e=void 0,e}process(e,t){var r,i;let s;if(!e)return;let n=p(a.jC.includes(e.type)?window:e.target,t,this.agentRef),o=(r=e,i=n.path,s=r.type,"scrollend"!==r.type&&(s+="-"+i),s);if(o&&o===this.#t)this.#e.aggregate(e);else{let t=this.#e;return this.#a(),this.#n(),this.#t=o,this.#e=new g(e,n),"click"===e.type&&(n.hasButton||n.hasLink)&&(this.#o(this.#e),this.#c()),t}}markAsErrorClick(){this.#e&&this.#s&&(this.#e.errorClick=!0,this.#n())}#c(){this.#s=new m.B({onEnd:()=>{this.#n()}},a.Z8)}#n(){this.#s?.clear(),this.#s=void 0}#o(e){!this.#l()&&this.#i&&(this.#i.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),this.#r=new m.B({onEnd:()=>{e.deadClick=!0,this.#a()}},a.Z8))}#a(){this.#i?.disconnect(),this.#r?.clear(),this.#r=void 0}#l(){return void 0!==this.#r}isLiveClick(){this.#l()&&this.#a()}}var k=r(84149),C=r(23267),E=r(51530);class b extends o.m{static featureName=a.t9;#h;constructor(e){super(e,a.t9),this.referrerUrl=n.il&&document.referrer?(0,s.f)(document.referrer):void 0,this.obfuscator=new u.R(e),this.waitForFlags(["ins"]).then(([t])=>{if(!t){this.blocked=!0,this.deregisterDrain();return}this.#u(),(0,h.X)("api-recordCustomEvent",(e,t,r,i)=>{if(a.J2.includes(t))return(0,c.Z)(46);this.addEvent({eventType:t,timestamp:this.#d(e),...r},i)},this.featureName,this.ee),e.init.page_action.enabled&&(0,h.X)("api-addPageAction",(e,t,r,i
1)=>{this.addEvent({...r,eventType:E.E.PA,timestamp:this.#d(e),timeSinceLoad:e/1e3,actionName:t,referrerUrl:this.referrerUrl,...n.il&&{browserWidth:window.document.documentElement?.clientWidth,browserHeight:window.document.documentElement?.clientHeight}},i)},this.featureName,this.ee);let r=()=>{};n.il&&e.init.user_actions.enabled&&(this.#h=new v(this.agentRef),this.harvestOpts.beforeUnload=()=>r?.(this.#h.aggregationEvent),r=e=>{try{if(e?.event){let{target:t,timeStamp:r,type:i}=e.event;e.targets.forEach(s=>{let a={eventType:E.E.UA,timestamp:this.#d(r),action:i,actionCount:e.count,actionDuration:e.relativeMs[e.relativeMs.length-1],actionMs:e.relativeMs,rageClick:e.rageClick,target:e.selectorPath,currentUrl:e.currentUrl,...(0,k.u)(window)&&{iframe:!0},...this.agentRef.init.user_actions.elementAttributes.reduce((r,i)=>{var s,a;return s=i,"window"!==e.selectorPath&&"document"!==e.selectorPath&&t instanceof HTMLElement&&t?.[s]&&(r[a=i,"tagName"===a&&(a="tag"),"className"===a&&(a="class"),"target".concat(a.charAt(0).toUpperCase()+a.slice(1))]=String(t[i]).trim().slice(0,128)),r},{}),...e.nearestTargetFields,...e.deadClick&&{deadClick:!0},...e.errorClick&&{errorClick:!0}};this.addEvent(a,s),this.#p(a)})}}catch(e){}},(0,h.X)("ua",e=>{r(this.#h.process(e,this.agentRef.init.user_actions.elementAttributes))},this.featureName,this.ee),(0,h.X)("navChange",()=>{this.#h.isLiveClick()},this.featureName,this.ee),(0,h.X)("uaXhr",()=>{this.#h.isLiveClick()},this.featureName,this.ee),(0,h.X)("uaErr",()=>this.#h.markAsErrorClick(),this.featureName,this.ee));let o=[...e.init.performance.capture_marks?["mark"]:[],...e.init.performance.capture_measures?["measure"]:[]];if(o.length)try{o.forEach(t=>{PerformanceObserver.supportedEntryTypes.includes(t)&&new PerformanceObserver(r=>{r.getEntries().forEach(r=>{try{var i;this.reportSupportabilityMetric("Generic/Performance/"+t+"/Seen");let s=e.init.performance.capture_detail?(i=r.detail,null==i?{}:(0,C.S)(i)?function e(t,r="entryDetail"){let i={};return null==t||Object.keys(t).forEach(s=>{let a=r+"."+s;(0,C.S)(t[s])?Object.assign(i,e(t[s],a)):null!==t[s]&&void 0!==t[s]&&(i[a]=t[s])}),i}(i):{entryDetail:i}):{};this.addEvent({...s,eventType:E.E.BP,timestamp:this.#d(r.startTime),entryName:r.name,entryDuration:r.duration,entryType:t})}catch(e){}})}).observe({buffered:!0,type:t})})}catch(e){}n.il&&e.init.performance.resources.enabled&&(0,h.X)("browserPerformance.resource",t=>{try{let{name:r,duration:i,...a}=t.toJSON(),o=!1;try{let t=new URL(r).hostname,i=t.includes("newrelic.com")||t.includes("nr-data.net")||t.includes("nr-local.net");if(this.agentRef.init.performance.resources.ignore_newrelic&&i||this.agentRef.init.performance.resources.asset_types.length&&!this.agentRef.init.performance.resources.asset_types.includes(a.initiatorType))return;(o=t===n._A?.location.hostname||e.init.performance.resources.first_party_domains.includes(t))&&this.reportSupportabilityMetric("Generic/Performance/FirstPartyResource/Seen"),i&&this.reportSupportabilityMetric("Generic/Performance/NrResource/Seen")}catch(e){}this.reportSupportabilityMetric("Generic/Performance/Resource/Seen");let c={...a,eventType:E.E.BP,timestamp:this.#d(a.startTime),entryName:(0,s.f)(r),entryDuration:i,firstParty:o};this.addEvent(c)}catch(e){this.ee.emit("internal-error",[e,"GenericEvents-Resource"])}},this.featureName,this.ee),(0,h.X)("api-measure",(e,t,r)=>{let{start:i,duration:s,customAttributes:a}=e,n={...a,eventType:E.E.BP,timestamp:this.#d(i),entryName:t,entryDuration:s,entryType:"measure"};this.addEvent(n,r)},this.featureName,this.ee),(e.init.feature_flags.includes("websockets")||e.init.web_sockets?.enabled)&&(0,h.X)("ws-complete",(e,t=[void 0])=>{t.forEach(t=>{let r={...e,eventType:E.E.WS,timestamp:this.#d(e.timestamp),openedAt:this.#d(e.openedAt),closedAt:this.#d(e.closedAt)};this.reportSupportabilityMetric("WebSocket/Completed/Seen"),this.reportSupportabilityMetric("WebSocket/Completed/Bytes",(0,i.P)(r).length),this.addEvent(r,t)})},this.featureName,this.ee),e.init.feature_flags.includes("no_spv")||(0,h.X)("spv",e=>{this.addEvent({eventType:E.E.SPV,timestamp:this.#d(e.timeStamp),blockedUri:e.blockedURI,documentUri:e.documentURI,effectiveDirective:e.effectiveDirective,originalPolicy:e.originalPolicy,sourceFile:e.sourceFile,statusCode:e.statusCode,lineNumber:e.lineNumber,columnNumber:e.columnNumber,dis
1position:e.disposition,sample:e.sample,referrer:e.referrer})},this.featureName,this.ee),this.drain()})}addEvent(e={},t){if(!e||!Object.keys(e).length)return;if(!e.eventType)return void(0,c.Z)(44);for(let t in e){let r=e[t];e[t]=r&&"object"==typeof r?(0,i.P)(r):r}let r={timestamp:this.#d((0,l.z)()),pageUrl:(0,s.f)(""+n.FN),currentUrl:(0,s.f)(""+location)},a={...this.agentRef.info.jsAttributes||{},...r,...e};this.events.add({...a,...(0,d.wl)(t,this)}),(0,d.md)(t,this)&&this.addEvent({...a,...(0,d.Bp)(t,this)})}serializer(e){return this.obfuscator.traverseAndObfuscateEvents({ins:e})}queryStringsBuilder(){return{ua:this.agentRef.info.userAttributes,at:this.agentRef.info.atts}}#d(e){return Math.floor(this.agentRef.runtime.timeKeeper.correctRelativeTimestamp(e))}#u(){let e="Config/Performance/";this.agentRef.init.performance.capture_marks&&this.reportSupportabilityMetric(e+"CaptureMarks/Enabled"),this.agentRef.init.performance.capture_measures&&this.reportSupportabilityMetric(e+"CaptureMeasures/Enabled"),this.agentRef.init.performance.resources.enabled&&this.reportSupportabilityMetric(e+"Resources/Enabled"),this.agentRef.init.performance.resources.asset_types?.length!==0&&this.reportSupportabilityMetric(e+"Resources/AssetTypes/Changed"),this.agentRef.init.performance.resources.first_party_domains?.length!==0&&this.reportSupportabilityMetric(e+"Resources/FirstPartyDomains/Changed"),!1===this.agentRef.init.performance.resources.ignore_newrelic&&this.reportSupportabilityMetric(e+"Resources/IgnoreNewrelic/Changed")}#p(e){e.rageClick&&this.reportSupportabilityMetric("UserAction/RageClick/Seen"),e.deadClick&&this.reportSupportabilityMetric("UserAction/DeadClick/Seen"),e.errorClick&&this.reportSupportabilityMetric("UserAction/ErrorClick/Seen")}}}}]);

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.