1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2617,4998,5925,9760],{14998:(e,t,n)=>{n.d(t,{E:()=>u});var r=n(12115),l=n(41870),a=n(69808);function u(e,t){let{namespace:n,locale:u,enabled:c=!0,timeoutMs:s=900,omitKeys:i}=t,o=(0,a.QC)(u),[S,m]=(0,r.useState)({value:e??null,translating:!1});return(0,r.useEffect)(()=>{let t=!1;return c&&e?"en"===o?(m({value:e,translating:!1}),()=>{t=!0}):(m(t=>({value:t.value??e,translating:!0})),(async()=>{try{let r=await (0,l.Mh)(e,o,n,{timeoutMs:s,omitKeys:i});if(t)return;m({value:r.data,translating:!!r.pending}),r.pending&&r.pending.then(e=>{t||m({value:e,translating:!1})}).catch(()=>{t||m(e=>({...e,translating:!1}))})}catch{t||m({value:e,translating:!1})}})(),()=>{t=!0}):(m({value:e??null,translating:!1}),()=>{t=!0})},[c,n,o,i,e,s]),S}},60324:(e,t,n)=>{n.d(t,{Y:()=>s});var r=n(12115),l=n(22422),a=n(71508);let u=new Map;function c(e){let t={content:e.content,isStreaming:e.isStreaming,error:e.error};e.emitScheduler?.cancel(),e.listeners.forEach(e=>e(t))}function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",[t,n]=(0,r.useState)(e),[s,i]=(0,r.useState)(!1),[o,S]=(0,r.useState)(null),m=(0,r.useRef)(null),g=(0,r.useRef)(null),f=(0,r.useRef)(null);(0,r.useEffect)(()=>{e&&(n(e),i(!1),S(null))},[e]);let d=(0,r.useCallback)(e=>{n(e.content),i(e.isStreaming),S(e.error)},[]),h=(0,r.useCallback)(()=>{let e=f.current;f.current=null,g.current=null,m.current=null,i(!1),e&&e()},[]);return{content:t,isStreaming:s,error:o,startStream:(0,r.useCallback)(function(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!e||g.current===e&&f.current)return;f.current&&h();let n=function(e){let t=u.get(e);if(t)return t;let n={content:"",isStreaming:!1,error:null,activeSymbol:null,closeStream:null,emitScheduler:null,refCount:0,listeners:new Set};return u.set(e,n),n}(e);n.refCount+=1;let r=e=>{d(e)};if(n.listeners.add(r),f.current=()=>{n.listeners.delete(r),n.refCount=Math.max(0,n.refCount-1),0===n.refCount&&(n.closeStream&&n.closeStream(),u.delete(e))},g.current=e,m.current=n.closeStream,d({content:n.content,isStreaming:n.isStreaming,error:n.error}),n.activeSymbol===e&&n.closeStream)return;n.content="",n.error=null,n.isStreaming=!0,n.activeSymbol=e,c(n);let s=(0,a.Nz)(e,t,e=>{n.content+=e,n.emitScheduler??=(0,l.S)(()=>{n.listeners.forEach(e=>e({content:n.content,isStreaming:n.isStreaming,error:n.error}))}),n.emitScheduler.schedule()},e=>{let t=String(e?.message||"").toLowerCase();t.includes("abort")||t.includes("aborted")||t.includes("signal is aborted")||(n.error=e),n.isStreaming=!1,n.closeStream=null,n.activeSymbol=null,c(n)},()=>{n.isStreaming=!1,n.closeStream=null,n.activeSymbol=null,c(n)});n.closeStream=s,m.current=s},[h,d]),stopStream:h,clearContent:(0,r.useCallback)(()=>{n(""),S(null)},[])}}},99265:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(71847).A)("user-round",[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]])}}]);
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.