PageSourceSearch

https://next-cdn.studying.jp/_next/static/chunks/jserrors-aggregate.997fe087df9d865a.js

js studying.jp collected 2026-10-02 03:17:15 UTC 6,872 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1317],{3002:function(e,t,r){r.d(t,{R:function(){return function e(t,r,s="string",n=[]){return t&&"object"==typeof t&&Object.keys(t).forEach(a=>{"object"==typeof t[a]?e(t[a],r,s,n):typeof t[a]!==s||n.includes(a)||(t[a]=r(t[a]))}),t}}})},90961:function(e,t,r){r.r(t),r.d(t,{Aggregate:function(){return N}});let s=/([a-z0-9]+)$/i;var n=/^\n+|\n+$/g,a=r(89873),i=r(9613);function o(e){if("string"!=typeof e)return"";let t=(0,i.f)(e);return t===(0,i.f)(a.FN)?"<inline>":t}var c=/function (.+?)\s*\(/,u=/^\s*at (?:((?:\[object object\])?(?:[^(]*\([^)]*\))*[^()]*(?: \[as \S+\])?) )?\(?((?:file|http|https|chrome-extension):.*?)?:(\d+)(?::(\d+))?\)?\s*$/i,l=/^\s*(?:(\S*|global code)(?:\(.*?\))?@)?((?:file|http|https|chrome|safari-extension).*?):(\d+)(?::(\d+))?\s*$/i,f=/^\s*at .+ \(eval at \S+ \((?:(?:file|http|https):[^)]+)?\)(?:, [^:]*:\d+:\d+)?\)$/i,h=/^\s*at Function code \(Function code:\d+:\d+\)\s*/i;function m(e){var t,r=null;try{if(r=function(e){if(!e.stack)return null;var t=e.stack.split("\n").reduce(g,{frames:[],stackLines:[],wrapperSeen:!1});return t.frames.length?{mode:"stack",name:e.name||d(e),message:e.message,stackString:(function(e){var t;if(e.length>100){var r=e.length-100;t=e.slice(0,50).join("\n")+"\n< ...truncated "+r+" lines... >\n"+e.slice(-50).join("\n")}else t=e.join("\n");return t})(t.stackLines).replace(n,""),frames:t.frames}:null}(e))return r}catch(e){}try{if(r=function(e){if(!("line"in e))return null;var t=e.name||d(e);if(!e.sourceURL)return{mode:"sourceline",name:t,message:e.message,stackString:t+": "+e.message+"\n    in evaluated code",frames:[{func:"evaluated code"}]};var r=o(e.sourceURL),s=t+": "+e.message+"\n    at "+r;return e.line&&(s+=":"+e.line,e.column&&(s+=":"+e.column)),{mode:"sourceline",name:t,message:e.message,stackString:s,frames:[{url:r,line:e.line,column:e.column}]}}(e))return r}catch(e){}try{if(r=(t=e.name||d(e))?{mode:"nameonly",name:t,message:e.message,stackString:t+": "+e.message,frames:[]}:null)return r}catch(e){}return{mode:"failed",stackString:"",frames:[]}}function g(e,t){var r,s,n;let a=((s=(r=t).match(l))||(s=r.match(u)),s)?{url:s[2],func:"Anonymous function"!==s[1]&&"global code"!==s[1]&&s[1]||null,line:+s[3],column:s[4]?+s[4]:null}:r.match(f)||r.match(h)||"anonymous"===r?{func:"evaluated code"}:void 0;if(!a)return e.stackLines.push(t),e;if((n=a.func)&&n.indexOf("nrWrapper")>=0&&(e.wrapperSeen=!0),!e.wrapperSeen){let r=o(a.url);r!==a.url&&(t=t.replace(a.url,r),a.url=r),e.stackLines.push(t),e.frames.push(a)}return e}function d(e){var t=c.exec(String(e.constructor));return t&&t.length>1?t[1]:"unknown"}function p(e){var t=0;if(!e||!e.length)return t;for(var r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r)|0;return t}var v=r(55729),k=r(45765),b=r(88203),w=r(78650),y=r(67823),S=r(95147),R=r(7215),_=r(3002);let I="Rrweb",j="Security-Policy";var E=r(82190);class N extends S.m{static featureName=w.t;constructor(e){super(e,w.t),this.harvestOpts.aggregatorTypes=["err","ierr","xhr"],this.stackReported={},this.observedAt={},this.pageviewReported={},this.errorOnPage=!1,(0,v.X)("err",(...e)=>this.storeError(...e),this.featureName,this.ee),(0,v.X)("ierr",(...e)=>this.storeError(...e),this.featureName,this.ee),(0,v.X)("returnJserror",(e,t)=>this.#e(e,t),this.featureName,this.ee),this.waitForFlags(["err"]).then(([e])=>{e?this.drain():(this.blocked=!0,this.deregisterDrain())})}serializer(e){return(0,_.R)(e,this.obfuscator.obfuscateString.bind(this.obfuscator),"string")}queryStringsBuilder(e){let t={},r=(0,k.P)(this.agentRef.runtime.releaseIds);return"{}"!==r&&(t.ri=r),e?.err?.length&&(this.errorOnPage||(t.pve="1",this.errorOnPage=!0),this.agentRef.features?.[y.DT.sessionReplay]?.featAggregate?.replayIsActive()||e.err.forEach(e=>delete e.params.hasReplay)),t}buildCanonicalStackString(e){for(var t="",r=0;r<e.frames.length;r++){var n=e.frames[r],a=function(e){if(!e)return;let t=e.match(s);if(t)return t[1]}(n.func);t&&(t+="\n"),a&&(t+=a+"@"),"string"==typeof n.url&&(t+=n.url),n.line&&(t+=":"+n.line)}return t}storeError(e,t,r,s,n,i,o){let c;if(!e||(t=t||(0,R.z)(),!r&&this.agentRef.runtime.onerror&&(c=this.agentRef.runtime.onerror(e))&&!("string"==typeof c.group&&c.group.length)))return;var u,l=m(e);let{shouldSwallow:f,reason:h}=function(e,t,r){let s={shouldSwallow:t||!1,reason:r||"Other"},n=e.frames?.[0];if(!n||"string"!=typeof e?.message)return s;let a=n?.url?.match(/nr-(.*)-recorder.min.js/),i=n?.url?.match(/rrweb/),o=n?.url?.match(/recorder/),c=e.message.toLowerCase().match(/an attempt was made to break through the security policy of the user agent/);return a||i?(s.shouldSwallow=!0,s.reason=I,c&&(s.reason+="-"+j)):o&&c&&(s.shouldSwallow=!0,s.reason=I+"-"+j),s}(l,r,i);if(f){this.reportSupportabilityMetric("Internal/Error/"+h);return}var g=this.buildCanonicalStackString(l);let d=function(e){let t="";if(!e?.cause)return t;if(e.cause instanceof Error){let r=m(e.cause);t=r.stackString||e.cause.stack,r.message&&!t.includes(r.message)&&(t=r.message+"\n"+t),r.name&&!t.includes(r.name)&&(t=r.name+": "+t)}else t="string"==typeof e.cause?e.cause:(0,k.P)(e.cause);return t||e.cause.toString()}(e),v={stackHash:p(g),exceptionClass:l.name,request_uri:a._A?.location.pathname,...d&&{cause:d}};l.message&&(v.message=""+l.message),c?.group&&(v.errorGroup=c.group),n&&!o&&(v.hasReplay=n);var w=p("".concat(l.name,"_").concat(l.message,"_").concat(l.stackString,"_").concat(v.hasReplay?1:0,"_").concat(o?.id||"container"));this.stackReported[w]?v.browser_stack_hash=p(l.stackString):(this.stackReported[w]=!0,v.stack_trace=(u=l.stackString).length>65530?u.substr(0,65530):u,this.observedAt[w]=Math.floor(this.agentRef.runtime.timeKeeper.correctRelativeTimestamp(t))),v.releaseIds=(0,k.P)(this.agentRef.runtime.releaseIds),this.pageviewReported[w]||(v.pageview=1,this.pageviewReported[w]=!0),v.firstOccurrenceTimestamp=this.observedAt[w],v.timestamp=Math.floor(this.agentRef.runtime.timeKeeper.correctRelativeTimestamp(t));let S=["err",w,v,{time:t},s];o||(0,b.p)("trace-jserror",S,void 0,y.DT.sessionTrace,this.ee),!this.blocked&&(e.__newrelic?.[this.agentIdentifier]&&(v._interactionId=e.__newrelic[this.agentIdentifier].interactionId,v._interactionNodeId=e.__newrelic[this.agentIdentifier].interactionNodeId),e.__newrelic?.socketId&&(s.socketId=e.__newrelic.socketId),o||(this.agentRef.features?.[y.DT.softNav]?(0,b.p)("jserror",[S],void 0,y.DT.softNav,this.ee):this.#e(S,!1)),o&&this.#e([...S,o],!1,v._softNavAttributes))}#e(e,t={}){let[r,s,n,a,i,o]=e,c={...(0,E.w)(o,this)};
1Object.entries(this.agentRef.info.jsAttributes).forEach(([e,t])=>l(e,t)),Object.entries(t).forEach(([e,t])=>l(e,t)),n.browserInteractionId&&(s+=n.browserInteractionId),i&&Object.entries(i).forEach(([e,t])=>l(e,t));let u=s+":"+p((0,k.P)(c));function l(e,t){c[e]=t&&"object"==typeof t?(0,k.P)(t):t}this.events.add([r,u,n,a,c])}}}}]);

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.