dskcode 0.1.40 → 0.1.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ (function(d,e){function ai(d,e,f,g){return b(e-0x1d6,d);}function ah(d,e,f,g){return b(e-0x1e0,f);}const f=d();while(!![]){try{const g=-parseInt(ah(0x327,0x337,0x319,0x310))/(-0x2284+0x2321+-0x6*0x1a)+-parseInt(ah(0x2df,0x309,0x2e0,0x2f7))/(-0x1bf5+-0x48*0x54+0x3397)*(parseInt(ai(0x2c1,0x2fc,0x2e4,0x2e1))/(-0x2432+0x3d9*-0x1+-0x3*-0xd5a))+parseInt(ah(0x3a2,0x36c,0x388,0x330))/(-0x230f+0x18*0x4f+-0x939*-0x3)*(-parseInt(ai(0x329,0x37c,0x393,0x38f))/(0x4c0+0x7dc+0xb*-0x125))+parseInt(ai(0x3ad,0x38f,0x3dc,0x3c4))/(0x251*-0x3+0x3*-0x33d+0x10b0)+parseInt(ai(0x2bb,0x303,0x312,0x312))/(0x7f3+-0x40c+-0x3e0)+-parseInt(ai(0x394,0x34f,0x395,0x384))/(0xabc+0x1*-0x2579+0x1ac5)+parseInt(ah(0x35a,0x307,0x2bb,0x30f))/(-0x1*0x1dcd+-0xd7b+0x2b51);if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,-0x47a*-0xbd+0x29*-0x1da9+0x8e921*0x1));var S={'deepseek-v4-flash':{'id':aj(-0xbd,-0xaf,-0x45,-0x8b)+'4-flash','displayName':aj(-0x5e,-0x6a,-0x32,-0x48)+ak(0x146,0x1c4,0x142,0x184),'contextWindow':0xf4240,'inputPricePerMillion':0x1,'outputPricePerMillion':0x2,'cacheHitPricePerMillion':0.02},'deepseek-v4-pro':{'id':ak(0x143,0x1bd,0x13d,0x183)+ak(0x1b9,0x1c1,0x181,0x1a5),'displayName':'DeepSeek\x20V'+ak(0x193,0x150,0x131,0x17f),'contextWindow':0xf4240,'inputPricePerMillion':0x3,'outputPricePerMillion':0x6,'cacheHitPricePerMillion':0.025}},G=Object[ak(0x176,0x173,0x12d,0x153)](S);function V(d){return d in S;}function Y(d){return S[d];}function L(d){function al(d,e,f,g){return ak(e,e-0x1eb,f-0x17,g-0x1d6);}let f=d[al(0x32d,0x31f,0x2b6,0x30b)+'t'](-0x19*-0x71+-0x17aa+0x3d*0x35);return f>=0x7f35+-0x1*-0x51f7+-0x4196*0x2&&f<=-0x575*-0x29+0x58b7*0x3+-0x149e3||f>=-0x22a+0x33e7*-0x1+0x6a11*0x1&&f<=0x4215*0x1+0x5179*-0x1+-0x71*-0xd3||f>=-0x10*0x22+-0x3b2ef+0x5b50f&&f<=0x3ea89+-0xbff5+-0x83b5||f>=0x293*-0x2b+-0x691*-0x26+0x6e2b&&f<=-0x1*-0xa45d+0x14a88+-0xf3e6||f>=-0x1d158+-0x265*-0x17+0x29946&&f<=-0x804*0x6+-0x19*0xe1b+0x2901b;}function A(d){let f=-0x76*0x3d+-0x8f9*-0x3+0x1*0x133,g=0x1429+0x9bc+-0x9f7*0x3;for(let i of d)L(i)?f++:g++;let h=f*(0x7f7*0x4+0x1324+-0x3300+0.6)+g*(-0x24fa+-0x878+0x2d72+0.3);function am(d,e,f,g){return aj(d,e-0x115,f-0x29,f-0xa2);}return Math[am(-0x6,0x3b,-0x12,0x42)](-0xc12+0x1*-0x15ba+-0x1fd*-0x11,Math['ceil'](h));}function Q(d,f){function ao(d,e,f,g){return ak(e,e-0x16c,f-0x25,f-0x351);}let g=S[f],h=d[an(-0x1a1,-0x188,-0x15e,-0x15e)+an(-0x179,-0x19b,-0x1a9,-0x185)]??-0x1*0xccb+-0x2433*0x1+0x30fe*0x1,l=(d['promptToke'+'ns']-h)*g['inputPrice'+ao(0x46e,0x48a,0x496,0x454)]/(0x1*-0xfacd0+0x69062+-0x1942*-0xf7),m=h*g['cacheHitPr'+an(-0x17f,-0x15a,-0x197,-0x168)+'ion']/(-0x17c971+0xa121d+0x1cf994),p=d[ao(0x4ba,0x49c,0x4f0,0x4ed)+an(-0x201,-0x173,-0x1b2,-0x199)]*g[an(-0x1ef,-0x1a2,-0x1d6,-0x1ff)+ao(0x533,0x4df,0x4f3,0x4d0)+'n']/(0x94f*0x199+0x161a4c+-0x15b743);function an(d,e,f,g){return ak(g,e-0x181,f-0x33,f- -0x302);}return{'inputCost':l,'cacheHitCost':m,'outputCost':p,'totalCost':l+m+p};}var c=class extends Error{constructor(d,e,f){function ap(d,e,f,g){return aj(d,e-0x14,f-0x17,f-0x535);}super(d),this[ap(0x495,0x500,0x4e1,0x4c1)]=e;function aq(d,e,f,g){return aj(g,e-0x1d5,f-0x8c,f-0x4d8);}this['statusCode']=f,this[aq(0x46b,0x3fc,0x44f,0x42f)]=aq(0x3c9,0x441,0x3fb,0x44b)+ap(0x4d8,0x4a9,0x4db,0x4c3);}[aj(-0x1c,-0x7f,-0x98,-0x54)];[aj(-0x31,-0x5e,-0x8f,-0x7f)];},_=class extends c{constructor(d,f){function as(d,e,f,g){return ak(g,e-0x1b,f-0x71,e-0x165);}function ar(d,e,f,g){return aj(d,e-0x12a,f-0xb5,g-0x6a);}super(d,ar(-0xa7,-0x59,-0x3b,-0x59),f),this[as(0x305,0x2ea,0x2ee,0x2d7)]=ar(-0x86,-0x6f,-0x55,-0x66);}},y=class extends c{['retryAfter'+'Ms'];constructor(d,f){function au(d,e,f,g){return ak(d,e-0xe7,f-0x1ef,e-0x3bb);}function at(d,e,f,g){return aj(d,e-0x11d,f-0x12d,e-0x5e3);}super(d,'RATE_LIMIT',0x813+-0x22de+-0xe3c*-0x2),this[at(0x53f,0x55a,0x59f,0x546)]=au(0x58e,0x555,0x585,0x57d)+au(0x53d,0x524,0x4e4,0x526),this['retryAfter'+'Ms']=f;}},x=class extends c{constructor(d,f){function av(d,e,f,g){return aj(d,e-0xea,f-0x10e,e-0x2c8);}function aw(d,e,f,g){return ak(f,e-0x1eb,f-0x2e,g-0xee);}super(d,av(0x269,0x21b,0x1cb,0x25a)+'OR',f),this['name']=aw(0x294,0x2ce,0x2a0,0x2a3)+'r';}},k=class extends c{[aj(-0x8c,-0xb1,-0xa6,-0x5e)+aj(-0x18,-0xa2,-0x3a,-0x5a)];constructor(d,f){function ax(d,e,f,g){return aj(g,e-0x147,f-0x8d,f-0x17f);}function ay(d,e,f,g){return aj(e,e-0x169,f-0x1d8,d-0x41c);}super(d,'NETWORK_ER'+ax(0xb1,0x135,0xf7,0x12f)),this['name']=ax(0xf8,0xdf,0xf9,0xfc)+'or',this[ay(0x3be,0x3c6,0x374,0x38d)+ay(0x3c2,0x40b,0x39d,0x394)]=f;}},M=class extends c{[aj(-0x7e,-0x61,-0xa3,-0x82)];constructor(d,f){function az(d,e,f,g){return aj(d,e-0x82,f-0x3d,e-0x474);}function aA(d,e,f,g){return aj(f,e-0x2b,f-0x127,e-0x373);}super(d,az(0x3f0,0x3aa,0x3d3,0x3d0)),this['name']=az(0x3a2,0x3e2,0x42c,0x3d7)+'or',this[az(0x3db,0x3f2,0x425,0x3d1)]=f;}},R=class extends c{['idleMs'];constructor(d,f){function aB(d,e,f,g){return aj(d,e-0x1b9,f-0xd1,f-0x351);}function aC(d,e,f,g){return ak(e,e-0xf,f-0x74,d- -0x352);}super(d,aB(0x27e,0x2a5,0x2bd,0x2dc)+'E_TIMEOUT'),this[aC(-0x1cd,-0x199,-0x207,-0x1ec)]=aB(0x247,0x27a,0x28b,0x285)+'TimeoutErr'+'or',this[aC(-0x1a8,-0x166,-0x1e2,-0x1c1)]=f;}},I=class extends c{constructor(d){function aE(d,e,f,g){return aj(d,e-0x1bb,f-0xde,f-0x419);}function aD(d,e,f,g){return ak(f,e-0x162,f-0xd2,d-0x23b);}super(aD(0x3d0,0x3d6,0x3a4,0x3c8)+d+(aD(0x3e9,0x439,0x41e,0x41c)+aE(0x337,0x3af,0x371,0x388)+aD(0x373,0x382,0x3a1,0x357)+aE(0x37d,0x365,0x362,0x36f)+'ek-v4-pro'),aD(0x382,0x388,0x355,0x3a7)+'SUPPORTED'),this[aE(0x3c6,0x353,0x390,0x3a6)]=aD(0x3b4,0x401,0x3c9,0x360)+'pportedErr'+'or';}};function B(d,f){function aF(d,e,f,g){return ak(d,e-0x1e9,f-0x18f,g-0x2e3);}function aG(d,e,f,g){return ak(d,e-0x5a,f-0xc8,e- -0x3db);}switch(d){case 0x5b7*0x1+0x380+-0x7a6:case 0xdbb+-0x1f6f+0x1347:return new _('认证失败:请检查\x20A'+aF(0x475,0x4ba,0x4ae,0x4a7)+'确。('+d+')',d);case 0x11*0x121+0x372+-0x14f6:{let g;try{let h=JSON['parse'](f)['error']?.[aG(-0x22f,-0x24e,-0x23a,-0x231)]??'',i=/(\d+)\s*second/i[aF(0x4a0,0x43c,0x4a3,0x47f)](h);i?.[0x1600+0x5a7+-0x1ba6]&&(g=Number(i[-0x4*0xa4+-0x1426+0x16b7])*(0x10d5+-0x16fb+0x16*0x75));}catch{}return new y(aG(-0x26a,-0x298,-0x293,-0x2ab)+aG(-0x201,-0x235,-0x200,-0x287)+(g?aG(-0x21a,-0x245,-0x235,-0x25e)+Math[aG(-0x27e,-0x232,-0x248,-0x248)](g/(0x26e8+-0x1*-0x62b+0x3*-0xdb9))+aF(0x4a2,0x4b0,0x469,0x481):''),g);}case-0x6fd*-0x5+-0x184d*-0x1+-0x39ae:{let l='';try{l=JSON[aF(0x471,0x48d,0x4a3,0x461)](f)['error']?.[aF(0x46d,0x4c1,0x442,0x470)]??'';}catch{}return new c(aG(-0x21e,-0x24a,-0x27e,-0x27a)+(l?':\x20'+l:''),'BAD_REQUES'+'T',d);}default:return d>=-0x2a1*-0x5+0x1976+-0x355*0xb?new x('服务端错误\x20('+d+aG(-0x27d,-0x280,-0x2ac,-0x267),d):new c(aF(0x464,0x457,0x4dd,0x4a6)+d+')',aF(0x419,0x412,0x429,0x423)+aF(0x433,0x4ab,0x459,0x469),d);}}function U(d){return d instanceof y||d instanceof x||d instanceof k;}var E={'maxRetries':0x3,'baseDelayMs':0x3e8,'maxDelayMs':0x7530};function aj(d,e,f,g){return b(g- -0x207,d);}function F(d,f,g){let h=Math['pow'](0x1b4*0x6+-0xd52+-0x4*-0xc7,d-(-0x769+0x500+-0x2*-0x135)),i=Math[aH(0x486,0x493,0x48e,0x490)]()*(f/(0x1*-0x1882+0x21d1+-0x94d)),l=f*h+i;function aI(d,e,f,g){return ak(g,e-0x10,f-0x1e2,f- -0x3ba);}function aH(d,e,f,g){return ak(d,e-0x0,f-0x1a4,f-0x33f);}return Math[aH(0x54e,0x500,0x4fe,0x4df)](l,g);}async function N(d,f={}){let g=f['maxRetries']??E[aJ(0x480,0x45d,0x48a,0x4d5)],h=f[aJ(0x47b,0x43d,0x430,0x3ef)+'s']??E[aJ(0x481,0x3eb,0x430,0x406)+'s'],m=f[aK(0x276,0x27e,0x2be,0x26b)]??E['maxDelayMs'],p;function aJ(d,e,f,g){return ak(d,e-0x1f2,f-0xd8,f-0x30f);}function aK(d,e,f,g){return ak(d,e-0xf6,f-0xd0,e-0x11f);}for(let u=0xd67+-0x48c+-0x8db;u<=g;u++)try{return await d();}catch(v){if(p=v,!(v instanceof c)||!U(v))throw v;if(u>=g)break;let C;v instanceof y&&v[aJ(0x49e,0x468,0x4a6,0x49c)+'Ms']!==void(0x59*-0x1d+0x56e*0x2+-0xc7)?C=Math[aK(0x329,0x2de,0x2b1,0x295)](v['retryAfter'+'Ms'],m):C=F(u+(-0x77d+0x1*0x1ab9+-0x133b),h,m),f[aJ(0x4b8,0x4ae,0x4cd,0x50f)]?.(u+(-0x1*0x1009+0x1abd+-0xab3),v,C),await W(C);}throw p instanceof Error?p:new Error(aK(0x22f,0x281,0x28b,0x288)+aK(0x298,0x295,0x263,0x2d2));}function a(){const br=['zgvJB2rL','BMnL','Aw5KzxG','Dgv4Da','DMfSDwvZ','6l+E5O6L6lAf5PE277Yi','AM9PBG','CMv0CNLcyxnLra','yM9KEq','BI9QC29U','ioACQUEFPEMuMEIVRW','C3rYAw5N','BxmG5PEG5PwW5O2U77Yj','tw9KzwXoB3rtDq','u1rsrufnx0Leta','Bwf4uMv0CMLLCW','vgLTzw91DevYCG','Bg93zwq','CgfYC2u','ncbqCM8','mJK1mJy0ohDKt0LOAa','CMvXDwvZDfDPDa','zwXHEu1Z','zgvLChnLzwSTDG','ncbgBgfZAa','BMfTzq','uK9s','BwfWrxzLBNq','tMv0D29YA0vYCG','C3rHCNrZv2L0Aa','CMvWBgfJzq','CMvHza','DgLTzw91De1Z','BwvZC2fNzq','yxjNDw1LBNrZ','C3rHDhvZq29Kzq','Dg9VBenHBgXZ','6k+35Rgc5y+c5PwW6zsz6k+V','C3rHDhvZ','ndrywxrnuu8','DgHLBG','5lIn5PsV5OYb55Qe5QIH5z6loIaI','5BU66k6U562j5B6fia','CMv0CNLbzNrLCG','AxnFyxzHAwXHyG','yxbWBgLJyxrPBW','uMf0zuXPBwL0rq','y2f0y2G','zxHLyW','zw5HyMXLza','ioENKUoaGG','y29TCgXLDgLVBG','ChvZAa','z2v0uMvHzgvY','zvbLCK1PBgXPBW','zMLUAxnOx3jLyq','y2fJAgvKuhjVBq','nc1WCM8','5yAn6k+v44cc','zgLZywjSzwq','572r57UC6zsz6k+V77YA5PEG5Rov6l+E5O6L5yIW','y2vPBa','AwrSzu1Z','CMv0CNK','yMfZzvvYBa','mZmYntq1EhP4CxLi','iUoaGMrZA2nVzguG','5PEG5Rov6kEJ5P6q','B3jPz2LUywXfCG','CMvZzxq','y3vYCMvUy3K','y291BNruB2TLBG','CM9Y','u2vYDMvYrxjYBW','zw5KC1DPDgG','C2L6zq','DgHPBMTPBMDbBa','u1nfiowtJEw6Los9K+s4UUEPUU+8Ja','y29Kzq','ue9tva','l2nOyxqVy29TCa','z3jHBNrLzf9Iyq','B25szxrYEq','BwLU','mZG3mZyXohvZCuDuCq','C3rLBMvY','r0vu','6k+35Rgc5AsX6lsLicG','ueKGs2v5ioAyR+wqPUATOW','qujpuLrfra','rgvLCfnLzwSGvG','6k+35Rgc5BEY5y+w5RAi','C2XPy2u','zw91De1Z','CMvZCg9UC2vgBW','yMfZzurLBgf5tq','DgHPBMTPBMDfzG','zNvUy3rPB24','q29UDgvUDc1uEq','ANnVBG','CMvTB3zLrxzLBG','C2v0','w0rptKvD','z2v0','ChjVBxb0x3rVAW','z2v0qMfSyw5Jzq','B3v0Chv0uhjPyW','mJaYmJzVr3zRtMe','mJi1odu2mZv6DM5iy1O','zw5Z','mJm2whPRy3Ln','uhjVDMLKzxjfCG','Dg9VBf9JywXSCW','De1Z','mJeZnJG5y3HAAgzs','y29KzvbVAw50qq','CMv0CNLnyxHezq','C2LNBMfS','zwvRlxy0lwzSyq','C3rVCa','CMvHC29UAw5NxW','qMvHCMvYia','ywjVCNrLza','y29UDgvUDa','qxv0AevYCM9Y','zgf0yq','vu5ltK9xtL9fuG','BgvUz3rO','ywrKrxzLBNrmAq','6k+35Rgc6l+h5lQo6Akr57Mb77Ym6k+356In5zco','veLnru9vva','ugvYtwLSBgLVBG','zgvSDge','tu9eruXFtK9uxW','u3rYzwfTswrSzq','Bgf5txm','Dg9WCgvKx3vWxW','qvvusf9fuLjpuG','CMvXDwvZDa','BwfW','Bw9KzwW','CMfUzg9T','vg9Rzw5Z','ywjVCNq','Dg9VBenHBgXjza','A2v5CW','zxzLBNq','AgfZ','Aw5KzxHpzG','C2GSigrLzxbZzq','y2XLyxi','ChruB2TLBNm','Bwf4','kE+8JoIVT+EOJEwqJUwgJEIVLEoaGG','y29UBMvJDfrPBq','yMfSyw5Jzq','odaWmtu5tLrvy3Lb','Bwf4rgvSyxLnCW','Dg9VBf9JywXSxW','u0vsvKvsx0vsuG','D2L0AfjLDhj5oG','AwrSzvrPBwvVDq','C3rYAw5NAwz5','AfjLDhj5','5lUf5PsV5OYboIbKzwvWCW','Dg9VBhm','DxnHz2u','CNjVCG','CM9Szq','AwnLugvYtwLSBa'];a=function(){return br;};return a();}function b(c,d){c=c-(-0x12ce+0xc11+-0x7d3*-0x1);const e=a();let f=e[c];if(b['eTGwhZ']===undefined){var g=function(l){const m='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let n='',o='';for(let p=-0x1faf*0x1+-0x17*0x127+0x3a30,q,r,s=0xad*0x33+0x1660+-0x1*0x38d7;r=l['charAt'](s++);~r&&(q=p%(0x84a*0x1+-0x24f5*0x1+0x1caf*0x1)?q*(-0x203a+-0xd0+0x214a*0x1)+r:r,p++%(-0x6a3*-0x1+0x2575*0x1+0x160a*-0x2))?n+=String['fromCharCode'](0x1a2f+-0x135f+-0x1*0x5d1&q>>(-(-0x2*0x22c+-0x1fa8+0x2402)*p&0x152*-0x2+0x75*-0x13+0xb59)):0x6a4*-0x5+0xcca+0x146a){r=m['indexOf'](r);}for(let t=-0x31*0x8e+-0x16d*0x19+0x3ed3,u=n['length'];t<u;t++){o+='%'+('00'+n['charCodeAt'](t)['toString'](-0x3ae*0x1+-0x5*0x565+0x1eb7))['slice'](-(-0x76*0x3d+-0x8f9*-0x3+0x1*0x135));}return decodeURIComponent(o);};b['cjZjFF']=g,b['ZPpaxp']={},b['eTGwhZ']=!![];}const h=e[0x1429+0x9bc+-0x9f7*0x3],i=c+h,j=b['ZPpaxp'][i];return!j?(f=b['cjZjFF'](f),b['ZPpaxp'][i]=f):f=j,f;}var W=d=>new Promise(f=>setTimeout(f,d)),K=0xb*-0x1073+0x5967*-0x1+0x18388,D=class{#e;#t;#n;#r;constructor(d={}){function aM(d,e,f,g){return aj(d,e-0x58,f-0xf7,e-0x303);}function aL(d,e,f,g){return ak(f,e-0xf5,f-0x4d,e- -0x37b);}this.#e=d[aL(-0x24b,-0x21f,-0x271,-0x200)+aM(0x1d7,0x214,0x215,0x257)]??K,this.#t=d['maxRetries']??-0x82c+-0x5e*0x67+-0x2e01*-0x1,this.#n=d[aL(-0x1f2,-0x208,-0x21d,-0x1ef)+aL(-0x1b0,-0x1f9,-0x201,-0x23f)]??-0x22ad+-0x21a7+0x483c,this.#r=d[aM(0x256,0x22b,0x1f8,0x261)+aL(-0x21e,-0x232,-0x26d,-0x20a)]??-0x7211*0x1+-0xa1b5+0x188f6;}async[aj(-0xe2,-0xdf,-0xe8,-0xc2)](f,g={},h={}){function aO(d,e,f,g){return ak(g,e-0x1a2,f-0xe4,d-0x63);}let m=h['connectTim'+aN(-0x23a,-0x24d,-0x208,-0x280)]===void(-0x1*0x303+-0x29*0x85+-0x1850*-0x1)?this.#e:h['connectTim'+aN(-0x258,-0x24d,-0x214,-0x251)],n=new Headers(g['headers']);g[aO(0x1d7,0x183,0x1b9,0x1a9)]&&typeof g[aO(0x1d7,0x1e2,0x19b,0x207)]==aO(0x1da,0x22d,0x193,0x213)&&!n[aN(-0x1c7,-0x217,-0x240,-0x1da)](aO(0x187,0x15d,0x1d9,0x18d)+'pe')&&n['set'](aO(0x187,0x1a9,0x17f,0x1d7)+'pe',aO(0x1fc,0x1f1,0x230,0x1b8)+aO(0x1d8,0x197,0x22c,0x1d5));let {signal:p,cleanup:u}=this.#o(h[aO(0x19a,0x1aa,0x191,0x183)],m),v;try{v=await fetch(f,{...g,'headers':n,'signal':p});}catch(C){throw h[aN(-0x230,-0x235,-0x279,-0x22c)]?.[aN(-0x21f,-0x230,-0x268,-0x1e5)]?new c(aO(0x180,0x197,0x18e,0x1bb),aN(-0x1b0,-0x1a7,-0x18f,-0x166)):p?.[aN(-0x203,-0x230,-0x22a,-0x1f1)]&&!h['signal']?.[aN(-0x253,-0x230,-0x245,-0x238)]?new M(aN(-0x1e8,-0x1fb,-0x1da,-0x207)+m+'ms):\x20'+f,m):new k(aO(0x20b,0x1c8,0x1f8,0x1d1)+'\x20'+f,C instanceof Error?C:void(-0x7*-0x4f+0x7df+-0xa08));}finally{u();}function aN(d,e,f,g){return ak(d,e-0xad,f-0xea,e- -0x36c);}if(!v['ok']){let O=await v[aN(-0x1ec,-0x1fd,-0x20d,-0x242)]()[aN(-0x1ad,-0x1d1,-0x188,-0x183)](()=>'');throw B(v[aN(-0x187,-0x1da,-0x218,-0x1f1)],O);}return v;}async[aj(-0x38,-0x4a,-0xc1,-0x8d)+ak(0x128,0x16b,0x13c,0x165)](d,f={},g={}){let h=g['retry']===!(0x1149+-0x9*0x1fd+0x1*0x9d)?{'maxRetries':0x0}:g[aP(0x31b,0x332,0x319,0x35e)]??{'maxRetries':this.#t,'baseDelayMs':this.#n,'maxDelayMs':this.#r};function aP(d,e,f,g){return aj(f,e-0x14,f-0x10d,g-0x3c1);}function aQ(d,e,f,g){return ak(g,e-0x1d4,f-0xcd,f- -0x16b);}return N(()=>this[aQ(-0x5f,-0x15,-0x1f,-0x3a)](d,f,g),h);}#o(d,f){let g=f>0x1*-0x1e2f+0x264e*-0x1+-0x1*-0x447d;if(!d&&!g)return{'signal':void(0x1c9c+-0x2*0x39b+-0x1566),'cleanup':()=>{}};function aS(d,e,f,g){return ak(d,e-0x14a,f-0x59,f- -0x262);}if(!g)return{'signal':d,'cleanup':()=>{}};function aR(d,e,f,g){return aj(g,e-0xcd,f-0x9e,f-0x3a6);}let h=new AbortController(),l=setTimeout(()=>h['abort'](),f),m=()=>h['abort']();return d&&(d['aborted']?h[aR(0x317,0x300,0x2e9,0x337)]():d[aS(-0x13a,-0xd5,-0x120,-0x129)+aR(0x30d,0x36e,0x359,0x3a9)](aR(0x32c,0x2ef,0x2e9,0x29e),m,{'once':!(0x1c97+-0x19*-0xbe+-0x2f25)})),{'signal':h[aR(0x2b7,0x285,0x2cf,0x293)],'cleanup':()=>{clearTimeout(l),d&&d['removeEven'+'tListener']('abort',m);}};}};async function*q(g,h={}){function aT(d,e,f,g){return aj(g,e-0xe4,f-0x165,f- -0x18d);}let X=g['body']?.[aT(-0x22c,-0x24b,-0x1fa,-0x1d9)]();function aU(d,e,f,g){return ak(e,e-0x17a,f-0x117,f- -0x3e5);}if(!X)throw new Error(aT(-0x21d,-0x1d3,-0x1e2,-0x1b1)+aT(-0x22f,-0x1b4,-0x1ec,-0x212));let Z=new TextDecoder(),a0='',a1=[],a2,a3,a4,a5=h[aT(-0x284,-0x228,-0x238,-0x22c)+aT(-0x26a,-0x26b,-0x268,-0x27e)]??0x783*0x17+0xe7*0x192+0x2b05*-0x7,a6=h['stopOnDone']!==!(0x4c*0x67+0x114d+-0xbf8*0x4),a7=!(-0x72d*0x1+-0x1*-0x1aee+0x40*-0x4f);function*a8(){function aV(d,e,f,g){return aT(d-0x103,e-0xe4,g-0xd9,e);}if(a1[aV(-0x15a,-0x1d3,-0x1ad,-0x181)]===0x1fea+-0x1*0x117a+-0xe70){a2=void(0x1a69+-0xb2c+-0xf3d),a3=void(-0xd35*-0x1+0x1*0x1fdb+-0x70*0x67),a4=void(0xea0+0x1*0x261b+-0x34bb);return;}function aW(d,e,f,g){return aU(d-0x111,d,f-0x28d,g-0x14b);}let ab={'data':a1[aW(0x1a,0x1f,0x1a,-0x2f)]('\x0a')};a2&&(ab[aV(-0x168,-0x1bd,-0x1b4,-0x16e)]=a2),a3&&(ab['id']=a3),a4!==void(-0x22bc+-0x2bd+0x35*0xb5)&&(ab[aV(-0xd4,-0xf8,-0x133,-0x117)]=a4),a1=[],a2=void(-0x25e*0x3+-0x1c34+0x11a7*0x2),a3=void(-0xdf4*0x2+-0x1017+-0x2bff*-0x1),a4=void(-0x2*-0x7bb+0x10ca+-0xac*0x30),a6&&ab['data']===aV(-0x1c6,-0x14f,-0x14d,-0x19a)&&(a7=!(0x54d+-0x1fdc+-0x20b*-0xd)),yield ab;}function*a9(ab){let ac=ab[aX(0x12b,0x119,0x129,0x17d)]('\x0d')?ab[aX(0xb8,0xaa,0x91,0x4b)](-0x693+-0xbfb+0x128e,-(0x2289+-0x93a+-0x194e)):ab;if(ac===''){yield*a8();return;}if(ac[aY(0x90,0xc5,0xa4,0x7b)](':'))return;function aY(d,e,f,g){return aT(d-0x174,e-0xcc,d-0x2a2,f);}let ad=ac[aX(0xeb,0xc2,0xc9,0x103)](':');function aX(d,e,f,g){return aT(d-0x1e9,e-0x1a9,f-0x30e,d);}if(ad===-(0xfc4+-0xe3*0x10+0x1*-0x193)){aa(ac,'');return;}let ae=ac['slice'](0x11e6+-0x3*-0x789+-0x2881,ad),af=ac[aY(0x25,0x6e,0x4,-0x1b)](ad+(0x10*-0x2+-0xa1c*0x2+0x1459));af[aY(0x90,0xa7,0xba,0x60)]('\x20')&&(af=af[aX(0x56,0x97,0x91,0x93)](0x2*0x1d3+0x112+-0x4b7)),aa(ae,af);}function aa(ab,ac){function b0(d,e,f,g){return aT(d-0xb9,e-0x1d9,f-0x719,d);}function aZ(d,e,f,g){return aT(d-0x1d9,e-0x189,e-0x21f,d);}switch(ab){case aZ(-0x20,-0x28,-0x68,-0x75):a2=ac;break;case aZ(-0x5f,-0x3d,-0x68,-0x52):a1[aZ(0x47,0x24,0x35,0x71)](ac);break;case'id':a3=ac;break;case b0(0x529,0x539,0x529,0x544):{let ad=Number(ac);Number['isFinite'](ad)&&(a4=ad);break;}default:break;}}try{for(;;){if(h['signal']?.[aT(-0x294,-0x2a9,-0x25f,-0x298)])return;let ab=await J(X,a5,h[aT(-0x260,-0x218,-0x264,-0x295)]);if(ab===null)return;let {done:ac,value:ad}=ab;if(ac){if(a0+=Z['decode'](),a0[aU(-0x2e6,-0x264,-0x2a4,-0x299)]>0x47*-0x71+-0x18d*0x19+0x1187*0x4){let af=a0[aT(-0x202,-0x1cd,-0x1e5,-0x19c)]('\x0d')?a0['slice'](0x2*0x73a+0x914+0x2*-0xbc4,-(0xc2d*-0x3+-0x8f8+0x2d80)):a0;af!==''&&(yield*a9(af)),a0='';}return yield*a8(),void(-0x5*0x40b+-0x1fca*0x1+0x3401);}a0+=Z[aU(-0x276,-0x257,-0x279,-0x26e)](ad,{'stream':!(0x15*-0x15+-0x36e+0x527)});let ae;for(;(ae=a0[aU(-0x2d3,-0x299,-0x28f,-0x2d0)]('\x0a'))!==-(-0x1*-0x1d86+-0x1863+-0x6*0xdb);){let ag=a0[aU(-0x285,-0x290,-0x2c7,-0x272)](-0xe68+-0x13*-0x15b+0x53*-0x23,ae);if(a0=a0[aU(-0x27e,-0x2d7,-0x2c7,-0x2ef)](ae+(0xe3b*-0x2+0x133+0x1b44)),yield*a9(ag),a7)return;}}}finally{X['releaseLoc'+'k']();}}function ak(d,e,f,g){return b(g-0x7,d);}function J(d,f,g){function b1(d,e,f,g){return aj(d,e-0x1ee,f-0xd3,g-0x3f7);}return g?.[b1(0x364,0x2f5,0x32f,0x325)]?Promise['resolve'](null):new Promise((h,l)=>{let m=!(-0x1be6+-0x1*0x6a3+-0x228a*-0x1),p=setTimeout(()=>{function b2(d,e,f,g){return b(g-0x1f5,e);}m||(m=!(0x1bf2+-0x1867+-0x38b),l(new R('流式空闲超时('+f+b2(0x331,0x32f,0x32a,0x366),f)));},f),u=()=>{m||(m=!(-0x5c*-0x36+0x2e*0x17+-0x178a),clearTimeout(p),h(null));};function b4(d,e,f,g){return b1(e,e-0x1ac,f-0x97,f- -0x238);}function b3(d,e,f,g){return b1(d,e-0x139,f-0xc5,f- -0x395);}g&&g[b3(-0x84,-0x46,-0x6a,-0x7a)+b3(0x49,0x25,0x15,-0x39)]('abort',u,{'once':!(0x4*-0x210+-0xcd+-0x1*-0x90d)}),d[b3(-0x43,-0x47,-0x21,0x24)]()[b3(-0x5c,0x17,-0x18,-0x3b)](v=>{function b5(d,e,f,g){return b3(g,e-0x1d7,d-0x3de,g-0x18a);}function b6(d,e,f,g){return b4(d-0x29,d,e- -0x238,g-0x9e);}m||(m=!(0x242d+-0x1*-0x170f+-0x37c*0x11),clearTimeout(p),g&&g[b5(0x358,0x390,0x39d,0x34b)+'tListener'](b6(-0x187,-0x136,-0xff,-0x156),u),h(v));})['catch'](v=>{function b8(d,e,f,g){return b4(d-0xd8,f,e- -0x16e,g-0x95);}function b7(d,e,f,g){return b4(d-0x1,e,f-0x3c2,g-0x24);}m||(m=!(0xfdd+0x5c0+-0x1*0x159d),clearTimeout(p),g&&g[b7(0x4d9,0x4cb,0x499,0x47c)+'tListener'](b7(0x4ee,0x4eb,0x4c4,0x4a0),u),l(v));});});}async function*$(f,g,h,m,p){function b9(d,e,f,g){return ak(d,e-0x1c,f-0xf0,e- -0x3ae);}let u=g+(b9(-0x19e,-0x1f2,-0x1b1,-0x208)+'letions'),v=p?.[ba(-0x130,-0x14a,-0x14d,-0x183)+'tMs']??0x1754+0x6291+0x707b,C=await f['requestWit'+ba(-0x113,-0x11b,-0x14b,-0x19f)](u,{'method':ba(-0xc6,-0x144,-0xf5,-0xf3),'headers':{'Authorization':ba(-0x1be,-0x170,-0x175,-0x151)+h},'body':JSON[b9(-0x267,-0x24a,-0x20b,-0x233)](m)},{'signal':p?.[ba(-0x1ad,-0x154,-0x179,-0x174)]});function ba(d,e,f,g){return aj(g,e-0x17,f-0x16a,f- -0xa2);}for await(let O of q(C,{'idleTimeoutMs':v,'signal':p?.[ba(-0x178,-0x197,-0x179,-0x155)]})){if(O['data']==='[DONE]')return;let P;try{P=JSON['parse'](O[ba(-0x18e,-0x18f,-0x171,-0x149)]);}catch{continue;}yield P;}}async function j(d,f,g){let h=await(await d[bb(0x63,0xa2,0xa8,0xed)](f+('/user/bala'+bb(0xf4,0xc3,0xc6,0xd5)),{'method':bc(0x33b,0x32d,0x340,0x375),'headers':{'Authorization':bb(0xcb,0x91,0xb9,0xb8)+g}}))[bb(0x44,0x7b,0x44,0x5f)]();function bc(d,e,f,g){return aj(f,e-0x153,f-0x5d,g-0x3c1);}function bb(d,e,f,g){return aj(g,e-0x85,f-0x181,e-0x164);}return{'isAvailable':h[bb(0x138,0xee,0x134,0xd8)+'le'],'balances':h['balance_in'+'fos']['map'](i=>({'currency':i[bb(0xfc,0x108,0xb6,0xfb)],'totalBalance':Number(i['total_bala'+bc(0x2dc,0x316,0x31a,0x320)]),'grantedBalance':Number(i[bc(0x3a2,0x349,0x378,0x370)+'lance']),'toppedUpBalance':Number(i[bb(0xf3,0xa0,0xcd,0x83)+bc(0x2ee,0x353,0x316,0x310)])}))};}function z(d){function bd(d,e,f,g){return ak(g,e-0x1ac,f-0x42,e- -0x293);}return d[bd(-0x105,-0x146,-0x10d,-0x16b)](f=>{function be(d,e,f,g){return bd(d-0x1f2,e-0x399,f-0xb,f);}function bf(d,e,f,g){return bd(d-0x9b,e-0x126,f-0x11b,g);}let g={'role':f[be(0x22b,0x270,0x285,0x283)],'content':f[bf(-0x53,-0x30,-0x7c,-0x3f)]||null};return f[bf(0x5d,0x18,0x5,0x21)]&&(g['name']=f[bf(0x45,0x18,0x7,0x22)]),f[be(0x29a,0x258,0x2a4,0x256)]&&(g[bf(-0x1e,-0xd,-0x5e,-0x19)+'id']=f[bf(0x28,-0x1b,-0x57,-0x3c)]),f['toolCalls']&&f['toolCalls'][bf(-0x33,-0x2c,0x3,0x9)]>0x11d9+0x6b*0x5+-0x13f0&&(g[bf(-0x52,-0x3b,-0x5a,0xe)]=f[bf(0x21,0x23,0x6c,0x66)]['map'](h=>({'id':h['id'],'type':bf(-0x3,-0x4a,-0x50,-0x60),'function':{'name':h[be(0x2cb,0x28b,0x27a,0x236)],'arguments':h[be(0x266,0x294,0x268,0x2c6)]}}))),g;});}var w=class{#e=new Map();[aj(-0x6b,-0x89,-0x9,-0x5d)](){function bg(d,e,f,g){return ak(e,e-0x81,f-0x1b9,g-0x3c3);}this.#e[bg(0x506,0x4e3,0x54c,0x51b)]();}['mapEvent'](f){function bh(d,e,f,g){return aj(e,e-0x1d6,f-0xed,f-0x26);}let g=f['choices']?.[-0x295*0x3+-0x3b*0x2+0xbf*0xb];if(!g)return[];let h=[],m=g[bh(-0xd6,-0x7b,-0xa2,-0x6a)],n=m?.[bi(-0x6b,-0x66,-0x54,-0x4e)]??'',p=m?.[bi(-0x72,-0xa4,-0x4c,-0x51)+'content']??'',u=this.#t(g[bh(-0xe,-0x84,-0x45,-0x66)+'son']);function bi(d,e,f,g){return ak(e,e-0x1a6,f-0x197,g- -0x18b);}if(m?.[bh(-0xd7,-0xc7,-0xb6,-0x98)]){for(let O of m['tool_calls'])this.#n(O);}let v;f['usage']&&(v={'promptTokens':f[bh(-0xba,-0x76,-0x80,-0x9a)][bh(-0x7e,-0x8d,-0xbe,-0x85)+bi(-0x10,-0x90,-0x4e,-0x5c)],'completionTokens':f[bh(-0xb3,-0x30,-0x80,-0xce)][bi(0x31,0x41,0x4f,0x14)+'_tokens'],'cachedPromptTokens':f[bi(-0xb,-0xf,-0x61,-0x23)]['prompt_cac'+'he_hit_tok'+bi(-0x32,-0x8d,-0x63,-0x5c)]});let C=u===bi(-0x47,-0x24,-0x43,-0x59)&&this.#e[bi(0x2f,0x6f,0x38,0x2c)]>0x1d51+0x1e98+-0x3be9;return!n&&!p&&u===null&&!C&&!v?[]:(h[bi(0x4f,0x6,0x47,0x15)]({'content':n,...p?{'reasoningContent':p}:{},'finishReason':u,...C?{'toolCalls':[...this.#e[bh(-0xa3,-0xa6,-0x78,-0x67)]()]}:{},...v?{'usage':v}:{}}),C&&this.#e[bh(-0x96,-0xe5,-0x90,-0x89)](),h);}#t(d){function bk(d,e,f,g){return ak(f,e-0x57,f-0x1ad,d- -0x27f);}function bj(d,e,f,g){return aj(f,e-0xef,f-0x153,g-0x22c);}switch(d){case bj(0x16d,0x197,0x1ab,0x157):return bk(-0x146,-0x197,-0x191,-0x11d);case bk(-0x14d,-0x19a,-0x168,-0x114):return'tool_calls';case'length':return bj(0x1a8,0x186,0x13d,0x15f);default:return null;}}#n(d){function bl(d,e,f,g){return aj(d,e-0x1bb,f-0x174,f-0x526);}function bm(d,e,f,g){return aj(f,e-0x1ad,f-0x1a7,d-0x10a);}let f=d[bl(0x491,0x448,0x486,0x49a)]??-0x93d+-0x188+0x3*0x397,g=this.#e[bl(0x485,0x43c,0x441,0x42e)](f);g?(d['id']&&(g['id']=d['id']),d['function']?.[bm(0x81,0x34,0x6f,0x30)]&&(g[bl(0x4e3,0x4bf,0x49d,0x4a2)]=d[bl(0x3e8,0x455,0x43b,0x47c)][bm(0x81,0x4c,0x44,0x60)]),d[bl(0x44b,0x485,0x43b,0x472)]?.['arguments']&&(g['arguments']+=d[bm(0x1f,-0x27,-0x28,-0x18)][bm(0x8a,0xb7,0x36,0xbd)])):this.#e[bl(0x491,0x42f,0x43f,0x469)](f,{'id':d['id']??'','name':d[bl(0x476,0x41f,0x43b,0x429)]?.[bl(0x470,0x456,0x49d,0x489)]??'','arguments':d['function']?.[bl(0x4ab,0x468,0x4a6,0x4f3)]??''});}},H=class{#e;#t;#n;#r;#o;#s=new w();[ak(0x1d2,0x173,0x1d4,0x185)]='deepseek';constructor(d){function bo(d,e,f,g){return ak(f,e-0xd1,f-0x167,d-0xf6);}function bn(d,e,f,g){return ak(e,e-0xea,f-0x1ca,d- -0x243);}this.#e=d['apiKey'],this.#t=d[bn(-0x97,-0xc4,-0xa7,-0x72)][bo(0x280,0x298,0x25c,0x268)](/\/+$/,''),this.#n=d[bn(-0xf5,-0x133,-0xf0,-0x10c)],this.#o=d[bo(0x259,0x2a7,0x21b,0x209)+bo(0x229,0x243,0x1e8,0x231)]??-0x6d8+0x18d4f+0x509*-0x1f,this.#r=new D({'connectTimeoutMs':d[bn(-0xe7,-0x9b,-0x120,-0x104)+bn(-0x124,-0xd6,-0x16f,-0x16c)],'maxRetries':d[bn(-0xc8,-0xf6,-0xc3,-0xd9)],'retryBaseDelayMs':d[bn(-0xd0,-0xcb,-0xa8,-0x94)+bo(0x278,0x253,0x2c6,0x294)],'retryMaxDelayMs':d[bo(0x22c,0x204,0x1d8,0x265)+'layMs']});}['model'](){return this.#n;}[ak(0x19c,0x1c5,0x1ec,0x1b3)+'s'](d){return A(d);}async[ak(0x143,0x176,0x12a,0x12b)](){return j(this.#r,this.#t,this.#e);}async*['chat'](d,f){let g=z(d),h={'model':this.#n,'messages':g,'stream':!(0x274*-0x1+-0xf71+-0x11e5*-0x1),'max_tokens':f?.['maxTokens'],'temperature':f?.['temperatur'+'e'],'thinking':f?.[bp(0x21d,0x1ed,0x1bb,0x1db)+bq(0x204,0x1b1,0x1f4,0x1e6)]!==void(-0x250c+-0x11d0+-0x2*-0x1b6e)?{'type':f[bq(0x1f4,0x221,0x22f,0x1e9)+bq(0x226,0x238,0x1f4,0x1df)]?bp(0x1cf,0x1fe,0x1bb,0x1c0):bp(0x1ed,0x17e,0x1f6,0x1ca)}:void(0x1*0xc6c+-0x736+-0x17*0x3a),'reasoning_effort':f?.[bq(0x17a,0x147,0x199,0x1d7)+'fort'],'response_format':f?.[bq(0x192,0x1bd,0x197,0x171)+'rmat']?{'type':f[bq(0x165,0x180,0x197,0x1b8)+'rmat']}:void(0x75*0xc+0x2326+-0x28a2),'tool_choice':f?.['toolChoice']};function bq(d,e,f,g){return aj(g,e-0x1cc,f-0x1a0,f-0x285);}f?.[bq(0x19c,0x1bf,0x1de,0x1d3)]&&f[bq(0x220,0x222,0x1de,0x1ee)][bp(0x13f,0x199,0x16c,0x164)]>0x1a3b+0xffb*0x1+-0x2a36&&(h[bp(0x168,0x141,0x188,0x18a)]=f[bq(0x1df,0x198,0x1de,0x1b0)]),this.#s[bq(0x1fa,0x210,0x228,0x1e5)]();function bp(d,e,f,g){return ak(e,e-0x13c,f-0x11c,g-0x23);}let m=$(this.#r,this.#t,this.#e,h,{'signal':f?.['signal'],'idleTimeoutMs':this.#o});for await(let n of m){let p=this.#s[bp(0x1f4,0x1c4,0x1f1,0x1aa)](n);for(let u of p)yield u;}}};export{S as a,V as b,Y as c,A as d,Q as e,I as f,w as g,H as h};
@@ -0,0 +1,2 @@
1
+ import{g as a,h as b}from"./chunk-CV3ZB5VV.js";export{a as DeepSeekEventMapper,b as DeepSeekProvider};
2
+ //# sourceMappingURL=deepseek-J25J2QL5.js.map