1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,321443,e=>{"use strict";var t=e.i(515809),a=e.i(477822),s=e.i(123093),i=e.i(155389),o=e.i(211291),r=e.i(507811),n=e.i(214693);let l=async e=>{let t=await e.arrayBuffer(),a=await fetch("/api/chat/file",{method:"POST",body:t});return(await a.json()).url};e.s(["default",0,function(){let e=(0,i.useChatLogic)({storageKey:"messages",apiEndpoint:"/api/chat",enableFileUpload:!0}),c=(0,t.jsx)(s.default,{actions:[(0,s.createFileUploadAction)(()=>{let t=document.createElement("input");t.type="file",t.accept="image/*,*/*",t.onchange=async()=>{if(!t.files?.length||!e.checkUserIdAvalible())return;let a=t.files[0],s=a.type.startsWith("image");e.setIsLoading(!0);try{let t=await l(a),i={id:(0,r.v7)(),userId:e.userId,content:s?``:`[${a.name}](${t})`,time:new Date().getTime(),type:s?"image":"file",status:n.MessageStatus.Sending},o=[...e.messages,i];e.updateMessages(o);let c=await fetch("/api/chat",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messages:o,userId:e.userId})});if(!c.ok)throw Error("åé失败");let d=await c.json();d.messages&&e.updateMessages(d.messages)}catch(e){console.error("File upload error:",e),o.default.error("æä»¶ä¸ä¼ 失败")}finally{e.setIsLoading(!1)}},t.click()}),(0,s.createClearAction)(()=>{e.clearMessages()})]});return(0,t.jsx)(a.default,{chatLogic:e,actionDropdown:c,messageListProps:{emptyStateConfig:{title:"æ¬¢è¿æ¥å°è天室",description:"è¿éæ¯ä¸ä¸ªå®æ¶è天空é´ï¼æ¨å¯ä»¥ä¸å
¶ä»ç¨æ·è¿è¡äº¤æµï¼å享å¾çåæä»¶ãå¼å§æ¨çç¬¬ä¸æ¡æ¶æ¯å§ï¼"},loadingConfig:{text:"åéä¸...",position:"center"}},chatInputProps:{placeholder:"è¾å
¥æ¶æ¯..."}})}])}]);
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.