PageSourceSearch

https://shitararyo.com/_next/static/chunks/4627.50f89168f98f7aa9.js

js shitararyo.com collected 2026-10-06 19:31:36 UTC 4,836 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{};e._sentryModuleMetadata=e._sentryModuleMetadata||{},e._sentryModuleMetadata[(new e.Error).stack]=function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];if(null!=a)for(var n in a)a.hasOwnProperty(n)&&(e[n]=a[n])}return e}({},e._sentryModuleMetadata[(new e.Error).stack],{"_sentryBundlerPluginAppKey:note-front-custom-domain":!0});var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5332006c-2341-4cdd-92c7-52146c6cf1c0",e._sentryDebugIdIdentifier="sentry-dbid-5332006c-2341-4cdd-92c7-52146c6cf1c0")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4627],{4627:(e,t,a)=>{a.r(t),a.d(t,{NoteDetailWebMcpToolsRegistrar:()=>N});var n=a(89324),r=a(25623),o=a(27689),s=a(17300),l=a(95116),c=a(74100),i=a(25947),u=a(20250),d=a(14881),y=a(24736),m=a(45137),g=a(14877),p=a(99585),f=a(74410),v=a(60918);let _=(e,{buildNoteUrl:t,magazineKey:a})=>null===e?null:{noteKey:e.key,title:e.name,url:t({noteKey:e.key,creator:{urlname:e.user.urlname,customDomain:e.customDomain},...void 0===a?{}:{magazineKey:a}}),creatorName:e.user.urlname,price:e.price},h=e=>{let t=(e=>{if("object"==typeof e&&null!==e&&"status"in e)return"number"==typeof e.status?e.status:void 0})(e);return void 0===t||t<400||t>=500},b=async(e,t)=>{try{return await t()}catch(t){throw(0,v._)(e,t),t}},k=()=>document.getElementById(d.hd),w=()=>`${window.location.origin}${window.location.pathname}`,K=e=>{let t=k();return null!==t&&(0,u.H)(t,e,"smooth")},M={noteDetail:r.OI},D=e=>window.location.assign(e),I=e=>{let t=(0,l.useRef)(e);return(0,l.useEffect)(()=>{t.current=e},[e]),t},N=({noteKey:e,tocItems:t,isTextNote:a,hasAdjacentNotes:r,hasRelatedNotes:u})=>{let d=I((0,i.GO)(e).note),v=(0,l.useCallback)(()=>d.current,[d]),N=(({tocItems:e,isTextNote:t,getCanReadFullText:a})=>(0,l.useMemo)(()=>{if(!1===t)return[];let n=(0,o.EV)({getBodyElement:k,getCanReadFullText:a});return 0===e.length?[n]:[n,(0,o.gm)(e),(0,o.YK)({tocItems:e,scrollToSection:K})]},[t,e,a]))({tocItems:t,isTextNote:a,getCanReadFullText:(0,l.useCallback)(()=>d.current?.canRead,[d])}),C=(({noteKey:e,hasAdjacentNotes:t,hasRelatedNotes:a})=>{let n=I((0,c.L)()),r=I((0,y.g)(M)),i=(0,s.useSearchParams)(),u=i.get("magazine_key")??void 0,d=i.get("prev_access_key")??void 0,v=i.get("read_access_key")??void 0;return(0,l.useMemo)(()=>{if(!1===t&&!1===a)return[];let s=({noteKey:e,creator:t,magazineKey:a})=>r.current.getLinkUrl("noteDetail",{noteKey:e,user:t,...void 0===a?{}:{magazineKey:a}}),l=()=>({noteKey:e,httpClientConfig:n.current,buildNoteUrl:s}),c=(0,o.UV)({fetchAdjacentNotes:t?()=>(({noteKey:e,httpClientConfig:t,buildNoteUrl:a,accessKeys:n})=>b("[note-detail][webmcp] fetchNoteExtraItems failed",async()=>(({prevNote:e,nextNote:t},a)=>({previous:_(e,a),next:_(t,a)}))(await m.m.process(p.A,m.m.path(e),(0,f.A)(n),t),{buildNoteUrl:a,magazineKey:n.magazineKey})))({...l(),accessKeys:{magazineKey:u,prevAccessKey:d,readAccessKey:v}}):void 0,fetchRelatedNotes:a?()=>(({noteKey:e,httpClientConfig:t,buildNoteUrl:a})=>b("[note-detail][webmcp] fetchRelatedNotes failed",async()=>{let n=(0,g.I)(e);return((e,{buildNoteUrl:t})=>e.map(e=>({noteKey:e.key,title:e.name,url:t({noteKey:e.key,creator:{urlname:e.user.urlname,customDomain:e.customDomain}}),creatorName:""!==e.user.nickname?e.user.nickname:e.user.urlname,price:e.price})))((await n.process(p.A,n.path(),void 0,t)).sections,{buildNoteUrl:a})}))(l()):void 0,shouldRetry:h});return[...t?[(0,o.qR)(c)]:[],...a?[(0,o.zg)(c)]:[],(0,o.N3)({source:c,navigate:D})]},[e,t,a,u,d,v,n,r])})({noteKey:e,hasAdjacentNotes:r,hasRelatedNotes:u}),E=(0,l.useMemo)(()=>[(0,o.dJ)({getNote:v,getPageUrl:w}),...N,...C],[v,N,C]),{trackActionLogs:R}=(0,n.sr)(),x=(0,l.useCallback)(t=>{R({kind:"note-detail-webmcp-tool-call",contents:{noteKey:e,toolName:t}})},[e,R]);return(0,o.TP)(E,{onToolCall:x}),null}},14877:(e,t,a)=>{a.d(t,{I:()=>s,h:()=>l});var n=a(61673),r=a(31279),o=a(95773),s=e=>(0,o.q)({context:"related_notes_revelio",page:"1","args[note_key]":e},e=>(0,n.y)((0,n.y)({},e),{},{sections:e.sections.flatMap(e=>e.map(e=>(0,r.bn)(e)))})),l=e=>(0,o.q)({context:"related_creator_notes",page:"1","args[note_key]":e},e=>(0,n.y)((0,n.y)({},e),{},{sections:e.sections[0].map(e=>(0,r.bn)(e))}))},45137:(e,t,a)=>{a.d(t,{m:()=>s});var n=a(61673),r=a(91384),o=a(31279),s=(0,r.Y)(e=>`/v3/notes/${e}/extra_items`,async(e,t,a,r)=>(0,o.bn)((await e.get(t,(0,n.y)((0,n.y)({},r),{},{params:a?(0,o.fy)(a):void 0}))).data.data))},74410:(e,t,a)=>{a.d(t,{A:()=>n});let n=({magazineKey:e,prevAccessKey:t,readAccessKey:a})=>{let n={...void 0===e?{}:{magazineKey:e},...void 0===t?{}:{prevAccessKey:t},...void 0===a?{}:{readAccessKey:a}};return 0===Object.keys(n).length?void 0: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.