1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,668784,(e,t,r)=>{"use strict";function s(e,t=""){if(!e)throw Error(t)}Object.defineProperty(r,"__esModule",{value:!0}),r.timingSafeEqual=void 0,r.timingSafeEqual=function(e,t){if(e.byteLength!==t.byteLength)return!1;e instanceof DataView||(e=new DataView(ArrayBuffer.isView(e)?e.buffer:e)),t instanceof DataView||(t=new DataView(ArrayBuffer.isView(t)?t.buffer:t)),s(e instanceof DataView),s(t instanceof DataView);let r=e.byteLength,a=0,n=-1;for(;++n<r;)a|=e.getUint8(n)^t.getUint8(n);return 0===a}},701990,(e,t,r)=>{"use strict";var s,a=e.e&&e.e.__extends||(s=function(e,t){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var n=function(){function e(e){void 0===e&&(e="="),this._paddingCharacter=e}return e.prototype.encodedLength=function(e){return this._paddingCharacter?(e+2)/3*4|0:(8*e+5)/6|0},e.prototype.encode=function(e){for(var t="",r=0;r<e.length-2;r+=3){var s=e[r]<<16|e[r+1]<<8|e[r+2];t+=this._encodeByte(s>>>18&63),t+=this._encodeByte(s>>>12&63),t+=this._encodeByte(s>>>6&63),t+=this._encodeByte(s>>>0&63)}var a=e.length-r;if(a>0){var s=e[r]<<16|(2===a?e[r+1]<<8:0);t+=this._encodeByte(s>>>18&63),t+=this._encodeByte(s>>>12&63),2===a?t+=this._encodeByte(s>>>6&63):t+=this._paddingCharacter||"",t+=this._paddingCharacter||""}return t},e.prototype.maxDecodedLength=function(e){return this._paddingCharacter?e/4*3|0:(6*e+7)/8|0},e.prototype.decodedLength=function(e){return this.maxDecodedLength(e.length-this._getPaddingLength(e))},e.prototype.decode=function(e){if(0===e.length)return new Uint8Array(0);for(var t=this._getPaddingLength(e),r=e.length-t,s=new Uint8Array(this.maxDecodedLength(r)),a=0,n=0,i=0,o=0,c=0,l=0,d=0;n<r-4;n+=4)o=this._decodeChar(e.charCodeAt(n+0)),c=this._decodeChar(e.charCodeAt(n+1)),l=this._decodeChar(e.charCodeAt(n+2)),d=this._decodeChar(e.charCodeAt(n+3)),s[a++]=o<<2|c>>>4,s[a++]=c<<4|l>>>2,s[a++]=l<<6|d,i|=256&o,i|=256&c,i|=256&l,i|=256&d;if(n<r-1&&(o=this._decodeChar(e.charCodeAt(n)),c=this._decodeChar(e.charCodeAt(n+1)),s[a++]=o<<2|c>>>4,i|=256&o,i|=256&c),n<r-2&&(l=this._decodeChar(e.charCodeAt(n+2)),s[a++]=c<<4|l>>>2,i|=256&l),n<r-3&&(d=this._decodeChar(e.charCodeAt(n+3)),s[a++]=l<<6|d,i|=256&d),0!==i)throw Error("Base64Coder: incorrect characters for decoding");return s},e.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-15,String.fromCharCode(t+=62-e>>>8&3)},e.prototype._decodeChar=function(e){return 256+((42-e&e-44)>>>8&-256+e-43+62)+((46-e&e-48)>>>8&-256+e-47+63)+((47-e&e-58)>>>8&-256+e-48+52)+((64-e&e-91)>>>8&-256+e-65+0)+((96-e&e-123)>>>8&-256+e-97+26)},e.prototype._getPaddingLength=function(e){var t=0;if(this._paddingCharacter){for(var r=e.length-1;r>=0&&e[r]===this._paddingCharacter;r--)t++;if(e.length<4||t>2)throw Error("Base64Coder: incorrect padding")}return t},e}();r.Coder=n;var i=new n;r.encode=function(e){return i.encode(e)},r.decode=function(e){return i.decode(e)};var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-13,String.fromCharCode(t+=62-e>>>8&49)},t.prototype._decodeChar=function(e){return 256+((44-e&e-46)>>>8&-256+e-45+62)+((94-e&e-96)>>>8&-256+e-95+63)+((47-e&e-58)>>>8&-256+e-48+52)+((64-e&e-91)>>>8&-256+e-65+0)+((96-e&e-123)>>>8&-256+e-97+26)},t}(n);r.URLSafeCoder=o;var c=new o;r.encodeURLSafe=function(e){return c.encode(e)},r.decodeURLSafe=function(e){return c.decode(e)},r.encodedLength=function(e){return i.encodedLength(e)},r.maxDecodedLength=function(e){return i.maxDecodedLength(e)},r.decodedLength=function(e){return i.decodedLength(e)}},593596,(e,t,r)=>{!function(r,s){var a={};s(a);var n=a.default;for(var i in a)n[i]=a[i];if("object"==typeof t.exports)t.exports=n;else if("function"==typeof define&&define.amd)e.r,void 0!==n&&e.v(n);else r.sha256=n}(e.e,function(e){"use strict";
1e.__esModule=!0,e.digestLength=32,e.blockSize=64;var t=new Uint32Array([0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5,0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5,0xd807aa98,0x12835b01,0x243185be,0x550c7dc3,0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174,0xe49b69c1,0xefbe4786,0xfc19dc6,0x240ca1cc,0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da,0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7,0xc6e00bf3,0xd5a79147,0x6ca6351,0x14292967,0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13,0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85,0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3,0xd192e819,0xd6990624,0xf40e3585,0x106aa070,0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5,0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3,0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208,0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2]);function r(e,r,s,a,n){for(var i,o,c,l,d,u,h,p,f,m,g,b,y;n>=64;){for(m=0,i=r[0],o=r[1],c=r[2],l=r[3],d=r[4],u=r[5],h=r[6],p=r[7];m<16;m++)g=a+4*m,e[m]=(255&s[g])<<24|(255&s[g+1])<<16|(255&s[g+2])<<8|255&s[g+3];for(m=16;m<64;m++)b=((f=e[m-2])>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,y=((f=e[m-15])>>>7|f<<25)^(f>>>18|f<<14)^f>>>3,e[m]=(b+e[m-7]|0)+(y+e[m-16]|0);for(m=0;m<64;m++)b=(((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&u^~d&h)|0)+(p+(t[m]+e[m]|0)|0)|0,y=((i>>>2|i<<30)^(i>>>13|i<<19)^(i>>>22|i<<10))+(i&o^i&c^o&c)|0,p=h,h=u,u=d,d=l+b|0,l=c,c=o,o=i,i=b+y|0;r[0]+=i,r[1]+=o,r[2]+=c,r[3]+=l,r[4]+=d,r[5]+=u,r[6]+=h,r[7]+=p,a+=64,n-=64}return a}var s=function(){function t(){this.digestLength=e.digestLength,this.blockSize=e.blockSize,this.state=new Int32Array(8),this.temp=new Int32Array(64),this.buffer=new Uint8Array(128),this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this.reset()}return t.prototype.reset=function(){return this.state[0]=0x6a09e667,this.state[1]=0xbb67ae85,this.state[2]=0x3c6ef372,this.state[3]=0xa54ff53a,this.state[4]=0x510e527f,this.state[5]=0x9b05688c,this.state[6]=0x1f83d9ab,this.state[7]=0x5be0cd19,this.bufferLength=0,this.bytesHashed=0,this.finished=!1,this},t.prototype.clean=function(){for(var e=0;e<this.buffer.length;e++)this.buffer[e]=0;for(var e=0;e<this.temp.length;e++)this.temp[e]=0;this.reset()},t.prototype.update=function(e,t){if(void 0===t&&(t=e.length),this.finished)throw Error("SHA256: can't update because hash was finished.");var s=0;if(this.bytesHashed+=t,this.bufferLength>0){for(;this.bufferLength<64&&t>0;)this.buffer[this.bufferLength++]=e[s++],t--;64===this.bufferLength&&(r(this.temp,this.state,this.buffer,0,64),this.bufferLength=0)}for(t>=64&&(s=r(this.temp,this.state,e,s,t),t%=64);t>0;)this.buffer[this.bufferLength++]=e[s++],t--;return this},t.prototype.finish=function(e){if(!this.finished){var t=this.bytesHashed,s=this.bufferLength,a=t/0x20000000|0,n=t<<3,i=t%64<56?64:128;this.buffer[s]=128;for(var o=s+1;o<i-8;o++)this.buffer[o]=0;this.buffer[i-8]=a>>>24&255,this.buffer[i-7]=a>>>16&255,this.buffer[i-6]=a>>>8&255,this.buffer[i-5]=a>>>0&255,this.buffer[i-4]=n>>>24&255,this.buffer[i-3]=n>>>16&255,this.buffer[i-2]=n>>>8&255,this.buffer[i-1]=n>>>0&255,r(this.temp,this.state,this.buffer,0,i),this.finished=!0}for(var o=0;o<8;o++)e[4*o+0]=this.state[o]>>>24&255,e[4*o+1]=this.state[o]>>>16&255,e[4*o+2]=this.state[o]>>>8&255,e[4*o+3]=this.state[o]>>>0&255;return this},t.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},t.prototype._saveState=function(e){for(var t=0;t<this.state.length;t++)e[t]=this.state[t]},t.prototype._restoreState=function(e,t){for(var r=0;r<this.state.length;r++)this.state[r]=e[r];this.bytesHashed=t,this.finished=!1,this.bufferLength=0},t}();e.Hash=s;var a=function(){function e(e){this.inner=new s,this.outer=new s,this.blockSize=this.inner.blockSize,this.digestLength=this.inner.digestLength;var t=new Uint8Array(this.blockSize);if(e.length>this.blockSize)new s().update(e).finish(t).clean();else for(var r=0;r<e.length;r++)t[r]=e[r];for(var r=0;r<t.length;r++)t[r]^=54;this.inner.update(t);for(var r=0;r<t.length;r++)t[r]^=106;this.outer.update(t),this.istate=new Uint32Array(8),this.ostate=new Uint32Array(8),this.inner._saveState(this.istate),this.outer._saveState(this.ostate);for(var r=0;r<t.length;r++)t[r]=0}return e.prototype.reset=function(){return this.inner._restoreState(this.istate,this.inner.blockSize),this.outer._restoreState(this.ostate,this.outer.blockSize),this},e.prototype.clean=function(){for(var e=0;e<this.istate.length;e++)this.ostate[e]=this.istate[e]=0;this.inner.clean(),this.outer.clean()},e.prototype.update=function(e){return this.inner.update(e),this},e.prototype.finish=function(e){return this.outer.finished?this.outer.finish(e):(this.inner.finish(e),this.outer.update(e,this.digestLength).finish(e)),this},e.prototype.digest=function(){var e=new Uint8Array(this.digestLength);return this.finish(e),e},e}();function n(e){var t=new s().update(e),r=t.digest();return t.clean(),r}function i(e,t){var r=new a(e).update(t),s=r.digest();return r.clean(),s}e.HMAC=a,e.hash=n,e.default=n,e.hmac=i;var o=new Uint8Array(e.digestLength);e.hkdf=function(e,t,r,s){void 0===t&&(t=o),void 0===s&&(s=32);for(var n=new Uint8Array([1]),c=new a(i(t,e)),l=new Uint8Array(c.digestLength),d=l.length,u=new Uint8Array(s),h=0;h<s;h++)d===l.length&&(!function(e,t,r,s){var a=s[0];if(0===a)throw Error("hkdf: cannot expand more");t.reset(),a>1&&t.update(e),r&&t.update(r),t.update(s),t.finish(e),s[0]++}(l,c,r,n),d=0),u[h]=l[d++];return c.clean(),l.fill(0),n.fill(0),u},e.pbkdf2=function(e,t,r,s){for(var n=new a(e),i=n.digestLength,o=new Uint8Array(4),c=new Uint8Array(i),l=new Uint8Array(i),d=new Uint8Array(s),u=0;u*i<s;u++){var h=u+1;o[0]=h>>>24&255,o[1]=h>>>16&255,o[2]=h>>>8&255,o[3]=h>>>0&255,n.reset(),n.update(t),n.update(o),n.finish(l);for(var p=0;p<i;p++)c[p]=l[p];for(var p=2;p<=r;p++){n.reset(),n.update(l).finish(l);for(var f=0;f<i;f++)c[f]^=l[f]}for(var p=0;p<i&&u*i+p<s;p++)d[u*i+p]=c[p]}for(var u=0;u<i;u++)c[u]=l[u]=0;for(var u=0;u<4;u++)o[u]=0;return n.clean(),d}})},330024,(e,t,r)=>{"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),r.Webhook=r.WebhookVerificationError=void 0;let s=e.r(668784),a=e.r(701990),n=e.r(593596);class i extends Error{constructor(e){super(e),Object.setPrototypeOf(this,i.prototype),this.name="ExtendableError",this.stack=Error(e).stack}}class o extends i{constructor(e){super(e),Object.setPrototypeOf(this,o.prototype),this.name="WebhookVerificationError"}}r.WebhookVerificationError=o;class c{constructor(e,t){if(!e)throw Error("Secret can't be empty.");if((null==t?void 0:t.format)==="raw")e instanceof Uint8Array?this.key=e:this.key=Uint8Array.from(e,e=>e.charCodeAt(0));else{if("string"!=typeof e)throw Error("Expected secret to be of type string");e.startsWith(c.prefix)&&(e=e.substring(c.prefix.length)),this.key=a.decode(e)}}verify(e,t){let r={};for(let e of Object.keys(t))r[e.toLowerCase()]=t[e];let a=r["webhook-id"],n=r["webhook-signature"],i=r["webhook-timestamp"];if(!n||!a||!i)throw new o("Missing required headers");let c=this.verifyTimestamp(i),l=this.sign(a,c,e).split(",")[1],d=n.split(" "),u=new globalThis.TextEncoder;for(let t of d){let[r,a]=t.split(",");if("v1"===r&&(0,s.timingSafeEqual)(u.encode(a),u.encode(l)))return JSON.parse(e.toString())}throw new o("No matching signature found")}sign(e,t,r){if("string"==typeof r);else if("Buffer"===r.constructor.name)r=r.toString();else throw Error("Expected payload to be of type string or Buffer.");let s=new TextEncoder,i=Math.floor(t.getTime()/1e3),o=s.encode(`${e}.${i}.${r}`),c=a.encode(n.hmac(this.key,o));return`v1,${c}`}verifyTimestamp(e){let t=Math.floor(Date.now()/1e3),r=parseInt(e,10);if(isNaN(r))throw new o("Invalid Signature Headers");if(t-r>300)throw new o("Message timestamp too old");if(r>t+300)throw new o("Message timestamp too new");return new Date(1e3*r)}}r.Webhook=c,c.prefix="whsec_"},874788,e=>{"use strict";let t;var r=e.i(247167),s=e.i(467034);let a=new TextEncoder,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=new Uint8Array(256);for(let e=0;e<n.length;e++)i[n.charCodeAt(e)]=e;function o(e){let t=3*Math.ceil(e.length/4),r=e.length,s=0;e.length%4==3?t--:e.length%4==2?t-=2:"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let a=new ArrayBuffer(t),n=new Uint8Array(a);for(let t=0;t<r;t+=4){let r=i[e.charCodeAt(t)],a=i[e.charCodeAt(t+1)],o=i[e.charCodeAt(t+2)],c=i[e.charCodeAt(t+3)];n[s++]=r<<2|a>>4,n[s++]=(15&a)<<4|o>>2,n[s++]=(3&o)<<6|63&c}return a}let c=new Map([["iso-8859-8-i","iso-8859-8"],["iso-8859-8-e","iso-8859-8"]]);function l(e){let t;e=(e||"utf8").trim().toLowerCase(),e=c.get(e)||e;try{t=new TextDecoder(e)}catch(e){t=new TextDecoder("windows-1252")}return t}async function d(e){if("arrayBuffer"in e)return await e.arrayBuffer();let t=new FileReader;return new Promise((r,s)=>{t.onload=function(e){r(e.target.result)},t.onerror=function(e){s(t.error)},t.readAsArrayBuffer(e)})}function u(e){return(e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70)&&String.fromCharCode(e)}function h(e){let t=!0;for(;;){let r=(e||"").toString().replace(/(=\?([^?]+)\?[Bb]\?([^?]*)\?=)\s*(?==\?([^?]+)\?[Bb]\?[^?]*\?=)/g,(e,r,s,a,n)=>t?s!==n||a.length%4!=0||/=$/.test(a)?e:r+"__\0JOIN\0__":e).replace(/(=\?([^?]+)\?[Qq]\?[^?]*\?=)\s*(?==\?([^?]+)\?[Qq]\?[^?]*\?=)/g,(e,r,s,a)=>t&&s===a?r+"__\0JOIN\0__":e).replace(/(\?=)?__\x00JOIN\x00__(=\?([^?]+)\?[QqBb]\?)?/g,"").replace(/(=\?[^?]+\?[QqBb]\?[^?]*\?=)\s+(?==\?[^?]+\?[QqBb]\?[^?]*\?=)/g,"$1").replace(/=\?([\w_\-*]+)\?([QqBb])\?([^?]*)\?=/g,(e,t,r,s)=>(function(e,t,r){let s,n=e.indexOf("*");if(n>=0&&(e=e.substr(0,n)),"Q"===(t=t.toUpperCase())){r=r.replace(/=\s+([0-9a-fA-F])/g,"=$1").replace(/[_\s]/g," ");let e=a.encode(r),t=[];for(let r=0,s=e.length;r<s;r++){let a=e[r];if(r<=s-2&&61===a){let s=u(e[r+1]),a=u(e[r+2]);if(s&&a){let e=parseInt(s+a,16);t.push(e),r+=2;continue}}t.push(a)}let n=new DataView(s=new ArrayBuffer(t.length));for(let e=0,r=t.length;e<r;e++)n.setUint8(e,t[e])}else s="B"===t?o(r.replace(/[^a-zA-Z0-9\+\/=]+/g,"")):a.encode(r);return l(e).decode(s)})(t,r,s));if(!(t&&r.indexOf("�")>=0))return r;t=!1}}class p{constructor(){this.chunks=[]}update(e){this.chunks.push(e),this.chunks.push("\n")}finalize(){return d(new Blob(this.chunks,{type:"application/octet-stream"}))}}class f{constructor(e){e=e||{},this.decoder=e.decoder||new TextDecoder,this.maxChunkSize=102400,this.chunks=[],this.remainder=""}update(e){let t=this.decoder.decode(e);if(t=t.replace(/[^a-zA-Z0-9+\/]+/g,""),this.remainder+=t,this.remainder.length>=this.maxChunkSize){let e,t=4*Math.floor(this.remainder.length/4);t===this.remainder.length?(e=this.remainder,this.remainder=""):(e=this.remainder.substr(0,t),this.remainder=this.remainder.substr(t)),e.length&&this.chunks.push(o(e))}}finalize(){return this.remainder&&!/^=+$/.test(this.remainder)&&this.chunks.push(o(this.remainder)),d(new Blob(this.chunks,{type:"application/octet-stream"}))}}let m=/^=[a-f0-9]{2}$/i,g=/(?==[a-f0-9]{2})/i,b=/=\r?\n/g,y=/=[a-fA-F0-9]?$/;class w{constructor(e){e=e||{},this.decoder=e.decoder||new TextDecoder,this.maxChunkSize=102400,this.remainder="",this.chunks=[]}decodeQPBytes(e){let t=new ArrayBuffer(e.length),r=new DataView(t);for(let t=0,s=e.length;t<s;t++)r.setUint8(t,parseInt(e[t],16));return t}decodeChunks(e){let t=(e=e.replace(b,"")).split(g),r=[];for(let e of t){if("="!==e.charAt(0)){r.length&&(this.chunks.push(this.decodeQPBytes(r)),r=[]),this.chunks.push(e);continue}if(3===e.length){m.test(e)?r.push(e.substr(1)):(r.length&&(this.chunks.push(this.decodeQPBytes(r)),r=[]),this.chunks.push(e));continue}if(e.length>3){let t=e.substr(0,3);m.test(t)?(r.push(e.substr(1,2)),this.chunks.push(this.decodeQPBytes(r)),r=[],e=e.substr(3)):r.length&&(this.chunks.push(this.decodeQPBytes(r)),r=[]),this.chunks.push(e)}}r.length&&this.chunks.push(this.decodeQPBytes(r))}update(e){let t=this.decoder.decode(e)+"\n";if((t=this.remainder+t).length<this.maxChunkSize){this.remainder=t;return}this.remainder="";let r=t.match(y);if(r){if(0===r.index){this.remainder=t;return}this.remainder=t.substr(r.index),t=t.substr(0,r.index)}this.decodeChunks(t)}finalize(){return this.remainder.length&&(this.decodeChunks(this.remainder),this.remainder=""),d(new Blob(this.chunks,{type:"application/octet-stream"}))}}let v=l();class x{constructor(e){if(this.options=e||{},this.postalMime=this.options.postalMime,this.root=!!this.options.parentNode,this.childNodes=[],this.options.parentNode){if(this.parentNode=this.options.parentNode,this.depth=this.parentNode.depth+1,this.depth>this.options.maxNestingDepth)throw Error(`Maximum MIME nesting depth of ${this.options.maxNestingDepth} levels exceeded`);this.options.parentNode.childNodes.push(this)}else this.depth=0;this.state="header",this.headerLines=[],this.headerSize=0;const t=this.options.parentMultipartType||null;this.contentType={value:"digest"===t?"message/rfc822":"text/plain",default:!0},this.contentTransferEncoding={value:"8bit"},this.contentDisposition={value:""},this.headers=[],this.contentDecoder=!1}setupContentDecoder(e){/base64/i.test(e)?this.contentDecoder=new f:/quoted-printable/i.test(e)?this.contentDecoder=new w({decoder:l(this.contentType.parsed.params.charset)}):this.contentDecoder=new p}async finalize(){if("finished"===this.state)return;"header"===this.state&&this.processHeaders();let e=this.postalMime.boundaries;for(let t=e.length-1;t>=0;t--)if(e[t].node===this){e.splice(t,1);break}await this.finalizeChildNodes(),this.content=this.contentDecoder?await this.contentDecoder.finalize():null,this.state="finished"}async finalizeChildNodes(){for(let e of this.childNodes)await e.finalize()}stripComments(e){let t="",r=0,s=!1,a=!1;for(let n=0;n<e.length;n++){let i=e.charAt(n);if(s){0===r&&(t+=i),s=!1;continue}if("\\"===i){s=!0,0===r&&(t+=i);continue}if('"'===i&&0===r){a=!a,t+=i;continue}if(!a){if("("===i){r++;continue}if(")"===i&&r>0){r--;continue}}0===r&&(t+=i)}return t}parseStructuredHeader(e){let t,r;e=this.stripComments(e);let s={value:!1,params:{}},n=!1,i="",o="value",c=!1,d=!1;for(let r=0,a=e.length;r<a;r++)switch(t=e.charAt(r),o){case"key":if("="===t){n=i.trim().toLowerCase(),o="value",i="";break}i+=t;break;case"value":if(d)i+=t;else if("\\"===t){d=!0;continue}else c&&t===c?c=!1:c||'"'!==t?c||";"!==t?i+=t:(!1===n?s.value=i.trim():s.params[n]=i.trim(),o="key",
1i=""):c=t;d=!1}return i=i.trim(),"value"===o?!1===n?s.value=i:s.params[n]=i:i&&(s.params[i.toLowerCase()]=""),s.value&&(s.value=s.value.toLowerCase()),r=new Map,Object.keys(s.params).forEach(e=>{let t,a=e.match(/\*((\d+)\*?)?$/);if(!a)return;let n=e.substr(0,a.index).toLowerCase(),i=Number(a[2])||0;r.has(n)?t=r.get(n):(t={charset:!1,values:[]},r.set(n,t));let o=s.params[e];0===i&&"*"===a[0].charAt(a[0].length-1)&&(a=o.match(/^([^']*)'[^']*'(.*)$/))&&(t.charset=a[1]||"utf-8",o=a[2]),t.values.push({nr:i,value:o}),delete s.params[e]}),r.forEach((e,t)=>{s.params[t]=function(e,t){t=t||"utf-8";let r=[];for(let t=0;t<e.length;t++){let s=e.charAt(t);if("%"===s&&/^[a-f0-9]{2}/i.test(e.substr(t+1,2))){let s=e.substr(t+1,2);t+=2,r.push(parseInt(s,16))}else if(s.charCodeAt(0)>126){s=a.encode(s);for(let e=0;e<s.length;e++)r.push(s[e])}else r.push(s.charCodeAt(0))}let s=new ArrayBuffer(r.length),n=new DataView(s);for(let e=0,t=r.length;e<t;e++)n.setUint8(e,r[e]);return l(t).decode(s)}(e.values.sort((e,t)=>e.nr-t.nr).map(e=>e.value).join(""),e.charset)}),s}decodeFlowedText(e,t){return e.split(/\r?\n/).reduce((e,r)=>!e.endsWith(" ")||"-- "===e||e.endsWith("\n-- ")?e+"\n"+r:t?e.slice(0,-1)+r:e+r).replace(/^ /gm,"")}getTextContent(){if(!this.content)return"";let e=l(this.contentType.parsed.params.charset).decode(this.content);return/^flowed$/i.test(this.contentType.parsed.params.format)&&(e=this.decodeFlowedText(e,/^yes$/i.test(this.contentType.parsed.params.delsp))),e}processHeaders(){for(let e=this.headerLines.length-1;e>=0;e--){let t=this.headerLines[e];e&&/^\s/.test(t)&&(this.headerLines[e-1]+="\n"+t,this.headerLines.splice(e,1))}this.rawHeaderLines=[];for(let e=this.headerLines.length-1;e>=0;e--){let t=this.headerLines[e],r=t.indexOf(":"),s=r<0?t.trim():t.substr(0,r).trim();this.rawHeaderLines.push({key:s.toLowerCase(),line:t});let a=t.replace(/\s+/g," "),n=(r=a.indexOf(":"))<0?a.trim():a.substr(0,r).trim(),i=r<0?"":a.substr(r+1).trim();switch(this.headers.push({key:n.toLowerCase(),originalKey:n,value:i}),n.toLowerCase()){case"content-type":this.contentType.default&&(this.contentType={value:i,parsed:{}});break;case"content-transfer-encoding":this.contentTransferEncoding={value:i,parsed:{}};break;case"content-disposition":this.contentDisposition={value:i,parsed:{}};break;case"content-id":this.contentId=i;break;case"content-description":this.contentDescription=i}}this.contentType.parsed=this.parseStructuredHeader(this.contentType.value),this.contentType.multipart=!!/^multipart\//i.test(this.contentType.parsed.value)&&this.contentType.parsed.value.substr(this.contentType.parsed.value.indexOf("/")+1),this.contentType.multipart&&this.contentType.parsed.params.boundary&&this.postalMime.boundaries.push({value:a.encode(this.contentType.parsed.params.boundary),node:this}),this.contentDisposition.parsed=this.parseStructuredHeader(this.contentDisposition.value),this.contentTransferEncoding.encoding=this.contentTransferEncoding.value.toLowerCase().split(/[^\w-]/).shift(),this.setupContentDecoder(this.contentTransferEncoding.encoding)}feed(e){switch(this.state){case"header":if(!e.length)return this.state="body",this.processHeaders();if(this.headerSize+=e.length,this.headerSize>this.options.maxHeadersSize)throw Error(`Maximum header size of ${this.options.maxHeadersSize} bytes exceeded`);this.headerLines.push(v.decode(e));break;case"body":this.contentDecoder.update(e)}}}let k=
vendor: 10,369 bytes, line 1
1{"Æ":"Ã","Æ":"Ã","&":"&","&":"&","Á":"Ã","Á":"Ã","Ă":"Ä","Â":"Ã","Â":"Ã","А":"Ð","𝔄":"ð","À":"Ã","À":"Ã","Α":"Î","Ā":"Ä","⩓":"â©","Ą":"Ä","𝔸":"ð¸","⁡":"â¡","Å":"Ã
","Å":"Ã
","𝒜":"ð","≔":"â","Ã":"Ã","Ã":"Ã","Ä":"Ã","Ä":"Ã","∖":"â","⫧":"â«§","⌆":"â","Б":"Ð","∵":"âµ","ℬ":"â¬","Β":"Î","𝔅":"ð
","𝔹":"ð¹","˘":"Ë","ℬ":"â¬","≎":"â","Ч":"Ч","©":"©","©":"©","Ć":"Ä","⋒":"â","ⅅ":"â
","ℭ":"â","Č":"Ä","Ç":"Ã","Ç":"Ã","Ĉ":"Ä","∰":"â°","Ċ":"Ä","¸":"¸","·":"·","ℭ":"â","Χ":"Χ","⊙":"â","⊖":"â","⊕":"â","⊗":"â","∲":"â²","”":"â","’":"â","∷":"â·","⩴":"â©´","≡":"â¡","∯":"â¯","∮":"â®","ℂ":"â","∐":"â","∳":"â³","⨯":"⨯","𝒞":"ð","⋓":"â","≍":"â","ⅅ":"â
","⤑":"â¤","Ђ":"Ð","Ѕ":"Ð
","Џ":"Ð","‡":"â¡","↡":"â¡","⫤":"⫤","Ď":"Ä","Д":"Ð","∇":"â","Δ":"Î","𝔇":"ð","´":"´","˙":"Ë","˝":"Ë","`":"`","˜":"Ë","⋄":"â","ⅆ":"â
","𝔻":"ð»","¨":"¨","⃜":"â","≐":"â","∯":"â¯","¨":"¨","⇓":"â","⇐":"â","⇔":"â","⫤":"⫤","⟸":"â¸","⟺":"âº","⟹":"â¹","⇒":"â","⊨":"â¨","⇑":"â","⇕":"â","∥":"â¥","↓":"â","⤓":"â¤","⇵":"âµ","̑":"Ì","⥐":"â¥","⥞":"â¥","↽":"â½","⥖":"â¥","⥟":"â¥","⇁":"â","⥗":"â¥","⊤":"â¤","↧":"â§","⇓":"â","𝒟":"ð","Đ":"Ä","Ŋ":"Å","Ð":"Ã","Ð":"Ã","É":"Ã","É":"Ã","Ě":"Ä","Ê":"Ã","Ê":"Ã","Э":"Ð","Ė":"Ä","𝔈":"ð","È":"Ã","È":"Ã","∈":"â","Ē":"Ä","◻":"â»","▫":"â«","Ę":"Ä","𝔼":"ð¼","Ε":"Î","⩵":"⩵","≂":"â","⇌":"â","ℰ":"â°","⩳":"⩳","Η":"Î","Ë":"Ã","Ë":"Ã","∃":"â","ⅇ":"â
","Ф":"Ф","𝔉":"ð","◼":"â¼","▪":"âª","𝔽":"ð½","∀":"â","ℱ":"â±","ℱ":"â±","Ѓ":"Ð",">":">",">":">","Γ":"Î","Ϝ":"Ï","Ğ":"Ä","Ģ":"Ä¢","Ĝ":"Ä","Г":"Ð","Ġ":"Ä ","𝔊":"ð","⋙":"â","𝔾":"ð¾","≥":"â¥","⋛":"â","≧":"â§","⪢":"⪢","≷":"â·","⩾":"⩾","≳":"â³","𝒢":"ð¢","≫":"â«","Ъ":"Ъ","ˇ":"Ë","^":"^","Ĥ":"Ĥ","ℌ":"â","ℋ":"â","ℍ":"â","─":"â","ℋ":"â","Ħ":"Ħ","≎":"â","≏":"â","Е":"Ð","IJ":"IJ","Ё":"Ð","Í":"Ã","Í":"Ã","Î":"Ã","Î":"Ã","И":"Ð","İ":"İ","ℑ":"â","Ì":"Ã","Ì":"Ã","ℑ":"â","Ī":"Ī","ⅈ":"â
","⇒":"â","∬":"â¬","∫":"â«","⋂":"â","⁣":"â£","⁢":"â¢","Į":"Ä®","𝕀":"ð","Ι":"Î","ℐ":"â","Ĩ":"Ĩ","І":"Ð","Ï":"Ã","Ï":"Ã","Ĵ":"Ä´","Й":"Ð","𝔍":"ð","𝕁":"ð","𝒥":"ð¥","Ј":"Ð","Є":"Ð","Х":"Ð¥","Ќ":"Ð","Κ":"Î","Ķ":"Ķ","К":"Ð","𝔎":"ð","𝕂":"ð","𝒦":"ð¦","Љ":"Ð","<":"<","<":"<","Ĺ":"Ĺ","Λ":"Î","⟪":"âª","ℒ":"â","↞":"â","Ľ":"Ľ","Ļ":"Ä»","Л":"Ð","⟨":"â¨","←":"â","⇤":"â¤","⇆":"â","⌈":"â","⟦":"â¦","⥡":"⥡","⇃":"â","⥙":"â¥","⌊":"â","↔":"â","⥎":"â¥","⊣":"â£","↤":"â¤","⥚":"â¥","⊲":"â²","⧏":"â§","⊴":"â´","⥑":"â¥","⥠":"⥠","↿":"â¿","⥘":"â¥","↼":"â¼","⥒":"â¥","⇐":"â","⇔":"â","⋚":"â","≦":"â¦","≶":"â¶","⪡":"⪡","⩽":"⩽","≲":"â²","𝔏":"ð","⋘":"â","⇚":"â","Ŀ":"Ä¿","⟵":"âµ","⟷":"â·","⟶":"â¶","⟸":"â¸","⟺":"âº","⟹":"â¹","𝕃":"ð","↙":"â","↘":"â","ℒ":"â","↰":"â°","Ł":"Å","≪":"âª","⤅":"â¤
","М":"Ð"," ":"â","ℳ":"â³","𝔐":"ð","∓":"â","𝕄":"ð","ℳ":"â³","Μ":"Î","Њ":"Ð","Ń":"Å","Ň":"Å","Ņ":"Å
","Н":"Ð","​":"â","​":"â","​":"â","​":"â","≫":"â«","≪":"âª","
":"\n","𝔑":"ð","⁠":"â "," ":" ","ℕ":"â","⫬":"⫬","≢":"â¢","≭":"â","∦":"â¦","∉":"â","≠":"â ","≂̸":"â̸","∄":"â","≯":"â¯","≱":"â±","≧̸":"â§Ì¸","≫̸":"â«Ì¸","≹":"â¹","⩾̸":"⩾̸","≵":"âµ","≎̸":"â̸","≏̸":"â̸","⋪":"âª","⧏̸":"â§Ì¸","⋬":"â¬","≮":"â®","≰":"â°","≸":"â¸","≪̸":"âªÌ¸","⩽̸":"⩽̸","≴":"â´","⪢̸":"⪢̸","⪡̸":"⪡̸","⊀":"â","⪯̸":"⪯̸","⋠":"â ","∌":"â","⋫":"â«","⧐̸":"â§Ì¸","⋭":"â","⊏̸":"â̸","⋢":"â¢","⊐̸":"â̸","⋣":"â£","⊂⃒":"ââ","⊈":"â","⊁":"â","⪰̸":"⪰̸","⋡":"â¡","≿̸":"â¿Ì¸","⊃⃒":"ââ","⊉":"â","≁":"â","≄":"â","≇":"â","≉":"â","∤":"â¤","𝒩":"ð©","Ñ":"Ã","Ñ":"Ã","Ν":"Î","Œ":"Å","Ó":"Ã","Ó":"Ã","Ô":"Ã","Ô":"Ã","О":"Ð","Ő":"Å","𝔒":"ð","Ò":"Ã","Ò":"Ã","Ō":"Å","Ω":"Ω","Ο":"Î","𝕆":"ð","“":"â","‘":"â","⩔":"â©","𝒪":"ðª","Ø":"Ã","Ø":"Ã","Õ":"Ã","Õ":"Ã","⨷":"⨷","Ö":"Ã","Ö":"Ã","‾":"â¾","⏞":"â","⎴":"â´","⏜":"â","∂":"â","П":"Ð","𝔓":"ð","Φ":"Φ","Π":"Î ","±":"±","ℌ":"â","ℙ":"â","⪻":"⪻","≺":"âº","⪯":"⪯","≼":"â¼","≾":"â¾","″":"â³","∏":"â","∷":"â·","∝":"â","𝒫":"ð«","Ψ":"Ψ",""":'"',""":'"',"𝔔":"ð","ℚ":"â","𝒬":"ð¬","⤐":"â¤","®":"®","®":"®","Ŕ":"Å","⟫":"â«","↠":"â ","⤖":"â¤","Ř":"Å","Ŗ":"Å","Р":"Ð ","ℜ":"â","∋":"â","⇋":"â","⥯":"⥯","ℜ":"â","Ρ":"Ρ","⟩":"â©","→":"â","⇥":"â¥","⇄":"â","⌉":"â","⟧":"â§","⥝":"â¥","⇂":"â","⥕":"â¥","⌋":"â","⊢":"â¢","↦":"â¦","⥛":"â¥","⊳":"â³","⧐":"â§","⊵":"âµ","⥏":"â¥","⥜":"â¥","↾":"â¾","⥔":"â¥","⇀":"â","⥓":"â¥","⇒":"â","ℝ":"â","⥰":"⥰","⇛":"â","ℛ":"â","↱":"â±","⧴":"â§´","Щ":"Щ","Ш":"Ш","Ь":"Ь","Ś":"Å","⪼":"⪼","Š":"Å ","Ş":"Å","Ŝ":"Å","С":"С","𝔖":"ð","↓":"â","←":"â","→":"â","↑":"â","Σ":"Σ","∘":"â","𝕊":"ð","√":"â","□":"â¡","⊓":"â","⊏":"â","⊑":"â","⊐":"â","⊒":"â","⊔":"â","𝒮":"ð®","⋆":"â","⋐":"â","⋐":"â","⊆":"â","≻":"â»","⪰":"⪰","≽":"â½","≿":"â¿","∋":"â","∑":"â","⋑":"â","⊃":"â","⊇":"â","⋑":"â","Þ":"Ã","Þ":"Ã","™":"â¢","Ћ":"Ð","Ц":"Ц","	":"
1
vendor: 28,311 bytes, line 1
1","Τ":"Τ","Ť":"Ť","Ţ":"Å¢","Т":"Т","𝔗":"ð","∴":"â´","Θ":"Î","  ":"ââ"," ":"â","∼":"â¼","≃":"â","≅":"â
","≈":"â","𝕋":"ð","⃛":"â","𝒯":"ð¯","Ŧ":"Ŧ","Ú":"Ã","Ú":"Ã","↟":"â","⥉":"â¥","Ў":"Ð","Ŭ":"Ŭ","Û":"Ã","Û":"Ã","У":"У","Ű":"Ű","𝔘":"ð","Ù":"Ã","Ù":"Ã","Ū":"Ū","_":"_","⏟":"â","⎵":"âµ","⏝":"â","⋃":"â","⊎":"â","Ų":"Ų","𝕌":"ð","↑":"â","⤒":"â¤","⇅":"â
","↕":"â","⥮":"⥮","⊥":"â¥","↥":"â¥","⇑":"â","⇕":"â","↖":"â","↗":"â","ϒ":"Ï","Υ":"Î¥","Ů":"Å®","𝒰":"ð°","Ũ":"Ũ","Ü":"Ã","Ü":"Ã","⊫":"â«","⫫":"â««","В":"Ð","⊩":"â©","⫦":"⫦","⋁":"â","‖":"â","‖":"â","∣":"â£","|":"|","❘":"â","≀":"â"," ":"â","𝔙":"ð","𝕍":"ð","𝒱":"ð±","⊪":"âª","Ŵ":"Å´","⋀":"â","𝔚":"ð","𝕎":"ð","𝒲":"ð²","𝔛":"ð","Ξ":"Î","𝕏":"ð","𝒳":"ð³","Я":"Я","Ї":"Ð","Ю":"Ю","Ý":"Ã","Ý":"Ã","Ŷ":"Ŷ","Ы":"Ы","𝔜":"ð","𝕐":"ð","𝒴":"ð´","Ÿ":"Ÿ","Ж":"Ð","Ź":"Ź","Ž":"Ž","З":"Ð","Ż":"Å»","​":"â","Ζ":"Î","ℨ":"â¨","ℤ":"â¤","𝒵":"ðµ","á":"á","á":"á","ă":"Ä","∾":"â¾","∾̳":"â¾Ì³","∿":"â¿","â":"â","â":"â","´":"´","´":"´","а":"а","æ":"æ","æ":"æ","⁡":"â¡","𝔞":"ð","à":"à ","à":"à ","ℵ":"âµ","ℵ":"âµ","α":"α","ā":"Ä","⨿":"⨿","&":"&","&":"&","∧":"â§","⩕":"â©","⩜":"â©","⩘":"â©","⩚":"â©","∠":"â ","⦤":"⦤","∠":"â ","∡":"â¡","⦨":"⦨","⦩":"⦩","⦪":"⦪","⦫":"⦫","⦬":"⦬","⦭":"â¦","⦮":"⦮","⦯":"⦯","∟":"â","⊾":"â¾","⦝":"â¦","∢":"â¢","Å":"Ã
","⍼":"â¼","ą":"Ä
","𝕒":"ð","≈":"â","⩰":"â©°","⩯":"⩯","≊":"â","≋":"â","'":"'","≈":"â","≊":"â","å":"Ã¥","å":"Ã¥","𝒶":"ð¶","*":"*","≈":"â","≍":"â","ã":"ã","ã":"ã","ä":"ä","ä":"ä","∳":"â³","⨑":"â¨","⫭":"â«","≌":"â","϶":"϶","‵":"âµ","∽":"â½","⋍":"â","⊽":"â½","⌅":"â
","⌅":"â
","⎵":"âµ","⎶":"â¶","≌":"â","б":"б","„":"â","∵":"âµ","∵":"âµ","⦰":"⦰","϶":"϶","ℬ":"â¬","β":"β","ℶ":"â¶","≬":"â¬","𝔟":"ð","⋂":"â","◯":"â¯","⋃":"â","⨀":"â¨","⨁":"â¨","⨂":"â¨","⨆":"â¨","★":"â
","▽":"â½","△":"â³","⨄":"â¨","⋁":"â","⋀":"â","⤍":"â¤","⧫":"â§«","▪":"âª","▴":"â´","▾":"â¾","◂":"â","▸":"â¸","␣":"â£","▒":"â","░":"â","▓":"â","█":"â","=⃥":"=â¥","≡⃥":"â¡â¥","⌐":"â","𝕓":"ð","⊥":"â¥","⊥":"â¥","⋈":"â","╗":"â","╔":"â","╖":"â","╓":"â","═":"â","╦":"â¦","╩":"â©","╤":"â¤","╧":"â§","╝":"â","╚":"â","╜":"â","╙":"â","║":"â","╬":"â¬","╣":"â£","╠":"â ","╫":"â«","╢":"â¢","╟":"â","⧉":"â§","╕":"â","╒":"â","┐":"â","┌":"â","─":"â","╥":"â¥","╨":"â¨","┬":"â¬","┴":"â´","⊟":"â","⊞":"â","⊠":"â ","╛":"â","╘":"â","┘":"â","└":"â","│":"â","╪":"âª","╡":"â¡","╞":"â","┼":"â¼","┤":"â¤","├":"â","‵":"âµ","˘":"Ë","¦":"¦","¦":"¦","𝒷":"ð·","⁏":"â","∽":"â½","⋍":"â","\":"\\","⧅":"â§
","⟈":"â","•":"â¢","•":"â¢","≎":"â","⪮":"⪮","≏":"â","≏":"â","ć":"Ä","∩":"â©","⩄":"â©","⩉":"â©","⩋":"â©","⩇":"â©","⩀":"â©","∩︀":"â©ï¸","⁁":"â","ˇ":"Ë","⩍":"â©","č":"Ä","ç":"ç","ç":"ç","ĉ":"Ä","⩌":"â©","⩐":"â©","ċ":"Ä","¸":"¸","¸":"¸","⦲":"⦲","¢":"¢","¢":"¢","·":"·","𝔠":"ð ","ч":"Ñ","✓":"â","✓":"â","χ":"Ï","○":"â","⧃":"â§","ˆ":"Ë","≗":"â","↺":"âº","↻":"â»","®":"®","Ⓢ":"â","⊛":"â","⊚":"â","⊝":"â","≗":"â","⨐":"â¨","⫯":"⫯","⧂":"â§","♣":"â£","♣":"â£",":":":","≔":"â","≔":"â",",":",","@":"@","∁":"â","∘":"â","∁":"â","ℂ":"â","≅":"â
","⩭":"â©","∮":"â®","𝕔":"ð","∐":"â","©":"©","©":"©","℗":"â","↵":"âµ","✗":"â","𝒸":"ð¸","⫏":"â«","⫑":"â«","⫐":"â«","⫒":"â«","⋯":"â¯","⤸":"⤸","⤵":"⤵","⋞":"â","⋟":"â","↶":"â¶","⤽":"⤽","∪":"âª","⩈":"â©","⩆":"â©","⩊":"â©","⊍":"â","⩅":"â©
","∪︀":"âªï¸","↷":"â·","⤼":"⤼","⋞":"â","⋟":"â","⋎":"â","⋏":"â","¤":"¤","¤":"¤","↶":"â¶","↷":"â·","⋎":"â","⋏":"â","∲":"â²","∱":"â±","⌭":"â","⇓":"â","⥥":"⥥","†":"â ","ℸ":"â¸","↓":"â","‐":"â","⊣":"â£","⤏":"â¤","˝":"Ë","ď":"Ä","д":"д","ⅆ":"â
","‡":"â¡","⇊":"â","⩷":"â©·","°":"°","°":"°","δ":"δ","⦱":"⦱","⥿":"⥿","𝔡":"ð¡","⇃":"â","⇂":"â","⋄":"â","⋄":"â","♦":"â¦","♦":"â¦","¨":"¨","ϝ":"Ï","⋲":"â²","÷":"÷","÷":"÷","÷":"÷","⋇":"â","⋇":"â","ђ":"Ñ","⌞":"â","⌍":"â","$":"$","𝕕":"ð","˙":"Ë","≐":"â","≑":"â","∸":"â¸","∔":"â","⊡":"â¡","⌆":"â","↓":"â","⇊":"â","⇃":"â","⇂":"â","⤐":"â¤","⌟":"â","⌌":"â","𝒹":"ð¹","ѕ":"Ñ","⧶":"â§¶","đ":"Ä","⋱":"â±","▿":"â¿","▾":"â¾","⇵":"âµ","⥯":"⥯","⦦":"⦦","џ":"Ñ","⟿":"â¿","⩷":"â©·","≑":"â","é":"é","é":"é","⩮":"â©®","ě":"Ä","≖":"â","ê":"ê","ê":"ê","≕":"â","э":"Ñ","ė":"Ä","ⅇ":"â
","≒":"â","𝔢":"ð¢","⪚":"âª","è":"è","è":"è","⪖":"âª","⪘":"âª","⪙":"âª","⏧":"â§","ℓ":"â","⪕":"âª","⪗":"âª","ē":"Ä","∅":"â
","∅":"â
","∅":"â
"," ":"â"," ":"â
"," ":"â","ŋ":"Å"," ":"â","ę":"Ä","𝕖":"ð","⋕":"â","⧣":"â§£","⩱":"⩱","ε":"ε","ε":"ε","ϵ":"ϵ","≖":"â","≕":"â","≂":"â","⪖":"âª","⪕":"âª","=":"=","≟":"â","≡":"â¡","⩸":"⩸","⧥":"â§¥","≓":"â","⥱":"⥱","ℯ":"â¯","≐":"â","≂":"â","η":"η","ð":"ð","ð":"ð","ë":"ë","ë":"ë","€":"â¬","!":"!","∃":"â","ℰ":"â°","ⅇ":"â
","≒":"â","ф":"Ñ","♀":"â","ffi":"ï¬","ff":"ï¬","ffl":"ï¬","𝔣":"ð£","fi":"ï¬","fj":"fj","♭":"â","fl":"ï¬","▱":"â±","ƒ":"Æ","𝕗":"ð","∀":"â","⋔":"â","⫙":"â«","⨍":"â¨","½":"½","½":"½","⅓":"â
","¼":"¼","¼":"¼","⅕":"â
","⅙":"â
","⅛":"â
","⅔":"â
","⅖":"â
","¾":"¾","¾":"¾","⅗":"â
","⅜":"â
","⅘":"â
","⅚":"â
","⅝":"â
","⅞":"â
","⁄":"â","⌢":"â¢","𝒻":"ð»","≧":"â§","⪌":"âª","ǵ":"ǵ","γ":"γ","ϝ":"Ï","⪆":"âª","ğ":"Ä","ĝ":"Ä","г":"г","ġ":"Ä¡","≥":"â¥","⋛":"â","≥":"â¥","≧":"â§","⩾":"⩾","⩾":"⩾","⪩":"⪩","⪀":"âª","⪂":"âª","⪄":"âª","⋛︀":"âï¸","⪔":"âª","𝔤":"ð¤","≫":"â«","⋙":"â","ℷ":"â·","ѓ":"Ñ","≷":"â·","⪒":"âª","⪥":"⪥","⪤":"⪤","≩":"â©","⪊":"âª","⪊":"âª","⪈":"âª","⪈":"âª","≩":"â©","⋧":"â§","𝕘":"ð","`":"`","ℊ":"â","≳":"â³","⪎":"âª","⪐":"âª",">":">",">":">","⪧":"⪧","⩺":"⩺","⋗":"â","⦕":"â¦","⩼":"⩼","⪆":"âª","⥸":"⥸","⋗":"â","⋛":"â","⪌":"âª","≷":"â·","≳":"â³","≩︀":"â©ï¸","≩︀":"â©ï¸","⇔":"â"," ":"â","½":"½","ℋ":"â","ъ":"Ñ","↔":"â","⥈":"â¥","↭":"â","ℏ":"â","ĥ":"Ä¥","♥":"â¥","♥":"â¥","…":"â¦","⊹":"â¹","𝔥":"ð¥","⤥":"⤥","⤦":"⤦","⇿":"â¿","∻":"â»","↩":"â©","↪":"âª","𝕙":"ð","―":"â","𝒽":"ð½","ℏ":"â","ħ":"ħ","⁃":"â","‐":"â","í":"Ã","í":"Ã","⁣":"â£","î":"î","î":"î","и":"и","е":"е","¡":"¡","¡":"¡","⇔":"â","𝔦":"ð¦","ì":"ì","ì":"ì","ⅈ":"â
","⨌":"â¨","∭":"â","⧜":"â§","℩":"â©","ij":"ij","ī":"Ä«","ℑ":"â","ℐ":"â","ℑ":"â","ı":"ı","⊷":"â·","Ƶ":"Ƶ","∈":"â","℅":"â
","∞":"â","⧝":"â§","ı":"ı","∫":"â«","⊺":"âº","ℤ":"â¤","⊺":"âº","⨗":"â¨","⨼":"⨼","ё":"Ñ","į":"į","𝕚":"ð","ι":"ι","⨼":"⨼","¿":"¿","¿":"¿","𝒾":"ð¾","∈":"â","⋹":"â¹","⋵":"âµ","⋴":"â´","⋳":"â³","∈":"â","⁢":"â¢","ĩ":"Ä©","і":"Ñ","ï":"ï","ï":"ï","ĵ":"ĵ","й":"й","𝔧":"ð§","ȷ":"È·","𝕛":"ð","𝒿":"ð¿","ј":"Ñ","є":"Ñ","κ":"κ","ϰ":"ϰ","ķ":"Ä·","к":"к","𝔨":"ð¨","ĸ":"ĸ","х":"Ñ
","ќ":"Ñ","𝕜":"ð","𝓀":"ð","⇚":"â","⇐":"â","⤛":"â¤","⤎":"â¤","≦":"â¦","⪋":"âª","⥢":"⥢","ĺ":"ĺ","⦴":"⦴","ℒ":"â","λ":"λ","⟨":"â¨","⦑":"â¦","⟨":"â¨","⪅":"âª
","«":"«","«":"«","←":"â","⇤":"â¤","⤟":"â¤","⤝":"â¤","↩":"â©","↫":"â«","⤹":"⤹","⥳":"⥳","↢":"â¢","⪫":"⪫","⤙":"â¤","⪭":"âª","⪭︀":"âªï¸","⤌":"â¤","❲":"â²","{":"{","[":"[","⦋":"â¦","⦏":"â¦","⦍":"â¦","ľ":"ľ","ļ":"ļ","⌈":"â","{":"{","л":"л","⤶":"⤶","“":"â","„":"â","⥧":"⥧","⥋":"â¥","↲":"â²","≤":"â¤","←":"â","↢":"â¢","↽":"â½","↼":"â¼","⇇":"â","↔":"â","⇆":"â","⇋":"â","↭":"â","⋋":"â","⋚":"â","≤":"â¤","≦":"â¦","⩽":"⩽","⩽":"⩽","⪨":"⪨","⩿":"â©¿","⪁":"âª","⪃":"âª","⋚︀":"âï¸","⪓":"âª","⪅":"âª
","⋖":"â","⋚":"â","⪋":"âª","≶":"â¶","≲":"â²","⥼":"⥼","⌊":"â","𝔩":"ð©","≶":"â¶","⪑":"âª","↽":"â½","↼":"â¼","⥪":"⥪","▄":"â","љ":"Ñ","≪":"âª","⇇":"â","⌞":"â","⥫":"⥫","◺":"âº","ŀ":"Å","⎰":"â°","⎰":"â°","≨":"â¨","⪉":"âª","⪉":"âª","⪇":"âª","⪇":"âª","≨":"â¨","⋦":"â¦","⟬":"â¬","⇽":"â½","⟦":"â¦","⟵":"âµ","⟷":"â·","⟼":"â¼","⟶":"â¶","↫":"â«","↬":"â¬","⦅":"â¦
","𝕝":"ð","⨭":"â¨","⨴":"⨴","∗":"â","_":"_","◊":"â","◊":"â","⧫":"â§«","(":"(","⦓":"â¦","⇆":"â","⌟":"â","⇋":"â","⥭":"â¥","‎":"â","⊿":"â¿","‹":"â¹","𝓁":"ð","↰":"â°","≲":"â²","⪍":"âª","⪏":"âª","[":"[","‘":"â","‚":"â","ł":"Å","<":"<","<":"<","⪦":"⪦","⩹":"⩹","⋖":"â","⋋":"â","⋉":"â","⥶":"⥶","⩻":"â©»","⦖":"â¦","◃":"â","⊴":"â´","◂":"â","⥊":"â¥","⥦":"⥦","≨︀":"â¨ï¸","≨︀":"â¨ï¸","∺":"âº","¯":"¯","¯":"¯","♂":"â","✠":"â ","✠":"â ","↦":"â¦","↦":"â¦","↧":"â§","↤":"â¤","↥":"â¥","▮":"â®","⨩":"⨩","м":"м","—":"â","∡":"â¡","𝔪":"ðª","℧":"â§","µ":"µ","µ":"µ","∣":"â£","*":"*","⫰":"â«°","·":"·","·":"·","−":"â","⊟":"â","∸":"â¸","⨪":"⨪","⫛":"â«","…":"â¦","∓":"â","⊧":"â§","𝕞":"ð","∓":"â","𝓂":"ð","∾":"â¾","μ":"μ","⊸":"â¸","⊸":"â¸","⋙̸":"â̸","≫⃒":"â«â","≫̸":"â«Ì¸","⇍":"â","⇎":"â","⋘̸":"â̸","≪⃒":"âªâ","≪̸":"âªÌ¸","⇏":"â","⊯":"â¯","⊮":"â®","∇":"â","ń":"Å","∠⃒":"â â","≉":"â","⩰̸":"⩰̸","≋̸":"â̸","ʼn":"Å","≉":"â","♮":"â®","♮":"â®","ℕ":"â"," ":" "," ":" ","≎̸":"â̸","≏̸":"â̸","⩃":"â©","ň":"Å","ņ":"Å","≇":"â","⩭̸":"â©Ì¸","⩂":"â©","н":"н","–":"â","≠":"â ","⇗":"â","⤤":"⤤","↗":"â","↗":"â","≐̸":"â̸","≢":"â¢","⤨":"⤨","≂̸":"â̸","∄":"â","∄":"â","𝔫":"ð«","≧̸":"â§Ì¸","≱":"â±","≱":"â±","≧̸":"â§Ì¸","⩾̸":"⩾̸","⩾̸":"⩾̸","≵":"âµ","≯":"â¯","≯":"â¯","⇎":"â","↮":"â®","⫲":"⫲","∋":"â","⋼":"â¼","⋺":"âº","∋":"â","њ":"Ñ","⇍":"â","≦̸":"â¦Ì¸","↚":"â","‥":"â¥","≰":"â°","↚":"â","↮":"â®","≰":"â°","≦̸":"â¦Ì¸","⩽̸":"⩽̸","⩽̸":"⩽̸","≮":"â®","≴":"â´","≮":"â®","⋪":"âª","⋬":"â¬","∤":"â¤","𝕟":"ð","¬":"¬","¬":"¬","∉":"â","⋹̸":"â¹Ì¸","⋵̸":"âµÌ¸","∉":"â","⋷":"â·","⋶":"â¶","∌":"â","∌":"â","⋾":"â¾","⋽":"â½","∦":"â¦","∦":"â¦","⫽⃥":"⫽â¥","∂̸":"â̸","⨔":"â¨","⊀":"â","⋠":"â ","⪯̸":"⪯̸","⊀":"â","⪯̸":"⪯̸","⇏":"â","↛":"â","⤳̸":"⤳̸","↝̸":"â̸","↛":"â","⋫":"â«","⋭":"â","⊁":"â","⋡":"â¡","⪰̸":"⪰̸","𝓃":"ð","∤":"â¤","∦":"â¦","≁":"â","≄":"â","≄":"â","∤":"â¤","∦":"â¦","⋢":"â¢","⋣":"â£","⊄":"â","⫅̸":"â«
̸","⊈":"â","⊂⃒":"ââ","⊈":"â","⫅̸":"â«
̸","⊁":"â","⪰̸":"⪰̸","⊅":"â
","⫆̸":"â«Ì¸","⊉":"â","⊃⃒":"ââ","⊉":"â","⫆̸":"â«Ì¸","≹":"â¹","ñ":"ñ","ñ":"ñ","≸":"â¸","⋪":"âª","⋬":"â¬","⋫":"â«","⋭":"â","ν":"ν","#":"#","№":"â"," ":"â","⊭":"â","⤄":"â¤","≍⃒":"ââ","⊬":"â¬","≥⃒":"â¥â",">⃒":">â","⧞":"â§","⤂":"â¤","≤⃒":"â¤â","<⃒":"<â","⊴⃒":"â´â","⤃":"â¤","⊵⃒":"âµâ","∼⃒":"â¼â","⇖":"â","⤣":"⤣","↖":"â","↖":"â","⤧":"⤧","Ⓢ":"â","ó":"ó","ó":"ó","⊛":"â","⊚":"â","ô":"ô","ô":"ô","о":"о","⊝":"â","ő":"Å","⨸":"⨸","⊙":"â","⦼":"⦼","œ":"Å","⦿":"⦿","𝔬":"ð¬","˛":"Ë","ò":"ò","ò":"ò","⧁":"â§","⦵":"⦵","Ω":"Ω","∮":"â®","↺":"âº","⦾":"⦾","⦻":"⦻","‾":"â¾","⧀":"â§","ō":"Å","ω":"Ï","ο":"ο","⦶":"⦶","⊖":"â","𝕠":"ð ","⦷":"⦷","⦹":"⦹","⊕":"â","∨":"â¨","↻":"â»","⩝":"â©","ℴ":"â´","ℴ":"â´","ª":"ª","ª":"ª","º":"º","º":"º","⊶":"â¶","⩖":"â©","⩗":"â©","⩛":"â©","ℴ":"â´","ø":"ø","ø":"ø","⊘":"â","õ":"õ","õ":"õ","⊗":"â","⨶":"⨶","ö":"ö","ö":"ö","⌽":"â½","∥":"â¥","¶":"¶","¶":"¶","∥":"â¥","⫳":"⫳","⫽":"⫽","∂":"â","п":"п","%":"%",".":".","‰":"â°","⊥":"â¥","‱":"â±","𝔭":"ð","φ":"Ï","ϕ":"Ï","ℳ":"â³","☎":"â","π":"Ï","⋔":"â","ϖ":"Ï","ℏ":"â","ℎ":"â","ℏ":"â","+":"+","⨣":"⨣","⊞":"â","⨢":"⨢","∔":"â","⨥":"⨥","⩲":"⩲","±":"±","±":"±","⨦":"⨦","⨧":"⨧","±":"±","⨕":"â¨","𝕡":"ð¡","£":"£","£":"£","≺":"âº","⪳":"⪳","⪷":"⪷","≼":"â¼","⪯":"⪯","≺":"âº","⪷":"⪷","≼":"â¼","⪯":"⪯","⪹":"⪹","⪵":"⪵","⋨":"â¨","≾":"â¾","′":"â²","ℙ":"â","⪵":"⪵","⪹":"⪹","⋨":"â¨","∏":"â","⌮":"â®","⌒":"â","⌓":"â","∝":"â","∝":"â","≾":"â¾","⊰":"â°","𝓅":"ð
","ψ":"Ï"," ":"â","𝔮":"ð®","⨌":"â¨","𝕢":"ð¢","⁗":"â","𝓆":"ð","ℍ":"â","⨖":"â¨","?":"?","≟":"â",""":'"',""":'"',"⇛":"â","⇒":"â","⤜":"â¤","⤏":"â¤","⥤":"⥤","∽̱":"â½Ì±","ŕ":"Å","√":"â","⦳":"⦳","⟩":"â©","⦒":"â¦","⦥":"⦥","⟩":"â©","»":"»","»":"»","→":"â","⥵":"⥵","⇥":"â¥","⤠":"⤠","⤳":"⤳","⤞":"â¤","↪":"âª","↬":"â¬","⥅":"â¥
","⥴":"⥴","↣":"â£","↝":"â","⤚":"â¤","∶":"â¶","ℚ":"â","⤍":"â¤","❳":"â³","}":"}","]":"]","⦌":"â¦","⦎":"â¦","⦐":"â¦","ř":"Å","ŗ":"Å","⌉":"â","}":"}","р":"Ñ","⤷":"⤷","⥩":"⥩","”":"â","”":"â","↳":"â³","ℜ":"â","ℛ":"â","ℜ":"â","ℝ":"â","▭":"â","®":"®","®":"®","⥽":"⥽","⌋":"â","𝔯":"ð¯","⇁":"â","⇀":"â","⥬":"⥬","ρ":"Ï","ϱ":"ϱ","→":"â","↣":"â£","⇁":"â","⇀":"â","⇄":"â","⇌":"â","⇉":"â","↝":"â","⋌":"â","˚":"Ë","≓":"â","⇄":"â","⇌":"â","‏":"â","⎱":"â±","⎱":"â±","⫮":"â«®","⟭":"â","⇾":"â¾","⟧":"â§","⦆":"â¦","𝕣":"ð£","⨮":"⨮","⨵":"⨵",")":")","⦔":"â¦","⨒":"â¨","⇉":"â","›":"âº","𝓇":"ð","↱":"â±","]":"]","’":"â","’":"â","⋌":"â","⋊":"â","▹":"â¹","⊵":"âµ","▸":"â¸","⧎":"â§","⥨":"⥨","℞":"â","ś":"Å","‚":"â","≻":"â»","⪴":"⪴","⪸":"⪸","š":"Å¡","≽":"â½","⪰":"⪰","ş":"Å","ŝ":"Å","⪶":"⪶","⪺":"⪺","⋩":"â©","⨓":"â¨","≿":"â¿","с":"Ñ","⋅":"â
","⊡":"â¡","⩦":"⩦","⇘":"â","⤥":"⤥","↘":"â","↘":"â","§":"§","§":"§",";":";","⤩":"⤩","∖":"â","∖":"â","✶":"â¶","𝔰":"ð°","⌢":"â¢","♯":"â¯","щ":"Ñ","ш":"Ñ","∣":"â£","∥":"â¥","­":"Â","­":"Â","σ":"Ï","ς":"Ï","ς":"Ï","∼":"â¼","⩪":"⩪","≃":"â","≃":"â","⪞":"âª","⪠":"⪠","⪝":"âª","⪟":"âª","≆":"â","⨤":"⨤","⥲":"⥲","←":"â","∖":"â","⨳":"⨳","⧤":"⧤","∣":"â£","⌣":"â£","⪪":"⪪","⪬":"⪬","⪬︀":"⪬ï¸","ь":"Ñ","/":"/","⧄":"â§","⌿":"â¿","𝕤":"ð¤","♠":"â ","♠":"â ","∥":"â¥","⊓":"â","⊓︀":"âï¸","⊔":"â","⊔︀":"âï¸","⊏":"â","⊑":"â","⊏":"â","⊑":"â","⊐":"â","⊒":"â","⊐":"â","⊒":"â","□":"â¡","□":"â¡","▪":"âª","▪":"âª","→":"â","𝓈":"ð","∖":"â","⌣":"â£","⋆":"â","☆":"â","★":"â
","ϵ":"ϵ","ϕ":"Ï","¯":"¯","⊂":"â","⫅":"â«
","⪽":"⪽","⊆":"â","⫃":"â«","⫁":"â«","⫋":"â«","⊊":"â","⪿":"⪿","⥹":"⥹","⊂":"â","⊆":"â","⫅":"â«
","⊊":"â","⫋":"â«","⫇":"â«","⫕":"â«","⫓":"â«","≻":"â»","⪸":"⪸","≽":"â½","⪰":"⪰","⪺":"⪺","⪶":"⪶","⋩":"â©","≿":"â¿","∑":"â","♪":"âª","¹":"¹","¹":"¹","²":"²","²":"²","³":"³","³":"³","⊃":"â","⫆":"â«","⪾":"⪾","⫘":"â«","⊇":"â","⫄":"â«","⟉":"â","⫗":"â«","⥻":"⥻","⫂":"â«","⫌":"â«","⊋":"â","⫀":"â«","⊃":"â","⊇":"â","⫆":"â«","⊋":"â","⫌":"â«","⫈":"â«","⫔":"â«","⫖":"â«","⇙":"â","⤦":"⤦","↙":"â","↙":"â","⤪":"⤪","ß":"Ã","ß":"Ã","⌖":"â","τ":"Ï","⎴":"â´","ť":"Å¥","ţ":"Å£","т":"Ñ","⃛":"â","⌕":"â","𝔱":"ð±","∴":"â´","∴":"â´","θ":"θ","ϑ":"Ï","ϑ":"Ï","≈":"â","∼":"â¼"," ":"â","≈":"â","∼":"â¼","þ":"þ","þ":"þ","˜":"Ë","×":"Ã","×":"Ã","⊠":"â ","⨱":"⨱","⨰":"⨰","∭":"â","⤨":"⤨","⊤":"â¤","⌶":"â¶","⫱":"⫱","𝕥":"ð¥","⫚":"â«","⤩":"⤩","‴":"â´","™":"â¢","▵":"âµ","▿":"â¿","◃":"â","⊴":"â´","≜":"â","▹":"â¹","⊵":"âµ","◬":"â¬","≜":"â","⨺":"⨺","⨹":"⨹","⧍":"â§","⨻":"⨻","⏢":"â¢","𝓉":"ð","ц":"Ñ","ћ":"Ñ","ŧ":"ŧ","≬":"â¬","↞":"â","↠":"â ","⇑":"â","⥣":"⥣","ú":"ú","ú":"ú","↑":"â","ў":"Ñ","ŭ":"Å","û":"û","û":"û","у":"Ñ","⇅":"â
","ű":"ű","⥮":"⥮","⥾":"⥾","𝔲":"ð²","ù":"ù","ù":"ù","↿":"â¿","↾":"â¾","▀":"â","⌜":"â","⌜":"â","⌏":"â","◸":"â¸","ū":"Å«","¨":"¨","¨":"¨","ų":"ų","𝕦":"ð¦","↑":"â","↕":"â","↿":"â¿","↾":"â¾","⊎":"â","υ":"Ï
","ϒ":"Ï","υ":"Ï
","⇈":"â","⌝":"â","⌝":"â","⌎":"â","ů":"ů","◹":"â¹","𝓊":"ð","⋰":"â°","ũ":"Å©","▵":"âµ","▴":"â´","⇈":"â","ü":"ü","ü":"ü","⦧":"⦧","⇕":"â","⫨":"⫨","⫩":"â«©","⊨":"â¨","⦜":"â¦","ϵ":"ϵ","ϰ":"ϰ","∅":"â
","ϕ":"Ï","ϖ":"Ï","∝":"â","↕":"â","ϱ":"ϱ","ς":"Ï","⊊︀":"âï¸","⫋︀":"â«ï¸","⊋︀":"âï¸","⫌︀":"â«ï¸","ϑ":"Ï","⊲":"â²","⊳":"â³","в":"в","⊢":"â¢","∨":"â¨","⊻":"â»","≚":"â","⋮":"â®","|":"|","|":"|","𝔳":"ð³","⊲":"â²","⊂⃒":"ââ","⊃⃒":"ââ","𝕧":"ð§","∝":"â","⊳":"â³","𝓋":"ð","⫋︀":"â«ï¸","⊊︀":"âï¸","⫌︀":"â«ï¸","⊋︀":"âï¸","⦚":"â¦","ŵ":"ŵ","⩟":"â©","∧":"â§","≙":"â","℘":"â","𝔴":"ð´","𝕨":"ð¨","℘":"â","≀":"â","≀":"â","𝓌":"ð","⋂":"â","◯":"â¯","⋃":"â","▽":"â½","𝔵":"ðµ","⟺":"âº","⟷":"â·","ξ":"ξ","⟸":"â¸","⟵":"âµ","⟼":"â¼","⋻":"â»","⨀":"â¨","𝕩":"ð©","⨁":"â¨","⨂":"â¨","⟹":"â¹","⟶":"â¶","𝓍":"ð","⨆":"â¨","⨄":"â¨","△":"â³","⋁":"â","⋀":"â","ý":"ý","ý":"ý","я":"Ñ","ŷ":"Å·","ы":"Ñ","¥":"Â¥","¥":"Â¥","𝔶":"ð¶","ї":"Ñ","𝕪":"ðª","𝓎":"ð","ю":"Ñ","ÿ":"ÿ","ÿ":"ÿ","ź":"ź","ž":"ž","з":"з","ż":"ż","ℨ":"â¨","ζ":"ζ","𝔷":"ð·","ж":"ж","⇝":"â","𝕫":"ð«","𝓏":"ð","‍":"â","‌":"â"}
1;function q(e){return e.trim().replace(/[<>"'?&]/g,e=>{let t=e.charCodeAt(0).toString(16);return t.length<2&&(t="0"+t),"&#x"+t.toUpperCase()+";"})}function E(e){return[].concat(e.name||[]).concat(e.name?`<${e.address}>`:e.address).join(" ")}function _(e){let t=[],r=(e,s)=>{if(s&&t.push(", "),e.group){let s=`${e.name}:`;t.push(s),e.group.forEach(r),t.push(";")}else t.push(E(e))};return e.forEach(r),t.join("")}function A(e){return`<a href="mailto:${q(e.address)}" class="postal-email-address">${q(e.name||`<${e.address}>`)}</a>`}function S(e){let t=[],r=(e,s)=>{if(s&&t.push('<span class="postal-email-address-separator">, </span>'),e.group){let s=`<span class="postal-email-address-group">${q(e.name)}:</span>`;t.push(s),e.group.forEach(r),t.push('<span class="postal-email-address-group">;</span>')}else t.push(A(e))};return e.forEach(r),t.join(" ")}function L(e){let t=[];if(e.from&&t.push({key:"From",val:E(e.from)}),e.subject&&t.push({key:"Subject",val:e.subject}),e.date){let r="u"<typeof Intl?e.date:new Intl.DateTimeFormat("default",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1}).format(new Date(e.date));t.push({key:"Date",val:r})}e.to&&e.to.length&&t.push({key:"To",val:_(e.to)}),e.cc&&e.cc.length&&t.push({key:"Cc",val:_(e.cc)}),e.bcc&&e.bcc.length&&t.push({key:"Bcc",val:_(e.bcc)});let r=t.map(e=>e.key.length).reduce((e,t)=>t>e?t:e,0),s=(t=t.flatMap(e=>{let t=r-e.key.length,s=`${e.key}: ${" ".repeat(t)}`,a=`${" ".repeat(e.key.length+1)} ${" ".repeat(t)}`;return(function(e,t,r){e=(e||"").toString(),t=t||76;let s=0,a=e.length,n="",i,o;for(;s<a;){if((i=e.substr(s,t)).length<t){n+=i;break}if(o=i.match(/^[^\n\r]*(\r?\n|\r)/)){n+=i=o[0],s+=i.length;continue}(o=i.match(/(\s+)[^\s]*$/))&&o[0].length-(r?(o[1]||"").length:0)<i.length?i=i.substr(0,i.length-(o[0].length-(r?(o[1]||"").length:0))):(o=e.substr(s+i.length).match(/^[^\s]+(\s*)/))&&(i+=o[0].substr(0,o[0].length-(r?0:(o[1]||"").length))),n+=i,(s+=i.length)<a&&(n+="\r\n")}return n})(e.val,80,!0).split(/\r?\n/).map(e=>e.trim()).map((e,t)=>`${t?a:s}${e}`)})).map(e=>e.length).reduce((e,t)=>t>e?t:e,0),a="-".repeat(s);return` 2${a} 3${t.join("\n")} 4${a} 5`}function C(e){let t=[];if(e.from&&t.push(`<div class="postal-email-header-key">From</div><div class="postal-email-header-value">${A(e.from)}</div>`),e.subject&&t.push(`<div class="postal-email-header-key">Subject</div><div class="postal-email-header-value postal-email-header-subject">${q(e.subject)}</div>`),e.date){let r="u"<typeof Intl?e.date:new Intl.DateTimeFormat("default",{year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!1}).format(new Date(e.date));t.push(`<div class="postal-email-header-key">Date</div><div class="postal-email-header-value postal-email-header-date" data-date="${q(e.date)}">${q(r)}</div>`)}return e.to&&e.to.length&&t.push(`<div class="postal-email-header-key">To</div><div class="postal-email-header-value">${S(e.to)}</div>`),e.cc&&e.cc.length&&t.push(`<div class="postal-email-header-key">Cc</div><div class="postal-email-header-value">${S(e.cc)}</div>`),e.bcc&&e.bcc.length&&t.push(`<div class="postal-email-header-key">Bcc</div><div class="postal-email-header-value">${S(e.bcc)}</div>`),`<div class="postal-email-header">${t.length?'<div class="postal-email-header-row">':""}${t.join('</div>\n<div class="postal-email-header-row">')}${t.length?"</div>":""}</div>`}class T{constructor(e){this.str=(e||"").toString(),this.operatorCurrent="",this.operatorExpecting="",this.node=null,this.escaped=!1,this.list=[],this.operators={'"':'"',"(":")","<":">",",":"",":":";",";":""}}tokenize(){let e=[];for(let e=0,t=this.str.length;e<t;e++){let r=this.str.charAt(e),s=e<t-1?this.str.charAt(e+1):null;this.checkChar(r,s)}return this.list.forEach(t=>{t.value=(t.value||"").toString().trim(),t.value&&e.push(t)}),e}
5checkChar(e,t){if(this.escaped);else if(e===this.operatorExpecting){this.node={type:"operator",value:e},t&&![" "," ","\r","\n",",",";"].includes(t)&&(this.node.noBreak=!0),this.list.push(this.node),this.node=null,this.operatorExpecting="",this.escaped=!1;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=!1;return}else if('"'===this.operatorExpecting&&"\\"===e){this.escaped=!0;return}this.node||(this.node={type:"text",value:""},this.list.push(this.node)),"\n"===e&&(e=" "),(e.charCodeAt(0)>=33||[" "," "].includes(e))&&(this.node.value+=e),this.escaped=!1}}let D=function e(t,r){let s=(r=r||{})._depth||0;if(s>50)return[];let a=new T(t).tokenize(),n=[],i=[],o=[];if(a.forEach(e=>{"operator"===e.type&&(","===e.value||";"===e.value)?(i.length&&n.push(i),i=[]):i.push(e)}),i.length&&n.push(i),n.forEach(t=>{(t=function(t,r){let s,a,n,i=!1,o="text",c=[],l={address:[],comment:[],group:[],text:[],textWasQuoted:[]},d=!1;for(a=0,n=t.length;a<n;a++){let e=t[a],r=a?t[a-1]:null;if("operator"===e.type)switch(e.value){case"<":o="address",d=!1;break;case"(":o="comment",d=!1;break;case":":o="group",i=!0,d=!1;break;case'"':d=!d,o="text";break;default:o="text",d=!1}else e.value&&("address"===o&&(e.value=e.value.replace(/^[^<]*<\s*/,"")),r&&r.noBreak&&l[o].length?(l[o][l[o].length-1]+=e.value,"text"===o&&d&&(l.textWasQuoted[l.textWasQuoted.length-1]=!0)):(l[o].push(e.value),"text"===o&&l.textWasQuoted.push(d)))}if(!l.text.length&&l.comment.length&&(l.text=l.comment,l.comment=[]),i){l.text=l.text.join(" ");let t=[];l.group.length&&e(l.group.join(","),{_depth:r+1}).forEach(e=>{e.group?t=t.concat(e.group):t.push(e)}),c.push({name:h(l.text||s&&s.name),group:t})}else{if(!l.address.length&&l.text.length){for(a=l.text.length-1;a>=0;a--)if(!l.textWasQuoted[a]&&l.text[a].match(/^[^@\s]+@[^@\s]+$/)){l.address=l.text.splice(a,1),l.textWasQuoted.splice(a,1);break}let e=function(e){return l.address.length?e:(l.address=[e.trim()]," ")};if(!l.address.length)for(a=l.text.length-1;a>=0&&(l.textWasQuoted[a]||(l.text[a]=l.text[a].replace(/\s*\b[^@\s]+@[^\s]+\b\s*/,e).trim(),!l.address.length));a--);}if(!l.text.length&&l.comment.length&&(l.text=l.comment,l.comment=[]),l.address.length>1&&(l.text=l.text.concat(l.address.splice(1))),l.text=l.text.join(" "),l.address=l.address.join(" "),!l.address&&/^=\?[^=]+?=$/.test(l.text.trim())){let t=h(l.text);if(/<[^<>]+@[^<>]+>/.test(t)){let r=e(t);if(r&&r.length)return r}return[{address:"",name:t}]}(s={address:l.address||l.text||"",name:h(l.text||l.address||"")}).address===s.name&&((s.address||"").match(/@/)?s.name="":s.address=""),c.push(s)}return c}(t,s)).length&&(o=o.concat(t))}),r.flatten){let e=[],t=r=>{r.forEach(r=>{if(r.group)return t(r.group);e.push(r)})};return t(o),e}return o};function $(e){return e.replace(/-(.)/g,(e,t)=>t.toUpperCase())}class N{static parse(e,t){return new N(t).parse(e)}constructor(e){this.options=e||{},this.mimeOptions={maxNestingDepth:this.options.maxNestingDepth||256,maxHeadersSize:this.options.maxHeadersSize||2097152},this.root=this.currentNode=new x({postalMime:this,...this.mimeOptions}),this.boundaries=[],this.textContent={},this.attachments=[],this.attachmentEncoding=(this.options.attachmentEncoding||"").toString().replace(/[-_\s]/g,"").trim().toLowerCase()||"arraybuffer",this.started=!1}async finalize(){await this.root.finalize()}async processLine(e,t){let r=this.boundaries;if(r.length&&e.length>2&&45===e[0]&&45===e[1])for(let s=r.length-1;s>=0;s--){let a=r[s];if(e.length<a.value.length+2)continue;let n=!0;for(let t=0;t<a.value.length;t++)if(e[t+2]!==a.value[t]){n=!1;break}if(!n)continue;let i=a.value.length+2,o=!1;e.length>=a.value.length+4&&45===e[a.value.length+2]&&45===e[a.value.length+3]&&(o=!0,i=a.value.length+4);let c=!0;for(let t=i;t<e.length;t++)if(32!==e[t]&&9!==e[t]){c=!1;break}if(c){if(o?(await a.node.finalize(),this.currentNode=a.node.parentNode||this.root):(await a.node.finalizeChildNodes(),this.currentNode=new x({postalMime:this,parentNode:a.node,parentMultipartType:a.node.contentType.multipart,...this.mimeOptions})),t)return this.finalize();return}}if(this.currentNode.feed(e),t)return this.finalize()}readLine(){let e=this.readPos,t=this.readPos;for(;this.readPos<this.av.length;){let e=this.av[this.readPos++];if(13!==e&&10!==e&&(t=this.readPos),10===e)break}return{bytes:new Uint8Array(this.buf,e,t-e),done:this.readPos>=this.av.length}}async processNodeTree(){let e={},t=new Set,r=this.textMap=new Map,s=this.forceRfc822Attachments(),n=async(e,i,o)=>
5{if(i=i||!1,o=o||!1,e.contentType.multipart)"alternative"===e.contentType.multipart?i=e:"related"===e.contentType.multipart&&(o=e);else if(this.isInlineMessageRfc822(e)&&!s){let s=new N;e.subMessage=await s.parse(e.content),r.has(e)||r.set(e,{});let a=r.get(e);for(let n of((e.subMessage.text||!e.subMessage.html)&&(a.plain=a.plain||[],a.plain.push({type:"subMessage",value:e.subMessage}),t.add("plain")),e.subMessage.html&&(a.html=a.html||[],a.html.push({type:"subMessage",value:e.subMessage}),t.add("html")),s.textMap&&s.textMap.forEach((e,t)=>{r.set(t,e)}),e.subMessage.attachments||[]))this.attachments.push(n)}else if(this.isInlineTextNode(e)){let s=e.contentType.parsed.value.substr(e.contentType.parsed.value.indexOf("/")+1),a=i||e;r.has(a)||r.set(a,{});let n=r.get(a);n[s]=n[s]||[],n[s].push({type:"text",value:e.getTextContent()}),t.add(s)}else if(e.content){let t=e.contentDisposition?.parsed?.params?.filename||e.contentType.parsed.params.name||null,r={filename:t?h(t):null,mimeType:e.contentType.parsed.value,disposition:e.contentDisposition?.parsed?.value||null};switch(o&&e.contentId&&(r.related=!0),e.contentDescription&&(r.description=e.contentDescription),e.contentId&&(r.contentId=e.contentId),e.contentType.parsed.value){case"text/calendar":case"application/ics":{e.contentType.parsed.params.method&&(r.method=e.contentType.parsed.params.method.toString().toUpperCase().trim());let t=e.getTextContent().replace(/\r?\n/g,"\n").replace(/\n*$/,"\n");r.content=a.encode(t);break}default:r.content=e.content}this.attachments.push(r)}for(let t of e.childNodes)await n(t,i,o)};await n(this.root,!1,!1),r.forEach(r=>{t.forEach(t=>{if(e[t]||(e[t]=[]),r[t])r[t].forEach(r=>{switch(r.type){case"text":e[t].push(r.value);break;case"subMessage":switch(t){case"html":e[t].push(C(r.value));break;case"plain":e[t].push(L(r.value))}}});else{let s;switch(t){case"html":s="plain";break;case"plain":s="html"}(r[s]||[]).forEach(r=>{switch(r.type){case"text":switch(t){case"html":e[t].push("<div>"+q(r.value).replace(/\n/g,"<br />")+"</div>");break;case"plain":var s;e[t].push((s=(s=r.value).replace(/\r?\n/g,"\x01").replace(/<\!\-\-.*?\-\->/gi," ").replace(/<br\b[^>]*>/gi,"\n").replace(/<\/?(p|div|table|tr|td|th)\b[^>]*>/gi,"\n\n").replace(/<script\b[^>]*>.*?<\/script\b[^>]*>/gi," ").replace(/^.*<body\b[^>]*>/i,"").replace(/^.*<\/head\b[^>]*>/i,"").replace(/^.*<\!doctype\b[^>]*>/i,"").replace(/<\/body\b[^>]*>.*$/i,"").replace(/<\/html\b[^>]*>.*$/i,"").replace(/<a\b[^>]*href\s*=\s*["']?([^\s"']+)[^>]*>/gi," ($1) ").replace(/<\/?(span|em|i|strong|b|u|a)\b[^>]*>/gi,"").replace(/<li\b[^>]*>[\n\u0001\s]*/gi,"* ").replace(/<hr\b[^>]*>/g,"\n-------------\n").replace(/<[^>]*>/g," ").replace(/\u0001/g,"\n").replace(/[ \t]+/g," ").replace(/^\s+$/gm,"").replace(/\n\n+/g,"\n\n").replace(/^\n+/,"\n").replace(/\n+$/,"\n")).replace(/&(#\d+|#x[a-f0-9]+|[a-z]+\d*);?/gi,(e,t)=>{let r;if("string"==typeof k[e])return k[e];if("#"!==t.charAt(0)||";"!==e.charAt(e.length-1))return e;r="x"===t.charAt(1)?parseInt(t.substr(2),16):parseInt(t.substr(1),10);let s="";return r>=55296&&r<=57343||r>1114111?"�":(r>65535&&(r-=65536,s+=String.fromCharCode(r>>>10&1023|55296),r=56320|1023&r),s+=String.fromCharCode(r))}))}break;case"subMessage":switch(t){case"html":e[t].push(C(r.value));break;case"plain":e[t].push(L(r.value))}}})}})}),Object.keys(e).forEach(t=>{e[t]=e[t].join("\n")}),this.textContent=e}isInlineTextNode(e){if(e.contentDisposition?.parsed?.value==="attachment")return!1;switch(e.contentType.parsed?.value){case"text/html":case"text/plain":return!0;default:return!1}}isInlineMessageRfc822(e){return e.contentType.parsed?.value==="message/rfc822"&&"inline"===(e.contentDisposition?.parsed?.value||(this.options.rfc822Attachments?"attachment":"inline"))}forceRfc822Attachments(){if(this.options.forceRfc822Attachments)return!0;let e=!1,t=r=>{for(let s of(!r.contentType.multipart&&r.contentType.parsed&&["message/delivery-status","message/feedback-report"].includes(r.contentType.parsed.value)&&(e=!0),r.childNodes))t(s)};return t(this.root),e}async resolveStream(e){let t=0,r=[],s=e.getReader();for(;;){let{done:e,value:a}=await s.read();if(e)break;r.push(a),t+=a.length}let a=new Uint8Array(t),n=0;for(let e of r)a.set(e,n),n+=e.length;return a}
5async parse(e){if(this.started)throw Error("Can not reuse parser, create a new PostalMime object");for(this.started=!0,e&&"function"==typeof e.getReader&&(e=await this.resolveStream(e)),"string"==typeof(e=e||new ArrayBuffer(0))&&(e=a.encode(e)),(e instanceof Blob||"[object Blob]"===Object.prototype.toString.call(e))&&(e=await d(e)),e.buffer instanceof ArrayBuffer&&(e=new Uint8Array(e).buffer),this.buf=e,this.av=new Uint8Array(e),this.readPos=0;this.readPos<this.av.length;){let e=this.readLine();await this.processLine(e.bytes,e.done)}await this.processNodeTree();let t={headers:this.root.headers.map(e=>({key:e.key,originalKey:e.originalKey,value:e.value})).reverse()};for(let e of["from","sender"]){let r=this.root.headers.find(t=>t.key===e);if(r&&r.value){let s=D(r.value);s&&s.length&&(t[e]=s[0])}}for(let e of["delivered-to","return-path"]){let r=this.root.headers.find(t=>t.key===e);if(r&&r.value){let s=D(r.value);s&&s.length&&s[0].address&&(t[$(e)]=s[0].address)}}for(let e of["to","cc","bcc","reply-to"]){let r=this.root.headers.filter(t=>t.key===e),s=[];r.filter(e=>e&&e.value).map(e=>D(e.value)).forEach(e=>s=s.concat(e||[])),s&&s.length&&(t[$(e)]=s)}for(let e of["subject","message-id","in-reply-to","references"]){let r=this.root.headers.find(t=>t.key===e);r&&r.value&&(t[$(e)]=h(r.value))}let r=this.root.headers.find(e=>"date"===e.key);if(r){let e=new Date(r.value);t.date=e="Invalid Date"===e.toString()?r.value:e.toISOString()}switch(this.textContent?.html&&(t.html=this.textContent.html),this.textContent?.plain&&(t.text=this.textContent.plain),t.attachments=this.attachments,t.headerLines=(this.root.rawHeaderLines||[]).slice().reverse(),this.attachmentEncoding){case"arraybuffer":break;case"base64":for(let e of t.attachments||[])e?.content&&(e.content=function(e){for(var t,r,s,a,n="",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o=new Uint8Array(e),c=o.byteLength,l=c%3,d=c-l,u=0;u<d;u+=3)t=(0xfc0000&(a=o[u]<<16|o[u+1]<<8|o[u+2]))>>18,n+=i[t]+i[r=(258048&a)>>12]+i[s=(4032&a)>>6]+i[63&a];return 1==l?(t=(252&(a=o[d]))>>2,n+=i[t]+i[r=(3&a)<<4]+"=="):2==l&&(t=(64512&(a=o[d]<<8|o[d+1]))>>10,n+=i[t]+i[r=(1008&a)>>4]+i[s=(15&a)<<2]+"="),n}(e.content),e.encoding="base64");break;case"utf8":let s=new TextDecoder("utf8");for(let e of t.attachments||[])e?.content&&(e.content=s.decode(e.content),e.encoding="utf8");break;default:throw Error("Unknown attachment encoding")}return t}}var R=e.i(330024);function U(e){let t=new URLSearchParams;return void 0!==e.limit&&t.set("limit",e.limit.toString()),"after"in e&&void 0!==e.after&&t.set("after",e.after),"before"in e&&void 0!==e.before&&t.set("before",e.before),t.toString()}var I=class{constructor(e){this.resend=e}async create(e,t={}){return await this.resend.post("/api-keys",e,t)}async list(e={}){let t=U(e),r=t?`/api-keys?${t}`:"/api-keys";return await this.resend.get(r)}async remove(e){return await this.resend.delete(`/api-keys/${e}`)}},B=class{constructor(e){this.resend=e}async get(e){return await this.resend.get(`/automations/${e.automationId}/runs/${e.runId}`)}async list(e){let t=new URLSearchParams(U(e));if(e.status){let r=Array.isArray(e.status)?e.status.join(","):e.status;t.set("status",r)}let r=t.toString(),s=r?`/automations/${e.automationId}/runs?${r}`:`/automations/${e.automationId}/runs`;return await this.resend.get(s)}};function O(e){switch(e.type){case"trigger":return{key:e.key,type:e.type,config:{event_name:e.config.eventName}};case"delay":case"condition":case"contact_delete":return{key:e.key,type:e.type,config:e.config};case"send_email":return{key:e.key,type:e.type,config:{template:e.config.template,subject:e.config.subject,from:e.config.from,reply_to:e.config.replyTo}};case"wait_for_event":return{key:e.key,type:e.type,config:{event_name:e.config.eventName,timeout:e.config.timeout,filter_rule:e.config.filterRule}};case"contact_update":return{key:e.key,type:e.type,config:{first_name:e.config.firstName,last_name:e.config.lastName,unsubscribed:e.config.unsubscribed,properties:e.config.properties}};case"add_to_segment":return{key:e.key,type:e.type,config:{segment_id:e.config.segmentId}}}}function M(e){return{from:e.from,to:e.to,type:e.type}}var P=class{constructor(e){this.resend=e,this.runs=new B(this.resend)}async create(e){return await this.resend.post("/automations",{name:e.name,status:e.status,steps:e.steps.map(O),connections:e.connections.map(M)})}async list(e={}){let t=[U(e)];e.status&&t.push(`status=${encodeURIComponent(e.status)}`);let r=t.filter(Boolean).join("&"),s=r?`/automations?${r}`:"/automations";return await this.resend.get(s)}async get(e){return await this.resend.get(`/automations/${e}`)}async remove(e){return await this.resend.delete(`/automations/${e}`)}async update(e,t){let r={};return void 0!==t.name&&(r.name=t.name),void 0!==t.status&&(r.status=t.status),void 0!==t.steps&&(r.steps=t.steps.map(O)),void 0!==t.connections&&(r.connections=t.connections.map(M)),await this.resend.patch(`/automations/${e}`,r)}async stop(e){return await this.resend.post(`/automations/${e}/stop`)}};function V(e){var t;return{attachments:(t=e.attachments,t?.map(e=>({content:e.content,filename:e.filename,path:e.path,content_type:e.contentType,content_id:e.contentId}))),bcc:e.bcc,cc:e.cc,from:e.from,headers:e.headers,html:e.html,reply_to:e.replyTo,scheduled_at:e.scheduledAt,subject:e.subject,tags:e.tags,text:e.text,to:e.to,template:e.template?{id:e.template.id,variables:e.template.variables}:void 0,topic_id:e.topicId}}async function j(e){let t;try{({render:t}=await Promise.resolve().then(()=>{let e=Error("Cannot find module '@react-email/render'");throw e.code="MODULE_NOT_FOUND",e}))}catch{throw Error("Failed to render React component. Make sure to install `@react-email/render` or `@react-email/components`.")}return t(e)}var H=class{constructor(e){this.resend=e}async send(e,t){return this.create(e,t)}async create(e,t){let r=[];for(let t of e)t.react&&(t.html=await j(t.react),t.react=void 0),r.push(V(t));return await this.resend.post("/emails/batch",r,{...t,headers:{"x-batch-vali
5dation":t?.batchValidation??"strict",...t?.headers}})}},z=class{constructor(e){this.resend=e}async create(e,t={}){let r=e.react?await j(e.react):e.html;return await this.resend.post("/broadcasts",{name:e.name,segment_id:e.segmentId,audience_id:e.audienceId,preview_text:e.previewText,from:e.from,html:r,reply_to:e.replyTo,subject:e.subject,text:e.text,topic_id:e.topicId,send:e.send,scheduled_at:e.scheduledAt},t)}async send(e,t){return await this.resend.post(`/broadcasts/${e}/send`,{scheduled_at:t?.scheduledAt})}async list(e={}){let t=U(e),r=t?`/broadcasts?${t}`:"/broadcasts";return await this.resend.get(r)}async get(e){return await this.resend.get(`/broadcasts/${e}`)}async remove(e){return await this.resend.delete(`/broadcasts/${e}`)}async update(e,t){let r=t.react?await j(t.react):t.html;return await this.resend.patch(`/broadcasts/${e}`,{name:t.name,segment_id:t.segmentId,audience_id:t.audienceId,from:t.from,html:r,text:t.text,subject:t.subject,reply_to:t.replyTo,preview_text:t.previewText,topic_id:t.topicId})}};function G(e){return{id:e.id,key:e.key,createdAt:e.created_at,type:e.type,fallbackValue:e.fallback_value}}function F(e){return"key"in e?{key:e.key,type:e.type,fallback_value:e.fallbackValue}:{fallback_value:e.fallbackValue}}var Q=class{constructor(e){this.resend=e}async create(e){let t=F(e);return await this.resend.post("/contact-properties",t)}async list(e={}){let t=U(e),r=t?`/contact-properties?${t}`:"/contact-properties",s=await this.resend.get(r);return s.data?{data:{...s.data,data:s.data.data.map(e=>G(e))},headers:s.headers,error:null}:s}async get(e){if(!e)return{data:null,headers:null,error:{message:"Missing `id` field.",statusCode:null,name:"missing_required_field"}};let t=await this.resend.get(`/contact-properties/${e}`);return t.data?{data:{object:"contact_property",...G(t.data)},headers:t.headers,error:null}:t}async update(e){if(!e.id)return{data:null,headers:null,error:{message:"Missing `id` field.",statusCode:null,name:"missing_required_field"}};let t=F(e);return await this.resend.patch(`/contact-properties/${e.id}`,t)}async remove(e){return e?await this.resend.delete(`/contact-properties/${e}`):{data:null,headers:null,error:{message:"Missing `id` field.",statusCode:null,name:"missing_required_field"}}}},W=class{constructor(e){this.resend=e}async create(e,t={}){let r=this.buildCreateFormData(e);return this.resend.post("/contacts/imports",r,t)}async list(e={}){let t=new URLSearchParams(U(e));void 0!==e.status&&t.set("status",e.status);let r=t.toString(),s=r?`/contacts/imports?${r}`:"/contacts/imports";return this.resend.get(s)}async get(e){return this.resend.get(`/contacts/imports/${e}`)}buildCreateFormData(e){let t=new FormData;return t.append("file",e.file),this.appendField(t,"column_map",this.buildColumnMap(e.columnMap??null)),this.appendField(t,"on_conflict",e.onConflict??null),this.appendField(t,"segments",e.segments??null),this.appendField(t,"topics",e.topics??null),t}buildColumnMap(e){return null===e?null:{email:e.email,first_name:e.firstName,last_name:e.lastName,unsubscribed:e.unsubscribed,properties:e.properties}}appendField(e,t,r){null!==r&&e.append(t,"string"==typeof r?r:JSON.stringify(r))}},J=class{constructor(e){this.resend=e}async list(e){if(!e.contactId&&!e.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};let t=e.email?e.email:e.contactId,r=U(e),s=r?`/contacts/${t}/segments?${r}`:`/contacts/${t}/segments`;return await this.resend.get(s)}async add(e){if(!e.contactId&&!e.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};let t=e.email?e.email:e.contactId;return this.resend.post(`/contacts/${t}/segments/${e.segmentId}`)}async remove(e){if(!e.contactId&&!e.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};let t=e.email?e.email:e.contactId;return this.resend.delete(`/contacts/${t}/segments/${e.segmentId}`)}},K=class{constructor(e){this.resend=e}async update(e){if(!e.id&&!e.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};let t=e.email?e.email:e.id;return this.resend.patch(`/contacts/${t}/topics`,e.topics)}async list(e){if(!e.id&&!e.email)return{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}};let t=e.email?e.email:e.id,r=U(e),s=r?`/contacts/${t}/topics?${r}`:`/contacts/${t}/topics`;return this.resend.get(s)}},Y=class{constructor(e){this.resend=e,this.imports=new W(this.resend),this.topics=new K(this.resend),this.segments=new J(this.resend)}async create(e,t={}){return"audienceId"in e?"segments"in e||"topics"in e?{data:null,headers:null,error:{message:"`audienceId` is deprecated, and cannot be used together with `segments` or `topics`. Use `segments` instead to add one or more segments to the new contact.",statusCode:null,name:"invalid_parameter"}}
5:await this.resend.post(`/audiences/${e.audienceId}/contacts`,{unsubscribed:e.unsubscribed,email:e.email,first_name:e.firstName,last_name:e.lastName,properties:e.properties},t):await this.resend.post("/contacts",{unsubscribed:e.unsubscribed,email:e.email,first_name:e.firstName,last_name:e.lastName,properties:e.properties,segments:e.segments,topics:e.topics},t)}async list(e={}){let t=e.segmentId??e.audienceId;if(!t){let t=U(e),r=t?`/contacts?${t}`:"/contacts";return await this.resend.get(r)}let r=U(e),s=r?`/segments/${t}/contacts?${r}`:`/segments/${t}/contacts`;return await this.resend.get(s)}async get(e){return"string"==typeof e?this.resend.get(`/contacts/${e}`):e.id||e.email?e.audienceId?this.resend.get(`/audiences/${e.audienceId}/contacts/${e?.email?e?.email:e?.id}`):this.resend.get(`/contacts/${e?.email?e?.email:e?.id}`):{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}}}async update(e){return e.id||e.email?e.audienceId?await this.resend.patch(`/audiences/${e.audienceId}/contacts/${e?.email?e?.email:e?.id}`,{unsubscribed:e.unsubscribed,first_name:e.firstName,last_name:e.lastName,properties:e.properties}):await this.resend.patch(`/contacts/${e?.email?e?.email:e?.id}`,{unsubscribed:e.unsubscribed,first_name:e.firstName,last_name:e.lastName,properties:e.properties}):{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}}}async remove(e){return"string"==typeof e?this.resend.delete(`/contacts/${e}`):e.id||e.email?e.audienceId?this.resend.delete(`/audiences/${e.audienceId}/contacts/${e?.email?e?.email:e?.id}`):this.resend.delete(`/contacts/${e?.email?e?.email:e?.id}`):{data:null,headers:null,error:{message:"Missing `id` or `email` field.",statusCode:null,name:"missing_required_field"}}}},Z=class{constructor(e){this.resend=e}async create(e,t={}){return await this.resend.post("/domains/claim",{name:e.name,region:e.region,custom_return_path:e.customReturnPath,open_tracking:e.openTracking,click_tracking:e.clickTracking,tracking_subdomain:e.trackingSubdomain},t)}async get(e){return await this.resend.get(`/domains/${e}/claim`)}async verify(e){return await this.resend.post(`/domains/${e}/claim/verify`)}},X=class{constructor(e){this.resend=e,this.claims=new Z(this.resend)}async create(e,t={}){return await this.resend.post("/domains",{name:e.name,region:e.region,custom_return_path:e.customReturnPath,capabilities:e.capabilities,open_tracking:e.openTracking,click_tracking:e.clickTracking,tls:e.tls,tracking_subdomain:e.trackingSubdomain},t)}async list(e={}){let t=U(e),r=t?`/domains?${t}`:"/domains";return await this.resend.get(r)}async get(e){return await this.resend.get(`/domains/${e}`)}async update(e){return await this.resend.patch(`/domains/${e.id}`,{click_tracking:e.clickTracking,open_tracking:e.openTracking,tls:e.tls,capabilities:e.capabilities,tracking_subdomain:e.trackingSubdomain})}async remove(e){return await this.resend.delete(`/domains/${e}`)}async verify(e){return await this.resend.post(`/domains/${e}/verify`)}},ee=class{constructor(e){this.resend=e}async get(e){let{emailId:t,id:r}=e;return await this.resend.get(`/emails/${t}/attachments/${r}`)}async list(e){let{emailId:t}=e,r=U(e),s=r?`/emails/${t}/attachments?${r}`:`/emails/${t}/attachments`;return await this.resend.get(s)}},et=class{constructor(e){this.resend=e}async get(e){let{emailId:t,id:r}=e;return await this.resend.get(`/emails/receiving/${t}/attachments/${r}`)}async list(e){let{emailId:t}=e,r=U(e),s=r?`/emails/receiving/${t}/attachments?${r}`:`/emails/receiving/${t}/attachments`;return await this.resend.get(s)}},er=class{constructor(e){this.resend=e,this.attachments=new et(e)}async get(e,t={}){let r=new URLSearchParams;void 0!==t.html_format&&r.set("html_format",t.html_format);let s=r.toString(),a=s?`/emails/receiving/${e}?${s}`:`/emails/receiving/${e}`;return await this.resend.get(a)}async list(e={}){let t=U(e),r=t?`/emails/receiving?${t}`:"/emails/receiving";return await this.resend.get(r)}async forward(e,t={}){let{emailId:r,to:s,from:a}=e,n=!1!==e.passthrough,i=await this.get(r);if(i.error)return{data:null,error:i.error,headers:i.headers};let o=i.data,c=o.subject||"(no subject)";if(n)return this.forwardPassthrough(o,{to:s,from:a,subject:c},t);let l=c.startsWith("Fwd:")?c:`Fwd: ${c}`;return this.forwardWrapped(o,{to:s,from:a,subject:l,text:"text"in e?e.text:void 0,html:"html"in e?e.html:void 0},t)}async forwardPassthrough(e,t,r){let{to:s,from:a,subject:n}=t;if(!e.raw?.download_url)return{data:null,error:{name:"validation_error",message:"Raw email content is not available for this email",statusCode:400},headers:null};let i=await fetch(e.raw.download_url);if(!i.ok)return{data:null,error:{name:"application_error",message:"Failed to download raw email content",statusCode:i.status},headers:null};let o=await i.text(),c=await N.parse(o,{attachmentEncoding:"base64"}),l=c.attachments.map(e=>{let t=e.contentId?e.contentId.replace(/^<|>$/g,""):void 0;return{filename:e.filename,content:e.content.toString(),content_type:e.mimeType,content_id:t||void 0}});return await this.resend.post("/emails",{from:a,to:s,subject:n,text:c.text||void 0,html:c.html||void 0,attachments:l.length>0?l:void 0},r)}async forwardWrapped(e,t,r){let{to:a,from:n,subject:i,text:o,html:c}=t;if(!e.raw?.download_url)return{data:null,error:{name:"validation_error",message:"Raw email content is not available for this email",statusCode:400},headers:null};let l=await fetch(e.raw.download_url);if(!l.ok)return{data:null,error:{name:"application_error",message:"Failed to download raw email content",statusCode:l.status},headers:null};let d=await l.text();return await this.resend.post("/emails",{from:n,to:a,subject:i,text:o,html:c,attachments:[{filename:"forwarded_message.eml",content:s.Buffer.from(d).toString("base64"),content_type:"message/rfc822"}]},r)}},es=class{constructor(e){this.resend=e,this.attachments=new ee(e),this.receiving=new er(e)}async send(e,t={}){return this.create(e,t)}async create(e,t={}){let r={...e};return e.react&&(r.html=await j(e.react)),await this.resend.post("/emails",V(r),t)}async get(e){return await this.resend.get(`/emails/${e}`)}async list(e={}){let t=U(e),r=t?`/emails?${t}`:"/emails";return await this.resend.get(r)}async update(e){return await this.resend.patch(`/emails/${e.id}`,{scheduled_at:e.scheduledAt})}async cancel(e){return await this.resend.post(`/emails/${e}/cancel`)}},ea=class{constructor(e){this.resend=e}async send(e){return await this.resend.post("/events/send",{event:e.event,contact_id:e.contactId,email:e.email,payload:e.payload})}async create(e){return await this.resend.post("/events",e)}async get(e){return await this.resend.get(`/events/${encodeURIComponent(e)}`)}
5async list(e={}){let t=U(e),r=t?`/events?${t}`:"/events";return await this.resend.get(r)}async update(e,t){return await this.resend.patch(`/events/${encodeURIComponent(e)}`,t)}async remove(e){return await this.resend.delete(`/events/${encodeURIComponent(e)}`)}},en=class{constructor(e){this.resend=e}async list(e={}){let t=U(e),r=t?`/logs?${t}`:"/logs";return await this.resend.get(r)}async get(e){return await this.resend.get(`/logs/${e}`)}},ei=class{constructor(e){this.resend=e}async list(e={}){let t=U(e),r=t?`/oauth/grants?${t}`:"/oauth/grants";return await this.resend.get(r)}async revoke(e){return await this.resend.delete(`/oauth/grants/${e}`)}},eo=class{constructor(e){this.resend=e}async create(e,t={}){return await this.resend.post("/segments",e,t)}async list(e={}){let t=U(e),r=t?`/segments?${t}`:"/segments";return await this.resend.get(r)}async get(e){return await this.resend.get(`/segments/${e}`)}async remove(e){return await this.resend.delete(`/segments/${e}`)}},ec=class{constructor(e){this.resend=e}async add(e){return this.resend.post("/suppressions/batch/add",e)}async remove(e){return this.resend.post("/suppressions/batch/remove",e)}};let el=()=>({data:null,headers:null,error:{message:"Missing `id` field.",statusCode:null,name:"missing_required_field"}});var ed=class{constructor(e){this.resend=e,this.batch=new ec(e)}async add(e){return this.resend.post("/suppressions",e)}async list(e={}){let t=function(e){let{origin:t,...r}=e,s=new URLSearchParams(U(r));return t&&s.set("origin",t),s.toString()}(e),r=t?`/suppressions?${t}`:"/suppressions";return this.resend.get(r)}async get(e){return e?this.resend.get(`/suppressions/${encodeURIComponent(e)}`):el()}async remove(e){return e?this.resend.delete(`/suppressions/${encodeURIComponent(e)}`):el()}};function eu(e){var t;return{name:"name"in e?e.name:void 0,subject:e.subject,html:e.html,text:e.text,alias:e.alias,from:e.from,reply_to:e.replyTo,variables:(t=e.variables,t?.map(e=>({key:e.key,type:e.type,fallback_value:e.fallbackValue})))}}var eh=class{constructor(e,t){this.promise=e,this.publishFn=t}then(e,t){return this.promise.then(e,t)}async publish(){let{data:e,error:t}=await this.promise;return t?{data:null,headers:null,error:t}:this.publishFn(e.id)}},ep=class{constructor(e){this.resend=e}create(e){return new eh(this.performCreate(e),this.publish.bind(this))}async performCreate(e){let t={...e};return e.react&&(t.html=await j(e.react)),this.resend.post("/templates",eu(t))}async remove(e){return await this.resend.delete(`/templates/${e}`)}async get(e){return await this.resend.get(`/templates/${e}`)}async list(e={}){return this.resend.get(`/templates${function(e={}){let t=new URLSearchParams;return e.before&&t.set("before",e.before),e.after&&t.set("after",e.after),e.limit&&t.set("limit",e.limit.toString()),t.size>0?`?${t.toString()}`:""}(e)}`)}duplicate(e){return new eh(this.resend.post(`/templates/${e}/duplicate`),this.publish.bind(this))}async publish(e){return await this.resend.post(`/templates/${e}/publish`)}async update(e,t){return await this.resend.patch(`/templates/${e}`,eu(t))}},ef=class{constructor(e){this.resend=e}async create(e){let{defaultSubscription:t,...r}=e;return await this.resend.post("/topics",{...r,default_subscription:t})}async list(){return await this.resend.get("/topics")}async get(e){return e?await this.resend.get(`/topics/${e}`):{data:null,headers:null,error:{message:"Missing `id` field.",statusCode:null,name:"missing_required_field"}}}async update(e){return e.id?await this.resend.patch(`/topics/${e.id}`,e):{data:null,headers:null,error:{message:"Missing `id` field.",statusCode:null,name:"missing_required_field"}}}async remove(e){return e?await this.resend.delete(`/topics/${e}`):{data:null,headers:null,error:{message:"Missing `id` field.",statusCode:null,name:"missing_required_field"}}}},em=class{constructor(e){this.resend=e}async create(e,t={}){return await this.resend.post("/webhooks",e,t)}async get(e){return await this.resend.get(`/webhooks/${e}`)}async list(e={}){let t=U(e),r=t?`/webhooks?${t}`:"/webhooks";return await this.resend.get(r)}async update(e,t){return await this.resend.patch(`/webhooks/${e}`,t)}async remove(e){return await this.resend.delete(`/webhooks/${e}`)}verify(e){return new R.Webhook(e.webhookSecret).verify(e.payload,{"webhook-id":e.headers.id,"webhook-timestamp":e.headers.timestamp,"webhook-signature":e.headers.signature})}},eg=class{constructor(e,t){if(this.key=e,this.segments=new eo(this),this.apiKeys=new I(this),this.audiences=this.segments,this.automations=new P(this),this.batch=new H(this),this.broadcasts=new z(this),this.contactProperties=new Q(this),this.contacts=new Y(this),this.domains=new X(this),this.emails=new es(this),this.events=new ea(this),this.logs=new en(this),this.oauthGrants=new ei(this),this.suppressions=new ed(this),this.templates=new ep(this),this.topics=new ef(this),this.webhooks=new em(this),!e&&(void 0!==r.default&&r.default.env&&(this.key=r.default.env.RESEND_API_KEY),!this.key))throw Error('Missing API key. Pass it to the constructor `new Resend("re_123")`');this.baseUrl=t?.baseUrl??(void 0!==r.default&&r.default.env&&r.default.env.RESEND_BASE_URL||"https://api.resend.com"),this.userAgent=t?.userAgent??(void 0!==r.default&&r.default.env&&r.default.env.RESEND_USER_AGENT||"resend-node:6.18.0"),this.headers=new Headers({Authorization:`Bearer ${this.key}`,"User-Agent":this.userAgent,"Content-Type":"application/json"})}logError(e,t,r){}
5async fetchRequest(e,t={}){try{let r=await fetch(`${this.baseUrl}${e}`,t);if(!r.ok)try{let t=await r.text(),s=JSON.parse(t);return this.logError(s,e,r.status),{data:null,error:s,headers:Object.fromEntries(r.headers.entries())}}catch(s){if(s instanceof SyntaxError){let t={name:"application_error",statusCode:r.status,message:"Internal server error. We are unable to process your request right now, please try again later."};return this.logError(t,e,r.status),{data:null,error:t,headers:Object.fromEntries(r.headers.entries())}}let t={message:r.statusText,statusCode:r.status,name:"application_error"};if(s instanceof Error){let a={...t,message:s.message};return this.logError(a,e,r.status),{data:null,error:a,headers:Object.fromEntries(r.headers.entries())}}return this.logError(t,e,r.status),{data:null,error:t,headers:Object.fromEntries(r.headers.entries())}}return{data:await r.json(),error:null,headers:Object.fromEntries(r.headers.entries())}}catch{let t={name:"application_error",statusCode:null,message:"Unable to fetch data. The request could not be resolved."};return this.logError(t,e),{data:null,error:t,headers:null}}}async post(e,t,r={}){let s=new Headers(this.headers),a="u">typeof FormData&&t instanceof FormData;if(a&&s.delete("Content-Type"),r.headers)for(let[e,t]of new Headers(r.headers).entries())s.set(e,t);r.idempotencyKey&&s.set("Idempotency-Key",r.idempotencyKey);let n={method:"POST",body:a?t:JSON.stringify(t),...r,headers:s};return this.fetchRequest(e,n)}async get(e,t={}){let r=new Headers(this.headers);if(t.headers)for(let[e,s]of new Headers(t.headers).entries())r.set(e,s);let s={method:"GET",...t,headers:r};return this.fetchRequest(e,s)}async put(e,t,r={}){let s=new Headers(this.headers);if(r.headers)for(let[e,t]of new Headers(r.headers).entries())s.set(e,t);let a={method:"PUT",body:JSON.stringify(t),...r,headers:s};return this.fetchRequest(e,a)}async patch(e,t,r={}){let s=new Headers(this.headers);if(r.headers)for(let[e,t]of new Headers(r.headers).entries())s.set(e,t);let a={method:"PATCH",body:JSON.stringify(t),...r,headers:s};return this.fetchRequest(e,a)}async delete(e,t,r={}){let s=new Headers(this.headers);if(r.headers)for(let[e,t]of new Headers(r.headers).entries())s.set(e,t);let a={method:"DELETE",body:void 0===t?void 0:JSON.stringify(t),...r,headers:s};return this.fetchRequest(e,a)}};async function eb({to:e,subject:s,text:a,html:n,reportFailure:i=!0,metadata:o}){let c,l,d=r.default.env.RESEND_API_KEY,u=r.default.env.EMAIL_FROM;if(!t&&(!d||!u))return console.error("sendEmail: RESEND_API_KEY or EMAIL_FROM not set; skipping",{subject:s}),await ey(i,s,"RESEND_API_KEY or EMAIL_FROM is not set",o),!1;try{let r=t?await t({from:u??"Breme <[email protected]>",to:e,subject:s,text:a,...n?{html:n}:{}}):await new eg(d).emails.send({from:u,to:e,subject:s,text:a,...n?{html:n}:{}});c=r.data,l=r.error}catch(t){let e=t instanceof Error?t.message:String(t);return console.error("sendEmail: Resend exception",t),await ey(i,s,e,o),!1}return l?(console.error("sendEmail: Resend error",l),await ey(i,s,l.message??String(l),o),!1):(console.log("sendEmail: sent",c?.id),!0)}async function ey(t,r,s,a){if(t)try{let{emitOperationalAlert:t}=await e.A(33456);await t({dedupeKey:`email:delivery:${r}:${new Date().toISOString().slice(0,13)}`,category:"email",eventType:"email_delivery_failed",severity:"critical",subject:r,message:"An application email could not be delivered. The alert outbox will retry when the provider recovers.",metadata:{emailSubject:r,deliveryError:s,...a??{}}})}catch(e){console.error("sendEmail: failed to persist delivery alert",e)}}e.s(["sendEmail",0,eb],874788)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.