@kyro-cms/core 0.12.43 → 0.12.45
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.
- package/dist/{WebhookService-C19xR8qE.d.ts → WebhookService-CZf_na-J.d.ts} +1 -1
- package/dist/{WebhookService-BBcCHBo8.d.cts → WebhookService-DgIx21X-.d.cts} +1 -1
- package/dist/api-handler-graphql.cjs +1 -1
- package/dist/api-handler-graphql.js +2 -1
- package/dist/api-handler-trpc.cjs +1 -1
- package/dist/api-handler-trpc.js +2 -1
- package/dist/api-handler.cjs +1 -1
- package/dist/api-handler.js +1 -1
- package/dist/{base-yXdYZxFK.d.ts → base-7vJMzr4V.d.ts} +1 -1
- package/dist/{base-C2iwjdJQ.d.cts → base-DDEmdRqV.d.cts} +1 -1
- package/dist/bcryptjs-AZA6WEN2.js +2 -0
- package/dist/bcryptjs-WIQSWJGK.cjs +1 -0
- package/dist/better-sqlite3-42Q3FG3E.js +2 -0
- package/dist/better-sqlite3-5IISPX34.cjs +1 -0
- package/dist/bootstrap-7CI3NVSY.js +1 -0
- package/dist/bootstrap-DOOM2CNQ.cjs +1 -0
- package/dist/bowser-FI5JQGKZ.js +11 -0
- package/dist/bowser-VX6B6ZSE.cjs +10 -0
- package/dist/chokidar-24HVS6XD.cjs +5 -0
- package/dist/chokidar-43DT7CVN.js +6 -0
- package/dist/chunk-26Q7JXM4.cjs +3 -0
- package/dist/chunk-2BUODBE2.js +2 -0
- package/dist/chunk-2WFTETFB.js +2 -0
- package/dist/chunk-35PGCW3S.cjs +1 -0
- package/dist/chunk-3VXEK5ZW.cjs +1 -0
- package/dist/chunk-45TJAB5X.js +301 -0
- package/dist/chunk-5DWYVUQR.cjs +1 -0
- package/dist/chunk-5LPNEYK5.cjs +1 -0
- package/dist/chunk-66BJXVFJ.js +2 -0
- package/dist/chunk-6KRR7YHA.js +2 -0
- package/dist/chunk-6KUL2BSA.cjs +133 -0
- package/dist/chunk-6MSS5X77.js +2 -0
- package/dist/chunk-6QWLXJ7L.js +2 -0
- package/dist/chunk-6V3AP7HR.cjs +269 -0
- package/dist/chunk-73D2PNHD.cjs +7 -0
- package/dist/chunk-7ACHOBWY.cjs +13 -0
- package/dist/chunk-7AQSH3KR.js +2 -0
- package/dist/chunk-7GGZA5YU.cjs +2 -0
- package/dist/chunk-7I6URA6F.js +4 -0
- package/dist/chunk-7JWQ2PZP.cjs +1 -0
- package/dist/chunk-7SSFHJTR.js +57 -0
- package/dist/chunk-7T35572E.js +75 -0
- package/dist/chunk-7V67ONUD.js +4 -0
- package/dist/chunk-7WMMKGEO.cjs +1 -0
- package/dist/chunk-A73AVVFR.js +11 -0
- package/dist/chunk-AK754S3T.cjs +2 -0
- package/dist/chunk-AMGJ5AFH.cjs +1 -0
- package/dist/chunk-ATBH763U.js +2 -0
- package/dist/chunk-B3GDQ7UI.cjs +114 -0
- package/dist/chunk-BAVN7VDR.cjs +1 -0
- package/dist/chunk-BCEE4NBZ.cjs +2 -0
- package/dist/{chunk-J4252I5B.cjs → chunk-BHR7OAU4.cjs} +4 -4
- package/dist/chunk-BLH2MRK4.js +2 -0
- package/dist/chunk-BPMA2ECA.js +10 -0
- package/dist/chunk-BUNLC3II.cjs +1 -0
- package/dist/chunk-C2PXMVR5.js +2 -0
- package/dist/chunk-CGPAS4U5.js +4 -0
- package/dist/chunk-DS5DE5BU.js +2 -0
- package/dist/chunk-DUO523BH.cjs +1 -0
- package/dist/chunk-DVWYO3KK.cjs +1 -0
- package/dist/chunk-E27KEZPT.js +2 -0
- package/dist/chunk-EHWUALGH.cjs +1 -0
- package/dist/chunk-EN65ZEK2.cjs +2 -0
- package/dist/chunk-EOOZDOL7.js +3 -0
- package/dist/chunk-EZIDQBXI.cjs +1 -0
- package/dist/chunk-F4ITQ6XQ.cjs +3 -0
- package/dist/chunk-FLM37UVD.js +2 -0
- package/dist/chunk-GIS6X43A.cjs +3 -0
- package/dist/chunk-GNEVCEJU.cjs +3 -0
- package/dist/chunk-GNOSG3PK.cjs +1 -0
- package/dist/chunk-HLAEJB5R.js +384 -0
- package/dist/chunk-HPYH7GTS.cjs +1 -0
- package/dist/chunk-HT44I66C.js +24 -0
- package/dist/chunk-HTYVI2HK.cjs +9 -0
- package/dist/chunk-ICVQWR2A.js +2 -0
- package/dist/chunk-IP6JUEH3.js +3 -0
- package/dist/chunk-IPXOY4RI.js +2 -0
- package/dist/chunk-J6U5LWZ7.js +11 -0
- package/dist/{chunk-UHFDH3PG.js → chunk-JT36FTHY.cjs} +4 -4
- package/dist/chunk-JUJZOG6P.js +2 -0
- package/dist/{chunk-2BTRHVT3.cjs → chunk-K7YNEKVE.js} +5 -4
- package/dist/chunk-KCHPADCH.cjs +7 -0
- package/dist/chunk-KH7LM52S.js +3 -0
- package/dist/chunk-LEBM6ZSZ.cjs +10 -0
- package/dist/chunk-LQ3YZTPU.cjs +15 -0
- package/dist/chunk-LY7N3UHH.cjs +23 -0
- package/dist/chunk-M6ESQ5TE.cjs +56 -0
- package/dist/chunk-MCZ3YZ2L.js +2 -0
- package/dist/chunk-MP5VC5ER.cjs +1 -0
- package/dist/chunk-MVX2PYJJ.cjs +1 -0
- package/dist/chunk-MY42EWZP.js +2 -0
- package/dist/chunk-MZOWPV4D.js +20 -0
- package/dist/chunk-NGNJSUGL.cjs +1 -0
- package/dist/chunk-NWCREF47.js +3 -0
- package/dist/chunk-OMWQVPV7.js +14 -0
- package/dist/chunk-ORG67NXX.js +3 -0
- package/dist/chunk-OSAVAYJZ.js +16 -0
- package/dist/chunk-P7XYIKL6.cjs +300 -0
- package/dist/chunk-PBOZJOKN.js +2 -0
- package/dist/chunk-PITMDQYN.cjs +18 -0
- package/dist/chunk-PL5AIE6F.js +2 -0
- package/dist/chunk-QC4YXUBT.cjs +383 -0
- package/dist/chunk-QDHP5E4P.cjs +2 -0
- package/dist/chunk-QYI3GOHF.cjs +1 -0
- package/dist/chunk-R3NEPC4I.js +3 -0
- package/dist/chunk-R4LXRAMX.js +2 -0
- package/dist/chunk-S5HTTLN7.cjs +2 -0
- package/dist/chunk-STX5V7HG.cjs +20 -0
- package/dist/chunk-SVYUTQVE.js +115 -0
- package/dist/chunk-SYEP5QLG.js +19 -0
- package/dist/chunk-TR3ZS3T3.js +3 -0
- package/dist/chunk-UB5TJHQR.js +2 -0
- package/dist/chunk-UD6ZPO7T.js +2 -0
- package/dist/chunk-UK43ADRO.js +270 -0
- package/dist/chunk-UNYXWPLZ.cjs +2 -0
- package/dist/chunk-VBPAAQEF.js +2 -0
- package/dist/chunk-VIUU4D5I.js +2 -0
- package/dist/chunk-VJ2WMKPK.js +21 -0
- package/dist/chunk-VOQUO2EZ.cjs +74 -0
- package/dist/chunk-VQ53TFYA.cjs +1 -0
- package/dist/chunk-VRZC4TTF.cjs +1 -0
- package/dist/chunk-W46LZ4MY.js +2 -0
- package/dist/chunk-WCFHS7EZ.cjs +1 -0
- package/dist/chunk-WGESLAWV.js +8 -0
- package/dist/chunk-WSP7PSXC.js +8 -0
- package/dist/chunk-X54XZACS.cjs +10 -0
- package/dist/{chunk-Q2UYCYKV.js → chunk-XBH4YMC7.js} +5 -4
- package/dist/chunk-XDE7CFV6.cjs +19 -0
- package/dist/chunk-XOACKBG7.js +4 -0
- package/dist/chunk-XPPVX4GQ.cjs +1 -0
- package/dist/chunk-ZJE3VAAW.js +134 -0
- package/dist/chunk-ZO3YB5DK.cjs +1 -0
- package/dist/chunk-ZOVH6QT5.cjs +1 -0
- package/dist/chunk-ZYDOF65Q.cjs +1 -0
- package/dist/cli/index.cjs +197 -78
- package/dist/cli/index.js +198 -78
- package/dist/client.cjs +1 -1
- package/dist/client.d.cts +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +2 -1
- package/dist/d1-5ZQJOFDX.cjs +1 -0
- package/dist/d1-VPH75GI2.js +2 -0
- package/dist/dist-es-3SSNUZST.cjs +1 -0
- package/dist/dist-es-6SVFVYN3.js +1 -0
- package/dist/dist-es-6TQTDPE7.js +2 -0
- package/dist/dist-es-A5OF2STN.cjs +2 -0
- package/dist/dist-es-BOW5V247.cjs +6 -0
- package/dist/dist-es-CRIMATLL.cjs +2 -0
- package/dist/dist-es-DL3VLVP6.cjs +1 -0
- package/dist/dist-es-EMUQ6ZNZ.js +3 -0
- package/dist/dist-es-MNIQZC4U.js +2 -0
- package/dist/dist-es-P25IKLBI.cjs +1 -0
- package/dist/dist-es-SJ76GYCI.js +2 -0
- package/dist/dist-es-SRPWSAF4.cjs +1 -0
- package/dist/dist-es-T2H2W5BX.cjs +3 -0
- package/dist/dist-es-TX4DBXEW.js +3 -0
- package/dist/dist-es-U4ZB3ZDA.js +7 -0
- package/dist/dist-es-XZBHIIKY.js +4 -0
- package/dist/drizzle/index.cjs +1 -1
- package/dist/drizzle/index.d.cts +2 -2
- package/dist/drizzle/index.d.ts +2 -2
- package/dist/drizzle/index.js +1 -1
- package/dist/drizzle-orm-47ELDEM6.cjs +1 -0
- package/dist/drizzle-orm-7YTX5NTT.js +1 -0
- package/dist/event-streams-25YJ2Z6R.js +1 -0
- package/dist/event-streams-JBMWCI2O.cjs +1 -0
- package/dist/fields/index.cjs +1 -1
- package/dist/fields/index.js +1 -1
- package/dist/fs-DGKZLRM6.cjs +1 -0
- package/dist/fs-YZJ5FM6J.js +2 -0
- package/dist/graphql/index.cjs +1 -1
- package/dist/graphql/index.d.cts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/graphql/index.js +1 -1
- package/dist/{index-DTz6u7w9.d.cts → index-BJ1rwHxk.d.cts} +1 -1
- package/dist/{index-BeQtbl3z.d.ts → index-BTjlptCL.d.ts} +1 -1
- package/dist/index.cjs +28 -46
- package/dist/index.d.cts +23 -9
- package/dist/index.d.ts +23 -9
- package/dist/index.js +29 -46
- package/dist/integration.cjs +1 -1
- package/dist/integration.js +1 -1
- package/dist/jsonwebtoken-DFB6ZBZA.cjs +8 -0
- package/dist/jsonwebtoken-S7BG2YWK.js +9 -0
- package/dist/lib-5QYYN6ML.cjs +12 -0
- package/dist/lib-IYW32OER.js +13 -0
- package/dist/loadSso-JY4WDQPS.cjs +2 -0
- package/dist/loadSso-YTG2GQGW.js +3 -0
- package/dist/local-VDCSEMC2.js +1 -0
- package/dist/local-YCWBUF3R.cjs +1 -0
- package/dist/media-3Z6YW5J4.cjs +1 -0
- package/dist/media-HK2IZMUZ.js +1 -0
- package/dist/mongo-auth-adapter-7K64Y2QM.cjs +1 -0
- package/dist/mongo-auth-adapter-BUKINEZL.js +1 -0
- package/dist/mongodb/index.cjs +1 -1
- package/dist/mongodb/index.d.cts +2 -2
- package/dist/mongodb/index.d.ts +2 -2
- package/dist/mongodb/index.js +1 -1
- package/dist/nodemailer-AXROO37D.js +54 -0
- package/dist/nodemailer-IDML4L6W.cjs +53 -0
- package/dist/postgres-auth-adapter-2M4RNEY3.cjs +1 -0
- package/dist/postgres-auth-adapter-MKSHIJDL.js +1 -0
- package/dist/postgres-js-3Y54EXVQ.cjs +1 -0
- package/dist/postgres-js-INQPBHJP.js +1 -0
- package/dist/redis-adapter-EGMUN65D.cjs +1 -0
- package/dist/redis-adapter-SXOXLHNH.js +1 -0
- package/dist/rest/index.cjs +1 -1
- package/dist/rest/index.d.cts +5 -5
- package/dist/rest/index.d.ts +5 -5
- package/dist/rest/index.js +1 -1
- package/dist/schema-RT6WSUYC.cjs +1 -0
- package/dist/schema-XC5ISGNR.js +2 -0
- package/dist/signin-KZBIAHGS.js +3 -0
- package/dist/signin-VFBLX7EL.cjs +2 -0
- package/dist/sqlite-adapter-DV7ZX2EJ.js +1 -0
- package/dist/sqlite-adapter-ZTABLT2X.cjs +1 -0
- package/dist/src-6LAUXXDM.cjs +1 -0
- package/dist/src-GZRZ4VAO.js +1 -0
- package/dist/sso-oidc-54BIRYR6.cjs +2 -0
- package/dist/sso-oidc-SX5OIQGG.js +3 -0
- package/dist/sts-HVGDJYIF.js +3 -0
- package/dist/sts-YLXXIB3X.cjs +2 -0
- package/dist/templates/index.cjs +1 -1
- package/dist/templates/index.d.cts +1 -1
- package/dist/templates/index.d.ts +1 -1
- package/dist/templates/index.js +1 -1
- package/dist/trpc/index.cjs +1 -1
- package/dist/trpc/index.d.cts +7 -7
- package/dist/trpc/index.d.ts +7 -7
- package/dist/trpc/index.js +1 -1
- package/dist/{types-CaXXmV9h.d.ts → types-CYGXsNcJ.d.ts} +5 -5
- package/dist/{types-BjivdGbU.d.cts → types-DOKMyC3y.d.cts} +5 -5
- package/dist/ws/index.cjs +1 -1
- package/dist/ws/index.js +1 -1
- package/package.json +2 -2
- package/dist/bootstrap-ROSTPMVL.js +0 -1
- package/dist/bootstrap-WW5NJ6EB.cjs +0 -1
- package/dist/chunk-3CVLI5C5.cjs +0 -3
- package/dist/chunk-3Q2WUG63.cjs +0 -2
- package/dist/chunk-3RSMK4DA.cjs +0 -2
- package/dist/chunk-4IGWJMBY.cjs +0 -2
- package/dist/chunk-4ORJMSJU.cjs +0 -1
- package/dist/chunk-4RMFCTWH.js +0 -1
- package/dist/chunk-5B6X2GBJ.js +0 -2
- package/dist/chunk-5J6HXUF6.js +0 -1
- package/dist/chunk-5KOQYQEE.js +0 -1
- package/dist/chunk-5SEHX7ON.js +0 -1
- package/dist/chunk-6ROHVUXF.js +0 -1
- package/dist/chunk-6SPPR5JZ.js +0 -3
- package/dist/chunk-7IVN6TTY.js +0 -133
- package/dist/chunk-AHSFSERC.cjs +0 -1
- package/dist/chunk-B5XWYVWK.js +0 -1
- package/dist/chunk-BGX27ZRG.cjs +0 -300
- package/dist/chunk-C2W5PSHC.js +0 -300
- package/dist/chunk-CCUQZ66T.cjs +0 -133
- package/dist/chunk-D5P2IPGX.cjs +0 -3
- package/dist/chunk-EPMGPNBE.js +0 -1
- package/dist/chunk-FHJJKFAU.cjs +0 -1
- package/dist/chunk-FVZ5RFLO.js +0 -2
- package/dist/chunk-FZ6Q2EBJ.cjs +0 -20
- package/dist/chunk-G3J2EU5D.cjs +0 -1
- package/dist/chunk-G7SSHELM.cjs +0 -1
- package/dist/chunk-GKYEJ2UF.js +0 -1
- package/dist/chunk-GO34AOBZ.cjs +0 -1
- package/dist/chunk-GYQMNXXW.cjs +0 -114
- package/dist/chunk-HLSB2MCK.js +0 -1
- package/dist/chunk-HQP2Y7QQ.js +0 -251
- package/dist/chunk-HS2KNFAB.cjs +0 -2
- package/dist/chunk-HVXO3OFB.cjs +0 -1
- package/dist/chunk-IETGL7WJ.js +0 -1
- package/dist/chunk-IFJ73O3A.cjs +0 -1
- package/dist/chunk-ILEZ3NYX.cjs +0 -2
- package/dist/chunk-INB4LNA6.js +0 -90
- package/dist/chunk-K6WUOU6P.js +0 -1
- package/dist/chunk-KD7LUCFY.cjs +0 -1
- package/dist/chunk-KDNYHLD2.js +0 -1
- package/dist/chunk-LHW4R367.js +0 -1
- package/dist/chunk-MIOMMB23.cjs +0 -1
- package/dist/chunk-N5VNHUJS.cjs +0 -4
- package/dist/chunk-NRLIGDYF.js +0 -1
- package/dist/chunk-NY47CFVP.cjs +0 -1
- package/dist/chunk-NZJAGASC.cjs +0 -251
- package/dist/chunk-OG7CNQGU.js +0 -1
- package/dist/chunk-PP5S2UBV.js +0 -0
- package/dist/chunk-PP7W5UKL.js +0 -2
- package/dist/chunk-Q3Q7BJVQ.cjs +0 -1
- package/dist/chunk-QCA3AP3M.cjs +0 -1
- package/dist/chunk-QOCHBPMK.js +0 -2
- package/dist/chunk-QYFU5Y7S.js +0 -3
- package/dist/chunk-RHCWCG3O.js +0 -114
- package/dist/chunk-SK2Q4PRV.cjs +0 -90
- package/dist/chunk-TFBHE5FF.cjs +0 -1
- package/dist/chunk-UBRYJP2G.js +0 -1
- package/dist/chunk-V65NPSR5.cjs +0 -1
- package/dist/chunk-VGQ4VUG6.js +0 -2
- package/dist/chunk-W7C6SJXZ.js +0 -20
- package/dist/chunk-WIZ6C5QZ.cjs +0 -1
- package/dist/chunk-ZIWJJRWQ.js +0 -4
- package/dist/chunk-ZUVP4UK7.cjs +0 -1
- package/dist/media-L5XDD47D.js +0 -1
- package/dist/media-OUBQTIQP.cjs +0 -1
- package/dist/mongo-auth-adapter-5TJO5J5U.js +0 -1
- package/dist/mongo-auth-adapter-JVE5M3S4.cjs +0 -1
- package/dist/postgres-auth-adapter-33QOIRXT.js +0 -1
- package/dist/postgres-auth-adapter-JKDYYULH.cjs +0 -1
- package/dist/redis-adapter-NN3H4GRX.js +0 -1
- package/dist/redis-adapter-OUKQGYCH.cjs +0 -1
- package/dist/schema-HIUSHSUI.cjs +0 -1
- package/dist/schema-KFYUM674.js +0 -1
- package/dist/sqlite-adapter-GTTVSXRV.cjs +0 -1
- package/dist/sqlite-adapter-UPANATIW.js +0 -1
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
'use strict';var chunkBUNLC3II_cjs=require('./chunk-BUNLC3II.cjs');var $e=chunkBUNLC3II_cjs.c((la,We)=>{chunkBUNLC3II_cjs.h();var Qe=chunkBUNLC3II_cjs.a("url"),Ke=1800,Y=class{constructor(e){this.options=e||{},this.cookies=[];}set(e,t){let s=Qe.parse(t||""),i=this.parse(e),n;return i.domain?(n=i.domain.replace(/^\./,""),(s.hostname.length<n.length||("."+s.hostname).substr(-n.length+1)!=="."+n)&&(i.domain=s.hostname)):i.domain=s.hostname,i.path||(i.path=this.getPath(s.pathname)),i.expires||(i.expires=new Date(Date.now()+(Number(this.options.sessionTimeout||Ke)||Ke)*1e3)),this.add(i)}get(e){return this.list(e).map(t=>t.name+"="+t.value).join("; ")}list(e){let t=[];for(let s=this.cookies.length-1;s>=0;s--){let i=this.cookies[s];if(this.isExpired(i)){this.cookies.splice(s,1);continue}this.match(i,e)&&t.unshift(i);}return t}parse(e){let t={};return (e||"").toString().split(";").forEach(s=>{let i=s.split("="),n=i.shift().trim().toLowerCase(),a=i.join("=").trim(),r;if(n)switch(n){case "expires":a=new Date(a),a.toString()!=="Invalid Date"&&(t.expires=a);break;case "path":t.path=a;break;case "domain":r=a.toLowerCase(),r.length&&r.charAt(0)!=="."&&(r="."+r),t.domain=r;break;case "max-age":t.expires=new Date(Date.now()+(Number(a)||0)*1e3);break;case "secure":t.secure=true;break;case "httponly":t.httponly=true;break;default:t.name||(t.name=n,t.value=a);}}),t}match(e,t){let s=Qe.parse(t||"");return !(s.hostname!==e.domain&&(e.domain.charAt(0)!=="."||("."+s.hostname).substr(-e.domain.length)!==e.domain)||this.getPath(s.pathname).substr(0,e.path.length)!==e.path||e.secure&&s.protocol!=="https:")}add(e){if(!e||!e.name)return false;for(let t=0,s=this.cookies.length;t<s;t++)if(this.compare(this.cookies[t],e))return this.isExpired(e)?(this.cookies.splice(t,1),false):(this.cookies[t]=e,true);return this.isExpired(e)||this.cookies.push(e),true}compare(e,t){return e.name===t.name&&e.path===t.path&&e.domain===t.domain&&e.secure===t.secure&&e.httponly===t.httponly}isExpired(e){return e.expires&&e.expires<new Date||!e.value}getPath(e){let t=(e||"/").split("/");return t.pop(),t=t.join("/").trim(),t.charAt(0)!=="/"&&(t="/"+t),t.substr(-1)!=="/"&&(t+="/"),t}};We.exports=Y;});var k=chunkBUNLC3II_cjs.c((ma,Pi)=>{Pi.exports={name:"nodemailer",version:"8.0.11",description:"Easy as cake e-mail sending from your Node.js applications",main:"lib/nodemailer.js",scripts:{test:"node --test --test-concurrency=1 $(find test \\( -name '*-test.js' -o -name '*.test.js' \\))","test:coverage":"c8 node --test --test-concurrency=1 $(find test \\( -name '*-test.js' -o -name '*.test.js' \\))",format:'prettier --write "**/*.{js,json,md}"',"format:check":'prettier --check "**/*.{js,json,md}"',lint:"eslint .","lint:fix":"eslint . --fix",update:"rm -rf node_modules/ package-lock.json && ncu -u && npm install","test:syntax":'docker run --rm -v "$PWD:/app:ro" -w /app node:6-alpine node test/syntax-compat.js'},repository:{type:"git",url:"https://github.com/nodemailer/nodemailer.git"},keywords:["Nodemailer"],author:"Andris Reinman",license:"MIT-0",bugs:{url:"https://github.com/nodemailer/nodemailer/issues"},homepage:"https://nodemailer.com/",devDependencies:{"@aws-sdk/client-sesv2":"3.1065.0",bunyan:"1.8.15",c8:"11.0.0",eslint:"10.4.1","eslint-config-prettier":"10.1.8",globals:"17.6.0",libbase64:"1.3.0",libmime:"5.3.8",libqp:"2.1.1",prettier:"3.8.4",proxy:"1.0.2","proxy-test-server":"1.0.0","smtp-server":"3.18.5"},engines:{node:">=6.0.0"}};});var E=chunkBUNLC3II_cjs.c((ha,Z)=>{chunkBUNLC3II_cjs.h();var Ve={ECONNECTION:"Connection closed unexpectedly",ETIMEDOUT:"Connection or operation timed out",ESOCKET:"Socket-level error",EDNS:"DNS resolution failed",ETLS:"TLS handshake or STARTTLS failed",EREQUIRETLS:"REQUIRETLS not supported by server (RFC 8689)",EPROTOCOL:"Invalid SMTP server response",EENVELOPE:"Invalid mail envelope (sender or recipients)",EMESSAGE:"Message delivery error",ESTREAM:"Stream processing error",EAUTH:"Authentication failed",ENOAUTH:"Authentication credentials not provided",EOAUTH2:"OAuth2 token generation or refresh error",EMAXLIMIT:"Pool resource limit reached (max messages per connection)",ESENDMAIL:"Sendmail command error",ESES:"AWS SES transport error",ECONFIG:"Invalid configuration",EPROXY:"Proxy connection error",EFILEACCESS:"File access rejected (disableFileAccess is set)",EURLACCESS:"URL access rejected (disableUrlAccess is set)",EFETCH:"HTTP fetch error"};Z.exports={ERROR_CODES:Ve};for(let o of Object.keys(Ve))Z.exports[o]=o;});var N=chunkBUNLC3II_cjs.c((fa,ee)=>{chunkBUNLC3II_cjs.h();var Ri=chunkBUNLC3II_cjs.a("http"),Bi=chunkBUNLC3II_cjs.a("https"),Xe=chunkBUNLC3II_cjs.a("url"),Di=chunkBUNLC3II_cjs.a("zlib"),{PassThrough:Fi}=chunkBUNLC3II_cjs.a("stream"),Je=$e(),Gi=k(),Qi=chunkBUNLC3II_cjs.a("net"),T=E(),Ki=5;ee.exports=function(o,e){return Ye(o,e)};ee.exports.Cookies=Je;function Ye(o,e){e=e||{},e.fetchRes=e.fetchRes||new Fi,e.cookies=e.cookies||new Je,e.redirects=e.redirects||0,e.maxRedirects=isNaN(e.maxRedirects)?Ki:e.maxRedirects,e.cookie&&([].concat(e.cookie||[]).forEach(d=>{e.cookies.set(d,o);}),e.cookie=false);let t=e.fetchRes,s=Xe.parse(o),i=(e.method||"").toString().trim().toUpperCase()||"GET",n=false,a,r,p=s.protocol==="https:"?Bi:Ri,c={"accept-encoding":"gzip,deflate","user-agent":"nodemailer/"+Gi.version};if(Object.keys(e.headers||{}).forEach(d=>{c[d.toLowerCase().trim()]=e.headers[d];}),e.userAgent&&(c["user-agent"]=e.userAgent),s.auth&&(c.Authorization="Basic "+Buffer.from(s.auth).toString("base64")),(a=e.cookies.get(o))&&(c.cookie=a),e.body){if(e.contentType!==false&&(c["Content-Type"]=e.contentType||"application/x-www-form-urlencoded"),typeof e.body.pipe=="function")c["Transfer-Encoding"]="chunked",r=e.body,r.on("error",d=>{n||(n=true,d.code=T.EFETCH,d.sourceUrl=o,t.emit("error",d));});else {if(e.body instanceof Buffer)r=e.body;else if(typeof e.body=="object")try{r=Buffer.from(Object.keys(e.body).map(d=>{let h=e.body[d].toString().trim();return encodeURIComponent(d)+"="+encodeURIComponent(h)}).join("&"));}catch(d){if(n)return;n=true,d.code=T.EFETCH,d.sourceUrl=o,t.emit("error",d);return}else r=Buffer.from(e.body.toString().trim());c["Content-Type"]=e.contentType||"application/x-www-form-urlencoded",c["Content-Length"]=r.length;}i=(e.method||"").toString().trim().toUpperCase()||"POST";}let l,m={method:i,host:s.hostname,path:s.path,port:s.port?s.port:s.protocol==="https:"?443:80,headers:c,rejectUnauthorized:false,agent:false};e.tls&&Object.assign(m,e.tls),s.protocol==="https:"&&s.hostname&&s.hostname!==m.host&&!Qi.isIP(s.hostname)&&!m.servername&&(m.servername=s.hostname);try{l=p.request(m);}catch(d){return n=true,setImmediate(()=>{d.code=T.EFETCH,d.sourceUrl=o,t.emit("error",d);}),t}return e.timeout&&l.setTimeout(e.timeout,()=>{if(n)return;n=true,l.abort();let d=new Error("Request Timeout");d.code=T.EFETCH,d.sourceUrl=o,t.emit("error",d);}),l.on("error",d=>{n||(n=true,d.code=T.EFETCH,d.sourceUrl=o,t.emit("error",d));}),l.on("response",d=>{let h;if(!n){switch(d.headers["content-encoding"]){case "gzip":case "deflate":h=Di.createUnzip();break}if(d.headers["set-cookie"]&&[].concat(d.headers["set-cookie"]||[]).forEach(f=>{e.cookies.set(f,o);}),[301,302,303,307,308].includes(d.statusCode)&&d.headers.location){if(e.redirects++,e.redirects>e.maxRedirects){n=true;let f=new Error("Maximum redirect count exceeded");f.code=T.EFETCH,f.sourceUrl=o,t.emit("error",f),l.abort();return}return e.method="GET",e.body=false,Ye(Xe.resolve(o,d.headers.location),e)}if(t.statusCode=d.statusCode,t.headers=d.headers,d.statusCode>=300&&!e.allowErrorResponse){n=true;let f=new Error("Invalid status code "+d.statusCode);f.code=T.EFETCH,f.sourceUrl=o,t.emit("error",f),l.abort();return}d.on("error",f=>{n||(n=true,f.code=T.EFETCH,f.sourceUrl=o,t.emit("error",f),l.abort());}),h?(d.pipe(h).pipe(t),h.on("error",f=>{n||(n=true,f.code=T.EFETCH,f.sourceUrl=o,t.emit("error",f),l.abort());})):d.pipe(t);}}),setImmediate(()=>{if(r)try{if(typeof r.pipe=="function")return r.pipe(l);l.write(r);}catch(d){n=true,d.code=T.EFETCH,d.sourceUrl=o,t.emit("error",d);return}l.end();}),t}});var y=chunkBUNLC3II_cjs.c((ga,_)=>{chunkBUNLC3II_cjs.h();var Wi=chunkBUNLC3II_cjs.a("url"),$i=chunkBUNLC3II_cjs.a("util"),Vi=chunkBUNLC3II_cjs.a("fs"),Xi=N(),Ze=E(),C=chunkBUNLC3II_cjs.a("dns"),Ji=chunkBUNLC3II_cjs.a("net"),Yi=chunkBUNLC3II_cjs.a("os"),z=300*1e3,Zi=30*1e3,et=1e3,Q=0;_.exports._lastCacheCleanup=()=>Q;_.exports._resetCacheCleanup=()=>{Q=0;};var it;try{it=Yi.networkInterfaces();}catch{}_.exports.networkInterfaces=it;var st=(o,e)=>{let t=_.exports.networkInterfaces;return t?Object.keys(t).map(s=>t[s]).reduce((s,i)=>s.concat(i),[]).filter(s=>!s.internal||e).some(s=>s.family==="IPv"+o||s.family===o):true},tt=(o,e,t,s)=>{if(t=t||{},!st(o,t.allowInternalNetworkInterfaces))return s(null,[]);(C.Resolver?new C.Resolver(t):C)["resolve"+o](e,(n,a)=>{if(n){switch(n.code){case C.NODATA:case C.NOTFOUND:case C.NOTIMP:case C.SERVFAIL:case C.CONNREFUSED:case C.REFUSED:case "EAI_AGAIN":return s(null,[])}return s(n)}return s(null,Array.isArray(a)?a:[].concat(a||[]))});},S=_.exports.dnsCache=new Map,I=(o,e)=>{if(!o)return Object.assign({},e||{});let t=o.addresses||[],s=t.length>0?t[Math.floor(Math.random()*t.length)]:null;return Object.assign({servername:o.servername,host:s,_addresses:t},e||{})};_.exports.resolveHostname=(o,e)=>{if(o=o||{},!o.host&&o.servername&&(o.host=o.servername),!o.host||Ji.isIP(o.host)){let r={addresses:[o.host],servername:o.servername||false};return e(null,I(r,{cached:false}))}let t;if(S.has(o.host)){t=S.get(o.host);let r=Date.now();if(r-Q>Zi){Q=r;for(let[p,c]of S.entries())c.expires&&c.expires<r&&S.delete(p);if(S.size>et){let p=Math.floor(et*.1);Array.from(S.keys()).slice(0,p).forEach(l=>S.delete(l));}}if(!t.expires||t.expires>=r)return e(null,I(t.value,{cached:true}))}let s=[],i=[],n=null,a=null;tt(4,o.host,o,(r,p)=>{r?n=r:s=p||[],tt(6,o.host,o,(c,l)=>{c?a=c:i=l||[];let m=s.concat(i);if(m.length){let d={addresses:m,servername:o.servername||o.host};return S.set(o.host,{value:d,expires:Date.now()+(o.dnsTtl||z)}),e(null,I(d,{cached:false}))}if(n&&a&&t)return S.set(o.host,{value:t.value,expires:Date.now()+(o.dnsTtl||z)}),e(null,I(t.value,{cached:true,error:n}));try{C.lookup(o.host,{all:!0},(d,h)=>{if(d)return t?(S.set(o.host,{value:t.value,expires:Date.now()+(o.dnsTtl||z)}),e(null,I(t.value,{cached:!0,error:d}))):e(d);let f=h?h.filter(b=>st(b.family)).map(b=>b.address):[];if(h&&h.length&&!f.length&&console.warn(`Failed to resolve IPv${h[0].family} addresses with current network`),!f.length&&t)return e(null,I(t.value,{cached:!0}));let g={addresses:f.length?f:[o.host],servername:o.servername||o.host};return S.set(o.host,{value:g,expires:Date.now()+(o.dnsTtl||z)}),e(null,I(g,{cached:!1}))});}catch(d){return t?(S.set(o.host,{value:t.value,expires:Date.now()+(o.dnsTtl||z)}),e(null,I(t.value,{cached:true,error:d}))):e(n||a||d)}});});};_.exports.parseConnectionUrl=o=>{o=o||"";let e={},t=Wi.parse(o,true);switch(t.protocol){case "smtp:":e.secure=false;break;case "smtps:":e.secure=true;break;case "direct:":e.direct=true;break}if(!isNaN(t.port)&&Number(t.port)&&(e.port=Number(t.port)),t.hostname&&(e.host=t.hostname),t.auth){let s=t.auth.split(":");e.auth={user:s.shift(),pass:s.join(":")};}return Object.keys(t.query||{}).forEach(s=>{let i=e,n=s,a=t.query[s];switch(isNaN(a)||(a=Number(a)),a){case "true":a=true;break;case "false":a=false;break}if(s.indexOf("tls.")===0)n=s.substr(4),e.tls||(e.tls={}),i=e.tls;else if(s.indexOf(".")>=0)return;n in i||(i[n]=a);}),e};_.exports._logFunc=(o,e,t,s,i,...n)=>{let a=Object.assign({},t||{},s||{});delete a.level;let r=e;typeof o[r]!="function"&&(r=["info","debug","log","trace","warn","error"].find(p=>typeof o[p]=="function")),r&&o[r](a,i,...n);};_.exports.getLogger=(o,e)=>{o=o||{};let t={},s=["trace","debug","info","warn","error","fatal"];if(!o.logger)return s.forEach(n=>{t[n]=()=>false;}),t;let i=o.logger===true?ts(s):o.logger;return s.forEach(n=>{t[n]=(a,r,...p)=>{_.exports._logFunc(i,n,e,a,r,...p);};}),t};_.exports.callbackPromise=(o,e)=>function(){let t=Array.from(arguments),s=t.shift();s?e(s):o(...t);};_.exports.parseDataURI=o=>{if(typeof o!="string"||!o.startsWith("data:"))return null;let e=o.indexOf(",");if(e===-1)return null;let t=o.substring(e+1),s=o.substring(5,e),i,n=s.split(";");if(n.length>0){let c=n[n.length-1].toLowerCase().trim();["base64","utf8","utf-8"].includes(c)&&c.indexOf("=")===-1&&(i=c,n.pop());}let a=n.length>0?n.shift():"application/octet-stream",r={};for(let c=0;c<n.length;c++){let l=n[c],m=l.indexOf("=");if(m>0){let d=l.substring(0,m).trim(),h=l.substring(m+1).trim();d&&(r[d]=h);}}let p;try{if(i==="base64")p=Buffer.from(t,"base64");else try{p=Buffer.from(decodeURIComponent(t));}catch{p=Buffer.from(t);}}catch{p=Buffer.alloc(0);}return {data:p,encoding:i||null,contentType:a||"application/octet-stream",params:r}};_.exports.resolveContent=(o,e,t,s)=>{!s&&typeof t=="function"&&(s=t,t=false),t=t||{};let i;return s||(i=new Promise((n,a)=>{s=_.exports.callbackPromise(n,a);})),es(o,e,t,s),i};function es(o,e,t,s){let i=o&&o[e]&&o[e].content||o[e],n=(typeof o[e]=="object"&&o[e].encoding||"utf8").toString().toLowerCase().replace(/[-_\s]/g,"");if(!i)return s(null,i);if(typeof i=="object"){if(typeof i.pipe=="function")return te(i,(a,r)=>{if(a)return s(a);o[e].content?o[e].content=r:o[e]=r,s(null,r);});if(/^https?:\/\//i.test(i.path||i.href))return t.disableUrlAccess?setImmediate(()=>{let a=new Error("Url access rejected for "+(i.path||i.href));a.code=Ze.EURLACCESS,s(a);}):te(Xi(i.path||i.href),s);if(/^data:/i.test(i.path||i.href)){let a=_.exports.parseDataURI(i.path||i.href);return s(null,a&&a.data?a.data:Buffer.alloc(0))}else if(i.path)return t.disableFileAccess?setImmediate(()=>{let a=new Error("File access rejected for "+i.path);a.code=Ze.EFILEACCESS,s(a);}):te(Vi.createReadStream(i.path),s)}typeof o[e].content=="string"&&!["utf8","usascii","ascii"].includes(n)&&(i=Buffer.from(o[e].content,n)),setImmediate(()=>s(null,i));}_.exports.assign=function(){let o=Array.from(arguments),e=o.shift()||{};return o.forEach(t=>{Object.keys(t||{}).forEach(s=>{["tls","auth"].includes(s)&&t[s]&&typeof t[s]=="object"?e[s]=Object.assign(e[s]||{},t[s]):e[s]=t[s];});}),e};_.exports.encodeXText=o=>{if(!/[^\x21-\x2A\x2C-\x3C\x3E-\x7E]/.test(o))return o;let e=Buffer.from(o),t="";for(let s=0,i=e.length;s<i;s++){let n=e[s];n<33||n>126||n===43||n===61?t+="+"+(n<16?"0":"")+n.toString(16).toUpperCase():t+=String.fromCharCode(n);}return t};function te(o,e){let t=false,s=[],i=0;o.on("error",n=>{t||(t=true,e(n));}),o.on("readable",()=>{let n;for(;(n=o.read())!==null;)s.push(n),i+=n.length;}),o.on("end",()=>{if(t)return;t=true;let n;try{n=Buffer.concat(s,i);}catch(a){return e(a)}e(null,n);});}function ts(o){let e=o.reduce((n,a)=>Math.max(n,a.length),0),t=new Map;o.forEach(n=>{let a=n.toUpperCase();a.length<e&&(a+=" ".repeat(e-a.length)),t.set(n,a);});let s=(n,a,r,...p)=>{let c="";a&&(a.tnx==="server"?c="S: ":a.tnx==="client"&&(c="C: "),a.sid&&(c="["+a.sid+"] "+c),a.cid&&(c="[#"+a.cid+"] "+c)),r=$i.format(r,...p),r.split(/\r?\n/).forEach(l=>{console.log("[%s] %s %s",new Date().toISOString().substr(0,19).replace(/T/," "),t.get(n),c+l);});},i={};return o.forEach(n=>{i[n]=s.bind(null,n);}),i}});var ie=chunkBUNLC3II_cjs.c((wa,rt)=>{chunkBUNLC3II_cjs.h();var is=chunkBUNLC3II_cjs.a("path"),nt="application/octet-stream",ss="bin",at=new Map([["application/acad","dwg"],["application/applixware","aw"],["application/arj","arj"],["application/atom+xml","xml"],["application/atomcat+xml","atomcat"],["application/atomsvc+xml","atomsvc"],["application/base64",["mm","mme"]],["application/binhex","hqx"],["application/binhex4","hqx"],["application/book",["book","boo"]],["application/ccxml+xml,","ccxml"],["application/cdf","cdf"],["application/cdmi-capability","cdmia"],["application/cdmi-container","cdmic"],["application/cdmi-domain","cdmid"],["application/cdmi-object","cdmio"],["application/cdmi-queue","cdmiq"],["application/clariscad","ccad"],["application/commonground","dp"],["application/cu-seeme","cu"],["application/davmount+xml","davmount"],["application/drafting","drw"],["application/dsptype","tsp"],["application/dssc+der","dssc"],["application/dssc+xml","xdssc"],["application/dxf","dxf"],["application/ecmascript",["js","es"]],["application/emma+xml","emma"],["application/envoy","evy"],["application/epub+zip","epub"],["application/excel",["xls","xl","xla","xlb","xlc","xld","xlk","xll","xlm","xlt","xlv","xlw"]],["application/exi","exi"],["application/font-tdpfr","pfr"],["application/fractals","fif"],["application/freeloader","frl"],["application/futuresplash","spl"],["application/geo+json","geojson"],["application/gnutar","tgz"],["application/groupwise","vew"],["application/hlp","hlp"],["application/hta","hta"],["application/hyperstudio","stk"],["application/i-deas","unv"],["application/iges",["iges","igs"]],["application/inf","inf"],["application/internet-property-stream","acx"],["application/ipfix","ipfix"],["application/java","class"],["application/java-archive","jar"],["application/java-byte-code","class"],["application/java-serialized-object","ser"],["application/java-vm","class"],["application/javascript","js"],["application/json","json"],["application/lha","lha"],["application/lzx","lzx"],["application/mac-binary","bin"],["application/mac-binhex","hqx"],["application/mac-binhex40","hqx"],["application/mac-compactpro","cpt"],["application/macbinary","bin"],["application/mads+xml","mads"],["application/marc","mrc"],["application/marcxml+xml","mrcx"],["application/mathematica","ma"],["application/mathml+xml","mathml"],["application/mbedlet","mbd"],["application/mbox","mbox"],["application/mcad","mcd"],["application/mediaservercontrol+xml","mscml"],["application/metalink4+xml","meta4"],["application/mets+xml","mets"],["application/mime","aps"],["application/mods+xml","mods"],["application/mp21","m21"],["application/mp4","mp4"],["application/mspowerpoint",["ppt","pot","pps","ppz"]],["application/msword",["doc","dot","w6w","wiz","word"]],["application/mswrite","wri"],["application/mxf","mxf"],["application/netmc","mcp"],["application/octet-stream",["*"]],["application/oda","oda"],["application/oebps-package+xml","opf"],["application/ogg","ogx"],["application/olescript","axs"],["application/onenote","onetoc"],["application/patch-ops-error+xml","xer"],["application/pdf","pdf"],["application/pgp-encrypted","asc"],["application/pgp-signature","pgp"],["application/pics-rules","prf"],["application/pkcs-12","p12"],["application/pkcs-crl","crl"],["application/pkcs10","p10"],["application/pkcs7-mime",["p7c","p7m"]],["application/pkcs7-signature","p7s"],["application/pkcs8","p8"],["application/pkix-attr-cert","ac"],["application/pkix-cert",["cer","crt"]],["application/pkix-crl","crl"],["application/pkix-pkipath","pkipath"],["application/pkixcmp","pki"],["application/plain","text"],["application/pls+xml","pls"],["application/postscript",["ps","ai","eps"]],["application/powerpoint","ppt"],["application/pro_eng",["part","prt"]],["application/prs.cww","cww"],["application/pskc+xml","pskcxml"],["application/rdf+xml","rdf"],["application/reginfo+xml","rif"],["application/relax-ng-compact-syntax","rnc"],["application/resource-lists+xml","rl"],["application/resource-lists-diff+xml","rld"],["application/ringing-tones","rng"],["application/rls-services+xml","rs"],["application/rsd+xml","rsd"],["application/rss+xml","xml"],["application/rtf",["rtf","rtx"]],["application/sbml+xml","sbml"],["application/scvp-cv-request","scq"],["application/scvp-cv-response","scs"],["application/scvp-vp-request","spq"],["application/scvp-vp-response","spp"],["application/sdp","sdp"],["application/sea","sea"],["application/set","set"],["application/set-payment-initiation","setpay"],["application/set-registration-initiation","setreg"],["application/shf+xml","shf"],["application/sla","stl"],["application/smil",["smi","smil"]],["application/smil+xml","smi"],["application/solids","sol"],["application/sounder","sdr"],["application/sparql-query","rq"],["application/sparql-results+xml","srx"],["application/srgs","gram"],["application/srgs+xml","grxml"],["application/sru+xml","sru"],["application/ssml+xml","ssml"],["application/step",["step","stp"]],["application/streamingmedia","ssm"],["application/tei+xml","tei"],["application/thraud+xml","tfi"],["application/timestamped-data","tsd"],["application/toolbook","tbk"],["application/vda","vda"],["application/vnd.3gpp.pic-bw-large","plb"],["application/vnd.3gpp.pic-bw-small","psb"],["application/vnd.3gpp.pic-bw-var","pvb"],["application/vnd.3gpp2.tcap","tcap"],["application/vnd.3m.post-it-notes","pwn"],["application/vnd.accpac.simply.aso","aso"],["application/vnd.accpac.simply.imp","imp"],["application/vnd.acucobol","acu"],["application/vnd.acucorp","atc"],["application/vnd.adobe.air-application-installer-package+zip","air"],["application/vnd.adobe.fxp","fxp"],["application/vnd.adobe.xdp+xml","xdp"],["application/vnd.adobe.xfdf","xfdf"],["application/vnd.ahead.space","ahead"],["application/vnd.airzip.filesecure.azf","azf"],["application/vnd.airzip.filesecure.azs","azs"],["application/vnd.amazon.ebook","azw"],["application/vnd.americandynamics.acc","acc"],["application/vnd.amiga.ami","ami"],["application/vnd.android.package-archive","apk"],["application/vnd.anser-web-certificate-issue-initiation","cii"],["application/vnd.anser-web-funds-transfer-initiation","fti"],["application/vnd.antix.game-component","atx"],["application/vnd.apple.installer+xml","mpkg"],["application/vnd.apple.mpegurl","m3u8"],["application/vnd.aristanetworks.swi","swi"],["application/vnd.audiograph","aep"],["application/vnd.blueice.multipass","mpm"],["application/vnd.bmi","bmi"],["application/vnd.businessobjects","rep"],["application/vnd.chemdraw+xml","cdxml"],["application/vnd.chipnuts.karaoke-mmd","mmd"],["application/vnd.cinderella","cdy"],["application/vnd.claymore","cla"],["application/vnd.cloanto.rp9","rp9"],["application/vnd.clonk.c4group","c4g"],["application/vnd.cluetrust.cartomobile-config","c11amc"],["application/vnd.cluetrust.cartomobile-config-pkg","c11amz"],["application/vnd.commonspace","csp"],["application/vnd.contact.cmsg","cdbcmsg"],["application/vnd.cosmocaller","cmc"],["application/vnd.crick.clicker","clkx"],["application/vnd.crick.clicker.keyboard","clkk"],["application/vnd.crick.clicker.palette","clkp"],["application/vnd.crick.clicker.template","clkt"],["application/vnd.crick.clicker.wordbank","clkw"],["application/vnd.criticaltools.wbs+xml","wbs"],["application/vnd.ctc-posml","pml"],["application/vnd.cups-ppd","ppd"],["application/vnd.curl.car","car"],["application/vnd.curl.pcurl","pcurl"],["application/vnd.data-vision.rdz","rdz"],["application/vnd.denovo.fcselayout-link","fe_launch"],["application/vnd.dna","dna"],["application/vnd.dolby.mlp","mlp"],["application/vnd.dpgraph","dpg"],["application/vnd.dreamfactory","dfac"],["application/vnd.dvb.ait","ait"],["application/vnd.dvb.service","svc"],["application/vnd.dynageo","geo"],["application/vnd.ecowin.chart","mag"],["application/vnd.enliven","nml"],["application/vnd.epson.esf","esf"],["application/vnd.epson.msf","msf"],["application/vnd.epson.quickanime","qam"],["application/vnd.epson.salt","slt"],["application/vnd.epson.ssf","ssf"],["application/vnd.eszigno3+xml","es3"],["application/vnd.ezpix-album","ez2"],["application/vnd.ezpix-package","ez3"],["application/vnd.fdf","fdf"],["application/vnd.fdsn.seed","seed"],["application/vnd.flographit","gph"],["application/vnd.fluxtime.clip","ftc"],["application/vnd.framemaker","fm"],["application/vnd.frogans.fnc","fnc"],["application/vnd.frogans.ltf","ltf"],["application/vnd.fsc.weblaunch","fsc"],["application/vnd.fujitsu.oasys","oas"],["application/vnd.fujitsu.oasys2","oa2"],["application/vnd.fujitsu.oasys3","oa3"],["application/vnd.fujitsu.oasysgp","fg5"],["application/vnd.fujitsu.oasysprs","bh2"],["application/vnd.fujixerox.ddd","ddd"],["application/vnd.fujixerox.docuworks","xdw"],["application/vnd.fujixerox.docuworks.binder","xbd"],["application/vnd.fuzzysheet","fzs"],["application/vnd.genomatix.tuxedo","txd"],["application/vnd.geogebra.file","ggb"],["application/vnd.geogebra.tool","ggt"],["application/vnd.geometry-explorer","gex"],["application/vnd.geonext","gxt"],["application/vnd.geoplan","g2w"],["application/vnd.geospace","g3w"],["application/vnd.gmx","gmx"],["application/vnd.google-earth.kml+xml","kml"],["application/vnd.google-earth.kmz","kmz"],["application/vnd.grafeq","gqf"],["application/vnd.groove-account","gac"],["application/vnd.groove-help","ghf"],["application/vnd.groove-identity-message","gim"],["application/vnd.groove-injector","grv"],["application/vnd.groove-tool-message","gtm"],["application/vnd.groove-tool-template","tpl"],["application/vnd.groove-vcard","vcg"],["application/vnd.hal+xml","hal"],["application/vnd.handheld-entertainment+xml","zmm"],["application/vnd.hbci","hbci"],["application/vnd.hhe.lesson-player","les"],["application/vnd.hp-hpgl",["hgl","hpg","hpgl"]],["application/vnd.hp-hpid","hpid"],["application/vnd.hp-hps","hps"],["application/vnd.hp-jlyt","jlt"],["application/vnd.hp-pcl","pcl"],["application/vnd.hp-pclxl","pclxl"],["application/vnd.hydrostatix.sof-data","sfd-hdstx"],["application/vnd.hzn-3d-crossword","x3d"],["application/vnd.ibm.minipay","mpy"],["application/vnd.ibm.modcap","afp"],["application/vnd.ibm.rights-management","irm"],["application/vnd.ibm.secure-container","sc"],["application/vnd.iccprofile","icc"],["application/vnd.igloader","igl"],["application/vnd.immervision-ivp","ivp"],["application/vnd.immervision-ivu","ivu"],["application/vnd.insors.igm","igm"],["application/vnd.intercon.formnet","xpw"],["application/vnd.intergeo","i2g"],["application/vnd.intu.qbo","qbo"],["application/vnd.intu.qfx","qfx"],["application/vnd.ipunplugged.rcprofile","rcprofile"],["application/vnd.irepository.package+xml","irp"],["application/vnd.is-xpr","xpr"],["application/vnd.isac.fcs","fcs"],["application/vnd.jam","jam"],["application/vnd.jcp.javame.midlet-rms","rms"],["application/vnd.jisp","jisp"],["application/vnd.joost.joda-archive","joda"],["application/vnd.kahootz","ktz"],["application/vnd.kde.karbon","karbon"],["application/vnd.kde.kchart","chrt"],["application/vnd.kde.kformula","kfo"],["application/vnd.kde.kivio","flw"],["application/vnd.kde.kontour","kon"],["application/vnd.kde.kpresenter","kpr"],["application/vnd.kde.kspread","ksp"],["application/vnd.kde.kword","kwd"],["application/vnd.kenameaapp","htke"],["application/vnd.kidspiration","kia"],["application/vnd.kinar","kne"],["application/vnd.koan","skp"],["application/vnd.kodak-descriptor","sse"],["application/vnd.las.las+xml","lasxml"],["application/vnd.llamagraphics.life-balance.desktop","lbd"],["application/vnd.llamagraphics.life-balance.exchange+xml","lbe"],["application/vnd.lotus-1-2-3","123"],["application/vnd.lotus-approach","apr"],["application/vnd.lotus-freelance","pre"],["application/vnd.lotus-notes","nsf"],["application/vnd.lotus-organizer","org"],["application/vnd.lotus-screencam","scm"],["application/vnd.lotus-wordpro","lwp"],["application/vnd.macports.portpkg","portpkg"],["application/vnd.mcd","mcd"],["application/vnd.medcalcdata","mc1"],["application/vnd.mediastation.cdkey","cdkey"],["application/vnd.mfer","mwf"],["application/vnd.mfmp","mfm"],["application/vnd.micrografx.flo","flo"],["application/vnd.micrografx.igx","igx"],["application/vnd.mif","mif"],["application/vnd.mobius.daf","daf"],["application/vnd.mobius.dis","dis"],["application/vnd.mobius.mbk","mbk"],["application/vnd.mobius.mqy","mqy"],["application/vnd.mobius.msl","msl"],["application/vnd.mobius.plc","plc"],["application/vnd.mobius.txf","txf"],["application/vnd.mophun.application","mpn"],["application/vnd.mophun.certificate","mpc"],["application/vnd.mozilla.xul+xml","xul"],["application/vnd.ms-artgalry","cil"],["application/vnd.ms-cab-compressed","cab"],["application/vnd.ms-excel",["xls","xla","xlc","xlm","xlt","xlw","xlb","xll"]],["application/vnd.ms-excel.addin.macroenabled.12","xlam"],["application/vnd.ms-excel.sheet.binary.macroenabled.12","xlsb"],["application/vnd.ms-excel.sheet.macroenabled.12","xlsm"],["application/vnd.ms-excel.template.macroenabled.12","xltm"],["application/vnd.ms-fontobject","eot"],["application/vnd.ms-htmlhelp","chm"],["application/vnd.ms-ims","ims"],["application/vnd.ms-lrm","lrm"],["application/vnd.ms-officetheme","thmx"],["application/vnd.ms-outlook","msg"],["application/vnd.ms-pki.certstore","sst"],["application/vnd.ms-pki.pko","pko"],["application/vnd.ms-pki.seccat","cat"],["application/vnd.ms-pki.stl","stl"],["application/vnd.ms-pkicertstore","sst"],["application/vnd.ms-pkiseccat","cat"],["application/vnd.ms-pkistl","stl"],["application/vnd.ms-powerpoint",["ppt","pot","pps","ppa","pwz"]],["application/vnd.ms-powerpoint.addin.macroenabled.12","ppam"],["application/vnd.ms-powerpoint.presentation.macroenabled.12","pptm"],["application/vnd.ms-powerpoint.slide.macroenabled.12","sldm"],["application/vnd.ms-powerpoint.slideshow.macroenabled.12","ppsm"],["application/vnd.ms-powerpoint.template.macroenabled.12","potm"],["application/vnd.ms-project","mpp"],["application/vnd.ms-word.document.macroenabled.12","docm"],["application/vnd.ms-word.template.macroenabled.12","dotm"],["application/vnd.ms-works",["wks","wcm","wdb","wps"]],["application/vnd.ms-wpl","wpl"],["application/vnd.ms-xpsdocument","xps"],["application/vnd.mseq","mseq"],["application/vnd.musician","mus"],["application/vnd.muvee.style","msty"],["application/vnd.neurolanguage.nlu","nlu"],["application/vnd.noblenet-directory","nnd"],["application/vnd.noblenet-sealer","nns"],["application/vnd.noblenet-web","nnw"],["application/vnd.nokia.configuration-message","ncm"],["application/vnd.nokia.n-gage.data","ngdat"],["application/vnd.nokia.n-gage.symbian.install","n-gage"],["application/vnd.nokia.radio-preset","rpst"],["application/vnd.nokia.radio-presets","rpss"],["application/vnd.nokia.ringing-tone","rng"],["application/vnd.novadigm.edm","edm"],["application/vnd.novadigm.edx","edx"],["application/vnd.novadigm.ext","ext"],["application/vnd.oasis.opendocument.chart","odc"],["application/vnd.oasis.opendocument.chart-template","otc"],["application/vnd.oasis.opendocument.database","odb"],["application/vnd.oasis.opendocument.formula","odf"],["application/vnd.oasis.opendocument.formula-template","odft"],["application/vnd.oasis.opendocument.graphics","odg"],["application/vnd.oasis.opendocument.graphics-template","otg"],["application/vnd.oasis.opendocument.image","odi"],["application/vnd.oasis.opendocument.image-template","oti"],["application/vnd.oasis.opendocument.presentation","odp"],["application/vnd.oasis.opendocument.presentation-template","otp"],["application/vnd.oasis.opendocument.spreadsheet","ods"],["application/vnd.oasis.opendocument.spreadsheet-template","ots"],["application/vnd.oasis.opendocument.text","odt"],["application/vnd.oasis.opendocument.text-master","odm"],["application/vnd.oasis.opendocument.text-template","ott"],["application/vnd.oasis.opendocument.text-web","oth"],["application/vnd.olpc-sugar","xo"],["application/vnd.oma.dd2+xml","dd2"],["application/vnd.openofficeorg.extension","oxt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","pptx"],["application/vnd.openxmlformats-officedocument.presentationml.slide","sldx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","ppsx"],["application/vnd.openxmlformats-officedocument.presentationml.template","potx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","xltx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","dotx"],["application/vnd.osgeo.mapguide.package","mgp"],["application/vnd.osgi.dp","dp"],["application/vnd.palm","pdb"],["application/vnd.pawaafile","paw"],["application/vnd.pg.format","str"],["application/vnd.pg.osasli","ei6"],["application/vnd.picsel","efif"],["application/vnd.pmi.widget","wg"],["application/vnd.pocketlearn","plf"],["application/vnd.powerbuilder6","pbd"],["application/vnd.previewsystems.box","box"],["application/vnd.proteus.magazine","mgz"],["application/vnd.publishare-delta-tree","qps"],["application/vnd.pvi.ptid1","ptid"],["application/vnd.quark.quarkxpress","qxd"],["application/vnd.realvnc.bed","bed"],["application/vnd.recordare.musicxml","mxl"],["application/vnd.recordare.musicxml+xml","musicxml"],["application/vnd.rig.cryptonote","cryptonote"],["application/vnd.rim.cod","cod"],["application/vnd.rn-realmedia","rm"],["application/vnd.rn-realplayer","rnx"],["application/vnd.route66.link66+xml","link66"],["application/vnd.sailingtracker.track","st"],["application/vnd.seemail","see"],["application/vnd.sema","sema"],["application/vnd.semd","semd"],["application/vnd.semf","semf"],["application/vnd.shana.informed.formdata","ifm"],["application/vnd.shana.informed.formtemplate","itp"],["application/vnd.shana.informed.interchange","iif"],["application/vnd.shana.informed.package","ipk"],["application/vnd.simtech-mindmapper","twd"],["application/vnd.smaf","mmf"],["application/vnd.smart.teacher","teacher"],["application/vnd.solent.sdkm+xml","sdkm"],["application/vnd.spotfire.dxp","dxp"],["application/vnd.spotfire.sfs","sfs"],["application/vnd.stardivision.calc","sdc"],["application/vnd.stardivision.draw","sda"],["application/vnd.stardivision.impress","sdd"],["application/vnd.stardivision.math","smf"],["application/vnd.stardivision.writer","sdw"],["application/vnd.stardivision.writer-global","sgl"],["application/vnd.stepmania.stepchart","sm"],["application/vnd.sun.xml.calc","sxc"],["application/vnd.sun.xml.calc.template","stc"],["application/vnd.sun.xml.draw","sxd"],["application/vnd.sun.xml.draw.template","std"],["application/vnd.sun.xml.impress","sxi"],["application/vnd.sun.xml.impress.template","sti"],["application/vnd.sun.xml.math","sxm"],["application/vnd.sun.xml.writer","sxw"],["application/vnd.sun.xml.writer.global","sxg"],["application/vnd.sun.xml.writer.template","stw"],["application/vnd.sus-calendar","sus"],["application/vnd.svd","svd"],["application/vnd.symbian.install","sis"],["application/vnd.syncml+xml","xsm"],["application/vnd.syncml.dm+wbxml","bdm"],["application/vnd.syncml.dm+xml","xdm"],["application/vnd.tao.intent-module-archive","tao"],["application/vnd.tmobile-livetv","tmo"],["application/vnd.trid.tpt","tpt"],["application/vnd.triscape.mxs","mxs"],["application/vnd.trueapp","tra"],["application/vnd.ufdl","ufd"],["application/vnd.uiq.theme","utz"],["application/vnd.umajin","umj"],["application/vnd.unity","unityweb"],["application/vnd.uoml+xml","uoml"],["application/vnd.vcx","vcx"],["application/vnd.visio","vsd"],["application/vnd.visionary","vis"],["application/vnd.vsf","vsf"],["application/vnd.wap.wbxml","wbxml"],["application/vnd.wap.wmlc","wmlc"],["application/vnd.wap.wmlscriptc","wmlsc"],["application/vnd.webturbo","wtb"],["application/vnd.wolfram.player","nbp"],["application/vnd.wordperfect","wpd"],["application/vnd.wqd","wqd"],["application/vnd.wt.stf","stf"],["application/vnd.xara",["web","xar"]],["application/vnd.xfdl","xfdl"],["application/vnd.yamaha.hv-dic","hvd"],["application/vnd.yamaha.hv-script","hvs"],["application/vnd.yamaha.hv-voice","hvp"],["application/vnd.yamaha.openscoreformat","osf"],["application/vnd.yamaha.openscoreformat.osfpvg+xml","osfpvg"],["application/vnd.yamaha.smaf-audio","saf"],["application/vnd.yamaha.smaf-phrase","spf"],["application/vnd.yellowriver-custom-menu","cmp"],["application/vnd.zul","zir"],["application/vnd.zzazz.deck+xml","zaz"],["application/vocaltec-media-desc","vmd"],["application/vocaltec-media-file","vmf"],["application/voicexml+xml","vxml"],["application/widget","wgt"],["application/winhlp","hlp"],["application/wordperfect",["wp","wp5","wp6","wpd"]],["application/wordperfect6.0",["w60","wp5"]],["application/wordperfect6.1","w61"],["application/wsdl+xml","wsdl"],["application/wspolicy+xml","wspolicy"],["application/x-123","wk1"],["application/x-7z-compressed","7z"],["application/x-abiword","abw"],["application/x-ace-compressed","ace"],["application/x-aim","aim"],["application/x-authorware-bin","aab"],["application/x-authorware-map","aam"],["application/x-authorware-seg","aas"],["application/x-bcpio","bcpio"],["application/x-binary","bin"],["application/x-binhex40","hqx"],["application/x-bittorrent","torrent"],["application/x-bsh",["bsh","sh","shar"]],["application/x-bytecode.elisp","elc"],["application/x-bytecode.python","pyc"],["application/x-bzip","bz"],["application/x-bzip2",["boz","bz2"]],["application/x-cdf","cdf"],["application/x-cdlink","vcd"],["application/x-chat",["cha","chat"]],["application/x-chess-pgn","pgn"],["application/x-cmu-raster","ras"],["application/x-cocoa","cco"],["application/x-compactpro","cpt"],["application/x-compress","z"],["application/x-compressed",["tgz","gz","z","zip"]],["application/x-conference","nsc"],["application/x-cpio","cpio"],["application/x-cpt","cpt"],["application/x-csh","csh"],["application/x-debian-package","deb"],["application/x-deepv","deepv"],["application/x-director",["dir","dcr","dxr"]],["application/x-doom","wad"],["application/x-dtbncx+xml","ncx"],["application/x-dtbook+xml","dtb"],["application/x-dtbresource+xml","res"],["application/x-dvi","dvi"],["application/x-elc","elc"],["application/x-envoy",["env","evy"]],["application/x-esrehber","es"],["application/x-excel",["xls","xla","xlb","xlc","xld","xlk","xll","xlm","xlt","xlv","xlw"]],["application/x-font-bdf","bdf"],["application/x-font-ghostscript","gsf"],["application/x-font-linux-psf","psf"],["application/x-font-otf","otf"],["application/x-font-pcf","pcf"],["application/x-font-snf","snf"],["application/x-font-ttf","ttf"],["application/x-font-type1","pfa"],["application/x-font-woff","woff"],["application/x-frame","mif"],["application/x-freelance","pre"],["application/x-futuresplash","spl"],["application/x-gnumeric","gnumeric"],["application/x-gsp","gsp"],["application/x-gss","gss"],["application/x-gtar","gtar"],["application/x-gzip",["gz","gzip"]],["application/x-hdf","hdf"],["application/x-helpfile",["help","hlp"]],["application/x-httpd-imap","imap"],["application/x-ima","ima"],["application/x-internet-signup",["ins","isp"]],["application/x-internett-signup","ins"],["application/x-inventor","iv"],["application/x-ip2","ip"],["application/x-iphone","iii"],["application/x-java-class","class"],["application/x-java-commerce","jcm"],["application/x-java-jnlp-file","jnlp"],["application/x-javascript","js"],["application/x-koan",["skd","skm","skp","skt"]],["application/x-ksh","ksh"],["application/x-latex",["latex","ltx"]],["application/x-lha","lha"],["application/x-lisp","lsp"],["application/x-livescreen","ivy"],["application/x-lotus","wq1"],["application/x-lotusscreencam","scm"],["application/x-lzh","lzh"],["application/x-lzx","lzx"],["application/x-mac-binhex40","hqx"],["application/x-macbinary","bin"],["application/x-magic-cap-package-1.0","mc$"],["application/x-mathcad","mcd"],["application/x-meme","mm"],["application/x-midi",["mid","midi"]],["application/x-mif","mif"],["application/x-mix-transfer","nix"],["application/x-mobipocket-ebook","prc"],["application/x-mplayer2","asx"],["application/x-ms-application","application"],["application/x-ms-wmd","wmd"],["application/x-ms-wmz","wmz"],["application/x-ms-xbap","xbap"],["application/x-msaccess","mdb"],["application/x-msbinder","obd"],["application/x-mscardfile","crd"],["application/x-msclip","clp"],["application/x-msdownload",["exe","dll"]],["application/x-msexcel",["xls","xla","xlw"]],["application/x-msmediaview",["mvb","m13","m14"]],["application/x-msmetafile","wmf"],["application/x-msmoney","mny"],["application/x-mspowerpoint","ppt"],["application/x-mspublisher","pub"],["application/x-msschedule","scd"],["application/x-msterminal","trm"],["application/x-mswrite","wri"],["application/x-navi-animation","ani"],["application/x-navidoc","nvd"],["application/x-navimap","map"],["application/x-navistyle","stl"],["application/x-netcdf",["cdf","nc"]],["application/x-newton-compatible-pkg","pkg"],["application/x-nokia-9000-communicator-add-on-software","aos"],["application/x-omc","omc"],["application/x-omcdatamaker","omcd"],["application/x-omcregerator","omcr"],["application/x-pagemaker",["pm4","pm5"]],["application/x-pcl","pcl"],["application/x-perfmon",["pma","pmc","pml","pmr","pmw"]],["application/x-pixclscript","plx"],["application/x-pkcs10","p10"],["application/x-pkcs12",["p12","pfx"]],["application/x-pkcs7-certificates",["p7b","spc"]],["application/x-pkcs7-certreqresp","p7r"],["application/x-pkcs7-mime",["p7m","p7c"]],["application/x-pkcs7-signature",["p7s","p7a"]],["application/x-pointplus","css"],["application/x-portable-anymap","pnm"],["application/x-project",["mpc","mpt","mpv","mpx"]],["application/x-qpro","wb1"],["application/x-rar-compressed","rar"],["application/x-rtf","rtf"],["application/x-sdp","sdp"],["application/x-sea","sea"],["application/x-seelogo","sl"],["application/x-sh","sh"],["application/x-shar",["shar","sh"]],["application/x-shockwave-flash","swf"],["application/x-silverlight-app","xap"],["application/x-sit","sit"],["application/x-sprite",["spr","sprite"]],["application/x-stuffit","sit"],["application/x-stuffitx","sitx"],["application/x-sv4cpio","sv4cpio"],["application/x-sv4crc","sv4crc"],["application/x-tar","tar"],["application/x-tbook",["sbk","tbk"]],["application/x-tcl","tcl"],["application/x-tex","tex"],["application/x-tex-tfm","tfm"],["application/x-texinfo",["texi","texinfo"]],["application/x-troff",["roff","t","tr"]],["application/x-troff-man","man"],["application/x-troff-me","me"],["application/x-troff-ms","ms"],["application/x-troff-msvideo","avi"],["application/x-ustar","ustar"],["application/x-visio",["vsd","vst","vsw"]],["application/x-vnd.audioexplosion.mzz","mzz"],["application/x-vnd.ls-xpix","xpix"],["application/x-vrml","vrml"],["application/x-wais-source",["src","wsrc"]],["application/x-winhelp","hlp"],["application/x-wintalk","wtk"],["application/x-world",["wrl","svr"]],["application/x-wpwin","wpd"],["application/x-wri","wri"],["application/x-x509-ca-cert",["cer","crt","der"]],["application/x-x509-user-cert","crt"],["application/x-xfig","fig"],["application/x-xpinstall","xpi"],["application/x-zip-compressed","zip"],["application/xcap-diff+xml","xdf"],["application/xenc+xml","xenc"],["application/xhtml+xml","xhtml"],["application/xml","xml"],["application/xml-dtd","dtd"],["application/xop+xml","xop"],["application/xslt+xml","xslt"],["application/xspf+xml","xspf"],["application/xv+xml","mxml"],["application/yang","yang"],["application/yin+xml","yin"],["application/ynd.ms-pkipko","pko"],["application/zip","zip"],["audio/adpcm","adp"],["audio/aiff",["aiff","aif","aifc"]],["audio/basic",["snd","au"]],["audio/it","it"],["audio/make",["funk","my","pfunk"]],["audio/make.my.funk","pfunk"],["audio/mid",["mid","rmi"]],["audio/midi",["midi","kar","mid"]],["audio/mod","mod"],["audio/mp4","mp4a"],["audio/mpeg",["mpga","mp3","m2a","mp2","mpa","mpg"]],["audio/mpeg3","mp3"],["audio/nspaudio",["la","lma"]],["audio/ogg","oga"],["audio/s3m","s3m"],["audio/tsp-audio","tsi"],["audio/tsplayer","tsp"],["audio/vnd.dece.audio","uva"],["audio/vnd.digital-winds","eol"],["audio/vnd.dra","dra"],["audio/vnd.dts","dts"],["audio/vnd.dts.hd","dtshd"],["audio/vnd.lucent.voice","lvp"],["audio/vnd.ms-playready.media.pya","pya"],["audio/vnd.nuera.ecelp4800","ecelp4800"],["audio/vnd.nuera.ecelp7470","ecelp7470"],["audio/vnd.nuera.ecelp9600","ecelp9600"],["audio/vnd.qcelp","qcp"],["audio/vnd.rip","rip"],["audio/voc","voc"],["audio/voxware","vox"],["audio/wav","wav"],["audio/webm","weba"],["audio/x-aac","aac"],["audio/x-adpcm","snd"],["audio/x-aiff",["aiff","aif","aifc"]],["audio/x-au","au"],["audio/x-gsm",["gsd","gsm"]],["audio/x-jam","jam"],["audio/x-liveaudio","lam"],["audio/x-mid",["mid","midi"]],["audio/x-midi",["midi","mid"]],["audio/x-mod","mod"],["audio/x-mpeg","mp2"],["audio/x-mpeg-3","mp3"],["audio/x-mpegurl","m3u"],["audio/x-mpequrl","m3u"],["audio/x-ms-wax","wax"],["audio/x-ms-wma","wma"],["audio/x-nspaudio",["la","lma"]],["audio/x-pn-realaudio",["ra","ram","rm","rmm","rmp"]],["audio/x-pn-realaudio-plugin",["ra","rmp","rpm"]],["audio/x-psid","sid"],["audio/x-realaudio","ra"],["audio/x-twinvq","vqf"],["audio/x-twinvq-plugin",["vqe","vql"]],["audio/x-vnd.audioexplosion.mjuicemediafile","mjf"],["audio/x-voc","voc"],["audio/x-wav","wav"],["audio/xm","xm"],["chemical/x-cdx","cdx"],["chemical/x-cif","cif"],["chemical/x-cmdf","cmdf"],["chemical/x-cml","cml"],["chemical/x-csml","csml"],["chemical/x-pdb",["pdb","xyz"]],["chemical/x-xyz","xyz"],["drawing/x-dwf","dwf"],["i-world/i-vrml","ivr"],["image/bmp",["bmp","bm"]],["image/cgm","cgm"],["image/cis-cod","cod"],["image/cmu-raster",["ras","rast"]],["image/fif","fif"],["image/florian",["flo","turbot"]],["image/g3fax","g3"],["image/gif","gif"],["image/ief",["ief","iefs"]],["image/jpeg",["jpeg","jpe","jpg","jfif","jfif-tbnl"]],["image/jutvision","jut"],["image/ktx","ktx"],["image/naplps",["nap","naplps"]],["image/pict",["pic","pict"]],["image/pipeg","jfif"],["image/pjpeg",["jfif","jpe","jpeg","jpg"]],["image/png",["png","x-png"]],["image/prs.btif","btif"],["image/svg+xml","svg"],["image/tiff",["tif","tiff"]],["image/vasa","mcf"],["image/vnd.adobe.photoshop","psd"],["image/vnd.dece.graphic","uvi"],["image/vnd.djvu","djvu"],["image/vnd.dvb.subtitle","sub"],["image/vnd.dwg",["dwg","dxf","svf"]],["image/vnd.dxf","dxf"],["image/vnd.fastbidsheet","fbs"],["image/vnd.fpx","fpx"],["image/vnd.fst","fst"],["image/vnd.fujixerox.edmics-mmr","mmr"],["image/vnd.fujixerox.edmics-rlc","rlc"],["image/vnd.ms-modi","mdi"],["image/vnd.net-fpx",["fpx","npx"]],["image/vnd.rn-realflash","rf"],["image/vnd.rn-realpix","rp"],["image/vnd.wap.wbmp","wbmp"],["image/vnd.xiff","xif"],["image/webp","webp"],["image/x-cmu-raster","ras"],["image/x-cmx","cmx"],["image/x-dwg",["dwg","dxf","svf"]],["image/x-freehand","fh"],["image/x-icon","ico"],["image/x-jg","art"],["image/x-jps","jps"],["image/x-niff",["niff","nif"]],["image/x-pcx","pcx"],["image/x-pict",["pct","pic"]],["image/x-portable-anymap","pnm"],["image/x-portable-bitmap","pbm"],["image/x-portable-graymap","pgm"],["image/x-portable-greymap","pgm"],["image/x-portable-pixmap","ppm"],["image/x-quicktime",["qif","qti","qtif"]],["image/x-rgb","rgb"],["image/x-tiff",["tif","tiff"]],["image/x-windows-bmp","bmp"],["image/x-xbitmap","xbm"],["image/x-xbm","xbm"],["image/x-xpixmap",["xpm","pm"]],["image/x-xwd","xwd"],["image/x-xwindowdump","xwd"],["image/xbm","xbm"],["image/xpm","xpm"],["message/rfc822",["eml","mht","mhtml","nws","mime"]],["model/iges",["iges","igs"]],["model/mesh","msh"],["model/vnd.collada+xml","dae"],["model/vnd.dwf","dwf"],["model/vnd.gdl","gdl"],["model/vnd.gtw","gtw"],["model/vnd.mts","mts"],["model/vnd.vtu","vtu"],["model/vrml",["vrml","wrl","wrz"]],["model/x-pov","pov"],["multipart/x-gzip","gzip"],["multipart/x-ustar","ustar"],["multipart/x-zip","zip"],["music/crescendo",["mid","midi"]],["music/x-karaoke","kar"],["paleovu/x-pv","pvu"],["text/asp","asp"],["text/calendar","ics"],["text/css","css"],["text/csv","csv"],["text/ecmascript","js"],["text/h323","323"],["text/html",["html","htm","stm","acgi","htmls","htx","shtml"]],["text/iuls","uls"],["text/javascript","js"],["text/mcf","mcf"],["text/n3","n3"],["text/pascal","pas"],["text/plain",["txt","bas","c","h","c++","cc","com","conf","cxx","def","f","f90","for","g","hh","idc","jav","java","list","log","lst","m","mar","pl","sdml","text"]],["text/plain-bas","par"],["text/prs.lines.tag","dsc"],["text/richtext",["rtx","rt","rtf"]],["text/scriplet","wsc"],["text/scriptlet","sct"],["text/sgml",["sgm","sgml"]],["text/tab-separated-values","tsv"],["text/troff","t"],["text/turtle","ttl"],["text/uri-list",["uni","unis","uri","uris"]],["text/vnd.abc","abc"],["text/vnd.curl","curl"],["text/vnd.curl.dcurl","dcurl"],["text/vnd.curl.mcurl","mcurl"],["text/vnd.curl.scurl","scurl"],["text/vnd.fly","fly"],["text/vnd.fmi.flexstor","flx"],["text/vnd.graphviz","gv"],["text/vnd.in3d.3dml","3dml"],["text/vnd.in3d.spot","spot"],["text/vnd.rn-realtext","rt"],["text/vnd.sun.j2me.app-descriptor","jad"],["text/vnd.wap.wml","wml"],["text/vnd.wap.wmlscript","wmls"],["text/webviewhtml","htt"],["text/x-asm",["asm","s"]],["text/x-audiosoft-intra","aip"],["text/x-c",["c","cc","cpp"]],["text/x-component","htc"],["text/x-fortran",["for","f","f77","f90"]],["text/x-h",["h","hh"]],["text/x-java-source",["java","jav"]],["text/x-java-source,java","java"],["text/x-la-asf","lsx"],["text/x-m","m"],["text/x-pascal","p"],["text/x-script","hlb"],["text/x-script.csh","csh"],["text/x-script.elisp","el"],["text/x-script.guile","scm"],["text/x-script.ksh","ksh"],["text/x-script.lisp","lsp"],["text/x-script.perl","pl"],["text/x-script.perl-module","pm"],["text/x-script.phyton","py"],["text/x-script.rexx","rexx"],["text/x-script.scheme","scm"],["text/x-script.sh","sh"],["text/x-script.tcl","tcl"],["text/x-script.tcsh","tcsh"],["text/x-script.zsh","zsh"],["text/x-server-parsed-html",["shtml","ssi"]],["text/x-setext","etx"],["text/x-sgml",["sgm","sgml"]],["text/x-speech",["spc","talk"]],["text/x-uil","uil"],["text/x-uuencode",["uu","uue"]],["text/x-vcalendar","vcs"],["text/x-vcard","vcf"],["text/xml","xml"],["video/3gpp","3gp"],["video/3gpp2","3g2"],["video/animaflex","afl"],["video/avi","avi"],["video/avs-video","avs"],["video/dl","dl"],["video/fli","fli"],["video/gl","gl"],["video/h261","h261"],["video/h263","h263"],["video/h264","h264"],["video/jpeg","jpgv"],["video/jpm","jpm"],["video/mj2","mj2"],["video/mp4","mp4"],["video/mpeg",["mpeg","mp2","mpa","mpe","mpg","mpv2","m1v","m2v","mp3"]],["video/msvideo","avi"],["video/ogg","ogv"],["video/quicktime",["mov","qt","moov"]],["video/vdo","vdo"],["video/vivo",["viv","vivo"]],["video/vnd.dece.hd","uvh"],["video/vnd.dece.mobile","uvm"],["video/vnd.dece.pd","uvp"],["video/vnd.dece.sd","uvs"],["video/vnd.dece.video","uvv"],["video/vnd.fvt","fvt"],["video/vnd.mpegurl","mxu"],["video/vnd.ms-playready.media.pyv","pyv"],["video/vnd.rn-realvideo","rv"],["video/vnd.uvvu.mp4","uvu"],["video/vnd.vivo",["viv","vivo"]],["video/vosaic","vos"],["video/webm","webm"],["video/x-amt-demorun","xdr"],["video/x-amt-showrun","xsr"],["video/x-atomic3d-feature","fmf"],["video/x-dl","dl"],["video/x-dv",["dif","dv"]],["video/x-f4v","f4v"],["video/x-fli","fli"],["video/x-flv","flv"],["video/x-gl","gl"],["video/x-isvideo","isu"],["video/x-la-asf",["lsf","lsx"]],["video/x-m4v","m4v"],["video/x-motion-jpeg","mjpg"],["video/x-mpeg",["mp3","mp2"]],["video/x-mpeq2a","mp2"],["video/x-ms-asf",["asf","asr","asx"]],["video/x-ms-asf-plugin","asx"],["video/x-ms-wm","wm"],["video/x-ms-wmv","wmv"],["video/x-ms-wmx","wmx"],["video/x-ms-wvx","wvx"],["video/x-msvideo","avi"],["video/x-qtc","qtc"],["video/x-scm","scm"],["video/x-sgi-movie",["movie","mv"]],["windows/metafile","wmf"],["www/mime","mime"],["x-conference/x-cooltalk","ice"],["x-music/x-midi",["mid","midi"]],["x-world/x-3dmf",["3dm","3dmf","qd3","qd3d"]],["x-world/x-svr","svr"],["x-world/x-vrml",["flr","vrml","wrl","wrz","xaf","xof"]],["x-world/x-vrt","vrt"],["xgl/drawing","xgz"],["xgl/movie","xmz"]]),ot=new Map([["123","application/vnd.lotus-1-2-3"],["323","text/h323"],["*","application/octet-stream"],["3dm","x-world/x-3dmf"],["3dmf","x-world/x-3dmf"],["3dml","text/vnd.in3d.3dml"],["3g2","video/3gpp2"],["3gp","video/3gpp"],["7z","application/x-7z-compressed"],["a","application/octet-stream"],["aab","application/x-authorware-bin"],["aac","audio/x-aac"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abc","text/vnd.abc"],["abw","application/x-abiword"],["ac","application/pkix-attr-cert"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acgi","text/html"],["acu","application/vnd.acucobol"],["acx","application/internet-property-stream"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afl","video/animaflex"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/postscript"],["aif",["audio/aiff","audio/x-aiff"]],["aifc",["audio/aiff","audio/x-aiff"]],["aiff",["audio/aiff","audio/x-aiff"]],["aim","application/x-aim"],["aip","text/x-audiosoft-intra"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["ani","application/x-navi-animation"],["aos","application/x-nokia-9000-communicator-add-on-software"],["apk","application/vnd.android.package-archive"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["aps","application/mime"],["arc","application/octet-stream"],["arj",["application/arj","application/octet-stream"]],["art","image/x-jg"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asp","text/asp"],["asr","video/x-ms-asf"],["asx",["video/x-ms-asf","application/x-mplayer2","video/x-ms-asf-plugin"]],["atc","application/vnd.acucorp"],["atomcat","application/atomcat+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au",["audio/basic","audio/x-au"]],["avi",["video/avi","video/msvideo","application/x-troff-msvideo","video/x-msvideo"]],["avs","video/avs-video"],["aw","application/applixware"],["axs","application/olescript"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azw","application/vnd.amazon.ebook"],["bas","text/plain"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin",["application/octet-stream","application/mac-binary","application/macbinary","application/x-macbinary","application/x-binary"]],["bm","image/bmp"],["bmi","application/vnd.bmi"],["bmp",["image/bmp","image/x-windows-bmp"]],["boo","application/book"],["book","application/book"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bsh","application/x-bsh"],["btif","image/prs.btif"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c",["text/plain","text/x-c"]],["c++","text/plain"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["c4g","application/vnd.clonk.c4group"],["cab","application/vnd.ms-cab-compressed"],["car","application/vnd.curl.car"],["cat",["application/vnd.ms-pkiseccat","application/vnd.ms-pki.seccat"]],["cc",["text/plain","text/x-c"]],["ccad","application/clariscad"],["cco","application/x-cocoa"],["ccxml","application/ccxml+xml,"],["cdbcmsg","application/vnd.contact.cmsg"],["cdf",["application/cdf","application/x-cdf","application/x-netcdf"]],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer",["application/pkix-cert","application/x-x509-ca-cert"]],["cgm","image/cgm"],["cha","application/x-chat"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cla","application/vnd.claymore"],["class",["application/octet-stream","application/java","application/java-byte-code","application/java-vm","application/x-java-class"]],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod",["image/cis-cod","application/vnd.rim.cod"]],["com",["application/octet-stream","text/plain"]],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt",["application/mac-compactpro","application/x-compactpro","application/x-cpt"]],["crd","application/x-mscardfile"],["crl",["application/pkix-crl","application/pkcs-crl"]],["crt",["application/pkix-cert","application/x-x509-user-cert","application/x-x509-ca-cert"]],["cryptonote","application/vnd.rig.cryptonote"],["csh",["text/x-script.csh","application/x-csh"]],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["css",["text/css","application/x-pointplus"]],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxx","text/plain"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["davmount","application/davmount+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["deb","application/x-debian-package"],["deepv","application/x-deepv"],["def","text/plain"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dif","video/x-dv"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["djvu","image/vnd.djvu"],["dl",["video/dl","video/x-dl"]],["dll","application/x-msdownload"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.document.macroenabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroenabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp",["application/commonground","application/vnd.osgi.dp"]],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drw","application/drafting"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dv","video/x-dv"],["dvi","application/x-dvi"],["dwf",["model/vnd.dwf","drawing/x-dwf"]],["dwg",["application/acad","image/vnd.dwg","image/x-dwg"]],["dxf",["application/dxf","image/vnd.dwg","image/vnd.dxf","image/x-dwg"]],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["el","text/x-script.elisp"],["elc",["application/x-elc","application/x-bytecode.elisp"]],["eml","message/rfc822"],["emma","application/emma+xml"],["env","application/x-envoy"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es",["application/ecmascript","application/x-esrehber"]],["es3","application/vnd.eszigno3+xml"],["esf","application/vnd.epson.esf"],["etx","text/x-setext"],["evy",["application/envoy","application/x-envoy"]],["exe",["application/octet-stream","application/x-msdownload"]],["exi","application/exi"],["ext","application/vnd.novadigm.ext"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f",["text/plain","text/x-fortran"]],["f4v","video/x-f4v"],["f77","text/x-fortran"],["f90",["text/plain","text/x-fortran"]],["fbs","image/vnd.fastbidsheet"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fh","image/x-freehand"],["fif",["application/fractals","image/fif"]],["fig","application/x-xfig"],["fli",["video/fli","video/x-fli"]],["flo",["image/florian","application/vnd.micrografx.flo"]],["flr","x-world/x-vrml"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fmf","video/x-atomic3d-feature"],["fnc","application/vnd.frogans.fnc"],["for",["text/plain","text/x-fortran"]],["fpx",["image/vnd.fpx","image/vnd.net-fpx"]],["frl","application/freeloader"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["funk","audio/make"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g","text/plain"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gdl","model/vnd.gdl"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["gl",["video/gl","video/x-gl"]],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gph","application/vnd.flographit"],["gqf","application/vnd.grafeq"],["gram","application/srgs"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsd","audio/x-gsm"],["gsf","application/x-font-ghostscript"],["gsm","audio/x-gsm"],["gsp","application/x-gsp"],["gss","application/x-gss"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxt","application/vnd.geonext"],["gz",["application/x-gzip","application/x-compressed"]],["gzip",["multipart/x-gzip","application/x-gzip"]],["h",["text/plain","text/x-h"]],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hdf","application/x-hdf"],["help","application/x-helpfile"],["hgl","application/vnd.hp-hpgl"],["hh",["text/plain","text/x-h"]],["hlb","text/x-script"],["hlp",["application/winhlp","application/hlp","application/x-helpfile","application/x-winhelp"]],["hpg","application/vnd.hp-hpgl"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx",["application/mac-binhex40","application/binhex","application/binhex4","application/mac-binhex","application/x-binhex40","application/x-mac-binhex40"]],["hta","application/hta"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["htmls","text/html"],["htt","text/webviewhtml"],["htx","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["ico","image/x-icon"],["ics","text/calendar"],["idc","text/plain"],["ief","image/ief"],["iefs","image/ief"],["ifm","application/vnd.shana.informed.formdata"],["iges",["application/iges","model/iges"]],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs",["application/iges","model/iges"]],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["iii","application/x-iphone"],["ima","application/x-ima"],["imap","application/x-httpd-imap"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["inf","application/inf"],["ins",["application/x-internet-signup","application/x-internett-signup"]],["ip","application/x-ip2"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["isp","application/x-internet-signup"],["isu","video/x-isvideo"],["it","audio/it"],["itp","application/vnd.shana.informed.formtemplate"],["iv","application/x-inventor"],["ivp","application/vnd.immervision-ivp"],["ivr","i-world/i-vrml"],["ivu","application/vnd.immervision-ivu"],["ivy","application/x-livescreen"],["jad","text/vnd.sun.j2me.app-descriptor"],["jam",["application/vnd.jam","audio/x-jam"]],["jar","application/java-archive"],["jav",["text/plain","text/x-java-source"]],["java",["text/plain","text/x-java-source,java","text/x-java-source"]],["jcm","application/x-java-commerce"],["jfif",["image/pipeg","image/jpeg","image/pjpeg"]],["jfif-tbnl","image/jpeg"],["jisp","application/vnd.jisp"],["jlt","application/vnd.hp-jlyt"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jpe",["image/jpeg","image/pjpeg"]],["jpeg",["image/jpeg","image/pjpeg"]],["jpg",["image/jpeg","image/pjpeg"]],["jpgv","video/jpeg"],["jpm","video/jpm"],["jps","image/x-jps"],["js",["application/javascript","application/ecmascript","text/javascript","text/ecmascript","application/x-javascript"]],["json","application/json"],["jut","image/jutvision"],["kar",["audio/midi","music/x-karaoke"]],["karbon","application/vnd.kde.karbon"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["ksh",["application/x-ksh","text/x-script.ksh"]],["ksp","application/vnd.kde.kspread"],["ktx","image/ktx"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["la",["audio/nspaudio","audio/x-nspaudio"]],["lam","audio/x-liveaudio"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["lha",["application/octet-stream","application/lha","application/x-lha"]],["lhx","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["lma",["audio/nspaudio","audio/x-nspaudio"]],["log","text/plain"],["lrm","application/vnd.ms-lrm"],["lsf","video/x-la-asf"],["lsp",["application/x-lisp","text/x-script.lisp"]],["lst","text/plain"],["lsx",["video/x-la-asf","text/x-la-asf"]],["ltf","application/vnd.frogans.ltf"],["ltx","application/x-latex"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh",["application/octet-stream","application/x-lzh"]],["lzx",["application/lzx","application/octet-stream","application/x-lzx"]],["m",["text/plain","text/x-m"]],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m1v","video/mpeg"],["m21","application/mp21"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3u",["audio/x-mpegurl","audio/x-mpequrl"]],["m3u8","application/vnd.apple.mpegurl"],["m4v","video/x-m4v"],["ma","application/mathematica"],["mads","application/mads+xml"],["mag","application/vnd.ecowin.chart"],["man","application/x-troff-man"],["map","application/x-navimap"],["mar","text/plain"],["mathml","application/mathml+xml"],["mbd","application/mbedlet"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc$","application/x-magic-cap-package-1.0"],["mc1","application/vnd.medcalcdata"],["mcd",["application/mcad","application/vnd.mcd","application/x-mathcad"]],["mcf",["image/vasa","text/mcf"]],["mcp","application/netmc"],["mcurl","text/vnd.curl.mcurl"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["me","application/x-troff-me"],["meta4","application/metalink4+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mht","message/rfc822"],["mhtml","message/rfc822"],["mid",["audio/mid","audio/midi","music/crescendo","x-music/x-midi","audio/x-midi","application/x-midi","audio/x-mid"]],["midi",["audio/midi","music/crescendo","x-music/x-midi","audio/x-midi","application/x-midi","audio/x-mid"]],["mif",["application/vnd.mif","application/x-mif","application/x-frame"]],["mime",["message/rfc822","www/mime"]],["mj2","video/mj2"],["mjf","audio/x-vnd.audioexplosion.mjuicemediafile"],["mjpg","video/x-motion-jpeg"],["mlp","application/vnd.dolby.mlp"],["mm",["application/base64","application/x-meme"]],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mme","application/base64"],["mmf","application/vnd.smaf"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mny","application/x-msmoney"],["mod",["audio/mod","audio/x-mod"]],["mods","application/mods+xml"],["moov","video/quicktime"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2",["video/mpeg","audio/mpeg","video/x-mpeg","audio/x-mpeg","video/x-mpeq2a"]],["mp3",["audio/mpeg","audio/mpeg3","video/mpeg","audio/x-mpeg-3","video/x-mpeg"]],["mp4",["video/mp4","application/mp4"]],["mp4a","audio/mp4"],["mpa",["video/mpeg","audio/mpeg"]],["mpc",["application/vnd.mophun.certificate","application/x-project"]],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg",["video/mpeg","audio/mpeg"]],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/x-project"],["mpv","application/x-project"],["mpv2","video/mpeg"],["mpx","application/x-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","application/x-troff-ms"],["mscml","application/mediaservercontrol+xml"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msl","application/vnd.mobius.msl"],["msty","application/vnd.muvee.style"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musicxml","application/vnd.recordare.musicxml+xml"],["mv","video/x-sgi-movie"],["mvb","application/x-msmediaview"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["my","audio/make"],["mzz","application/x-vnd.audioexplosion.mzz"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nap","image/naplps"],["naplps","image/naplps"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncm","application/vnd.nokia.configuration-message"],["ncx","application/x-dtbncx+xml"],["ngdat","application/vnd.nokia.n-gage.data"],["nif","image/x-niff"],["niff","image/x-niff"],["nix","application/x-mix-transfer"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nvd","application/x-navidoc"],["nws","message/rfc822"],["o","application/octet-stream"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omc","application/x-omc"],["omcd","application/x-omcdatamaker"],["omcr","application/x-omcregerator"],["onetoc","application/onenote"],["opf","application/oebps-package+xml"],["org","application/vnd.lotus-organizer"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","application/x-font-otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p10",["application/pkcs10","application/x-pkcs10"]],["p12",["application/pkcs-12","application/x-pkcs12"]],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c",["application/pkcs7-mime","application/x-pkcs7-mime"]],["p7m",["application/pkcs7-mime","application/x-pkcs7-mime"]],["p7r","application/x-pkcs7-certreqresp"],["p7s",["application/pkcs7-signature","application/x-pkcs7-signature"]],["p8","application/pkcs8"],["par","text/plain-bas"],["part","application/pro_eng"],["pas","text/pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcf","application/x-font-pcf"],["pcl",["application/vnd.hp-pcl","application/x-pcl"]],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb",["application/vnd.palm","chemical/x-pdb"]],["pdf","application/pdf"],["pfa","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfunk",["audio/make","audio/make.my.funk"]],["pfx","application/x-pkcs12"],["pgm",["image/x-portable-graymap","image/x-portable-greymap"]],["pgn","application/x-chess-pgn"],["pgp","application/pgp-signature"],["pic",["image/pict","image/x-pict"]],["pict","image/pict"],["pkg","application/x-newton-compatible-pkg"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pko",["application/ynd.ms-pkipko","application/vnd.ms-pki.pko"]],["pl",["text/plain","text/x-script.perl"]],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["plx","application/x-pixclscript"],["pm",["text/x-script.perl-module","image/x-xpixmap"]],["pm4","application/x-pagemaker"],["pm5","application/x-pagemaker"],["pma","application/x-perfmon"],["pmc","application/x-perfmon"],["pml",["application/vnd.ctc-posml","application/x-perfmon"]],["pmr","application/x-perfmon"],["pmw","application/x-perfmon"],["png","image/png"],["pnm",["application/x-portable-anymap","image/x-portable-anymap"]],["portpkg","application/vnd.macports.portpkg"],["pot",["application/vnd.ms-powerpoint","application/mspowerpoint"]],["potm","application/vnd.ms-powerpoint.template.macroenabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["pov","model/x-pov"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroenabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps",["application/vnd.ms-powerpoint","application/mspowerpoint"]],["ppsm","application/vnd.ms-powerpoint.slideshow.macroenabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt",["application/vnd.ms-powerpoint","application/mspowerpoint","application/powerpoint","application/x-mspowerpoint"]],["pptm","application/vnd.ms-powerpoint.presentation.macroenabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["ppz","application/mspowerpoint"],["prc","application/x-mobipocket-ebook"],["pre",["application/vnd.lotus-freelance","application/x-freelance"]],["prf","application/pics-rules"],["prt","application/pro_eng"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd",["application/octet-stream","image/vnd.adobe.photoshop"]],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pvu","paleovu/x-pv"],["pwn","application/vnd.3m.post-it-notes"],["pwz","application/vnd.ms-powerpoint"],["py","text/x-script.phyton"],["pya","audio/vnd.ms-playready.media.pya"],["pyc","application/x-bytecode.python"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qcp","audio/vnd.qcelp"],["qd3","x-world/x-3dmf"],["qd3d","x-world/x-3dmf"],["qfx","application/vnd.intu.qfx"],["qif","image/x-quicktime"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qtc","video/x-qtc"],["qti","image/x-quicktime"],["qtif","image/x-quicktime"],["qxd","application/vnd.quark.quarkxpress"],["ra",["audio/x-realaudio","audio/x-pn-realaudio","audio/x-pn-realaudio-plugin"]],["ram","audio/x-pn-realaudio"],["rar","application/x-rar-compressed"],["ras",["image/cmu-raster","application/x-cmu-raster","image/x-cmu-raster"]],["rast","image/cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rexx","text/x-script.rexx"],["rf","image/vnd.rn-realflash"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm",["application/vnd.rn-realmedia","audio/x-pn-realaudio"]],["rmi","audio/mid"],["rmm","audio/x-pn-realaudio"],["rmp",["audio/x-pn-realaudio-plugin","audio/x-pn-realaudio"]],["rms","application/vnd.jcp.javame.midlet-rms"],["rnc","application/relax-ng-compact-syntax"],["rng",["application/ringing-tones","application/vnd.nokia.ringing-tone"]],["rnx","application/vnd.rn-realplayer"],["roff","application/x-troff"],["rp","image/vnd.rn-realpix"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsd","application/rsd+xml"],["rt",["text/richtext","text/vnd.rn-realtext"]],["rtf",["application/rtf","text/richtext","application/x-rtf"]],["rtx",["text/richtext","application/rtf"]],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["saveme","application/octet-stream"],["sbk","application/x-tbook"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm",["application/vnd.lotus-screencam","video/x-scm","text/x-script.guile","application/x-lotusscreencam","text/x-script.scheme"]],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["sct","text/scriptlet"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkm","application/vnd.solent.sdkm+xml"],["sdml","text/plain"],["sdp",["application/sdp","application/x-sdp"]],["sdr","application/sounder"],["sdw","application/vnd.stardivision.writer"],["sea",["application/sea","application/x-sea"]],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["ser","application/java-serialized-object"],["set","application/set"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sgl","application/vnd.stardivision.writer-global"],["sgm",["text/sgml","text/x-sgml"]],["sgml",["text/sgml","text/x-sgml"]],["sh",["application/x-shar","application/x-bsh","application/x-sh","text/x-script.sh"]],["shar",["application/x-bsh","application/x-shar"]],["shf","application/shf+xml"],["shtml",["text/html","text/x-server-parsed-html"]],["sid","audio/x-psid"],["sis","application/vnd.symbian.install"],["sit",["application/x-stuffit","application/x-sit"]],["sitx","application/x-stuffitx"],["skd","application/x-koan"],["skm","application/x-koan"],["skp",["application/vnd.koan","application/x-koan"]],["skt","application/x-koan"],["sl","application/x-seelogo"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi",["application/smil","application/smil+xml"]],["smil","application/smil"],["snd",["audio/basic","audio/x-adpcm"]],["snf","application/x-font-snf"],["sol","application/solids"],["spc",["text/x-speech","application/x-pkcs7-certificates"]],["spf","application/vnd.yamaha.smaf-phrase"],["spl",["application/futuresplash","application/x-futuresplash"]],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spr","application/x-sprite"],["sprite","application/x-sprite"],["src","application/x-wais-source"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssi","text/x-server-parsed-html"],["ssm","application/streamingmedia"],["ssml","application/ssml+xml"],["sst",["application/vnd.ms-pkicertstore","application/vnd.ms-pki.certstore"]],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["step","application/step"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl",["application/vnd.ms-pkistl","application/sla","application/vnd.ms-pki.stl","application/x-navistyle"]],["stm","text/html"],["stp","application/step"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["sub","image/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svf",["image/vnd.dwg","image/x-dwg"]],["svg","image/svg+xml"],["svr",["x-world/x-svr","application/x-world"]],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t",["text/troff","application/x-troff"]],["talk","text/x-speech"],["tao","application/vnd.tao.intent-module-archive"],["tar","application/x-tar"],["tbk",["application/toolbook","application/x-tbook"]],["tcap","application/vnd.3gpp2.tcap"],["tcl",["text/x-script.tcl","application/x-tcl"]],["tcsh","text/x-script.tcsh"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text",["application/plain","text/plain"]],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tgz",["application/gnutar","application/x-compressed"]],["thmx","application/vnd.ms-officetheme"],["tif",["image/tiff","image/x-tiff"]],["tiff",["image/tiff","image/x-tiff"]],["tmo","application/vnd.tmobile-livetv"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","application/x-troff"],["tra","application/vnd.trueapp"],["trm","application/x-msterminal"],["tsd","application/timestamped-data"],["tsi","audio/tsp-audio"],["tsp",["application/dsptype","audio/tsplayer"]],["tsv","text/tab-separated-values"],["ttf","application/x-font-ttf"],["ttl","text/turtle"],["turbot","image/florian"],["twd","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["ufd","application/vnd.ufdl"],["uil","text/x-uil"],["uls","text/iuls"],["umj","application/vnd.umajin"],["uni","text/uri-list"],["unis","text/uri-list"],["unityweb","application/vnd.unity"],["unv","application/i-deas"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["ustar",["application/x-ustar","multipart/x-ustar"]],["utz","application/vnd.uiq.theme"],["uu",["application/octet-stream","text/x-uuencode"]],["uue","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vda","application/vda"],["vdo","video/vdo"],["vew","application/groupwise"],["vis","application/vnd.visionary"],["viv",["video/vivo","video/vnd.vivo"]],["vivo",["video/vivo","video/vnd.vivo"]],["vmd","application/vocaltec-media-desc"],["vmf","application/vocaltec-media-file"],["voc",["audio/voc","audio/x-voc"]],["vos","video/vosaic"],["vox","audio/voxware"],["vqe","audio/x-twinvq-plugin"],["vqf","audio/x-twinvq"],["vql","audio/x-twinvq-plugin"],["vrml",["model/vrml","x-world/x-vrml","application/x-vrml"]],["vrt","x-world/x-vrt"],["vsd",["application/vnd.visio","application/x-visio"]],["vsf","application/vnd.vsf"],["vst","application/x-visio"],["vsw","application/x-visio"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w60","application/wordperfect6.0"],["w61","application/wordperfect6.1"],["w6w","application/msword"],["wad","application/x-doom"],["wav",["audio/wav","audio/x-wav"]],["wax","audio/x-ms-wax"],["wb1","application/x-qpro"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/vnd.wap.wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["web","application/vnd.xara"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wiz","application/msword"],["wk1","application/x-123"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf",["windows/metafile","application/x-msmetafile"]],["wml","text/vnd.wap.wml"],["wmlc","application/vnd.wap.wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-ms-wmz"],["woff","application/x-font-woff"],["word","application/msword"],["wp","application/wordperfect"],["wp5",["application/wordperfect","application/wordperfect6.0"]],["wp6","application/wordperfect"],["wpd",["application/wordperfect","application/vnd.wordperfect","application/x-wpwin"]],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wq1","application/x-lotus"],["wqd","application/vnd.wqd"],["wri",["application/mswrite","application/x-wri","application/x-mswrite"]],["wrl",["model/vrml","x-world/x-vrml","application/x-world"]],["wrz",["model/vrml","x-world/x-vrml"]],["wsc","text/scriplet"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wsrc","application/x-wais-source"],["wtb","application/vnd.webturbo"],["wtk","application/x-wintalk"],["wvx","video/x-ms-wvx"],["x-png","image/png"],["x3d","application/vnd.hzn-3d-crossword"],["xaf","x-world/x-vrml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm",["image/xbm","image/x-xbm","image/x-xbitmap"]],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdr","video/x-amt-demorun"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xgz","xgl/drawing"],["xhtml","application/xhtml+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla",["application/vnd.ms-excel","application/excel","application/x-msexcel","application/x-excel"]],["xlam","application/vnd.ms-excel.addin.macroenabled.12"],["xlb",["application/excel","application/vnd.ms-excel","application/x-excel"]],["xlc",["application/vnd.ms-excel","application/excel","application/x-excel"]],["xld",["application/excel","application/x-excel"]],["xlk",["application/excel","application/x-excel"]],["xll",["application/excel","application/vnd.ms-excel","application/x-excel"]],["xlm",["application/vnd.ms-excel","application/excel","application/x-excel"]],["xls",["application/vnd.ms-excel","application/excel","application/x-msexcel","application/x-excel"]],["xlsb","application/vnd.ms-excel.sheet.binary.macroenabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroenabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt",["application/vnd.ms-excel","application/excel","application/x-excel"]],["xltm","application/vnd.ms-excel.template.macroenabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlv",["application/excel","application/x-excel"]],["xlw",["application/vnd.ms-excel","application/excel","application/x-msexcel","application/x-excel"]],["xm","audio/xm"],["xml",["application/xml","text/xml","application/atom+xml","application/rss+xml"]],["xmz","xgl/movie"],["xo","application/vnd.olpc-sugar"],["xof","x-world/x-vrml"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpix","application/x-vnd.ls-xpix"],["xpm",["image/xpm","image/x-xpixmap"]],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xsr","video/x-amt-showrun"],["xul","application/vnd.mozilla.xul+xml"],["xwd",["image/x-xwd","image/x-xwindowdump"]],["xyz",["chemical/x-xyz","chemical/x-pdb"]],["yang","application/yang"],["yin","application/yin+xml"],["z",["application/x-compressed","application/x-compress"]],["zaz","application/vnd.zzazz.deck+xml"],["zip",["application/zip","multipart/x-zip","application/x-zip-compressed","application/x-compressed"]],["zir","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zoo","application/octet-stream"],["zsh","text/x-script.zsh"]]);rt.exports={detectMimeType(o){if(!o)return nt;let e=is.parse(o),t=(e.ext.substr(1)||e.name||"").split("?").shift().trim().toLowerCase(),s=ot.has(t)?ot.get(t):nt;return Array.isArray(s)?s[0]:s},detectExtension(o){if(!o)return ss;let e=o.toLowerCase().trim().split("/"),t=e.shift().trim(),s=e.join("/").trim();if(at.has(t+"/"+s)){let i=at.get(t+"/"+s);return Array.isArray(i)?i[0]:i}return t==="text"?"txt":"bin"}};});var ae=chunkBUNLC3II_cjs.c((ba,ut)=>{chunkBUNLC3II_cjs.h();var ns=/^xn--/,as=/[^\0-\x7F]/,os=/[\x2E\u3002\uFF0E\uFF61]/g,rs={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},se=35,j=Math.floor,ne=String.fromCharCode;function q(o){throw new RangeError(rs[o])}function ps(o,e){let t=[],s=o.length;for(;s--;)t[s]=e(o[s]);return t}function ct(o,e){let t=o.split("@"),s="";t.length>1&&(s=t[0]+"@",o=t[1]),o=o.replace(os,".");let i=o.split("."),n=ps(i,e).join(".");return s+n}function lt(o){let e=[],t=0,s=o.length;for(;t<s;){let i=o.charCodeAt(t++);if(i>=55296&&i<=56319&&t<s){let n=o.charCodeAt(t++);(n&64512)==56320?e.push(((i&1023)<<10)+(n&1023)+65536):(e.push(i),t--);}else e.push(i);}return e}var cs=o=>String.fromCodePoint(...o),ls=function(o){return o>=48&&o<58?26+(o-48):o>=65&&o<91?o-65:o>=97&&o<123?o-97:36},pt=function(o,e){return o+22+75*(o<26)-((e!=0)<<5)},dt=function(o,e,t){let s=0;for(o=t?j(o/700):o>>1,o+=j(o/e);o>se*26>>1;s+=36)o=j(o/se);return j(s+(se+1)*o/(o+38))},mt=function(o){let e=[],t=o.length,s=0,i=128,n=72,a=o.lastIndexOf("-");a<0&&(a=0);for(let r=0;r<a;++r)o.charCodeAt(r)>=128&&q("not-basic"),e.push(o.charCodeAt(r));for(let r=a>0?a+1:0;r<t;){let p=s;for(let l=1,m=36;;m+=36){r>=t&&q("invalid-input");let d=ls(o.charCodeAt(r++));d>=36&&q("invalid-input"),d>j((2147483647-s)/l)&&q("overflow"),s+=d*l;let h=m<=n?1:m>=n+26?26:m-n;if(d<h)break;let f=36-h;l>j(2147483647/f)&&q("overflow"),l*=f;}let c=e.length+1;n=dt(s-p,c,p==0),j(s/c)>2147483647-i&&q("overflow"),i+=j(s/c),s%=c,e.splice(s++,0,i);}return String.fromCodePoint(...e)},ht=function(o){let e=[];o=lt(o);let t=o.length,s=128,i=0,n=72;for(let p of o)p<128&&e.push(ne(p));let a=e.length,r=a;for(a&&e.push("-");r<t;){let p=2147483647;for(let l of o)l>=s&&l<p&&(p=l);let c=r+1;p-s>j((2147483647-i)/c)&&q("overflow"),i+=(p-s)*c,s=p;for(let l of o)if(l<s&&++i>2147483647&&q("overflow"),l===s){let m=i;for(let d=36;;d+=36){let h=d<=n?1:d>=n+26?26:d-n;if(m<h)break;let f=m-h,g=36-h;e.push(ne(pt(h+f%g,0))),m=j(f/g);}e.push(ne(pt(m,0))),n=dt(i,c,r===a),i=0,++r;}++i,++s;}return e.join("")},ds=function(o){return ct(o,function(e){return ns.test(e)?mt(e.slice(4).toLowerCase()):e})},ms=function(o){return ct(o,function(e){return as.test(e)?"xn--"+ht(e):e})},hs={version:"2.3.1",ucs2:{decode:lt,encode:cs},decode:mt,encode:ht,toASCII:ms,toUnicode:ds};ut.exports=hs;});var ce=chunkBUNLC3II_cjs.c((Ea,ft)=>{chunkBUNLC3II_cjs.h();var{Transform:us}=chunkBUNLC3II_cjs.a("stream");function oe(o){return typeof o=="string"&&(o=Buffer.from(o,"utf-8")),o.toString("base64")}function re(o,e){if(o=(o||"").toString(),e=e||76,o.length<=e)return o;let t=[],s=0,i=e*1024,n=new RegExp(".{"+e+"}","g");for(;s<o.length;){let a=o.substr(s,i).replace(n,`$&\r
|
|
2
|
+
`).trim();t.push(a),s+=i;}return t.join(`\r
|
|
3
|
+
`).trim()}var pe=class extends us{constructor(e){super(),this.options=e||{},this.options.lineLength!==false&&(this.options.lineLength=this.options.lineLength||76),this._curLine="",this._remainingBytes=false,this.inputBytes=0,this.outputBytes=0;}_transform(e,t,s){if(t!=="buffer"&&(e=Buffer.from(e,t)),!e||!e.length)return setImmediate(s);this.inputBytes+=e.length,this._remainingBytes&&this._remainingBytes.length&&(e=Buffer.concat([this._remainingBytes,e],this._remainingBytes.length+e.length),this._remainingBytes=false),e.length%3?(this._remainingBytes=e.slice(e.length-e.length%3),e=e.slice(0,e.length-e.length%3)):this._remainingBytes=false;let i=this._curLine+oe(e);if(this.options.lineLength){i=re(i,this.options.lineLength);let n=i.lastIndexOf(`
|
|
4
|
+
`);n<0?(this._curLine=i,i=""):n===i.length-1?this._curLine="":(this._curLine=i.substring(n+1),i=i.substring(0,n+1));}i&&(this.outputBytes+=i.length,this.push(Buffer.from(i,"ascii"))),setImmediate(s);}_flush(e){this._remainingBytes&&this._remainingBytes.length&&(this._curLine+=oe(this._remainingBytes)),this._curLine&&(this._curLine=re(this._curLine,this.options.lineLength),this.outputBytes+=this._curLine.length,this.push(Buffer.from(this._curLine,"ascii")),this._curLine=""),e();}};ft.exports={encode:oe,wrap:re,Encoder:pe};});var me=chunkBUNLC3II_cjs.c((ka,gt)=>{chunkBUNLC3II_cjs.h();var{Transform:fs}=chunkBUNLC3II_cjs.a("stream"),xs=[[9],[10],[13],[32,60],[62,126]];function le(o){typeof o=="string"&&(o=Buffer.from(o,"utf-8"));let e="",t;for(let s=0,i=o.length;s<i;s++){if(t=o[s],gs(t,xs)&&!((t===32||t===9)&&(s===i-1||o[s+1]===10||o[s+1]===13))){e+=String.fromCharCode(t);continue}e+="="+(t<16?"0":"")+t.toString(16).toUpperCase();}return e}function xt(o,e){if(o=(o||"").toString(),e=e||76,o.length<=e)return o;let t=0,s=o.length,i,n,a,r=Math.floor(e/3),p="";for(;t<s;){if(a=o.substr(t,e),i=a.match(/\r\n/)){a=a.substr(0,i.index+i[0].length),p+=a,t+=a.length;continue}if(a.substr(-1)===`
|
|
5
|
+
`){p+=a,t+=a.length;continue}if(i=a.substr(-r).match(/\n.*?$/)){a=a.substr(0,a.length-(i[0].length-1)),p+=a,t+=a.length;continue}if(a.length>e-r&&(i=a.substr(-r).match(/[ \t.,!?][^ \t.,!?]*$/)))a=a.substr(0,a.length-(i[0].length-1));else if(a.match(/[=][\da-f]{0,2}$/i))for((i=a.match(/[=][\da-f]{0,1}$/i))&&(a=a.substr(0,a.length-i[0].length));a.length>3&&a.length<s-t&&!a.match(/^(?:=[\da-f]{2}){1,4}$/i)&&(i=a.match(/[=][\da-f]{2}$/gi))&&(n=parseInt(i[0].substr(1,2),16),!(n<128||(a=a.substr(0,a.length-3),n>=192))););t+a.length<s&&a.substr(-1)!==`
|
|
6
|
+
`?(a.length===e&&a.match(/[=][\da-f]{2}$/i)?a=a.substr(0,a.length-3):a.length===e&&(a=a.substr(0,a.length-1)),t+=a.length,a+=`=\r
|
|
7
|
+
`):t+=a.length,p+=a;}return p}function gs(o,e){for(let t=e.length-1;t>=0;t--){let s=e[t];if(s.length&&(s.length===1&&o===s[0]||s.length===2&&o>=s[0]&&o<=s[1]))return true}return false}var de=class extends fs{constructor(e){super(),this.options=e||{},this.options.lineLength!==false&&(this.options.lineLength=this.options.lineLength||76),this._curLine="",this.inputBytes=0,this.outputBytes=0;}_transform(e,t,s){let i;if(t!=="buffer"&&(e=Buffer.from(e,t)),!e||!e.length)return s();this.inputBytes+=e.length,this.options.lineLength?(i=this._curLine+le(e),i=xt(i,this.options.lineLength),i=i.replace(/(^|\n)([^\n]*)$/,(n,a,r)=>(this._curLine=r,a)),i&&(this.outputBytes+=i.length,this.push(i))):(i=le(e),this.outputBytes+=i.length,this.push(i,"ascii")),s();}_flush(e){this._curLine&&(this.outputBytes+=this._curLine.length,this.push(this._curLine,"ascii")),e();}};gt.exports={encode:le,wrap:xt,Encoder:de};});var P=chunkBUNLC3II_cjs.c((Ta,wt)=>{chunkBUNLC3II_cjs.h();var U=ce(),vs=me(),vt=ie();wt.exports={isPlainText(o,e){return typeof o=="string"&&!(e?/[\x00-\x08\x0b\x0c\x0e-\x1f"\u0080-\uFFFF]/:/[\x00-\x08\x0b\x0c\x0e-\x1f\u0080-\uFFFF]/).test(o)},hasLongerLines(o,e){return o.length>128*1024?true:new RegExp("^.{"+(e+1)+",}","m").test(o)},encodeWord(o,e,t){e=(e||"Q").toString().toUpperCase().trim().charAt(0),t=t||0;let s,i="UTF-8";if(t&&t>7+i.length&&(t-=7+i.length),e==="Q"?s=vs.encode(o).replace(/[^a-z0-9!*+\-/=]/gi,n=>{let a=n.charCodeAt(0).toString(16).toUpperCase();return n===" "?"_":"="+(a.length===1?"0"+a:a)}):e==="B"&&(s=typeof o=="string"?o:U.encode(o),t=t?Math.max(3,(t-t%4)/4*3):0),t&&(e!=="B"?s:U.encode(o)).length>t)if(e==="Q")s=this.splitMimeEncodedString(s,t).join("?= =?"+i+"?"+e+"?");else {let n=[],a="";for(let r=0,p=s.length;r<p;r++){let c=s.charAt(r);/[\ud83c\ud83d\ud83e]/.test(c)&&r<p-1&&(c+=s.charAt(++r)),Buffer.byteLength(a+c)<=t||r===0?a+=c:(n.push(U.encode(a)),a=c);}a&&n.push(U.encode(a)),n.length>1?s=n.join("?= =?"+i+"?"+e+"?"):s=n.join("");}else e==="B"&&(s=U.encode(o));return "=?"+i+"?"+e+"?"+s+(s.substr(-2)==="?="?"":"?=")},encodeWords(o,e,t,s){t=t||0;let i=o.match(/(?:^|\s)([^\s]*["\u0080-\uFFFF])/);if(!i)return o;if(s)return this.encodeWord(o,e,t);let n=o.match(/(["\u0080-\uFFFF][^\s]*)[^"\u0080-\uFFFF]*$/);if(!n)return o;let a=i.index+(i[0].match(/[^\s]/)||{index:0}).index,r=n.index+(n[1]||"").length;return (a?o.substr(0,a):"")+this.encodeWord(o.substring(a,r),e||"Q",t)+(r<o.length?o.substr(r):"")},buildHeaderValue(o){let e=[];return Object.keys(o.params||{}).forEach(t=>{let s=o.params[t];!this.isPlainText(s,true)||s.length>=75?this.buildHeaderParam(t,s,50).forEach(i=>{!/[\s"\\;:/=(),<>@[\]?]|^[-']|'$/.test(i.value)||i.key.substr(-1)==="*"?e.push(i.key+"="+i.value):e.push(i.key+"="+JSON.stringify(i.value));}):/[\s'"\\;:/=(),<>@[\]?]|^-/.test(s)?e.push(t+"="+JSON.stringify(s)):e.push(t+"="+s);}),o.value+(e.length?"; "+e.join("; "):"")},buildHeaderParam(o,e,t){let s=[],i=typeof e=="string"?e:(e||"").toString(),n,a,r,p=0,c,l;if(t=t||50,this.isPlainText(e,true)){if(i.length<=t)return [{key:o,value:i}];i=i.replace(new RegExp(".{"+t+"}","g"),m=>(s.push({line:m}),"")),i&&s.push({line:i});}else {if(/[\uD800-\uDBFF]/.test(i)){let d=[];for(c=0,l=i.length;c<l;c++)n=i.charAt(c),a=n.charCodeAt(0),a>=55296&&a<=56319&&c<l-1?(n+=i.charAt(c+1),d.push(n),c++):d.push(n);i=d;}r="utf-8''";let m=true;for(p=0,c=0,l=i.length;c<l;c++){if(n=i[c],m)n=this.safeEncodeURIComponent(n);else if(n=n===" "?n:this.safeEncodeURIComponent(n),n!==i[c])if((this.safeEncodeURIComponent(r)+n).length>=t)s.push({line:r,encoded:m}),r="",p=c-1;else {m=true,c=p,r="";continue}(r+n).length>=t?(s.push({line:r,encoded:m}),r=n=i[c]===" "?" ":this.safeEncodeURIComponent(i[c]),n===i[c]?(m=false,p=c-1):m=true):r+=n;}r&&s.push({line:r,encoded:m});}return s.map((m,d)=>({key:o+"*"+d+(m.encoded?"*":""),value:m.line}))},parseHeaderValue(o){let e={value:false,params:{}},t=false,s="",i="value",n=false,a=false,r;for(let p=0,c=o.length;p<c;p++)if(r=o.charAt(p),i==="key"){if(r==="="){t=s.trim().toLowerCase(),i="value",s="";continue}s+=r;}else {if(a)s+=r;else if(r==="\\"){a=true;continue}else n&&r===n?n=false:!n&&r==='"'?n=r:!n&&r===";"?(t===false?e.value=s.trim():e.params[t]=s.trim(),i="key",s=""):s+=r;a=false;}return i==="value"?t===false?e.value=s.trim():e.params[t]=s.trim():s.trim()&&(e.params[s.trim().toLowerCase()]=""),Object.keys(e.params).forEach(p=>{let c,l,m,d;(m=p.match(/(\*(\d+)|\*(\d+)\*|\*)$/))&&(c=p.substr(0,m.index),l=Number(m[2]||m[3])||0,(!e.params[c]||typeof e.params[c]!="object")&&(e.params[c]={charset:false,values:[]}),d=e.params[p],l===0&&m[0].substr(-1)==="*"&&(m=d.match(/^([^']*)'[^']*'(.*)$/))&&(e.params[c].charset=m[1]||"iso-8859-1",d=m[2]),e.params[c].values[l]=d,delete e.params[p]);}),Object.keys(e.params).forEach(p=>{let c;e.params[p]&&Array.isArray(e.params[p].values)&&(c=e.params[p].values.map(l=>l||"").join(""),e.params[p].charset?e.params[p]="=?"+e.params[p].charset+"?Q?"+c.replace(/[=?_\s]/g,l=>{let m=l.charCodeAt(0).toString(16);return l===" "?"_":"%"+(m.length<2?"0":"")+m}).replace(/%/g,"=")+"?=":e.params[p]=c);}),e},detectExtension:o=>vt.detectExtension(o),detectMimeType:o=>vt.detectMimeType(o),foldLines(o,e,t){o=(o||"").toString(),e=e||76;let s=0,i=o.length,n="",a,r;for(;s<i;){if(a=o.substr(s,e),a.length<e){n+=a;break}if(r=a.match(/^[^\n\r]*(\r?\n|\r)/)){a=r[0],n+=a,s+=a.length;continue}else (r=a.match(/(\s+)[^\s]*$/))&&r[0].length-(t?(r[1]||"").length:0)<a.length?a=a.substr(0,a.length-(r[0].length-(t?(r[1]||"").length:0))):(r=o.substr(s+a.length).match(/^[^\s]+(\s*)/))&&(a=a+r[0].substr(0,r[0].length-(t?0:(r[1]||"").length)));n+=a,s+=a.length,s<i&&(n+=`\r
|
|
8
|
+
`);}return n},splitMimeEncodedString:(o,e)=>{let t=[],s,i,n,a;for(e=Math.max(e||0,12);o.length;){for(s=o.substr(0,e),(i=s.match(/[=][0-9A-F]?$/i))&&(s=s.substr(0,i.index)),a=false;!a;)a=true,(i=o.substr(s.length).match(/^[=]([0-9A-F]{2})/i))&&(n=parseInt(i[1],16),n<194&&n>127&&(s=s.substr(0,s.length-3),a=false));s.length&&t.push(s),o=o.substr(s.length);}return t},encodeURICharComponent:o=>{let e="",t=o.charCodeAt(0).toString(16).toUpperCase();if(t.length%2&&(t="0"+t),t.length>2)for(let s=0,i=t.length/2;s<i;s++)e+="%"+t.substr(s,2);else e+="%"+t;return e},safeEncodeURIComponent(o){o=(o||"").toString();try{o=encodeURIComponent(o);}catch{return o.replace(/[^\x00-\x1F *'()<>@,;:\\"[\]?=\u007F-\uFFFF]+/g,"")}return o.replace(/[\x00-\x1F *'()<>@,;:\\"[\]?=\u007F-\uFFFF]/g,e=>this.encodeURICharComponent(e))}};});var yt=chunkBUNLC3II_cjs.c((ja,bt)=>{chunkBUNLC3II_cjs.h();function ws(o,e){let t=false,s="text",i=[],n={address:[],comment:[],group:[],text:[],textWasQuoted:[]},a=false;for(let r=0,p=o.length;r<p;r++){let c=o[r],l=r?o[r-1]:null;if(c.type==="operator")switch(c.value){case "<":s="address",a=false;break;case "(":s="comment",a=false;break;case ":":s="group",t=true,a=false;break;case '"':a=!a,s="text";break;default:s="text",a=false;break}else c.value&&(s==="address"&&(c.value=c.value.replace(/^[^<]*<\s*/,"")),l&&l.noBreak&&n[s].length?(n[s][n[s].length-1]+=c.value,s==="text"&&a&&(n.textWasQuoted[n.textWasQuoted.length-1]=true)):(n[s].push(c.value),s==="text"&&n.textWasQuoted.push(a)));}if(!n.text.length&&n.comment.length&&(n.text=n.comment,n.comment=[]),t){n.text=n.text.join(" ");let r=[];n.group.length&&_t(n.group.join(","),{_depth:e+1}).forEach(c=>{c.group?r=r.concat(c.group):r.push(c);}),i.push({name:n.text||"",group:r});}else {if(!n.address.length&&n.text.length){for(let p=n.text.length-1;p>=0;p--)if(!n.textWasQuoted[p]&&/^[^@\s]+@[^@\s]+$/.test(n.text[p])){n.address=n.text.splice(p,1),n.textWasQuoted.splice(p,1);break}if(!n.address.length){let p=false;for(let c=n.text.length-1;c>=0&&!(!n.textWasQuoted[c]&&(n.text[c]=n.text[c].replace(/\s*\b[^@\s]+@[^\s]+\b\s*/,l=>p?l:(n.address=[l.trim()],p=true," ")).trim(),p));c--);}}!n.text.length&&n.comment.length&&(n.text=n.comment,n.comment=[]),n.address.length>1&&(n.text=n.text.concat(n.address.splice(1))),n.text=n.text.join(" "),n.address=n.address.join(" ");let r={address:n.address||n.text||"",name:n.text||n.address||""};r.address===r.name&&(/@/.test(r.address||"")?r.name="":r.address=""),i.push(r);}return i}var he=class{constructor(e){this.str=(e||"").toString(),this.operatorCurrent="",this.operatorExpecting="",this.node=null,this.escaped=false,this.list=[],this.operators={'"':'"',"(":")","<":">",",":"",":":";",";":""};}tokenize(){let e=[];for(let t=0,s=this.str.length;t<s;t++){let i=this.str.charAt(t),n=t<s-1?this.str.charAt(t+1):null;this.checkChar(i,n);}return this.list.forEach(t=>{t.value=(t.value||"").toString().trim(),t.value&&e.push(t);}),e}checkChar(e,t){if(!this.escaped){if(e===this.operatorExpecting){this.node={type:"operator",value:e},t&&![" "," ","\r",`
|
|
9
|
+
`,",",";"].includes(t)&&(this.node.noBreak=true),this.list.push(this.node),this.node=null,this.operatorExpecting="",this.escaped=false;return}else if(!this.operatorExpecting&&e in this.operators){this.node={type:"operator",value:e},this.list.push(this.node),this.node=null,this.operatorExpecting=this.operators[e],this.escaped=false;return}else if(['"',"'"].includes(this.operatorExpecting)&&e==="\\"){this.escaped=true;return}}this.node||(this.node={type:"text",value:""},this.list.push(this.node)),e===`
|
|
10
|
+
`&&(e=" "),(e.charCodeAt(0)>=33||[" "," "].includes(e))&&(this.node.value+=e),this.escaped=false;}},_s=50;function _t(o,e){e=e||{};let t=e._depth||0;if(t>_s)return [];let i=new he(o).tokenize(),n=[],a=[],r=[];i.forEach(p=>{p.type==="operator"&&(p.value===","||p.value===";")?(a.length&&n.push(a),a=[]):a.push(p);}),a.length&&n.push(a),n.forEach(p=>{let c=ws(p,t);c.length&&(r=r.concat(c));});for(let p=r.length-2;p>=0;p--){let c=r[p],l=r[p+1];c.address===""&&c.name&&!c.group&&l.address&&l.name&&(l.name=c.name+", "+l.name,r.splice(p,1));}if(e.flatten){let p=[],c=l=>{l.forEach(m=>{if(m.group)return c(m.group);p.push(m);});};return c(r),p}return r}bt.exports=_t;});var St=chunkBUNLC3II_cjs.c((qa,Et)=>{chunkBUNLC3II_cjs.h();var{Transform:bs}=chunkBUNLC3II_cjs.a("stream"),ue=class extends bs{constructor(){super(),this.lastByte=false;}_transform(e,t,s){e.length&&(this.lastByte=e[e.length-1]),this.push(e),s();}_flush(e){return this.lastByte===10?e():this.lastByte===13?(this.push(Buffer.from(`
|
|
11
|
+
`)),e()):(this.push(Buffer.from(`\r
|
|
12
|
+
`)),e())}};Et.exports=ue;});var R=chunkBUNLC3II_cjs.c((Oa,kt)=>{chunkBUNLC3II_cjs.h();var{Transform:ys}=chunkBUNLC3II_cjs.a("stream"),fe=class extends ys{constructor(e){super(e),this.lastByte=false;}_transform(e,t,s){let i,n=0;for(let a=0,r=e.length;a<r;a++)e[a]===10&&(a&&e[a-1]!==13||!a&&this.lastByte!==13)&&(a>n&&(i=e.slice(n,a),this.push(i)),this.push(Buffer.from(`\r
|
|
13
|
+
`)),n=a+1);n&&n<e.length?(i=e.slice(n),this.push(i)):n||this.push(e),this.lastByte=e[e.length-1],s();}};kt.exports=fe;});var K=chunkBUNLC3II_cjs.c((Ma,At)=>{chunkBUNLC3II_cjs.h();var{Transform:Es}=chunkBUNLC3II_cjs.a("stream"),xe=class extends Es{constructor(e){super(e);}_transform(e,t,s){let i,n=0;for(let a=0,r=e.length;a<r;a++)e[a]===13&&(i=e.slice(n,a),n=a+1,this.push(i));n&&n<e.length?(i=e.slice(n),this.push(i)):n||this.push(e),s();}};At.exports=xe;});var W=chunkBUNLC3II_cjs.c((za,jt)=>{chunkBUNLC3II_cjs.h();var ge=chunkBUNLC3II_cjs.a("crypto"),Ss=chunkBUNLC3II_cjs.a("fs"),Tt=ae(),{PassThrough:B}=chunkBUNLC3II_cjs.a("stream"),ks=y(),A=P(),As=me(),Ts=ce(),Cs=yt(),js=N(),Ct=E(),Is=St(),qs=R(),Ls=K(),Os=["From","Sender","To","Cc","Bcc","Reply-To","Date","References"],ve=class o{constructor(e,t){this.nodeCounter=0,t=t||{},this.baseBoundary=t.baseBoundary||ge.randomBytes(8).toString("hex"),this.boundaryPrefix=t.boundaryPrefix||"--_NmP",this.disableFileAccess=!!t.disableFileAccess,this.disableUrlAccess=!!t.disableUrlAccess,this.normalizeHeaderKey=t.normalizeHeaderKey,this.date=t.parentNode?null:new Date,this.rootNode=t.rootNode||this,this.keepBcc=!!t.keepBcc,t.filename&&(this.filename=t.filename,e||(e=A.detectMimeType(this.filename.split(".").pop()))),this.textEncoding=(t.textEncoding||"").toString().trim().charAt(0).toUpperCase(),this.parentNode=t.parentNode,this.hostname=t.hostname,this.newline=t.newline,this.childNodes=[],this._nodeId=++this.rootNode.nodeCounter,this._headers=[],this._isPlainText=false,this._hasLongLines=false,this._envelope=false,this._raw=false,this._transforms=[],this._processFuncs=[],e&&this.setHeader("Content-Type",e);}createChild(e,t){!t&&typeof e=="object"&&(t=e,e=void 0);let s=new o(e,t);return this.appendChild(s),s}appendChild(e){return e.rootNode!==this.rootNode&&(e.rootNode=this.rootNode,e._nodeId=++this.rootNode.nodeCounter),e.parentNode=this,this.childNodes.push(e),e}replace(e){return e===this?this:(this.parentNode.childNodes.forEach((t,s)=>{t===this&&(e.rootNode=this.rootNode,e.parentNode=this.parentNode,e._nodeId=this._nodeId,this.rootNode=this,this.parentNode=void 0,e.parentNode.childNodes[s]=e);}),e)}remove(){if(!this.parentNode)return this;for(let e=this.parentNode.childNodes.length-1;e>=0;e--)if(this.parentNode.childNodes[e]===this)return this.parentNode.childNodes.splice(e,1),this.parentNode=void 0,this.rootNode=this,this}setHeader(e,t){let s=false;if(!t&&e&&typeof e=="object")return e.key&&"value"in e?this.setHeader(e.key,e.value):Array.isArray(e)?e.forEach(n=>{this.setHeader(n.key,n.value);}):Object.keys(e).forEach(n=>{this.setHeader(n,e[n]);}),this;e=this._normalizeHeaderKey(e);let i={key:e,value:t};for(let n=0,a=this._headers.length;n<a;n++)this._headers[n].key===e&&(s?(this._headers.splice(n,1),n--,a--):(this._headers[n]=i,s=true));return s||this._headers.push(i),this}addHeader(e,t){return !t&&e&&typeof e=="object"?(e.key&&e.value?this.addHeader(e.key,e.value):Array.isArray(e)?e.forEach(s=>{this.addHeader(s.key,s.value);}):Object.keys(e).forEach(s=>{this.addHeader(s,e[s]);}),this):Array.isArray(t)?(t.forEach(s=>{this.addHeader(e,s);}),this):(this._headers.push({key:this._normalizeHeaderKey(e),value:t}),this)}getHeader(e){e=this._normalizeHeaderKey(e);for(let t=0,s=this._headers.length;t<s;t++)if(this._headers[t].key===e)return this._headers[t].value}setContent(e){return this.content=e,typeof this.content.pipe=="function"?(this._contentErrorHandler=t=>{this.content.removeListener("error",this._contentErrorHandler),this.content=t;},this.content.once("error",this._contentErrorHandler)):typeof this.content=="string"&&(this._isPlainText=A.isPlainText(this.content),this._isPlainText&&A.hasLongerLines(this.content,76)&&(this._hasLongLines=true)),this}build(e){let t;e||(t=new Promise((r,p)=>{e=ks.callbackPromise(r,p);}));let s=this.createReadStream(),i=[],n=0,a=false;return s.on("readable",()=>{let r;for(;(r=s.read())!==null;)i.push(r),n+=r.length;}),s.once("error",r=>{if(!a)return a=true,e(r)}),s.once("end",r=>{if(!a)return a=true,r&&r.length&&(i.push(r),n+=r.length),e(null,Buffer.concat(i,n))}),t}getTransferEncoding(){let e=false,t=(this.getHeader("Content-Type")||"").toString().toLowerCase().trim();return this.content&&(e=(this.getHeader("Content-Transfer-Encoding")||"").toString().toLowerCase().trim(),(!e||!["base64","quoted-printable"].includes(e))&&(/^text\//i.test(t)?this._isPlainText&&!this._hasLongLines?e="7bit":typeof this.content=="string"||this.content instanceof Buffer?e=this._getTextEncoding(this.content)==="Q"?"quoted-printable":"base64":e=this.textEncoding==="B"?"base64":"quoted-printable":/^(multipart|message)\//i.test(t)||(e=e||"base64"))),e}buildHeaders(){let e=this.getTransferEncoding(),t=[];if(e&&this.setHeader("Content-Transfer-Encoding",e),this.filename&&!this.getHeader("Content-Disposition")&&this.setHeader("Content-Disposition","attachment"),this.rootNode===this){this.getHeader("Date")||this.setHeader("Date",this.date.toUTCString().replace(/GMT/,"+0000")),this.messageId(),this.getHeader("MIME-Version")||this.setHeader("MIME-Version","1.0");for(let s=this._headers.length-2;s>=0;s--){let i=this._headers[s];i.key==="Content-Type"&&(this._headers.splice(s,1),this._headers.push(i));}}return this._headers.forEach(s=>{let i=s.key,n=s.value,a,r,p={};if(!(n&&typeof n=="object"&&!Os.includes(i)&&(Object.keys(n).forEach(l=>{l!=="value"&&(p[l]=n[l]);}),n=(n.value||"").toString(),!n.trim()))){if(p.prepared){p.foldLines?t.push(A.foldLines(i+": "+n)):t.push(i+": "+n);return}switch(s.key){case "Content-Disposition":a=A.parseHeaderValue(n),this.filename&&(a.params.filename=this.filename),n=A.buildHeaderValue(a);break;case "Content-Type":a=A.parseHeaderValue(n),this._handleContentType(a),a.value.match(/^text\/plain\b/)&&typeof this.content=="string"&&/[\u0080-\uFFFF]/.test(this.content)&&(a.params.charset="utf-8"),n=A.buildHeaderValue(a),this.filename&&(r=this._encodeWords(this.filename),(r!==this.filename||/[\s'"\\;:/=(),<>@[\]?]|^-/.test(r))&&(r='"'+r+'"'),n+="; name="+r);break;case "Bcc":if(!this.keepBcc)return;break}if(n=this._encodeHeaderValue(i,n),!!(n||"").toString().trim()){if(typeof this.normalizeHeaderKey=="function"){let l=this.normalizeHeaderKey(i,n);l&&typeof l=="string"&&l.length&&(i=l);}t.push(A.foldLines(i+": "+n,76));}}}),t.join(`\r
|
|
14
|
+
`)}createReadStream(e){e=e||{};let t=new B(e),s=t,i;this.stream(t,e,n=>{if(n){s.emit("error",n);return}t.end();});for(let n=0,a=this._transforms.length;n<a;n++)i=typeof this._transforms[n]=="function"?this._transforms[n]():this._transforms[n],s.once("error",r=>{i.emit("error",r);}),s=s.pipe(i);i=new Is,s.once("error",n=>{i.emit("error",n);}),s=s.pipe(i);for(let n=0,a=this._processFuncs.length;n<a;n++)i=this._processFuncs[n],s=i(s);if(this.newline){let a=["win","windows","dos",`\r
|
|
15
|
+
`].includes(this.newline.toString().toLowerCase())?new qs:new Ls,r=s.pipe(a);return s.on("error",p=>r.emit("error",p)),r}return s}transform(e){this._transforms.push(e);}processFunc(e){this._processFuncs.push(e);}stream(e,t,s){let i=this.getTransferEncoding(),n,a,r=false,p=m=>{r||(r=true,s(m));},c=()=>{let m=0,d=()=>{if(m>=this.childNodes.length)return e.write(`\r
|
|
16
|
+
--`+this.boundary+`--\r
|
|
17
|
+
`),p();let h=this.childNodes[m++];e.write((m>1?`\r
|
|
18
|
+
`:"")+"--"+this.boundary+`\r
|
|
19
|
+
`),h.stream(e,t,f=>{if(f)return p(f);setImmediate(d);});};if(this.multipart)setImmediate(d);else return p()},l=()=>{if(this.content){if(Object.prototype.toString.call(this.content)==="[object Error]")return p(this.content);typeof this.content.pipe=="function"&&(this.content.removeListener("error",this._contentErrorHandler),this._contentErrorHandler=d=>p(d),this.content.once("error",this._contentErrorHandler));let m=()=>{["quoted-printable","base64"].includes(i)?(n=new(i==="base64"?Ts:As).Encoder(t),n.pipe(e,{end:false}),n.once("end",c),n.once("error",d=>p(d)),a=this._getStream(this.content),a.pipe(n)):(a=this._getStream(this.content),a.pipe(e,{end:false}),a.once("end",c)),a.once("error",d=>p(d));};if(this.content._resolve){let d=[],h=0,f=false,g=this._getStream(this.content);g.on("error",b=>{f||(f=true,p(b));}),g.on("readable",()=>{let b;for(;(b=g.read())!==null;)d.push(b),h+=b.length;}),g.on("end",()=>{f||(f=true,this.content._resolve=false,this.content._resolvedValue=Buffer.concat(d,h),setImmediate(m));});}else setImmediate(m);return}return setImmediate(c)};this._raw?setImmediate(()=>{if(Object.prototype.toString.call(this._raw)==="[object Error]")return p(this._raw);typeof this._raw.pipe=="function"&&this._raw.removeListener("error",this._contentErrorHandler);let m=this._getStream(this._raw);m.pipe(e,{end:false}),m.on("error",d=>e.emit("error",d)),m.on("end",c);}):(e.write(this.buildHeaders()+`\r
|
|
20
|
+
\r
|
|
21
|
+
`),setImmediate(l));}setEnvelope(e){let t;this._envelope={from:false,to:[]},e.from&&(t=[],this._convertAddresses(this._parseAddresses(e.from),t),t=t.filter(i=>i&&i.address),t.length&&t[0]&&(this._envelope.from=t[0].address)),["to","cc","bcc"].forEach(i=>{e[i]&&this._convertAddresses(this._parseAddresses(e[i]),this._envelope.to);}),this._envelope.to=this._envelope.to.map(i=>i.address).filter(i=>i);let s=["to","cc","bcc","from"];return Object.keys(e).forEach(i=>{s.includes(i)||(this._envelope[i]=e[i]);}),this}getAddresses(){let e={};return this._headers.forEach(t=>{let s=t.key.toLowerCase();["from","sender","reply-to","to","cc","bcc"].includes(s)&&(Array.isArray(e[s])||(e[s]=[]),this._convertAddresses(this._parseAddresses(t.value),e[s]));}),e}getEnvelope(){if(this._envelope)return this._envelope;let e={from:false,to:[]};return this._headers.forEach(t=>{let s=[];t.key==="From"||!e.from&&["Reply-To","Sender"].includes(t.key)?(this._convertAddresses(this._parseAddresses(t.value),s),s.length&&s[0]&&(e.from=s[0].address)):["To","Cc","Bcc"].includes(t.key)&&this._convertAddresses(this._parseAddresses(t.value),e.to);}),e.to=e.to.map(t=>t.address),e}messageId(){let e=this.getHeader("Message-ID");return e||(e=this._generateMessageId(),this.setHeader("Message-ID",e)),e}setRaw(e){return this._raw=e,this._raw&&typeof this._raw.pipe=="function"&&(this._contentErrorHandler=t=>{this._raw.removeListener("error",this._contentErrorHandler),this._raw=t;},this._raw.once("error",this._contentErrorHandler)),this}_getStream(e){let t;return e._resolvedValue?(t=new B,setImmediate(()=>{try{t.end(e._resolvedValue);}catch(s){t.emit("error",s);}}),t):typeof e.pipe=="function"?e:e&&typeof e.path=="string"&&!e.href?this.disableFileAccess?(t=new B,setImmediate(()=>{let s=new Error("File access rejected for "+e.path);s.code=Ct.EFILEACCESS,t.emit("error",s);}),t):Ss.createReadStream(e.path):e&&typeof e.href=="string"?this.disableUrlAccess?(t=new B,setImmediate(()=>{let s=new Error("Url access rejected for "+e.href);s.code=Ct.EURLACCESS,t.emit("error",s);}),t):js(e.href,{headers:e.httpHeaders}):(t=new B,setImmediate(()=>{try{t.end(e||"");}catch(s){t.emit("error",s);}}),t)}_parseAddresses(e){return [].concat.apply([],[].concat(e).map(t=>t&&t.address?(t.address=this._normalizeAddress(t.address),t.name=t.name||"",[t]):Cs(t)))}_normalizeHeaderKey(e){return e=(e||"").toString().replace(/\r?\n|\r/g," ").trim().toLowerCase().replace(/^X-SMTPAPI$|^(MIME|DKIM|ARC|BIMI)\b|^[a-z]|-(SPF|FBL|ID|MD5)$|-[a-z]/gi,t=>t.toUpperCase()).replace(/^Content-Features$/i,"Content-features"),e}_handleContentType(e){this.contentType=e.value.trim().toLowerCase(),this.multipart=/^multipart\//i.test(this.contentType)?this.contentType.substr(this.contentType.indexOf("/")+1):false,this.multipart?this.boundary=e.params.boundary=e.params.boundary||this.boundary||this._generateBoundary():this.boundary=false;}_generateBoundary(){return this.rootNode.boundaryPrefix+"-"+this.rootNode.baseBoundary+"-Part_"+this._nodeId}_encodeHeaderValue(e,t){switch(e=this._normalizeHeaderKey(e),e){case "From":case "Sender":case "To":case "Cc":case "Bcc":case "Reply-To":return this._convertAddresses(this._parseAddresses(t));case "Message-ID":case "In-Reply-To":case "Content-Id":return t=(t||"").toString().replace(/\r?\n|\r/g," "),t.charAt(0)!=="<"&&(t="<"+t),t.charAt(t.length-1)!==">"&&(t=t+">"),t;case "References":return t=[].concat.apply([],[].concat(t||"").map(s=>(s=(s||"").toString().replace(/\r?\n|\r/g," ").trim(),s.replace(/<[^>]*>/g,i=>i.replace(/\s/g,"")).split(/\s+/)))).map(s=>(s.charAt(0)!=="<"&&(s="<"+s),s.charAt(s.length-1)!==">"&&(s=s+">"),s)),t.join(" ").trim();case "Date":return Object.prototype.toString.call(t)==="[object Date]"?t.toUTCString().replace(/GMT/,"+0000"):(t=(t||"").toString().replace(/\r?\n|\r/g," "),this._encodeWords(t));case "Content-Type":case "Content-Disposition":return (t||"").toString().replace(/\r?\n|\r/g," ");default:return t=(t||"").toString().replace(/\r?\n|\r/g," "),this._encodeWords(t)}}_convertAddresses(e,t){let s=[];return t=t||[],[].concat(e||[]).forEach(i=>{if(i.address)i.address=this._normalizeAddress(i.address),i.name?s.push(`${this._encodeAddressName(i.name)} <${i.address}>`):s.push(i.address.indexOf(" ")>=0?`<${i.address}>`:`${i.address}`),t.some(n=>n.address===i.address)||t.push(i);else if(i.group){let n=(i.group.length?this._convertAddresses(i.group,t):"").trim();s.push(`${this._encodeAddressName(i.name)}:${n};`);}}),s.join(", ")}_normalizeAddress(e){e=(e||"").toString().replace(/[\x00-\x1F<>]+/g," ").trim();let t=e.lastIndexOf("@");if(t<0)return e;let s=e.substr(0,t),i=e.substr(t+1),n=i;try{/[\x80-\uFFFF]/.test(s)?n=Tt.toUnicode(i.toLowerCase()):n=Tt.toASCII(i.toLowerCase());}catch{}return s.indexOf(" ")>=0&&(s.charAt(0)!=='"'&&(s='"'+s),s.substr(-1)!=='"'&&(s=s+'"')),`${s}@${n}`}_encodeAddressName(e){return /^[\w ]*$/.test(e)?e:/^[\x20-\x7e]*$/.test(e)?'"'+e.replace(/([\\"])/g,"\\$1")+'"':A.encodeWord(e,this._getTextEncoding(e),52)}_encodeWords(e){return A.encodeWords(e,this._getTextEncoding(e),52,true)}_getTextEncoding(e){if(e=(e||"").toString(),this.textEncoding)return this.textEncoding;let t=0,s=0;for(let i=0,n=e.length;i<n;i++){let a=e.charCodeAt(i);a>=0&&a<=8||a===11||a===12||a>=14&&a<=31||a>=128?t++:(a>=65&&a<=90||a>=97&&a<=122)&&s++;}return t<s?"Q":"B"}_generateMessageId(){return "<"+[2,2,2,6].reduce((e,t)=>e+"-"+ge.randomBytes(t).toString("hex"),ge.randomBytes(4).toString("hex"))+"@"+(this.getEnvelope().from||this.hostname||"localhost").split("@").pop()+">"}};jt.exports=ve;});var qt=chunkBUNLC3II_cjs.c((Pa,It)=>{chunkBUNLC3II_cjs.h();var D=W(),we=P(),{parseDataURI:Hs}=y(),_e=class{constructor(e){this.mail=e||{},this.message=false;}compile(){return this._alternatives=this.getAlternatives(),this._htmlNode=this._alternatives.filter(e=>/^text\/html\b/i.test(e.contentType)).pop(),this._attachments=this.getAttachments(!!this._htmlNode),this._useRelated=!!(this._htmlNode&&this._attachments.related.length),this._useAlternative=this._alternatives.length>1,this._useMixed=this._attachments.attached.length>1||this._alternatives.length&&this._attachments.attached.length===1,this.mail.raw?this.message=new D("message/rfc822",{newline:this.mail.newline}).setRaw(this.mail.raw):this._useMixed?this.message=this._createMixed():this._useAlternative?this.message=this._createAlternative():this._useRelated?this.message=this._createRelated():this.message=this._createContentNode(false,[].concat(this._alternatives||[]).concat(this._attachments.attached||[]).shift()||{contentType:"text/plain",content:""}),this.mail.headers&&this.message.addHeader(this.mail.headers),["from","sender","to","cc","bcc","reply-to","in-reply-to","references","subject","message-id","date"].forEach(e=>{let t=e.replace(/-(\w)/g,(s,i)=>i.toUpperCase());this.mail[t]&&this.message.setHeader(e,this.mail[t]);}),this.mail.envelope&&this.message.setEnvelope(this.mail.envelope),this.message.messageId(),this.message}getAttachments(e){let t,s=[].concat(this.mail.attachments||[]).map((i,n)=>{/^data:/i.test(i.path||i.href)&&(i=this._processDataUrl(i));let a=i.contentType||we.detectMimeType(i.filename||i.path||i.href||"bin"),r=/^image\//i.test(a),p=/^message\//i.test(a),c=i.contentDisposition||(p||r&&i.cid?"inline":"attachment"),l;"contentTransferEncoding"in i?l=i.contentTransferEncoding:p?l="8bit":l="base64";let m={contentType:a,contentDisposition:c,contentTransferEncoding:l};return i.filename?m.filename=i.filename:!p&&i.filename!==false&&(m.filename=(i.path||i.href||"").split("/").pop().split("?").shift()||"attachment-"+(n+1),m.filename.indexOf(".")<0&&(m.filename+="."+we.detectExtension(m.contentType))),/^https?:\/\//i.test(i.path)&&(i.href=i.path,i.path=void 0),i.cid&&(m.cid=i.cid),i.raw?m.raw=i.raw:i.path?m.content={path:i.path}:i.href?m.content={href:i.href,httpHeaders:i.httpHeaders}:m.content=i.content||"",i.encoding&&(m.encoding=i.encoding),i.headers&&(m.headers=i.headers),m});return this.mail.icalEvent&&(t=Object.assign({},this._getIcalEvent()),t.contentType="application/ics",t.headers||(t.headers={}),t.filename=t.filename||"invite.ics",t.headers["Content-Disposition"]="attachment",t.headers["Content-Transfer-Encoding"]="base64"),e?{attached:s.filter(i=>!i.cid).concat(t||[]),related:s.filter(i=>!!i.cid)}:{attached:s.concat(t||[]),related:[]}}_getIcalEvent(){if(!this._icalEvent){let e;typeof this.mail.icalEvent=="object"&&(this.mail.icalEvent.content||this.mail.icalEvent.path||this.mail.icalEvent.href||this.mail.icalEvent.raw)?e=Object.assign({},this.mail.icalEvent):e={content:this.mail.icalEvent},/^data:/i.test(e.path||e.href)&&(e=this._processDataUrl(e)),/^https?:\/\//i.test(e.path)&&(e.href=e.path,e.path=void 0),e.raw||(e.path?(e.content={path:e.path},e.path=void 0):e.href&&(e.content={href:e.href,httpHeaders:e.httpHeaders},e.href=void 0)),e.content&&typeof e.content=="object"&&(e.content._resolve=true),this._icalEvent=e;}return this._icalEvent}getAlternatives(){let e=[],t,s,i,n,a;return this.mail.text&&(typeof this.mail.text=="object"&&(this.mail.text.content||this.mail.text.path||this.mail.text.href||this.mail.text.raw)?t=this.mail.text:t={content:this.mail.text},t.contentType="text/plain; charset=utf-8"),this.mail.watchHtml&&(typeof this.mail.watchHtml=="object"&&(this.mail.watchHtml.content||this.mail.watchHtml.path||this.mail.watchHtml.href||this.mail.watchHtml.raw)?i=this.mail.watchHtml:i={content:this.mail.watchHtml},i.contentType="text/watch-html; charset=utf-8"),this.mail.amp&&(typeof this.mail.amp=="object"&&(this.mail.amp.content||this.mail.amp.path||this.mail.amp.href||this.mail.amp.raw)?n=this.mail.amp:n={content:this.mail.amp},n.contentType="text/x-amp-html; charset=utf-8"),this.mail.icalEvent&&(a=Object.assign({},this._getIcalEvent()),a.filename=false,a.contentType="text/calendar; charset=utf-8; method="+(a.method||"PUBLISH").toString().trim().toUpperCase(),a.headers||(a.headers={})),this.mail.html&&(typeof this.mail.html=="object"&&(this.mail.html.content||this.mail.html.path||this.mail.html.href||this.mail.html.raw)?s=this.mail.html:s={content:this.mail.html},s.contentType="text/html; charset=utf-8"),[].concat(t||[]).concat(i||[]).concat(n||[]).concat(s||[]).concat(a||[]).concat(this.mail.alternatives||[]).forEach(r=>{/^data:/i.test(r.path||r.href)&&(r=this._processDataUrl(r));let p={contentType:r.contentType||we.detectMimeType(r.filename||r.path||r.href||"txt"),contentTransferEncoding:r.contentTransferEncoding};r.filename&&(p.filename=r.filename),/^https?:\/\//i.test(r.path)&&(r.href=r.path,r.path=void 0),r.raw?p.raw=r.raw:r.path?p.content={path:r.path}:r.href?p.content={href:r.href}:p.content=r.content||"",r.encoding&&(p.encoding=r.encoding),r.headers&&(p.headers=r.headers),e.push(p);}),e}_createMixed(e){let t=e?e.createChild("multipart/mixed",{disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}):new D("multipart/mixed",{baseBoundary:this.mail.baseBoundary,textEncoding:this.mail.textEncoding,boundaryPrefix:this.mail.boundaryPrefix,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline});return this._useAlternative?this._createAlternative(t):this._useRelated&&this._createRelated(t),[].concat(!this._useAlternative&&this._alternatives||[]).concat(this._attachments.attached||[]).forEach(s=>{(!this._useRelated||s!==this._htmlNode)&&this._createContentNode(t,s);}),t}_createAlternative(e){let t=e?e.createChild("multipart/alternative",{disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}):new D("multipart/alternative",{baseBoundary:this.mail.baseBoundary,textEncoding:this.mail.textEncoding,boundaryPrefix:this.mail.boundaryPrefix,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline});return this._alternatives.forEach(s=>{this._useRelated&&this._htmlNode===s?this._createRelated(t):this._createContentNode(t,s);}),t}_createRelated(e){let t=e?e.createChild('multipart/related; type="text/html"',{disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}):new D('multipart/related; type="text/html"',{baseBoundary:this.mail.baseBoundary,textEncoding:this.mail.textEncoding,boundaryPrefix:this.mail.boundaryPrefix,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline});return this._createContentNode(t,this._htmlNode),this._attachments.related.forEach(s=>this._createContentNode(t,s)),t}_createContentNode(e,t){t=t||{},t.content=t.content||"";let s=(t.encoding||"utf8").toString().toLowerCase().replace(/[-_\s]/g,""),i=e?e.createChild(t.contentType,{filename:t.filename,textEncoding:this.mail.textEncoding,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline}):new D(t.contentType,{filename:t.filename,baseBoundary:this.mail.baseBoundary,textEncoding:this.mail.textEncoding,boundaryPrefix:this.mail.boundaryPrefix,disableUrlAccess:this.mail.disableUrlAccess,disableFileAccess:this.mail.disableFileAccess,normalizeHeaderKey:this.mail.normalizeHeaderKey,newline:this.mail.newline});return t.headers&&i.addHeader(t.headers),t.cid&&i.setHeader("Content-Id","<"+t.cid.replace(/[<>]/g,"")+">"),t.contentTransferEncoding?i.setHeader("Content-Transfer-Encoding",t.contentTransferEncoding):this.mail.encoding&&/^text\//i.test(t.contentType)&&i.setHeader("Content-Transfer-Encoding",this.mail.encoding),(!/^text\//i.test(t.contentType)||t.contentDisposition)&&i.setHeader("Content-Disposition",t.contentDisposition||(t.cid&&/^image\//i.test(t.contentType)?"inline":"attachment")),typeof t.content=="string"&&!["utf8","usascii","ascii"].includes(s)&&(t.content=Buffer.from(t.content,s)),t.raw?i.setRaw(t.raw):i.setContent(t.content),i}_processDataUrl(e){let t=e.path||e.href;if(!t||typeof t!="string"||!t.startsWith("data:"))return e;if(t.length>52428800){let i="application/octet-stream",n=t.indexOf(",");if(n>0&&n<200){let r=t.substring(5,n).split(";");r[0]&&r[0].includes("/")&&(i=r[0].trim());}return Object.assign({},e,{path:false,href:false,content:Buffer.alloc(0),contentType:e.contentType||i})}let s;try{s=Hs(t);}catch{return e}return s&&(e.content=s.data,e.contentType=e.contentType||s.contentType,"path"in e&&(e.path=false),"href"in e&&(e.href=false)),e}};It.exports=_e;});var Ot=chunkBUNLC3II_cjs.c((Ba,Lt)=>{chunkBUNLC3II_cjs.h();var{Transform:Ms}=chunkBUNLC3II_cjs.a("stream"),be=class extends Ms{constructor(e){super(e),this.lastBytes=Buffer.alloc(4),this.headersParsed=false,this.headerBytes=0,this.headerChunks=[],this.rawHeaders=false,this.bodySize=0;}updateLastBytes(e){let t=this.lastBytes.length,s=Math.min(e.length,t);for(let i=0,n=t-s;i<n;i++)this.lastBytes[i]=this.lastBytes[i+s];for(let i=1;i<=s;i++)this.lastBytes[t-i]=e[e.length-i];}checkHeaders(e){if(this.headersParsed)return true;let t=this.lastBytes.length,s=0;for(let i=0,n=this.lastBytes.length+e.length;i<n;i++){let a;if(i<t?a=this.lastBytes[i]:a=e[i-t],a===10&&i){let r=i-1<t?this.lastBytes[i-1]:e[i-1-t],p=i>1?i-2<t?this.lastBytes[i-2]:e[i-2-t]:false;if(r===10){this.headersParsed=true,s=i-t+1,this.headerBytes+=s;break}else if(r===13&&p===10){this.headersParsed=true,s=i-t+1,this.headerBytes+=s;break}}}if(this.headersParsed){if(this.headerChunks.push(e.slice(0,s)),this.rawHeaders=Buffer.concat(this.headerChunks,this.headerBytes),this.headerChunks=null,this.emit("headers",this.parseHeaders()),e.length-1>s){let i=e.slice(s);this.bodySize+=i.length,setImmediate(()=>this.push(i));}return false}return this.headerBytes+=e.length,this.headerChunks.push(e),this.updateLastBytes(e),false}_transform(e,t,s){if(!e||!e.length)return s();typeof e=="string"&&(e=Buffer.from(e,t));let i;try{i=this.checkHeaders(e);}catch(n){return s(n)}i&&(this.bodySize+=e.length,this.push(e)),setImmediate(s);}_flush(e){if(this.headerChunks){let t=Buffer.concat(this.headerChunks,this.headerBytes);this.bodySize+=t.length,this.push(t),this.headerChunks=null;}e();}parseHeaders(){let e=(this.rawHeaders||"").toString().split(/\r?\n/);for(let t=e.length-1;t>0;t--)/^\s/.test(e[t])&&(e[t-1]+=`
|
|
22
|
+
`+e[t],e.splice(t,1));return e.filter(t=>t.trim()).map(t=>({key:t.substr(0,t.indexOf(":")).trim().toLowerCase(),line:t}))}};Lt.exports=be;});var Mt=chunkBUNLC3II_cjs.c((Fa,Ht)=>{chunkBUNLC3II_cjs.h();var{Transform:Ns}=chunkBUNLC3II_cjs.a("stream"),zs=chunkBUNLC3II_cjs.a("crypto"),ye=class extends Ns{constructor(e){super(),e=e||{},this.chunkBuffer=[],this.chunkBufferLen=0,this.bodyHash=zs.createHash(e.hashAlgo||"sha1"),this.remainder="",this.byteLength=0,this.debug=e.debug,this._debugBody=e.debug?[]:false;}updateHash(e){let t,s="",i="file";for(let a=e.length-1;a>=0;a--){let r=e[a];if(!(i==="file"&&(r===10||r===13))){if(i==="file"&&(r===9||r===32))i="line";else if(!(i==="line"&&(r===9||r===32))){if((i==="file"||i==="line")&&(i="body",a===e.length-1))break}}if(a===0){if(i==="file"&&(!this.remainder||/[\r\n]$/.test(this.remainder))||i==="line"&&(!this.remainder||/[ \t]$/.test(this.remainder))){this.remainder+=e.toString("binary");return}else if(i==="line"||i==="file"){s=e.toString("binary"),e=false;break}}if(i==="body"){s=e.slice(a+1).toString("binary"),e=e.slice(0,a+1);break}}let n=!!this.remainder;if(e&&!n){for(let a=0,r=e.length;a<r;a++)if(a&&e[a]===10&&e[a-1]!==13){n=true;break}else if(a&&e[a]===13&&e[a-1]===32){n=true;break}else if(a&&e[a]===32&&e[a-1]===32){n=true;break}else if(e[a]===9){n=true;break}}n?(t=this.remainder+(e?e.toString("binary"):""),this.remainder=s,t=t.replace(/\r?\n/g,`
|
|
23
|
+
`).replace(/[ \t]*$/gm,"").replace(/[ \t]+/gm," ").replace(/\n/g,`\r
|
|
24
|
+
`),e=Buffer.from(t,"binary")):s&&(this.remainder=s),this.debug&&this._debugBody.push(e),this.bodyHash.update(e);}_transform(e,t,s){if(!e||!e.length)return s();typeof e=="string"&&(e=Buffer.from(e,t)),this.updateHash(e),this.byteLength+=e.length,this.push(e),s();}_flush(e){/[\r\n]$/.test(this.remainder)&&this.byteLength>2&&this.bodyHash.update(Buffer.from(`\r
|
|
25
|
+
`)),this.byteLength||this.push(Buffer.from(`\r
|
|
26
|
+
`)),this.emit("hash",this.bodyHash.digest("base64"),this.debug?Buffer.concat(this._debugBody):false),e();}};Ht.exports=ye;});var Ut=chunkBUNLC3II_cjs.c((Qa,Ee)=>{chunkBUNLC3II_cjs.h();var Us=ae(),Ps=P(),Rs=chunkBUNLC3II_cjs.a("crypto");Ee.exports=(o,e,t,s)=>{s=s||{};let n=s.headerFieldNames||"From:Sender:Reply-To:Subject:Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive",a=Nt(o,n,s.skipFields),r=Bs(s.domainName,s.keySelector,a.fieldNames,e,t);a.headers+="dkim-signature:"+zt(r);let p=Rs.createSign(("rsa-"+e).toUpperCase());p.update(a.headers);let c;try{c=p.sign(s.privateKey,"base64");}catch{return false}return r+c.replace(/(^.{73}|.{75}(?!\r?\n|\r))/g,`$&\r
|
|
27
|
+
`).trim()};Ee.exports.relaxedHeaders=Nt;function Bs(o,e,t,s,i){let n=["v=1","a=rsa-"+s,"c=relaxed/relaxed","d="+Us.toASCII(o),"q=dns/txt","s="+e,"bh="+i,"h="+t].join("; ");return Ps.foldLines("DKIM-Signature: "+n,76)+`;\r
|
|
28
|
+
b=`}function Nt(o,e,t){let s=new Set,i=new Set,n=new Map;(t||"").toLowerCase().split(":").forEach(p=>{i.add(p.trim());}),(e||"").toLowerCase().split(":").filter(p=>!i.has(p.trim())).forEach(p=>{s.add(p.trim());});for(let p=o.length-1;p>=0;p--){let c=o[p];s.has(c.key)&&!n.has(c.key)&&n.set(c.key,zt(c.line));}let a=[],r=[];return s.forEach(p=>{n.has(p)&&(r.push(p),a.push(p+":"+n.get(p)));}),{headers:a.join(`\r
|
|
29
|
+
`)+`\r
|
|
30
|
+
`,fieldNames:r.join(":")}}function zt(o){return o.substr(o.indexOf(":")+1).replace(/\r?\n/g,"").replace(/\s+/g," ").trim()}});var Rt=chunkBUNLC3II_cjs.c((Wa,Pt)=>{chunkBUNLC3II_cjs.h();var Ds=Ot(),Fs=Mt(),Gs=Ut(),{PassThrough:Se}=chunkBUNLC3II_cjs.a("stream"),ke=chunkBUNLC3II_cjs.a("fs"),Qs=chunkBUNLC3II_cjs.a("path"),Ks=chunkBUNLC3II_cjs.a("crypto"),Ws="sha256",$s=2*1024*1024,Ae=class{constructor(e,t,s,i){this.options=e||{},this.keys=t,this.cacheTreshold=Number(this.options.cacheTreshold)||$s,this.hashAlgo=this.options.hashAlgo||Ws,this.cacheDir=this.options.cacheDir||false,this.chunks=[],this.chunklen=0,this.readPos=0,this.cachePath=this.cacheDir?Qs.join(this.cacheDir,"message."+Date.now()+"-"+Ks.randomBytes(14).toString("hex")):false,this.cache=false,this.headers=false,this.bodyHash=false,this.parser=false,this.relaxedBody=false,this.input=s,this.output=i,this.output.usingCache=false,this.hasErrored=false,this.input.on("error",n=>{this.hasErrored=true,this.cleanup(),i.emit("error",n);});}cleanup(){!this.cache||!this.cachePath||ke.unlink(this.cachePath,()=>false);}createReadCache(){this.cache=ke.createReadStream(this.cachePath),this.cache.once("error",e=>{this.cleanup(),this.output.emit("error",e);}),this.cache.once("close",()=>{this.cleanup();}),this.cache.pipe(this.output);}sendNextChunk(){if(this.hasErrored)return;if(this.readPos>=this.chunks.length)return this.cache?this.createReadCache():this.output.end();let e=this.chunks[this.readPos++];if(this.output.write(e)===false)return this.output.once("drain",()=>{this.sendNextChunk();});setImmediate(()=>this.sendNextChunk());}sendSignedOutput(){let e=0,t=()=>{if(e>=this.keys.length)return this.output.write(this.parser.rawHeaders),setImmediate(()=>this.sendNextChunk());let s=this.keys[e++],i=Gs(this.headers,this.hashAlgo,this.bodyHash,{domainName:s.domainName,keySelector:s.keySelector,privateKey:s.privateKey,headerFieldNames:this.options.headerFieldNames,skipFields:this.options.skipFields});return i&&this.output.write(Buffer.from(i+`\r
|
|
31
|
+
`)),setImmediate(t)};if(this.bodyHash&&this.headers)return t();this.output.write(this.parser.rawHeaders),this.sendNextChunk();}createWriteCache(){this.output.usingCache=true,this.cache=ke.createWriteStream(this.cachePath),this.cache.once("error",e=>{this.cleanup(),this.relaxedBody.unpipe(this.cache),this.relaxedBody.on("readable",()=>{for(;this.relaxedBody.read()!==null;);}),this.hasErrored=true,this.output.emit("error",e);}),this.cache.once("close",()=>{this.sendSignedOutput();}),this.relaxedBody.removeAllListeners("readable"),this.relaxedBody.pipe(this.cache);}signStream(){this.parser=new Ds,this.relaxedBody=new Fs({hashAlgo:this.hashAlgo}),this.parser.on("headers",e=>{this.headers=e;}),this.relaxedBody.on("hash",e=>{this.bodyHash=e;}),this.relaxedBody.on("readable",()=>{let e;if(!this.cache){for(;(e=this.relaxedBody.read())!==null;)if(this.chunks.push(e),this.chunklen+=e.length,this.chunklen>=this.cacheTreshold&&this.cachePath)return this.createWriteCache()}}),this.relaxedBody.on("end",()=>{this.cache||this.sendSignedOutput();}),this.parser.pipe(this.relaxedBody),setImmediate(()=>this.input.pipe(this.parser));}},Te=class{constructor(e){this.options=e||{},this.keys=[].concat(this.options.keys||{domainName:e.domainName,keySelector:e.keySelector,privateKey:e.privateKey});}sign(e,t){let s=new Se,i=e,n=false;Buffer.isBuffer(e)?(n=e,i=new Se):typeof e=="string"&&(n=Buffer.from(e),i=new Se);let a=this.options;t&&Object.keys(t).length&&(a=Object.assign({},t,this.options));let r=new Ae(a,this.keys,i,s);return setImmediate(()=>{r.signStream(),n&&setImmediate(()=>{i.end(n);});}),s}};Pt.exports=Te;});var Qt=chunkBUNLC3II_cjs.c((Va,Gt)=>{chunkBUNLC3II_cjs.h();var Bt=chunkBUNLC3II_cjs.a("net"),Dt=chunkBUNLC3II_cjs.a("tls"),Vs=chunkBUNLC3II_cjs.a("url"),Xs=E();function Ft(o,e,t,s){let i=Vs.parse(o),n={host:i.hostname,port:Number(i.port)?Number(i.port):i.protocol==="https:"?443:80},a;i.protocol==="https:"?(n.rejectUnauthorized=false,a=Dt.connect.bind(Dt)):a=Bt.connect.bind(Bt);let r,p=false,c=m=>{if(!p){p=true;try{r.destroy();}catch{}s(m);}},l=()=>{let m=new Error("Proxy socket timed out");m.code="ETIMEDOUT",c(m);};r=a(n,()=>{if(p)return;let m={Host:t+":"+e,Connection:"close"};i.auth&&(m["Proxy-Authorization"]="Basic "+Buffer.from(i.auth).toString("base64")),r.write("CONNECT "+t+":"+e+` HTTP/1.1\r
|
|
32
|
+
`+Object.keys(m).map(f=>f+": "+m[f]).join(`\r
|
|
33
|
+
`)+`\r
|
|
34
|
+
\r
|
|
35
|
+
`);let d="",h=f=>{let g,b;if(!p&&(d+=f.toString("binary"),g=d.match(/\r\n\r\n/))){if(r.removeListener("data",h),b=d.substr(g.index+g[0].length),d=d.substr(0,g.index),b&&r.unshift(Buffer.from(b,"binary")),p=true,g=d.match(/^HTTP\/\d+\.\d+ (\d+)/i),!g||(g[1]||"").charAt(0)!=="2"){try{r.destroy();}catch{}let Ge=new Error("Invalid response from proxy"+(g&&": "+g[1]||""));return Ge.code=Xs.EPROXY,s(Ge)}return r.removeListener("error",c),r.removeListener("timeout",l),r.setTimeout(0),s(null,r)}};r.on("data",h);}),r.setTimeout(Ft.timeout||30*1e3),r.on("timeout",l),r.once("error",c);}Gt.exports=Ft;});var $t=chunkBUNLC3II_cjs.c((Ja,Wt)=>{chunkBUNLC3II_cjs.h();var Kt=y(),Js=W(),H=P(),Ce=class{constructor(e,t){this.mailer=e,this.data={},this.message=null,t=t||{};let s=e.options||{},i=e._defaults||{};Object.assign(this.data,t),this.data.headers=this.data.headers||{},Object.keys(i).forEach(n=>{n in this.data?n==="headers"&&Object.keys(i.headers).forEach(a=>{a in this.data.headers||(this.data.headers[a]=i.headers[a]);}):this.data[n]=i[n];}),["disableFileAccess","disableUrlAccess","normalizeHeaderKey"].forEach(n=>{n in s&&(this.data[n]=s[n]);});}resolveContent(...e){return Kt.resolveContent(...e)}resolveAll(e){let t=[[this.data,"html"],[this.data,"text"],[this.data,"watchHtml"],[this.data,"amp"],[this.data,"icalEvent"]];this.data.alternatives&&this.data.alternatives.length&&this.data.alternatives.forEach((p,c)=>{t.push([this.data.alternatives,c]);}),this.data.attachments&&this.data.attachments.length&&this.data.attachments.forEach((p,c)=>{p.filename||(p.filename=(p.path||p.href||"").split("/").pop().split("?").shift()||"attachment-"+(c+1),p.filename.indexOf(".")<0&&(p.filename+="."+H.detectExtension(p.contentType))),p.contentType||(p.contentType=H.detectMimeType(p.filename||p.path||p.href||"bin")),t.push([this.data.attachments,c]);});let s=new Js;["from","to","cc","bcc","sender","replyTo"].forEach(p=>{let c;this.message?c=[].concat(s._parseAddresses(this.message.getHeader(p==="replyTo"?"reply-to":p))||[]):this.data[p]&&(c=[].concat(s._parseAddresses(this.data[p])||[])),c&&c.length?this.data[p]=c:p in this.data&&(this.data[p]=null);}),["from","sender"].forEach(p=>{this.data[p]&&(this.data[p]=this.data[p].shift());});let a=0,r=()=>{if(a>=t.length)return e(null,this.data);let p=t[a++];if(!p[0]||!p[0][p[1]])return r();Kt.resolveContent(...p,{disableFileAccess:this.data.disableFileAccess,disableUrlAccess:this.data.disableUrlAccess},(c,l)=>{if(c)return e(c);let m={content:l};p[0][p[1]]&&typeof p[0][p[1]]=="object"&&!Buffer.isBuffer(p[0][p[1]])&&Object.keys(p[0][p[1]]).forEach(d=>{!(d in m)&&!["content","path","href","raw"].includes(d)&&(m[d]=p[0][p[1]][d]);}),p[0][p[1]]=m,r();});};setImmediate(()=>r());}normalize(e){let t=this.data.envelope||this.message.getEnvelope(),s=this.message.messageId();this.resolveAll((i,n)=>i?e(i):(n.envelope=t,n.messageId=s,["html","text","watchHtml","amp"].forEach(a=>{n[a]&&n[a].content&&(typeof n[a].content=="string"?n[a]=n[a].content:Buffer.isBuffer(n[a].content)&&(n[a]=n[a].content.toString()));}),n.icalEvent&&Buffer.isBuffer(n.icalEvent.content)&&(n.icalEvent.content=n.icalEvent.content.toString("base64"),n.icalEvent.encoding="base64"),n.alternatives&&n.alternatives.length&&n.alternatives.forEach(a=>{a&&a.content&&Buffer.isBuffer(a.content)&&(a.content=a.content.toString("base64"),a.encoding="base64");}),n.attachments&&n.attachments.length&&n.attachments.forEach(a=>{a&&a.content&&Buffer.isBuffer(a.content)&&(a.content=a.content.toString("base64"),a.encoding="base64");}),n.normalizedHeaders={},Object.keys(n.headers||{}).forEach(a=>{let r=[].concat(n.headers[a]||[]).shift();r=r&&r.value||r,r&&(["references","in-reply-to","message-id","content-id"].includes(a)&&(r=this.message._encodeHeaderValue(a,r)),n.normalizedHeaders[a]=r);}),n.list&&typeof n.list=="object"&&this._getListHeaders(n.list).forEach(r=>{n.normalizedHeaders[r.key]=r.value.map(p=>p&&p.value||p).join(", ");}),n.references&&(n.normalizedHeaders.references=this.message._encodeHeaderValue("references",n.references)),n.inReplyTo&&(n.normalizedHeaders["in-reply-to"]=this.message._encodeHeaderValue("in-reply-to",n.inReplyTo)),e(null,n)));}setMailerHeader(){!this.message||!this.data.xMailer||this.message.setHeader("X-Mailer",this.data.xMailer);}setPriorityHeaders(){if(!(!this.message||!this.data.priority))switch((this.data.priority||"").toString().toLowerCase()){case "high":this.message.setHeader("X-Priority","1 (Highest)"),this.message.setHeader("X-MSMail-Priority","High"),this.message.setHeader("Importance","High");break;case "low":this.message.setHeader("X-Priority","5 (Lowest)"),this.message.setHeader("X-MSMail-Priority","Low"),this.message.setHeader("Importance","Low");break;}}setListHeaders(){!this.message||!this.data.list||typeof this.data.list!="object"||this._getListHeaders(this.data.list).forEach(e=>{e.value.forEach(t=>{this.message.addHeader(e.key,t);});});}_getListHeaders(e){return Object.keys(e).map(t=>({key:"list-"+t.toLowerCase().trim(),value:[].concat(e[t]||[]).map(s=>({prepared:true,foldLines:true,value:[].concat(s||[]).map(i=>{if(typeof i=="string"&&(i={url:i}),i&&i.url){if(t.toLowerCase().trim()==="id"){let a=(i.comment||"").toString().replace(/\r?\n|\r/g," ");return H.isPlainText(a)?a='"'+a+'"':a=H.encodeWord(a),(i.comment?a+" ":"")+this._formatListUrl(i.url).replace(/^<[^:]+:\/{0,2}/,"<")}let n=(i.comment||"").toString().replace(/\r?\n|\r/g," ");return H.isPlainText(n)||(n=H.encodeWord(n)),this._formatListUrl(i.url)+(i.comment?" ("+n+")":"")}return ""}).filter(i=>i).join(", ")}))}))}_formatListUrl(e){return e=e.replace(/[\s<]+|[\s>]+/g,""),/^(https?|mailto|ftp):/.test(e)?"<"+e+">":/^[^@]+@[^@]+$/.test(e)?"<mailto:"+e+">":"<http://"+e+">"}};Wt.exports=Ce;});var Zt=chunkBUNLC3II_cjs.c((Za,Yt)=>{chunkBUNLC3II_cjs.h();var Ys=chunkBUNLC3II_cjs.a("events"),Vt=y(),Zs=ie(),en=qt(),Xt=Rt(),tn=Qt(),Jt=E(),sn=chunkBUNLC3II_cjs.a("util"),nn=chunkBUNLC3II_cjs.a("url"),je=k(),an=$t(),on=chunkBUNLC3II_cjs.a("net"),rn=chunkBUNLC3II_cjs.a("dns"),pn=chunkBUNLC3II_cjs.a("crypto"),Ie=class extends Ys{constructor(e,t,s){super(),this.options=t||{},this._defaults=s||{},this._defaultPlugins={compile:[(...i)=>this._convertDataImages(...i)],stream:[]},this._userPlugins={compile:[],stream:[]},this.meta=new Map,this.dkim=this.options.dkim?new Xt(this.options.dkim):false,this.transporter=e,this.transporter.mailer=this,this.logger=Vt.getLogger(this.options,{component:this.options.component||"mail"}),this.logger.debug({tnx:"create"},"Creating transport: %s",this.getVersionString()),typeof this.transporter.on=="function"&&(this.transporter.on("log",i=>{this.logger.debug({tnx:"transport"},"%s: %s",i.type,i.message);}),this.transporter.on("error",i=>{this.logger.error({err:i,tnx:"transport"},"Transport Error: %s",i.message),this.emit("error",i);}),this.transporter.on("idle",(...i)=>{this.emit("idle",...i);}),this.transporter.on("clear",(...i)=>{this.emit("clear",...i);})),["close","isIdle","verify"].forEach(i=>{this[i]=(...n)=>typeof this.transporter[i]=="function"?(i==="verify"&&typeof this.getSocket=="function"&&(this.transporter.getSocket=this.getSocket,this.getSocket=false),this.transporter[i](...n)):(this.logger.warn({tnx:"transport",methodName:i},"Non existing method %s called for transport",i),false);}),this.options.proxy&&typeof this.options.proxy=="string"&&this.setupProxy(this.options.proxy);}use(e,t){return e=(e||"").toString(),this._userPlugins.hasOwnProperty(e)?this._userPlugins[e].push(t):this._userPlugins[e]=[t],this}sendMail(e,t=null){let s;t||(s=new Promise((n,a)=>{t=Vt.callbackPromise(n,a);})),typeof this.getSocket=="function"&&(this.transporter.getSocket=this.getSocket,this.getSocket=false);let i=new an(this,e);return this.logger.debug({tnx:"transport",name:this.transporter.name,version:this.transporter.version,action:"send"},"Sending mail using %s/%s",this.transporter.name,this.transporter.version),this._processPlugins("compile",i,n=>{if(n)return this.logger.error({err:n,tnx:"plugin",action:"compile"},"PluginCompile Error: %s",n.message),t(n);i.message=new en(i.data).compile(),i.setMailerHeader(),i.setPriorityHeaders(),i.setListHeaders(),this._processPlugins("stream",i,a=>{if(a)return this.logger.error({err:a,tnx:"plugin",action:"stream"},"PluginStream Error: %s",a.message),t(a);(i.data.dkim||this.dkim)&&i.message.processFunc(r=>{let p=i.data.dkim?new Xt(i.data.dkim):this.dkim;return this.logger.debug({tnx:"DKIM",messageId:i.message.messageId(),dkimDomains:p.keys.map(c=>c.keySelector+"."+c.domainName).join(", ")},"Signing outgoing message with %s keys",p.keys.length),p.sign(r,i.data._dkim)}),this.transporter.send(i,(...r)=>{r[0]&&this.logger.error({err:r[0],tnx:"transport",action:"send"},"Send Error: %s",r[0].message),t(...r);});});}),s}getVersionString(){return sn.format("%s (%s; +%s; %s/%s)",je.name,je.version,je.homepage,this.transporter.name,this.transporter.version)}_processPlugins(e,t,s){if(e=(e||"").toString(),!this._userPlugins.hasOwnProperty(e))return s();let i=this._userPlugins[e]||[],n=this._defaultPlugins[e]||[];if(i.length&&this.logger.debug({tnx:"transaction",pluginCount:i.length,step:e},"Using %s plugins for %s",i.length,e),i.length+n.length===0)return s();let a=0,r="default",p=()=>{let c=r==="default"?n:i;if(a>=c.length)if(r==="default"&&i.length)r="user",a=0,c=i;else return s();let l=c[a++];l(t,m=>{if(m)return s(m);p();});};p();}setupProxy(e){let t=nn.parse(e);this.getSocket=(s,i)=>{let n=t.protocol.replace(/:$/,"").toLowerCase();if(this.meta.has("proxy_handler_"+n))return this.meta.get("proxy_handler_"+n)(t,s,i);switch(n){case "http":case "https":tn(t.href,s.port,s.host,(r,p)=>r?i(r):i(null,{connection:p}));return;case "socks":case "socks5":case "socks4":case "socks4a":{if(!this.meta.has("proxy_socks_module")){let p=new Error("Socks module not loaded");return p.code=Jt.EPROXY,i(p)}let r=p=>{let c=!!this.meta.get("proxy_socks_module").SocksClient,l=c?this.meta.get("proxy_socks_module").SocksClient:this.meta.get("proxy_socks_module"),m=Number(t.protocol.replace(/\D/g,""))||5,d={proxy:{ipaddress:p,port:Number(t.port),type:m},[c?"destination":"target"]:{host:s.host,port:s.port},command:"connect"};if(t.auth){let h=decodeURIComponent(t.auth.split(":").shift()),f=decodeURIComponent(t.auth.split(":").pop());c?(d.proxy.userId=h,d.proxy.password=f):m===4?d.userid=h:d.authentication={username:h,password:f};}l.createConnection(d,(h,f)=>h?i(h):i(null,{connection:f.socket||f}));};return on.isIP(t.hostname)?r(t.hostname):rn.resolve(t.hostname,(p,c)=>{if(p)return i(p);r(Array.isArray(c)?c[0]:c);})}}let a=new Error("Unknown proxy configuration");a.code=Jt.EPROXY,i(a);};}_convertDataImages(e,t){if(!this.options.attachDataUrls&&!e.data.attachDataUrls||!e.data.html)return t();e.resolveContent(e.data,"html",{disableFileAccess:e.data.disableFileAccess,disableUrlAccess:e.data.disableUrlAccess},(s,i)=>{if(s)return t(s);let n=0;i=(i||"").toString().replace(/(<img\b[^<>]{0,1024} src\s{0,20}=[\s"']{0,20})(data:([^;]+);[^"'>\s]+)/gi,(a,r,p,c)=>{let l=pn.randomBytes(10).toString("hex")+"@localhost";return e.data.attachments||(e.data.attachments=[]),Array.isArray(e.data.attachments)||(e.data.attachments=[].concat(e.data.attachments||[])),e.data.attachments.push({path:p,cid:l,filename:"image-"+ ++n+"."+Zs.detectExtension(c)}),r+"cid:"+l}),e.data.html=i,t();});}set(e,t){return this.meta.set(e,t)}get(e){return this.meta.get(e)}};Yt.exports=Ie;});var ti=chunkBUNLC3II_cjs.c((to,ei)=>{chunkBUNLC3II_cjs.h();var{Transform:cn}=chunkBUNLC3II_cjs.a("stream"),qe=class extends cn{constructor(e){super(e),this.options=e||{},this.inByteCount=0,this.outByteCount=0,this.lastByte=false;}_transform(e,t,s){let i=[],n=0,a,r,p=0,c;if(!e||!e.length)return s();for(typeof e=="string"&&(e=Buffer.from(e)),this.inByteCount+=e.length,a=0,r=e.length;a<r;a++)e[a]===46?(a&&e[a-1]===10||!a&&(!this.lastByte||this.lastByte===10))&&(c=e.slice(p,a+1),i.push(c),i.push(Buffer.from(".")),n+=c.length+1,p=a+1):e[a]===10&&(a&&e[a-1]!==13||!a&&this.lastByte!==13)&&(a>p?(c=e.slice(p,a),i.push(c),n+=c.length+2):n+=2,i.push(Buffer.from(`\r
|
|
36
|
+
`)),p=a+1);n?(p<e.length&&(c=e.slice(p),i.push(c),n+=c.length),this.outByteCount+=n,this.push(Buffer.concat(i,n))):(this.outByteCount+=e.length,this.push(e)),this.lastByte=e[e.length-1],s();}_flush(e){let t;this.lastByte===10?t=Buffer.from(`.\r
|
|
37
|
+
`):this.lastByte===13?t=Buffer.from(`
|
|
38
|
+
.\r
|
|
39
|
+
`):t=Buffer.from(`\r
|
|
40
|
+
.\r
|
|
41
|
+
`),this.outByteCount+=t.length,this.push(t),e();}};ei.exports=qe;});var $=chunkBUNLC3II_cjs.c((so,pi)=>{chunkBUNLC3II_cjs.h();var ln=k(),{EventEmitter:dn}=chunkBUNLC3II_cjs.a("events"),ii=chunkBUNLC3II_cjs.a("net"),si=chunkBUNLC3II_cjs.a("tls"),mn=chunkBUNLC3II_cjs.a("os"),ni=chunkBUNLC3II_cjs.a("crypto"),hn=ti(),{PassThrough:ai}=chunkBUNLC3II_cjs.a("stream"),L=y(),un=120*1e3,oi=600*1e3,fn=30*1e3,xn=30*1e3,gn=()=>{};function ri(o){if(!o)return o;let e=Buffer.from(o,"binary").toString("utf8");return e.includes("\uFFFD")?o:e}var Le=class extends dn{constructor(e){super(e),this.id=ni.randomBytes(8).toString("base64").replace(/\W/g,""),this.stage="init",this.options=e||{},this.secureConnection=!!this.options.secure,this.alreadySecured=!!this.options.secured,this.port=Number(this.options.port)||(this.secureConnection?465:587),this.host=this.options.host||"localhost",this.servername=this.options.servername?this.options.servername:ii.isIP(this.host)?false:this.host,this.allowInternalNetworkInterfaces=this.options.allowInternalNetworkInterfaces||false,typeof this.options.secure>"u"&&this.port===465&&(this.secureConnection=true),this.name=(this.options.name||this._getHostname()).toString().replace(/[\r\n]+/g,""),this.logger=L.getLogger(this.options,{component:this.options.component||"smtp-connection",sid:this.id}),this.customAuth=new Map;for(let t of Object.keys(this.options.customAuth||{})){let s=(t||"").toString().trim().toUpperCase();s&&this.customAuth.set(s,this.options.customAuth[t]);}this.version=ln.version,this.authenticated=false,this.destroyed=false,this.secure=!!this.secureConnection,this._remainder="",this._responseQueue=[],this.lastServerResponse=false,this._socket=false,this._supportedAuth=[],this.allowsAuth=false,this._envelope=false,this._supportedExtensions=[],this._maxAllowedSize=0,this._responseActions=[],this._recipientQueue=[],this._greetingTimeout=false,this._connectionTimeout=false,this._destroyed=false,this._closing=false,this._currentDataStream=false,this._onSocketData=t=>this._onData(t),this._onSocketError=t=>this._onError(t,"ESOCKET",false,"CONN"),this._onSocketClose=()=>this._onClose(),this._onSocketEnd=()=>this._onEnd(),this._onSocketTimeout=()=>this._onTimeout(),this._onConnectionSocketError=t=>this._onConnectionError(t,"ESOCKET"),this._connectionAttemptId=0;}connect(e){if(typeof e=="function"){this.once("connect",()=>{this.logger.debug({tnx:"smtp"},"SMTP handshake finished"),e();});let s=this._isDestroyedMessage("connect");if(s)return e(this._formatError(s,"ECONNECTION",false,"CONN"))}let t={port:this.port,host:this.host,allowInternalNetworkInterfaces:this.allowInternalNetworkInterfaces,timeout:this.options.dnsTimeout||xn};if(this.options.localAddress&&(t.localAddress=this.options.localAddress),this.options.connection){this._socket=this.options.connection,this._setupConnectionHandlers(),this.secureConnection&&!this.alreadySecured?setImmediate(()=>this._upgradeConnection(s=>{if(s){this._onError(new Error("Error initiating TLS - "+(s.message||s)),"ETLS",false,"CONN");return}this._onConnect();})):setImmediate(()=>this._onConnect());return}else return this.options.socket?(this._socket=this.options.socket,this._resolveAndConnect(t,s=>{try{this._socket.connect(this.port,this.host,()=>{this._socket.setKeepAlive(!0),this._onConnect();}),this._setupConnectionHandlers();}catch(i){return setImmediate(()=>this._onError(i,"ECONNECTION",false,"CONN"))}})):(this.secureConnection&&(Object.assign(t,this.options.tls||{}),this.servername&&!t.servername&&(t.servername=this.servername)),this._resolveAndConnect(t,s=>{this._fallbackAddresses=(s._addresses||[]).filter(i=>i!==t.host),this._connectOpts=Object.assign({},t),this._connectToHost(t,this.secureConnection);}))}_resolveAndConnect(e,t){return L.resolveHostname(e,(s,i)=>{if(s)return setImmediate(()=>this._onError(s,"EDNS",false,"CONN"));this.logger.debug({tnx:"dns",source:e.host,resolved:i.host,cached:!!i.cached},"Resolved %s as %s [cache %s]",e.host,i.host,i.cached?"hit":"miss");for(let n of Object.keys(i))n.charAt(0)!=="_"&&i[n]&&(e[n]=i[n]);t(i);})}_connectToHost(e,t){this._connectionAttemptId++;let s=this._connectionAttemptId,i=t?si.connect:ii.connect;try{this._socket=i(e,()=>{this._connectionAttemptId===s&&(this._socket.setKeepAlive(!0),this._onConnect());}),this._setupConnectionHandlers();}catch(n){return setImmediate(()=>this._onError(n,"ECONNECTION",false,"CONN"))}}_setupConnectionHandlers(){this._connectionTimeout=setTimeout(()=>{this._onConnectionError("Connection timeout","ETIMEDOUT");},this.options.connectionTimeout||un),this._socket.on("error",this._onConnectionSocketError);}_onConnectionError(e,t){if(clearTimeout(this._connectionTimeout),!(this._fallbackAddresses&&this._fallbackAddresses.length&&this.stage==="init"&&!this._destroyed)){this._onError(e,t,false,"CONN");return}let i=this._fallbackAddresses.shift();if(this.logger.info({tnx:"network",failedHost:this._connectOpts.host,nextHost:i,error:e.message||e},"Connection to %s failed, trying %s",this._connectOpts.host,i),this._socket){try{this._socket.removeListener("error",this._onConnectionSocketError),this._socket.destroy();}catch{}this._socket=null;}this._connectOpts.host=i,this._connectToHost(this._connectOpts,this.secureConnection);}quit(){this._sendCommand("QUIT"),this._responseActions.push(this.close);}close(){if(clearTimeout(this._connectionTimeout),clearTimeout(this._greetingTimeout),this._responseActions=[],this._closing)return;this._closing=true;let e=this.stage==="init"?"destroy":"end";this.logger.debug({tnx:"smtp"},'Closing connection to the server using "%s"',e);let t=this._socket&&this._socket.socket||this._socket;if(this._currentDataStream){try{this._currentDataStream.unpipe(this._socket);}catch{}this._currentDataStream=false;}if(t&&!t.destroyed)try{t.setTimeout(0),t.removeListener("data",this._onSocketData),t.removeListener("timeout",this._onSocketTimeout),t.removeListener("close",this._onSocketClose),t.removeListener("end",this._onSocketEnd),t.removeListener("error",this._onSocketError),t.removeListener("error",this._onConnectionSocketError),t.on("error",gn),t[e]();}catch{}this._destroy();}login(e,t){let s=this._isDestroyedMessage("login");if(s)return t(this._formatError(s,"ECONNECTION",false,"API"));if(this._auth=e||{},this._authMethod=(this._auth.method||"").toString().trim().toUpperCase()||false,!this._authMethod&&this._auth.oauth2&&!this._auth.credentials?this._authMethod="XOAUTH2":(!this._authMethod||this._authMethod==="XOAUTH2"&&!this._auth.oauth2)&&(this._authMethod=(this._supportedAuth[0]||"PLAIN").toUpperCase().trim()),this._authMethod!=="XOAUTH2"&&(!this._auth.credentials||!this._auth.credentials.user||!this._auth.credentials.pass))if(this._auth.user&&this._auth.pass||this.customAuth.has(this._authMethod))this._auth.credentials={user:this._auth.user,pass:this._auth.pass,options:this._auth.options};else return t(this._formatError('Missing credentials for "'+this._authMethod+'"',"EAUTH",false,"API"));if(this.customAuth.has(this._authMethod)){let i=this.customAuth.get(this._authMethod),n,a=false,r=()=>{a||(a=true,this.logger.info({tnx:"smtp",username:this._auth.user,action:"authenticated",method:this._authMethod},"User %s authenticated",JSON.stringify(this._auth.user)),this.authenticated=true,t(null,true));},p=l=>{a||(a=true,t(this._formatError(l,"EAUTH",n,"AUTH "+this._authMethod)));},c=i({auth:this._auth,method:this._authMethod,extensions:[].concat(this._supportedExtensions),authMethods:[].concat(this._supportedAuth),maxAllowedSize:this._maxAllowedSize||false,sendCommand:(l,m)=>{let d;return m||(d=new Promise((h,f)=>{m=L.callbackPromise(h,f);})),this._responseActions.push(h=>{n=h;let f=h.match(/^(\d+)(?:\s(\d+\.\d+\.\d+))?\s/),g={command:l,response:h};f?(g.status=Number(f[1])||0,f[2]&&(g.code=f[2]),g.text=h.substr(f[0].length)):(g.text=h,g.status=0),m(null,g);}),setImmediate(()=>this._sendCommand(l)),d},resolve:r,reject:p});c&&typeof c.catch=="function"&&c.then(r).catch(p);return}switch(this._authMethod){case "XOAUTH2":this._handleXOauth2Token(false,t);return;case "LOGIN":this._responseActions.push(i=>{this._actionAUTH_LOGIN_USER(i,t);}),this._sendCommand("AUTH LOGIN");return;case "PLAIN":this._responseActions.push(i=>{this._actionAUTHComplete(i,t);}),this._sendCommand("AUTH PLAIN "+Buffer.from("\0"+this._auth.credentials.user+"\0"+this._auth.credentials.pass,"utf-8").toString("base64"),"AUTH PLAIN "+Buffer.from("\0"+this._auth.credentials.user+"\0/* secret */","utf-8").toString("base64"));return;case "CRAM-MD5":this._responseActions.push(i=>{this._actionAUTH_CRAM_MD5(i,t);}),this._sendCommand("AUTH CRAM-MD5");return}return t(this._formatError('Unknown authentication method "'+this._authMethod+'"',"EAUTH",false,"API"))}send(e,t,s){if(!t)return s(this._formatError("Empty message","EMESSAGE",false,"API"));let i=this._isDestroyedMessage("send message");if(i)return s(this._formatError(i,"ECONNECTION",false,"API"));if(this._maxAllowedSize&&e.size>this._maxAllowedSize)return setImmediate(()=>{s(this._formatError("Message size larger than allowed "+this._maxAllowedSize,"EMESSAGE",false,"MAIL FROM"));});let n=false,a=function(){n||(n=true,s(...arguments));};typeof t.on=="function"&&t.on("error",p=>a(this._formatError(p,"ESTREAM",false,"API")));let r=Date.now();this._setEnvelope(e,(p,c)=>{if(p){let d=new ai;return typeof t.pipe=="function"?t.pipe(d):(d.write(t),d.end()),a(p)}let l=Date.now(),m=this._createSendStream((d,h)=>d?a(d):(c.envelopeTime=l-r,c.messageTime=Date.now()-l,c.messageSize=m.outByteCount,c.response=h,a(null,c)));typeof t.pipe=="function"?t.pipe(m):(m.write(t),m.end());});}reset(e){this._sendCommand("RSET"),this._responseActions.push(t=>t.charAt(0)!=="2"?e(this._formatError("Could not reset session state. response="+t,"EPROTOCOL",t,"RSET")):(this._envelope=false,e(null,true)));}_onConnect(){if(clearTimeout(this._connectionTimeout),this.logger.info({tnx:"network",localAddress:this._socket.localAddress,localPort:this._socket.localPort,remoteAddress:this._socket.remoteAddress,remotePort:this._socket.remotePort},"%s established to %s:%s",this.secure?"Secure connection":"Connection",this._socket.remoteAddress,this._socket.remotePort),this._destroyed){this.close();return}this.stage="connected",this._socket.removeListener("data",this._onSocketData),this._socket.removeListener("timeout",this._onSocketTimeout),this._socket.removeListener("close",this._onSocketClose),this._socket.removeListener("end",this._onSocketEnd),this._socket.removeListener("error",this._onConnectionSocketError),this._socket.on("error",this._onSocketError),this._socket.on("data",this._onSocketData),this._socket.once("close",this._onSocketClose),this._socket.once("end",this._onSocketEnd),this._socket.setTimeout(this.options.socketTimeout||oi),this._socket.on("timeout",this._onSocketTimeout),this._greetingTimeout=setTimeout(()=>{this._socket&&!this._destroyed&&this._responseActions[0]===this._actionGreeting&&this._onError("Greeting never received","ETIMEDOUT",false,"CONN");},this.options.greetingTimeout||fn),this._responseActions.push(this._actionGreeting),this._socket.resume();}_onData(e){if(this._destroyed||!e||!e.length)return;let t=e.toString("binary"),s=(this._remainder+t).split(/\r?\n/),i;this._remainder=s.pop();for(let n=0,a=s.length;n<a;n++){if(this._responseQueue.length&&(i=this._responseQueue[this._responseQueue.length-1],/^\d+-/.test(i.split(`
|
|
42
|
+
`).pop()))){this._responseQueue[this._responseQueue.length-1]+=`
|
|
43
|
+
`+s[n];continue}this._responseQueue.push(s[n]);}this._responseQueue.length&&(i=this._responseQueue[this._responseQueue.length-1],/^\d+-/.test(i.split(`
|
|
44
|
+
`).pop()))||this._processResponse();}_onError(e,t,s,i){if(clearTimeout(this._connectionTimeout),clearTimeout(this._greetingTimeout),this._destroyed)return;e=this._formatError(e,t,s,i),["ETIMEDOUT","ESOCKET","ECONNECTION"].includes(e.code)?this.logger.warn(s,e.message):this.logger.error(s,e.message),this.emit("error",e),this.close();}_formatError(e,t,s,i){let n;/Error\]$/i.test(Object.prototype.toString.call(e))?n=e:n=new Error(e),t&&t!=="Error"&&(n.code=t),s&&(n.response=s,n.message+=": "+s);let a=typeof s=="string"&&Number((s.match(/^\d+/)||[])[0])||false;return a&&(n.responseCode=a),i&&(n.command=i),n}_onClose(){let e=false;if(this._remainder&&this._remainder.trim()&&(this.lastServerResponse=e=ri(this._remainder.trim()),(this.options.debug||this.options.transactionLog)&&this.logger.debug({tnx:"server"},e)),this.logger.info({tnx:"network"},"Connection closed"),this.upgrading&&!this._destroyed)return this._onError(new Error("Connection closed unexpectedly"),"ETLS",e,"CONN");if(![this._actionGreeting,this.close].includes(this._responseActions[0])&&!this._destroyed)return this._onError(new Error("Connection closed unexpectedly"),"ECONNECTION",e,"CONN");if(/^[45]\d{2}\b/.test(e))return this._onError(new Error("Connection closed unexpectedly"),"ECONNECTION",e,"CONN");this._destroy();}_onEnd(){this._socket&&!this._socket.destroyed&&this._socket.end();}_onTimeout(){return this._onError(new Error("Timeout"),"ETIMEDOUT",false,"CONN")}_destroy(){this._destroyed||(this._destroyed=true,this.emit("end"));}_upgradeConnection(e){this._socket.removeListener("data",this._onSocketData),this._socket.removeListener("timeout",this._onSocketTimeout);let t=this._socket,s=Object.assign({socket:this._socket,host:this.host},this.options.tls||{});this.servername&&!s.servername&&(s.servername=this.servername);let i=()=>{t.removeListener("close",this._onSocketClose),t.removeListener("end",this._onSocketEnd),t.removeListener("error",this._onSocketError);};this.upgrading=true;try{this._socket=si.connect(s,()=>(this.secure=!0,this.upgrading=!1,this._socket.on("data",this._onSocketData),i(),e(null,!0)));}catch(n){return i(),e(n)}this._socket.on("error",this._onSocketError),this._socket.once("close",this._onSocketClose),this._socket.once("end",this._onSocketEnd),this._socket.setTimeout(this.options.socketTimeout||oi),this._socket.on("timeout",this._onSocketTimeout),t.resume();}_processResponse(){if(!this._responseQueue.length)return false;let e=this.lastServerResponse=ri((this._responseQueue.shift()||"").toString());if(/^\d+-/.test(e.split(`
|
|
45
|
+
`).pop()))return;(this.options.debug||this.options.transactionLog)&&this.logger.debug({tnx:"server"},e.replace(/\r?\n$/,"")),e.trim()||setImmediate(()=>this._processResponse());let t=this._responseActions.shift();if(typeof t=="function")t.call(this,e),setImmediate(()=>this._processResponse());else return this._onError(new Error("Unexpected Response"),"EPROTOCOL",e,"CONN")}_sendCommand(e,t){if(!this._destroyed){if(this._socket.destroyed)return this.close();(this.options.debug||this.options.transactionLog)&&this.logger.debug({tnx:"client"},(t||e||"").toString().replace(/\r?\n$/,"")),this._socket.write(Buffer.from(e+`\r
|
|
46
|
+
`,"utf-8"));}}_setEnvelope(e,t){let s=[],i=false;if(this._envelope=e||{},this._envelope.from=(this._envelope.from&&this._envelope.from.address||this._envelope.from||"").toString().trim(),this._envelope.to=[].concat(this._envelope.to||[]).map(n=>(n&&n.address||n||"").toString().trim()),!this._envelope.to.length)return t(this._formatError("No recipients defined","EENVELOPE",false,"API"));if(this._envelope.from&&/[\r\n<>]/.test(this._envelope.from))return t(this._formatError("Invalid sender "+JSON.stringify(this._envelope.from),"EENVELOPE",false,"API"));/[\x80-\uFFFF]/.test(this._envelope.from)&&(i=true);for(let n=0,a=this._envelope.to.length;n<a;n++){if(!this._envelope.to[n]||/[\r\n<>]/.test(this._envelope.to[n]))return t(this._formatError("Invalid recipient "+JSON.stringify(this._envelope.to[n]),"EENVELOPE",false,"API"));/[\x80-\uFFFF]/.test(this._envelope.to[n])&&(i=true);}if(this._envelope.rcptQueue=[].concat(this._envelope.to||[]),this._envelope.rejected=[],this._envelope.rejectedErrors=[],this._envelope.accepted=[],this._envelope.dsn)try{this._envelope.dsn=this._setDsnEnvelope(this._envelope.dsn);}catch(n){return t(this._formatError("Invalid DSN "+n.message,"EENVELOPE",false,"API"))}if(this._responseActions.push(n=>{this._actionMAIL(n,t);}),i&&this._supportedExtensions.includes("SMTPUTF8")&&(s.push("SMTPUTF8"),this._usingSmtpUtf8=true),this._envelope.use8BitMime&&this._supportedExtensions.includes("8BITMIME")&&(s.push("BODY=8BITMIME"),this._using8BitMime=true),this._envelope.size&&this._supportedExtensions.includes("SIZE")){let n=Number(this._envelope.size)||0;n>0&&s.push("SIZE="+n);}if(this._envelope.dsn&&this._supportedExtensions.includes("DSN")&&(this._envelope.dsn.ret&&s.push("RET="+L.encodeXText(this._envelope.dsn.ret)),this._envelope.dsn.envid&&s.push("ENVID="+L.encodeXText(this._envelope.dsn.envid))),this._envelope.requireTLSExtensionEnabled){if(!this.secure)return t(this._formatError("REQUIRETLS can only be used over TLS connections (RFC 8689)","EREQUIRETLS",false,"MAIL FROM"));if(!this._supportedExtensions.includes("REQUIRETLS"))return t(this._formatError("Server does not support REQUIRETLS extension (RFC 8689)","EREQUIRETLS",false,"MAIL FROM"));s.push("REQUIRETLS");}this._sendCommand("MAIL FROM:<"+this._envelope.from+">"+(s.length?" "+s.join(" "):""));}_setDsnEnvelope(e){let t=(e.ret||e.return||"").toString().toUpperCase()||null;if(t)switch(t){case "HDRS":case "HEADERS":t="HDRS";break;case "FULL":case "BODY":t="FULL";break}if(t&&!["FULL","HDRS"].includes(t))throw new Error("ret: "+JSON.stringify(t));let s=(e.envid||e.id||"").toString()||null,i=e.notify||null;if(i){typeof i=="string"&&(i=i.split(",")),i=i.map(p=>p.trim().toUpperCase());let a=["NEVER","SUCCESS","FAILURE","DELAY"];if(i.filter(p=>!a.includes(p)).length||i.length>1&&i.includes("NEVER"))throw new Error("notify: "+JSON.stringify(i.join(",")));i=i.join(",");}let n=(e.recipient||e.orcpt||"").toString()||null;return n&&n.indexOf(";")<0&&(n="rfc822;"+n),{ret:t,envid:s,notify:i,orcpt:n}}_getDsnRcptToArgs(){let e=[];return this._envelope.dsn&&this._supportedExtensions.includes("DSN")&&(this._envelope.dsn.notify&&e.push("NOTIFY="+L.encodeXText(this._envelope.dsn.notify)),this._envelope.dsn.orcpt&&e.push("ORCPT="+L.encodeXText(this._envelope.dsn.orcpt))),e.length?" "+e.join(" "):""}_createSendStream(e){let t=new hn;if(this.options.lmtp?this._envelope.accepted.forEach((s,i)=>{let n=i===this._envelope.accepted.length-1;this._responseActions.push(a=>{this._actionLMTPStream(s,n,a,e);});}):this._responseActions.push(s=>{this._actionSMTPStream(s,e);}),this._currentDataStream=t,t.pipe(this._socket,{end:false}),this.options.debug){let s=new ai;s.on("readable",()=>{let i;for(;i=s.read();)this.logger.debug({tnx:"message"},i.toString("binary").replace(/\r?\n$/,""));}),t.pipe(s);}return t.once("end",()=>{this._currentDataStream===t&&(this._currentDataStream=false),this.logger.info({tnx:"message",inByteCount:t.inByteCount,outByteCount:t.outByteCount},"<%s bytes encoded mime message (source size %s bytes)>",t.outByteCount,t.inByteCount);}),t}_actionGreeting(e){if(clearTimeout(this._greetingTimeout),e.substr(0,3)!=="220"){this._onError(new Error("Invalid greeting. response="+e),"EPROTOCOL",e,"CONN");return}this.options.lmtp?(this._responseActions.push(this._actionLHLO),this._sendCommand("LHLO "+this.name)):(this._responseActions.push(this._actionEHLO),this._sendCommand("EHLO "+this.name));}_actionLHLO(e){if(e.charAt(0)!=="2"){this._onError(new Error("Invalid LHLO. response="+e),"EPROTOCOL",e,"LHLO");return}this._actionEHLO(e);}_actionEHLO(e){let t;if(e.substr(0,3)==="421"){this._onError(new Error("Server terminates connection. response="+e),"ECONNECTION",e,"EHLO");return}if(e.charAt(0)!=="2"){if(this.options.requireTLS){this._onError(new Error("EHLO failed but HELO does not support required STARTTLS. response="+e),"ECONNECTION",e,"EHLO");return}this._responseActions.push(this._actionHELO),this._sendCommand("HELO "+this.name);return}if(this._ehloLines=e.split(/\r?\n/).map(s=>s.replace(/^\d+[ -]/,"").trim()).filter(s=>s).slice(1),!this.secure&&!this.options.ignoreTLS&&(/[ -]STARTTLS\b/im.test(e)||this.options.requireTLS)){this._sendCommand("STARTTLS"),this._responseActions.push(this._actionSTARTTLS);return}/[ -]SMTPUTF8\b/im.test(e)&&this._supportedExtensions.push("SMTPUTF8"),/[ -]DSN\b/im.test(e)&&this._supportedExtensions.push("DSN"),/[ -]8BITMIME\b/im.test(e)&&this._supportedExtensions.push("8BITMIME"),/[ -]REQUIRETLS\b/im.test(e)&&this._supportedExtensions.push("REQUIRETLS"),/[ -]PIPELINING\b/im.test(e)&&this._supportedExtensions.push("PIPELINING"),/[ -]AUTH\b/i.test(e)&&(this.allowsAuth=true),/[ -]AUTH(?:(\s+|=)[^\n]*\s+|\s+|=)PLAIN/i.test(e)&&this._supportedAuth.push("PLAIN"),/[ -]AUTH(?:(\s+|=)[^\n]*\s+|\s+|=)LOGIN/i.test(e)&&this._supportedAuth.push("LOGIN"),/[ -]AUTH(?:(\s+|=)[^\n]*\s+|\s+|=)CRAM-MD5/i.test(e)&&this._supportedAuth.push("CRAM-MD5"),/[ -]AUTH(?:(\s+|=)[^\n]*\s+|\s+|=)XOAUTH2/i.test(e)&&this._supportedAuth.push("XOAUTH2"),(t=e.match(/[ -]SIZE(?:[ \t]+(\d+))?/im))&&(this._supportedExtensions.push("SIZE"),this._maxAllowedSize=Number(t[1])||0),this.emit("connect");}_actionHELO(e){if(e.charAt(0)!=="2"){this._onError(new Error("Invalid HELO. response="+e),"EPROTOCOL",e,"HELO");return}this.allowsAuth=true,this.emit("connect");}_actionSTARTTLS(e){if(e.charAt(0)!=="2"){if(this.options.opportunisticTLS)return this.logger.info({tnx:"smtp"},"Failed STARTTLS upgrade, continuing unencrypted"),this.emit("connect");this._onError(new Error("Error upgrading connection with STARTTLS"),"ETLS",e,"STARTTLS");return}this._upgradeConnection((t,s)=>{if(t){this._onError(new Error("Error initiating TLS - "+(t.message||t)),"ETLS",false,"STARTTLS");return}this.logger.info({tnx:"smtp"},"Connection upgraded with STARTTLS"),s?this.options.lmtp?(this._responseActions.push(this._actionLHLO),this._sendCommand("LHLO "+this.name)):(this._responseActions.push(this._actionEHLO),this._sendCommand("EHLO "+this.name)):this.emit("connect");});}_actionAUTH_LOGIN_USER(e,t){if(!/^334[ -]/.test(e)){t(this._formatError('Invalid login sequence while waiting for "334 VXNlcm5hbWU6"',"EAUTH",e,"AUTH LOGIN"));return}this._responseActions.push(s=>{this._actionAUTH_LOGIN_PASS(s,t);}),this._sendCommand(Buffer.from(this._auth.credentials.user+"","utf-8").toString("base64"));}_actionAUTH_CRAM_MD5(e,t){let s=e.match(/^334\s+(.+)$/);if(!s)return t(this._formatError("Invalid login sequence while waiting for server challenge string","EAUTH",e,"AUTH CRAM-MD5"));let i=Buffer.from(s[1],"base64").toString("ascii"),n=ni.createHmac("md5",this._auth.credentials.pass);n.update(i);let a=this._auth.credentials.user+" "+n.digest("hex");this._responseActions.push(r=>{this._actionAUTH_CRAM_MD5_PASS(r,t);}),this._sendCommand(Buffer.from(a).toString("base64"),Buffer.from(this._auth.credentials.user+" /* secret */").toString("base64"));}_actionAUTH_CRAM_MD5_PASS(e,t){if(!e.match(/^235\s+/))return t(this._formatError('Invalid login sequence while waiting for "235"',"EAUTH",e,"AUTH CRAM-MD5"));this.logger.info({tnx:"smtp",username:this._auth.user,action:"authenticated",method:this._authMethod},"User %s authenticated",JSON.stringify(this._auth.user)),this.authenticated=true,t(null,true);}_actionAUTH_LOGIN_PASS(e,t){if(!/^334[ -]/.test(e))return t(this._formatError('Invalid login sequence while waiting for "334 UGFzc3dvcmQ6"',"EAUTH",e,"AUTH LOGIN"));this._responseActions.push(s=>{this._actionAUTHComplete(s,t);}),this._sendCommand(Buffer.from((this._auth.credentials.pass||"").toString(),"utf-8").toString("base64"),Buffer.from("/* secret */","utf-8").toString("base64"));}_actionAUTHComplete(e,t,s){if(!s&&typeof t=="function"&&(s=t,t=false),e.substr(0,3)==="334"){this._responseActions.push(i=>{t||this._authMethod!=="XOAUTH2"?this._actionAUTHComplete(i,true,s):setImmediate(()=>this._handleXOauth2Token(true,s));}),this._sendCommand("");return}if(e.charAt(0)!=="2")return this.logger.info({tnx:"smtp",username:this._auth.user,action:"authfail",method:this._authMethod},"User %s failed to authenticate",JSON.stringify(this._auth.user)),s(this._formatError("Invalid login","EAUTH",e,"AUTH "+this._authMethod));this.logger.info({tnx:"smtp",username:this._auth.user,action:"authenticated",method:this._authMethod},"User %s authenticated",JSON.stringify(this._auth.user)),this.authenticated=true,s(null,true);}_actionMAIL(e,t){if(Number(e.charAt(0))!==2){let i=this._usingSmtpUtf8&&/^550 /.test(e)&&/[\x80-\uFFFF]/.test(this._envelope.from)?"Internationalized mailbox name not allowed":"Mail command failed";return t(this._formatError(i,"EENVELOPE",e,"MAIL FROM"))}if(!this._envelope.rcptQueue.length)return t(this._formatError("Can't send mail - no recipients defined","EENVELOPE",false,"API"));this._recipientQueue=[];let s=this._supportedExtensions.includes("PIPELINING");do{let i=this._envelope.rcptQueue.shift();this._recipientQueue.push(i),this._responseActions.push(n=>{this._actionRCPT(n,t);}),this._sendCommand("RCPT TO:<"+i+">"+this._getDsnRcptToArgs());}while(s&&this._envelope.rcptQueue.length)}_actionRCPT(e,t){let s,i=this._recipientQueue.shift();if(Number(e.charAt(0))!==2){let n=this._usingSmtpUtf8&&/^553 /.test(e)&&/[\x80-\uFFFF]/.test(i)?"Internationalized mailbox name not allowed":"Recipient command failed";this._envelope.rejected.push(i),s=this._formatError(n,"EENVELOPE",e,"RCPT TO"),s.recipient=i,this._envelope.rejectedErrors.push(s);}else this._envelope.accepted.push(i);if(!this._envelope.rcptQueue.length&&!this._recipientQueue.length)if(this._envelope.rejected.length<this._envelope.to.length)this._responseActions.push(n=>{this._actionDATA(n,t);}),this._sendCommand("DATA");else return s=this._formatError("Can't send mail - all recipients were rejected","EENVELOPE",e,"RCPT TO"),s.rejected=this._envelope.rejected,s.rejectedErrors=this._envelope.rejectedErrors,t(s);else if(this._envelope.rcptQueue.length){let n=this._envelope.rcptQueue.shift();this._recipientQueue.push(n),this._responseActions.push(a=>{this._actionRCPT(a,t);}),this._sendCommand("RCPT TO:<"+n+">"+this._getDsnRcptToArgs());}}_actionDATA(e,t){if(!/^[23]/.test(e))return t(this._formatError("Data command failed","EENVELOPE",e,"DATA"));let s={accepted:this._envelope.accepted,rejected:this._envelope.rejected};this._ehloLines&&this._ehloLines.length&&(s.ehlo=this._ehloLines),this._envelope.rejectedErrors.length&&(s.rejectedErrors=this._envelope.rejectedErrors),t(null,s);}_actionSMTPStream(e,t){return Number(e.charAt(0))!==2?t(this._formatError("Message failed","EMESSAGE",e,"DATA")):t(null,e)}_actionLMTPStream(e,t,s,i){let n;if(Number(s.charAt(0))!==2){n=this._formatError("Message failed for recipient "+e,"EMESSAGE",s,"DATA"),n.recipient=e,this._envelope.rejected.push(e),this._envelope.rejectedErrors.push(n);for(let a=0,r=this._envelope.accepted.length;a<r;a++)this._envelope.accepted[a]===e&&this._envelope.accepted.splice(a,1);}if(t)return i(null,s)}_handleXOauth2Token(e,t){this._auth.oauth2.getToken(e,(s,i)=>{if(s)return this.logger.info({tnx:"smtp",username:this._auth.user,action:"authfail",method:this._authMethod},"User %s failed to authenticate",JSON.stringify(this._auth.user)),t(this._formatError(s,"EAUTH",false,"AUTH XOAUTH2"));this._responseActions.push(n=>{this._actionAUTHComplete(n,e,t);}),this._sendCommand("AUTH XOAUTH2 "+this._auth.oauth2.buildXOAuth2Token(i),"AUTH XOAUTH2 "+this._auth.oauth2.buildXOAuth2Token("/* secret */"));});}_isDestroyedMessage(e){if(this._destroyed)return "Cannot "+e+" - smtp connection is already destroyed.";if(this._socket){if(this._socket.destroyed)return "Cannot "+e+" - smtp connection socket is already destroyed.";if(!this._socket.writable)return "Cannot "+e+" - smtp connection socket is already half-closed."}}_getHostname(){let e;try{e=mn.hostname()||"";}catch{e="localhost";}return (!e||e.indexOf(".")<0)&&(e="[127.0.0.1]"),e.match(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/)&&(e="["+e+"]"),e}};pi.exports=Le;});var He=chunkBUNLC3II_cjs.c((ao,ci)=>{chunkBUNLC3II_cjs.h();var{Stream:vn}=chunkBUNLC3II_cjs.a("stream"),wn=N(),_n=chunkBUNLC3II_cjs.a("crypto"),bn=y(),O=E(),Oe=class extends vn{constructor(e,t){if(super(),this.options=e||{},e&&e.serviceClient){if(!e.privateKey||!e.user){let i=new Error('Options "privateKey" and "user" are required for service account!');i.code=O.EOAUTH2,setImmediate(()=>this.emit("error",i));return}let s=Math.min(Math.max(Number(this.options.serviceRequestTimeout)||0,0),3600);this.options.serviceRequestTimeout=s||300;}if(this.logger=bn.getLogger({logger:t},{component:this.options.component||"OAuth2"}),this.provisionCallback=typeof this.options.provisionCallback=="function"?this.options.provisionCallback:false,this.options.accessUrl=this.options.accessUrl||"https://accounts.google.com/o/oauth2/token",this.options.customHeaders=this.options.customHeaders||{},this.options.customParams=this.options.customParams||{},this.accessToken=this.options.accessToken||false,this.options.expires&&Number(this.options.expires))this.expires=this.options.expires;else {let s=Math.max(Number(this.options.timeout)||0,0);this.expires=s&&Date.now()+s*1e3||0;}this.renewing=false,this.renewalQueue=[];}getToken(e,t){if(!e&&this.accessToken&&(!this.expires||this.expires>Date.now()))return this.logger.debug({tnx:"OAUTH2",user:this.options.user,action:"reuse"},"Reusing existing access token for %s",this.options.user),t(null,this.accessToken);if(!this.provisionCallback&&!this.options.refreshToken&&!this.options.serviceClient){if(this.accessToken)return this.logger.debug({tnx:"OAUTH2",user:this.options.user,action:"reuse"},"Reusing existing access token (no refresh capability) for %s",this.options.user),t(null,this.accessToken);this.logger.error({tnx:"OAUTH2",user:this.options.user,action:"renew"},"Cannot renew access token for %s: No refresh mechanism available",this.options.user);let i=new Error("Can't create new access token for user");return i.code=O.EOAUTH2,t(i)}if(this.renewing)return this.renewalQueue.push({renew:e,callback:t});this.renewing=true;let s=(i,n)=>{this.renewalQueue.forEach(a=>a.callback(i,n)),this.renewalQueue=[],this.renewing=false,i?this.logger.error({err:i,tnx:"OAUTH2",user:this.options.user,action:"renew"},"Failed generating new Access Token for %s",this.options.user):this.logger.info({tnx:"OAUTH2",user:this.options.user,action:"renew"},"Generated new Access Token for %s",this.options.user),t(i,n);};this.provisionCallback?this.provisionCallback(this.options.user,!!e,(i,n,a)=>{!i&&n&&(this.accessToken=n,this.expires=a||0),s(i,n);}):this.generateToken(s);}updateToken(e,t){this.accessToken=e,t=Math.max(Number(t)||0,0),this.expires=t&&Date.now()+t*1e3||0,this.emit("token",{user:this.options.user,accessToken:e||"",expires:this.expires});}generateToken(e){let t,s;if(this.options.serviceClient){let i=Math.floor(Date.now()/1e3),n={iss:this.options.serviceClient,scope:this.options.scope||"https://mail.google.com/",sub:this.options.user,aud:this.options.accessUrl,iat:i,exp:i+this.options.serviceRequestTimeout},a;try{a=this.jwtSignRS256(n);}catch{let p=new Error("Can't generate token. Check your auth options");return p.code=O.EOAUTH2,e(p)}t={grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:a},s={grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:n};}else {if(!this.options.refreshToken){let i=new Error("Can't create new access token for user");return i.code=O.EOAUTH2,e(i)}t={client_id:this.options.clientId||"",client_secret:this.options.clientSecret||"",refresh_token:this.options.refreshToken,grant_type:"refresh_token"},s={client_id:this.options.clientId||"",client_secret:(this.options.clientSecret||"").substr(0,6)+"...",refresh_token:(this.options.refreshToken||"").substr(0,6)+"...",grant_type:"refresh_token"};}Object.assign(t,this.options.customParams),Object.assign(s,this.options.customParams),this.logger.debug({tnx:"OAUTH2",user:this.options.user,action:"generate"},"Requesting token using: %s",JSON.stringify(s)),this.postRequest(this.options.accessUrl,t,this.options,(i,n)=>{let a;if(i)return e(i);try{a=JSON.parse(n.toString());}catch(c){return e(c)}if(!a||typeof a!="object"){this.logger.debug({tnx:"OAUTH2",user:this.options.user,action:"post"},"Response: %s",(n||"").toString());let c=new Error("Invalid authentication response");return c.code=O.EOAUTH2,e(c)}let r=Object.assign({},a);if(r.access_token&&(r.access_token=(r.access_token||"").toString().substr(0,6)+"..."),this.logger.debug({tnx:"OAUTH2",user:this.options.user,action:"post"},"Response: %s",JSON.stringify(r)),a.error){let c=a.error;a.error_description&&(c+=": "+a.error_description),a.error_uri&&(c+=" ("+a.error_uri+")");let l=new Error(c);return l.code=O.EOAUTH2,e(l)}if(a.access_token)return this.updateToken(a.access_token,a.expires_in),e(null,this.accessToken);let p=new Error("No access token");return p.code=O.EOAUTH2,e(p)});}buildXOAuth2Token(e){let t=["user="+(this.options.user||""),"auth=Bearer "+(e||this.accessToken),"",""];return Buffer.from(t.join(""),"utf-8").toString("base64")}postRequest(e,t,s,i){let n=false,a=[],r=0,p={method:"post",headers:s.customHeaders,body:t,allowErrorResponse:true};/^https:/i.test(e)&&(p.tls=Object.assign({rejectUnauthorized:true},s.tls||{}));let c=wn(e,p);c.on("readable",()=>{let l;for(;(l=c.read())!==null;)a.push(l),r+=l.length;}),c.once("error",l=>{if(!n)return n=true,i(l)}),c.once("end",()=>{if(!n)return n=true,i(null,Buffer.concat(a,r))});}toBase64URL(e){return typeof e=="string"&&(e=Buffer.from(e)),e.toString("base64").replace(/[=]+/g,"").replace(/\+/g,"-").replace(/\//g,"_")}jwtSignRS256(e){e=['{"alg":"RS256","typ":"JWT"}',JSON.stringify(e)].map(s=>this.toBase64URL(s)).join(".");let t=_n.createSign("RSA-SHA256").update(e).sign(this.options.privateKey);return e+"."+this.toBase64URL(t)}};ci.exports=Oe;});var mi=chunkBUNLC3II_cjs.c((ro,di)=>{chunkBUNLC3II_cjs.h();var yn=$(),En=y().assign,Sn=He(),li=E(),kn=chunkBUNLC3II_cjs.a("events"),Me=class extends kn{constructor(e){if(super(),this.pool=e,this.options=e.options,this.logger=this.pool.logger,this.options.auth)switch((this.options.auth.type||"").toString().toUpperCase()){case "OAUTH2":{let t=new Sn(this.options.auth,this.logger);t.provisionCallback=this.pool.mailer&&this.pool.mailer.get("oauth2_provision_cb")||t.provisionCallback,this.auth={type:"OAUTH2",user:this.options.auth.user,oauth2:t,method:"XOAUTH2"},t.on("token",s=>this.pool.mailer.emit("token",s)),t.on("error",s=>this.emit("error",s));break}default:if(!this.options.auth.user&&!this.options.auth.pass)break;this.auth={type:(this.options.auth.type||"").toString().toUpperCase()||"LOGIN",user:this.options.auth.user,credentials:{user:this.options.auth.user||"",pass:this.options.auth.pass,options:this.options.auth.options},method:(this.options.auth.method||"").trim().toUpperCase()||this.options.authMethod||false};}this._connection=false,this._connected=false,this.messages=0,this.available=true;}connect(e){this.pool.getSocket(this.options,(t,s)=>{if(t)return e(t);let i=false,n=this.options;s&&s.connection&&(this.logger.info({tnx:"proxy",remoteAddress:s.connection.remoteAddress,remotePort:s.connection.remotePort,destHost:n.host||"",destPort:n.port||"",action:"connected"},"Using proxied socket from %s:%s to %s:%s",s.connection.remoteAddress,s.connection.remotePort,n.host||"",n.port||""),n=Object.assign(En(false,n),s)),this.connection=new yn(n),this.connection.once("error",a=>{if(this.emit("error",a),!i)return i=true,e(a)}),this.connection.once("end",()=>{if(this.close(),i)return;i=true;let a=setTimeout(()=>{if(i)return;let r=new Error("Unexpected socket close");this.connection&&this.connection._socket&&this.connection._socket.upgrading&&(r.code=li.ETLS),e(r);},1e3);try{a.unref();}catch{}}),this.connection.connect(()=>{if(!i)if(this.auth&&(this.connection.allowsAuth||n.forceAuth))this.connection.login(this.auth,a=>{if(!i){if(i=true,a)return this.connection.close(),this.emit("error",a),e(a);this._connected=true,e(null,true);}});else return i=true,this._connected=true,e(null,true)});});}send(e,t){if(!this._connected)return this.connect(a=>a?t(a):this.send(e,t));let s=e.message.getEnvelope(),i=e.message.messageId(),n=[].concat(s.to||[]);n.length>3&&n.push("...and "+n.splice(2).length+" more"),this.logger.info({tnx:"send",messageId:i,cid:this.id},"Sending message %s using #%s to <%s>",i,this.id,n.join(", ")),e.data.dsn&&(s.dsn=e.data.dsn),e.data.requireTLSExtensionEnabled&&(s.requireTLSExtensionEnabled=e.data.requireTLSExtensionEnabled),this.connection.send(s,e.message.createReadStream(),(a,r)=>{if(this.messages++,a)return this.connection.close(),this.emit("error",a),t(a);r.envelope={from:s.from,to:s.to},r.messageId=i,setImmediate(()=>{if(this.messages>=this.options.maxMessages){let p=new Error("Resource exhausted");p.code=li.EMAXLIMIT,this.connection.close(),this.emit("error",p);}else this.pool._checkRateLimit(()=>{this.available=true,this.emit("available");});}),t(null,r);});}close(){this._connected=false,this.auth&&this.auth.oauth2&&this.auth.oauth2.removeAllListeners(),this.connection&&this.connection.close(),this.emit("close");}};di.exports=Me;});var hi=chunkBUNLC3II_cjs.c((co,An)=>{An.exports={"1und1":{description:"1&1 Mail (German hosting provider)",host:"smtp.1und1.de",port:465,secure:true,authMethod:"LOGIN"},"126":{description:"126 Mail (NetEase)",host:"smtp.126.com",port:465,secure:true},"163":{description:"163 Mail (NetEase)",host:"smtp.163.com",port:465,secure:true},Aliyun:{description:"Alibaba Cloud Mail",domains:["aliyun.com"],host:"smtp.aliyun.com",port:465,secure:true},AliyunQiye:{description:"Alibaba Cloud Enterprise Mail",host:"smtp.qiye.aliyun.com",port:465,secure:true},AOL:{description:"AOL Mail",domains:["aol.com"],host:"smtp.aol.com",port:587},Aruba:{description:"Aruba PEC (Italian email provider)",domains:["aruba.it","pec.aruba.it"],aliases:["Aruba PEC"],host:"smtps.aruba.it",port:465,secure:true,authMethod:"LOGIN"},Bluewin:{description:"Bluewin (Swiss email provider)",host:"smtpauths.bluewin.ch",domains:["bluewin.ch"],port:465},BOL:{description:"BOL Mail (Brazilian provider)",domains:["bol.com.br"],host:"smtp.bol.com.br",port:587,requireTLS:true},DebugMail:{description:"DebugMail (email testing service)",host:"debugmail.io",port:25},Disroot:{description:"Disroot (privacy-focused provider)",domains:["disroot.org"],host:"disroot.org",port:587,secure:false,authMethod:"LOGIN"},DynectEmail:{description:"Dyn Email Delivery",aliases:["Dynect"],host:"smtp.dynect.net",port:25},ElasticEmail:{description:"Elastic Email",aliases:["Elastic Email"],host:"smtp.elasticemail.com",port:465,secure:true},Ethereal:{description:"Ethereal Email (email testing service)",aliases:["ethereal.email"],host:"smtp.ethereal.email",port:587},FastMail:{description:"FastMail",domains:["fastmail.fm"],host:"smtp.fastmail.com",port:465,secure:true},"Feishu Mail":{description:"Feishu Mail (Lark)",aliases:["Feishu","FeishuMail"],domains:["www.feishu.cn"],host:"smtp.feishu.cn",port:465,secure:true},"Forward Email":{description:"Forward Email (email forwarding service)",aliases:["FE","ForwardEmail"],domains:["forwardemail.net"],host:"smtp.forwardemail.net",port:465,secure:true},GandiMail:{description:"Gandi Mail",aliases:["Gandi","Gandi Mail"],host:"mail.gandi.net",port:587},Gmail:{description:"Gmail",aliases:["Google Mail"],domains:["gmail.com","googlemail.com"],host:"smtp.gmail.com",port:465,secure:true},GmailWorkspace:{description:"Gmail Workspace",aliases:["Google Workspace Mail"],host:"smtp-relay.gmail.com",port:465,secure:true},GMX:{description:"GMX Mail",domains:["gmx.com","gmx.net","gmx.de"],host:"mail.gmx.com",port:587},Godaddy:{description:"GoDaddy Email (US)",host:"smtpout.secureserver.net",port:25},GodaddyAsia:{description:"GoDaddy Email (Asia)",host:"smtp.asia.secureserver.net",port:25},GodaddyEurope:{description:"GoDaddy Email (Europe)",host:"smtp.europe.secureserver.net",port:25},"hot.ee":{description:"Hot.ee (Estonian email provider)",host:"mail.hot.ee"},Hotmail:{description:"Outlook.com / Hotmail",aliases:["Outlook","Outlook.com","Hotmail.com"],domains:["hotmail.com","outlook.com"],host:"smtp-mail.outlook.com",port:587},iCloud:{description:"iCloud Mail",aliases:["Me","Mac"],domains:["me.com","mac.com"],host:"smtp.mail.me.com",port:587},Infomaniak:{description:"Infomaniak Mail (Swiss hosting provider)",host:"mail.infomaniak.com",domains:["ik.me","ikmail.com","etik.com"],port:587},KolabNow:{description:"KolabNow (secure email service)",domains:["kolabnow.com"],aliases:["Kolab"],host:"smtp.kolabnow.com",port:465,secure:true,authMethod:"LOGIN"},Loopia:{description:"Loopia (Swedish hosting provider)",host:"mailcluster.loopia.se",port:465},Loops:{description:"Loops",host:"smtp.loops.so",port:587},"mail.ee":{description:"Mail.ee (Estonian email provider)",host:"smtp.mail.ee"},"Mail.ru":{description:"Mail.ru",host:"smtp.mail.ru",port:465,secure:true},"Mailcatch.app":{description:"Mailcatch (email testing service)",host:"sandbox-smtp.mailcatch.app",port:2525},Maildev:{description:"MailDev (local email testing)",port:1025,ignoreTLS:true},MailerSend:{description:"MailerSend",host:"smtp.mailersend.net",port:587},Mailgun:{description:"Mailgun",host:"smtp.mailgun.org",port:465,secure:true},Mailjet:{description:"Mailjet",host:"in.mailjet.com",port:587},Mailosaur:{description:"Mailosaur (email testing service)",host:"mailosaur.io",port:25},Mailtrap:{description:"Mailtrap",host:"live.smtp.mailtrap.io",port:587},Mandrill:{description:"Mandrill (by Mailchimp)",host:"smtp.mandrillapp.com",port:587},Naver:{description:"Naver Mail (Korean email provider)",host:"smtp.naver.com",port:587},OhMySMTP:{description:"OhMySMTP (email delivery service)",host:"smtp.ohmysmtp.com",port:587,secure:false},One:{description:"One.com Email",host:"send.one.com",port:465,secure:true},OpenMailBox:{description:"OpenMailBox",aliases:["OMB","openmailbox.org"],host:"smtp.openmailbox.org",port:465,secure:true},Outlook365:{description:"Microsoft 365 / Office 365",host:"smtp.office365.com",port:587,secure:false},Postmark:{description:"Postmark",aliases:["PostmarkApp"],host:"smtp.postmarkapp.com",port:2525},Proton:{description:"Proton Mail",aliases:["ProtonMail","Proton.me","Protonmail.com","Protonmail.ch"],domains:["proton.me","protonmail.com","pm.me","protonmail.ch"],host:"smtp.protonmail.ch",port:587,requireTLS:true},"qiye.aliyun":{description:"Alibaba Mail Enterprise Edition",host:"smtp.mxhichina.com",port:"465",secure:true},QQ:{description:"QQ Mail",domains:["qq.com"],host:"smtp.qq.com",port:465,secure:true},QQex:{description:"QQ Enterprise Mail",aliases:["QQ Enterprise"],domains:["exmail.qq.com"],host:"smtp.exmail.qq.com",port:465,secure:true},Resend:{description:"Resend",host:"smtp.resend.com",port:465,secure:true},Runbox:{description:"Runbox (Norwegian email provider)",domains:["runbox.com"],host:"smtp.runbox.com",port:465,secure:true},SendCloud:{description:"SendCloud (Chinese email delivery)",host:"smtp.sendcloud.net",port:2525},SendGrid:{description:"SendGrid",host:"smtp.sendgrid.net",port:587},SendinBlue:{description:"Brevo (formerly Sendinblue)",aliases:["Brevo"],host:"smtp-relay.brevo.com",port:587},SendPulse:{description:"SendPulse",host:"smtp-pulse.com",port:465,secure:true},SES:{description:"AWS SES US East (N. Virginia)",host:"email-smtp.us-east-1.amazonaws.com",port:465,secure:true},"SES-AP-NORTHEAST-1":{description:"AWS SES Asia Pacific (Tokyo)",host:"email-smtp.ap-northeast-1.amazonaws.com",port:465,secure:true},"SES-AP-NORTHEAST-2":{description:"AWS SES Asia Pacific (Seoul)",host:"email-smtp.ap-northeast-2.amazonaws.com",port:465,secure:true},"SES-AP-NORTHEAST-3":{description:"AWS SES Asia Pacific (Osaka)",host:"email-smtp.ap-northeast-3.amazonaws.com",port:465,secure:true},"SES-AP-SOUTH-1":{description:"AWS SES Asia Pacific (Mumbai)",host:"email-smtp.ap-south-1.amazonaws.com",port:465,secure:true},"SES-AP-SOUTHEAST-1":{description:"AWS SES Asia Pacific (Singapore)",host:"email-smtp.ap-southeast-1.amazonaws.com",port:465,secure:true},"SES-AP-SOUTHEAST-2":{description:"AWS SES Asia Pacific (Sydney)",host:"email-smtp.ap-southeast-2.amazonaws.com",port:465,secure:true},"SES-CA-CENTRAL-1":{description:"AWS SES Canada (Central)",host:"email-smtp.ca-central-1.amazonaws.com",port:465,secure:true},"SES-EU-CENTRAL-1":{description:"AWS SES Europe (Frankfurt)",host:"email-smtp.eu-central-1.amazonaws.com",port:465,secure:true},"SES-EU-NORTH-1":{description:"AWS SES Europe (Stockholm)",host:"email-smtp.eu-north-1.amazonaws.com",port:465,secure:true},"SES-EU-WEST-1":{description:"AWS SES Europe (Ireland)",host:"email-smtp.eu-west-1.amazonaws.com",port:465,secure:true},"SES-EU-WEST-2":{description:"AWS SES Europe (London)",host:"email-smtp.eu-west-2.amazonaws.com",port:465,secure:true},"SES-EU-WEST-3":{description:"AWS SES Europe (Paris)",host:"email-smtp.eu-west-3.amazonaws.com",port:465,secure:true},"SES-SA-EAST-1":{description:"AWS SES South America (S\xE3o Paulo)",host:"email-smtp.sa-east-1.amazonaws.com",port:465,secure:true},"SES-US-EAST-1":{description:"AWS SES US East (N. Virginia)",host:"email-smtp.us-east-1.amazonaws.com",port:465,secure:true},"SES-US-EAST-2":{description:"AWS SES US East (Ohio)",host:"email-smtp.us-east-2.amazonaws.com",port:465,secure:true},"SES-US-GOV-EAST-1":{description:"AWS SES GovCloud (US-East)",host:"email-smtp.us-gov-east-1.amazonaws.com",port:465,secure:true},"SES-US-GOV-WEST-1":{description:"AWS SES GovCloud (US-West)",host:"email-smtp.us-gov-west-1.amazonaws.com",port:465,secure:true},"SES-US-WEST-1":{description:"AWS SES US West (N. California)",host:"email-smtp.us-west-1.amazonaws.com",port:465,secure:true},"SES-US-WEST-2":{description:"AWS SES US West (Oregon)",host:"email-smtp.us-west-2.amazonaws.com",port:465,secure:true},Seznam:{description:"Seznam Email (Czech email provider)",aliases:["Seznam Email"],domains:["seznam.cz","email.cz","post.cz","spoluzaci.cz"],host:"smtp.seznam.cz",port:465,secure:true},SMTP2GO:{description:"SMTP2GO",host:"mail.smtp2go.com",port:2525},Sparkpost:{description:"SparkPost",aliases:["SparkPost","SparkPost Mail"],domains:["sparkpost.com"],host:"smtp.sparkpostmail.com",port:587,secure:false},Tipimail:{description:"Tipimail (email delivery service)",host:"smtp.tipimail.com",port:587},Tutanota:{description:"Tutanota (Tuta Mail)",domains:["tutanota.com","tuta.com","tutanota.de","tuta.io"],host:"smtp.tutanota.com",port:465,secure:true},Yahoo:{description:"Yahoo Mail",domains:["yahoo.com"],host:"smtp.mail.yahoo.com",port:465,secure:true},Yandex:{description:"Yandex Mail",domains:["yandex.ru"],host:"smtp.yandex.ru",port:465,secure:true},Zimbra:{description:"Zimbra Mail Server",aliases:["Zimbra Collaboration"],host:"smtp.zimbra.com",port:587,requireTLS:true},Zoho:{description:"Zoho Mail",host:"smtp.zoho.com",port:465,secure:true,authMethod:"LOGIN"}};});var Ne=chunkBUNLC3II_cjs.c((lo,fi)=>{chunkBUNLC3II_cjs.h();var ui=hi(),V={};Object.keys(ui).forEach(o=>{let e=ui[o],t=Tn(e);V[X(o)]=t,[].concat(e.aliases||[]).forEach(s=>{V[X(s)]=t;}),[].concat(e.domains||[]).forEach(s=>{V[X(s)]=t;});});function X(o){return o.replace(/[^a-zA-Z0-9.-]/g,"").toLowerCase()}function Tn(o){let e={};return Object.keys(o).forEach(t=>{["domains","aliases"].includes(t)||(e[t]=o[t]);}),e}fi.exports=function(o){return o=X(o.split("@").pop()),V[o]||false};});var _i=chunkBUNLC3II_cjs.c((ho,wi)=>{chunkBUNLC3II_cjs.h();var Cn=chunkBUNLC3II_cjs.a("events"),xi=mi(),jn=$(),In=Ne(),F=y(),gi=E(),vi=k(),ze=class extends Cn{constructor(e){super(),e=e||{},typeof e=="string"&&(e={url:e});let t,s=e.service;typeof e.getSocket=="function"&&(this.getSocket=e.getSocket),e.url&&(t=F.parseConnectionUrl(e.url),s=s||t.service),this.options=F.assign(false,e,t,s&&In(s)),this.options.maxConnections=this.options.maxConnections||5,this.options.maxMessages=this.options.maxMessages||100,this.logger=F.getLogger(this.options,{component:this.options.component||"smtp-pool"}),this.name="SMTP (pool)",this.version=vi.version+"[client:"+vi.version+"]",this._rateLimit={counter:0,timeout:null,waiting:[],checkpoint:false,delta:Number(this.options.rateDelta)||1e3,limit:Number(this.options.rateLimit)||0},this._closed=false,this._queue=[],this._connections=[],this._connectionCounter=0,this.idling=true,setImmediate(()=>{this.idling&&this.emit("idle");});}getSocket(e,t){return setImmediate(()=>t(null,false))}send(e,t){return this._closed?false:(this._queue.push({mail:e,requeueAttempts:0,callback:t}),this.idling&&this._queue.length>=this.options.maxConnections&&(this.idling=false),setImmediate(()=>this._processMessages()),true)}close(){let e,t=this._connections.length;if(this._closed=true,clearTimeout(this._rateLimit.timeout),!t&&!this._queue.length)return;for(let i=t-1;i>=0;i--)this._connections[i]&&this._connections[i].available&&(e=this._connections[i],e.close(),this.logger.info({tnx:"connection",cid:e.id,action:"removed"},"Connection #%s removed",e.id));if(t&&!this._connections.length&&this.logger.debug({tnx:"connection"},"All connections removed"),!this._queue.length)return;let s=()=>{if(!this._queue.length){this.logger.debug({tnx:"connection"},"Pending queue entries cleared");return}let i=this._queue.shift();if(i&&typeof i.callback=="function")try{i.callback(new Error("Connection pool was closed"));}catch(n){this.logger.error({err:n,tnx:"callback",cid:e.id},"Callback error for #%s: %s",e.id,n.message);}setImmediate(s);};setImmediate(s);}_processMessages(){if(this._closed)return;if(!this._queue.length){this.idling||(this.idling=true,this.emit("idle"));return}let e=this._connections.find(s=>s.available);if(!e&&this._connections.length<this.options.maxConnections&&(e=this._createConnection()),!e){this.idling=false;return}!this.idling&&this._queue.length<this.options.maxConnections&&(this.idling=true,this.emit("idle"));let t=e.queueEntry=this._queue.shift();t.messageId=(e.queueEntry.mail.message.getHeader("message-id")||"").replace(/[<>\s]/g,""),e.available=false,this.logger.debug({tnx:"pool",cid:e.id,messageId:t.messageId,action:"assign"},"Assigned message <%s> to #%s (%s)",t.messageId,e.id,e.messages+1),this._rateLimit.limit&&(this._rateLimit.counter++,this._rateLimit.checkpoint||(this._rateLimit.checkpoint=Date.now())),e.send(t.mail,(s,i)=>{if(t===e.queueEntry){try{t.callback(s,i);}catch(n){this.logger.error({err:n,tnx:"callback",cid:e.id},"Callback error for #%s: %s",e.id,n.message);}e.queueEntry=false;}});}_createConnection(){let e=new xi(this);return e.id=++this._connectionCounter,this.logger.info({tnx:"pool",cid:e.id,action:"conection"},"Created new pool resource #%s",e.id),e.on("available",()=>{this.logger.debug({tnx:"connection",cid:e.id,action:"available"},"Connection #%s became available",e.id),this._closed?this.close():this._processMessages();}),e.once("error",t=>{if(t.code!==gi.EMAXLIMIT?this.logger.warn({err:t,tnx:"pool",cid:e.id},"Pool Error for #%s: %s",e.id,t.message):this.logger.debug({tnx:"pool",cid:e.id,action:"maxlimit"},"Max messages limit exchausted for #%s",e.id),e.queueEntry){try{e.queueEntry.callback(t);}catch(s){this.logger.error({err:s,tnx:"callback",cid:e.id},"Callback error for #%s: %s",e.id,s.message);}e.queueEntry=false;}this._removeConnection(e),this._continueProcessing();}),e.once("close",()=>{this.logger.info({tnx:"connection",cid:e.id,action:"closed"},"Connection #%s was closed",e.id),this._removeConnection(e),e.queueEntry?setTimeout(()=>{e.queueEntry&&(this._shouldRequeuOnConnectionClose(e.queueEntry)?this._requeueEntryOnConnectionClose(e):this._failDeliveryOnConnectionClose(e)),this._continueProcessing();},50):(!this._closed&&this.idling&&!this._connections.length&&this.emit("clear"),this._continueProcessing());}),this._connections.push(e),e}_shouldRequeuOnConnectionClose(e){return this.options.maxRequeues===void 0||this.options.maxRequeues<0?true:e.requeueAttempts<this.options.maxRequeues}_failDeliveryOnConnectionClose(e){if(e.queueEntry&&e.queueEntry.callback){try{e.queueEntry.callback(new Error("Reached maximum number of retries after connection was closed"));}catch(t){this.logger.error({err:t,tnx:"callback",messageId:e.queueEntry.messageId,cid:e.id},"Callback error for #%s: %s",e.id,t.message);}e.queueEntry=false;}}_requeueEntryOnConnectionClose(e){e.queueEntry.requeueAttempts+=1,this.logger.debug({tnx:"pool",cid:e.id,messageId:e.queueEntry.messageId,action:"requeue"},"Re-queued message <%s> for #%s. Attempt: #%s",e.queueEntry.messageId,e.id,e.queueEntry.requeueAttempts),this._queue.unshift(e.queueEntry),e.queueEntry=false;}_continueProcessing(){this._closed?this.close():setTimeout(()=>this._processMessages(),100);}_removeConnection(e){let t=this._connections.indexOf(e);t!==-1&&this._connections.splice(t,1);}_checkRateLimit(e){if(!this._rateLimit.limit)return e();let t=Date.now();if(this._rateLimit.counter<this._rateLimit.limit)return e();if(this._rateLimit.waiting.push(e),this._rateLimit.checkpoint<=t-this._rateLimit.delta)return this._clearRateLimit();this._rateLimit.timeout||(this._rateLimit.timeout=setTimeout(()=>this._clearRateLimit(),this._rateLimit.delta-(t-this._rateLimit.checkpoint)),this._rateLimit.checkpoint=t);}_clearRateLimit(){for(clearTimeout(this._rateLimit.timeout),this._rateLimit.timeout=null,this._rateLimit.counter=0,this._rateLimit.checkpoint=false;this._rateLimit.waiting.length;){let e=this._rateLimit.waiting.shift();setImmediate(e);}}isIdle(){return this.idling}verify(e){let t;e||(t=new Promise((i,n)=>{e=F.callbackPromise(i,n);}));let s=new xi(this).auth;return this.getSocket(this.options,(i,n)=>{if(i)return e(i);let a=this.options;n&&n.connection&&(this.logger.info({tnx:"proxy",remoteAddress:n.connection.remoteAddress,remotePort:n.connection.remotePort,destHost:a.host||"",destPort:a.port||"",action:"connected"},"Using proxied socket from %s:%s to %s:%s",n.connection.remoteAddress,n.connection.remotePort,a.host||"",a.port||""),a=Object.assign(F.assign(false,a),n));let r=new jn(a),p=false;r.once("error",l=>{if(!p)return p=true,r.close(),e(l)}),r.once("end",()=>{if(!p)return p=true,e(new Error("Connection closed"))});let c=()=>{if(!p)return p=true,r.quit(),e(null,true)};r.connect(()=>{if(!p)if(s&&(r.allowsAuth||a.forceAuth))r.login(s,l=>{if(!p){if(l)return p=true,r.close(),e(l);c();}});else if(!s&&r.allowsAuth&&a.forceAuth){let l=new Error("Authentication info was not provided");return l.code=gi.ENOAUTH,p=true,r.close(),e(l)}else c();});}),t}};wi.exports=ze;});var ki=chunkBUNLC3II_cjs.c((fo,Si)=>{chunkBUNLC3II_cjs.h();var qn=chunkBUNLC3II_cjs.a("events"),bi=$(),Ln=Ne(),M=y(),On=He(),yi=E(),Ei=k(),Ue=class extends qn{constructor(e){super(),e=e||{},typeof e=="string"&&(e={url:e});let t,s=e.service;typeof e.getSocket=="function"&&(this.getSocket=e.getSocket),e.url&&(t=M.parseConnectionUrl(e.url),s=s||t.service),this.options=M.assign(false,e,t,s&&Ln(s)),this.logger=M.getLogger(this.options,{component:this.options.component||"smtp-transport"}),this.name="SMTP",this.version=Ei.version+"[client:"+Ei.version+"]",this.options.auth&&(this.auth=this.getAuth({}));}getSocket(e,t){return setImmediate(()=>t(null,false))}getAuth(e){if(!e)return this.auth&&this.auth.oauth2&&this.mailer&&(this.auth.oauth2.provisionCallback=this.mailer.get("oauth2_provision_cb")||this.auth.oauth2.provisionCallback),this.auth;let t=Object.assign({},this.options.auth&&typeof this.options.auth=="object"?this.options.auth:{},typeof e=="object"?e:{});if(Object.keys(t).length===0)return false;switch((t.type||"").toString().toUpperCase()){case "OAUTH2":{if(!t.service&&!t.user)return false;let s=new On(t,this.logger);return s.provisionCallback=this.mailer&&this.mailer.get("oauth2_provision_cb")||s.provisionCallback,s.on("token",i=>this.mailer.emit("token",i)),s.on("error",i=>this.emit("error",i)),{type:"OAUTH2",user:t.user,oauth2:s,method:"XOAUTH2"}}default:return {type:(t.type||"").toString().toUpperCase()||"LOGIN",user:t.user,credentials:{user:t.user||"",pass:t.pass,options:t.options},method:(t.method||"").trim().toUpperCase()||this.options.authMethod||false}}}send(e,t){this.getSocket(this.options,(s,i)=>{if(s)return t(s);let n=false,a=this.options;i&&i.connection&&(this.logger.info({tnx:"proxy",remoteAddress:i.connection.remoteAddress,remotePort:i.connection.remotePort,destHost:a.host||"",destPort:a.port||"",action:"connected"},"Using proxied socket from %s:%s to %s:%s",i.connection.remoteAddress,i.connection.remotePort,a.host||"",a.port||""),a=Object.assign(M.assign(false,a),i));let r=new bi(a),p,c=()=>{p&&p!==this.auth&&p.oauth2&&p.oauth2.removeAllListeners(),p=null;};r.once("error",m=>{if(!n)return n=true,c(),r.close(),t(m)}),r.once("end",()=>{if(n)return;let m=setTimeout(()=>{if(n)return;n=true,c();let d=new Error("Unexpected socket close");r&&r._socket&&r._socket.upgrading&&(d.code=yi.ETLS),t(d);},1e3);try{m.unref();}catch{}});let l=()=>{let m=e.message.getEnvelope(),d=e.message.messageId(),h=[].concat(m.to||[]);h.length>3&&h.push("...and "+h.splice(2).length+" more"),e.data.dsn&&(m.dsn=e.data.dsn),e.data.requireTLSExtensionEnabled&&(m.requireTLSExtensionEnabled=e.data.requireTLSExtensionEnabled),this.logger.info({tnx:"send",messageId:d},"Sending message %s to <%s>",d,h.join(", ")),r.send(m,e.message.createReadStream(),(f,g)=>{if(n=true,c(),r.close(),f)return this.logger.error({err:f,tnx:"send"},"Send error for %s: %s",d,f.message),t(f);g.envelope={from:m.from,to:m.to},g.messageId=d;try{return t(null,g)}catch(b){this.logger.error({err:b,tnx:"callback"},"Callback error for %s: %s",d,b.message);}});};r.connect(()=>{n||(p=this.getAuth(e.data.auth),p&&(r.allowsAuth||a.forceAuth)?r.login(p,m=>{if(c(),!n){if(m)return n=true,r.close(),t(m);l();}}):l());});});}verify(e){let t;return e||(t=new Promise((s,i)=>{e=M.callbackPromise(s,i);})),this.getSocket(this.options,(s,i)=>{if(s)return e(s);let n=this.options;i&&i.connection&&(this.logger.info({tnx:"proxy",remoteAddress:i.connection.remoteAddress,remotePort:i.connection.remotePort,destHost:n.host||"",destPort:n.port||"",action:"connected"},"Using proxied socket from %s:%s to %s:%s",i.connection.remoteAddress,i.connection.remotePort,n.host||"",n.port||""),n=Object.assign(M.assign(false,n),i));let a=new bi(n),r=false,p,c=()=>{p&&p!==this.auth&&p.oauth2&&p.oauth2.removeAllListeners(),p=null;};a.once("error",m=>{if(!r)return r=true,c(),a.close(),e(m)}),a.once("end",()=>{if(!r)return r=true,c(),e(new Error("Connection closed"))});let l=()=>{if(!r)return r=true,c(),a.quit(),e(null,true)};a.connect(()=>{if(!r)if(p=this.getAuth({}),p&&(a.allowsAuth||n.forceAuth))a.login(p,m=>{if(c(),!r){if(m)return r=true,a.close(),e(m);l();}});else if(!p&&a.allowsAuth&&n.forceAuth){let m=new Error("Authentication info was not provided");return m.code=yi.ENOAUTH,r=true,c(),a.close(),e(m)}else l();});}),t}close(){this.auth&&this.auth.oauth2&&this.auth.oauth2.removeAllListeners(),this.emit("close");}};Si.exports=Ue;});var Ti=chunkBUNLC3II_cjs.c((go,Ai)=>{chunkBUNLC3II_cjs.h();var{spawn:Hn}=chunkBUNLC3II_cjs.a("child_process"),Mn=k(),Nn=y(),Pe=E(),zn=R(),Un=K(),Re=class{constructor(e){e=e||{},this._spawn=Hn,this.options=e,this.name="Sendmail",this.version=Mn.version,this.path="sendmail",this.args=false,this.logger=Nn.getLogger(this.options,{component:this.options.component||"sendmail"}),typeof e=="string"?this.path=e:typeof e=="object"&&(e.path&&(this.path=e.path),Array.isArray(e.args)&&(this.args=e.args)),this.winbreak=["win","windows","dos",`\r
|
|
47
|
+
`].includes((e.newline||"").toString().toLowerCase());}send(e,t){e.message.keepBcc=true;let s=e.data.envelope||e.message.getEnvelope(),i=e.message.messageId(),n;if([].concat(s.from||[]).concat(s.to||[]).some(l=>/^-/.test(l))){let l=new Error("Can not send mail. Invalid envelope addresses.");return l.code=Pe.ESENDMAIL,t(l)}let r=this.args?["-i"].concat(this.args).concat(s.to):["-i"].concat(s.from?["-f",s.from]:[]).concat(s.to),p=l=>{if(!n&&(n=true,typeof t=="function"))return l?t(l):t(null,{envelope:s,messageId:i,response:"Messages queued for delivery"})},c;try{c=this._spawn(this.path,r);}catch(l){return this.logger.error({err:l,tnx:"spawn",messageId:i},"Error occurred while spawning sendmail. %s",l.message),p(l)}if(c){c.on("error",h=>{this.logger.error({err:h,tnx:"spawn",messageId:i},"Error occurred when sending message %s. %s",i,h.message),p(h);}),c.once("exit",h=>{if(!h)return p();let f=new Error(h===127?"Sendmail command not found, process exited with code "+h:"Sendmail exited with code "+h);f.code=Pe.ESENDMAIL,this.logger.error({err:f,tnx:"stdin",messageId:i},"Error sending message %s to sendmail. %s",i,f.message),p(f);}),c.once("close",p),c.stdin.on("error",h=>{this.logger.error({err:h,tnx:"stdin",messageId:i},"Error occurred when piping message %s to sendmail. %s",i,h.message),p(h);});let l=[].concat(s.to||[]);l.length>3&&l.push("...and "+l.splice(2).length+" more"),this.logger.info({tnx:"send",messageId:i},"Sending message %s to <%s>",i,l.join(", "));let m=e.message.createReadStream(),d=m;this.options.newline&&(d=m.pipe(this.winbreak?new zn:new Un),m.once("error",h=>d.emit("error",h))),d.once("error",h=>{this.logger.error({err:h,tnx:"stdin",messageId:i},"Error occurred when generating message %s. %s",i,h.message),c.kill("SIGINT"),p(h);}),d.pipe(c.stdin);}else {let l=new Error("sendmail was not found");return l.code=Pe.ESENDMAIL,p(l)}}};Ai.exports=Re;});var ji=chunkBUNLC3II_cjs.c((wo,Ci)=>{chunkBUNLC3II_cjs.h();var Pn=k(),Rn=y(),Bn=R(),Dn=K(),Be=class{constructor(e){e=e||{},this.options=e,this.name="StreamTransport",this.version=Pn.version,this.logger=Rn.getLogger(this.options,{component:this.options.component||"stream-transport"}),this.winbreak=["win","windows","dos",`\r
|
|
48
|
+
`].includes((e.newline||"").toString().toLowerCase());}send(e,t){e.message.keepBcc=true;let s=e.data.envelope||e.message.getEnvelope(),i=e.message.messageId(),n=[].concat(s.to||[]);n.length>3&&n.push("...and "+n.splice(2).length+" more"),this.logger.info({tnx:"send",messageId:i},"Sending message %s to <%s> using %s line breaks",i,n.join(", "),this.winbreak?"<CR><LF>":"<LF>"),setImmediate(()=>{let a;try{if(a=e.message.createReadStream(),this.options.newline){let c=a;a=c.pipe(this.winbreak?new Bn:new Dn),c.once("error",l=>a.emit("error",l));}}catch(c){return this.logger.error({err:c,tnx:"send",messageId:i},"Creating send stream failed for %s. %s",i,c.message),t(c)}if(!this.options.buffer)return a.once("error",c=>{this.logger.error({err:c,tnx:"send",messageId:i},"Failed creating message for %s. %s",i,c.message);}),t(null,{envelope:s,messageId:i,message:a});let r=[],p=0;a.on("readable",()=>{let c;for(;(c=a.read())!==null;)r.push(c),p+=c.length;}),a.once("error",c=>(this.logger.error({err:c,tnx:"send",messageId:i},"Failed creating message for %s. %s",i,c.message),t(c))),a.on("end",()=>t(null,{envelope:s,messageId:i,message:Buffer.concat(r,p)}));});}};Ci.exports=Be;});var qi=chunkBUNLC3II_cjs.c((bo,Ii)=>{chunkBUNLC3II_cjs.h();var Fn=k(),Gn=y(),De=class{constructor(e){e=e||{},this.options=e,this.name="JSONTransport",this.version=Fn.version,this.logger=Gn.getLogger(this.options,{component:this.options.component||"json-transport"});}send(e,t){e.message.keepBcc=true;let s=e.data.envelope||e.message.getEnvelope(),i=e.message.messageId(),n=[].concat(s.to||[]);n.length>3&&n.push("...and "+n.splice(2).length+" more"),this.logger.info({tnx:"send",messageId:i},"Composing JSON structure of %s to <%s>",i,n.join(", ")),setImmediate(()=>{e.normalize((a,r)=>a?(this.logger.error({err:a,tnx:"send",messageId:i},"Failed building JSON structure for %s. %s",i,a.message),t(a)):(delete r.envelope,delete r.normalizedHeaders,t(null,{envelope:s,messageId:i,message:this.options.skipEncoding?r:JSON.stringify(r)})));});}};Ii.exports=De;});var Mi=chunkBUNLC3II_cjs.c((Eo,Hi)=>{chunkBUNLC3II_cjs.h();var Qn=chunkBUNLC3II_cjs.a("events"),Kn=k(),Li=y(),Wn=E(),$n=R(),Vn=W();function Oi(o){return o&&typeof o=="object"&&!o.code&&(o.code=Wn.ESES),o}var Fe=class extends Qn{constructor(e){super(),e=e||{},this.options=e,this.ses=this.options.SES,this.name="SESTransport",this.version=Kn.version,this.logger=Li.getLogger(this.options,{component:this.options.component||"ses-transport"});}getRegion(e){return this.ses.sesClient.config&&typeof this.ses.sesClient.config.region=="function"?this.ses.sesClient.config.region().then(t=>e(null,t)).catch(t=>e(t)):e(null,false)}send(e,t){let s=e.message._headers.find(p=>/^from$/i.test(p.key));if(s){let p=new Vn("text/plain");s=p._convertAddresses(p._parseAddresses(s.value));}let i=e.data.envelope||e.message.getEnvelope(),n=e.message.messageId(),a=[].concat(i.to||[]);a.length>3&&a.push("...and "+a.splice(2).length+" more"),this.logger.info({tnx:"send",messageId:n},"Sending message %s to <%s>",n,a.join(", "));let r=p=>{e.data._dkim||(e.data._dkim={}),e.data._dkim.skipFields&&typeof e.data._dkim.skipFields=="string"?e.data._dkim.skipFields+=":date:message-id":e.data._dkim.skipFields="date:message-id";let c=e.message.createReadStream(),l=c.pipe(new $n),m=[],d=0;l.on("readable",()=>{let h;for(;(h=l.read())!==null;)m.push(h),d+=h.length;}),c.once("error",h=>l.emit("error",h)),l.once("error",h=>p(h)),l.once("end",()=>p(null,Buffer.concat(m,d)));};setImmediate(()=>r((p,c)=>{if(p)return this.logger.error({err:p,tnx:"send",messageId:n},"Failed creating message for %s. %s",n,p.message),t(p);let l=Object.assign({Content:{Raw:{Data:c}},FromEmailAddress:s||i.from,Destination:{ToAddresses:i.to}},e.data.ses||{});this.getRegion((m,d)=>{(m||!d)&&(d="us-east-1");let h=new this.ses.SendEmailCommand(l);this.ses.sesClient.send(h).then(g=>{d==="us-east-1"&&(d="email"),t(null,{envelope:{from:i.from,to:i.to},messageId:"<"+g.MessageId+(/@/.test(g.MessageId)?"":"@"+d+".amazonses.com")+">",response:g.MessageId,raw:c});}).catch(g=>{Oi(g),this.logger.error({err:g,tnx:"send"},"Send error for %s: %s",n,g.message),t(g);});});}));}verify(e){let t;e||(t=new Promise((n,a)=>{e=Li.callbackPromise(n,a);}));let s=n=>n&&!["InvalidParameterValue","MessageRejected"].includes(n.code||n.Code||n.name)?e(Oi(n)):e(null,true),i={Content:{Raw:{Data:Buffer.from(`From: <invalid@invalid>\r
|
|
49
|
+
To: <invalid@invalid>\r
|
|
50
|
+
Subject: Invalid\r
|
|
51
|
+
\r
|
|
52
|
+
Invalid`)}},FromEmailAddress:"invalid@invalid",Destination:{ToAddresses:["invalid@invalid"]}};return this.getRegion(()=>{let n=new this.ses.SendEmailCommand(i);this.ses.sesClient.send(n).then(()=>s(null)).catch(r=>s(r));}),t}};Hi.exports=Fe;});var pa=chunkBUNLC3II_cjs.c((ko,J)=>{chunkBUNLC3II_cjs.h();var Xn=Zt(),Ui=y(),Jn=_i(),Yn=ki(),Zn=Ti(),ea=ji(),ta=qi(),ia=Mi(),sa=E(),na=N(),Ni=k(),aa=(process.env.ETHEREAL_API||"https://api.nodemailer.com").replace(/\/+$/,""),oa=(process.env.ETHEREAL_WEB||"https://ethereal.email").replace(/\/+$/,""),zi=(process.env.ETHEREAL_API_KEY||"").replace(/\s*/g,"")||null,ra=["true","yes","y","1"].includes((process.env.ETHEREAL_CACHE||"yes").toString().trim().toLowerCase()),G=false;J.exports.createTransport=function(o,e){let t;if(typeof o=="object"&&typeof o.send!="function"||typeof o=="string"&&/^(smtps?|direct):/i.test(o)){let s=typeof o=="string"?o:o.url;if(s?t=Ui.parseConnectionUrl(s):t=o,t.pool)o=new Jn(t);else if(t.sendmail)o=new Zn(t);else if(t.streamTransport)o=new ea(t);else if(t.jsonTransport)o=new ta(t);else if(t.SES){if(t.SES.ses&&t.SES.aws){let i=new Error("Using legacy SES configuration, expecting @aws-sdk/client-sesv2, see https://nodemailer.com/transports/ses/");throw i.code=sa.ECONFIG,i}o=new ia(t);}else o=new Yn(t);}return new Xn(o,t,e)};J.exports.createTestAccount=function(o,e){let t;if(!e&&typeof o=="function"&&(e=o,o=false),e||(t=new Promise((c,l)=>{e=Ui.callbackPromise(c,l);})),ra&&G)return setImmediate(()=>e(null,G)),t;o=o||aa;let s=[],i=0,n={},a={requestor:Ni.name,version:Ni.version};zi&&(n.Authorization="Bearer "+zi);let r={contentType:"application/json",method:"POST",headers:n,body:Buffer.from(JSON.stringify(a))};/^https:/i.test(o)&&(r.tls={rejectUnauthorized:true});let p=na(o+"/user",r);return p.on("readable",()=>{let c;for(;(c=p.read())!==null;)s.push(c),i+=c.length;}),p.once("error",c=>e(c)),p.once("end",()=>{let c=Buffer.concat(s,i),l;try{l=JSON.parse(c.toString());}catch(m){return e(m)}if(l.status!=="success"||l.error)return e(new Error(l.error||"Request failed"));delete l.status,G=l,e(null,G);}),t};J.exports.getTestMessageUrl=function(o){if(!o||!o.response)return false;let e=new Map,t=o.response.toString();if(t.length>2&&t.charAt(t.length-1)==="]"){let s=t.indexOf("[",t.lastIndexOf("]",t.length-2)+1);s>=0&&s<t.length-2&&t.substring(s+1,t.length-1).replace(/\b([A-Z0-9]+)=([^\s]+)/g,(n,a,r)=>{e.set(a,r);});}return e.has("STATUS")&&e.has("MSGID")?(G.web||oa)+"/message/"+e.get("MSGID"):false};});var nodemailerIDML4L6W = pa();
|
|
53
|
+
module.exports=nodemailerIDML4L6W;
|