!(function(){var yo=Object.defineProperty,So=Object.defineProperties;var Ao=Object.getOwnPropertyDescriptors;var oo=Object.getOwnPropertySymbols;var ho=Object.prototype.hasOwnProperty,bo=Object.prototype.propertyIsEnumerable;var po=Math.pow,go=(m,i,t)=>i in m?yo(m,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):m[i]=t,nr=(m,i)=>{for(var t in i||(i={}))ho.call(i,t)&&go(m,t,i[t]);if(oo)for(var t of oo(i))bo.call(i,t)&&go(m,t,i[t]);return m},wi=(m,i)=>So(m,Ao(i));var Eo=(m,i)=>{var t={};for(var r in m)ho.call(m,r)&&i.indexOf(r)<0&&(t[r]=m[r]);if(m!=null&&oo)for(var r of oo(m))i.indexOf(r)<0&&bo.call(m,r)&&(t[r]=m[r]);return t};var fo=(m,i,t)=>new Promise((r,c)=>{var d=o=>{try{h(t.next(o))}catch(y){c(y)}},l=o=>{try{h(t.throw(o))}catch(y){c(y)}},h=o=>o.done?r(o.value):Promise.resolve(o.value).then(d,l);h((t=t.apply(m,i)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[3236],{44399:function(m,i,t){"use strict";t.d(i,{Z:function(){return W}});var r=t(99571),c=t(59301),d=Object.defineProperty,l=Object.defineProperties,h=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable,A=(ee,j,G)=>j in ee?d(ee,j,{enumerable:!0,configurable:!0,writable:!0,value:G}):ee[j]=G,b=(ee,j)=>{for(var G in j||(j={}))y.call(j,G)&&A(ee,G,j[G]);if(o)for(var G of o(j))R.call(j,G)&&A(ee,G,j[G]);return ee},z=(ee,j)=>l(ee,h(j)),I=(ee,j)=>{var G={};for(var O in ee)y.call(ee,O)&&j.indexOf(O)<0&&(G[O]=ee[O]);if(ee!=null&&o)for(var O of o(ee))j.indexOf(O)<0&&R.call(ee,O)&&(G[O]=ee[O]);return G},Q=(ee,j,G)=>new Promise((O,L)=>{var M=v=>{try{E(G.next(v))}catch(N){L(N)}},S=v=>{try{E(G.throw(v))}catch(N){L(N)}},E=v=>v.done?O(v.value):Promise.resolve(v.value).then(M,S);E((G=G.apply(ee,j)).next())});const W=ee=>{var j=ee,{children:G}=j,O=I(j,["children"]);const[L,M]=(0,c.useState)(!1);return c.createElement(r.ZP,z(b({},O),{loading:L,onClick:S=>Q(void 0,null,function*(){try{M(!0),yield O.onClick(S),M(!1)}catch(E){console.error(E),M(!1)}})}),G)}},95487:function(m,i,t){"use strict";var r=t(86204),c=t.n(r),d=Object.defineProperty,l=(R,A,b)=>A in R?d(R,A,{enumerable:!0,configurable:!0,writable:!0,value:b}):R[A]=b,h=(R,A,b)=>l(R,typeof A!="symbol"?A+"":A,b),o=(R,A,b)=>new Promise((z,I)=>{var Q=j=>{try{ee(b.next(j))}catch(G){I(G)}},W=j=>{try{ee(b.throw(j))}catch(G){I(G)}},ee=j=>j.done?z(j.value):Promise.resolve(j.value).then(Q,W);ee((b=b.apply(R,A)).next())});class y extends r.EventEmitter{constructor(A,b){super(),h(this,"url"),h(this,"body"),h(this,"fullContent",""),h(this,"controller",null),h(this,"buffer",""),this.url=A,this.body=b}startStream(){return o(this,null,function*(){this.controller=new AbortController;const{signal:A}=this.controller;try{const b=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:A});if(!b.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${b.status}`);const z=b.headers.get("content-type");if(!z)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(z.includes("application/json")){const W=yield b.json();this.emit("error",W);return}if(!z.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const I=b.body.getReader(),Q=new TextDecoder("utf-8");for(;;){const{done:W,value:ee}=yield I.read();if(W)break;const j=Q.decode(ee,{stream:!0});this.buffer+=j;const G=this.buffer.split(` `);this.buffer=G.pop()||"";for(const O of G)if(O.startsWith("data:")){const L=O.slice(5).trim();if(L==="[DONE]")break;try{const M=JSON.parse(L);M.data&&this.handleData(M.data)}catch(M){this.buffer=O+` `+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",M)}}}this.emit("done",this.fullContent)}catch(b){b.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",b.message)}})}handleData(A){A.content&&(this.fullContent+=A.content,this.emit("data",{chunk:A,full:this.fullContent}))}cancelRequest(){var A;(A=this.controller)==null||A.abort()}}i.Z=y},30828:function(m,i,t){"use strict";t.d(i,{Z:function(){return Q}});var r=t(59301),c=t(30641),d=t(77019),l=t(5269),h={smartWrp:"smartWrp___NjRcB"},o=t(89081),y=t(46133),R=t(44399),A=t(59301),b=(W,ee,j)=>new Promise((G,O)=>{var L=E=>{try{S(j.next(E))}catch(v){O(v)}},M=E=>{try{S(j.throw(E))}catch(v){O(v)}},S=E=>E.done?G(E.value):Promise.resolve(E.value).then(L,M);S((j=j.apply(W,ee)).next())});const z=` \u5FEB\u901F\u6392\u5E8F\u6F14\u793A

\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u6F14\u793A