PageSourceSearch

https://next-cdn.studying.jp/_next/static/chunks/5147.7584267c922e6b4d.js

js studying.jp collected 2026-10-02 03:17:39 UTC 13,745 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5147],{89249:function(e,t,r){r.d(t,{f:function(){return R},l:function(){return x}});var s=r(29317),i=r(67823),a=r(32265),n=r(89873),o=r(88203),u=r(57240),c=r(7215),h=r(20841);if(n.v6){n._A.cleanupTasks=[];let e=n._A.close;n._A.close=()=>{for(let e of n._A.cleanupTasks)e();e()}}var f=r(9613),l=r(87528),g=r(89965),d=r(45765),p=r(38264),v=r(38075),m=r(78758);let y="Harvester/Retry/",b=y+"Attempted/",w=y+"Failed/",k=y+"Succeeded/";class R{#e=!1;initializedAggregates=[];constructor(e){var t;this.agentRef=e,t=()=>{this.initializedAggregates.forEach(e=>{"function"==typeof e.harvestOpts.beforeUnload&&e.harvestOpts.beforeUnload()}),this.initializedAggregates.forEach(e=>this.triggerHarvestFor(e,{isFinalHarvest:!0}))},n.il?(0,h.N)(t,!0,!1):n.v6&&n._A.cleanupTasks.push(t)}startTimer(e=this.agentRef.init.harvest.interval){if(this.#e)return;this.#e=!0;let t=()=>{this.initializedAggregates.forEach(e=>this.triggerHarvestFor(e)),setTimeout(t,1e3*e)};setTimeout(t,1e3*e)}triggerHarvestFor(e,t={}){let r={ranSend:!1,payload:void 0,endpointVersion:e.harvestEndpointVersion||1};if(e.blocked||this.agentRef.init?.browser_consent_mode?.enabled&&!this.agentRef.runtime.consented)return r;let a=(0,p.qD)(t);if(!a)return r;let n=!t.isFinalHarvest&&a===p.Be;return r.payload=e.makeHarvestPayload(n,t),r.payload&&(x(this.agentRef,{endpoint:i.r3[e.featureName],payload:r.payload,localOpts:t,submitMethod:a,cbFinished:function(r){if(e.harvestOpts.prevAttemptCode){let t=t=>(0,o.p)(s.xS,[t],void 0,i.DT.metrics,e.ee);t(b+e.featureName),t((r.retry?w:k)+e.harvestOpts.prevAttemptCode),delete e.harvestOpts.prevAttemptCode}r.retry&&(e.harvestOpts.prevAttemptCode=r.status),t.forceNoRetry&&(r.retry=!1),e.postHarvestCleanup(r)},raw:e.harvestOpts.raw,featureName:e.featureName,endpointVersion:r.endpointVersion}),r.ranSend=!0),r}}let B={};function x(e,{endpoint:t,payload:r,localOpts:s={},submitMethod:h,cbFinished:y,raw:b,featureName:w,endpointVersion:k=1}){if(!e.info.errorBeacon)return!1;let{body:R,qs:x}=function(e={}){let t=e=>"undefined"!=typeof Uint8Array&&e instanceof Uint8Array||Array.isArray(e)||"string"==typeof e?e:Object.entries(e||{}).reduce((e,[t,r])=>(("number"==typeof r||"string"==typeof r&&r.length>0||"object"==typeof r&&Object.keys(r||{}).length>0)&&(e[t]=r),e),{});return{body:t(e.body),qs:t(e.qs)}}(r);if(0===Object.keys(R).length&&!s.sendEmptyBody)return y&&y({sent:!1}),!1;let A=!1===e.init.ssl?"http":"https",S=e.init.proxy.beacon||e.info.errorBeacon,E=b?"".concat(A,"://").concat(S,"/").concat(t):"".concat(A,"://").concat(S).concat(t!==i.tr?"/"+t:"","/").concat(k,"/").concat(e.info.licenseKey),T=b?"":function(e,t,r){let s=e.runtime.obfuscator.obfuscateString((0,f.f)(""+n._A.location)),o=e.runtime.session,u=!!o?.state.sessionReplaySentFirstChunk&&o?.state.sessionReplayMode===1&&r!==i.Mg,h=!!o?.state.traceHarvestStarted&&o?.state.sessionTraceMode===1&&![i.SP,i.NQ].includes(r),g=["a="+e.info.applicationID,(0,l.wu)("sa",e.info.sa?""+e.info.sa:""),(0,l.wu)("v",a.q4),e.info.transactionName?(0,l.wu)("to",e.info.transactionName):(0,l.wu)("t",e.info.tNamePlain||"Unnamed Transaction"),(0,l.wu)("ct",e.runtime.customTransaction),"&rst="+(0,c.z)(),"&ck=0","&s="+(o?.state.value||"0"),(0,l.wu)("ref",s),(0,l.wu)("ptid",e.runtime.ptid?""+e.runtime.ptid:"")];return u&&g.push((0,l.wu)("hr","1",t)),h&&g.push((0,l.wu)("ht","1",t)),g.join("")}(e,x,t),O=(0,l.j6)(x,e.runtime.maxBytes);""===T&&O.startsWith("&")&&(O=O.substring(1));let D="".concat(E,"?").concat(T).concat(O),H=x?.attributes?.includes("gzip")||t===i.FP?R:(0,d.P)(R);H&&0!==H.length&&"{}"!==H&&"[]"!==H||(H=""),t!==i.NQ&&H.length>75e4&&1===(B[t]=(B[t]||0)+1)&&(0,g.Z)(28,t);let j=[{key:"content-type",value:"text/plain"}],N=h({url:D,body:H,sync:s.isFinalHarvest&&n.v6,headers:j});if(!s.isFinalHarvest&&y){h===p.Be?N.addEventListener("loadend",function(){y({sent:0!==this.status,status:this.status,retry:F(this.status),fullUrl:D,xhr:this,responseText:this.responseText}),F(this.status)||C()},(0,u.m$)(!1)):h===p.pj&&N.then(async function(e){let t=e.status;y({sent:!0,status:t,retry:F(t),fullUrl:D,fetchResponse:e,responseText:await e.text()}),F(t)||C()});function C(){try{if(w===i.DT.jserrors&&!R?.err)return;let t=T.includes("hr=1"),r=T.includes("ht=1"),s=x?.attributes?.includes("hasError=true");(0,o.p)("harvest-metadata",[{[w]:{...t&&{hasReplay:t},...r&&{hasTrace:r},...s&&{hasError:s}}}],void 0,i.DT.metrics,e.ee)}catch(e){}}}return(0,m.i)({agentIdentifier:e.agentIdentifier,drained:!!v.T?.[e.agentIdentifier],type:"data",name:"harvest",feature:w,data:{endpoint:t,headers:j,payload:r,submitMethod:h===p.Be?"xhr":h===p.pj?"fetch":"beacon",raw:b,synchronousXhr:!!(s.isFinalHarvest&&n.v6)}}),!0;function F(e){switch(e){case 408:case 429:case 500:return!0}return e>=502&&e<=504||e>=512&&e<=530}}},87528:function(e,t,r){r.d(t,{j6:function(){return u},wu:function(){return c}});var s=r(45765),i={"%2C":",","%3A":":","%2F":"/","%40":"@","%24":"$","%3B":";"},a=RegExp(Object.keys(i).join("|"),"g");function n(e){return i[e]}function o(e){return null==e?"null":encodeURIComponent(e).replace(a,n)}function u(e,t){var r=0,i="";return Object.entries(e||{}
1).forEach(([e,a])=>{var n,u,c=[];if("string"==typeof a||!Array.isArray(a)&&null!=a&&a.toString().length)n="&"+e+"="+o(a),r+=n.length,i+=n;else if(Array.isArray(a)&&a.length){for(r+=9,u=0;u<a.length&&(n=o((0,s.P)(a[u])),r+=n.length,void 0===t||!(r>=t));u++)c.push(n);i+="&"+e+"=%5B"+c.join(",")+"%5D"}}),i}function c(e,t,r={}){return Object.keys(r).includes(e)?"":t&&"string"==typeof t?"&"+e+"="+o(t):""}},29120:function(e,t,r){r.d(t,{V:function(){return i}});var s=r(89873);function i(){return s._A?.location?.protocol==="file:"}},38264:function(e,t,r){r.d(t,{Be:function(){return n},pj:function(){return a},qD:function(){return i}});var s=r(89873);function i({isFinalHarvest:e=!1}={}){return e&&s.il?o:"undefined"!=typeof XMLHttpRequest?n:a}function a({url:e,body:t=null,method:r="POST",headers:s=[{key:"content-type",value:"text/plain"}]}){let i={};for(let e of s)i[e.key]=e.value;return fetch(e,{headers:i,method:r,body:t,credentials:"include"})}function n({url:e,body:t=null,sync:r,method:s="POST",headers:i=[{key:"content-type",value:"text/plain"}]}){let a=new XMLHttpRequest;a.open(s,e,!r);try{"withCredentials"in a&&(a.withCredentials=!0)}catch(e){}return i.forEach(e=>{a.setRequestHeader(e.key,e.value)}),a.send(t),a}function o({url:e,body:t}){try{return window.navigator.sendBeacon.bind(window.navigator)(e,t)}catch(e){return!1}}},95147:function(e,t,r){r.d(t,{m:function(){return R}});var s=r(86224),i=r(5128),a=r(85249),n=r(8114),o=r(95301),u=r(38075),c=r(29120),h=r(89965);class f{constructor(e){this.agentRef=e,this.warnedRegexMissing=!1,this.warnedInvalidRegex=!1,this.warnedInvalidReplacement=!1}get obfuscateConfigRules(){return this.agentRef.init.obfuscate||[]}obfuscateString(e){if("string"!=typeof e||0===e.trim().length)return e;let t=this.obfuscateConfigRules.map(e=>this.validateObfuscationRule(e));return(0,c.V)()&&t.push({regex:/^file:\/\/(.*)/,replacement:atob("ZmlsZTovL09CRlVTQ0FURUQ=")}),t.filter(e=>e.isValid).reduce((e,t)=>{let{rule:r}=t;return e.replace(r.regex,r.replacement||"*")},e)}validateObfuscationRule(e){let t=void 0===e.regex,r=!!(void 0!==e.regex&&"string"!=typeof e.regex&&!(e.regex instanceof RegExp)),s=!!(e.replacement&&"string"!=typeof e.replacement);return t&&!this.warnedRegexMissing?((0,h.Z)(12,e),this.warnedRegexMissing=!0):r&&!this.warnedInvalidRegex&&((0,h.Z)(13,e),this.warnedInvalidRegex=!0),s&&!this.warnedInvalidReplacement&&((0,h.Z)(14,e),this.warnedInvalidReplacement=!0),{rule:e,isValid:!t&&!r&&!s,errors:{regexMissingDetected:t,invalidRegexDetected:r,invalidReplacementDetected:s}}}}var l=r(67823),g=r(89249),d=r(76364),p=r(88203),v=r(29317);class m{constructor(){this.aggregatedData={}}store(e,t,r,s,i){var a,n=this.#t(e,t,r,i);return n.metrics=((a=n.metrics)||(a={count:0}),a.count+=1,Object.entries(s||{}).forEach(([e,t])=>{a[e]=y(t,a[e])}),a),n}merge(e,t,r,s,i,a=!1){var n=this.#t(e,t,s,i);if(a&&(n.params=s),!n.metrics){n.metrics=r;return}var o=n.metrics;o.count+=r.count,Object.keys(r||{}).forEach(e=>{if("count"!==e){var t,s=o[e],i=r[e];i&&!i.c?o[e]=y(i.t,s):o[e]=(t=o[e])?(t.c||(t=b(t.t)),t.min=Math.min(i.min,t.min),t.max=Math.max(i.max,t.max),t.t+=i.t,t.sos+=i.sos,t.c+=i.c,t):i}})}storeMetric(e,t,r,s){var i=this.#t(e,t,r);return i.stats=y(s,i.stats),i}take(e,t=!0){for(var r={},s="",i=!1,a=0;a<e.length;a++)r[s=e[a]]=Object.values(this.aggregatedData[s]||{}),r[s].length&&(i=!0),t&&delete this.aggregatedData[s];return i?r:null}#t(e,t,r,s){this.aggregatedData[e]||(this.aggregatedData[e]={});var i=this.aggregatedData[e][t];return!i&&(i=this.aggregatedData[e][t]={params:r||{}},s&&(i.custom=s)),i}}function y(e,t){var r;return null==e?((r=t)?r.c++:r={c:1},r):t?(t.c||(t=b(t.t)),t.c+=1,t.t+=e,t.sos+=e*e,e>t.max&&(t.max=e),e<t.min&&(t.min=e),t):{t:e}}function b(e){return{t:e,min:e,max:e,sos:e*e,c:1}}class w{#r=new m;#s={};byteSize(){return 0}isEmpty({aggregatorTypes:e}){return e?e.every(e=>!this.#r.aggregatedData[e]):0===Object.keys(this.#r.aggregatedData).length}add([e,t,r,s,i]){return this.#r.store(e,t,r,s,i),!0}addMetric(e,t,r,s){return this.#r.storeMetric(e,t,r,s),!0}save({aggregatorTypes:e}){let t=e.toString(),r={};
1e.forEach(e=>r[e]=this.#r.aggregatedData[e]),this.#s[t]=r}get(e){let t=Array.isArray(e)?e:e.aggregatorTypes;return this.#r.take(t,!1)}clear({aggregatorTypes:e}={}){if(!e){this.#r.aggregatedData={};return}e.forEach(e=>delete this.#r.aggregatedData[e])}reloadSave({aggregatorTypes:e}){let t=e.toString(),r=this.#s[t];e.forEach(e=>{Object.keys(r[e]||{}).forEach(t=>{let s=r[e][t];this.#r.merge(e,t,s.metrics,s.params,s.custom,!0)})})}clearSave({aggregatorTypes:e}){let t=e.toString();delete this.#s[t]}}var k=r(90902);class R extends s.W{constructor(e,t){super(e.agentIdentifier,t),this.agentRef=e,this.checkConfiguration(e),this.doOnceForAllAggregate(e),this.customAttributesAreSeparate=!1,this.canHarvestEarly=!0,this.isRetrying=!1,this.harvestOpts={},this.#i(),this.waitForDrain()}#i(){if(!this.events)switch(this.featureName){case l.DT.sessionReplay:break;case l.DT.jserrors:case l.DT.metrics:this.events=this.agentRef.sharedAggregator??=new w;break;default:this.events=new d.X(k.Ye,this)}}get supportsRegisteredEntities(){return this.featureName in k.Vl&&(k.Vl[this.featureName]||this.agentRef.init.feature_flags.includes("register."+this.featureName))}get harvestEndpointVersion(){return this.supportsRegisteredEntities&&this.agentRef.runtime.registeredEntities.length?2:1}waitForDrain(){this.ee.on("drain-"+this.featureName,()=>{this.drained||setTimeout(()=>this.agentRef.runtime.harvester.triggerHarvestFor(this),1),this.drained=!0})}decideEarlyHarvest(){if(!this.canHarvestEarly||this.blocked||this.isRetrying)return;let e=this.events.byteSize()+(this.customAttributesAreSeparate?this.agentRef.runtime.jsAttributesMetadata.bytes:0);e>k.fm&&(this.agentRef.runtime.harvester.triggerHarvestFor(this),this.reportSupportabilityMetric("".concat(this.featureName,"/Harvest/Early/Seen"),e))}waitForFlags(e=[]){return new Promise((t,r)=>{u.T[this.agentIdentifier]?t(s(u.T[this.agentIdentifier])):this.ee.on("rumresp",(e={})=>{t(s(e))});function s(t){return e.map(e=>t[e]?t[e]:0)}}).catch(e=>{this.ee.emit("internal-error",[e]),this.blocked=!0,this.deregisterDrain()})}drain(){(0,o.LP)(this.agentIdentifier,this.featureName)}preHarvestChecks(e){return!this.blocked&&!this.ee.aborted}makeHarvestPayload(e=!1,t={}){if(!this.events||this.events.isEmpty(this.harvestOpts)||this.preHarvestChecks&&!this.preHarvestChecks(t))return;e&&this.events.save(this.harvestOpts);let r=this.events.get(this.harvestOpts);if(!r)return;this.events.clear(this.harvestOpts);let s={body:this.serializer?this.serializer(r):r};return this.queryStringsBuilder&&(s.qs=this.queryStringsBuilder(r)),s}postHarvestCleanup(e={}){this.isRetrying=e.sent&&e.retry,this.isRetrying&&this.events.reloadSave(this.harvestOpts),this.events.clearSave(this.harvestOpts)}checkConfiguration(e){if(!(0,i.J)(e.info)){let t=(0,n.gG)(),r={...t.info?.jsAttributes};try{r={...r,...e.info?.jsAttributes}}catch(e){}(0,a.j)(e,{...t,info:{...t.info,jsAttributes:r},runtime:e.runtime},e.runtime.loaderType)}}doOnceForAllAggregate(e){e.runtime.obfuscator||(e.runtime.obfuscator=new f(e)),this.obfuscator=e.runtime.obfuscator,e.runtime.harvester||(e.runtime.harvester=new g.f(e))}reportSupportabilityMetric(e,t){(0,p.p)(v.xS,[e,t],void 0,l.DT.metrics,this.ee)}}},76364:function(e,t,r){r.d(t,{X:function(){return a}});var s=r(45765),i=r(90902);class a{#a=[];#n=0;#o;#u;constructor(e=i.Ye,t){this.maxPayloadSize=e,this.featureAgg=t}get length(){return this.#a.length}isEmpty(){return 0===this.#a.length}get(){return this.#a}byteSize(){return this.#n}wouldExceedMaxSize(e){return this.#n+e>this.maxPayloadSize}add(e,t){let r=t||s.P(e)?.length||0;if(this.#n+r>this.maxPayloadSize){let e=e=>"EventBuffer/".concat(e,"/Dropped/Bytes");return this.featureAgg?.reportSupportabilityMetric(e(this.featureAgg.featureName),r),this.featureAgg?.reportSupportabilityMetric(e("Combined"),r),!1}return this.#a.push(e),this.#n+=r,this.featureAgg?.decideEarlyHarvest(),!0}merge(e,t){if(this.isEmpty()||!e)return!1;let r=this.#a.findIndex(e);return!(r<0)&&(this.#a[r]={...this.#a[r],...t},!0)}clear(e={}){void 0!==e.clearBeforeTime&&e.timestampKey?this.#a=this.#a.filter(t=>t[e.timestampKey]>=e.clearBeforeTime):void 0!==e.clearBeforeIndex?this.#a=this.#a.slice(e.clearBeforeIndex):this.#a=[],this.#n=this.#a.length&&s.P(this.#a)?.length||0}save(){this.#o=this.#a,this.#u=this.#n}clearSave(){this.#o=void 0,this.#u=void 0}reloadSave(){this.#o&&(this.#u+this.#n>this.maxPayloadSize||(this.#a=[...this.#o,...this.#a],this.#n=this.#u+this.#n))}}}}]);

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.