@activepieces/piece-messagebird 0.2.5 → 0.2.6

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/package.json CHANGED
@@ -1,17 +1,11 @@
1
1
  {
2
2
  "name": "@activepieces/piece-messagebird",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "main": "./src/index.js",
5
- "types": "./src/index.d.ts",
6
- "scripts": {
7
- "build": "tsc -p tsconfig.lib.json && cp package.json dist/",
8
- "lint": "eslint 'src/**/*.ts'"
9
- },
10
- "dependencies": {
11
- "@activepieces/pieces-common": "0.12.3",
12
- "@activepieces/pieces-framework": "0.30.0",
13
- "@activepieces/shared": "0.87.1",
14
- "dayjs": "1.11.9",
15
- "tslib": "2.6.2"
16
- }
5
+ "dependencies": {},
6
+ "files": [
7
+ "src/index.js",
8
+ "package.json",
9
+ "src/i18n"
10
+ ]
17
11
  }
package/src/index.js CHANGED
@@ -1,36 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.messagebird = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const send_sms_action_1 = require("./lib/actions/send-sms.action");
7
- const shared_1 = require("@activepieces/shared");
8
- const list_messages_1 = require("./lib/actions/list-messages");
9
- const auth_1 = require("./lib/auth");
10
- const pieces_common_1 = require("@activepieces/pieces-common");
11
- exports.messagebird = (0, pieces_framework_1.createPiece)({
12
- displayName: 'Bird',
13
- description: 'Unified CRM for Marketing, Service & Payments',
14
- auth: auth_1.birdAuth,
15
- minimumSupportedRelease: '0.30.0',
16
- logoUrl: 'https://cdn.activepieces.com/pieces/messagebird.png',
17
- categories: [shared_1.PieceCategory.MARKETING, shared_1.PieceCategory.COMMUNICATION],
18
- authors: ['kishanprmr', 'geekyme', 'prasanna2000-max'],
19
- actions: [
20
- send_sms_action_1.sendSMSAction,
21
- list_messages_1.listMessages,
22
- (0, pieces_common_1.createCustomApiCallAction)({
23
- baseUrl: (auth) => {
24
- return auth ? 'https://api.bird.com/workspaces/' + auth.props.workspaceId : '';
25
- },
26
- auth: auth_1.birdAuth,
27
- authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
28
- return {
29
- Authorization: `Bearer ${auth.props.apiKey}`,
30
- };
31
- })
32
- }),
33
- ],
34
- triggers: [],
35
- });
36
- //# sourceMappingURL=index.js.map
1
+ "use strict";var Ys=Object.create;var yt=Object.defineProperty;var Qs=Object.getOwnPropertyDescriptor;var eu=Object.getOwnPropertyNames;var tu=Object.getPrototypeOf,ru=Object.prototype.hasOwnProperty;var o=(e,t)=>yt(e,"name",{value:t,configurable:!0});var z=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),zn=(e,t)=>{for(var r in t)yt(e,r,{get:t[r],enumerable:!0})},On=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of eu(t))!ru.call(e,i)&&i!==r&&yt(e,i,{get:()=>t[i],enumerable:!(n=Qs(t,i))||n.enumerable});return e};var Be=(e,t,r)=>(r=e!=null?Ys(tu(e)):{},On(t||!e||!e.__esModule?yt(r,"default",{value:e,enumerable:!0}):r,e)),nu=e=>On(yt({},"__esModule",{value:!0}),e);var qo=z((Go,ar)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",r={fourOctet:new RegExp(`^${t}\\.${t}\\.${t}\\.${t}$`,"i"),threeOctet:new RegExp(`^${t}\\.${t}\\.${t}$`,"i"),twoOctet:new RegExp(`^${t}\\.${t}$`,"i"),longValue:new RegExp(`^${t}$`,"i")},n=new RegExp("^0[0-7]+$","i"),i=new RegExp("^0x[a-f0-9]+$","i"),u="%[0-9a-z]{1,}",c="(?:[0-9a-f]+::?)+",p={zoneIndex:new RegExp(u,"i"),native:new RegExp(`^(::)?(${c})?([0-9a-f]+)?(::)?(${u})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${u})?)$`,"i"),transitional:new RegExp(`^((?:${c})|(?:::)(?:${c})?)${t}\\.${t}\\.${t}\\.${t}(${u})?$`,"i")};function g(s,d){if(s.indexOf("::")!==s.lastIndexOf("::"))return null;let y=0,m=-1,v=(s.match(p.zoneIndex)||[])[0],P,Z;for(v&&(v=v.substring(1),s=s.replace(/%.+$/,""));(m=s.indexOf(":",m+1))>=0;)y++;if(s.substr(0,2)==="::"&&y--,s.substr(-2,2)==="::"&&y--,y>d)return null;for(Z=d-y,P=":";Z--;)P+="0:";return s=s.replace("::",P),s[0]===":"&&(s=s.slice(1)),s[s.length-1]===":"&&(s=s.slice(0,-1)),d=function(){let oe=s.split(":"),pe=[];for(let Pe=0;Pe<oe.length;Pe++)pe.push(parseInt(oe[Pe],16));return pe}(),{parts:d,zoneId:v}}o(g,"expandIPv6");function f(s,d,y,m){if(s.length!==d.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let v=0,P;for(;m>0;){if(P=y-m,P<0&&(P=0),s[v]>>P!==d[v]>>P)return!1;m-=y,v+=1}return!0}o(f,"matchCIDR");function _(s){if(i.test(s))return parseInt(s,16);if(s[0]==="0"&&!isNaN(parseInt(s[1],10))){if(n.test(s))return parseInt(s,8);throw new Error(`ipaddr: cannot parse ${s} as octal`)}return parseInt(s,10)}o(_,"parseIntAuto");function $(s,d){for(;s.length<d;)s=`0${s}`;return s}o($,"padPart");let x={};x.IPv4=function(){function s(d){if(d.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let y,m;for(y=0;y<d.length;y++)if(m=d[y],!(0<=m&&m<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=d}return o(s,"IPv4"),s.prototype.SpecialRanges={unspecified:[[new s([0,0,0,0]),8]],broadcast:[[new s([255,255,255,255]),32]],multicast:[[new s([224,0,0,0]),4]],linkLocal:[[new s([169,254,0,0]),16]],loopback:[[new s([127,0,0,0]),8]],carrierGradeNat:[[new s([100,64,0,0]),10]],private:[[new s([10,0,0,0]),8],[new s([172,16,0,0]),12],[new s([192,168,0,0]),16]],reserved:[[new s([192,0,0,0]),24],[new s([192,0,2,0]),24],[new s([192,88,99,0]),24],[new s([198,18,0,0]),15],[new s([198,51,100,0]),24],[new s([203,0,113,0]),24],[new s([240,0,0,0]),4]],as112:[[new s([192,175,48,0]),24],[new s([192,31,196,0]),24]],amt:[[new s([192,52,193,0]),24]]},s.prototype.kind=function(){return"ipv4"},s.prototype.match=function(d,y){let m;if(y===void 0&&(m=d,d=m[0],y=m[1]),d.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return f(this.octets,d.octets,8,y)},s.prototype.prefixLengthFromSubnetMask=function(){let d=0,y=!1,m={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},v,P,Z;for(v=3;v>=0;v-=1)if(P=this.octets[v],P in m){if(Z=m[P],y&&Z!==0)return null;Z!==8&&(y=!0),d+=Z}else return null;return 32-d},s.prototype.range=function(){return x.subnetMatch(this,this.SpecialRanges)},s.prototype.toByteArray=function(){return this.octets.slice(0)},s.prototype.toIPv4MappedAddress=function(){return x.IPv6.parse(`::ffff:${this.toString()}`)},s.prototype.toNormalizedString=function(){return this.toString()},s.prototype.toString=function(){return this.octets.join(".")},s}(),x.IPv4.broadcastAddressFromCIDR=function(s){try{let d=this.parseCIDR(s),y=d[0].toByteArray(),m=this.subnetMaskFromPrefixLength(d[1]).toByteArray(),v=[],P=0;for(;P<4;)v.push(parseInt(y[P],10)|parseInt(m[P],10)^255),P++;return new this(v)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},x.IPv4.isIPv4=function(s){return this.parser(s)!==null},x.IPv4.isValid=function(s){try{return new this(this.parser(s)),!0}catch{return!1}},x.IPv4.isValidCIDR=function(s){try{return this.parseCIDR(s),!0}catch{return!1}},x.IPv4.isValidFourPartDecimal=function(s){return!!(x.IPv4.isValid(s)&&s.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},x.IPv4.isValidCIDRFourPartDecimal=function(s){let d=s.match(/^(.+)\/(\d+)$/);return!x.IPv4.isValidCIDR(s)||!d?!1:x.IPv4.isValidFourPartDecimal(d[1])},x.IPv4.networkAddressFromCIDR=function(s){let d,y,m,v,P;try{for(d=this.parseCIDR(s),m=d[0].toByteArray(),P=this.subnetMaskFromPrefixLength(d[1]).toByteArray(),v=[],y=0;y<4;)v.push(parseInt(m[y],10)&parseInt(P[y],10)),y++;return new this(v)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},x.IPv4.parse=function(s){let d=this.parser(s);if(d===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(d)},x.IPv4.parseCIDR=function(s){let d;if(d=s.match(/^(.+)\/(\d+)$/)){let y=parseInt(d[2]);if(y>=0&&y<=32){let m=[this.parse(d[1]),y];return Object.defineProperty(m,"toString",{value:o(function(){return this.join("/")},"value")}),m}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},x.IPv4.parser=function(s){let d,y,m;if(d=s.match(r.fourOctet))return function(){let v=d.slice(1,6),P=[];for(let Z=0;Z<v.length;Z++)y=v[Z],P.push(_(y));return P}();if(d=s.match(r.longValue)){if(m=_(d[1]),m>4294967295||m<0)throw new Error("ipaddr: address outside defined range");return function(){let v=[],P;for(P=0;P<=24;P+=8)v.push(m>>P&255);return v}().reverse()}else return(d=s.match(r.twoOctet))?function(){let v=d.slice(1,4),P=[];if(m=_(v[1]),m>16777215||m<0)throw new Error("ipaddr: address outside defined range");return P.push(_(v[0])),P.push(m>>16&255),P.push(m>>8&255),P.push(m&255),P}():(d=s.match(r.threeOctet))?function(){let v=d.slice(1,5),P=[];if(m=_(v[2]),m>65535||m<0)throw new Error("ipaddr: address outside defined range");return P.push(_(v[0])),P.push(_(v[1])),P.push(m>>8&255),P.push(m&255),P}():null},x.IPv4.subnetMaskFromPrefixLength=function(s){if(s=parseInt(s),s<0||s>32)throw new Error("ipaddr: invalid IPv4 prefix length");let d=[0,0,0,0],y=0,m=Math.floor(s/8);for(;y<m;)d[y]=255,y++;return m<4&&(d[m]=Math.pow(2,s%8)-1<<8-s%8),new this(d)},x.IPv6=function(){function s(d,y){let m,v;if(d.length===16)for(this.parts=[],m=0;m<=14;m+=2)this.parts.push(d[m]<<8|d[m+1]);else if(d.length===8)this.parts=d;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(m=0;m<this.parts.length;m++)if(v=this.parts[m],!(0<=v&&v<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");y&&(this.zoneId=y)}return o(s,"IPv6"),s.prototype.SpecialRanges={unspecified:[new s([0,0,0,0,0,0,0,0]),128],linkLocal:[new s([65152,0,0,0,0,0,0,0]),10],multicast:[new s([65280,0,0,0,0,0,0,0]),8],loopback:[new s([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new s([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new s([0,0,0,0,0,65535,0,0]),96],discard:[new s([256,0,0,0,0,0,0,0]),64],rfc6145:[new s([0,0,0,0,65535,0,0,0]),96],rfc6052:[new s([100,65435,0,0,0,0,0,0]),96],"6to4":[new s([8194,0,0,0,0,0,0,0]),16],teredo:[new s([8193,0,0,0,0,0,0,0]),32],benchmarking:[new s([8193,2,0,0,0,0,0,0]),48],amt:[new s([8193,3,0,0,0,0,0,0]),32],as112v6:[[new s([8193,4,274,0,0,0,0,0]),48],[new s([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new s([8193,16,0,0,0,0,0,0]),28],orchid2:[new s([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new s([8193,48,0,0,0,0,0,0]),28],reserved:[[new s([8193,0,0,0,0,0,0,0]),23],[new s([8193,3512,0,0,0,0,0,0]),32]]},s.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},s.prototype.kind=function(){return"ipv6"},s.prototype.match=function(d,y){let m;if(y===void 0&&(m=d,d=m[0],y=m[1]),d.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return f(this.parts,d.parts,16,y)},s.prototype.prefixLengthFromSubnetMask=function(){let d=0,y=!1,m={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},v,P;for(let Z=7;Z>=0;Z-=1)if(v=this.parts[Z],v in m){if(P=m[v],y&&P!==0)return null;P!==16&&(y=!0),d+=P}else return null;return 128-d},s.prototype.range=function(){return x.subnetMatch(this,this.SpecialRanges)},s.prototype.toByteArray=function(){let d,y=[],m=this.parts;for(let v=0;v<m.length;v++)d=m[v],y.push(d>>8),y.push(d&255);return y},s.prototype.toFixedLengthString=function(){let d=function(){let m=[];for(let v=0;v<this.parts.length;v++)m.push($(this.parts[v].toString(16),4));return m}.call(this).join(":"),y="";return this.zoneId&&(y=`%${this.zoneId}`),d+y},s.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let d=this.parts.slice(-2),y=d[0],m=d[1];return new x.IPv4([y>>8,y&255,m>>8,m&255])},s.prototype.toNormalizedString=function(){let d=function(){let m=[];for(let v=0;v<this.parts.length;v++)m.push(this.parts[v].toString(16));return m}.call(this).join(":"),y="";return this.zoneId&&(y=`%${this.zoneId}`),d+y},s.prototype.toRFC5952String=function(){let d=/((^|:)(0(:|$)){2,})/g,y=this.toNormalizedString(),m=0,v=-1,P;for(;P=d.exec(y);)P[0].length>v&&(m=P.index,v=P[0].length);return v<0?y:`${y.substring(0,m)}::${y.substring(m+v)}`},s.prototype.toString=function(){return this.toRFC5952String()},s}(),x.IPv6.broadcastAddressFromCIDR=function(s){try{let d=this.parseCIDR(s),y=d[0].toByteArray(),m=this.subnetMaskFromPrefixLength(d[1]).toByteArray(),v=[],P=0;for(;P<16;)v.push(parseInt(y[P],10)|parseInt(m[P],10)^255),P++;return new this(v)}catch(d){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${d})`)}},x.IPv6.isIPv6=function(s){return this.parser(s)!==null},x.IPv6.isValid=function(s){if(typeof s=="string"&&s.indexOf(":")===-1)return!1;try{let d=this.parser(s);return new this(d.parts,d.zoneId),!0}catch{return!1}},x.IPv6.isValidCIDR=function(s){if(typeof s=="string"&&s.indexOf(":")===-1)return!1;try{return this.parseCIDR(s),!0}catch{return!1}},x.IPv6.networkAddressFromCIDR=function(s){let d,y,m,v,P;try{for(d=this.parseCIDR(s),m=d[0].toByteArray(),P=this.subnetMaskFromPrefixLength(d[1]).toByteArray(),v=[],y=0;y<16;)v.push(parseInt(m[y],10)&parseInt(P[y],10)),y++;return new this(v)}catch(Z){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${Z})`)}},x.IPv6.parse=function(s){let d=this.parser(s);if(d.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(d.parts,d.zoneId)},x.IPv6.parseCIDR=function(s){let d,y,m;if((y=s.match(/^(.+)\/(\d+)$/))&&(d=parseInt(y[2]),d>=0&&d<=128))return m=[this.parse(y[1]),d],Object.defineProperty(m,"toString",{value:o(function(){return this.join("/")},"value")}),m;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},x.IPv6.parser=function(s){let d,y,m,v,P,Z;if(m=s.match(p.deprecatedTransitional))return this.parser(`::ffff:${m[1]}`);if(p.native.test(s))return g(s,8);if((m=s.match(p.transitional))&&(Z=m[6]||"",d=m[1],m[1].endsWith("::")||(d=d.slice(0,-1)),d=g(d+Z,6),d.parts)){for(P=[parseInt(m[2]),parseInt(m[3]),parseInt(m[4]),parseInt(m[5])],y=0;y<P.length;y++)if(v=P[y],!(0<=v&&v<=255))return null;return d.parts.push(P[0]<<8|P[1]),d.parts.push(P[2]<<8|P[3]),{parts:d.parts,zoneId:d.zoneId}}return null},x.IPv6.subnetMaskFromPrefixLength=function(s){if(s=parseInt(s),s<0||s>128)throw new Error("ipaddr: invalid IPv6 prefix length");let d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],y=0,m=Math.floor(s/8);for(;y<m;)d[y]=255,y++;return m<16&&(d[m]=Math.pow(2,s%8)-1<<8-s%8),new this(d)},x.fromByteArray=function(s){let d=s.length;if(d===4)return new x.IPv4(s);if(d===16)return new x.IPv6(s);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},x.isValid=function(s){return x.IPv6.isValid(s)||x.IPv4.isValid(s)},x.isValidCIDR=function(s){return x.IPv6.isValidCIDR(s)||x.IPv4.isValidCIDR(s)},x.parse=function(s){if(x.IPv6.isValid(s))return x.IPv6.parse(s);if(x.IPv4.isValid(s))return x.IPv4.parse(s);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},x.parseCIDR=function(s){try{return x.IPv6.parseCIDR(s)}catch{try{return x.IPv4.parseCIDR(s)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},x.process=function(s){let d=this.parse(s);return d.kind()==="ipv6"&&d.isIPv4MappedAddress()?d.toIPv4Address():d},x.subnetMatch=function(s,d,y){let m,v,P,Z;y==null&&(y="unicast");for(v in d)if(Object.prototype.hasOwnProperty.call(d,v)){for(P=d[v],P[0]&&!(P[0]instanceof Array)&&(P=[P]),m=0;m<P.length;m++)if(Z=P[m],s.kind()===Z[0].kind()&&s.match.apply(s,Z))return v}return y},typeof ar<"u"&&ar.exports?ar.exports=x:e.ipaddr=x})(Go)});var Vi=z((iA,Zi)=>{var Bi=require("stream").Stream,wl=require("util");Zi.exports=_e;function _e(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}o(_e,"DelayedStream");wl.inherits(_e,Bi);_e.create=function(e,t){var r=new this;t=t||{};for(var n in t)r[n]=t[n];r.source=e;var i=e.emit;return e.emit=function(){return r._handleEmit(arguments),i.apply(e,arguments)},e.on("error",function(){}),r.pauseStream&&e.pause(),r};Object.defineProperty(_e.prototype,"readable",{configurable:!0,enumerable:!0,get:o(function(){return this.source.readable},"get")});_e.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};_e.prototype.resume=function(){this._released||this.release(),this.source.resume()};_e.prototype.pause=function(){this.source.pause()};_e.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]};_e.prototype.pipe=function(){var e=Bi.prototype.pipe.apply(this,arguments);return this.resume(),e};_e.prototype._handleEmit=function(e){if(this._released){this.emit.apply(this,e);return}e[0]==="data"&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e)};_e.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}});var qi=z((sA,Gi)=>{var Rl=require("util"),Wi=require("stream").Stream,Hi=Vi();Gi.exports=ne;function ne(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}o(ne,"CombinedStream");Rl.inherits(ne,Wi);ne.create=function(e){var t=new this;e=e||{};for(var r in e)t[r]=e[r];return t};ne.isStreamLike=function(e){return typeof e!="function"&&typeof e!="string"&&typeof e!="boolean"&&typeof e!="number"&&!Buffer.isBuffer(e)};ne.prototype.append=function(e){var t=ne.isStreamLike(e);if(t){if(!(e instanceof Hi)){var r=Hi.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=r}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this};ne.prototype.pipe=function(e,t){return Wi.prototype.pipe.call(this,e,t),this.resume(),e};ne.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};ne.prototype._realGetNext=function(){var e=this._streams.shift();if(typeof e>"u"){this.end();return}if(typeof e!="function"){this._pipeNext(e);return}var t=e;t(function(r){var n=ne.isStreamLike(r);n&&(r.on("data",this._checkDataSize.bind(this)),this._handleErrors(r)),this._pipeNext(r)}.bind(this))};ne.prototype._pipeNext=function(e){this._currentStream=e;var t=ne.isStreamLike(e);if(t){e.on("end",this._getNext.bind(this)),e.pipe(this,{end:!1});return}var r=e;this.write(r),this._getNext()};ne.prototype._handleErrors=function(e){var t=this;e.on("error",function(r){t._emitError(r)})};ne.prototype.write=function(e){this.emit("data",e)};ne.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};ne.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};ne.prototype.end=function(){this._reset(),this.emit("end")};ne.prototype.destroy=function(){this._reset(),this.emit("close")};ne.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};ne.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}};ne.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach(function(t){t.dataSize&&(e.dataSize+=t.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};ne.prototype._emitError=function(e){this._reset(),this.emit("error",e)}});var Ji=z((cA,Ki)=>{"use strict";Ki.exports={"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dat"]},"application/msword":{source:"iana",extensions:["doc"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",extensions:["docx"]},"application/vnd.ms-excel":{source:"iana",extensions:["xls"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",extensions:["xlsx"]},"application/vnd.ms-powerpoint":{source:"iana",extensions:["ppt"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",extensions:["pptx"]},"application/csv":{compressible:!0,extensions:["csv"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"text/plain":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["txt","text","log"]},"text/html":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["html","htm"]},"text/css":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["css"]},"text/csv":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["csv"]},"text/markdown":{source:"iana",compressible:!0,charset:"UTF-8",extensions:["md","markdown"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/webp":{source:"apache",compressible:!1,extensions:["webp"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tiff","tif"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/heic":{source:"iana",compressible:!1,extensions:["heic"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mp3","mpga"]},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/ogg":{source:"iana",compressible:!1,extensions:["ogg","oga"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","m4v"]},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg"]},"video/webm":{source:"iana",compressible:!1,extensions:["webm"]},"video/quicktime":{source:"iana",compressible:!1,extensions:["mov","qt"]},"video/x-msvideo":{source:"iana",compressible:!1,extensions:["avi"]},"font/woff":{source:"iana",compressible:!1,extensions:["woff"]},"font/woff2":{source:"iana",compressible:!1,extensions:["woff2"]},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"multipart/form-data":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/ics":{compressible:!0,extensions:["ics"]},"text/calendar":{source:"iana",compressible:!0,extensions:["ics","ifb"]},"application/x-ndjson":{compressible:!0,extensions:["ndjson"]}}});var Qi=z(fe=>{"use strict";var dr=Ji(),Dl=require("path").extname,Xi=/^\s*([^;\s]*)(?:;|\s|$)/,Nl=/^text\//i;fe.charset=Yi;fe.charsets={lookup:Yi};fe.contentType=Cl;fe.extension=Ul;fe.extensions=Object.create(null);fe.lookup=Ml;fe.types=Object.create(null);jl(fe.extensions,fe.types);function Yi(e){if(!e||typeof e!="string")return!1;var t=Xi.exec(e),r=t&&dr[t[1].toLowerCase()];return r&&r.charset?r.charset:t&&Nl.test(t[1])?"UTF-8":!1}o(Yi,"charset");function Cl(e){if(!e||typeof e!="string")return!1;var t=e.indexOf("/")===-1?fe.lookup(e):e;if(!t)return!1;if(t.indexOf("charset")===-1){var r=fe.charset(t);r&&(t+="; charset="+r.toLowerCase())}return t}o(Cl,"contentType");function Ul(e){if(!e||typeof e!="string")return!1;var t=Xi.exec(e),r=t&&fe.extensions[t[1].toLowerCase()];return!r||!r.length?!1:r[0]}o(Ul,"extension");function Ml(e){if(!e||typeof e!="string")return!1;var t=Dl("x."+e).toLowerCase().substr(1);return t&&fe.types[t]||!1}o(Ml,"lookup");function jl(e,t){var r=["nginx","apache",void 0,"iana"];Object.keys(dr).forEach(o(function(i){var u=dr[i],c=u.extensions;if(!(!c||!c.length)){e[i]=c;for(var p=0;p<c.length;p++){var g=c[p];if(t[g]){var f=r.indexOf(dr[t[g]].source),_=r.indexOf(u.source);if(t[g]!=="application/octet-stream"&&(f>_||f===_&&t[g].substr(0,12)==="application/"))continue}t[g]=i}}},"forEachMimeType"))}o(jl,"populateMaps")});var ta=z((dA,ea)=>{ea.exports=Ll;function Ll(e){var t=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;t?t(e):setTimeout(e,0)}o(Ll,"defer")});var an=z((fA,na)=>{var ra=ta();na.exports=Fl;function Fl(e){var t=!1;return ra(function(){t=!0}),o(function(n,i){t?e(n,i):ra(o(function(){e(n,i)},"nextTick_callback"))},"async_callback")}o(Fl,"async")});var sn=z((yA,oa)=>{oa.exports=Bl;function Bl(e){Object.keys(e.jobs).forEach(Zl.bind(e)),e.jobs={}}o(Bl,"abort");function Zl(e){typeof this.jobs[e]=="function"&&this.jobs[e]()}o(Zl,"clean")});var un=z((vA,aa)=>{var ia=an(),Vl=sn();aa.exports=Hl;function Hl(e,t,r,n){var i=r.keyedList?r.keyedList[r.index]:r.index;r.jobs[i]=Wl(t,i,e[i],function(u,c){i in r.jobs&&(delete r.jobs[i],u?Vl(r):r.results[i]=c,n(u,r.results))})}o(Hl,"iterate");function Wl(e,t,r,n){var i;return e.length==2?i=e(r,ia(n)):i=e(r,t,ia(n)),i}o(Wl,"runJob")});var cn=z((_A,sa)=>{sa.exports=Gl;function Gl(e,t){var r=!Array.isArray(e),n={index:0,keyedList:r||t?Object.keys(e):null,jobs:{},results:r?{}:[],size:r?Object.keys(e).length:e.length};return t&&n.keyedList.sort(r?t:function(i,u){return t(e[i],e[u])}),n}o(Gl,"state")});var ln=z((bA,ua)=>{var ql=sn(),Kl=an();ua.exports=Jl;function Jl(e){Object.keys(this.jobs).length&&(this.index=this.size,ql(this),Kl(e)(null,this.results))}o(Jl,"terminator")});var la=z((TA,ca)=>{var Xl=un(),Yl=cn(),Ql=ln();ca.exports=ep;function ep(e,t,r){for(var n=Yl(e);n.index<(n.keyedList||e).length;)Xl(e,t,n,function(i,u){if(i){r(i,u);return}if(Object.keys(n.jobs).length===0){r(null,n.results);return}}),n.index++;return Ql.bind(n,r)}o(ep,"parallel")});var pn=z((EA,mr)=>{var pa=un(),tp=cn(),rp=ln();mr.exports=np;mr.exports.ascending=da;mr.exports.descending=op;function np(e,t,r,n){var i=tp(e,r);return pa(e,t,i,o(function u(c,p){if(c){n(c,p);return}if(i.index++,i.index<(i.keyedList||e).length){pa(e,t,i,u);return}n(null,i.results)},"iteratorHandler")),rp.bind(i,n)}o(np,"serialOrdered");function da(e,t){return e<t?-1:e>t?1:0}o(da,"ascending");function op(e,t){return-1*da(e,t)}o(op,"descending")});var fa=z((AA,ma)=>{var ip=pn();ma.exports=ap;function ap(e,t,r){return ip(e,t,null,r)}o(ap,"serial")});var ya=z((OA,ga)=>{ga.exports={parallel:la(),serial:fa(),serialOrdered:pn()}});var dn=z((kA,ha)=>{"use strict";ha.exports=Object});var xa=z((wA,va)=>{"use strict";va.exports=Error});var Pa=z((RA,_a)=>{"use strict";_a.exports=EvalError});var Ia=z((DA,ba)=>{"use strict";ba.exports=RangeError});var $a=z((NA,Ta)=>{"use strict";Ta.exports=ReferenceError});var Sa=z((CA,Ea)=>{"use strict";Ea.exports=SyntaxError});var fr=z((UA,Aa)=>{"use strict";Aa.exports=TypeError});var Oa=z((MA,za)=>{"use strict";za.exports=URIError});var wa=z((jA,ka)=>{"use strict";ka.exports=Math.abs});var Da=z((LA,Ra)=>{"use strict";Ra.exports=Math.floor});var Ca=z((FA,Na)=>{"use strict";Na.exports=Math.max});var Ma=z((BA,Ua)=>{"use strict";Ua.exports=Math.min});var La=z((ZA,ja)=>{"use strict";ja.exports=Math.pow});var Ba=z((VA,Fa)=>{"use strict";Fa.exports=Math.round});var Va=z((HA,Za)=>{"use strict";Za.exports=Number.isNaN||o(function(t){return t!==t},"isNaN")});var Wa=z((GA,Ha)=>{"use strict";var sp=Va();Ha.exports=o(function(t){return sp(t)||t===0?t:t<0?-1:1},"sign")});var qa=z((KA,Ga)=>{"use strict";Ga.exports=Object.getOwnPropertyDescriptor});var mn=z((JA,Ka)=>{"use strict";var gr=qa();if(gr)try{gr([],"length")}catch{gr=null}Ka.exports=gr});var Xa=z((XA,Ja)=>{"use strict";var yr=Object.defineProperty||!1;if(yr)try{yr({},"a",{value:1})}catch{yr=!1}Ja.exports=yr});var fn=z((YA,Ya)=>{"use strict";Ya.exports=o(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var u in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var c=Object.getOwnPropertySymbols(t);if(c.length!==1||c[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,r);if(p.value!==i||p.enumerable!==!0)return!1}return!0},"hasSymbols")});var ts=z((ez,es)=>{"use strict";var Qa=typeof Symbol<"u"&&Symbol,up=fn();es.exports=o(function(){return typeof Qa!="function"||typeof Symbol!="function"||typeof Qa("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:up()},"hasNativeSymbols")});var gn=z((rz,rs)=>{"use strict";rs.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var yn=z((nz,ns)=>{"use strict";var cp=dn();ns.exports=cp.getPrototypeOf||null});var as=z((oz,is)=>{"use strict";var lp="Function.prototype.bind called on incompatible ",pp=Object.prototype.toString,dp=Math.max,mp="[object Function]",os=o(function(t,r){for(var n=[],i=0;i<t.length;i+=1)n[i]=t[i];for(var u=0;u<r.length;u+=1)n[u+t.length]=r[u];return n},"concatty"),fp=o(function(t,r){for(var n=[],i=r||0,u=0;i<t.length;i+=1,u+=1)n[u]=t[i];return n},"slicy"),gp=o(function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r},"joiny");is.exports=o(function(t){var r=this;if(typeof r!="function"||pp.apply(r)!==mp)throw new TypeError(lp+r);for(var n=fp(arguments,1),i,u=o(function(){if(this instanceof i){var _=r.apply(this,os(n,arguments));return Object(_)===_?_:this}return r.apply(t,os(n,arguments))},"binder"),c=dp(0,r.length-n.length),p=[],g=0;g<c;g++)p[g]="$"+g;if(i=Function("binder","return function ("+gp(p,",")+"){ return binder.apply(this,arguments); }")(u),r.prototype){var f=o(function(){},"Empty");f.prototype=r.prototype,i.prototype=new f,f.prototype=null}return i},"bind")});var ct=z((az,ss)=>{"use strict";var yp=as();ss.exports=Function.prototype.bind||yp});var hr=z((sz,us)=>{"use strict";us.exports=Function.prototype.call});var hn=z((uz,cs)=>{"use strict";cs.exports=Function.prototype.apply});var ps=z((cz,ls)=>{"use strict";ls.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var ms=z((lz,ds)=>{"use strict";var hp=ct(),vp=hn(),xp=hr(),_p=ps();ds.exports=_p||hp.call(xp,vp)});var gs=z((pz,fs)=>{"use strict";var Pp=ct(),bp=fr(),Ip=hr(),Tp=ms();fs.exports=o(function(t){if(t.length<1||typeof t[0]!="function")throw new bp("a function is required");return Tp(Pp,Ip,t)},"callBindBasic")});var Ps=z((mz,_s)=>{"use strict";var $p=gs(),ys=mn(),vs;try{vs=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var vn=!!vs&&ys&&ys(Object.prototype,"__proto__"),xs=Object,hs=xs.getPrototypeOf;_s.exports=vn&&typeof vn.get=="function"?$p([vn.get]):typeof hs=="function"?o(function(t){return hs(t==null?t:xs(t))},"getDunder"):!1});var Es=z((gz,$s)=>{"use strict";var bs=gn(),Is=yn(),Ts=Ps();$s.exports=bs?o(function(t){return bs(t)},"getProto"):Is?o(function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return Is(t)},"getProto"):Ts?o(function(t){return Ts(t)},"getProto"):null});var xn=z((hz,Ss)=>{"use strict";var Ep=Function.prototype.call,Sp=Object.prototype.hasOwnProperty,Ap=ct();Ss.exports=Ap.call(Ep,Sp)});var Ds=z((vz,Rs)=>{"use strict";var W,zp=dn(),Op=xa(),kp=Pa(),wp=Ia(),Rp=$a(),mt=Sa(),dt=fr(),Dp=Oa(),Np=wa(),Cp=Da(),Up=Ca(),Mp=Ma(),jp=La(),Lp=Ba(),Fp=Wa(),ks=Function,_n=o(function(e){try{return ks('"use strict"; return ('+e+").constructor;")()}catch{}},"getEvalledConstructor"),Mt=mn(),Bp=Xa(),Pn=o(function(){throw new dt},"throwTypeError"),Zp=Mt?function(){try{return arguments.callee,Pn}catch{try{return Mt(arguments,"callee").get}catch{return Pn}}}():Pn,lt=ts()(),ce=Es(),Vp=yn(),Hp=gn(),ws=hn(),jt=hr(),pt={},Wp=typeof Uint8Array>"u"||!ce?W:ce(Uint8Array),qe={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?W:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?W:ArrayBuffer,"%ArrayIteratorPrototype%":lt&&ce?ce([][Symbol.iterator]()):W,"%AsyncFromSyncIteratorPrototype%":W,"%AsyncFunction%":pt,"%AsyncGenerator%":pt,"%AsyncGeneratorFunction%":pt,"%AsyncIteratorPrototype%":pt,"%Atomics%":typeof Atomics>"u"?W:Atomics,"%BigInt%":typeof BigInt>"u"?W:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?W:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?W:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?W:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Op,"%eval%":eval,"%EvalError%":kp,"%Float16Array%":typeof Float16Array>"u"?W:Float16Array,"%Float32Array%":typeof Float32Array>"u"?W:Float32Array,"%Float64Array%":typeof Float64Array>"u"?W:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?W:FinalizationRegistry,"%Function%":ks,"%GeneratorFunction%":pt,"%Int8Array%":typeof Int8Array>"u"?W:Int8Array,"%Int16Array%":typeof Int16Array>"u"?W:Int16Array,"%Int32Array%":typeof Int32Array>"u"?W:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":lt&&ce?ce(ce([][Symbol.iterator]())):W,"%JSON%":typeof JSON=="object"?JSON:W,"%Map%":typeof Map>"u"?W:Map,"%MapIteratorPrototype%":typeof Map>"u"||!lt||!ce?W:ce(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":zp,"%Object.getOwnPropertyDescriptor%":Mt,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?W:Promise,"%Proxy%":typeof Proxy>"u"?W:Proxy,"%RangeError%":wp,"%ReferenceError%":Rp,"%Reflect%":typeof Reflect>"u"?W:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?W:Set,"%SetIteratorPrototype%":typeof Set>"u"||!lt||!ce?W:ce(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?W:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":lt&&ce?ce(""[Symbol.iterator]()):W,"%Symbol%":lt?Symbol:W,"%SyntaxError%":mt,"%ThrowTypeError%":Zp,"%TypedArray%":Wp,"%TypeError%":dt,"%Uint8Array%":typeof Uint8Array>"u"?W:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?W:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?W:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?W:Uint32Array,"%URIError%":Dp,"%WeakMap%":typeof WeakMap>"u"?W:WeakMap,"%WeakRef%":typeof WeakRef>"u"?W:WeakRef,"%WeakSet%":typeof WeakSet>"u"?W:WeakSet,"%Function.prototype.call%":jt,"%Function.prototype.apply%":ws,"%Object.defineProperty%":Bp,"%Object.getPrototypeOf%":Vp,"%Math.abs%":Np,"%Math.floor%":Cp,"%Math.max%":Up,"%Math.min%":Mp,"%Math.pow%":jp,"%Math.round%":Lp,"%Math.sign%":Fp,"%Reflect.getPrototypeOf%":Hp};if(ce)try{null.error}catch(e){As=ce(ce(e)),qe["%Error.prototype%"]=As}var As,Gp=o(function e(t){var r;if(t==="%AsyncFunction%")r=_n("async function () {}");else if(t==="%GeneratorFunction%")r=_n("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=_n("async function* () {}");else if(t==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&ce&&(r=ce(i.prototype))}return qe[t]=r,r},"doEval"),zs={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Lt=ct(),vr=xn(),qp=Lt.call(jt,Array.prototype.concat),Kp=Lt.call(ws,Array.prototype.splice),Os=Lt.call(jt,String.prototype.replace),xr=Lt.call(jt,String.prototype.slice),Jp=Lt.call(jt,RegExp.prototype.exec),Xp=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Yp=/\\(\\)?/g,Qp=o(function(t){var r=xr(t,0,1),n=xr(t,-1);if(r==="%"&&n!=="%")throw new mt("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new mt("invalid intrinsic syntax, expected opening `%`");var i=[];return Os(t,Xp,function(u,c,p,g){i[i.length]=p?Os(g,Yp,"$1"):c||u}),i},"stringToPath"),ed=o(function(t,r){var n=t,i;if(vr(zs,n)&&(i=zs[n],n="%"+i[0]+"%"),vr(qe,n)){var u=qe[n];if(u===pt&&(u=Gp(n)),typeof u>"u"&&!r)throw new dt("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:u}}throw new mt("intrinsic "+t+" does not exist!")},"getBaseIntrinsic");Rs.exports=o(function(t,r){if(typeof t!="string"||t.length===0)throw new dt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new dt('"allowMissing" argument must be a boolean');if(Jp(/^%?[^%]*%?$/,t)===null)throw new mt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Qp(t),i=n.length>0?n[0]:"",u=ed("%"+i+"%",r),c=u.name,p=u.value,g=!1,f=u.alias;f&&(i=f[0],Kp(n,qp([0,1],f)));for(var _=1,$=!0;_<n.length;_+=1){var x=n[_],s=xr(x,0,1),d=xr(x,-1);if((s==='"'||s==="'"||s==="`"||d==='"'||d==="'"||d==="`")&&s!==d)throw new mt("property names with quotes must have matching quotes");if((x==="constructor"||!$)&&(g=!0),i+="."+x,c="%"+i+"%",vr(qe,c))p=qe[c];else if(p!=null){if(!(x in p)){if(!r)throw new dt("base intrinsic for "+t+" exists, but the property is not available.");return}if(Mt&&_+1>=n.length){var y=Mt(p,x);$=!!y,$&&"get"in y&&!("originalValue"in y.get)?p=y.get:p=p[x]}else $=vr(p,x),p=p[x];$&&!g&&(qe[c]=p)}}return p},"GetIntrinsic")});var Cs=z((_z,Ns)=>{"use strict";var td=fn();Ns.exports=o(function(){return td()&&!!Symbol.toStringTag},"hasToStringTagShams")});var js=z((bz,Ms)=>{"use strict";var rd=Ds(),Us=rd("%Object.defineProperty%",!0),nd=Cs()(),od=xn(),id=fr(),_r=nd?Symbol.toStringTag:null;Ms.exports=o(function(t,r){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,i=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof i<"u"&&typeof i!="boolean")throw new id("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");_r&&(n||!od(t,_r))&&(Us?Us(t,_r,{configurable:!i,enumerable:!1,value:r,writable:!1}):t[_r]=r)},"setToStringTag")});var Fs=z((Tz,Ls)=>{"use strict";var ad=Function.prototype.call,sd=Object.prototype.hasOwnProperty,ud=ct();Ls.exports=ud.call(ad,sd)});var Zs=z(($z,Bs)=>{"use strict";Bs.exports=function(e,t){return Object.keys(t).forEach(function(r){e[r]=e[r]||t[r]}),e}});var Ws=z((Ez,Hs)=>{"use strict";var $n=qi(),cd=require("util"),bn=require("path"),ld=require("http"),pd=require("https"),dd=require("url").parse,md=require("fs"),fd=require("stream").Stream,gd=require("crypto"),In=Qi(),yd=ya(),hd=js(),Me=Fs(),Tn=Zs();function Vs(e){return String(e).replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/"/g,"%22")}o(Vs,"escapeHeaderParam");function G(e){if(!(this instanceof G))return new G(e);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],$n.call(this),e=e||{};for(var t in e)this[t]=e[t]}o(G,"FormData");cd.inherits(G,$n);G.LINE_BREAK=`\r
2
+ `;G.DEFAULT_CONTENT_TYPE="application/octet-stream";G.prototype.append=function(e,t,r){r=r||{},typeof r=="string"&&(r={filename:r});var n=$n.prototype.append.bind(this);if((typeof t=="number"||t==null)&&(t=String(t)),Array.isArray(t)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(e,t,r),u=this._multiPartFooter();n(i),n(t),n(u),this._trackLength(i,t,r)};G.prototype._trackLength=function(e,t,r){var n=0;r.knownLength!=null?n+=Number(r.knownLength):Buffer.isBuffer(t)?n=t.length:typeof t=="string"&&(n=Buffer.byteLength(t)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(e)+G.LINE_BREAK.length,!(!t||!t.path&&!(t.readable&&Me(t,"httpVersion"))&&!(t instanceof fd))&&(r.knownLength||this._valuesToMeasure.push(t))};G.prototype._lengthRetriever=function(e,t){Me(e,"fd")?e.end!=null&&e.end!=1/0&&e.start!=null?t(null,e.end+1-(e.start?e.start:0)):md.stat(e.path,function(r,n){if(r){t(r);return}var i=n.size-(e.start?e.start:0);t(null,i)}):Me(e,"httpVersion")?t(null,Number(e.headers["content-length"])):Me(e,"httpModule")?(e.on("response",function(r){e.pause(),t(null,Number(r.headers["content-length"]))}),e.resume()):t("Unknown stream")};G.prototype._multiPartHeader=function(e,t,r){if(typeof r.header=="string")return r.header;var n=this._getContentDisposition(t,r),i=this._getContentType(t,r),u="",c={"Content-Disposition":["form-data",'name="'+Vs(e)+'"'].concat(n||[]),"Content-Type":[].concat(i||[])};typeof r.header=="object"&&Tn(c,r.header);var p;for(var g in c)if(Me(c,g)){if(p=c[g],p==null)continue;Array.isArray(p)||(p=[p]),p.length&&(u+=g+": "+p.join("; ")+G.LINE_BREAK)}return"--"+this.getBoundary()+G.LINE_BREAK+u+G.LINE_BREAK};G.prototype._getContentDisposition=function(e,t){var r;if(typeof t.filepath=="string"?r=bn.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e&&(e.name||e.path)?r=bn.basename(t.filename||e&&(e.name||e.path)):e&&e.readable&&Me(e,"httpVersion")&&(r=bn.basename(e.client._httpMessage.path||"")),r)return'filename="'+Vs(r)+'"'};G.prototype._getContentType=function(e,t){var r=t.contentType;return!r&&e&&e.name&&(r=In.lookup(e.name)),!r&&e&&e.path&&(r=In.lookup(e.path)),!r&&e&&e.readable&&Me(e,"httpVersion")&&(r=e.headers["content-type"]),!r&&(t.filepath||t.filename)&&(r=In.lookup(t.filepath||t.filename)),!r&&e&&typeof e=="object"&&(r=G.DEFAULT_CONTENT_TYPE),r};G.prototype._multiPartFooter=function(){return function(e){var t=G.LINE_BREAK,r=this._streams.length===0;r&&(t+=this._lastBoundary()),e(t)}.bind(this)};G.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+G.LINE_BREAK};G.prototype.getHeaders=function(e){var t,r={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)Me(e,t)&&(r[t.toLowerCase()]=e[t]);return r};G.prototype.setBoundary=function(e){if(typeof e!="string")throw new TypeError("FormData boundary must be a string");this._boundary=e};G.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};G.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),r=0,n=this._streams.length;r<n;r++)typeof this._streams[r]!="function"&&(Buffer.isBuffer(this._streams[r])?e=Buffer.concat([e,this._streams[r]]):e=Buffer.concat([e,Buffer.from(this._streams[r])]),(typeof this._streams[r]!="string"||this._streams[r].substring(2,t.length+2)!==t)&&(e=Buffer.concat([e,Buffer.from(G.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])};G.prototype._generateBoundary=function(){this._boundary="--------------------------"+gd.randomBytes(12).toString("hex")};G.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e};G.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e};G.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;if(this._streams.length&&(t+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(e.bind(this,null,t));return}yd.parallel(this._valuesToMeasure,this._lengthRetriever,function(r,n){if(r){e(r);return}n.forEach(function(i){t+=i}),e(null,t)})};G.prototype.submit=function(e,t){var r,n,i={method:"post"};return typeof e=="string"?(e=dd(e),n=Tn({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(n=Tn(e,i),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(e.headers),n.protocol==="https:"?r=pd.request(n):r=ld.request(n),this.getLength(function(u,c){if(u&&u!=="Unknown stream"){this._error(u);return}if(c&&r.setHeader("Content-Length",c),this.pipe(r),t){var p,g=o(function(f,_){return r.removeListener("error",g),r.removeListener("response",p),t.call(this,f,_)},"callback");p=g.bind(this,null),r.on("error",g),r.on("response",p)}}.bind(this)),r};G.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))};G.prototype.toString=function(){return"[object FormData]"};hd(G.prototype,"FormData");Hs.exports=G});var Js=z((En,Sn)=>{(function(e,t){typeof En=="object"&&typeof Sn<"u"?Sn.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(En,function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",u="minute",c="hour",p="day",g="week",f="month",_="quarter",$="year",x="date",s="Invalid Date",d=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:o(function(U){var I=["th","st","nd","rd"],b=U%100;return"["+U+(I[(b-20)%10]||I[b]||I[0])+"]"},"ordinal")},v=o(function(U,I,b){var E=String(U);return!E||E.length>=I?U:""+Array(I+1-E.length).join(b)+U},"m"),P={s:v,z:o(function(U){var I=-U.utcOffset(),b=Math.abs(I),E=Math.floor(b/60),T=b%60;return(I<=0?"+":"-")+v(E,2,"0")+":"+v(T,2,"0")},"z"),m:o(function U(I,b){if(I.date()<b.date())return-U(b,I);var E=12*(b.year()-I.year())+(b.month()-I.month()),T=I.clone().add(E,f),L=b-T<0,F=I.clone().add(E+(L?-1:1),f);return+(-(E+(b-T)/(L?T-F:F-T))||0)},"t"),a:o(function(U){return U<0?Math.ceil(U)||0:Math.floor(U)},"a"),p:o(function(U){return{M:f,y:$,w:g,d:p,D:x,h:c,m:u,s:i,ms:n,Q:_}[U]||String(U||"").toLowerCase().replace(/s$/,"")},"p"),u:o(function(U){return U===void 0},"u")},Z="en",oe={};oe[Z]=m;var pe=o(function(U){return U instanceof Ke},"p"),Pe=o(function U(I,b,E){var T;if(!I)return Z;if(typeof I=="string"){var L=I.toLowerCase();oe[L]&&(T=L),b&&(oe[L]=b,T=L);var F=I.split("-");if(!T&&F.length>1)return U(F[0])}else{var Y=I.name;oe[Y]=I,T=Y}return!E&&T&&(Z=T),T||!E&&Z},"t"),X=o(function(U,I){if(pe(U))return U.clone();var b=typeof I=="object"?I:{};return b.date=U,b.args=arguments,new Ke(b)},"w"),H=P;H.l=Pe,H.i=pe,H.w=function(U,I){return X(U,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var Ke=function(){function U(b){this.$L=Pe(b.locale,null,!0),this.parse(b)}o(U,"M");var I=U.prototype;return I.parse=function(b){this.$d=function(E){var T=E.date,L=E.utc;if(T===null)return new Date(NaN);if(H.u(T))return new Date;if(T instanceof Date)return new Date(T);if(typeof T=="string"&&!/Z$/i.test(T)){var F=T.match(d);if(F){var Y=F[2]-1||0,ie=(F[7]||"0").substring(0,3);return L?new Date(Date.UTC(F[1],Y,F[3]||1,F[4]||0,F[5]||0,F[6]||0,ie)):new Date(F[1],Y,F[3]||1,F[4]||0,F[5]||0,F[6]||0,ie)}}return new Date(T)}(b),this.$x=b.x||{},this.init()},I.init=function(){var b=this.$d;this.$y=b.getFullYear(),this.$M=b.getMonth(),this.$D=b.getDate(),this.$W=b.getDay(),this.$H=b.getHours(),this.$m=b.getMinutes(),this.$s=b.getSeconds(),this.$ms=b.getMilliseconds()},I.$utils=function(){return H},I.isValid=function(){return this.$d.toString()!==s},I.isSame=function(b,E){var T=X(b);return this.startOf(E)<=T&&T<=this.endOf(E)},I.isAfter=function(b,E){return X(b)<this.startOf(E)},I.isBefore=function(b,E){return this.endOf(E)<X(b)},I.$g=function(b,E,T){return H.u(b)?this[E]:this.set(T,b)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(b,E){var T=this,L=!!H.u(E)||E,F=H.p(b),Y=o(function(Fe,me){var ke=H.w(T.$u?Date.UTC(T.$y,me,Fe):new Date(T.$y,me,Fe),T);return L?ke:ke.endOf(p)},"l"),ie=o(function(Fe,me){return H.w(T.toDate()[Fe].apply(T.toDate("s"),(L?[0,0,0,0]:[23,59,59,999]).slice(me)),T)},"$"),ue=this.$W,le=this.$M,he=this.$D,Je="set"+(this.$u?"UTC":"");switch(F){case $:return L?Y(1,0):Y(31,11);case f:return L?Y(1,le):Y(0,le+1);case g:var Le=this.$locale().weekStart||0,ft=(ue<Le?ue+7:ue)-Le;return Y(L?he-ft:he+(6-ft),le);case p:case x:return ie(Je+"Hours",0);case c:return ie(Je+"Minutes",1);case u:return ie(Je+"Seconds",2);case i:return ie(Je+"Milliseconds",3);default:return this.clone()}},I.endOf=function(b){return this.startOf(b,!1)},I.$set=function(b,E){var T,L=H.p(b),F="set"+(this.$u?"UTC":""),Y=(T={},T[p]=F+"Date",T[x]=F+"Date",T[f]=F+"Month",T[$]=F+"FullYear",T[c]=F+"Hours",T[u]=F+"Minutes",T[i]=F+"Seconds",T[n]=F+"Milliseconds",T)[L],ie=L===p?this.$D+(E-this.$W):E;if(L===f||L===$){var ue=this.clone().set(x,1);ue.$d[Y](ie),ue.init(),this.$d=ue.set(x,Math.min(this.$D,ue.daysInMonth())).$d}else Y&&this.$d[Y](ie);return this.init(),this},I.set=function(b,E){return this.clone().$set(b,E)},I.get=function(b){return this[H.p(b)]()},I.add=function(b,E){var T,L=this;b=Number(b);var F=H.p(E),Y=o(function(le){var he=X(L);return H.w(he.date(he.date()+Math.round(le*b)),L)},"y");if(F===f)return this.set(f,this.$M+b);if(F===$)return this.set($,this.$y+b);if(F===p)return Y(1);if(F===g)return Y(7);var ie=(T={},T[u]=t,T[c]=r,T[i]=e,T)[F]||1,ue=this.$d.getTime()+b*ie;return H.w(ue,this)},I.subtract=function(b,E){return this.add(-1*b,E)},I.format=function(b){var E=this,T=this.$locale();if(!this.isValid())return T.invalidDate||s;var L=b||"YYYY-MM-DDTHH:mm:ssZ",F=H.z(this),Y=this.$H,ie=this.$m,ue=this.$M,le=T.weekdays,he=T.months,Je=T.meridiem,Le=o(function(me,ke,gt,Ft){return me&&(me[ke]||me(E,L))||gt[ke].slice(0,Ft)},"h"),ft=o(function(me){return H.s(Y%12||12,me,"0")},"d"),Fe=Je||function(me,ke,gt){var Ft=me<12?"AM":"PM";return gt?Ft.toLowerCase():Ft};return L.replace(y,function(me,ke){return ke||function(gt){switch(gt){case"YY":return String(E.$y).slice(-2);case"YYYY":return H.s(E.$y,4,"0");case"M":return ue+1;case"MM":return H.s(ue+1,2,"0");case"MMM":return Le(T.monthsShort,ue,he,3);case"MMMM":return Le(he,ue);case"D":return E.$D;case"DD":return H.s(E.$D,2,"0");case"d":return String(E.$W);case"dd":return Le(T.weekdaysMin,E.$W,le,2);case"ddd":return Le(T.weekdaysShort,E.$W,le,3);case"dddd":return le[E.$W];case"H":return String(Y);case"HH":return H.s(Y,2,"0");case"h":return ft(1);case"hh":return ft(2);case"a":return Fe(Y,ie,!0);case"A":return Fe(Y,ie,!1);case"m":return String(ie);case"mm":return H.s(ie,2,"0");case"s":return String(E.$s);case"ss":return H.s(E.$s,2,"0");case"SSS":return H.s(E.$ms,3,"0");case"Z":return F}return null}(me)||F.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(b,E,T){var L,F=this,Y=H.p(E),ie=X(b),ue=(ie.utcOffset()-this.utcOffset())*t,le=this-ie,he=o(function(){return H.m(F,ie)},"D");switch(Y){case $:L=he()/12;break;case f:L=he();break;case _:L=he()/3;break;case g:L=(le-ue)/6048e5;break;case p:L=(le-ue)/864e5;break;case c:L=le/r;break;case u:L=le/t;break;case i:L=le/e;break;default:L=le}return T?L:H.a(L)},I.daysInMonth=function(){return this.endOf(f).$D},I.$locale=function(){return oe[this.$L]},I.locale=function(b,E){if(!b)return this.$L;var T=this.clone(),L=Pe(b,E,!0);return L&&(T.$L=L),T},I.clone=function(){return H.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},U}(),je=Ke.prototype;return X.prototype=je,[["$ms",n],["$s",i],["$m",u],["$H",c],["$W",p],["$M",f],["$y",$],["$D",x]].forEach(function(U){je[U[1]]=function(I){return this.$g(I,U[0],U[1])}}),X.extend=function(U,I){return U.$i||(U(I,Ke,X),U.$i=!0),X},X.locale=Pe,X.isDayjs=pe,X.unix=function(U){return X(1e3*U)},X.en=oe[Z],X.Ls=oe,X.p={},X})});var Ed={};zn(Ed,{messagebird:()=>$d});module.exports=nu(Ed);var ou=Object.freeze({status:"aborted"});function S(e,t,r){function n(p,g){if(p._zod||Object.defineProperty(p,"_zod",{value:{def:g,constr:c,traits:new Set},enumerable:!1}),p._zod.traits.has(e))return;p._zod.traits.add(e),t(p,g);let f=c.prototype,_=Object.keys(f);for(let $=0;$<_.length;$++){let x=_[$];x in p||(p[x]=f[x].bind(p))}}o(n,"init");let i=r?.Parent??Object;class u extends i{static{o(this,"Definition")}}Object.defineProperty(u,"name",{value:e});function c(p){var g;let f=r?.Parent?new u:this;n(f,p),(g=f._zod).deferred??(g.deferred=[]);for(let _ of f._zod.deferred)_();return f}return o(c,"_"),Object.defineProperty(c,"init",{value:n}),Object.defineProperty(c,Symbol.hasInstance,{value:o(p=>r?.Parent&&p instanceof r.Parent?!0:p?._zod?.traits?.has(e),"value")}),Object.defineProperty(c,"name",{value:e}),c}o(S,"$constructor");var iu=Symbol("zod_brand"),be=class extends Error{static{o(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Bt=class extends Error{static{o(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Pr={};function Te(e){return e&&Object.assign(Pr,e),Pr}o(Te,"config");function Ir(e){let t=Object.values(e).filter(n=>typeof n=="number");return Object.entries(e).filter(([n,i])=>t.indexOf(+n)===-1).map(([n,i])=>i)}o(Ir,"getEnumValues");function wn(e,t){return typeof t=="bigint"?t.toString():t}o(wn,"jsonStringifyReplacer");function Vt(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}o(Vt,"cached");function Rn(e){return e==null}o(Rn,"nullish");function Ht(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}o(Ht,"cleanRegex");var kn=Symbol("evaluating");function ae(e,t,r){let n;Object.defineProperty(e,t,{get(){if(n!==kn)return n===void 0&&(n=kn,n=r()),n},set(i){Object.defineProperty(e,t,{value:i})},configurable:!0})}o(ae,"defineLazy");var Tr="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function ht(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}o(ht,"isObject");var au=Vt(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Dn(e){if(ht(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(ht(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}o(Dn,"isPlainObject");var Nn=new Set(["string","number","symbol"]);function Xe(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}o(Xe,"escapeRegex");function Wt(e,t,r){let n=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(n._zod.parent=e),n}o(Wt,"clone");function ee(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:o(()=>t,"error")};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:o(()=>t.error,"error")}:t}o(ee,"normalizeParams");function Cn(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}o(Cn,"optionalKeys");var su={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Ye(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}o(Ye,"aborted");function we(e,t){return t.map(r=>{var n;return(n=r).path??(n.path=[]),r.path.unshift(e),r})}o(we,"prefixIssues");function Zt(e){return typeof e=="string"?e:e?.message}o(Zt,"unwrapMessage");function Re(e,t,r){let n={...e,path:e.path??[]};if(!e.message){let i=Zt(e.inst?._zod.def?.error?.(e))??Zt(t?.error?.(e))??Zt(r.customError?.(e))??Zt(r.localeError?.(e))??"Invalid input";n.message=i}return delete n.inst,delete n.continue,t?.reportInput||delete n.input,n}o(Re,"finalizeIssue");function Un(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}o(Un,"getLengthableOrigin");function $r(...e){let[t,r,n]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:n}:{...t}}o($r,"issue");var Mn=o((e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,wn,2),Object.defineProperty(e,"toString",{value:o(()=>e.message,"value"),enumerable:!1})},"initializer"),jn=S("$ZodError",Mn),vt=S("$ZodError",Mn,{Parent:Error});var cu=o(e=>(t,r,n,i)=>{let u=n?Object.assign(n,{async:!1}):{async:!1},c=t._zod.run({value:r,issues:[]},u);if(c instanceof Promise)throw new be;if(c.issues.length){let p=new(i?.Err??e)(c.issues.map(g=>Re(g,u,Te())));throw Tr(p,i?.callee),p}return c.value},"_parse"),Gt=cu(vt),lu=o(e=>async(t,r,n,i)=>{let u=n?Object.assign(n,{async:!0}):{async:!0},c=t._zod.run({value:r,issues:[]},u);if(c instanceof Promise&&(c=await c),c.issues.length){let p=new(i?.Err??e)(c.issues.map(g=>Re(g,u,Te())));throw Tr(p,i?.callee),p}return c.value},"_parseAsync"),qt=lu(vt),pu=o(e=>(t,r,n)=>{let i=n?{...n,async:!1}:{async:!1},u=t._zod.run({value:r,issues:[]},i);if(u instanceof Promise)throw new be;return u.issues.length?{success:!1,error:new(e??jn)(u.issues.map(c=>Re(c,i,Te())))}:{success:!0,data:u.value}},"_safeParse"),xt=pu(vt),du=o(e=>async(t,r,n)=>{let i=n?Object.assign(n,{async:!0}):{async:!0},u=t._zod.run({value:r,issues:[]},i);return u instanceof Promise&&(u=await u),u.issues.length?{success:!1,error:new e(u.issues.map(c=>Re(c,i,Te())))}:{success:!0,data:u.value}},"_safeParseAsync"),_t=du(vt);var mu="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",fu=new RegExp(`^${mu}$`);var Ln=o(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),Fn=/^-?\d+n?$/;var Er=/^-?\d+(?:\.\d+)?$/,Bn=/^(?:true|false)$/i;var Qe=S("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])});var Zn=S("$ZodCheckMinLength",(e,t)=>{var r;Qe.init(e,t),(r=e._zod.def).when??(r.when=n=>{let i=n.value;return!Rn(i)&&i.length!==void 0}),e._zod.onattach.push(n=>{let i=n._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>i&&(n._zod.bag.minimum=t.minimum)}),e._zod.check=n=>{let i=n.value;if(i.length>=t.minimum)return;let c=Un(i);n.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:i,inst:e,continue:!t.abort})}});var Sr=S("$ZodCheckStringFormat",(e,t)=>{var r,n;Qe.init(e,t),e._zod.onattach.push(i=>{let u=i._zod.bag;u.format=t.format,t.pattern&&(u.patterns??(u.patterns=new Set),u.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=i=>{t.pattern.lastIndex=0,!t.pattern.test(i.value)&&i.issues.push({origin:"string",code:"invalid_format",format:t.format,input:i.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(n=e._zod).check??(n.check=()=>{})}),Vn=S("$ZodCheckRegex",(e,t)=>{Sr.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}});var Wn={major:4,minor:3,patch:6};var te=S("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Wn;let n=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&n.unshift(e);for(let i of n)for(let u of i._zod.onattach)u(e);if(n.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=o((c,p,g)=>{let f=Ye(c),_;for(let $ of p){if($._zod.def.when){if(!$._zod.def.when(c))continue}else if(f)continue;let x=c.issues.length,s=$._zod.check(c);if(s instanceof Promise&&g?.async===!1)throw new be;if(_||s instanceof Promise)_=(_??Promise.resolve()).then(async()=>{await s,c.issues.length!==x&&(f||(f=Ye(c,x)))});else{if(c.issues.length===x)continue;f||(f=Ye(c,x))}}return _?_.then(()=>c):c},"runChecks"),u=o((c,p,g)=>{if(Ye(c))return c.aborted=!0,c;let f=i(p,n,g);if(f instanceof Promise){if(g.async===!1)throw new be;return f.then(_=>e._zod.parse(_,g))}return e._zod.parse(f,g)},"handleCanaryResult");e._zod.run=(c,p)=>{if(p.skipChecks)return e._zod.parse(c,p);if(p.direction==="backward"){let f=e._zod.parse({value:c.value,issues:[]},{...p,skipChecks:!0});return f instanceof Promise?f.then(_=>u(_,c,p)):u(f,c,p)}let g=e._zod.parse(c,p);if(g instanceof Promise){if(p.async===!1)throw new be;return g.then(f=>i(f,n,p))}return i(g,n,p)}}ae(e,"~standard",()=>({validate:o(i=>{try{let u=xt(e,i);return u.success?{value:u.data}:{issues:u.error?.issues}}catch{return _t(e,i).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},"validate"),vendor:"zod",version:1}))}),Xt=S("$ZodString",(e,t)=>{te.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??Ln(e._zod.bag),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Ar=S("$ZodStringFormat",(e,t)=>{Sr.init(e,t),Xt.init(e,t)});var Xn=S("$ZodURL",(e,t)=>{Ar.init(e,t),e._zod.check=r=>{try{let n=r.value.trim(),i=new URL(n);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(i.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(i.protocol.endsWith(":")?i.protocol.slice(0,-1):i.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=i.href:r.value=n;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}});var Yn=S("$ZodNumber",(e,t)=>{te.init(e,t),e._zod.pattern=e._zod.bag.pattern??Er,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let i=r.value;if(typeof i=="number"&&!Number.isNaN(i)&&Number.isFinite(i))return r;let u=typeof i=="number"?Number.isNaN(i)?"NaN":Number.isFinite(i)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:i,inst:e,...u?{received:u}:{}}),r}});var zr=S("$ZodBoolean",(e,t)=>{te.init(e,t),e._zod.pattern=Bn,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=!!r.value}catch{}let i=r.value;return typeof i=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:i,inst:e}),r}}),Qn=S("$ZodBigInt",(e,t)=>{te.init(e,t),e._zod.pattern=Fn,e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}});var eo=S("$ZodAny",(e,t)=>{te.init(e,t),e._zod.parse=r=>r}),to=S("$ZodUnknown",(e,t)=>{te.init(e,t),e._zod.parse=r=>r});var ro=S("$ZodVoid",(e,t)=>{te.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;return typeof i>"u"||r.issues.push({expected:"void",code:"invalid_type",input:i,inst:e}),r}}),no=S("$ZodDate",(e,t)=>{te.init(e,t),e._zod.parse=(r,n)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let i=r.value,u=i instanceof Date;return u&&!Number.isNaN(i.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:i,...u?{received:"Invalid Date"}:{},inst:e}),r}});function Gn(e,t,r){e.issues.length&&t.issues.push(...we(r,e.issues)),t.value[r]=e.value}o(Gn,"handleArrayResult");var oo=S("$ZodArray",(e,t)=>{te.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=Array(i.length);let u=[];for(let c=0;c<i.length;c++){let p=i[c],g=t.element._zod.run({value:p,issues:[]},n);g instanceof Promise?u.push(g.then(f=>Gn(f,r,c))):Gn(g,r,c)}return u.length?Promise.all(u).then(()=>r):r}});function Jt(e,t,r,n,i){if(e.issues.length){if(i&&!(r in n))return;t.issues.push(...we(r,e.issues))}e.value===void 0?r in n&&(t.value[r]=void 0):t.value[r]=e.value}o(Jt,"handlePropertyResult");function gu(e){let t=Object.keys(e.shape);for(let n of t)if(!e.shape?.[n]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${n}": expected a Zod schema`);let r=Cn(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}o(gu,"normalizeDef");function yu(e,t,r,n,i,u){let c=[],p=i.keySet,g=i.catchall._zod,f=g.def.type,_=g.optout==="optional";for(let $ in t){if(p.has($))continue;if(f==="never"){c.push($);continue}let x=g.run({value:t[$],issues:[]},n);x instanceof Promise?e.push(x.then(s=>Jt(s,r,$,t,_))):Jt(x,r,$,t,_)}return c.length&&r.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:u}),e.length?Promise.all(e).then(()=>r):r}o(yu,"handleCatchall");var io=S("$ZodObject",(e,t)=>{if(te.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let p=t.shape;Object.defineProperty(t,"shape",{get:o(()=>{let g={...p};return Object.defineProperty(t,"shape",{value:g}),g},"get")})}let n=Vt(()=>gu(t));ae(e._zod,"propValues",()=>{let p=t.shape,g={};for(let f in p){let _=p[f]._zod;if(_.values){g[f]??(g[f]=new Set);for(let $ of _.values)g[f].add($)}}return g});let i=ht,u=t.catchall,c;e._zod.parse=(p,g)=>{c??(c=n.value);let f=p.value;if(!i(f))return p.issues.push({expected:"object",code:"invalid_type",input:f,inst:e}),p;p.value={};let _=[],$=c.shape;for(let x of c.keys){let s=$[x],d=s._zod.optout==="optional",y=s._zod.run({value:f[x],issues:[]},g);y instanceof Promise?_.push(y.then(m=>Jt(m,p,x,f,d))):Jt(y,p,x,f,d)}return u?yu(_,f,p,g,n.value,e):_.length?Promise.all(_).then(()=>p):p}});function qn(e,t,r,n){for(let u of e)if(u.issues.length===0)return t.value=u.value,t;let i=e.filter(u=>!Ye(u));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(u=>u.issues.map(c=>Re(c,n,Te())))}),t)}o(qn,"handleUnionResults");var Or=S("$ZodUnion",(e,t)=>{te.init(e,t),ae(e._zod,"optin",()=>t.options.some(i=>i._zod.optin==="optional")?"optional":void 0),ae(e._zod,"optout",()=>t.options.some(i=>i._zod.optout==="optional")?"optional":void 0),ae(e._zod,"values",()=>{if(t.options.every(i=>i._zod.values))return new Set(t.options.flatMap(i=>Array.from(i._zod.values)))}),ae(e._zod,"pattern",()=>{if(t.options.every(i=>i._zod.pattern)){let i=t.options.map(u=>u._zod.pattern);return new RegExp(`^(${i.map(u=>Ht(u.source)).join("|")})$`)}});let r=t.options.length===1,n=t.options[0]._zod.run;e._zod.parse=(i,u)=>{if(r)return n(i,u);let c=!1,p=[];for(let g of t.options){let f=g._zod.run({value:i.value,issues:[]},u);if(f instanceof Promise)p.push(f),c=!0;else{if(f.issues.length===0)return f;p.push(f)}}return c?Promise.all(p).then(g=>qn(g,i,e,u)):qn(p,i,e,u)}});var ao=S("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Or.init(e,t);let r=e._zod.parse;ae(e._zod,"propValues",()=>{let i={};for(let u of t.options){let c=u._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(u)}"`);for(let[p,g]of Object.entries(c)){i[p]||(i[p]=new Set);for(let f of g)i[p].add(f)}}return i});let n=Vt(()=>{let i=t.options,u=new Map;for(let c of i){let p=c._zod.propValues?.[t.discriminator];if(!p||p.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(c)}"`);for(let g of p){if(u.has(g))throw new Error(`Duplicate discriminator value "${String(g)}"`);u.set(g,c)}}return u});e._zod.parse=(i,u)=>{let c=i.value;if(!ht(c))return i.issues.push({code:"invalid_type",expected:"object",input:c,inst:e}),i;let p=n.value.get(c?.[t.discriminator]);return p?p._zod.run(i,u):t.unionFallback?r(i,u):(i.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:c,path:[t.discriminator],inst:e}),i)}});var so=S("$ZodRecord",(e,t)=>{te.init(e,t),e._zod.parse=(r,n)=>{let i=r.value;if(!Dn(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let u=[],c=t.keyType._zod.values;if(c){r.value={};let p=new Set;for(let f of c)if(typeof f=="string"||typeof f=="number"||typeof f=="symbol"){p.add(typeof f=="number"?f.toString():f);let _=t.valueType._zod.run({value:i[f],issues:[]},n);_ instanceof Promise?u.push(_.then($=>{$.issues.length&&r.issues.push(...we(f,$.issues)),r.value[f]=$.value})):(_.issues.length&&r.issues.push(...we(f,_.issues)),r.value[f]=_.value)}let g;for(let f in i)p.has(f)||(g=g??[],g.push(f));g&&g.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:g})}else{r.value={};for(let p of Reflect.ownKeys(i)){if(p==="__proto__")continue;let g=t.keyType._zod.run({value:p,issues:[]},n);if(g instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof p=="string"&&Er.test(p)&&g.issues.length){let $=t.keyType._zod.run({value:Number(p),issues:[]},n);if($ instanceof Promise)throw new Error("Async schemas not supported in object keys currently");$.issues.length===0&&(g=$)}if(g.issues.length){t.mode==="loose"?r.value[p]=i[p]:r.issues.push({code:"invalid_key",origin:"record",issues:g.issues.map($=>Re($,n,Te())),input:p,path:[p],inst:e});continue}let _=t.valueType._zod.run({value:i[p],issues:[]},n);_ instanceof Promise?u.push(_.then($=>{$.issues.length&&r.issues.push(...we(p,$.issues)),r.value[g.value]=$.value})):(_.issues.length&&r.issues.push(...we(p,_.issues)),r.value[g.value]=_.value)}}return u.length?Promise.all(u).then(()=>r):r}});var uo=S("$ZodEnum",(e,t)=>{te.init(e,t);let r=Ir(t.entries),n=new Set(r);e._zod.values=n,e._zod.pattern=new RegExp(`^(${r.filter(i=>Nn.has(typeof i)).map(i=>typeof i=="string"?Xe(i):i.toString()).join("|")})$`),e._zod.parse=(i,u)=>{let c=i.value;return n.has(c)||i.issues.push({code:"invalid_value",values:r,input:c,inst:e}),i}}),co=S("$ZodLiteral",(e,t)=>{if(te.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(n=>typeof n=="string"?Xe(n):n?Xe(n.toString()):String(n)).join("|")})$`),e._zod.parse=(n,i)=>{let u=n.value;return r.has(u)||n.issues.push({code:"invalid_value",values:t.values,input:u,inst:e}),n}});var lo=S("$ZodTransform",(e,t)=>{te.init(e,t),e._zod.parse=(r,n)=>{if(n.direction==="backward")throw new Bt(e.constructor.name);let i=t.transform(r.value,r);if(n.async)return(i instanceof Promise?i:Promise.resolve(i)).then(c=>(r.value=c,r));if(i instanceof Promise)throw new be;return r.value=i,r}});function Kn(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}o(Kn,"handleOptionalResult");var po=S("$ZodOptional",(e,t)=>{te.init(e,t),e._zod.optin="optional",e._zod.optout="optional",ae(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),ae(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ht(r.source)})?$`):void 0}),e._zod.parse=(r,n)=>{if(t.innerType._zod.optin==="optional"){let i=t.innerType._zod.run(r,n);return i instanceof Promise?i.then(u=>Kn(u,r.value)):Kn(i,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,n)}});var mo=S("$ZodNullable",(e,t)=>{te.init(e,t),ae(e._zod,"optin",()=>t.innerType._zod.optin),ae(e._zod,"optout",()=>t.innerType._zod.optout),ae(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ht(r.source)}|null)$`):void 0}),ae(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,n)=>r.value===null?r:t.innerType._zod.run(r,n)});var fo=S("$ZodPipe",(e,t)=>{te.init(e,t),ae(e._zod,"values",()=>t.in._zod.values),ae(e._zod,"optin",()=>t.in._zod.optin),ae(e._zod,"optout",()=>t.out._zod.optout),ae(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,n)=>{if(n.direction==="backward"){let u=t.out._zod.run(r,n);return u instanceof Promise?u.then(c=>Kt(c,t.in,n)):Kt(u,t.in,n)}let i=t.in._zod.run(r,n);return i instanceof Promise?i.then(u=>Kt(u,t.out,n)):Kt(i,t.out,n)}});function Kt(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}o(Kt,"handlePipeResult");var go=S("$ZodCustom",(e,t)=>{Qe.init(e,t),te.init(e,t),e._zod.parse=(r,n)=>r,e._zod.check=r=>{let n=r.value,i=t.fn(n);if(i instanceof Promise)return i.then(u=>Jn(u,r,n,e));Jn(i,r,n,e)}});function Jn(e,t,r,n){if(!e){let i={code:"custom",input:r,inst:n,path:[...n._zod.def.path??[]],continue:!n._zod.def.abort};n._zod.def.params&&(i.params=n._zod.def.params),t.issues.push($r(i))}}o(Jn,"handleRefineResult");var ho,_u=Symbol("ZodOutput"),Pu=Symbol("ZodInput"),kr=class{static{o(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let n=r[0];return this._map.set(t,n),n&&typeof n=="object"&&"id"in n&&this._idmap.set(n.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let n={...this.get(r)??{}};delete n.id;let i={...n,...this._map.get(t)};return Object.keys(i).length?i:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function vo(){return new kr}o(vo,"registry");(ho=globalThis).__zod_globalRegistry??(ho.__zod_globalRegistry=vo());var wr=globalThis.__zod_globalRegistry;function xo(e,t){return new e({type:"string",...ee(t)})}o(xo,"_string");function _o(e,t){return new e({type:"string",coerce:!0,...ee(t)})}o(_o,"_coercedString");function Po(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...ee(t)})}o(Po,"_url");function bo(e,t){return new e({type:"number",checks:[],...ee(t)})}o(bo,"_number");function Io(e,t){return new e({type:"number",coerce:!0,checks:[],...ee(t)})}o(Io,"_coercedNumber");function To(e,t){return new e({type:"boolean",...ee(t)})}o(To,"_boolean");function $o(e,t){return new e({type:"boolean",coerce:!0,...ee(t)})}o($o,"_coercedBoolean");function Eo(e,t){return new e({type:"bigint",coerce:!0,...ee(t)})}o(Eo,"_coercedBigint");function So(e){return new e({type:"any"})}o(So,"_any");function Ao(e){return new e({type:"unknown"})}o(Ao,"_unknown");function zo(e,t){return new e({type:"void",...ee(t)})}o(zo,"_void");function Oo(e,t){return new e({type:"date",coerce:!0,...ee(t)})}o(Oo,"_coercedDate");function xe(e,t){return new Zn({check:"min_length",...ee(t),minimum:e})}o(xe,"_minLength");function De(e,t){return new Vn({check:"string_format",format:"regex",...ee(t),pattern:e})}o(De,"_regex");function ko(e,t,r){let n=ee(r);return n.abort??(n.abort=!0),new e({type:"custom",check:"custom",fn:t,...n})}o(ko,"_custom");var se=S("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");te.init(e,t),e.def=t,e.type=t.type,e.parse=(r,n)=>Gt(e,r,n,{callee:e.parse}),e.safeParse=(r,n)=>xt(e,r,n),e.parseAsync=async(r,n)=>qt(e,r,n,{callee:e.parseAsync}),e.safeParseAsync=async(r,n)=>_t(e,r,n),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]},{parent:!0}),e.with=e.check,e.clone=(r,n)=>Wt(e,r,n),e.brand=()=>e,e.register=(r,n)=>(r.add(e,n),e),e.apply=r=>r(e)}),Qt=S("ZodMiniString",(e,t)=>{Xt.init(e,t),se.init(e,t)});function a(e){return xo(Qt,e)}o(a,"string");var wo=S("ZodMiniStringFormat",(e,t)=>{Ar.init(e,t),Qt.init(e,t)});var ku=S("ZodMiniURL",(e,t)=>{Xn.init(e,t),wo.init(e,t)});function Ro(e){return Po(ku,e)}o(Ro,"url");var Rr=S("ZodMiniNumber",(e,t)=>{Yn.init(e,t),se.init(e,t)});function de(e){return bo(Rr,e)}o(de,"number");var Dr=S("ZodMiniBoolean",(e,t)=>{zr.init(e,t),se.init(e,t)});function J(e){return To(Dr,e)}o(J,"boolean");var Do=S("ZodMiniBigInt",(e,t)=>{Qn.init(e,t),se.init(e,t)});var wu=S("ZodMiniAny",(e,t)=>{eo.init(e,t),se.init(e,t)});function bt(){return So(wu)}o(bt,"any");var Ru=S("ZodMiniUnknown",(e,t)=>{to.init(e,t),se.init(e,t)});function D(){return Ao(Ru)}o(D,"unknown");var Du=S("ZodMiniVoid",(e,t)=>{ro.init(e,t),se.init(e,t)});function No(e){return zo(Du,e)}o(No,"_void");var Co=S("ZodMiniDate",(e,t)=>{no.init(e,t),se.init(e,t)});var Nu=S("ZodMiniArray",(e,t)=>{oo.init(e,t),se.init(e,t)});function M(e,t){return new Nu({type:"array",element:e,...ee(t)})}o(M,"array");var Cu=S("ZodMiniObject",(e,t)=>{io.init(e,t),se.init(e,t),ae(e,"shape",()=>t.shape)});function l(e,t){let r={type:"object",shape:e??{},...ee(t)};return new Cu(r)}o(l,"object");var Uu=S("ZodMiniUnion",(e,t)=>{Or.init(e,t),se.init(e,t)});function j(e,t){return new Uu({type:"union",options:e,...ee(t)})}o(j,"union");var Mu=S("ZodMiniDiscriminatedUnion",(e,t)=>{ao.init(e,t),se.init(e,t)});function et(e,t,r){return new Mu({type:"union",options:t,discriminator:e,...ee(r)})}o(et,"discriminatedUnion");var ju=S("ZodMiniRecord",(e,t)=>{so.init(e,t),se.init(e,t)});function N(e,t,r){return new ju({type:"record",keyType:e,valueType:t,...ee(r)})}o(N,"record");var Lu=S("ZodMiniEnum",(e,t)=>{uo.init(e,t),se.init(e,t),e.options=Object.values(t.entries)});function V(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(n=>[n,n])):e;return new Lu({type:"enum",entries:r,...ee(t)})}o(V,"_enum");var Fu=S("ZodMiniLiteral",(e,t)=>{co.init(e,t),se.init(e,t)});function O(e,t){return new Fu({type:"literal",values:Array.isArray(e)?e:[e],...ee(t)})}o(O,"literal");var Bu=S("ZodMiniTransform",(e,t)=>{lo.init(e,t),se.init(e,t)});function Ne(e){return new Bu({type:"transform",transform:e})}o(Ne,"transform");var Zu=S("ZodMiniOptional",(e,t)=>{po.init(e,t),se.init(e,t)});function h(e){return new Zu({type:"optional",innerType:e})}o(h,"optional");var Vu=S("ZodMiniNullable",(e,t)=>{mo.init(e,t),se.init(e,t)});function It(e){return new Vu({type:"nullable",innerType:e})}o(It,"nullable");var Hu=S("ZodMiniPipe",(e,t)=>{fo.init(e,t),se.init(e,t)});function Ce(e,t){return new Hu({type:"pipe",in:e,out:t})}o(Ce,"pipe");var Wu=S("ZodMiniCustom",(e,t)=>{go.init(e,t),se.init(e,t)});function er(e,t){return ko(Wu,e??(()=>!0),t)}o(er,"custom");var Tt={};zn(Tt,{bigint:()=>Qu,boolean:()=>Yu,date:()=>ec,number:()=>Xu,string:()=>Ju});function Ju(e){return _o(Qt,e)}o(Ju,"string");function Xu(e){return Io(Rr,e)}o(Xu,"number");function Yu(e){return $o(Dr,e)}o(Yu,"boolean");function Qu(e){return Eo(Do,e)}o(Qu,"bigint");function ec(e){return Oo(Co,e)}o(ec,"date");var Cr=l({retryOnFailure:l({defaultValue:h(J()),hide:h(J())}),continueOnFailure:l({defaultValue:h(J()),hide:h(J())})}),Nr=class{constructor(t,r,n,i,u,c,p,g,f,_,$){this.name=t;this.displayName=r;this.description=n;this.props=i;this.run=u;this.test=c;this.requireAuth=p;this.errorHandlingOptions=g;this.outputSchema=f;this.audience=_;this.aiMetadata=$}static{o(this,"IAction")}},tt=o(e=>new Nr(e.name,e.displayName,e.description,e.props,e.run,e.test??e.run,e.requireAuth??!0,e.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},e.outputSchema,e.audience,e.aiMetadata),"createAction");var q=l({displayName:a(),description:h(a())}),B=o((e,t)=>l({type:O(t),required:J(),defaultValue:h(bt())}),"TPropertyValue");var ge=l({...q.shape,...B(a(),"SHORT_TEXT").shape}),$e=l({...q.shape,...B(a(),"LONG_TEXT").shape});var Mo=l({label:a(),value:D()}),tr=l({disabled:h(J()),placeholder:h(a()),options:M(Mo)});var ye=l({...q.shape,options:tr,...B(D(),"STATIC_DROPDOWN").shape}),Ee=l({...q.shape,options:tr,...B(M(D()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var Ur=l({...q.shape,...B(D(),"DROPDOWN").shape,refreshers:M(a())}),$t=l({...q.shape,...B(M(D()),"MULTI_SELECT_DROPDOWN").shape,refreshers:M(a())});var Se=l({...q.shape,...B(J(),"CHECKBOX").shape});var Ae=l({...q.shape,...B(de(),"NUMBER").shape});var Et=l({...q.shape,...B(D(),"FILE").shape});var St=l({...q.shape,...B(a(),"DATE_TIME").shape});var jo=N(a(),j([ge,$e,ye,$t,Ee,Se,Ae,Et,St])),At=l({...q.shape,properties:jo,...B(M(D()),"ARRAY").shape});var zt=l({...q.shape,...B(j([N(a(),D())]),"JSON").shape});var Lo=j([ge,ye,zt,At,Ee]),rc=N(a(),Lo),Mr=l({refreshers:M(a()),...q.shape,...B(D(),"DYNAMIC").shape});var rr=l({...q.shape,...B(No(),"MARKDOWN").shape});var Ot=(r=>(r.ARCHIVE="ARCHIVE",r.REGISTRY="REGISTRY",r))(Ot||{}),rt=(r=>(r.CUSTOM="CUSTOM",r.OFFICIAL="OFFICIAL",r))(rt||{}),nt=(v=>(v.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",v.COMMUNICATION="COMMUNICATION",v.COMMERCE="COMMERCE",v.CORE="CORE",v.UNIVERSAL_AI="UNIVERSAL_AI",v.FLOW_CONTROL="FLOW_CONTROL",v.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",v.ACCOUNTING="ACCOUNTING",v.PRODUCTIVITY="PRODUCTIVITY",v.CONTENT_AND_FILES="CONTENT_AND_FILES",v.DEVELOPER_TOOLS="DEVELOPER_TOOLS",v.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",v.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",v.HUMAN_RESOURCES="HUMAN_RESOURCES",v.PAYMENT_PROCESSING="PAYMENT_PROCESSING",v.MARKETING="MARKETING",v.SALES_AND_CRM="SALES_AND_CRM",v))(nt||{});var kt=(r=>(r.AUTHORIZATION_CODE="authorization_code",r.CLIENT_CREDENTIALS="client_credentials",r))(kt||{}),jr="both_client_credentials_and_authorization_code";var Ze=(i=>(i.POLLING="POLLING",i.WEBHOOK="WEBHOOK",i.APP_WEBHOOK="APP_WEBHOOK",i.MANUAL="MANUAL",i))(Ze||{}),wt=(u=>(u.NONE="NONE",u.HEADER_PRESENT="HEADER_PRESENT",u.QUERY_PRESENT="QUERY_PRESENT",u.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",u.HEAD_REQUEST="HEAD_REQUEST",u))(wt||{}),nc=l({strategy:V(wt),paramName:h(a())}),Rt=(r=>(r.SIMULATION="SIMULATION",r.TEST_FUNCTION="TEST_FUNCTION",r))(Rt||{});var nr=(r=>(r.WEBSOCKET="WEBSOCKET",r.NONE="NONE",r))(nr||{}),Fo=l({status:h(de()),body:h(D()),headers:h(N(a(),a()))}),Bo=l({type:O("DELAY"),resumeDateTime:a(),requestIdToReply:h(a()),handlerId:h(a()),streamStepProgress:h(V(nr))}),Zo=l({type:O("WEBHOOK"),requestId:a(),requestIdToReply:h(a()),response:Fo,handlerId:h(a()),streamStepProgress:h(V(nr))}),oc=j([Bo,Zo]);var ic=l({body:D(),rawBody:h(D()),headers:N(a(),a()),queryParams:N(a(),a())});function ze(e){return e==null}o(ze,"isNil");function Dt(e){return e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1}o(Dt,"isEmpty");function or(e,t){if(e==null)throw new Error(`${t} is null or undefined`)}o(or,"assertNotNullOrUndefined");var Lr=Be(require("crypto"),1);var ac=128,Ve,ot,sc=o(e=>{!Ve||Ve.length<e?(Ve=Buffer.allocUnsafe(e*ac),Lr.default.randomFillSync(Ve),ot=0):ot+e>Ve.length&&(Lr.default.randomFillSync(Ve),ot=0),ot+=e},"fillPool"),uc=o(e=>(sc(e|=0),Ve.subarray(ot-e,ot)),"random"),cc=o((e,t,r)=>{let n=(2<<31-Math.clz32(e.length-1|1))-1,i=Math.ceil(1.6*n*t/e.length);return(u=t)=>{let c="";for(;;){let p=r(i),g=i;for(;g--;)if(c+=e[p[g]&n]||"",c.length===u)return c}}},"customRandom"),Ho=o((e,t=21)=>cc(e,t,uc),"customAlphabet");var lc="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Wo=21,cb=a().check(De(new RegExp(`^[0-9a-zA-Z]{${Wo}}$`))),pc=Ho(lc,Wo);var Ue=Ce(Ne(e=>e instanceof Date?e.toISOString():e),a()),ve={id:a(),created:Ue,updated:Ue},Q=o(e=>h(It(e)),"Nullable");function Fr(e){return h(It(V(e)))}o(Fr,"NullableEnum");var db=Ce(Ne(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),h(J())),ir=o(e=>Ce(Ne(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),h(M(e))),"OptionalArrayFromQuery");var gb=N(a(),D());var Nt=(_=>(_.OPENAI="openai",_.OPENROUTER="openrouter",_.ANTHROPIC="anthropic",_.AZURE="azure",_.GOOGLE="google",_.ACTIVEPIECES="activepieces",_.CLOUDFLARE_GATEWAY="cloudflare-gateway",_.CUSTOM="custom",_.BEDROCK="bedrock",_.MISTRAL="mistral",_))(Nt||{});var Sb=a().check(De(/^#[0-9A-Fa-f]{6}$/));var zb=l({filename:a(),data:D(),type:O("file"),mimetype:h(a())});var dc=Be(qo());var Cb=l({...ve,name:a(),permissions:M(a()),platformId:Q(a()),type:a(),userCount:h(de())});var Ko=(n=>(n.AGENT_DECIDE="agent-decide",n.CHOOSE_YOURSELF="choose-yourself",n.LEAVE_EMPTY="leave-empty",n))(Ko||{}),Br=(r=>(r.FILE="FILE",r.TABLE="TABLE",r))(Br||{}),Zr=(n=>(n.SSE="sse",n.STREAMABLE_HTTP="streamable-http",n.SIMPLE_HTTP="http",n))(Zr||{});var Vr=(n=>(n.TEXT="text",n.NUMBER="number",n.BOOLEAN="boolean",n))(Vr||{});var Hr=(r=>(r.IN_PROGRESS="in-progress",r.COMPLETED="completed",r))(Hr||{});var mc=l({mode:V(Ko),value:D()}),fc=l({auth:h(a()),fields:N(a(),mc)}),gc=l({pieceName:a(),pieceVersion:a(),actionName:a(),predefinedInput:h(fc)}),yc=l({type:O("PIECE"),toolName:a().check(xe(1)),pieceMetadata:gc}),hc=l({type:O("none")}),vc=l({type:O("access_token"),accessToken:a()}),xc=l({type:O("api_key"),apiKey:a(),apiKeyHeader:a()}),_c=l({type:O("headers"),headers:N(a(),a())}),Pc=et("type",[hc,vc,xc,_c]),Jo=l({type:O("FLOW"),toolName:a().check(xe(1)),externalFlowId:a(),flowDisplayName:h(a())}),Xo=l({type:O("MCP"),toolName:a().check(xe(1)),serverUrl:Ro(),protocol:V(Zr),auth:Pc}),Yo=l({type:O("KNOWLEDGE_BASE"),toolName:a().check(xe(1)),sourceType:V(Br),sourceId:a(),sourceName:a()}),bc=et("type",[yc,Jo,Xo,Yo]),Ic=l({displayName:a(),description:h(a()),type:V(Vr)}),Qo=l({type:O("MARKDOWN"),markdown:a()}),it={type:O("TOOL_CALL"),input:Q(N(a(),D())),output:h(D()),toolName:a(),status:V(Hr),toolCallId:a(),startTime:a(),endTime:h(a())},cI=l(it),ei=et("toolCallType",[l({...it,toolCallType:O("PIECE"),pieceName:a(),pieceVersion:a(),actionName:a()}),l({...it,toolCallType:O("FLOW"),displayName:a(),externalFlowId:a()}),l({...it,toolCallType:O("MCP"),displayName:a(),serverUrl:a()}),l({...it,toolCallType:O("KNOWLEDGE_BASE"),displayName:a(),sourceType:a()}),l({...it,toolCallType:O("UNKNOWN"),displayName:a()})]),Tc=j([Qo,ei]);var Wr=(r=>(r.IMAGE="image",r.TEXT="text",r))(Wr||{}),Oe=l({apiKey:a()}),$c=Oe,Ec=l({apiKey:a(),apiKeyHash:a()}),Sc=Oe,Ac=Oe,zc=Oe,Oc=Oe,kc=Oe,wc=Oe,Rc=Oe,ti=l({accessKeyId:a().check(xe(1)),secretAccessKey:a().check(xe(1))}),Dc=l({}),Nc=l({}),Cc=l({}),Uc=l({}),Mc=l({}),jc=l({}),ri=l({modelId:a(),modelName:a(),modelType:V(Wr)}),ni=l({apiKeyHeader:a(),baseUrl:a(),models:M(ri),defaultHeaders:h(N(a(),a()))}),oi=l({accountId:a(),gatewayId:a(),models:M(ri),vertexProject:h(a()),vertexRegion:h(a())}),ii=l({resourceName:a(),apiVersion:Ce(Ne(e=>typeof e=="string"&&e.trim().length===0?void 0:e),h(a()))}),ai=l({region:a().check(xe(1))}),Lc=j([$c,zc,Oc,kc,wc,Ac,Sc,Ec,ti,Rc]),si=j([ni,oi,ii,ai,Dc,Cc,Uc,Mc,Nc,jc]),Fc=l({id:a(),name:a(),type:V(Wr)}),Bc=l({id:a(),name:a(),provider:V(Nt),config:si,enabledForChat:J()}),Zc=l({provider:V(Nt),config:si,auth:Lc,platformId:a()});var mI={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"};var Vc=l({base64Url:a(),fileName:a(),extension:h(a())}),Hc=l({mimeType:a(),url:a(),fileName:h(a())}),Gr=j([Vc,Hc]);var Wc=j([l({type:O("file"),value:Gr}),l({type:O("markdown"),value:a(),files:h(M(Gr))})]),Gc=l({sessionId:a(),message:a(),files:h(M(a()))});var ci=(r=>(r.ON_NEW_RECORD="ON_NEW_RECORD",r.ON_UPDATE_RECORD="ON_UPDATE_RECORD",r))(ci||{}),li=(r=>(r.ENABLED="ENABLED",r.DISABLED="DISABLED",r))(li||{}),qr=(n=>(n.RECORD_CREATED="RECORD_CREATED",n.RECORD_UPDATED="RECORD_UPDATED",n.RECORD_DELETED="RECORD_DELETED",n))(qr||{});var qc=j([l({...ve,name:a(),externalId:a(),type:O("STATIC_DROPDOWN"),tableId:a(),projectId:a(),data:l({options:M(l({value:a()}))})}),l({...ve,name:a(),externalId:a(),type:j([O("TEXT"),O("NUMBER"),O("DATE")]),tableId:a(),projectId:a()})]),Kc=l({...ve,name:a(),folderId:Q(a()),projectId:a(),externalId:a(),status:Fr(li),trigger:Fr(ci)}),Jc=l({...ve,tableId:a(),projectId:a(),cells:N(a(),l({updated:a(),created:a(),value:D(),fieldName:a()}))}),Xc=l({events:M(V(qr)),webhookUrl:a(),flowId:a()}),Yc=l({fields:M(l({id:a(),name:a()})),rows:M(N(a(),a())),name:a()}),Qc=l({projectId:a(),limit:h(Tt.number()),cursor:h(a()),name:h(a()),externalIds:ir(a()),folderId:h(a()),folderIds:ir(a())}),el=l({records:M(M(l({fieldId:a(),value:di()}))),tableId:a()}),tl=l({cells:h(M(l({fieldId:a(),value:di()}))),tableId:a(),agentUpdate:h(J())}),pi=et("operator",[He("eq"),He("neq"),He("gt"),He("gte"),He("lt"),He("lte"),He("co"),ui("exists"),ui("not_exists")]),rl=l({tableId:a(),limit:h(Tt.number()),cursor:h(a()),filters:ir(pi)});function di(){return Ce(Ne(e=>e==null?e:String(e)),It(a()))}o(di,"coerceToString");function He(e){return l({fieldId:a(),operator:O(e),value:a()})}o(He,"valueFilter");function ui(e){return l({fieldId:a(),operator:O(e)})}o(ui,"existenceFilter");var nl=l({status:h(de()),body:h(D()),headers:h(N(a(),a()))}),ol=l({...ve,deleted:Q(Ue),ownerId:a(),displayName:a(),platformId:a(),externalId:Q(a())});var mi=l({name:a(),description:h(a()),type:a(),required:J()}),il=l({pieceName:a(),triggerName:a(),input:l({toolName:a(),toolDescription:a(),inputSchema:M(mi),returnsResponse:J()})});var fi="^[0-9]+\\.[0-9]+\\.[0-9]+$",wI=new RegExp(fi),sl="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",RI=a().check(De(new RegExp(fi))),DI=a().check(De(new RegExp(sl))),ul=l({packageType:O("ARCHIVE"),pieceType:V(rt),pieceName:a(),pieceVersion:a(),archiveId:a(),platformId:a()}),gi=l({packageType:O("REGISTRY"),pieceType:O("OFFICIAL"),pieceName:a(),pieceVersion:a()}),yi=l({packageType:O("REGISTRY"),pieceType:O("CUSTOM"),pieceName:a(),pieceVersion:a(),platformId:a()}),NI=j([gi,yi]),CI=j([ul,gi,yi]),hi=(t=>(t.CRON_EXPRESSION="CRON_EXPRESSION",t))(hi||{}),cl=l({type:V(hi),cronExpression:a(),timezone:a()}),UI=l({...ve,type:V(Ze),projectId:a(),flowId:a(),triggerName:a(),schedule:Q(cl),flowVersionId:a(),pieceName:a(),pieceVersion:a(),deleted:Q(a()),simulate:J()}),vi=(m=>(m.UNKNOWN="UNKNOWN",m.FLOW_RUN_LOG="FLOW_RUN_LOG",m.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",m.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",m.FLOW_STEP_FILE="FLOW_STEP_FILE",m.SAMPLE_DATA="SAMPLE_DATA",m.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",m.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",m.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",m.PROJECT_RELEASE="PROJECT_RELEASE",m.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",m.PLATFORM_ASSET="PLATFORM_ASSET",m.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",m.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",m.KNOWLEDGE_BASE="KNOWLEDGE_BASE",m.FLOW_BUNDLE="FLOW_BUNDLE",m))(vi||{}),xi=(r=>(r.NONE="NONE",r.ZSTD="ZSTD",r))(xi||{}),_i=(r=>(r.S3="S3",r.DB="DB",r))(_i||{}),MI=l({...ve,projectId:Q(a()),platformId:Q(a()),type:V(vi),compression:V(xi),data:h(D()),location:V(_i),size:Q(de()),fileName:Q(a()),s3Key:Q(a()),metadata:Q(N(a(),a()))}),Pi=(n=>(n.ADMIN="ADMIN",n.MEMBER="MEMBER",n.OPERATOR="OPERATOR",n))(Pi||{}),bi=(r=>(r.ACTIVE="ACTIVE",r.INACTIVE="INACTIVE",r))(bi||{}),jI=l({id:a(),email:a(),firstName:a(),status:V(bi),externalId:Q(a()),platformId:Q(a()),platformRole:V(Pi),lastName:a(),created:Ue,updated:Ue,lastActiveDate:Q(Ue),imageUrl:Q(a())});var Kr=l({...q.shape,...B(N(a(),D()),"OBJECT").shape});var Ei=l({...q.shape,...B(a(),"COLOR").shape});var Jr=j([ge,$e,rr,Se,ye,Ee,Ur,$t,Mr,Ae,At,Kr,zt,St,Et,Ei]),K={ShortText(e){return{...e,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(e){return{...e,valueSchema:void 0,type:"CHECKBOX"}},LongText(e){return{...e,valueSchema:void 0,type:"LONG_TEXT"}},MarkDown(e){return{displayName:"Markdown",required:!1,description:e.value,type:"MARKDOWN",valueSchema:void 0,variant:e.variant??"INFO"}},Number(e){return{...e,valueSchema:void 0,type:"NUMBER"}},Json(e){return{...e,valueSchema:void 0,type:"JSON"}},Array(e){return{...e,valueSchema:void 0,type:"ARRAY"}},Object(e){return{...e,valueSchema:void 0,type:"OBJECT"}},Dropdown(e){return{...e,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(e){return{...e,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(e){return{...e,valueSchema:void 0,type:"DATE_TIME"}},File(e){return{...e,valueSchema:void 0,type:"FILE"}},Custom(e){let t=e.code.toString();return{...e,code:t,valueSchema:void 0,type:"CUSTOM"}},Color(e){return{...e,valueSchema:void 0,type:"COLOR"}}};var Ie=l({displayName:a(),description:h(a())});var Si=l({username:a(),password:a()}),Xr=l({...Ie.shape,username:l({displayName:a(),description:h(a())}),password:l({displayName:a(),description:h(a())}),...B(Si,"BASIC_AUTH").shape});var ml=N(a(),j([ge,$e,Ae,Se,ye])),Yr=l({...Ie.shape,props:ml,...B(D(),"CUSTOM_AUTH").shape});var We=l({...Ie.shape,...B(l({auth:a()}),"SECRET_TEXT").shape});var fl=N(a(),j([ge,$e,We,Ae,Se,ye,Ee,rr])),Ai=l({...Ie.shape,props:fl,...B(D(),"OIDC").shape});var Qr=(r=>(r.HEADER="HEADER",r.BODY="BODY",r))(Qr||{}),zi=j([ge,We,ye]),Oi=N(a(),zi),gl=l({props:h(N(a(),zi)),authUrl:a(),tokenUrl:a(),scope:M(a()),prompt:h(j([O("none"),O("consent"),O("login"),O("omit")])),pkce:h(J()),pkceMethod:h(j([O("plain"),O("S256")])),authorizationMethod:h(V(Qr)),grantType:h(j([V(kt),O(jr)])),extra:h(N(a(),a()))}),ki=l({access_token:a(),props:h(Oi),data:N(a(),bt())}),en=l({...Ie.shape,...gl.shape,...B(ki,"OAUTH2").shape});var at=j([Xr,Yr,Ai,en,We]),Ct="Connection",st={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||Ct}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||Ct,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||Ct}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||Ct}},None(){}};var h$={OAUTH2:"OAUTH2",CLOUD_OAUTH2:"OAUTH2",PLATFORM_OAUTH2:"OAUTH2",BASIC_AUTH:"BASIC_AUTH",CUSTOM_AUTH:"CUSTOM_AUTH",OIDC:"OIDC",SECRET_TEXT:"SECRET_TEXT",NO_AUTH:void 0};var yl=l({...q.shape,...B(D(),"CUSTOM").shape,code:a()});var hl=j([Jr,at]),tn=N(a(),hl),U$=N(a(),Jr);var wi=j([l({strategy:O("CRON"),cronExpression:a()}),l({strategy:O("NONE")})]);var Ri="2",sr="0.82.0";var rn=class{constructor(t,r,n,i,u,c,p,g,f=sr,_,$=""){this.displayName=t;this.logoUrl=r;this.authors=n;this.events=i;this.categories=p;this.auth=g;this.minimumSupportedRelease=f;this.maximumSupportedRelease=_;this.description=$;this._actions={};this._triggers={};this.getContextInfo=o(()=>({version:Ri}),"getContextInfo");(!vl(f)||xl(f,sr))&&(this.minimumSupportedRelease=sr),u.forEach(x=>this._actions[x.name]=x),c.forEach(x=>this._triggers[x.name]=x)}static{o(this,"Piece")}metadata(){return{displayName:this.displayName,logoUrl:this.logoUrl,actions:this._actions,triggers:this._triggers,categories:this.categories,description:this.description,authors:this.authors,auth:this.auth,minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,contextInfo:this.getContextInfo?.()}}getAction(t){return this._actions[t]}getTrigger(t){return this._triggers[t]}actions(){return this._actions}triggers(){return this._triggers}},Di=o(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((r,n,i)=>n===i.findIndex(u=>u.type===r.type)))throw new Error("Auth properties must be unique by type");return new rn(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description)},"createPiece");function vl(e){return/^\d+\.\d+\.\d+$/.test(e)}o(vl,"isValidSimpleSemver");function xl(e,t){let[r,n,i]=e.split(".").map(Number),[u,c,p]=t.split(".").map(Number);return r!==u?r<u:n!==c?n<c:i<p}o(xl,"isSemverLessThan");var _l=h(N(a(),N(a(),a()))),Ni=l({id:h(a()),name:a(),displayName:a(),logoUrl:a(),description:a(),authors:M(a()),platformId:h(a()),directoryPath:h(a()),auth:h(j([at,M(at)])),version:a(),categories:h(M(V(nt))),minimumSupportedRelease:h(a()),maximumSupportedRelease:h(a()),i18n:_l}),Pl=V(["human","ai","both"]),Ci=l({description:h(a()),idempotent:h(J())}),Ui=l({name:a(),displayName:a(),description:a(),props:tn,requireAuth:J(),errorHandlingOptions:h(Cr),outputSchema:h(er()),audience:h(Pl),aiMetadata:h(Ci)}),Mi=l({name:a(),displayName:a(),description:a(),props:tn,errorHandlingOptions:h(Cr),type:V(Ze),sampleData:D(),handshakeConfiguration:h(er()),renewConfiguration:h(wi),testStrategy:V(Rt),outputSchema:h(er()),aiMetadata:h(Ci)}),bl=l({...Ni.shape,actions:N(a(),Ui),triggers:N(a(),Mi)}),Il=l({...Ni.shape,actions:de(),triggers:de(),suggestedActions:h(M(Mi)),suggestedTriggers:h(M(Ui))}),ji=l({projectUsage:de(),tags:h(M(a())),pieceType:V(rt),packageType:V(Ot),platformId:h(a()),archiveId:h(a())}),UE=l({...bl.shape,...ji.shape}),ME=l({...Il.shape,...ji.shape}),jE=l({name:a(),version:a()});var Tl=Be(require("path")),$l=Be(require("fs/promises"));var Ge=st.CustomAuth({props:{apiKey:st.SecretText({displayName:"API Key",description:"Bird API Access Key from Settings > Security > Access Keys",required:!0}),workspaceId:st.SecretText({displayName:"Workspace ID",description:"Bird Workspace ID found in your workspace URL",required:!0}),channelId:st.SecretText({displayName:"Channel ID",description:"Your SMS channel ID from Bird dashboard",required:!0})},required:!0});var ur=class{constructor(t,r){this.baseUrl=t;this.authenticationConverter=r}static{o(this,"BaseHttpClient")}getUrl(t){let r=new URL(`${this.baseUrl}${t.url}`),n=`${r.origin}${r.pathname}`,i=new URLSearchParams;return r.searchParams.forEach((u,c)=>{i.append(c,u)}),{urlWithoutQueryParams:n,queryParams:i}}getHeaders(t){let r={Accept:"application/json"};if(t.authentication&&this.populateAuthentication(t.authentication,r),t.body)switch(t.headers?.["Content-Type"]){case"text/csv":r["Content-Type"]="text/csv";break;default:r["Content-Type"]="application/json";break}return t.headers&&(r={...r,...t.headers}),r}populateAuthentication(t,r){this.authenticationConverter.convert(t,r)}};var cr=class{static{o(this,"DelegatingAuthenticationConverter")}constructor(t=new nn,r=new on){this.converters={BEARER_TOKEN:t,BASIC:r}}convert(t,r){return this.converters[t.type].convert(t,r)}},nn=class{static{o(this,"BearerTokenAuthenticationConverter")}convert(t,r){return r.Authorization=`Bearer ${t.token}`,r}},on=class{static{o(this,"BasicTokenAuthenticationConverter")}convert(t,r){let n=`${t.username}:${t.password}`,i=Buffer.from(n).toString("base64");return r.Authorization=`Basic ${i}`,r}};var lr=class extends Error{constructor(r,n){let i=n.status||500,u=Buffer.isBuffer(n.responseBody)?n.responseBody.toString():n.responseBody;super(JSON.stringify({response:{status:i,body:u},request:{body:r}}));this.requestBody=r;this.status=i,this.responseBody=u}static{o(this,"HttpError")}errorMessage(){return{response:{status:this.status,body:this.responseBody},request:{body:this.requestBody}}}get response(){return{status:this.status,body:this.responseBody}}get request(){return{body:this.requestBody}}};var pr=class extends ur{static{o(this,"FetchHttpClient")}constructor(t="",r=new cr){super(t,r)}async sendRequest(t,r){process.env.NODE_TLS_REJECT_UNAUTHORIZED="0";let{urlWithoutQueryParams:n,queryParams:i}=this.getUrl(t),u=this.getHeaders(t),c=t.queryParams??{};for(let[Z,oe]of Object.entries(c))i.append(Z,oe);let p=i.toString(),g=p?`${n}?${p}`:n,f=t.responseType??"json",_=t.followRedirects??!0,$=t.retries??0,{body:x,extraHeaders:s,isStream:d}=El(t.body,u),y=Al({...u,...s}),m=await Sl(async()=>{let Z=new AbortController,oe=t.timeout&&t.timeout>0?setTimeout(()=>Z.abort(),t.timeout):void 0;try{let pe={method:t.method.toString(),headers:y,body:x,redirect:_?"follow":"manual",signal:Z.signal};return d&&(pe.duplex="half"),r?.dispatcher!==void 0&&(pe.dispatcher=r.dispatcher),await fetch(g,pe)}finally{oe!==void 0&&clearTimeout(oe)}},$),v=_?300:400;if(m.status<200||m.status>=v){let Z=await Li(m,f),oe=new lr(t.body,{status:m.status,responseBody:Z});throw console.error("[HttpClient#(sanitized error message)] Request failed:",oe),oe}let P=await Li(m,f);return{status:m.status,headers:zl(m.headers),body:P}}};function El(e,t){return kl(e)?{body:void 0,extraHeaders:{},isStream:!1}:Ol(e)?{body:e,extraHeaders:e.getHeaders(),isStream:!0}:typeof e=="string"||Buffer.isBuffer(e)||e instanceof URLSearchParams||e instanceof ArrayBuffer||typeof FormData<"u"&&e instanceof FormData||typeof Blob<"u"&&e instanceof Blob?{body:e,extraHeaders:{},isStream:!1}:(t["Content-Type"]??t["content-type"]??"").includes("application/x-www-form-urlencoded")?{body:new URLSearchParams(e).toString(),extraHeaders:{},isStream:!1}:{body:JSON.stringify(e),extraHeaders:{},isStream:!1}}o(El,"serializeBody");async function Li(e,t){switch(t){case"arraybuffer":return Buffer.from(await e.arrayBuffer());case"blob":return await e.blob();case"text":return await e.text();case"json":default:{let r=await e.text();if(r.length===0)return;try{return JSON.parse(r)}catch{return r}}}}o(Li,"parseResponseBody");async function Sl(e,t){let r;for(let n=0;n<=t;n++)try{let i=await e();if(i.status>=500&&n<t){await Fi(n);continue}return i}catch(i){if(r=i,n<t){await Fi(n);continue}throw i}throw r}o(Sl,"sendWithRetries");function Fi(e){let t=Math.min(1e3*2**e,3e4);return new Promise(r=>setTimeout(r,t))}o(Fi,"backoff");function Al(e){let t={};for(let[r,n]of Object.entries(e))n!==void 0&&(t[r]=Array.isArray(n)?n.join(", "):n);return t}o(Al,"normalizeHeaders");function zl(e){let t={};return e.forEach((r,n)=>{t[n]=r}),t}o(zl,"toHttpHeaders");function Ol(e){return typeof e=="object"&&e!==null&&typeof e.getHeaders=="function"&&typeof e.pipe=="function"}o(Ol,"isNodeFormData");function kl(e){return e==null}o(kl,"isNil");var ut=new pr;var Ut=(c=>(c.GET="GET",c.POST="POST",c.PATCH="PATCH",c.PUT="PUT",c.DELETE="DELETE",c.HEAD="HEAD",c))(Ut||{});var vd=Be(require("fs")),Gs=Be(Ws());var xd={"application/json":"json","application/pdf":"pdf","application/xml":"xml","text/xml":"xml","application/zip":"zip","application/gzip":"gz","application/x-tar":"tar","application/octet-stream":"bin","application/msword":"doc","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"docx","application/vnd.ms-excel":"xls","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"xlsx","application/vnd.ms-powerpoint":"ppt","application/vnd.openxmlformats-officedocument.presentationml.presentation":"pptx","application/rtf":"rtf","application/javascript":"js","application/x-www-form-urlencoded":"bin","text/plain":"txt","text/html":"html","text/css":"css","text/csv":"csv","text/calendar":"ics","text/markdown":"md","image/png":"png","image/jpeg":"jpeg","image/jpg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/bmp":"bmp","image/tiff":"tiff","image/x-icon":"ico","image/vnd.microsoft.icon":"ico","image/heic":"heic","audio/mpeg":"mp3","audio/mp4":"m4a","audio/wav":"wav","audio/x-wav":"wav","audio/ogg":"ogg","audio/webm":"weba","video/mp4":"mp4","video/mpeg":"mpeg","video/webm":"webm","video/quicktime":"mov","video/x-msvideo":"avi","font/woff":"woff","font/woff2":"woff2","font/ttf":"ttf","font/otf":"otf"};function _d(e){let t=e.split(";")[0].trim().toLowerCase();return xd[t]??""}o(_d,"contentTypeToExtension");var Pd=o(({baseUrl:e,relativePath:t})=>{let r=e.endsWith("/")?e:`${e}/`,n=t.startsWith("/")?t.slice(1):t;return`${r}${n}`},"joinBaseUrlWithRelativePath"),bd=o((e,t)=>{let r="https://api.example.com";try{let n=t?e(t):void 0;return(n?.endsWith("/")?n.slice(0,-1):n)??r}catch{return r}},"getBaseUrlForDescription");function qs({auth:e,baseUrl:t,authMapping:r,description:n,displayName:i,name:u,props:c,extraProps:p,authLocation:g="headers"}){return tt({audience:"human",name:u||"custom_api_call",displayName:i||"Custom API Call",description:n||"Make a custom API call to a specific endpoint",auth:e,requireAuth:!!e,props:{url:K.DynamicProperties({auth:e,displayName:"",required:!0,refreshers:[],props:o(async({auth:f})=>({url:K.ShortText({displayName:"URL",description:`You can either use the full URL or the relative path to the base URL
3
+ i.e ${bd(t,f)}/resource or /resource`,required:!0,defaultValue:f?t(f):"",...c?.url??{}})}),"props")}),method:K.StaticDropdown({displayName:"Method",required:!0,options:{options:Object.values(Ut).map(f=>({label:f,value:f}))},...c?.method??{}}),headers:K.Object({displayName:"Headers",description:"Authorization headers are injected automatically from your connection.",required:!0,...c?.headers??{}}),queryParams:K.Object({displayName:"Query Parameters",required:!0,...c?.queryParams??{}}),body_type:K.StaticDropdown({displayName:"Body Type",required:!1,defaultValue:"none",options:{disabled:!1,options:[{label:"None",value:"none"},{label:"JSON",value:"json"},{label:"Form Data",value:"form_data"},{label:"Raw",value:"raw"}]}}),body:K.DynamicProperties({auth:e,displayName:"Body",refreshers:["body_type"],required:!1,props:o(async({body_type:f})=>{if(!f)return{};let _=f,$={};switch(_){case"none":break;case"json":$.data=K.Json({displayName:"JSON Body",required:!0,...c?.body??{}});break;case"raw":$.data=K.LongText({displayName:"Raw Body",required:!0});break;case"form_data":$.data=K.Array({displayName:"Form Data",required:!0,properties:{fieldName:K.ShortText({displayName:"Field Name",required:!0}),fieldType:K.StaticDropdown({displayName:"Field Type",required:!0,options:{disabled:!1,options:[{label:"Text",value:"text"},{label:"File",value:"file"}]}}),textFieldValue:K.LongText({displayName:"Text Field Value",required:!1}),fileFieldValue:K.File({displayName:"File Field Value",required:!1})}});break}return $},"props")}),response_is_binary:K.Checkbox({displayName:"Response is Binary ?",description:"Enable for files like PDFs, images, etc.",required:!1,defaultValue:!1}),failsafe:K.Checkbox({displayName:"No Error on Failure",required:!1,...c?.failsafe??{}}),timeout:K.Number({displayName:"Timeout (in seconds)",required:!1,...c?.timeout??{}}),followRedirects:K.Checkbox({displayName:"Follow redirects",required:!1,defaultValue:!1}),...p},run:o(async f=>{let{method:_,url:$,headers:x,queryParams:s,body:d,body_type:y,failsafe:m,timeout:v,response_is_binary:P,followRedirects:Z}=f.propsValue;or(_,"Method"),or($,"URL");let oe=ze(r)?{}:await r(f.auth,f.propsValue),pe=$.url,Pe=pe.startsWith("http://")||pe.startsWith("https://")?pe:Pd({baseUrl:t(f.auth),relativePath:pe}),X={method:_,url:Pe,headers:{...x??{},...g==="headers"||!ze(g)?oe:{}},queryParams:{...g==="queryParams"?oe:{},...s??{}},timeout:v?v*1e3:0,followRedirects:Z};if(P&&(X.responseType="arraybuffer"),d)if(y&&y!=="none"){let H=d.data;if(y==="form_data"){let Ke=H,je=new Gs.default;for(let{fieldName:U,fieldType:I,textFieldValue:b,fileFieldValue:E}of Ke)I==="text"&&!Dt(b)?je.append(U,b):I==="file"&&!Dt(E)&&je.append(U,E.data,{filename:E?.filename});X.body=je,X.headers={...X.headers,...je.getHeaders()}}else X.body=H}else y||(X.body=d);try{let H=await ut.sendRequest(X);return await Id(f.files,H.body,H.status,H.headers,P)}catch(H){if(m)return H.errorMessage();throw H}},"run")})}o(qs,"createCustomApiCallAction");var Id=o(async(e,t,r,n,i)=>{let u;if(i&&Td(t)){let c=Array.isArray(n?.["content-type"])?n["content-type"][0]:n?.["content-type"],p=_d(c??"")||"txt",g;t instanceof ArrayBuffer?g=Buffer.from(new Uint8Array(t)):Buffer.isBuffer(t)?g=t:g=Buffer.from(t),u=await e.write({fileName:`output.${p}`,data:g})}else u=t;return{status:r,headers:n,body:u}},"handleBinaryResponse"),Td=o(e=>e instanceof ArrayBuffer||Buffer.isBuffer(e),"isBinaryBody");var Ks=tt({auth:Ge,name:"send-sms",displayName:"Send SMS",description:"Sends an SMS message via Bird Channels API.",audience:"both",aiMetadata:{description:"Send an outbound SMS text message to a phone number through the Bird (MessageBird) Channels API, using the workspace and channel configured in the connection. Choose this to deliver a text message to a single recipient; the recipient must be an E.164 phone number including country code. Optionally schedule it for a future UTC timestamp instead of sending immediately. Not idempotent \u2014 each call sends (or schedules) a new message.",idempotent:!1},props:{recipient:K.ShortText({displayName:"Recipient",description:"The phone number to send the message to (with country code)",required:!0}),message:K.LongText({displayName:"Message",description:"The body of the SMS message",required:!0}),reference:K.ShortText({displayName:"Reference",description:"Your own identifier for the message (optional)",required:!1}),scheduledFor:K.DateTime({displayName:"Scheduled For (UTC timestamp)",description:"Message to be sent at a specific datetime eg. 2025-04-27T15:08:18.613Z. If not set, the message will be sent immediately.",required:!1})},async run(e){let{recipient:t,message:r,reference:n,scheduledFor:i}=e.propsValue,u=e.auth.props,c={method:"POST",url:`https://api.bird.com/workspaces/${u.workspaceId}/channels/${u.channelId}/messages`,headers:{Authorization:`Bearer ${u.apiKey}`,"Content-Type":"application/json"},body:{receiver:{contacts:[{identifierValue:t}]},body:{type:"text",text:{text:r}},...n&&{reference:n},...i&&{scheduledFor:i}}};return await ut.sendRequest(c)}});var An=Be(Js()),Xs=tt({auth:Ge,name:"listMessages",displayName:"List Messages",description:"Lists an Messages via Bird Channels API",audience:"both",aiMetadata:{description:'Retrieve messages for the configured Bird (MessageBird) channel within a required UTC start/end time window (the span must not exceed 7 days). Choose this to read recent message history or to look up message status. Set status to "all" to return messages of every status, or pick a specific status (pending, sent, delivered, failed, etc.) to filter to matching messages only; supports a page token for paging past 1000 results. Read-only and idempotent.',idempotent:!0},props:{status:K.StaticDropdown({displayName:"Status",description:'The status of the messages to filter by (select "All" for all statuses)',required:!0,options:{options:[{label:"All",value:"all"},{label:"Pending",value:"pending"},{label:"Accepted",value:"accepted"},{label:"Rejected",value:"rejected"},{label:"Processing",value:"processing"},{label:"Scheduled",value:"scheduled"},{label:"Sent",value:"sent"},{label:"Sending Failed",value:"sending_failed"},{label:"Delivered",value:"delivered"},{label:"Delivery Failed",value:"delivery_failed"},{label:"Deleted",value:"deleted"},{label:"Skipped",value:"skipped"}]}}),startAt:K.DateTime({displayName:"Start Date and Time",description:"The start date and time (in UTC) to filter messages",required:!0,defaultValue:(0,An.default)().subtract(1,"day").format("YYYY-MM-DDTHH:mm:ss[Z]")}),endAt:K.DateTime({displayName:"End Date and Time",description:"The end date and time (in UTC) to filter messages, should not exceed 7 days from start date",required:!0,defaultValue:(0,An.default)().format("YYYY-MM-DDTHH:mm:ss[Z]")}),pageToken:K.ShortText({displayName:"Next Page Token",description:"Token for pagination to fetch next set of results after 1000 messages",required:!1})},async run(e){let{status:t,startAt:r,endAt:n,pageToken:i}=e.propsValue,u=e.auth.props;return(await ut.sendRequest({method:"GET",url:`https://api.bird.com/workspaces/${u.workspaceId}/channels/${u.channelId}/messages`,queryParams:{limit:"1000",...t==="all"?{}:{status:t},startAt:r,endAt:n,...i?{pageToken:i}:{}},headers:{Authorization:`Bearer ${u.apiKey}`,"Content-Type":"application/json"}})).body}});var $d=Di({displayName:"Bird",description:"Unified CRM for Marketing, Service & Payments",auth:Ge,minimumSupportedRelease:"0.30.0",logoUrl:"https://cdn.activepieces.com/pieces/messagebird.png",categories:["MARKETING","COMMUNICATION"],authors:["kishanprmr","geekyme","prasanna2000-max"],actions:[Ks,Xs,qs({baseUrl:o(e=>e?"https://api.bird.com/workspaces/"+e.props.workspaceId:"","baseUrl"),auth:Ge,authMapping:o(async e=>({Authorization:`Bearer ${e.props.apiKey}`}),"authMapping")})],triggers:[]});0&&(module.exports={messagebird});
4
+ /*! Bundled license information:
5
+
6
+ mime-types/index.js:
7
+ (*!
8
+ * mime-types
9
+ * Copyright(c) 2014 Jonathan Ong
10
+ * Copyright(c) 2015 Douglas Christopher Wilson
11
+ * MIT Licensed
12
+ *)
13
+ */
package/src/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export declare const messagebird: import("@activepieces/pieces-framework").Piece<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- workspaceId: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
- channelId: import("@activepieces/pieces-framework").SecretTextProperty<true>;
5
- }>>;
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,WAAW;;;;GAwBtB,CAAC"}
package/src/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,mEAA8D;AAC9D,iDAAqD;AACrD,+DAA2D;AAC3D,qCAAqD;AACrD,+DAAwE;AAE3D,QAAA,WAAW,GAAG,IAAA,8BAAW,EAAC;IACrC,WAAW,EAAE,MAAM;IACnB,WAAW,EAAE,+CAA+C;IAC5D,IAAI,EAAE,eAAQ;IACd,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,qDAAqD;IAC9D,UAAU,EAAE,CAAC,sBAAa,CAAC,SAAS,EAAE,sBAAa,CAAC,aAAa,CAAC;IAClE,OAAO,EAAE,CAAC,YAAY,EAAE,SAAS,EAAC,kBAAkB,CAAC;IACrD,OAAO,EAAE;QACP,+BAAa;QACb,4BAAY;QACZ,IAAA,yCAAyB,EAAC;YACxB,OAAO,EAAE,CAAC,IAAI,EAAC,EAAE;gBACf,OAAO,IAAI,CAAC,CAAC,CAAC,kCAAkC,GAAI,IAAI,CAAC,KAAuB,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;YACpG,CAAC;YACD,IAAI,EAAE,eAAQ;YACd,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;gBAC1B,OAAO;oBACL,aAAa,EAAE,UAAW,IAAI,CAAC,KAAuB,CAAC,MAAM,EAAE;iBAChE,CAAC;YACJ,CAAC,CAAA;SACF,CAAC;KACH;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
@@ -1,11 +0,0 @@
1
- export declare const listMessages: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- workspaceId: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
- channelId: import("@activepieces/pieces-framework").SecretTextProperty<true>;
5
- }>, {
6
- status: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
7
- startAt: import("@activepieces/pieces-framework").DateTimeProperty<true>;
8
- endAt: import("@activepieces/pieces-framework").DateTimeProperty<true>;
9
- pageToken: import("@activepieces/pieces-framework").ShortTextProperty<false>;
10
- }>;
11
- //# sourceMappingURL=list-messages.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-messages.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/list-messages.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY;;;;;;;;;EAqEvB,CAAC"}
@@ -1,73 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.listMessages = void 0;
4
- const tslib_1 = require("tslib");
5
- const auth_1 = require("../auth");
6
- const pieces_framework_1 = require("@activepieces/pieces-framework");
7
- const pieces_common_1 = require("@activepieces/pieces-common");
8
- const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
9
- exports.listMessages = (0, pieces_framework_1.createAction)({
10
- auth: auth_1.birdAuth,
11
- name: 'listMessages',
12
- displayName: 'List Messages',
13
- description: 'Lists an Messages via Bird Channels API',
14
- audience: 'both',
15
- aiMetadata: { description: 'Retrieve messages for the configured Bird (MessageBird) channel within a required UTC start/end time window (the span must not exceed 7 days). Choose this to read recent message history or to look up message status. Set status to "all" to return messages of every status, or pick a specific status (pending, sent, delivered, failed, etc.) to filter to matching messages only; supports a page token for paging past 1000 results. Read-only and idempotent.', idempotent: true },
16
- props: {
17
- status: pieces_framework_1.Property.StaticDropdown({
18
- displayName: 'Status',
19
- description: 'The status of the messages to filter by (select "All" for all statuses)',
20
- required: true,
21
- options: {
22
- options: [
23
- { label: 'All', value: 'all' },
24
- { label: 'Pending', value: 'pending' },
25
- { label: 'Accepted', value: 'accepted' },
26
- { label: 'Rejected', value: 'rejected' },
27
- { label: 'Processing', value: 'processing' },
28
- { label: 'Scheduled', value: 'scheduled' },
29
- { label: 'Sent', value: 'sent' },
30
- { label: 'Sending Failed', value: 'sending_failed' },
31
- { label: 'Delivered', value: 'delivered' },
32
- { label: 'Delivery Failed', value: 'delivery_failed' },
33
- { label: 'Deleted', value: 'deleted' },
34
- { label: 'Skipped', value: 'skipped' },
35
- ]
36
- },
37
- }),
38
- startAt: pieces_framework_1.Property.DateTime({
39
- displayName: 'Start Date and Time',
40
- description: 'The start date and time (in UTC) to filter messages',
41
- required: true,
42
- defaultValue: (0, dayjs_1.default)().subtract(1, 'day').format('YYYY-MM-DDTHH:mm:ss[Z]'),
43
- }),
44
- endAt: pieces_framework_1.Property.DateTime({
45
- displayName: 'End Date and Time',
46
- description: 'The end date and time (in UTC) to filter messages, should not exceed 7 days from start date',
47
- required: true,
48
- defaultValue: (0, dayjs_1.default)().format('YYYY-MM-DDTHH:mm:ss[Z]'),
49
- }),
50
- pageToken: pieces_framework_1.Property.ShortText({
51
- displayName: 'Next Page Token',
52
- description: 'Token for pagination to fetch next set of results after 1000 messages',
53
- required: false,
54
- }),
55
- },
56
- run(context) {
57
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
58
- const { status, startAt, endAt, pageToken } = context.propsValue;
59
- const auth = context.auth.props;
60
- const response = yield pieces_common_1.httpClient.sendRequest({
61
- method: pieces_common_1.HttpMethod.GET,
62
- url: `https://api.bird.com/workspaces/${auth.workspaceId}/channels/${auth.channelId}/messages`,
63
- queryParams: Object.assign(Object.assign(Object.assign({ limit: '1000' }, (status === 'all' ? {} : { status: status })), { startAt: startAt, endAt: endAt }), (pageToken ? { pageToken: pageToken } : {})),
64
- headers: {
65
- 'Authorization': `Bearer ${auth.apiKey}`,
66
- 'Content-Type': 'application/json',
67
- },
68
- });
69
- return response.body;
70
- });
71
- },
72
- });
73
- //# sourceMappingURL=list-messages.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-messages.js","sourceRoot":"","sources":["../../../../src/lib/actions/list-messages.ts"],"names":[],"mappings":";;;;AAAA,kCAAmC;AACnC,qEAAwE;AACxE,+DAGqC;AACrC,0DAA0B;AAEb,QAAA,YAAY,GAAG,IAAA,+BAAY,EAAC;IACvC,IAAI,EAAE,eAAQ;IACd,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,yCAAyC;IACtD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,ucAAuc,EAAE,UAAU,EAAE,IAAI,EAAE;IACtf,KAAK,EAAE;QACL,MAAM,EAAG,2BAAQ,CAAC,cAAc,CAAC;YAC/B,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,yEAAyE;YACtF,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE;oBAC9B,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACtC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;oBACxC,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE;oBACxC,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,EAAE;oBAC5C,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;oBAC1C,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE;oBAChC,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE;oBACpD,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;oBAC1C,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE;oBACtD,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACtC,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;iBACvC;aAAC;SACL,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACzB,WAAW,EAAE,qBAAqB;YAClC,WAAW,EAAE,qDAAqD;YAClE,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,IAAA,eAAK,GAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,MAAM,CAAC,wBAAwB,CAAC;SAC1E,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACvB,WAAW,EAAE,mBAAmB;YAChC,WAAW,EAAE,6FAA6F;YAC1G,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,IAAA,eAAK,GAAE,CAAC,MAAM,CAAC,wBAAwB,CAAC;SACvD,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,iBAAiB;YAC9B,WAAW,EAAE,uEAAuE;YACpF,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEjE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;YAEhC,MAAM,QAAQ,GAAG,MAAM,0BAAU,CAAC,WAAW,CAAM;gBACjD,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,mCAAmC,IAAI,CAAC,WAAW,aAAa,IAAI,CAAC,SAAS,WAAW;gBAC9F,WAAW,8CACT,KAAK,EAAE,MAAM,IACV,CAAC,MAAM,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,KAC/C,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,KACT,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAC/C;gBACD,OAAO,EAAE;oBACP,eAAe,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;oBACxC,cAAc,EAAE,kBAAkB;iBACnC;aACF,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,IAAI,CAAA;QACtB,CAAC;KAAA;CACF,CAAC,CAAC"}
@@ -1,11 +0,0 @@
1
- export declare const sendSMSAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").CustomAuthProperty<{
2
- apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
3
- workspaceId: import("@activepieces/pieces-framework").SecretTextProperty<true>;
4
- channelId: import("@activepieces/pieces-framework").SecretTextProperty<true>;
5
- }>, {
6
- recipient: import("@activepieces/pieces-framework").ShortTextProperty<true>;
7
- message: import("@activepieces/pieces-framework").LongTextProperty<true>;
8
- reference: import("@activepieces/pieces-framework").ShortTextProperty<false>;
9
- scheduledFor: import("@activepieces/pieces-framework").DateTimeProperty<false>;
10
- }>;
11
- //# sourceMappingURL=send-sms.action.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"send-sms.action.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/send-sms.action.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,aAAa;;;;;;;;;EA8DxB,CAAC"}
@@ -1,66 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.sendSMSAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const auth_1 = require("../auth");
6
- const pieces_framework_1 = require("@activepieces/pieces-framework");
7
- const pieces_common_1 = require("@activepieces/pieces-common");
8
- exports.sendSMSAction = (0, pieces_framework_1.createAction)({
9
- auth: auth_1.birdAuth,
10
- name: 'send-sms',
11
- displayName: 'Send SMS',
12
- description: 'Sends an SMS message via Bird Channels API.',
13
- audience: 'both',
14
- aiMetadata: { description: 'Send an outbound SMS text message to a phone number through the Bird (MessageBird) Channels API, using the workspace and channel configured in the connection. Choose this to deliver a text message to a single recipient; the recipient must be an E.164 phone number including country code. Optionally schedule it for a future UTC timestamp instead of sending immediately. Not idempotent — each call sends (or schedules) a new message.', idempotent: false },
15
- props: {
16
- recipient: pieces_framework_1.Property.ShortText({
17
- displayName: 'Recipient',
18
- description: 'The phone number to send the message to (with country code)',
19
- required: true,
20
- }),
21
- message: pieces_framework_1.Property.LongText({
22
- displayName: 'Message',
23
- description: 'The body of the SMS message',
24
- required: true,
25
- }),
26
- reference: pieces_framework_1.Property.ShortText({
27
- displayName: 'Reference',
28
- description: 'Your own identifier for the message (optional)',
29
- required: false,
30
- }),
31
- scheduledFor: pieces_framework_1.Property.DateTime({
32
- displayName: 'Scheduled For (UTC timestamp)',
33
- description: 'Message to be sent at a specific datetime eg. 2025-04-27T15:08:18.613Z. If not set, the message will be sent immediately.',
34
- required: false,
35
- }),
36
- },
37
- run(context) {
38
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
39
- const { recipient, message, reference, scheduledFor } = context.propsValue;
40
- const auth = context.auth.props;
41
- // Format request for Bird Channels API
42
- const request = {
43
- method: pieces_common_1.HttpMethod.POST,
44
- url: `https://api.bird.com/workspaces/${auth.workspaceId}/channels/${auth.channelId}/messages`,
45
- headers: {
46
- 'Authorization': `Bearer ${auth.apiKey}`,
47
- 'Content-Type': 'application/json'
48
- },
49
- body: Object.assign(Object.assign({ receiver: {
50
- contacts: [
51
- {
52
- identifierValue: recipient
53
- }
54
- ]
55
- }, body: {
56
- type: 'text',
57
- text: {
58
- text: message
59
- }
60
- } }, (reference && { reference })), (scheduledFor && { scheduledFor })),
61
- };
62
- return yield pieces_common_1.httpClient.sendRequest(request);
63
- });
64
- },
65
- });
66
- //# sourceMappingURL=send-sms.action.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"send-sms.action.js","sourceRoot":"","sources":["../../../../src/lib/actions/send-sms.action.ts"],"names":[],"mappings":";;;;AAAA,kCAAmC;AACnC,qEAAwE;AACxE,+DAIqC;AAExB,QAAA,aAAa,GAAG,IAAA,+BAAY,EAAC;IACxC,IAAI,EAAE,eAAQ;IACd,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,UAAU;IACvB,WAAW,EAAE,6CAA6C;IAC1D,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,kbAAkb,EAAE,UAAU,EAAE,KAAK,EAAE;IACle,KAAK,EAAE;QACL,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,6DAA6D;YAC1E,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACzB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,6BAA6B;YAC1C,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,gDAAgD;YAC7D,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC9B,WAAW,EAAE,+BAA+B;YAC5C,WAAW,EAAE,2HAA2H;YACxI,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC3E,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;YAEhC,uCAAuC;YACvC,MAAM,OAAO,GAAgB;gBAC3B,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,GAAG,EAAE,mCAAmC,IAAI,CAAC,WAAW,aAAa,IAAI,CAAC,SAAS,WAAW;gBAC9F,OAAO,EAAE;oBACP,eAAe,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;oBACxC,cAAc,EAAE,kBAAkB;iBACnC;gBACD,IAAI,gCACF,QAAQ,EAAE;wBACR,QAAQ,EAAE;4BACR;gCACE,eAAe,EAAE,SAAS;6BAC3B;yBACF;qBACF,EACD,IAAI,EAAE;wBACJ,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE;4BACJ,IAAI,EAAE,OAAO;yBACd;qBACF,IACE,CAAC,SAAS,IAAI,EAAE,SAAS,EAAE,CAAC,GAC5B,CAAC,YAAY,IAAI,EAAE,YAAY,EAAE,CAAC,CACtC;aACF,CAAC;YAEF,OAAO,MAAM,0BAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAC/C,CAAC;KAAA;CACF,CAAC,CAAC"}
package/src/lib/auth.d.ts DELETED
@@ -1,11 +0,0 @@
1
- export interface BirdAuthValue {
2
- apiKey: string;
3
- workspaceId: string;
4
- channelId: string;
5
- }
6
- export declare const birdAuth: import("@activepieces/pieces-framework").CustomAuthProperty<{
7
- apiKey: import("@activepieces/pieces-framework").SecretTextProperty<true>;
8
- workspaceId: import("@activepieces/pieces-framework").SecretTextProperty<true>;
9
- channelId: import("@activepieces/pieces-framework").SecretTextProperty<true>;
10
- }>;
11
- //# sourceMappingURL=auth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/lib/auth.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ;;;;EAmBnB,CAAC"}
package/src/lib/auth.js DELETED
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.birdAuth = void 0;
4
- const pieces_framework_1 = require("@activepieces/pieces-framework");
5
- exports.birdAuth = pieces_framework_1.PieceAuth.CustomAuth({
6
- props: {
7
- apiKey: pieces_framework_1.PieceAuth.SecretText({
8
- displayName: 'API Key',
9
- description: 'Bird API Access Key from Settings > Security > Access Keys',
10
- required: true,
11
- }),
12
- workspaceId: pieces_framework_1.PieceAuth.SecretText({
13
- displayName: 'Workspace ID',
14
- description: 'Bird Workspace ID found in your workspace URL',
15
- required: true,
16
- }),
17
- channelId: pieces_framework_1.PieceAuth.SecretText({
18
- displayName: 'Channel ID',
19
- description: 'Your SMS channel ID from Bird dashboard',
20
- required: true,
21
- }),
22
- },
23
- required: true,
24
- });
25
- //# sourceMappingURL=auth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/lib/auth.ts"],"names":[],"mappings":";;;AAAA,qEAA2D;AAQ9C,QAAA,QAAQ,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC3C,KAAK,EAAE;QACL,MAAM,EAAE,4BAAS,CAAC,UAAU,CAAC;YAC3B,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,4DAA4D;YACzE,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,WAAW,EAAE,4BAAS,CAAC,UAAU,CAAC;YAChC,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,+CAA+C;YAC5D,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,SAAS,EAAE,4BAAS,CAAC,UAAU,CAAC;YAC9B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACD,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC"}