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