{"version":3,"file":"vendor.baas-admin-sdk.5df6f5646fbf2f10.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kBAAkB,SAAI,IAAI,SAAI;AAC9B;AACA;AACA,6CAA6C,QAAQ;AACrD;AACA;AACA,kBAAkB,SAAI,IAAI,SAAI;AAC9B;AACA;AAC2D;AAC3D;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,wCAAY;AACpB;AACA;AACA;AACA,QAAQ,sCAAU;AAClB;AACA;AACA;AACA,CAAC;AAC8B;AAC/B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,wCAAY;AACpB;AACA;AACA;AACA,QAAQ,wCAAY;AACpB;AACA;AACA;AACA,QAAQ,wCAAY;AACpB;AACA;AACA;AACA,QAAQ,sCAAU;AAClB;AACA;AACA;AACA,CAAC;AAC4B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,wCAAY;AACpB;AACA;AACA;AACA,QAAQ,sCAAU;AAClB;AACA;AACA;AACA,CAAC;AAC+B;AAChC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,wCAAY;AACpB;AACA;AACA;AACA,QAAQ,wCAAY;AACpB;AACA;AACA;AACA,QAAQ,sCAAU;AAClB;AACA;AACA;AACA,CAAC;AACiC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,QAAQ,wCAAY;AACpB;AACA;AACA;AACA,QAAQ,wCAAY;AACpB;AACA;AACA;AACA,QAAQ,wCAAY;AACpB;AACA;AACA;AACA,QAAQ,wCAAY;AACpB;AACA;AACA;AACA,QAAQ,wCAAY;AACpB;AACA;AACA;AACA,QAAQ,wCAAY;AACpB;AACA;AACA;AACA,QAAQ,wCAAY;AACpB;AACA;AACA;AACA,QAAQ,wCAAY;AACpB;AACA;AACA;AACA,QAAQ,wCAAY;AACpB;AACA;AACA;AACA,QAAQ,wCAAY;AACpB;AACA;AACA;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,cAAU;AAClB;AACA,IAAI,cAAU;AACd,QAAQ,wCAAY;AACpB,QAAQ,cAAU;AAClB;AACA,YAAY,cAAU;AACtB,QAAQ,sCAAU;AAClB,QAAQ,cAAU;AAClB;AACA;AACA,CAAC;AACgB;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,cAAU;AACd,QAAQ,wCAAY;AACpB,QAAQ,cAAU;AAClB;AACA,IAAI,cAAU;AACd,QAAQ,wCAAY;AACpB,QAAQ,cAAU;AAClB;AACA,IAAI,cAAU;AACd,QAAQ,wCAAY;AACpB,QAAQ,cAAU;AAClB;AACA,IAAI,cAAU;AACd,QAAQ,wCAAY;AACpB,QAAQ,cAAU;AAClB;AACA,mBAAmB,cAAU;AAC7B,QAAQ,sCAAU;AAClB,QAAQ,cAAU;AAClB;AACA;AACA,CAAC;AACuB;AACxB;;AC7EA,IAAI,aAAS,IAAI,SAAI,IAAI,SAAI;AAC7B;AACA;AACA,eAAe,gBAAgB,sCAAsC,kBAAkB;AACvF,8BAA8B;AAC9B;AACA;AACA;AACA;AACA,wBAAwB;AACxB;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI,aAAS;AACb;AACA;AACA;AACA;AACA,CAAC;AACD;AACA,IAAI,aAAS;AACb;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AAC0E;AACnE;AACP;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;ACvDO;AACA;AACA;AACA;AACP;;ACJ0F;AACnF;AACA;AACP;AACA;AACA;AACA;AACO,kBAAkB,uDAAO;AACzB;AACP;AACA;AACA;AACA;AACA;AACA,iBAAiB,kBAAkB;AACnC;AACA;AACA,gCAAgC,WAAW;AAC3C;AACA,6BAA6B,eAAe;AAC5C;AACA,SAAS;AACT;AACA,oBAAoB,aAAa;AACjC;AACA;AACA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AC5C0D;AACtB;AACpC;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,aAAoB;AAChD,uCAAuC,wCAAwC;AAC/E,aAAa;AACb;AACA,sBAAsB,WAAkB;AACxC,4CAA4C,yBAAyB;AACrE,wCAAwC,wBAAwB;AAChE,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,aAAoB;AAChD,uCAAuC,UAAU;AACjD,aAAa;AACb;AACA,sBAAsB,WAAkB;AACxC,4CAA4C,yBAAyB;AACrE,wCAAwC,wBAAwB;AAChE,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,aAAoB;AAChD,uCAAuC,oCAAoC;AAC3E,aAAa;AACb;AACA;AACA;AACA,mEAAmE,WAAkB;AACrF;AACA;AACA,sBAAsB,WAAkB;AACxC,4CAA4C,yBAAyB;AACrE,wCAAwC,wBAAwB;AAChE,SAAS;AACT;AACA;AACA;AACA;AACA,kBAAkB;AAClB,WAAW,gBAAgB;AAC3B,WAAW,gBAAgB;AAC3B,WAAW,gBAAgB;AAC3B;AACA;AACA,gDAAe,eAAe,EAAC;AAC/B;;ACjEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACwB;AACzB,IAAI,eAAO;AACX;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACkB;AACZ;AACP;AACA;AACA;AACA,uBAAuB,eAAO;AAC9B;AACA;AACA,eAAe,eAAO;AACtB;AACA;;;;;AC5DA,IAAI,WAAQ,IAAI,SAAI,IAAI,SAAI;AAC5B,IAAI,WAAQ;AACZ,iDAAiD,OAAO;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,WAAQ;AACnB;AACuC;AACA;AACG;AACA;AACP;AACnC;AACA;AACA;AACA;AACA;AACA;AACA,kBAAkB,WAAQ,GAAG;AAC7B;AACA;AACA;AACA;AACA,aAAa,mDAAmD;AAChE;AACA;AACA;AACA;AACA,+EAA+E,aAAa;AAC5F;AACA;AACA,SAAS;AACT,yBAAyB,SAAe;AACxC;AACA;AACA;AACA,mCAAmC,iBAA4B;AAC/D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kEAAkE,yBAAyB;AAC3F;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,yBAAyB;AACjD;AACA;AACA;AACA;AACA;AACA,0DAA0D;AAC1D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sCAAsC,qBAAgC;AACtE;AACA;AACA;AACA,0BAA0B,qBAAgC,OAAO,QAAQ,sCAAsC;AAC/G;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,4BAA4B,aAAwB;AACpD,4BAA4B,iBAA4B;AACxD;AACA;AACA,wCAAwC,gBAAgB,uCAAkD;AAC1G;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,aAAS;AACpC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAA6B,iBAA4B;AACzD;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,WAAQ,CAAC,WAAQ,GAAG,6BAA6B;AACrE;AACA,yBAAyB,aAAwB;AACjD;AACA;AACA,oCAAoC,aAAwB;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,WAAW;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB;AACtB;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD,2CAAe,IAAI,EAAC;AACpB;;;;;;ACxKA,IAAI,aAAQ,IAAI,SAAI,IAAI,SAAI;AAC5B,IAAI,aAAQ;AACZ,iDAAiD,OAAO;AACxD;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,aAAQ;AACnB;AAC4G;AACrD;AACN;AAC0B;AACJ;AACR;AACP;AACd;AACiD;AACL;AACkC;AACzD;AAC+E;AAC9D;AACA;AACvB;AACK;AACwB;AACM;AAClB;AACuB;AACvB;AACS;AACnB;AAClB;AACO;AACoD;AACxD;AACuB;AAChB;AACR;AACsC;AACwB;AACjE;AAC4D;AAC1C;AACV;AAC3B;AACkD;AACmD;AAClG;AACiB;AACP;AACvC,IAAI,kBAAW,OAAO,mCAAW;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCAAkC,UAAU,uBAAuB;AACnE,kCAAkC;AAClC;AACA,4CAA4C;AAC5C,6BAA6B;AAC7B;AACA;AACA,6BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,wBAAwB,IAAI;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,KAAK;AACL;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA,oCAAoC,0BAA0B;AAC9D;AACA;AACA,oDAAoD,0BAA0B;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,qBAAqB,4BAA4B,gBAAgB,4BAA4B;AACtG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,6BAA6B,yBAAyB;AAC/D;AACA;AACA;AACA,kCAAkC;AAClC;AACA;AACA;AACA;AACA,yDAAyD,QAAQ;AACjE;AACA,yBAAyB,kBAAkB;AAC3C;AACA;AACA,8BAA8B,eAAe;AAC7C,0CAA0C,iBAAiB;AAC3D;AACA;AACA,gDAAgD,WAAW;AAC3D;AACA;AAC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A;AACA,gEAAgE,wBAAwB;AACxF,yBAAyB;AACzB;AACA,iBAAiB;AACjB,aAAa,IAAI;AACjB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6EAA6E,0BAA0B,MAAM,yBAAyB,GAAG,wBAAwB,gBAAgB,wBAAwB;AACzM,qCAAqC;AACrC;AACA,6BAA6B;AAC7B,4DAA4D,uDAAuD,uBAAuB,IAAI;AAC9I;AACA,qBAAqB;AACrB;AACA;AACA;AACA,gDAAgD,qCAAqC,YAAY,IAAI;AACrG;AACA;AACA;AACA;AACA;AACA,mFAAmF,YAAY;AAC/F,qCAAqC;AACrC;AACA;AACA;AACA,+DAA+D,iDAAiD,qBAAqB,IAAI;AACzI;AACA,qCAAqC;AACrC;AACA,6BAA6B;AAC7B;AACA,qBAAqB;AACrB;AACA;AACA;AACA,gDAAgD,sCAAsC,aAAa,IAAI;AACvG;AACA,qBAAqB;AACrB;AACA;AACA;AACA,gDAAgD,gDAAgD,uBAAuB,IAAI;AAC3H;AACA,qBAAqB;AACrB,uCAAuC,iCAAiC,UAAU,IAAI;AACtF;AACA,aAAa;AACb,+BAA+B;AAC/B,yCAAyC;AACzC;AACA;AACA;AACA;AACA;AACA;AACA,yBAAyB;AACzB,qBAAqB;AACrB,iBAAiB,IAAI;AACrB,wCAAwC;AACxC,0CAA0C,wDAAwD;AAClG,iBAAiB,IAAI;AACrB,aAAa,IAAI;AACjB;AACA;AACA;AACA;AACA;AACA,0CAA0C,aAAQ,GAAG,0CAA0C;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA,8EAA8E,yBAAyB;AACvG;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,kBAAW;AACzD;AACA;AACA,uBAAuB,kBAAW,mBAAmB,8BAAK;AAC1D,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA,8CAA8C,kBAAW;AACzD;AACA,2EAA2E,OAAO,kBAAW,2CAA2C;AACxI;A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T;AACD;AACA;AACQ;AACP;AACL;AACQ;AACP;AACA;AACE;AACA;AACC;AACH;AACI;AACJ;AACa;AACZ;AACO;AAC/B;;AC/BqB;AACA;AACrB;;ACFuC;AACZ;AACL;AACE;AACxB;;;;;;;ACJA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;;;;;;;;ACrCA,WAAW,mBAAO,CAAC,KAAQ;;AAE3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;;;;;;;;AChCa;AACb,wBAAwB,mBAAO,CAAC,KAAmB;AACnD,wBAAwB,mBAAO,CAAC,KAAsB;AACtD,qBAAqB,mBAAO,CAAC,GAAgB;;AAE7C;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;;AAEA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA,EAAE;AACF;;AAEA,eAAe;AACf,aAAa;;AAEb,iBAAiB;AACjB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA,EAAE;AACF;;AAEA,gBAAgB;AAChB;AACA;AACA,EAAE;;AAEF;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH,wDAAwD,2CAA2C;AACnG;AACA;;AAEA,oBAAoB;AACpB;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA,yDAAyD,YAAY;;AAErE;AACA;AACA;AACA,oBAAoB,YAAY;AAChC;;AAEA;AACA;AACA,aAAa,2CAA2C;AACxD;;AAEA,WAAW,IAAI,EAAE,YAAY,EAAE,KAAK;AACpC;;;;;;;;;AC3Xa;;AAEb,wBAAwB,mBAAO,CAAC,KAAqB;;AAErD;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA,gCAAgC;;;;;;;;;;;;;;;;;;ACzBR;AACI;;AAE5B,sHAAsH,qBAAM,mBAAmB,qBAAM;;AAErJ;AACA,mBAAmB,aAAa;AAChC;;AAEA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA,sBAAsB,kBAAkB;AACxC,wCAAwC;;AAExC;AACA;AACA,8BAA8B;;AAE9B,8BAA8B;AAC9B;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,uCAAuC;;AAEvC,gCAAgC;;AAEhC;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,sBAAsB,uBAAuB;AAC7C,iCAAiC;;AAEjC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;;;AAGR,4BAA4B;AAC5B;;;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;;;AAGP;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;;;AAGA,uDAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA,8DAAqB;AACrB,eAAe,sDAAe;AAC9B;AACA;;AAEA,sBAAsB,uDAAc;AACpC;AACA,CAAC;AACD,aAAa,6CAAI;;AAEjB;AACA;AACA;;AAEA,kDAAkD,0CAA0C;;AAE5F,4CAA4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;AAEA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,gBAAgB,WAAW;AAC3B;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB,gBAAgB,WAAW;AAC3B;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,eAAe,QAAQ;AACvB,gBAAgB,WAAW;AAC3B;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,CAAC;;AAED;AACA;AACA,CAAC;AACD;AACA;;AAEA;;AAEA;;AAEA;AACA;AACA,WAAW,UAAU;AACrB;;;AAGA;AACA;AACA;;AAEA;AACA;;AAEA,kBAAkB,UAAU;AAC5B;AACA;;AAEA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA,EAAE;AACF;AACA;AACA,IAAI,aAAa;AACjB;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,WAAW,qBAAM;AACjB;AACA;;AAEA,WAAW,qBAAM;AACjB;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA,oBAAoB,sBAAsB;AAC1C;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,kBAAkB;;AAElB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF,kBAAkB,qBAAM;;AAExB;AACA;AACA,GAAG;AACH;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA,EAAE;AACF;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;;AAEA,0BAA0B,2EAA2E,oCAAoC,wBAAwB,OAAO,oCAAoC,mIAAmI;AAC/U;AACA;AACA;AACA;;AAEA,oBAAoB,sBAAsB;AAC1C;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,UAAU;AACV;AACA;;AAEA;AACA;AACA;AACA,GAAG;;AAEH,wBAAwB,SAAS;AACjC;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,qBAAM;AACxB;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,QAAQ,OAAO;AACf;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,QAAQ,OAAO;AACf;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA;AACA;AACA,EAAE;;AAEF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,IAAI;;;AAGJ;;AAEA;AACA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,kBAAkB,KAAK,IAAI;;AAE3B;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA,IAAI;;;AAGJ;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;AACA;AACA,KAAK;AACL;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA,mEAAmE;;AAEnE;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,oCAAoC,OAAO;AAC3C;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA;AACA;AACA,WAAW;AACX,UAAU;AACV;AACA;AACA,WAAW;AACX;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA;AACA;;AAEA;AACA,EAAE;AACF;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,MAAM;AACf;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA,mGAAmG;;AAEnG;AACA;AACA;AACA;AACA,EAAE;;;AAGF;AACA,EAAE,OAAO;AACT;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,oDAAoD,0CAA0C;;AAE9F,8CAA8C,gBAAgB,kBAAkB,OAAO,2BAA2B,wDAAwD,gCAAgC,uDAAuD;;AAEjQ,gEAAgE,wEAAwE,gEAAgE;;AAExM,eAAe,0CAAa;AAC5B;AACA,kCAAkC;;AAElC,uCAAuC;;AAEvC,iDAAiD,GAAG;AACpD,2BAA2B;;AAE3B;AACA;AACA,EAAE;AACF;AACA,EAAE;;;AAGF;;AAEA,iBAAiB,UAAU;AAC3B;AACA,EAAE;;;AAGF;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,wBAAwB;AACrC,gBAAgB,QAAQ;AACxB,cAAc,UAAU;AACxB;AACA;AACA;;AAEA;AACA,2CAA2C;;AAE3C;AACA;AACA,uCAAuC;;AAEvC,qEAAqE;;AAErE;AACA,MAAM;;;AAGN,sCAAsC;;AAEtC;AACA;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,wBAAwB,sBAAsB;AAC9C;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;;AAEA,GAAG;AACH;;AAEA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,gBAAgB,QAAQ;AACxB;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,gBAAgB,SAAS;AACzB;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,MAAM;AACtB;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,gBAAgB,QAAQ;AACxB;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA,0CAA0C;;AAE1C;AACA;AACA;AACA,wCAAwC;;AAExC;AACA;AACA;AACA;AACA,wCAAwC;;AAExC;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,gBAAgB,UAAU;AAC1B;;AAEA,GAAG;AACH;AACA;AACA,2EAA2E;;AAE3E;AACA;AACA;AACA,wCAAwC;;AAExC;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,QAAQ;AACvB,gBAAgB,UAAU;AAC1B;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA,QAAQ;;;AAGR,4EAA4E;;AAE5E;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,eAAe,GAAG;AAClB,gBAAgB,SAAS;AACzB;;AAEA,GAAG;AACH;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,QAAQ;;;AAGR;AACA;AACA;;AAEA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,CAAC,IAAI;;;AAGL;AACA;AACA,CAAC;AACD;AACA;AACA,CAAC;AACD;AACA;AACA,CAAC;AACD;AACA;AACA,CAAC;AACD;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC;AACD;AACA;AACA;AACA,YAAY,QAAQ;AACpB;AACA;;AAEA;AACA;AACA;AACA;;AAEA,+CAA+C;AAC/C;AACA;;AAEA;AACA;AACA,CAAC;AACD;;AAEA,oDAAoD,0CAA0C;;AAE9F,8CAA8C,gBAAgB,kBAAkB,OAAO,2BAA2B,wDAAwD,gCAAgC,uDAAuD;;AAEjQ,gEAAgE,wEAAwE,gEAAgE;;AAExM;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA,wDAAwD;;AAExD,oBAAoB,yBAAyB;AAC7C;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA,CAAC;;AAED;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;;AAEA,oDAAoD,0CAA0C;;AAE9F,8CAA8C,gBAAgB,kBAAkB,OAAO,2BAA2B,wDAAwD,gCAAgC,uDAAuD;;AAEjQ,gEAAgE,wEAAwE,gEAAgE;;AAExM;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,CAAC;;AAED;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;;AAEA,oDAAoD,0CAA0C;;AAE9F,8CAA8C,gBAAgB,kBAAkB,OAAO,2BAA2B,wDAAwD,gCAAgC,uDAAuD;;AAEjQ,gEAAgE,wEAAwE,gEAAgE;;AAExM;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,eAAe;AAC5B,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,CAAC;;AAED;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;;AAEA,oDAAoD,0CAA0C;;AAE9F,8CAA8C,gBAAgB,kBAAkB,OAAO,2BAA2B,wDAAwD,gCAAgC,uDAAuD;;AAEjQ,gEAAgE,wEAAwE,gEAAgE;;AAExM;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,mBAAmB;AAChC,aAAa,QAAQ;AACrB,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,CAAC;;AAED;AACA;AACA,CAAC;AACD;;AAEA,eAAe,0CAAa;AAC5B;AACA;AACA;AACA;AACA;AACA;AACA,qBAAqB;;AAErB,6HAA6H;;AAE7H;AACA;AACA,wCAAwC;;AAExC;AACA;AACA,EAAE;;;AAGF;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA,kBAAkB,QAAQ;AAC1B;AACA,+BAA+B;;AAE/B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,EAAE;;;AAGF;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qFAAqF;;AAErF;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,kCAAkC;;AAElC;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY;AACZ;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,YAAY,YAAY;AACxB;;;AAGA;AACA;AACA;AACA;AACA,4BAA4B;;AAE5B,6BAA6B;;AAE7B,uBAAuB;;AAEvB,mBAAmB;;AAEnB,yBAAyB;;AAEzB,wBAAwB;;AAExB,oBAAoB;;AAEpB,yBAAyB;;AAEzB,wBAAwB;;AAExB,sBAAsB;;AAEtB,qBAAqB;;AAErB,oBAAoB;;AAEpB,aAAa;;AAEb,gCAAgC;;AAEhC,+BAA+B;;AAE/B,0BAA0B;;AAE1B,iBAAiB;AACjB;AACA;;AAEA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA,iDAAiD;;AAEjD;AACA;AACA;;AAEA;AACA;AACA;AACA,yCAAyC;AACzC;;AAEA;AACA;AACA,oCAAoC;;AAEpC,oFAAoF;;AAEpF;;AAEA;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,6BAA6B;;AAE7B;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,qGAAqG;;AAErG;AACA;AACA,8DAA8D;;AAE9D,+EAA+E;;AAE/E,uCAAuC;;AAEvC;AACA,IAAI;;;AAGJ,uEAAuE;AACvE;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;;AAGA;AACA;AACA,IAAI;AACJ;AACA,IAAI;;;AAGJ;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,IAAI;AACJ;;;AAGA;AACA,mCAAmC;AACnC;AACA;;AAEA;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA,+CAA+C,iBAAiB;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA,aAAa,WAAW;AACxB;AACA,4BAA4B;;AAE5B;AACA;AACA;AACA;AACA,cAAc;AACd;AACA;AACA;AACA;AACA;AACA;AACA,IAAI;AACJ;;;AAGA,0CAA0C;;AAE1C,yCAAyC;;AAEzC;AACA;AACA;AACA,IAAI;AACJ;AACA;AACA;;AAEA,WAAW,oBAAoB;AAC/B;AACA;AACA;AACA,IAAI;AACJ;AACA;;AAEA,WAAW,0BAA0B;AACrC;AACA;AACA;;AAEA;;AAEA,WAAW,qBAAqB;AAChC;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA,KAAK;;AAEL;AACA;AACA;AACA;A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A;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,qDAAqD;AACrD;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA,qBAAqB,yBAAyB;AAC9C;AACA,MAAM;;;AAGN;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA,IAAI;AACJ;AACA;AACA,wBAAwB,0BAA0B;AAClD;AACA;AACA,MAAM;AACN,0DAA0D;;AAE1D;AACA,0BAA0B,sBAAsB;AAChD;AACA;AACA,QAAQ;AACR;AACA;;AAEA,wBAAwB;;AAExB;AACA;AACA;;AAEA,wBAAwB,4DAA4D;AACpF;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;;AAEA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;;AAEA,oDAAoD,0CAA0C;;AAE9F,8CAA8C,gBAAgB,kBAAkB,OAAO,2BAA2B,wDAAwD,gCAAgC,uDAAuD;;AAEjQ,gEAAgE,wEAAwE,gEAAgE;;AAExM;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,CAAC;;AAED;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;;AAEA,oDAAoD,0CAA0C;;AAE9F,8CAA8C,gBAAgB,kBAAkB,OAAO,2BAA2B,wDAAwD,gCAAgC,uDAAuD;;AAEjQ,gEAAgE,wEAAwE,gEAAgE;;AAExM;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,QAAQ;AACtB;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA,GAAG;;AAEH;AACA,CAAC;;AAED;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;;AAEA,oDAAoD,0CAA0C;;AAE9F,8CAA8C,gBAAgB,kBAAkB,OAAO,2BAA2B,wDAAwD,gCAAgC,uDAAuD;;AAEjQ,gEAAgE,wEAAwE,gEAAgE;;AAExM;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,UAAU;AACvB,aAAa,QAAQ;AACrB,cAAc;AACd;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA,iCAAiC;AACjC;AACA;AACA,OAAO;AACP;AACA;AACA,GAAG;;AAEH;AACA,CAAC;;AAED;AACA;AACA,CAAC,GAAG;AACJ;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA,CAAC;AACD;;AAEA,oDAAoD,0CAA0C;;AAE9F,8CAA8C,gBAAgB,kBAAkB,OAAO,2BAA2B,wDAAwD,gCAAgC,uDAAuD;;AAEjQ,gEAAgE,wEAAwE,gEAAgE;;AAExM,eAAe,0CAAa;AAC5B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa,QAAQ;AACrB,aAAa,QAAQ;AACrB,cAAc;AACd;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA,UAAU;AACV;AACA;AACA,QAAQ;AACR;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA,QA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;AACV;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAgB,QAAQ;AACxB;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA,GAAG;;AAEH;AACA,CAAC;AACD;AACA;AACA;AACA;;;AAGA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,6HAA6H;;AAE7H,kBAAkB,iBAAiB;AACnC;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;;AAEA,2BAA2B,cAAc;AACzC;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,0BAA0B,2EAA2E,oCAAoC,wBAAwB,OAAO,oCAAoC,mIAAmI;AAC/U;;AAEA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,MAAM;AACN;;;AAGA;AACA;AACA;AACA,MAAM;;;AAGN;AACA,IAAI;;;AAGJ,oEAAoE;;AAEpE;AACA;AACA;AACA,GAAG;;AAEH,kBAAkB,iBAAiB;AACnC;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,iDAAiD;AACjD,MAAM;AACN,6DAA6D,sDAAsD;AACnH;;AAEA;AACA;;AAEA;AACA,+BAA+B;;AAE/B;AACA;AACA;;AAEA;AACA;;AAEA;AACA,mDAAmD;AACnD;;AAEA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;AACA,KAAK,GAAG;;AAER;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,WAAW,SAAS;AACpB,YAAY;AACZ;AACA;AACA,WAAW,QAAQ;AACnB,mBAAmB,WAAW,sBAAsB;AACpD;AACA,eAAe,SAAS;AACxB,mCAAmC,gBAAgB;AACnD;AACA,eAAe;AACf;AACA;;;AAGA;AACA;;AAEA,4BAA4B;AAC5B;AACA;AACA,GAAG,YAAY;;AAEf;AACA;AACA;AACA;AACA,GAAG;AACH,EAAE;AACF;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,gBAAgB;AAC3B,WAAW,eAAe;AAC1B,WAAW,QAAQ;AACnB,WAAW,SAAS;AACpB,WAAW,SAAS;AACpB,aAAa;AACb;AACA;AACA,WAAW,QAAQ;AACnB;AACA,iBAAiB;AACjB;AACA,eAAe,SAAS,mBAAmB;AAC3C,sCAAsC,gBAAgB;AACtD;AACA,eAAe,WAAW;AAC1B;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA,4BAA4B;AAC5B;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,YAAY;AACZ;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,YAAY;AACZ;;;AAGA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;;AAEA;AACA,mCAAmC;;AAEnC;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,2EAA2E;;AAE3E;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA,GAAG;AACH;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,IAAI;AACJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA,MAAM;;;AAGN;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,mBAAmB;AAC9B,WAAW,QAAQ;AACnB,WAAW,QAAQ;AACnB,aAAa,SAAS;AACtB;;AAEA;AACA;;AAEA,sBAAsB,SAAS;AAC/B;;AAEA;AACA;AACA;AACA;;AAEA;AACA,MAAM;AACN;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,eAAe,0CAAa;AAC5B,iDAAiD;;AAEjD;AACA;AACA;;AAEA;AACA,iCAAiC;AACjC,4DAA4D;;AAE5D;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,oFAAoF;;AAEpF,6DAA6D;;AAE7D,+FAA+F;;AAE/F;AACA;AACA,0FAA0F;;AAE1F,0BAA0B;;AAE1B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AACA;;;AAGA;AACA;AACA,oBAAoB;;AAEpB;AACA;AACA;AACA,IAAI;;;AAGJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA,oBAAoB;;AAEpB;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iCAAiC,+BAA+B;AAChE;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAS,WAAW;AACpB;;AAEA;AACA;AACA;;AAEA,SAAS,WAAW;AACpB;;AAEA;AACA;AACA,IAAI;AACJ;AACA,IAAI;AACJ;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,IAAI;AACJ;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA,MAAM;AACN;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA,MAAM;AACN;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;;AAEA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;;AAEA,0BAA0B,2EAA2E,oCAAoC,wBAAwB,OAAO,oCAAoC,mIAAmI;;AAE/U,eAAe,0CAAa;AAC5B;AACA;AACA,uBAAuB;;AAEvB,kEAAkE;;AAElE;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA,mDAAmD;;AAEnD,oHAAoH;;AAEpH;AACA,4BAA4B;;AAE5B,wDAAwD;;AAExD;AACA;AACA;AACA,sCAAsC;;AAEtC,4BAA4B;;AAE5B;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AAC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AACA;AACA;AACA;AACA;;AAEA;;AAEA,0BAA0B,2EAA2E,oCAAoC,wBAAwB,OAAO,oCAAoC,mIAAmI;;AAE/U,eAAe,0CAAa;AAC5B,iEAAiE;;AAEjE;AACA;AACA;;AAEA;AACA;;AAEA;AACA,oBAAoB,mBAAmB;AACvC;AACA;AACA,IAAI;AACJ;AACA;AACA;AACA,MAAM;;;AAGN;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;;AAGA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,QAAQ;AACR;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,QAAQ;AACR;AACA;AACA;AACA,UAAU;AACV;AACA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;AACA;AACA;AACA,SAAS,iBAAiB;;AAE1B;AACA;AACA;;AAEA;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA,QAAQ;AACR;AACA;;AAEA;AACA;AACA;AACA;AACA,QAAQ;AACR;AACA;AACA,UAAU;AACV;AACA;AACA;;AAEA;;AAEA;AACA;;AAEA;;AAEA,eAAe,0CAAa;AAC5B;AACA;AACA;AACA,WAAW,mBAAmB;AAC9B,aAAa,QAAQ;AACrB;AACA,YAAY,WAAW;AACvB;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;;AAEA,eAAe,0CAAa,EAAE;;AAE9B;AACA;AACA;AACA;;AAEA,gCAAgC;;AAEhC;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAW,QAAQ;AACnB,WAAW,SAAS;AACp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;AAE3B,gEAAgE;;AAEhE;AACA,IAAI;;;AAGJ;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,sEAAe,IAAI,EAAC;AACg8C","sources":["webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v1/AtlasCluster.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v1/AtlasDataLake.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v1/AtlasGroup.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v1/AtlasServerlessInstance.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v1/ClusterStorageMetrics.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v1/TempAPIKey.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/APIKey.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/IncomingWebhook.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/common/createStringMapSerializers.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/Schema.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/Rule.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/Service.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/App.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/AtlasAPIKey.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/AuthProvider.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/CodeDeploy.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/CustomUserData.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/DebugExecuteFunction.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/Dependencies.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/Deployment.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/Draft.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/Endpoint.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/EnvironmentValue.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/Converter.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/EventSubscription.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/Function.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/GraphQL.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/Hosting.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/IPAccess.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/Log.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/LogForwarder.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/Measurement.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/Push.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/Secret.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/Sync.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/Template.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/User.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/ValidationOptions.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/Value.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/Error.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/auth/Common.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/Common.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/auth/Providers.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/auth/Storage.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/auth/index.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/Client.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v1/index.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/v3/index.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/api/index.js","webpack://admin/./node_modules/baas-admin-sdk/dist/esm/index.js","webpack://admin/./node_modules/baas-admin-sdk/node_modules/jwt-decode/lib/atob.js","webpack://admin/./node_modules/baas-admin-sdk/node_modules/jwt-decode/lib/base64_url_decode.js","webpack://admin/./node_modules/baas-admin-sdk/node_modules/query-string/index.js","webpack://admin/./node_modules/baas-admin-sdk/node_modules/jwt-decode/lib/index.js","webpack://admin/./node_modules/baas-admin-sdk/node_modules/bson/dist/bson.browser.esm.js"],"sourcesContent":["var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonObject, JsonProperty } from 'json2typescript';\nvar AtlasElectableSpecs = (function () {\n function AtlasElectableSpecs(partial) {\n this.instanceSize = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('instanceSize', String, true),\n __metadata(\"design:type\", String)\n ], AtlasElectableSpecs.prototype, \"instanceSize\", void 0);\n AtlasElectableSpecs = __decorate([\n JsonObject('AtlasElectableSpecs'),\n __metadata(\"design:paramtypes\", [Object])\n ], AtlasElectableSpecs);\n return AtlasElectableSpecs;\n}());\nexport { AtlasElectableSpecs };\nvar AtlasRegionConfig = (function () {\n function AtlasRegionConfig(partial) {\n this.electableSpecs = undefined;\n this.regionName = undefined;\n this.backingProviderName = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('electableSpecs', AtlasElectableSpecs, true),\n __metadata(\"design:type\", AtlasElectableSpecs)\n ], AtlasRegionConfig.prototype, \"electableSpecs\", void 0);\n __decorate([\n JsonProperty('regionName', String, true),\n __metadata(\"design:type\", String)\n ], AtlasRegionConfig.prototype, \"regionName\", void 0);\n __decorate([\n JsonProperty('backingProviderName', String, true),\n __metadata(\"design:type\", String)\n ], AtlasRegionConfig.prototype, \"backingProviderName\", void 0);\n AtlasRegionConfig = __decorate([\n JsonObject('AtlasRegionConfig'),\n __metadata(\"design:paramtypes\", [Object])\n ], AtlasRegionConfig);\n return AtlasRegionConfig;\n}());\nexport { AtlasRegionConfig };\nvar AtlasReplicationSpec = (function () {\n function AtlasReplicationSpec(partial) {\n this.regionConfigs = [];\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('regionConfigs', [AtlasRegionConfig], true),\n __metadata(\"design:type\", Array)\n ], AtlasReplicationSpec.prototype, \"regionConfigs\", void 0);\n AtlasReplicationSpec = __decorate([\n JsonObject('AtlasReplicationSpec'),\n __metadata(\"design:paramtypes\", [Object])\n ], AtlasReplicationSpec);\n return AtlasReplicationSpec;\n}());\nexport { AtlasReplicationSpec };\nvar AtlasConnectionStrings = (function () {\n function AtlasConnectionStrings(partial) {\n this.standard = undefined;\n this.standardSrv = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('standard', String, true),\n __metadata(\"design:type\", String)\n ], AtlasConnectionStrings.prototype, \"standard\", void 0);\n __decorate([\n JsonProperty('standardSrv', String, true),\n __metadata(\"design:type\", String)\n ], AtlasConnectionStrings.prototype, \"standardSrv\", void 0);\n AtlasConnectionStrings = __decorate([\n JsonObject('AtlasConnectionStrings'),\n __metadata(\"design:paramtypes\", [Object])\n ], AtlasConnectionStrings);\n return AtlasConnectionStrings;\n}());\nexport { AtlasConnectionStrings };\nvar AtlasCluster = (function () {\n function AtlasCluster(partial) {\n this.id = undefined;\n this.name = undefined;\n this.replicationSpecs = [];\n this.connectionStrings = undefined;\n this.state = undefined;\n this.paused = undefined;\n this.mongoDBVersion = undefined;\n this.clusterType = undefined;\n this.isMultiCloud = undefined;\n this.isMultiRegion = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('id', String, true),\n __metadata(\"design:type\", String)\n ], AtlasCluster.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name', String, true),\n __metadata(\"design:type\", String)\n ], AtlasCluster.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('replicationSpecs', [AtlasReplicationSpec], true),\n __metadata(\"design:type\", Array)\n ], AtlasCluster.prototype, \"replicationSpecs\", void 0);\n __decorate([\n JsonProperty('connectionStrings', AtlasConnectionStrings, true),\n __metadata(\"design:type\", AtlasConnectionStrings)\n ], AtlasCluster.prototype, \"connectionStrings\", void 0);\n __decorate([\n JsonProperty('stateName', String, true),\n __metadata(\"design:type\", String)\n ], AtlasCluster.prototype, \"state\", void 0);\n __decorate([\n JsonProperty('paused', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], AtlasCluster.prototype, \"paused\", void 0);\n __decorate([\n JsonProperty('mongoDBVersion', String, true),\n __metadata(\"design:type\", String)\n ], AtlasCluster.prototype, \"mongoDBVersion\", void 0);\n __decorate([\n JsonProperty('clusterType', String, true),\n __metadata(\"design:type\", String)\n ], AtlasCluster.prototype, \"clusterType\", void 0);\n __decorate([\n JsonProperty('isMultiCloud', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], AtlasCluster.prototype, \"isMultiCloud\", void 0);\n __decorate([\n JsonProperty('isMultiRegion', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], AtlasCluster.prototype, \"isMultiRegion\", void 0);\n AtlasCluster = __decorate([\n JsonObject('AtlasCluster'),\n __metadata(\"design:paramtypes\", [Object])\n ], AtlasCluster);\n return AtlasCluster;\n}());\nexport { AtlasCluster };\nvar CreateAtlasClusterRequest = (function () {\n function CreateAtlasClusterRequest(partial) {\n this.regionName = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('region_name', String, true),\n __metadata(\"design:type\", String)\n ], CreateAtlasClusterRequest.prototype, \"regionName\", void 0);\n CreateAtlasClusterRequest = __decorate([\n JsonObject('CreateAtlasClusterRequest'),\n __metadata(\"design:paramtypes\", [Object])\n ], CreateAtlasClusterRequest);\n return CreateAtlasClusterRequest;\n}());\nexport { CreateAtlasClusterRequest };\nvar CreateAtlasClusterResponse = (function () {\n function CreateAtlasClusterResponse(partial) {\n this.clusterName = '';\n this.region = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('cluster_name'),\n __metadata(\"design:type\", Object)\n ], CreateAtlasClusterResponse.prototype, \"clusterName\", void 0);\n __decorate([\n JsonProperty('region'),\n __metadata(\"design:type\", String)\n ], CreateAtlasClusterResponse.prototype, \"region\", void 0);\n CreateAtlasClusterResponse = __decorate([\n JsonObject('CreateAtlasClusterResponse'),\n __metadata(\"design:paramtypes\", [Object])\n ], CreateAtlasClusterResponse);\n return CreateAtlasClusterResponse;\n}());\nexport { CreateAtlasClusterResponse };\n//# sourceMappingURL=AtlasCluster.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonObject, JsonProperty } from 'json2typescript';\nvar Store = (function () {\n function Store() {\n this.region = undefined;\n this.provider = undefined;\n }\n __decorate([\n JsonProperty('region', String, true),\n __metadata(\"design:type\", String)\n ], Store.prototype, \"region\", void 0);\n __decorate([\n JsonProperty('provider', String, true),\n __metadata(\"design:type\", String)\n ], Store.prototype, \"provider\", void 0);\n Store = __decorate([\n JsonObject('Store')\n ], Store);\n return Store;\n}());\nexport { Store };\nvar Storage = (function () {\n function Storage() {\n this.stores = undefined;\n }\n __decorate([\n JsonProperty('stores', [Store], true),\n __metadata(\"design:type\", Array)\n ], Storage.prototype, \"stores\", void 0);\n Storage = __decorate([\n JsonObject('Storage')\n ], Storage);\n return Storage;\n}());\nexport { Storage };\nvar AtlasDataLake = (function () {\n function AtlasDataLake(partial) {\n this.name = undefined;\n this.state = undefined;\n this.hostnames = undefined;\n this.storage = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('name', String, true),\n __metadata(\"design:type\", String)\n ], AtlasDataLake.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('state', String, true),\n __metadata(\"design:type\", String)\n ], AtlasDataLake.prototype, \"state\", void 0);\n __decorate([\n JsonProperty('hostnames', [String], true),\n __metadata(\"design:type\", Array)\n ], AtlasDataLake.prototype, \"hostnames\", void 0);\n __decorate([\n JsonProperty('storage', Storage, true),\n __metadata(\"design:type\", Storage)\n ], AtlasDataLake.prototype, \"storage\", void 0);\n AtlasDataLake = __decorate([\n JsonObject('AtlasDataLake'),\n __metadata(\"design:paramtypes\", [Object])\n ], AtlasDataLake);\n return AtlasDataLake;\n}());\nexport { AtlasDataLake };\n//# sourceMappingURL=AtlasDataLake.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonObject, JsonProperty } from 'json2typescript';\nvar AtlasGroup = (function () {\n function AtlasGroup(partial) {\n this.id = '';\n this.name = '';\n this.orgId = '';\n this.betaFeatures = [];\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('id'),\n __metadata(\"design:type\", Object)\n ], AtlasGroup.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], AtlasGroup.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('orgId'),\n __metadata(\"design:type\", Object)\n ], AtlasGroup.prototype, \"orgId\", void 0);\n __decorate([\n JsonProperty('betaFeatures'),\n __metadata(\"design:type\", Array)\n ], AtlasGroup.prototype, \"betaFeatures\", void 0);\n AtlasGroup = __decorate([\n JsonObject('AtlasGroup'),\n __metadata(\"design:paramtypes\", [Object])\n ], AtlasGroup);\n return AtlasGroup;\n}());\nexport { AtlasGroup };\n//# sourceMappingURL=AtlasGroup.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { AtlasConnectionStrings } from './AtlasCluster';\nimport { JsonObject, JsonProperty } from 'json2typescript';\nvar ProviderSettings = (function () {\n function ProviderSettings(partial) {\n this.providerName = undefined;\n this.backingProviderName = undefined;\n this.regionName = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('providerName', String, true),\n __metadata(\"design:type\", String)\n ], ProviderSettings.prototype, \"providerName\", void 0);\n __decorate([\n JsonProperty('backingProviderName', String, true),\n __metadata(\"design:type\", String)\n ], ProviderSettings.prototype, \"backingProviderName\", void 0);\n __decorate([\n JsonProperty('regionName', String, true),\n __metadata(\"design:type\", String)\n ], ProviderSettings.prototype, \"regionName\", void 0);\n ProviderSettings = __decorate([\n JsonObject('ProviderSettings'),\n __metadata(\"design:paramtypes\", [Object])\n ], ProviderSettings);\n return ProviderSettings;\n}());\nexport { ProviderSettings };\nvar AtlasServerlessInstance = (function () {\n function AtlasServerlessInstance(partial) {\n this.id = undefined;\n this.name = undefined;\n this.stateName = undefined;\n this.mongoDBVersion = undefined;\n this.connectionStrings = undefined;\n this.providerSettings = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('id', String, true),\n __metadata(\"design:type\", String)\n ], AtlasServerlessInstance.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name', String, true),\n __metadata(\"design:type\", String)\n ], AtlasServerlessInstance.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('stateName', String, true),\n __metadata(\"design:type\", String)\n ], AtlasServerlessInstance.prototype, \"stateName\", void 0);\n __decorate([\n JsonProperty('mongoDBVersion', String, true),\n __metadata(\"design:type\", String)\n ], AtlasServerlessInstance.prototype, \"mongoDBVersion\", void 0);\n __decorate([\n JsonProperty('connectionStrings', AtlasConnectionStrings, true),\n __metadata(\"design:type\", AtlasConnectionStrings)\n ], AtlasServerlessInstance.prototype, \"connectionStrings\", void 0);\n __decorate([\n JsonProperty('providerSettings', ProviderSettings, true),\n __metadata(\"design:type\", ProviderSettings)\n ], AtlasServerlessInstance.prototype, \"providerSettings\", void 0);\n AtlasServerlessInstance = __decorate([\n JsonObject('AtlasServerlessInstance'),\n __metadata(\"design:paramtypes\", [Object])\n ], AtlasServerlessInstance);\n return AtlasServerlessInstance;\n}());\nexport { AtlasServerlessInstance };\n//# sourceMappingURL=AtlasServerlessInstance.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonObject, JsonProperty } from 'json2typescript';\nvar AutoscaleCompute = (function () {\n function AutoscaleCompute(partial) {\n this.enabled = undefined;\n this.scaleDownEnabled = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('enabled', Boolean),\n __metadata(\"design:type\", Boolean)\n ], AutoscaleCompute.prototype, \"enabled\", void 0);\n __decorate([\n JsonProperty('scaleDownEnabled', Boolean),\n __metadata(\"design:type\", Boolean)\n ], AutoscaleCompute.prototype, \"scaleDownEnabled\", void 0);\n AutoscaleCompute = __decorate([\n JsonObject('AutoscaleCompute'),\n __metadata(\"design:paramtypes\", [Object])\n ], AutoscaleCompute);\n return AutoscaleCompute;\n}());\nexport { AutoscaleCompute };\nvar Autoscaling = (function () {\n function Autoscaling(partial) {\n this.compute = undefined;\n this.diskGBEnabled = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('compute', AutoscaleCompute),\n __metadata(\"design:type\", AutoscaleCompute)\n ], Autoscaling.prototype, \"compute\", void 0);\n __decorate([\n JsonProperty('diskGBEnabled', Boolean),\n __metadata(\"design:type\", Boolean)\n ], Autoscaling.prototype, \"diskGBEnabled\", void 0);\n Autoscaling = __decorate([\n JsonObject('Autoscaling'),\n __metadata(\"design:paramtypes\", [Object])\n ], Autoscaling);\n return Autoscaling;\n}());\nexport { Autoscaling };\nvar ClusterStorageMetrics = (function () {\n function ClusterStorageMetrics(partial) {\n this.autoScaling = undefined;\n this.diskSizeGB = undefined;\n this.diskPartitionSpaceFree = undefined;\n this.diskPartitionSpaceFreeUnits = undefined;\n this.percentCapacityRemaining = undefined;\n this.warning = undefined;\n this.partial = undefined;\n this.instanceSize = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('autoScaling', Autoscaling),\n __metadata(\"design:type\", Autoscaling)\n ], ClusterStorageMetrics.prototype, \"autoScaling\", void 0);\n __decorate([\n JsonProperty('diskSizeGB', Number),\n __metadata(\"design:type\", Number)\n ], ClusterStorageMetrics.prototype, \"diskSizeGB\", void 0);\n __decorate([\n JsonProperty('diskPartitionSpaceFree', Number, true),\n __metadata(\"design:type\", Number)\n ], ClusterStorageMetrics.prototype, \"diskPartitionSpaceFree\", void 0);\n __decorate([\n JsonProperty('diskPartitionSpaceFreeUnits', String, true),\n __metadata(\"design:type\", String)\n ], ClusterStorageMetrics.prototype, \"diskPartitionSpaceFreeUnits\", void 0);\n __decorate([\n JsonProperty('percentCapacityRemaining', Number, true),\n __metadata(\"design:type\", Number)\n ], ClusterStorageMetrics.prototype, \"percentCapacityRemaining\", void 0);\n __decorate([\n JsonProperty('warning', String, true),\n __metadata(\"design:type\", String)\n ], ClusterStorageMetrics.prototype, \"warning\", void 0);\n __decorate([\n JsonProperty('partial', Boolean),\n __metadata(\"design:type\", Boolean)\n ], ClusterStorageMetrics.prototype, \"partial\", void 0);\n __decorate([\n JsonProperty('instanceSize', String, true),\n __metadata(\"design:type\", String)\n ], ClusterStorageMetrics.prototype, \"instanceSize\", void 0);\n ClusterStorageMetrics = __decorate([\n JsonObject('ClusterStorageMetrics'),\n __metadata(\"design:paramtypes\", [Object])\n ], ClusterStorageMetrics);\n return ClusterStorageMetrics;\n}());\nexport { ClusterStorageMetrics };\n//# sourceMappingURL=ClusterStorageMetrics.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonObject, JsonProperty } from 'json2typescript';\nvar CreateTempAPIKeyRequest = (function () {\n function CreateTempAPIKeyRequest(partial) {\n this.desc = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('desc'),\n __metadata(\"design:type\", Object)\n ], CreateTempAPIKeyRequest.prototype, \"desc\", void 0);\n CreateTempAPIKeyRequest = __decorate([\n JsonObject('CreateTempAPIKeyRequest'),\n __metadata(\"design:paramtypes\", [Object])\n ], CreateTempAPIKeyRequest);\n return CreateTempAPIKeyRequest;\n}());\nexport { CreateTempAPIKeyRequest };\nvar CreateTempAPIKeyResponse = (function () {\n function CreateTempAPIKeyResponse(partial) {\n this.desc = '';\n this.key = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('desc'),\n __metadata(\"design:type\", Object)\n ], CreateTempAPIKeyResponse.prototype, \"desc\", void 0);\n __decorate([\n JsonProperty('key'),\n __metadata(\"design:type\", Object)\n ], CreateTempAPIKeyResponse.prototype, \"key\", void 0);\n CreateTempAPIKeyResponse = __decorate([\n JsonObject('CreateTempAPIKeyResponse'),\n __metadata(\"design:paramtypes\", [Object])\n ], CreateTempAPIKeyResponse);\n return CreateTempAPIKeyResponse;\n}());\nexport { CreateTempAPIKeyResponse };\n//# sourceMappingURL=TempAPIKey.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonObject, JsonProperty } from 'json2typescript';\nvar APIKey = (function () {\n function APIKey(partial) {\n this.id = undefined;\n this.key = '';\n this.name = '';\n this.disabled = false;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id', String, true),\n __metadata(\"design:type\", String)\n ], APIKey.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('key'),\n __metadata(\"design:type\", Object)\n ], APIKey.prototype, \"key\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], APIKey.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('disabled'),\n __metadata(\"design:type\", Object)\n ], APIKey.prototype, \"disabled\", void 0);\n APIKey = __decorate([\n JsonObject('APIKey'),\n __metadata(\"design:paramtypes\", [Object])\n ], APIKey);\n return APIKey;\n}());\nexport { APIKey };\nvar PartialAPIKey = (function () {\n function PartialAPIKey(partial) {\n this.id = '';\n this.name = '';\n this.disabled = false;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], PartialAPIKey.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], PartialAPIKey.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('disabled'),\n __metadata(\"design:type\", Object)\n ], PartialAPIKey.prototype, \"disabled\", void 0);\n PartialAPIKey = __decorate([\n JsonObject('PartialAPIKey'),\n __metadata(\"design:paramtypes\", [Object])\n ], PartialAPIKey);\n return PartialAPIKey;\n}());\nexport { PartialAPIKey };\n//# sourceMappingURL=APIKey.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { Any, JsonObject, JsonProperty } from 'json2typescript';\nvar WebhookOptions = (function () {\n function WebhookOptions(partial) {\n this.secret = undefined;\n this.httpMethod = undefined;\n this.validationMethod = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('secret', String, true),\n __metadata(\"design:type\", String)\n ], WebhookOptions.prototype, \"secret\", void 0);\n __decorate([\n JsonProperty('httpMethod', String, true),\n __metadata(\"design:type\", String)\n ], WebhookOptions.prototype, \"httpMethod\", void 0);\n __decorate([\n JsonProperty('validationMethod', String, true),\n __metadata(\"design:type\", String)\n ], WebhookOptions.prototype, \"validationMethod\", void 0);\n WebhookOptions = __decorate([\n JsonObject('WebhookOptions'),\n __metadata(\"design:paramtypes\", [Object])\n ], WebhookOptions);\n return WebhookOptions;\n}());\nexport { WebhookOptions };\nvar IncomingWebhook = (function () {\n function IncomingWebhook(partial) {\n this.id = undefined;\n this.name = '';\n this.functionSource = '';\n this.lastModified = undefined;\n this.canEvaluate = {};\n this.runAsUserId = '';\n this.runAsUserIdScriptSource = '';\n this.runAsAuthedUser = false;\n this.options = new WebhookOptions();\n this.respondResult = false;\n this.disableArgLogs = false;\n this.fetchCustomUserData = false;\n this.createUserOnAuth = false;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id', String, true),\n __metadata(\"design:type\", String)\n ], IncomingWebhook.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], IncomingWebhook.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('function_source'),\n __metadata(\"design:type\", Object)\n ], IncomingWebhook.prototype, \"functionSource\", void 0);\n __decorate([\n JsonProperty('last_modified', Number, true),\n __metadata(\"design:type\", Number)\n ], IncomingWebhook.prototype, \"lastModified\", void 0);\n __decorate([\n JsonProperty('can_evaluate', Any, true),\n __metadata(\"design:type\", Object)\n ], IncomingWebhook.prototype, \"canEvaluate\", void 0);\n __decorate([\n JsonProperty('run_as_user_id'),\n __metadata(\"design:type\", Object)\n ], IncomingWebhook.prototype, \"runAsUserId\", void 0);\n __decorate([\n JsonProperty('run_as_user_id_script_source'),\n __metadata(\"design:type\", Object)\n ], IncomingWebhook.prototype, \"runAsUserIdScriptSource\", void 0);\n __decorate([\n JsonProperty('run_as_authed_user'),\n __metadata(\"design:type\", Object)\n ], IncomingWebhook.prototype, \"runAsAuthedUser\", void 0);\n __decorate([\n JsonProperty('options', WebhookOptions, true),\n __metadata(\"design:type\", WebhookOptions)\n ], IncomingWebhook.prototype, \"options\", void 0);\n __decorate([\n JsonProperty('respond_result'),\n __metadata(\"design:type\", Object)\n ], IncomingWebhook.prototype, \"respondResult\", void 0);\n __decorate([\n JsonProperty('disable_arg_logs', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], IncomingWebhook.prototype, \"disableArgLogs\", void 0);\n __decorate([\n JsonProperty('fetch_custom_user_data'),\n __metadata(\"design:type\", Object)\n ], IncomingWebhook.prototype, \"fetchCustomUserData\", void 0);\n __decorate([\n JsonProperty('create_user_on_auth'),\n __metadata(\"design:type\", Object)\n ], IncomingWebhook.prototype, \"createUserOnAuth\", void 0);\n IncomingWebhook = __decorate([\n JsonObject('IncomingWebhook'),\n __metadata(\"design:paramtypes\", [Object])\n ], IncomingWebhook);\n return IncomingWebhook;\n}());\nexport { IncomingWebhook };\nvar PartialIncomingWebhook = (function () {\n function PartialIncomingWebhook() {\n this.id = '';\n this.name = '';\n this.lastModified = undefined;\n }\n __decorate([\n JsonProperty('_id', String, true),\n __metadata(\"design:type\", Object)\n ], PartialIncomingWebhook.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], PartialIncomingWebhook.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('last_modified', Number, true),\n __metadata(\"design:type\", Number)\n ], PartialIncomingWebhook.prototype, \"lastModified\", void 0);\n PartialIncomingWebhook = __decorate([\n JsonObject('PartialIncomingWebhook')\n ], PartialIncomingWebhook);\n return PartialIncomingWebhook;\n}());\nexport { PartialIncomingWebhook };\n//# sourceMappingURL=IncomingWebhook.js.map","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport { JsonConvert } from 'json2typescript';\nvar jsonConvert = new JsonConvert();\nexport default function createStringMapSerializers(jsonObjectClass) {\n var serialize = function (map) {\n return Object.entries(map).reduce(function (prev, _a) {\n var _b;\n var _c = __read(_a, 2), key = _c[0], value = _c[1];\n return (__assign(__assign({}, prev), (_b = {}, _b[key] = jsonConvert.serialize(value, jsonObjectClass), _b)));\n }, {});\n };\n var deserialize = function (mapData) {\n return Object.entries(mapData).reduce(function (prev, _a) {\n var _b;\n var _c = __read(_a, 2), key = _c[0], value = _c[1];\n return (__assign(__assign({}, prev), (_b = {}, _b[key] = jsonConvert.deserialize(value, jsonObjectClass), _b)));\n }, {});\n };\n return { serialize: serialize, deserialize: deserialize };\n}\n//# sourceMappingURL=createStringMapSerializers.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport createStringMapSerializers from '../common/createStringMapSerializers';\nimport { Any, JsonConverter, JsonObject, JsonProperty } from 'json2typescript';\nvar Relationship = (function () {\n function Relationship(partial) {\n this.ref = '';\n this.foreignKey = '';\n this.isList = false;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('ref'),\n __metadata(\"design:type\", Object)\n ], Relationship.prototype, \"ref\", void 0);\n __decorate([\n JsonProperty('foreign_key'),\n __metadata(\"design:type\", Object)\n ], Relationship.prototype, \"foreignKey\", void 0);\n __decorate([\n JsonProperty('is_list'),\n __metadata(\"design:type\", Object)\n ], Relationship.prototype, \"isList\", void 0);\n Relationship = __decorate([\n JsonObject('Relationship'),\n __metadata(\"design:paramtypes\", [Object])\n ], Relationship);\n return Relationship;\n}());\nexport { Relationship };\nvar relationshipMapSerializers = createStringMapSerializers(Relationship);\nvar RelationshipMapConverter = (function () {\n function RelationshipMapConverter() {\n this.serialize = relationshipMapSerializers.serialize;\n this.deserialize = relationshipMapSerializers.deserialize;\n }\n RelationshipMapConverter = __decorate([\n JsonConverter\n ], RelationshipMapConverter);\n return RelationshipMapConverter;\n}());\nexport { RelationshipMapConverter };\nvar Schema = (function () {\n function Schema(partial) {\n this.id = '';\n this.schema = {};\n this.metadata = {};\n this.relationships = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], Schema.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('schema', Any, true),\n __metadata(\"design:type\", Object)\n ], Schema.prototype, \"schema\", void 0);\n __decorate([\n JsonProperty('metadata', Any, true),\n __metadata(\"design:type\", Object)\n ], Schema.prototype, \"metadata\", void 0);\n __decorate([\n JsonProperty('relationships', RelationshipMapConverter, true),\n __metadata(\"design:type\", Object)\n ], Schema.prototype, \"relationships\", void 0);\n Schema = __decorate([\n JsonObject('Schema'),\n __metadata(\"design:paramtypes\", [Object])\n ], Schema);\n return Schema;\n}());\nexport { Schema };\nvar PartialSchema = (function () {\n function PartialSchema(partial) {\n this.id = '';\n this.metadata = {};\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], PartialSchema.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('metadata', Any, true),\n __metadata(\"design:type\", Object)\n ], PartialSchema.prototype, \"metadata\", void 0);\n PartialSchema = __decorate([\n JsonObject('PartialSchema'),\n __metadata(\"design:paramtypes\", [Object])\n ], PartialSchema);\n return PartialSchema;\n}());\nexport { PartialSchema };\n//# sourceMappingURL=Schema.js.map","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __read = (this && this.__read) || function (o, n) {\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\n if (!m) return o;\n var i = m.call(o), r, ar = [], e;\n try {\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\n }\n catch (error) { e = { error: error }; }\n finally {\n try {\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\n }\n finally { if (e) throw e.error; }\n }\n return ar;\n};\nimport { Relationship, RelationshipMapConverter } from './Schema';\nimport { Any, JsonConvert, JsonConverter, JsonObject, JsonProperty } from 'json2typescript';\nvar jsonConvert = new JsonConvert();\nexport var MongoDBRuleRelationship = Relationship;\nvar MongoDBRulePermissions = (function () {\n function MongoDBRulePermissions(partial) {\n this.write = undefined;\n this.read = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('write', Any, true),\n __metadata(\"design:type\", Object)\n ], MongoDBRulePermissions.prototype, \"write\", void 0);\n __decorate([\n JsonProperty('read', Any, true),\n __metadata(\"design:type\", Object)\n ], MongoDBRulePermissions.prototype, \"read\", void 0);\n MongoDBRulePermissions = __decorate([\n JsonObject('MongoDBRulePermissions'),\n __metadata(\"design:paramtypes\", [Object])\n ], MongoDBRulePermissions);\n return MongoDBRulePermissions;\n}());\nexport { MongoDBRulePermissions };\nvar MongoDBRuleField = (function () {\n function MongoDBRuleField(partial) {\n this.fields = undefined;\n this.read = undefined;\n this.write = undefined;\n this.additionalFields = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('fields', Any, true),\n __metadata(\"design:type\", Object)\n ], MongoDBRuleField.prototype, \"fields\", void 0);\n __decorate([\n JsonProperty('read', Any, true),\n __metadata(\"design:type\", Object)\n ], MongoDBRuleField.prototype, \"read\", void 0);\n __decorate([\n JsonProperty('write', Any, true),\n __metadata(\"design:type\", Object)\n ], MongoDBRuleField.prototype, \"write\", void 0);\n __decorate([\n JsonProperty('additional_fields', MongoDBRulePermissions, true),\n __metadata(\"design:type\", MongoDBRulePermissions)\n ], MongoDBRuleField.prototype, \"additionalFields\", void 0);\n MongoDBRuleField = __decorate([\n JsonObject('MongoDBRuleField'),\n __metadata(\"design:paramtypes\", [Object])\n ], MongoDBRuleField);\n return MongoDBRuleField;\n}());\nexport { MongoDBRuleField };\nvar serializeMongoDBRuleField = function (ruleField) {\n var ruleFieldData = jsonConvert.serializeObject(ruleField, MongoDBRuleField);\n if (ruleField.fields) {\n var fields = Object.entries(ruleField.fields).reduce(function (fieldMap, _a) {\n var _b;\n var _c = __read(_a, 2), key = _c[0], fieldData = _c[1];\n return (__assign(__assign({}, fieldMap), (_b = {}, _b[key] = serializeMongoDBRuleField(fieldData), _b)));\n }, {});\n ruleFieldData = __assign(__assign({}, ruleFieldData), { fields: fields });\n }\n return ruleFieldData;\n};\nvar deserializeMongoDBRuleField = function (data) {\n var ruleField = jsonConvert.deserializeObject(data, MongoDBRuleField);\n if ('fields' in data) {\n var fields = Object.entries(data.fields).reduce(function (fieldMap, _a) {\n var _b;\n var _c = __read(_a, 2), key = _c[0], fieldData = _c[1];\n return (__assign(__assign({}, fieldMap), (_b = {}, _b[key] = deserializeMongoDBRuleField(fieldData), _b)));\n }, {});\n ruleField = new MongoDBRuleField(__assign(__assign({}, ruleField), { fields: fields }));\n }\n return ruleField;\n};\nvar MongoDBRuleFieldMapConverter = (function () {\n function MongoDBRuleFieldMapConverter() {\n }\n MongoDBRuleFieldMapConverter.prototype.serialize = function (fieldMap) {\n return Object.entries(fieldMap).reduce(function (dataMap, _a) {\n var _b;\n var _c = __read(_a, 2), key = _c[0], fieldRule = _c[1];\n return (__assign(__assign({}, dataMap), (_b = {}, _b[key] = serializeMongoDBRuleField(fieldRule), _b)));\n }, {});\n };\n MongoDBRuleFieldMapConverter.prototype.deserialize = function (data) {\n return Object.entries(data).reduce(function (fieldMap, _a) {\n var _b;\n var _c = __read(_a, 2), key = _c[0], fieldData = _c[1];\n return (__assign(__assign({}, fieldMap), (_b = {}, _b[key] = deserializeMongoDBRuleField(fieldData), _b)));\n }, {});\n };\n MongoDBRuleFieldMapConverter = __decorate([\n JsonConverter\n ], MongoDBRuleFieldMapConverter);\n return MongoDBRuleFieldMapConverter;\n}());\nvar MongoDBRuleRole = (function () {\n function MongoDBRuleRole(partial) {\n this.name = '';\n this.applyWhen = {};\n this.fields = undefined;\n this.read = undefined;\n this.write = undefined;\n this.insert = undefined;\n this.delete = undefined;\n this.additionalFields = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], MongoDBRuleRole.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('apply_when'),\n __metadata(\"design:type\", Object)\n ], MongoDBRuleRole.prototype, \"applyWhen\", void 0);\n __decorate([\n JsonProperty('fields', MongoDBRuleFieldMapConverter, true),\n __metadata(\"design:type\", Object)\n ], MongoDBRuleRole.prototype, \"fields\", void 0);\n __decorate([\n JsonProperty('read', Any, true),\n __metadata(\"design:type\", Object)\n ], MongoDBRuleRole.prototype, \"read\", void 0);\n __decorate([\n JsonProperty('write', Any, true),\n __metadata(\"design:type\", Object)\n ], MongoDBRuleRole.prototype, \"write\", void 0);\n __decorate([\n JsonProperty('insert', Any, true),\n __metadata(\"design:type\", Object)\n ], MongoDBRuleRole.prototype, \"insert\", void 0);\n __decorate([\n JsonProperty('delete', Any, true),\n __metadata(\"design:type\", Object)\n ], MongoDBRuleRole.prototype, \"delete\", void 0);\n __decorate([\n JsonProperty('additional_fields', MongoDBRulePermissions, true),\n __metadata(\"design:type\", MongoDBRulePermissions)\n ], MongoDBRuleRole.prototype, \"additionalFields\", void 0);\n MongoDBRuleRole = __decorate([\n JsonObject('MongoDBRuleRole'),\n __metadata(\"design:paramtypes\", [Object])\n ], MongoDBRuleRole);\n return MongoDBRuleRole;\n}());\nexport { MongoDBRuleRole };\nvar MongoDBRuleFilter = (function () {\n function MongoDBRuleFilter(partial) {\n this.name = '';\n this.query = {};\n this.projection = undefined;\n this.applyWhen = {};\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], MongoDBRuleFilter.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('query'),\n __metadata(\"design:type\", Object)\n ], MongoDBRuleFilter.prototype, \"query\", void 0);\n __decorate([\n JsonProperty('projection', Any, true),\n __metadata(\"design:type\", Object)\n ], MongoDBRuleFilter.prototype, \"projection\", void 0);\n __decorate([\n JsonProperty('apply_when'),\n __metadata(\"design:type\", Object)\n ], MongoDBRuleFilter.prototype, \"applyWhen\", void 0);\n MongoDBRuleFilter = __decorate([\n JsonObject('MongoDBRuleFilter'),\n __metadata(\"design:paramtypes\", [Object])\n ], MongoDBRuleFilter);\n return MongoDBRuleFilter;\n}());\nexport { MongoDBRuleFilter };\nvar MongoDBRule = (function () {\n function MongoDBRule(partial) {\n this.id = undefined;\n this.database = '';\n this.collection = '';\n this.filter = undefined;\n this.roles = undefined;\n this.schema = undefined;\n this.relationships = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id', String, true),\n __metadata(\"design:type\", String)\n ], MongoDBRule.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('database'),\n __metadata(\"design:type\", Object)\n ], MongoDBRule.prototype, \"database\", void 0);\n __decorate([\n JsonProperty('collection'),\n __metadata(\"design:type\", Object)\n ], MongoDBRule.prototype, \"collection\", void 0);\n __decorate([\n JsonProperty('filter', MongoDBRuleFilter, true),\n __metadata(\"design:type\", MongoDBRuleFilter)\n ], MongoDBRule.prototype, \"filter\", void 0);\n __decorate([\n JsonProperty('roles', [MongoDBRuleRole], true),\n __metadata(\"design:type\", Array)\n ], MongoDBRule.prototype, \"roles\", void 0);\n __decorate([\n JsonProperty('schema', Any, true),\n __metadata(\"design:type\", Object)\n ], MongoDBRule.prototype, \"schema\", void 0);\n __decorate([\n JsonProperty('relationships', RelationshipMapConverter, true),\n __metadata(\"design:type\", Object)\n ], MongoDBRule.prototype, \"relationships\", void 0);\n MongoDBRule = __decorate([\n JsonObject('MongoDBRule'),\n __metadata(\"design:paramtypes\", [Object])\n ], MongoDBRule);\n return MongoDBRule;\n}());\nexport { MongoDBRule };\nvar PartialMongoDBRule = (function () {\n function PartialMongoDBRule(partial) {\n this.id = '';\n this.database = '';\n this.collection = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], PartialMongoDBRule.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('database'),\n __metadata(\"design:type\", Object)\n ], PartialMongoDBRule.prototype, \"database\", void 0);\n __decorate([\n JsonProperty('collection'),\n __metadata(\"design:type\", Object)\n ], PartialMongoDBRule.prototype, \"collection\", void 0);\n PartialMongoDBRule = __decorate([\n JsonObject('PartialMongoDBRule'),\n __metadata(\"design:paramtypes\", [Object])\n ], PartialMongoDBRule);\n return PartialMongoDBRule;\n}());\nexport { PartialMongoDBRule };\nvar BuiltinRule = (function () {\n function BuiltinRule(partial) {\n this.id = undefined;\n this.name = '';\n this.actions = [];\n this.when = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id', String, true),\n __metadata(\"design:type\", String)\n ], BuiltinRule.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], BuiltinRule.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('actions', [String]),\n __metadata(\"design:type\", Array)\n ], BuiltinRule.prototype, \"actions\", void 0);\n __decorate([\n JsonProperty('when', Any, true),\n __metadata(\"design:type\", Object)\n ], BuiltinRule.prototype, \"when\", void 0);\n BuiltinRule = __decorate([\n JsonObject('BuiltinRule'),\n __metadata(\"design:paramtypes\", [Object])\n ], BuiltinRule);\n return BuiltinRule;\n}());\nexport { BuiltinRule };\nvar PartialBuiltinRule = (function () {\n function PartialBuiltinRule(partial) {\n this.id = '';\n this.name = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], PartialBuiltinRule.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], PartialBuiltinRule.prototype, \"name\", void 0);\n PartialBuiltinRule = __decorate([\n JsonObject('PartialBuiltinRule'),\n __metadata(\"design:paramtypes\", [Object])\n ], PartialBuiltinRule);\n return PartialBuiltinRule;\n}());\nexport { PartialBuiltinRule };\nexport var deserializeRule = function (data) {\n if ('database' in data) {\n return jsonConvert.deserializeObject(data, MongoDBRule);\n }\n return jsonConvert.deserializeObject(data, BuiltinRule);\n};\nexport var deserializePartialRule = function (data) {\n if ('database' in data) {\n return jsonConvert.deserializeObject(data, PartialMongoDBRule);\n }\n return jsonConvert.deserializeObject(data, PartialBuiltinRule);\n};\nvar RulesConverter = (function () {\n function RulesConverter() {\n }\n RulesConverter.prototype.serialize = function (rules) {\n return jsonConvert.serializeArray(rules);\n };\n RulesConverter.prototype.deserialize = function (rulesData) {\n if (!(rulesData instanceof Array)) {\n throw new Error('expected rules to be an array');\n }\n return Object.values(rulesData).map(deserializeRule);\n };\n RulesConverter = __decorate([\n JsonConverter\n ], RulesConverter);\n return RulesConverter;\n}());\nexport { RulesConverter };\n//# sourceMappingURL=Rule.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { IncomingWebhook } from './IncomingWebhook';\nimport { RulesConverter } from './Rule';\nimport { Any, JsonObject, JsonProperty } from 'json2typescript';\nvar ServiceDesc = (function () {\n function ServiceDesc(partial) {\n this.id = undefined;\n this.name = '';\n this.type = '';\n this.config = undefined;\n this.secretConfig = undefined;\n this.rules = undefined;\n this.incomingWebhooks = undefined;\n this.version = undefined;\n this.lastModified = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id', String, true),\n __metadata(\"design:type\", String)\n ], ServiceDesc.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], ServiceDesc.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('type'),\n __metadata(\"design:type\", Object)\n ], ServiceDesc.prototype, \"type\", void 0);\n __decorate([\n JsonProperty('config', Any, true),\n __metadata(\"design:type\", Object)\n ], ServiceDesc.prototype, \"config\", void 0);\n __decorate([\n JsonProperty('secret_config', Any, true),\n __metadata(\"design:type\", Object)\n ], ServiceDesc.prototype, \"secretConfig\", void 0);\n __decorate([\n JsonProperty('rules', RulesConverter, true),\n __metadata(\"design:type\", Array)\n ], ServiceDesc.prototype, \"rules\", void 0);\n __decorate([\n JsonProperty('incoming_webhooks', [IncomingWebhook], true),\n __metadata(\"design:type\", Array)\n ], ServiceDesc.prototype, \"incomingWebhooks\", void 0);\n __decorate([\n JsonProperty('version', Number, true),\n __metadata(\"design:type\", Number)\n ], ServiceDesc.prototype, \"version\", void 0);\n __decorate([\n JsonProperty('last_modified', Number, true),\n __metadata(\"design:type\", Number)\n ], ServiceDesc.prototype, \"lastModified\", void 0);\n ServiceDesc = __decorate([\n JsonObject('ServiceDesc'),\n __metadata(\"design:paramtypes\", [Object])\n ], ServiceDesc);\n return ServiceDesc;\n}());\nexport { ServiceDesc };\nvar PartialServiceDesc = (function () {\n function PartialServiceDesc(partial) {\n this.id = '';\n this.name = '';\n this.type = '';\n this.version = undefined;\n this.lastModified = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], PartialServiceDesc.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], PartialServiceDesc.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('type'),\n __metadata(\"design:type\", Object)\n ], PartialServiceDesc.prototype, \"type\", void 0);\n __decorate([\n JsonProperty('version', Number, true),\n __metadata(\"design:type\", Number)\n ], PartialServiceDesc.prototype, \"version\", void 0);\n __decorate([\n JsonProperty('last_modified', Number, true),\n __metadata(\"design:type\", Number)\n ], PartialServiceDesc.prototype, \"lastModified\", void 0);\n PartialServiceDesc = __decorate([\n JsonObject('PartialServiceDesc'),\n __metadata(\"design:paramtypes\", [Object])\n ], PartialServiceDesc);\n return PartialServiceDesc;\n}());\nexport { PartialServiceDesc };\nvar ServiceDescConfig = (function () {\n function ServiceDescConfig(partial) {\n this.config = undefined;\n this.secretConfig = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('config', Any, true),\n __metadata(\"design:type\", Object)\n ], ServiceDescConfig.prototype, \"config\", void 0);\n __decorate([\n JsonProperty('secret_config', Any, true),\n __metadata(\"design:type\", Object)\n ], ServiceDescConfig.prototype, \"secretConfig\", void 0);\n ServiceDescConfig = __decorate([\n JsonObject('ServiceDescConfig'),\n __metadata(\"design:paramtypes\", [Object])\n ], ServiceDescConfig);\n return ServiceDescConfig;\n}());\nexport { ServiceDescConfig };\n//# sourceMappingURL=Service.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { ServiceDesc } from './Service';\nimport { JsonObject, JsonProperty } from 'json2typescript';\nexport var Location;\n(function (Location) {\n Location[\"Frankfurt\"] = \"DE-FF\";\n Location[\"Ireland\"] = \"IE\";\n Location[\"Mumbai\"] = \"IN-MB\";\n Location[\"Oregon\"] = \"US-OR\";\n Location[\"Singapore\"] = \"SG\";\n Location[\"Sydney\"] = \"AU\";\n Location[\"Virginia\"] = \"US-VA\";\n})(Location || (Location = {}));\nexport var DeploymentModel;\n(function (DeploymentModel) {\n DeploymentModel[\"Global\"] = \"GLOBAL\";\n DeploymentModel[\"Local\"] = \"LOCAL\";\n})(DeploymentModel || (DeploymentModel = {}));\nexport var AppEnvironment;\n(function (AppEnvironment) {\n AppEnvironment[\"None\"] = \"\";\n AppEnvironment[\"Development\"] = \"development\";\n AppEnvironment[\"Testing\"] = \"testing\";\n AppEnvironment[\"Staging\"] = \"staging\";\n AppEnvironment[\"QA\"] = \"qa\";\n AppEnvironment[\"Production\"] = \"production\";\n})(AppEnvironment || (AppEnvironment = {}));\nvar PartialApp = (function () {\n function PartialApp(partial) {\n this.id = '';\n this.clientAppId = '';\n this.name = '';\n this.product = '';\n this.location = Location.Virginia;\n this.deploymentModel = DeploymentModel.Global;\n this.domainId = '';\n this.groupId = '';\n this.lastUsed = 0;\n this.lastModified = 0;\n this.environment = AppEnvironment.None;\n this.templateId = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], PartialApp.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('client_app_id'),\n __metadata(\"design:type\", Object)\n ], PartialApp.prototype, \"clientAppId\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], PartialApp.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('product'),\n __metadata(\"design:type\", Object)\n ], PartialApp.prototype, \"product\", void 0);\n __decorate([\n JsonProperty('location'),\n __metadata(\"design:type\", String)\n ], PartialApp.prototype, \"location\", void 0);\n __decorate([\n JsonProperty('deployment_model'),\n __metadata(\"design:type\", String)\n ], PartialApp.prototype, \"deploymentModel\", void 0);\n __decorate([\n JsonProperty('domain_id'),\n __metadata(\"design:type\", Object)\n ], PartialApp.prototype, \"domainId\", void 0);\n __decorate([\n JsonProperty('group_id'),\n __metadata(\"design:type\", Object)\n ], PartialApp.prototype, \"groupId\", void 0);\n __decorate([\n JsonProperty('last_used'),\n __metadata(\"design:type\", Object)\n ], PartialApp.prototype, \"lastUsed\", void 0);\n __decorate([\n JsonProperty('last_modified'),\n __metadata(\"design:type\", Object)\n ], PartialApp.prototype, \"lastModified\", void 0);\n __decorate([\n JsonProperty('environment', String, true),\n __metadata(\"design:type\", Object)\n ], PartialApp.prototype, \"environment\", void 0);\n __decorate([\n JsonProperty('template_id', String, true),\n __metadata(\"design:type\", Object)\n ], PartialApp.prototype, \"templateId\", void 0);\n PartialApp = __decorate([\n JsonObject('PartialApp'),\n __metadata(\"design:paramtypes\", [Object])\n ], PartialApp);\n return PartialApp;\n}());\nexport { PartialApp };\nvar CreateAppRequest = (function () {\n function CreateAppRequest(partial) {\n this.name = '';\n this.location = undefined;\n this.deploymentModel = undefined;\n this.environment = undefined;\n this.templateId = undefined;\n this.dataSource = undefined;\n this.createCluster = undefined;\n this.createClusterRegion = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], CreateAppRequest.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('location', String, true),\n __metadata(\"design:type\", String)\n ], CreateAppRequest.prototype, \"location\", void 0);\n __decorate([\n JsonProperty('deployment_model', String, true),\n __metadata(\"design:type\", String)\n ], CreateAppRequest.prototype, \"deploymentModel\", void 0);\n __decorate([\n JsonProperty('environment', String, true),\n __metadata(\"design:type\", String)\n ], CreateAppRequest.prototype, \"environment\", void 0);\n __decorate([\n JsonProperty('template_id', String, true),\n __metadata(\"design:type\", String)\n ], CreateAppRequest.prototype, \"templateId\", void 0);\n __decorate([\n JsonProperty('data_source', ServiceDesc, true),\n __metadata(\"design:type\", ServiceDesc)\n ], CreateAppRequest.prototype, \"dataSource\", void 0);\n __decorate([\n JsonProperty('create_cluster', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], CreateAppRequest.prototype, \"createCluster\", void 0);\n __decorate([\n JsonProperty('create_cluster_region', String, true),\n __metadata(\"design:type\", String)\n ], CreateAppRequest.prototype, \"createClusterRegion\", void 0);\n CreateAppRequest = __decorate([\n JsonObject('CreateAppRequest'),\n __metadata(\"design:paramtypes\", [Object])\n ], CreateAppRequest);\n return CreateAppRequest;\n}());\nexport { CreateAppRequest };\nvar UpdateEnvironmentRequest = (function () {\n function UpdateEnvironmentRequest(partial) {\n this.environment = AppEnvironment.None;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('environment'),\n __metadata(\"design:type\", Object)\n ], UpdateEnvironmentRequest.prototype, \"environment\", void 0);\n UpdateEnvironmentRequest = __decorate([\n JsonObject('UpdateEnvironmentRequest'),\n __metadata(\"design:paramtypes\", [Object])\n ], UpdateEnvironmentRequest);\n return UpdateEnvironmentRequest;\n}());\nexport { UpdateEnvironmentRequest };\n//# sourceMappingURL=App.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonObject, JsonProperty } from 'json2typescript';\nvar CreateAtlasAPIKeyRequest = (function () {\n function CreateAtlasAPIKeyRequest(partial) {\n this.desc = '';\n this.roles = [];\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('desc'),\n __metadata(\"design:type\", Object)\n ], CreateAtlasAPIKeyRequest.prototype, \"desc\", void 0);\n __decorate([\n JsonProperty('roles'),\n __metadata(\"design:type\", Array)\n ], CreateAtlasAPIKeyRequest.prototype, \"roles\", void 0);\n CreateAtlasAPIKeyRequest = __decorate([\n JsonObject('CreateAtlasAPIKeyRequest'),\n __metadata(\"design:paramtypes\", [Object])\n ], CreateAtlasAPIKeyRequest);\n return CreateAtlasAPIKeyRequest;\n}());\nexport { CreateAtlasAPIKeyRequest };\nvar CreateAtlasAPIKeyResponse = (function () {\n function CreateAtlasAPIKeyResponse(partial) {\n this.desc = '';\n this.publicKey = '';\n this.privateKey = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('desc'),\n __metadata(\"design:type\", Object)\n ], CreateAtlasAPIKeyResponse.prototype, \"desc\", void 0);\n __decorate([\n JsonProperty('public_key'),\n __metadata(\"design:type\", Object)\n ], CreateAtlasAPIKeyResponse.prototype, \"publicKey\", void 0);\n __decorate([\n JsonProperty('private_key'),\n __metadata(\"design:type\", Object)\n ], CreateAtlasAPIKeyResponse.prototype, \"privateKey\", void 0);\n CreateAtlasAPIKeyResponse = __decorate([\n JsonObject('CreateAtlasAPIKeyResponse'),\n __metadata(\"design:paramtypes\", [Object])\n ], CreateAtlasAPIKeyResponse);\n return CreateAtlasAPIKeyResponse;\n}());\nexport { CreateAtlasAPIKeyResponse };\n//# sourceMappingURL=AtlasAPIKey.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { Any, JsonObject, JsonProperty } from 'json2typescript';\nexport var AuthProviderType;\n(function (AuthProviderType) {\n AuthProviderType[\"Userpass\"] = \"local-userpass\";\n AuthProviderType[\"Anonymous\"] = \"anon-user\";\n AuthProviderType[\"MongoDBCloud\"] = \"mongodb-cloud\";\n AuthProviderType[\"APIKey\"] = \"api-key\";\n AuthProviderType[\"Google\"] = \"oauth2-google\";\n AuthProviderType[\"Facebook\"] = \"oauth2-facebook\";\n AuthProviderType[\"Custom\"] = \"custom-token\";\n AuthProviderType[\"CustomFunction\"] = \"custom-function\";\n AuthProviderType[\"Apple\"] = \"oauth2-apple\";\n})(AuthProviderType || (AuthProviderType = {}));\nvar MetadataField = (function () {\n function MetadataField(partial) {\n this.required = false;\n this.name = '';\n this.fieldName = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('required'),\n __metadata(\"design:type\", Object)\n ], MetadataField.prototype, \"required\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], MetadataField.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('field_name', String, true),\n __metadata(\"design:type\", String)\n ], MetadataField.prototype, \"fieldName\", void 0);\n MetadataField = __decorate([\n JsonObject('MetadataField'),\n __metadata(\"design:paramtypes\", [Object])\n ], MetadataField);\n return MetadataField;\n}());\nexport { MetadataField };\nvar AuthProviderConfig = (function () {\n function AuthProviderConfig(partial) {\n this.id = undefined;\n this.name = AuthProviderType.Userpass;\n this.type = AuthProviderType.Userpass;\n this.metadataFields = undefined;\n this.domainRestrictions = undefined;\n this.redirectUris = undefined;\n this.config = undefined;\n this.secretConfig = undefined;\n this.disabled = false;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id', String, true),\n __metadata(\"design:type\", String)\n ], AuthProviderConfig.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", String)\n ], AuthProviderConfig.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('type'),\n __metadata(\"design:type\", String)\n ], AuthProviderConfig.prototype, \"type\", void 0);\n __decorate([\n JsonProperty('metadata_fields', [MetadataField], true),\n __metadata(\"design:type\", Array)\n ], AuthProviderConfig.prototype, \"metadataFields\", void 0);\n __decorate([\n JsonProperty('domain_restrictions', [String], true),\n __metadata(\"design:type\", Array)\n ], AuthProviderConfig.prototype, \"domainRestrictions\", void 0);\n __decorate([\n JsonProperty('redirect_uris', [String], true),\n __metadata(\"design:type\", Array)\n ], AuthProviderConfig.prototype, \"redirectUris\", void 0);\n __decorate([\n JsonProperty('config', Any, true),\n __metadata(\"design:type\", Object)\n ], AuthProviderConfig.prototype, \"config\", void 0);\n __decorate([\n JsonProperty('secret_config', Any, true),\n __metadata(\"design:type\", Object)\n ], AuthProviderConfig.prototype, \"secretConfig\", void 0);\n __decorate([\n JsonProperty('disabled'),\n __metadata(\"design:type\", Object)\n ], AuthProviderConfig.prototype, \"disabled\", void 0);\n AuthProviderConfig = __decorate([\n JsonObject('AuthProviderConfig'),\n __metadata(\"design:paramtypes\", [Object])\n ], AuthProviderConfig);\n return AuthProviderConfig;\n}());\nexport { AuthProviderConfig };\nvar PartialAuthProviderConfig = (function () {\n function PartialAuthProviderConfig(partial) {\n this.id = '';\n this.name = AuthProviderType.Userpass;\n this.type = AuthProviderType.Userpass;\n this.disabled = false;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], PartialAuthProviderConfig.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", String)\n ], PartialAuthProviderConfig.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('type'),\n __metadata(\"design:type\", String)\n ], PartialAuthProviderConfig.prototype, \"type\", void 0);\n __decorate([\n JsonProperty('disabled'),\n __metadata(\"design:type\", Object)\n ], PartialAuthProviderConfig.prototype, \"disabled\", void 0);\n PartialAuthProviderConfig = __decorate([\n JsonObject('PartialAuthProviderConfig'),\n __metadata(\"design:paramtypes\", [Object])\n ], PartialAuthProviderConfig);\n return PartialAuthProviderConfig;\n}());\nexport { PartialAuthProviderConfig };\n//# sourceMappingURL=AuthProvider.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonObject, JsonProperty } from 'json2typescript';\nvar Repository = (function () {\n function Repository(partial) {\n this.id = '';\n this.fullName = '';\n this.url = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('id'),\n __metadata(\"design:type\", Object)\n ], Repository.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('full_name'),\n __metadata(\"design:type\", Object)\n ], Repository.prototype, \"fullName\", void 0);\n __decorate([\n JsonProperty('url'),\n __metadata(\"design:type\", Object)\n ], Repository.prototype, \"url\", void 0);\n Repository = __decorate([\n JsonObject('Repository'),\n __metadata(\"design:paramtypes\", [Object])\n ], Repository);\n return Repository;\n}());\nexport { Repository };\nvar AutomaticDeploymentConfig = (function () {\n function AutomaticDeploymentConfig(partial) {\n this.enabled = false;\n this.providerType = undefined;\n this.installationIds = [];\n this.repository = undefined;\n this.branch = undefined;\n this.directory = undefined;\n this.lastModified = 0;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('enabled'),\n __metadata(\"design:type\", Object)\n ], AutomaticDeploymentConfig.prototype, \"enabled\", void 0);\n __decorate([\n JsonProperty('provider', String, true),\n __metadata(\"design:type\", String)\n ], AutomaticDeploymentConfig.prototype, \"providerType\", void 0);\n __decorate([\n JsonProperty('installation_ids'),\n __metadata(\"design:type\", Array)\n ], AutomaticDeploymentConfig.prototype, \"installationIds\", void 0);\n __decorate([\n JsonProperty('repository', Repository, true),\n __metadata(\"design:type\", Repository)\n ], AutomaticDeploymentConfig.prototype, \"repository\", void 0);\n __decorate([\n JsonProperty('branch', String, true),\n __metadata(\"design:type\", String)\n ], AutomaticDeploymentConfig.prototype, \"branch\", void 0);\n __decorate([\n JsonProperty('directory', String, true),\n __metadata(\"design:type\", String)\n ], AutomaticDeploymentConfig.prototype, \"directory\", void 0);\n __decorate([\n JsonProperty('last_modified'),\n __metadata(\"design:type\", Object)\n ], AutomaticDeploymentConfig.prototype, \"lastModified\", void 0);\n AutomaticDeploymentConfig = __decorate([\n JsonObject('AutomaticDeploymentConfig'),\n __metadata(\"design:paramtypes\", [Object])\n ], AutomaticDeploymentConfig);\n return AutomaticDeploymentConfig;\n}());\nexport { AutomaticDeploymentConfig };\nvar PartialCodeDeploy = (function () {\n function PartialCodeDeploy(partial) {\n this.uiDraftsDisabled = false;\n this.automaticDeploymentConfig = new AutomaticDeploymentConfig();\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('ui_drafts_disabled'),\n __metadata(\"design:type\", Object)\n ], PartialCodeDeploy.prototype, \"uiDraftsDisabled\", void 0);\n __decorate([\n JsonProperty('automatic_deployment'),\n __metadata(\"design:type\", AutomaticDeploymentConfig)\n ], PartialCodeDeploy.prototype, \"automaticDeploymentConfig\", void 0);\n PartialCodeDeploy = __decorate([\n JsonObject('PartialCodeDeploy'),\n __metadata(\"design:paramtypes\", [Object])\n ], PartialCodeDeploy);\n return PartialCodeDeploy;\n}());\nexport { PartialCodeDeploy };\nvar Installation = (function () {\n function Installation(partial) {\n this.id = '';\n this.providerType = '';\n this.installationId = '';\n this.ownerId = '';\n this.authenticatedRepositories = [];\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], Installation.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('provider'),\n __metadata(\"design:type\", Object)\n ], Installation.prototype, \"providerType\", void 0);\n __decorate([\n JsonProperty('installation_id'),\n __metadata(\"design:type\", Object)\n ], Installation.prototype, \"installationId\", void 0);\n __decorate([\n JsonProperty('owner_id'),\n __metadata(\"design:type\", Object)\n ], Installation.prototype, \"ownerId\", void 0);\n __decorate([\n JsonProperty('authenticated_repositories', [Repository]),\n __metadata(\"design:type\", Array)\n ], Installation.prototype, \"authenticatedRepositories\", void 0);\n Installation = __decorate([\n JsonObject('Installation'),\n __metadata(\"design:paramtypes\", [Object])\n ], Installation);\n return Installation;\n}());\nexport { Installation };\nvar AutomaticDeploymentConfigUpdateRequest = (function () {\n function AutomaticDeploymentConfigUpdateRequest(partial) {\n this.enabled = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('enabled', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], AutomaticDeploymentConfigUpdateRequest.prototype, \"enabled\", void 0);\n AutomaticDeploymentConfigUpdateRequest = __decorate([\n JsonObject('AutomaticDeploymentConfigUpdateRequest'),\n __metadata(\"design:paramtypes\", [Object])\n ], AutomaticDeploymentConfigUpdateRequest);\n return AutomaticDeploymentConfigUpdateRequest;\n}());\nexport { AutomaticDeploymentConfigUpdateRequest };\nvar CodeDeployUpdateRequest = (function () {\n function CodeDeployUpdateRequest(partial) {\n this.uiDraftsDisabled = undefined;\n this.automaticDeploymentConfig = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('ui_drafts_disabled', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], CodeDeployUpdateRequest.prototype, \"uiDraftsDisabled\", void 0);\n __decorate([\n JsonProperty('automatic_deployment', AutomaticDeploymentConfigUpdateRequest, true),\n __metadata(\"design:type\", AutomaticDeploymentConfigUpdateRequest)\n ], CodeDeployUpdateRequest.prototype, \"automaticDeploymentConfig\", void 0);\n CodeDeployUpdateRequest = __decorate([\n JsonObject('CodeDeployUpdateRequest'),\n __metadata(\"design:paramtypes\", [Object])\n ], CodeDeployUpdateRequest);\n return CodeDeployUpdateRequest;\n}());\nexport { CodeDeployUpdateRequest };\nvar GitHubBranch = (function () {\n function GitHubBranch(partial) {\n this.name = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], GitHubBranch.prototype, \"name\", void 0);\n GitHubBranch = __decorate([\n JsonObject('GitHubBranch'),\n __metadata(\"design:paramtypes\", [Object])\n ], GitHubBranch);\n return GitHubBranch;\n}());\nexport { GitHubBranch };\nvar GitHubDirectory = (function () {\n function GitHubDirectory(partial) {\n this.name = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], GitHubDirectory.prototype, \"name\", void 0);\n GitHubDirectory = __decorate([\n JsonObject('GitHubDirectory'),\n __metadata(\"design:paramtypes\", [Object])\n ], GitHubDirectory);\n return GitHubDirectory;\n}());\nexport { GitHubDirectory };\nvar GithubGroupAuthenticationResponse = (function () {\n function GithubGroupAuthenticationResponse(partial) {\n this.requestId = '';\n this.githubRedirectUrl = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('request_id'),\n __metadata(\"design:type\", Object)\n ], GithubGroupAuthenticationResponse.prototype, \"requestId\", void 0);\n __decorate([\n JsonProperty('github_redirect_url'),\n __metadata(\"design:type\", Object)\n ], GithubGroupAuthenticationResponse.prototype, \"githubRedirectUrl\", void 0);\n GithubGroupAuthenticationResponse = __decorate([\n JsonObject('GithubGroupAuthenticationResponse'),\n __metadata(\"design:paramtypes\", [Object])\n ], GithubGroupAuthenticationResponse);\n return GithubGroupAuthenticationResponse;\n}());\nexport { GithubGroupAuthenticationResponse };\nvar GithubPushAppRequest = (function () {\n function GithubPushAppRequest(partial) {\n this.draftId = undefined;\n this.deploymentName = undefined;\n this.force = undefined;\n this.frontendDirectory = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('draftId', String, true),\n __metadata(\"design:type\", String)\n ], GithubPushAppRequest.prototype, \"draftId\", void 0);\n __decorate([\n JsonProperty('deploymentName', String, true),\n __metadata(\"design:type\", String)\n ], GithubPushAppRequest.prototype, \"deploymentName\", void 0);\n __decorate([\n JsonProperty('force', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], GithubPushAppRequest.prototype, \"force\", void 0);\n __decorate([\n JsonProperty('frontendDirectory', String, true),\n __metadata(\"design:type\", String)\n ], GithubPushAppRequest.prototype, \"frontendDirectory\", void 0);\n GithubPushAppRequest = __decorate([\n JsonObject('GithubPushAppRequest'),\n __metadata(\"design:paramtypes\", [Object])\n ], GithubPushAppRequest);\n return GithubPushAppRequest;\n}());\nexport { GithubPushAppRequest };\nvar EnableTTLInstallationAutoDeployRequest = (function () {\n function EnableTTLInstallationAutoDeployRequest(partial) {\n this.githubAuthRequestId = '';\n this.repositoryId = '';\n this.branch = '';\n this.directory = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('github_auth_request_id'),\n __metadata(\"design:type\", Object)\n ], EnableTTLInstallationAutoDeployRequest.prototype, \"githubAuthRequestId\", void 0);\n __decorate([\n JsonProperty('repository_id'),\n __metadata(\"design:type\", Object)\n ], EnableTTLInstallationAutoDeployRequest.prototype, \"repositoryId\", void 0);\n __decorate([\n JsonProperty('branch'),\n __metadata(\"design:type\", Object)\n ], EnableTTLInstallationAutoDeployRequest.prototype, \"branch\", void 0);\n __decorate([\n JsonProperty('directory'),\n __metadata(\"design:type\", Object)\n ], EnableTTLInstallationAutoDeployRequest.prototype, \"directory\", void 0);\n EnableTTLInstallationAutoDeployRequest = __decorate([\n JsonObject('EnableTTLInstallationAutoDeployRequest'),\n __metadata(\"design:paramtypes\", [Object])\n ], EnableTTLInstallationAutoDeployRequest);\n return EnableTTLInstallationAutoDeployRequest;\n}());\nexport { EnableTTLInstallationAutoDeployRequest };\n//# sourceMappingURL=CodeDeploy.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonObject, JsonProperty } from 'json2typescript';\nvar CustomUserDataConfig = (function () {\n function CustomUserDataConfig(partial) {\n this.mongoServiceId = '';\n this.databaseName = '';\n this.collectionName = '';\n this.userIdField = '';\n this.enabled = false;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('mongo_service_id'),\n __metadata(\"design:type\", Object)\n ], CustomUserDataConfig.prototype, \"mongoServiceId\", void 0);\n __decorate([\n JsonProperty('database_name'),\n __metadata(\"design:type\", Object)\n ], CustomUserDataConfig.prototype, \"databaseName\", void 0);\n __decorate([\n JsonProperty('collection_name'),\n __metadata(\"design:type\", Object)\n ], CustomUserDataConfig.prototype, \"collectionName\", void 0);\n __decorate([\n JsonProperty('user_id_field'),\n __metadata(\"design:type\", Object)\n ], CustomUserDataConfig.prototype, \"userIdField\", void 0);\n __decorate([\n JsonProperty('enabled'),\n __metadata(\"design:type\", Object)\n ], CustomUserDataConfig.prototype, \"enabled\", void 0);\n CustomUserDataConfig = __decorate([\n JsonObject('CustomUserDataConfig'),\n __metadata(\"design:paramtypes\", [Object])\n ], CustomUserDataConfig);\n return CustomUserDataConfig;\n}());\nexport { CustomUserDataConfig };\n//# sourceMappingURL=CustomUserData.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonObject, JsonProperty } from 'json2typescript';\nvar DebugExecuteFunctionRequest = (function () {\n function DebugExecuteFunctionRequest(partial) {\n this.name = '';\n this.arguments = [];\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], DebugExecuteFunctionRequest.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('arguments'),\n __metadata(\"design:type\", Array)\n ], DebugExecuteFunctionRequest.prototype, \"arguments\", void 0);\n DebugExecuteFunctionRequest = __decorate([\n JsonObject('DebugExecuteFunctionRequest'),\n __metadata(\"design:paramtypes\", [Object])\n ], DebugExecuteFunctionRequest);\n return DebugExecuteFunctionRequest;\n}());\nexport { DebugExecuteFunctionRequest };\nvar DebugExecuteFunctionSourceRequest = (function () {\n function DebugExecuteFunctionSourceRequest(partial) {\n this.source = '';\n this.evalSource = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('source'),\n __metadata(\"design:type\", Object)\n ], DebugExecuteFunctionSourceRequest.prototype, \"source\", void 0);\n __decorate([\n JsonProperty('eval_source'),\n __metadata(\"design:type\", Object)\n ], DebugExecuteFunctionSourceRequest.prototype, \"evalSource\", void 0);\n DebugExecuteFunctionSourceRequest = __decorate([\n JsonObject('DebugExecuteFunctionSourceRequest'),\n __metadata(\"design:paramtypes\", [Object])\n ], DebugExecuteFunctionSourceRequest);\n return DebugExecuteFunctionSourceRequest;\n}());\nexport { DebugExecuteFunctionSourceRequest };\nvar DebugExecuteFunctionStats = (function () {\n function DebugExecuteFunctionStats(partial) {\n this.executionTime = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('execution_time', String),\n __metadata(\"design:type\", Object)\n ], DebugExecuteFunctionStats.prototype, \"executionTime\", void 0);\n DebugExecuteFunctionStats = __decorate([\n JsonObject('DebugExecuteFunctionStats'),\n __metadata(\"design:paramtypes\", [Object])\n ], DebugExecuteFunctionStats);\n return DebugExecuteFunctionStats;\n}());\nexport { DebugExecuteFunctionStats };\nvar DebugExecuteFunctionResponse = (function () {\n function DebugExecuteFunctionResponse(partial) {\n this.result = null;\n this.logs = [];\n this.errorLogs = [];\n this.stats = new DebugExecuteFunctionStats();\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('result'),\n __metadata(\"design:type\", Object)\n ], DebugExecuteFunctionResponse.prototype, \"result\", void 0);\n __decorate([\n JsonProperty('logs', [String], true),\n __metadata(\"design:type\", Array)\n ], DebugExecuteFunctionResponse.prototype, \"logs\", void 0);\n __decorate([\n JsonProperty('error_logs', [String], true),\n __metadata(\"design:type\", Array)\n ], DebugExecuteFunctionResponse.prototype, \"errorLogs\", void 0);\n __decorate([\n JsonProperty('stats', DebugExecuteFunctionStats),\n __metadata(\"design:type\", DebugExecuteFunctionStats)\n ], DebugExecuteFunctionResponse.prototype, \"stats\", void 0);\n DebugExecuteFunctionResponse = __decorate([\n JsonObject('DebugExecuteFunctionResponse'),\n __metadata(\"design:paramtypes\", [Object])\n ], DebugExecuteFunctionResponse);\n return DebugExecuteFunctionResponse;\n}());\nexport { DebugExecuteFunctionResponse };\n//# sourceMappingURL=DebugExecuteFunction.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonObject, JsonProperty } from 'json2typescript';\nvar InstalledDependency = (function () {\n function InstalledDependency(partial) {\n this.name = '';\n this.version = '';\n this.lastModified = 0;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], InstalledDependency.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('version'),\n __metadata(\"design:type\", Object)\n ], InstalledDependency.prototype, \"version\", void 0);\n __decorate([\n JsonProperty('last_modified'),\n __metadata(\"design:type\", Object)\n ], InstalledDependency.prototype, \"lastModified\", void 0);\n InstalledDependency = __decorate([\n JsonObject('InstalledDependency'),\n __metadata(\"design:paramtypes\", [Object])\n ], InstalledDependency);\n return InstalledDependency;\n}());\nexport { InstalledDependency };\nvar AppDependencies = (function () {\n function AppDependencies(partial) {\n this.id = '';\n this.location = '';\n this.domainIdHash = 0;\n this.userId = '';\n this.lastModified = 0;\n this.dependenciesList = [];\n this.installedViaPackageManager = false;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], AppDependencies.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('location'),\n __metadata(\"design:type\", Object)\n ], AppDependencies.prototype, \"location\", void 0);\n __decorate([\n JsonProperty('domain_id_hash'),\n __metadata(\"design:type\", Object)\n ], AppDependencies.prototype, \"domainIdHash\", void 0);\n __decorate([\n JsonProperty('user_id'),\n __metadata(\"design:type\", Object)\n ], AppDependencies.prototype, \"userId\", void 0);\n __decorate([\n JsonProperty('last_modified'),\n __metadata(\"design:type\", Object)\n ], AppDependencies.prototype, \"lastModified\", void 0);\n __decorate([\n JsonProperty('dependencies_list', [InstalledDependency]),\n __metadata(\"design:type\", Array)\n ], AppDependencies.prototype, \"dependenciesList\", void 0);\n __decorate([\n JsonProperty('installed_via_package_manager'),\n __metadata(\"design:type\", Object)\n ], AppDependencies.prototype, \"installedViaPackageManager\", void 0);\n AppDependencies = __decorate([\n JsonObject('AppDependencies'),\n __metadata(\"design:paramtypes\", [Object])\n ], AppDependencies);\n return AppDependencies;\n}());\nexport { AppDependencies };\nexport var InstallationStatus;\n(function (InstallationStatus) {\n InstallationStatus[\"Created\"] = \"created\";\n InstallationStatus[\"Successful\"] = \"successful\";\n InstallationStatus[\"Failed\"] = \"failed\";\n})(InstallationStatus || (InstallationStatus = {}));\nvar DependencyInstallation = (function () {\n function DependencyInstallation(partial) {\n this.id = '';\n this.appId = '';\n this.userId = '';\n this.updatedAt = 0;\n this.status = InstallationStatus.Created;\n this.statusMessage = '';\n this.location = '';\n this.domainIdHash = 0;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], DependencyInstallation.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('app_id'),\n __metadata(\"design:type\", Object)\n ], DependencyInstallation.prototype, \"appId\", void 0);\n __decorate([\n JsonProperty('user_id'),\n __metadata(\"design:type\", Object)\n ], DependencyInstallation.prototype, \"userId\", void 0);\n __decorate([\n JsonProperty('updated_at'),\n __metadata(\"design:type\", Object)\n ], DependencyInstallation.prototype, \"updatedAt\", void 0);\n __decorate([\n JsonProperty('status'),\n __metadata(\"design:type\", String)\n ], DependencyInstallation.prototype, \"status\", void 0);\n __decorate([\n JsonProperty('status_message'),\n __metadata(\"design:type\", Object)\n ], DependencyInstallation.prototype, \"statusMessage\", void 0);\n __decorate([\n JsonProperty('location'),\n __metadata(\"design:type\", Object)\n ], DependencyInstallation.prototype, \"location\", void 0);\n __decorate([\n JsonProperty('domain_id_hash'),\n __metadata(\"design:type\", Object)\n ], DependencyInstallation.prototype, \"domainIdHash\", void 0);\n DependencyInstallation = __decorate([\n JsonObject('DependencyInstallation'),\n __metadata(\"design:paramtypes\", [Object])\n ], DependencyInstallation);\n return DependencyInstallation;\n}());\nexport { DependencyInstallation };\n//# sourceMappingURL=Dependencies.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonObject, JsonProperty } from 'json2typescript';\nexport var RequestOrigin;\n(function (RequestOrigin) {\n RequestOrigin[\"UI\"] = \"UI\";\n RequestOrigin[\"AdminAPI\"] = \"Admin API\";\n RequestOrigin[\"CLI\"] = \"CLI\";\n RequestOrigin[\"GitHubWebhook\"] = \"GitHub Webhook\";\n})(RequestOrigin || (RequestOrigin = {}));\nexport var DeploymentStatus;\n(function (DeploymentStatus) {\n DeploymentStatus[\"Created\"] = \"created\";\n DeploymentStatus[\"Successful\"] = \"successful\";\n DeploymentStatus[\"SuccessfulWithWarning\"] = \"successfulWithWarning\";\n DeploymentStatus[\"Failed\"] = \"failed\";\n DeploymentStatus[\"Pending\"] = \"pending\";\n})(DeploymentStatus || (DeploymentStatus = {}));\nexport var AppConfig;\n(function (AppConfig) {\n AppConfig[\"Version20180301\"] = \"20180301\";\n AppConfig[\"Version20200603\"] = \"20200603\";\n AppConfig[\"Version20210101\"] = \"20210101\";\n})(AppConfig || (AppConfig = {}));\nvar Deployment = (function () {\n function Deployment(partial) {\n this.id = '';\n this.appId = '';\n this.draftId = undefined;\n this.userId = undefined;\n this.deployedAt = 0;\n this.origin = RequestOrigin.UI;\n this.commit = '';\n this.status = DeploymentStatus.Pending;\n this.statusErrorMessage = '';\n this.diffUrl = '';\n this.name = undefined;\n this.remoteLocation = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], Deployment.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('app_id'),\n __metadata(\"design:type\", Object)\n ], Deployment.prototype, \"appId\", void 0);\n __decorate([\n JsonProperty('draft_id', String, true),\n __metadata(\"design:type\", String)\n ], Deployment.prototype, \"draftId\", void 0);\n __decorate([\n JsonProperty('user_id', String, true),\n __metadata(\"design:type\", String)\n ], Deployment.prototype, \"userId\", void 0);\n __decorate([\n JsonProperty('deployed_at'),\n __metadata(\"design:type\", Object)\n ], Deployment.prototype, \"deployedAt\", void 0);\n __decorate([\n JsonProperty('origin'),\n __metadata(\"design:type\", String)\n ], Deployment.prototype, \"origin\", void 0);\n __decorate([\n JsonProperty('commit'),\n __metadata(\"design:type\", Object)\n ], Deployment.prototype, \"commit\", void 0);\n __decorate([\n JsonProperty('status'),\n __metadata(\"design:type\", String)\n ], Deployment.prototype, \"status\", void 0);\n __decorate([\n JsonProperty('status_error_message'),\n __metadata(\"design:type\", Object)\n ], Deployment.prototype, \"statusErrorMessage\", void 0);\n __decorate([\n JsonProperty('diff_url'),\n __metadata(\"design:type\", Object)\n ], Deployment.prototype, \"diffUrl\", void 0);\n __decorate([\n JsonProperty('name', String, true),\n __metadata(\"design:type\", String)\n ], Deployment.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('remote_location', String, true),\n __metadata(\"design:type\", String)\n ], Deployment.prototype, \"remoteLocation\", void 0);\n Deployment = __decorate([\n JsonObject('Deployment'),\n __metadata(\"design:paramtypes\", [Object])\n ], Deployment);\n return Deployment;\n}());\nexport { Deployment };\nvar DeployDraftPayload = (function () {\n function DeployDraftPayload(partial) {\n this.name = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('name', String, true),\n __metadata(\"design:type\", String)\n ], DeployDraftPayload.prototype, \"name\", void 0);\n DeployDraftPayload = __decorate([\n JsonObject('DeployDraftPayload'),\n __metadata(\"design:paramtypes\", [Object])\n ], DeployDraftPayload);\n return DeployDraftPayload;\n}());\nexport { DeployDraftPayload };\n//# sourceMappingURL=Deployment.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { PartialApp } from './App';\nimport { JsonObject, JsonProperty } from 'json2typescript';\nvar PartialDraft = (function () {\n function PartialDraft(partial) {\n this.id = '';\n this.userId = '';\n this.app = new PartialApp();\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id', String),\n __metadata(\"design:type\", Object)\n ], PartialDraft.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('user_id', String),\n __metadata(\"design:type\", Object)\n ], PartialDraft.prototype, \"userId\", void 0);\n __decorate([\n JsonProperty('app', PartialApp),\n __metadata(\"design:type\", PartialApp)\n ], PartialDraft.prototype, \"app\", void 0);\n PartialDraft = __decorate([\n JsonObject('PartialDraft'),\n __metadata(\"design:paramtypes\", [Object])\n ], PartialDraft);\n return PartialDraft;\n}());\nexport { PartialDraft };\nvar AppAssetDiff = (function () {\n function AppAssetDiff(partial) {\n this.added = [];\n this.deleted = [];\n this.modified = [];\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('added', [String]),\n __metadata(\"design:type\", Array)\n ], AppAssetDiff.prototype, \"added\", void 0);\n __decorate([\n JsonProperty('deleted', [String]),\n __metadata(\"design:type\", Array)\n ], AppAssetDiff.prototype, \"deleted\", void 0);\n __decorate([\n JsonProperty('modified', [String]),\n __metadata(\"design:type\", Array)\n ], AppAssetDiff.prototype, \"modified\", void 0);\n AppAssetDiff = __decorate([\n JsonObject('AppAssetDiff'),\n __metadata(\"design:paramtypes\", [Object])\n ], AppAssetDiff);\n return AppAssetDiff;\n}());\nexport { AppAssetDiff };\nvar DependencyData = (function () {\n function DependencyData(partial) {\n this.name = '';\n this.version = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], DependencyData.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('version'),\n __metadata(\"design:type\", Object)\n ], DependencyData.prototype, \"version\", void 0);\n DependencyData = __decorate([\n JsonObject('DependencyData'),\n __metadata(\"design:paramtypes\", [Object])\n ], DependencyData);\n return DependencyData;\n}());\nexport { DependencyData };\nvar DependencyDiffData = (function () {\n function DependencyDiffData(partial) {\n this.name = '';\n this.version = '';\n this.previousVersion = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], DependencyDiffData.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('version'),\n __metadata(\"design:type\", Object)\n ], DependencyDiffData.prototype, \"version\", void 0);\n __decorate([\n JsonProperty('previous_version'),\n __metadata(\"design:type\", Object)\n ], DependencyDiffData.prototype, \"previousVersion\", void 0);\n DependencyDiffData = __decorate([\n JsonObject('DependencyDiffData'),\n __metadata(\"design:paramtypes\", [Object])\n ], DependencyDiffData);\n return DependencyDiffData;\n}());\nexport { DependencyDiffData };\nvar AppDependenciesDiff = (function () {\n function AppDependenciesDiff(partial) {\n this.added = [];\n this.deleted = [];\n this.modified = [];\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('added', [DependencyData]),\n __metadata(\"design:type\", Array)\n ], AppDependenciesDiff.prototype, \"added\", void 0);\n __decorate([\n JsonProperty('deleted', [DependencyData]),\n __metadata(\"design:type\", Array)\n ], AppDependenciesDiff.prototype, \"deleted\", void 0);\n __decorate([\n JsonProperty('modified', [DependencyData]),\n __metadata(\"design:type\", Array)\n ], AppDependenciesDiff.prototype, \"modified\", void 0);\n AppDependenciesDiff = __decorate([\n JsonObject('AppDependenciesDiff'),\n __metadata(\"design:paramtypes\", [Object])\n ], AppDependenciesDiff);\n return AppDependenciesDiff;\n}());\nexport { AppDependenciesDiff };\nvar FieldDiff = (function () {\n function FieldDiff(partial) {\n this.field = '';\n this.previousValue = undefined;\n this.updatedValue = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('field_name', String),\n __metadata(\"design:type\", Object)\n ], FieldDiff.prototype, \"field\", void 0);\n __decorate([\n JsonProperty('previous'),\n __metadata(\"design:type\", Object)\n ], FieldDiff.prototype, \"previousValue\", void 0);\n __decorate([\n JsonProperty('updated'),\n __metadata(\"design:type\", Object)\n ], FieldDiff.prototype, \"updatedValue\", void 0);\n FieldDiff = __decorate([\n JsonObject('FieldDiff'),\n __metadata(\"design:paramtypes\", [Object])\n ], FieldDiff);\n return FieldDiff;\n}());\nexport { FieldDiff };\nvar SchemaOptionsDiff = (function () {\n function SchemaOptionsDiff(partial) {\n this.graphQLValidationDiffs = [];\n this.restValidationDiffs = [];\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('graphql_validation_diff', [FieldDiff]),\n __metadata(\"design:type\", Array)\n ], SchemaOptionsDiff.prototype, \"graphQLValidationDiffs\", void 0);\n __decorate([\n JsonProperty('rest_validation_diff', [FieldDiff]),\n __metadata(\"design:type\", Array)\n ], SchemaOptionsDiff.prototype, \"restValidationDiffs\", void 0);\n SchemaOptionsDiff = __decorate([\n JsonObject('SchemaOptionsDiff'),\n __metadata(\"design:paramtypes\", [Object])\n ], SchemaOptionsDiff);\n return SchemaOptionsDiff;\n}());\nexport { SchemaOptionsDiff };\nvar GraphQLConfigDiff = (function () {\n function GraphQLConfigDiff(partial) {\n this.fieldDiffs = [];\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('field_diffs', [FieldDiff]),\n __metadata(\"design:type\", Array)\n ], GraphQLConfigDiff.prototype, \"fieldDiffs\", void 0);\n GraphQLConfigDiff = __decorate([\n JsonObject('GraphQLConfigDiff'),\n __metadata(\"design:paramtypes\", [Object])\n ], GraphQLConfigDiff);\n return GraphQLConfigDiff;\n}());\nexport { GraphQLConfigDiff };\nvar DraftDiff = (function () {\n function DraftDiff(partial) {\n this.diffs = [];\n this.hostingFilesDiff = new AppAssetDiff();\n this.dependenciesDiff = new AppDependenciesDiff();\n this.graphQLConfigDiff = new GraphQLConfigDiff();\n this.schemaOptionsDiff = new SchemaOptionsDiff();\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('diffs', [String]),\n __metadata(\"design:type\", Array)\n ], DraftDiff.prototype, \"diffs\", void 0);\n __decorate([\n JsonProperty('hosting_files_diff', AppAssetDiff),\n __metadata(\"design:type\", AppAssetDiff)\n ], DraftDiff.prototype, \"hostingFilesDiff\", void 0);\n __decorate([\n JsonProperty('dependencies_diff', AppDependenciesDiff),\n __metadata(\"design:type\", AppDependenciesDiff)\n ], DraftDiff.prototype, \"dependenciesDiff\", void 0);\n __decorate([\n JsonProperty('graphql_config_diff', GraphQLConfigDiff),\n __metadata(\"design:type\", GraphQLConfigDiff)\n ], DraftDiff.prototype, \"graphQLConfigDiff\", void 0);\n __decorate([\n JsonProperty('schema_options_diff', SchemaOptionsDiff),\n __metadata(\"design:type\", SchemaOptionsDiff)\n ], DraftDiff.prototype, \"schemaOptionsDiff\", void 0);\n DraftDiff = __decorate([\n JsonObject('DraftDiff'),\n __metadata(\"design:paramtypes\", [Object])\n ], DraftDiff);\n return DraftDiff;\n}());\nexport { DraftDiff };\n//# sourceMappingURL=Draft.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonObject, JsonProperty } from 'json2typescript';\nexport var EndpointHTTPMethod;\n(function (EndpointHTTPMethod) {\n EndpointHTTPMethod[\"POST\"] = \"POST\";\n EndpointHTTPMethod[\"GET\"] = \"GET\";\n EndpointHTTPMethod[\"PATCH\"] = \"PATCH\";\n EndpointHTTPMethod[\"PUT\"] = \"PUT\";\n EndpointHTTPMethod[\"DELETE\"] = \"DELETE\";\n EndpointHTTPMethod[\"ANY\"] = \"*\";\n})(EndpointHTTPMethod || (EndpointHTTPMethod = {}));\nexport var EndpointValidationMethod;\n(function (EndpointValidationMethod) {\n EndpointValidationMethod[\"NoValidation\"] = \"NO_VALIDATION\";\n EndpointValidationMethod[\"VerifyPayload\"] = \"VERIFY_PAYLOAD\";\n EndpointValidationMethod[\"SecretAsQueryParam\"] = \"SECRET_AS_QUERY_PARAM\";\n})(EndpointValidationMethod || (EndpointValidationMethod = {}));\nexport var WebhookConversionStrategy;\n(function (WebhookConversionStrategy) {\n WebhookConversionStrategy[\"DryRun\"] = \"dryRun\";\n WebhookConversionStrategy[\"Overwrite\"] = \"overwrite\";\n WebhookConversionStrategy[\"NoStrategy\"] = \"\";\n})(WebhookConversionStrategy || (WebhookConversionStrategy = {}));\nvar Endpoint = (function () {\n function Endpoint(partial) {\n this.id = undefined;\n this.route = '';\n this.functionName = '';\n this.functionId = '';\n this.httpMethod = EndpointHTTPMethod.ANY;\n this.validationMethod = EndpointValidationMethod.NoValidation;\n this.secretId = undefined;\n this.secretName = undefined;\n this.createUserOnAuth = false;\n this.fetchCustomUserData = false;\n this.respondResult = false;\n this.lastModified = undefined;\n this.disabled = false;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id', String, true),\n __metadata(\"design:type\", String)\n ], Endpoint.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('route'),\n __metadata(\"design:type\", Object)\n ], Endpoint.prototype, \"route\", void 0);\n __decorate([\n JsonProperty('function_name'),\n __metadata(\"design:type\", Object)\n ], Endpoint.prototype, \"functionName\", void 0);\n __decorate([\n JsonProperty('function_id'),\n __metadata(\"design:type\", Object)\n ], Endpoint.prototype, \"functionId\", void 0);\n __decorate([\n JsonProperty('http_method'),\n __metadata(\"design:type\", String)\n ], Endpoint.prototype, \"httpMethod\", void 0);\n __decorate([\n JsonProperty('validation_method', String),\n __metadata(\"design:type\", String)\n ], Endpoint.prototype, \"validationMethod\", void 0);\n __decorate([\n JsonProperty('secret_id', String, true),\n __metadata(\"design:type\", String)\n ], Endpoint.prototype, \"secretId\", void 0);\n __decorate([\n JsonProperty('secret_name', String, true),\n __metadata(\"design:type\", String)\n ], Endpoint.prototype, \"secretName\", void 0);\n __decorate([\n JsonProperty('create_user_on_auth', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], Endpoint.prototype, \"createUserOnAuth\", void 0);\n __decorate([\n JsonProperty('fetch_custom_user_data', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], Endpoint.prototype, \"fetchCustomUserData\", void 0);\n __decorate([\n JsonProperty('respond_result', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], Endpoint.prototype, \"respondResult\", void 0);\n __decorate([\n JsonProperty('last_modified', Number, true),\n __metadata(\"design:type\", Number)\n ], Endpoint.prototype, \"lastModified\", void 0);\n __decorate([\n JsonProperty('disabled', Boolean),\n __metadata(\"design:type\", Object)\n ], Endpoint.prototype, \"disabled\", void 0);\n Endpoint = __decorate([\n JsonObject('Endpoint'),\n __metadata(\"design:paramtypes\", [Object])\n ], Endpoint);\n return Endpoint;\n}());\nexport { Endpoint };\nvar PartialEndpoint = (function () {\n function PartialEndpoint() {\n this.id = '';\n this.route = '';\n this.functionName = '';\n this.functionId = '';\n this.httpMethod = EndpointHTTPMethod.ANY;\n this.lastModified = undefined;\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], PartialEndpoint.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('route'),\n __metadata(\"design:type\", Object)\n ], PartialEndpoint.prototype, \"route\", void 0);\n __decorate([\n JsonProperty('function_name'),\n __metadata(\"design:type\", Object)\n ], PartialEndpoint.prototype, \"functionName\", void 0);\n __decorate([\n JsonProperty('function_id'),\n __metadata(\"design:type\", Object)\n ], PartialEndpoint.prototype, \"functionId\", void 0);\n __decorate([\n JsonProperty('http_method'),\n __metadata(\"design:type\", String)\n ], PartialEndpoint.prototype, \"httpMethod\", void 0);\n __decorate([\n JsonProperty('last_modified', Number, true),\n __metadata(\"design:type\", Number)\n ], PartialEndpoint.prototype, \"lastModified\", void 0);\n PartialEndpoint = __decorate([\n JsonObject('PartialEndpoint')\n ], PartialEndpoint);\n return PartialEndpoint;\n}());\nexport { PartialEndpoint };\nvar ConvertEndpointRequest = (function () {\n function ConvertEndpointRequest(partial) {\n this.strategy = WebhookConversionStrategy.NoStrategy;\n Object.assign(this, partial);\n }\n ConvertEndpointRequest = __decorate([\n JsonObject('ConvertEndpointRequest'),\n __metadata(\"design:paramtypes\", [Object])\n ], ConvertEndpointRequest);\n return ConvertEndpointRequest;\n}());\nexport { ConvertEndpointRequest };\n//# sourceMappingURL=Endpoint.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { Any, JsonObject, JsonProperty } from 'json2typescript';\nvar ValuesByEnvironment = (function () {\n function ValuesByEnvironment(partial) {\n this.none = undefined;\n this.development = undefined;\n this.testing = undefined;\n this.staging = undefined;\n this.qa = undefined;\n this.production = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('none', Any, true),\n __metadata(\"design:type\", Object)\n ], ValuesByEnvironment.prototype, \"none\", void 0);\n __decorate([\n JsonProperty('development', Any, true),\n __metadata(\"design:type\", Object)\n ], ValuesByEnvironment.prototype, \"development\", void 0);\n __decorate([\n JsonProperty('testing', Any, true),\n __metadata(\"design:type\", Object)\n ], ValuesByEnvironment.prototype, \"testing\", void 0);\n __decorate([\n JsonProperty('staging', Any, true),\n __metadata(\"design:type\", Object)\n ], ValuesByEnvironment.prototype, \"staging\", void 0);\n __decorate([\n JsonProperty('qa', Any, true),\n __metadata(\"design:type\", Object)\n ], ValuesByEnvironment.prototype, \"qa\", void 0);\n __decorate([\n JsonProperty('production', Any, true),\n __metadata(\"design:type\", Object)\n ], ValuesByEnvironment.prototype, \"production\", void 0);\n ValuesByEnvironment = __decorate([\n JsonObject('ValuesByEnvironment'),\n __metadata(\"design:paramtypes\", [Object])\n ], ValuesByEnvironment);\n return ValuesByEnvironment;\n}());\nexport { ValuesByEnvironment };\nvar EnvironmentValue = (function () {\n function EnvironmentValue(partial) {\n this.id = '';\n this.name = '';\n this.values = new ValuesByEnvironment();\n this.lastModified = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], EnvironmentValue.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], EnvironmentValue.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('values', ValuesByEnvironment, {}),\n __metadata(\"design:type\", ValuesByEnvironment)\n ], EnvironmentValue.prototype, \"values\", void 0);\n __decorate([\n JsonProperty('last_modified', Number, true),\n __metadata(\"design:type\", Number)\n ], EnvironmentValue.prototype, \"lastModified\", void 0);\n EnvironmentValue = __decorate([\n JsonObject('EnvironmentValue'),\n __metadata(\"design:paramtypes\", [Object])\n ], EnvironmentValue);\n return EnvironmentValue;\n}());\nexport { EnvironmentValue };\nvar PartialEnvironmentValue = (function () {\n function PartialEnvironmentValue(partial) {\n this.id = '';\n this.name = '';\n this.lastModified = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], PartialEnvironmentValue.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], PartialEnvironmentValue.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('last_modified', Number, true),\n __metadata(\"design:type\", Number)\n ], PartialEnvironmentValue.prototype, \"lastModified\", void 0);\n PartialEnvironmentValue = __decorate([\n JsonObject('PartialEnvironmentValue'),\n __metadata(\"design:paramtypes\", [Object])\n ], PartialEnvironmentValue);\n return PartialEnvironmentValue;\n}());\nexport { PartialEnvironmentValue };\n//# sourceMappingURL=EnvironmentValue.js.map","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nimport { JsonConverter } from 'json2typescript';\nvar DATE_TIME_FORMAT = new Intl.DateTimeFormat('default', {\n year: 'numeric',\n month: '2-digit',\n day: '2-digit',\n hour: '2-digit',\n minute: '2-digit',\n second: '2-digit',\n timeZone: 'UTC',\n hour12: false,\n});\nexport function dateToISO8601(date) {\n var _a = DATE_TIME_FORMAT.formatToParts(date).reduce(function (acc, part) {\n var _a;\n return (__assign(__assign({}, acc), (_a = {}, _a[part.type] = part.value, _a)));\n }, {}), year = _a.year, month = _a.month, day = _a.day, hour = _a.hour, minute = _a.minute, second = _a.second;\n return year + \"-\" + month + \"-\" + day + \"T\" + (hour === '24' ? '00' : hour) + \":\" + minute + \":\" + second + \"+0000\";\n}\nvar DateConverter = (function () {\n function DateConverter() {\n }\n DateConverter.prototype.serialize = function (date) {\n return dateToISO8601(date);\n };\n DateConverter.prototype.deserialize = function (date) {\n return new Date(date);\n };\n DateConverter = __decorate([\n JsonConverter\n ], DateConverter);\n return DateConverter;\n}());\nexport { DateConverter };\n//# sourceMappingURL=Converter.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { DateConverter } from '../../Converter';\nimport createStringMapSerializers from '../common/createStringMapSerializers';\nimport { Any, JsonConverter, JsonObject, JsonProperty } from 'json2typescript';\nexport var ResourceType;\n(function (ResourceType) {\n ResourceType[\"Database\"] = \"DATABASE\";\n ResourceType[\"AuthEvent\"] = \"AUTHENTICATION\";\n ResourceType[\"Scheduled\"] = \"SCHEDULED\";\n ResourceType[\"SyncTranslator\"] = \"SYNCTRANSLATOR\";\n})(ResourceType || (ResourceType = {}));\nexport var EventProcessorType;\n(function (EventProcessorType) {\n EventProcessorType[\"AWSEventBridge\"] = \"AWS_EVENTBRIDGE\";\n EventProcessorType[\"Function\"] = \"FUNCTION\";\n})(EventProcessorType || (EventProcessorType = {}));\nvar EventProcessor = (function () {\n function EventProcessor(partial) {\n this.config = {};\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('config'),\n __metadata(\"design:type\", Object)\n ], EventProcessor.prototype, \"config\", void 0);\n EventProcessor = __decorate([\n JsonObject('EventProcessor'),\n __metadata(\"design:paramtypes\", [Object])\n ], EventProcessor);\n return EventProcessor;\n}());\nexport { EventProcessor };\nvar eventProcessorMapSerializers = createStringMapSerializers(EventProcessor);\nvar EventProcessorMapConverter = (function () {\n function EventProcessorMapConverter() {\n this.serialize = eventProcessorMapSerializers.serialize;\n this.deserialize = eventProcessorMapSerializers.deserialize;\n }\n EventProcessorMapConverter = __decorate([\n JsonConverter\n ], EventProcessorMapConverter);\n return EventProcessorMapConverter;\n}());\nvar EventSubscriptionResumeOptions = (function () {\n function EventSubscriptionResumeOptions(partial) {\n this.disableToken = false;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('disable_token'),\n __metadata(\"design:type\", Object)\n ], EventSubscriptionResumeOptions.prototype, \"disableToken\", void 0);\n EventSubscriptionResumeOptions = __decorate([\n JsonObject('EventSubscriptionResumeOptions'),\n __metadata(\"design:paramtypes\", [Object])\n ], EventSubscriptionResumeOptions);\n return EventSubscriptionResumeOptions;\n}());\nexport { EventSubscriptionResumeOptions };\nvar EventSubscription = (function () {\n function EventSubscription(partial) {\n this.id = undefined;\n this.name = '';\n this.type = ResourceType.Database;\n this.functionId = undefined;\n this.functionName = undefined;\n this.disabled = false;\n this.config = {};\n this.error = undefined;\n this.errorCoId = undefined;\n this.lastModified = undefined;\n this.eventProcessors = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id', String, true),\n __metadata(\"design:type\", String)\n ], EventSubscription.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], EventSubscription.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('type'),\n __metadata(\"design:type\", String)\n ], EventSubscription.prototype, \"type\", void 0);\n __decorate([\n JsonProperty('function_id', String, true),\n __metadata(\"design:type\", String)\n ], EventSubscription.prototype, \"functionId\", void 0);\n __decorate([\n JsonProperty('function_name', String, true),\n __metadata(\"design:type\", String)\n ], EventSubscription.prototype, \"functionName\", void 0);\n __decorate([\n JsonProperty('disabled'),\n __metadata(\"design:type\", Object)\n ], EventSubscription.prototype, \"disabled\", void 0);\n __decorate([\n JsonProperty('config'),\n __metadata(\"design:type\", Object)\n ], EventSubscription.prototype, \"config\", void 0);\n __decorate([\n JsonProperty('error', String, true),\n __metadata(\"design:type\", String)\n ], EventSubscription.prototype, \"error\", void 0);\n __decorate([\n JsonProperty('error_co_id', String, true),\n __metadata(\"design:type\", String)\n ], EventSubscription.prototype, \"errorCoId\", void 0);\n __decorate([\n JsonProperty('last_modified', Number, true),\n __metadata(\"design:type\", Number)\n ], EventSubscription.prototype, \"lastModified\", void 0);\n __decorate([\n JsonProperty('event_processors', EventProcessorMapConverter, true),\n __metadata(\"design:type\", Object)\n ], EventSubscription.prototype, \"eventProcessors\", void 0);\n EventSubscription = __decorate([\n JsonObject('EventSubscription'),\n __metadata(\"design:paramtypes\", [Object])\n ], EventSubscription);\n return EventSubscription;\n}());\nexport { EventSubscription };\nvar EventSubscriptionExecution = (function () {\n function EventSubscriptionExecution(partial) {\n this.data = undefined;\n this.resourceId = '';\n this.completedAt = undefined;\n this.clusterTime = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('data', Any, true),\n __metadata(\"design:type\", Object)\n ], EventSubscriptionExecution.prototype, \"data\", void 0);\n __decorate([\n JsonProperty('resource_id', String),\n __metadata(\"design:type\", Object)\n ], EventSubscriptionExecution.prototype, \"resourceId\", void 0);\n __decorate([\n JsonProperty('completed_at', Number, true),\n __metadata(\"design:type\", Number)\n ], EventSubscriptionExecution.prototype, \"completedAt\", void 0);\n __decorate([\n JsonProperty('cluster_time', DateConverter, true),\n __metadata(\"design:type\", Date)\n ], EventSubscriptionExecution.prototype, \"clusterTime\", void 0);\n EventSubscriptionExecution = __decorate([\n JsonObject('EventSubscriptionExecution'),\n __metadata(\"design:paramtypes\", [Object])\n ], EventSubscriptionExecution);\n return EventSubscriptionExecution;\n}());\nexport { EventSubscriptionExecution };\n//# sourceMappingURL=EventSubscription.js.map","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { Any, JsonObject, JsonProperty } from 'json2typescript';\nvar PartialBaseAppFunction = (function () {\n function PartialBaseAppFunction(partial) {\n this.name = '';\n this.path = undefined;\n this.lastModified = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], PartialBaseAppFunction.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('path', String, true),\n __metadata(\"design:type\", String)\n ], PartialBaseAppFunction.prototype, \"path\", void 0);\n __decorate([\n JsonProperty('last_modified', Number, true),\n __metadata(\"design:type\", Number)\n ], PartialBaseAppFunction.prototype, \"lastModified\", void 0);\n PartialBaseAppFunction = __decorate([\n JsonObject('PartialBaseAppFunction'),\n __metadata(\"design:paramtypes\", [Object])\n ], PartialBaseAppFunction);\n return PartialBaseAppFunction;\n}());\nvar PartialAppFunction = (function (_super) {\n __extends(PartialAppFunction, _super);\n function PartialAppFunction(partial) {\n var _this = _super.call(this, partial) || this;\n _this.id = '';\n Object.assign(_this, partial);\n return _this;\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], PartialAppFunction.prototype, \"id\", void 0);\n PartialAppFunction = __decorate([\n JsonObject('PartialAppFunction'),\n __metadata(\"design:paramtypes\", [Object])\n ], PartialAppFunction);\n return PartialAppFunction;\n}(PartialBaseAppFunction));\nexport { PartialAppFunction };\nvar BaseAppFunction = (function (_super) {\n __extends(BaseAppFunction, _super);\n function BaseAppFunction(partial) {\n var _this = _super.call(this, partial) || this;\n _this.source = '';\n _this.canEvaluate = undefined;\n _this.private = false;\n _this.runAsSystem = undefined;\n _this.runAsUserId = undefined;\n _this.runAsUserIdScriptSource = undefined;\n _this.runAsUserIdScriptTranspiledSource = undefined;\n _this.runAsUserIdScripSourceMap = undefined;\n _this.disableArgLogs = undefined;\n Object.assign(_this, partial);\n return _this;\n }\n __decorate([\n JsonProperty('source'),\n __metadata(\"design:type\", Object)\n ], BaseAppFunction.prototype, \"source\", void 0);\n __decorate([\n JsonProperty('can_evaluate', Any, true),\n __metadata(\"design:type\", Object)\n ], BaseAppFunction.prototype, \"canEvaluate\", void 0);\n __decorate([\n JsonProperty('private'),\n __metadata(\"design:type\", Object)\n ], BaseAppFunction.prototype, \"private\", void 0);\n __decorate([\n JsonProperty('run_as_system', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], BaseAppFunction.prototype, \"runAsSystem\", void 0);\n __decorate([\n JsonProperty('run_as_user_id', String, true),\n __metadata(\"design:type\", String)\n ], BaseAppFunction.prototype, \"runAsUserId\", void 0);\n __decorate([\n JsonProperty('run_as_user_id_script_source', String, true),\n __metadata(\"design:type\", String)\n ], BaseAppFunction.prototype, \"runAsUserIdScriptSource\", void 0);\n __decorate([\n JsonProperty('run_as_user_id_script_transpiled_source', String, true),\n __metadata(\"design:type\", String)\n ], BaseAppFunction.prototype, \"runAsUserIdScriptTranspiledSource\", void 0);\n __decorate([\n JsonProperty('run_as_user_id_script_source_map', Buffer, true),\n __metadata(\"design:type\", Buffer)\n ], BaseAppFunction.prototype, \"runAsUserIdScripSourceMap\", void 0);\n __decorate([\n JsonProperty('disable_arg_logs', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], BaseAppFunction.prototype, \"disableArgLogs\", void 0);\n BaseAppFunction = __decorate([\n JsonObject('BaseAppFunction'),\n __metadata(\"design:paramtypes\", [Object])\n ], BaseAppFunction);\n return BaseAppFunction;\n}(PartialBaseAppFunction));\nvar CreateAppFunction = (function (_super) {\n __extends(CreateAppFunction, _super);\n function CreateAppFunction(partial) {\n var _this = _super.call(this, partial) || this;\n Object.assign(_this, partial);\n return _this;\n }\n CreateAppFunction = __decorate([\n JsonObject('CreateAppFunction'),\n __metadata(\"design:paramtypes\", [Object])\n ], CreateAppFunction);\n return CreateAppFunction;\n}(BaseAppFunction));\nexport { CreateAppFunction };\nvar ClientAppFunction = (function (_super) {\n __extends(ClientAppFunction, _super);\n function ClientAppFunction(partial) {\n var _this = _super.call(this, partial) || this;\n _this.id = '';\n Object.assign(_this, partial);\n return _this;\n }\n __decorate([\n JsonProperty('_id', String),\n __metadata(\"design:type\", Object)\n ], ClientAppFunction.prototype, \"id\", void 0);\n ClientAppFunction = __decorate([\n JsonObject('ClientAppFunction'),\n __metadata(\"design:paramtypes\", [Object])\n ], ClientAppFunction);\n return ClientAppFunction;\n}(BaseAppFunction));\nexport { ClientAppFunction };\nvar AppFunction = (function (_super) {\n __extends(AppFunction, _super);\n function AppFunction(partial) {\n var _this = _super.call(this, partial) || this;\n _this.transpiledSource = undefined;\n _this.sourceMap = undefined;\n Object.assign(_this, partial);\n return _this;\n }\n __decorate([\n JsonProperty('transpiled_source', String, true),\n __metadata(\"design:type\", String)\n ], AppFunction.prototype, \"transpiledSource\", void 0);\n __decorate([\n JsonProperty('source_map', Buffer, true),\n __metadata(\"design:type\", Buffer)\n ], AppFunction.prototype, \"sourceMap\", void 0);\n AppFunction = __decorate([\n JsonObject('AppFunction'),\n __metadata(\"design:paramtypes\", [Object])\n ], AppFunction);\n return AppFunction;\n}(ClientAppFunction));\nexport { AppFunction };\n//# sourceMappingURL=Function.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { Any, JsonObject, JsonProperty } from 'json2typescript';\nvar GraphQLConfig = (function () {\n function GraphQLConfig(partial) {\n this.useNaturalPluralization = false;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('use_natural_pluralization'),\n __metadata(\"design:type\", Object)\n ], GraphQLConfig.prototype, \"useNaturalPluralization\", void 0);\n GraphQLConfig = __decorate([\n JsonObject('GraphQLConfig'),\n __metadata(\"design:paramtypes\", [Object])\n ], GraphQLConfig);\n return GraphQLConfig;\n}());\nexport { GraphQLConfig };\nexport var GraphQLAlertType;\n(function (GraphQLAlertType) {\n GraphQLAlertType[\"Mongo\"] = \"mongo\";\n GraphQLAlertType[\"Custom\"] = \"custom\";\n})(GraphQLAlertType || (GraphQLAlertType = {}));\nvar GraphQLAlert = (function () {\n function GraphQLAlert(partial) {\n this.errorCode = '';\n this.message = '';\n this.ruleId = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('error_code'),\n __metadata(\"design:type\", Object)\n ], GraphQLAlert.prototype, \"errorCode\", void 0);\n __decorate([\n JsonProperty('message'),\n __metadata(\"design:type\", Object)\n ], GraphQLAlert.prototype, \"message\", void 0);\n __decorate([\n JsonProperty('details', Any, true),\n __metadata(\"design:type\", Object)\n ], GraphQLAlert.prototype, \"ruleId\", void 0);\n GraphQLAlert = __decorate([\n JsonObject('GraphQLAlert'),\n __metadata(\"design:paramtypes\", [Object])\n ], GraphQLAlert);\n return GraphQLAlert;\n}());\nexport { GraphQLAlert };\nvar CustomResolver = (function () {\n function CustomResolver(partial) {\n this.id = undefined;\n this.functionId = '';\n this.onType = '';\n this.fieldName = '';\n this.inputType = undefined;\n this.inputTypeFormat = undefined;\n this.payloadType = undefined;\n this.payloadTypeFormat = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id', String, true),\n __metadata(\"design:type\", String)\n ], CustomResolver.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('function_id'),\n __metadata(\"design:type\", Object)\n ], CustomResolver.prototype, \"functionId\", void 0);\n __decorate([\n JsonProperty('on_type'),\n __metadata(\"design:type\", Object)\n ], CustomResolver.prototype, \"onType\", void 0);\n __decorate([\n JsonProperty('field_name'),\n __metadata(\"design:type\", Object)\n ], CustomResolver.prototype, \"fieldName\", void 0);\n __decorate([\n JsonProperty('input_type', Any, true),\n __metadata(\"design:type\", Object)\n ], CustomResolver.prototype, \"inputType\", void 0);\n __decorate([\n JsonProperty('input_type_format', String, true),\n __metadata(\"design:type\", String)\n ], CustomResolver.prototype, \"inputTypeFormat\", void 0);\n __decorate([\n JsonProperty('payload_type', Any, true),\n __metadata(\"design:type\", Object)\n ], CustomResolver.prototype, \"payloadType\", void 0);\n __decorate([\n JsonProperty('payload_type_format', String, true),\n __metadata(\"design:type\", String)\n ], CustomResolver.prototype, \"payloadTypeFormat\", void 0);\n CustomResolver = __decorate([\n JsonObject('CustomResolver'),\n __metadata(\"design:paramtypes\", [Object])\n ], CustomResolver);\n return CustomResolver;\n}());\nexport { CustomResolver };\nvar GraphQLAlerts = (function () {\n function GraphQLAlerts(partial) {\n this.type = GraphQLAlertType.Mongo;\n this.serviceId = '';\n this.ruleId = '';\n this.customResolverId = '';\n this.displayName = '';\n this.warnings = [];\n this.errors = [];\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('type'),\n __metadata(\"design:type\", String)\n ], GraphQLAlerts.prototype, \"type\", void 0);\n __decorate([\n JsonProperty('service_id'),\n __metadata(\"design:type\", Object)\n ], GraphQLAlerts.prototype, \"serviceId\", void 0);\n __decorate([\n JsonProperty('rule_id'),\n __metadata(\"design:type\", Object)\n ], GraphQLAlerts.prototype, \"ruleId\", void 0);\n __decorate([\n JsonProperty('custom_resolver_id'),\n __metadata(\"design:type\", Object)\n ], GraphQLAlerts.prototype, \"customResolverId\", void 0);\n __decorate([\n JsonProperty('display_name'),\n __metadata(\"design:type\", Object)\n ], GraphQLAlerts.prototype, \"displayName\", void 0);\n __decorate([\n JsonProperty('warnings', [GraphQLAlert]),\n __metadata(\"design:type\", Array)\n ], GraphQLAlerts.prototype, \"warnings\", void 0);\n __decorate([\n JsonProperty('errors', [GraphQLAlert]),\n __metadata(\"design:type\", Array)\n ], GraphQLAlerts.prototype, \"errors\", void 0);\n GraphQLAlerts = __decorate([\n JsonObject('GraphQLAlerts'),\n __metadata(\"design:paramtypes\", [Object])\n ], GraphQLAlerts);\n return GraphQLAlerts;\n}());\nexport { GraphQLAlerts };\nvar ExtendableTypes = (function () {\n function ExtendableTypes(partial) {\n this.rootTypes = [];\n this.generatedTypes = [];\n this.generatedInputTypes = [];\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('root_types'),\n __metadata(\"design:type\", Array)\n ], ExtendableTypes.prototype, \"rootTypes\", void 0);\n __decorate([\n JsonProperty('generated_types'),\n __metadata(\"design:type\", Array)\n ], ExtendableTypes.prototype, \"generatedTypes\", void 0);\n __decorate([\n JsonProperty('generated_input_types'),\n __metadata(\"design:type\", Array)\n ], ExtendableTypes.prototype, \"generatedInputTypes\", void 0);\n ExtendableTypes = __decorate([\n JsonObject('ExtendableTypes'),\n __metadata(\"design:paramtypes\", [Object])\n ], ExtendableTypes);\n return ExtendableTypes;\n}());\nexport { ExtendableTypes };\n//# sourceMappingURL=GraphQL.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonObject, JsonProperty } from 'json2typescript';\nexport var HostingStatus;\n(function (HostingStatus) {\n HostingStatus[\"Ok\"] = \"setup_ok\";\n HostingStatus[\"ChangeInProgress\"] = \"change_in_progress\";\n HostingStatus[\"ChangeFailed\"] = \"change_failed\";\n HostingStatus[\"ChangeFailedFatal\"] = \"change_failed_fatal\";\n})(HostingStatus || (HostingStatus = {}));\nvar HostingConfig = (function () {\n function HostingConfig(partial) {\n this.enabled = false;\n this.status = HostingStatus.Ok;\n this.statusErrorMessage = undefined;\n this.defaultDomain = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('enabled'),\n __metadata(\"design:type\", Object)\n ], HostingConfig.prototype, \"enabled\", void 0);\n __decorate([\n JsonProperty('status'),\n __metadata(\"design:type\", String)\n ], HostingConfig.prototype, \"status\", void 0);\n __decorate([\n JsonProperty('status_error_message', String, true),\n __metadata(\"design:type\", String)\n ], HostingConfig.prototype, \"statusErrorMessage\", void 0);\n __decorate([\n JsonProperty('default_domain', Number, true),\n __metadata(\"design:type\", Number)\n ], HostingConfig.prototype, \"defaultDomain\", void 0);\n HostingConfig = __decorate([\n JsonObject('HostingConfig'),\n __metadata(\"design:paramtypes\", [Object])\n ], HostingConfig);\n return HostingConfig;\n}());\nexport { HostingConfig };\nvar DefaultDomain = (function () {\n function DefaultDomain(partial) {\n this.providerType = '';\n this.config = {};\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('provider_type'),\n __metadata(\"design:type\", Object)\n ], DefaultDomain.prototype, \"providerType\", void 0);\n __decorate([\n JsonProperty('config'),\n __metadata(\"design:type\", Object)\n ], DefaultDomain.prototype, \"config\", void 0);\n DefaultDomain = __decorate([\n JsonObject('DefaultDomain'),\n __metadata(\"design:paramtypes\", [Object])\n ], DefaultDomain);\n return DefaultDomain;\n}());\nexport { DefaultDomain };\nvar AssetMetadata = (function () {\n function AssetMetadata(partial) {\n this.appId = '';\n this.path = '';\n this.hash = '';\n this.size = 0;\n this.attributes = [];\n this.lastModified = undefined;\n this.url = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('appId'),\n __metadata(\"design:type\", Object)\n ], AssetMetadata.prototype, \"appId\", void 0);\n __decorate([\n JsonProperty('path'),\n __metadata(\"design:type\", Object)\n ], AssetMetadata.prototype, \"path\", void 0);\n __decorate([\n JsonProperty('hash'),\n __metadata(\"design:type\", Object)\n ], AssetMetadata.prototype, \"hash\", void 0);\n __decorate([\n JsonProperty('size'),\n __metadata(\"design:type\", Object)\n ], AssetMetadata.prototype, \"size\", void 0);\n __decorate([\n JsonProperty('attrs'),\n __metadata(\"design:type\", Array)\n ], AssetMetadata.prototype, \"attributes\", void 0);\n __decorate([\n JsonProperty('last_modified', Number, true),\n __metadata(\"design:type\", Number)\n ], AssetMetadata.prototype, \"lastModified\", void 0);\n __decorate([\n JsonProperty('url', String, true),\n __metadata(\"design:type\", String)\n ], AssetMetadata.prototype, \"url\", void 0);\n AssetMetadata = __decorate([\n JsonObject('AssetMetadata'),\n __metadata(\"design:paramtypes\", [Object])\n ], AssetMetadata);\n return AssetMetadata;\n}());\nexport { AssetMetadata };\nvar AssetURL = (function () {\n function AssetURL(partial) {\n this.url = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('url', String, true),\n __metadata(\"design:type\", String)\n ], AssetURL.prototype, \"url\", void 0);\n AssetURL = __decorate([\n JsonObject('AssetURL'),\n __metadata(\"design:paramtypes\", [Object])\n ], AssetURL);\n return AssetURL;\n}());\nexport { AssetURL };\nvar TransformAssetRequest = (function () {\n function TransformAssetRequest(partial) {\n this.moveFrom = '';\n this.moveTo = '';\n this.copyFrom = '';\n this.copyTo = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('move_from'),\n __metadata(\"design:type\", Object)\n ], TransformAssetRequest.prototype, \"moveFrom\", void 0);\n __decorate([\n JsonProperty('move_to'),\n __metadata(\"design:type\", Object)\n ], TransformAssetRequest.prototype, \"moveTo\", void 0);\n __decorate([\n JsonProperty('copy_from'),\n __metadata(\"design:type\", Object)\n ], TransformAssetRequest.prototype, \"copyFrom\", void 0);\n __decorate([\n JsonProperty('copy_to'),\n __metadata(\"design:type\", Object)\n ], TransformAssetRequest.prototype, \"copyTo\", void 0);\n TransformAssetRequest = __decorate([\n JsonObject('TransformAssetRequest'),\n __metadata(\"design:paramtypes\", [Object])\n ], TransformAssetRequest);\n return TransformAssetRequest;\n}());\nexport { TransformAssetRequest };\n//# sourceMappingURL=Hosting.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonObject, JsonProperty } from 'json2typescript';\nvar AllowedIPToStore = (function () {\n function AllowedIPToStore(partial) {\n this.id = undefined;\n this.address = '';\n this.comment = undefined;\n this.useCurrent = false;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id', String, true),\n __metadata(\"design:type\", String)\n ], AllowedIPToStore.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('address'),\n __metadata(\"design:type\", Object)\n ], AllowedIPToStore.prototype, \"address\", void 0);\n __decorate([\n JsonProperty('comment', String, true),\n __metadata(\"design:type\", String)\n ], AllowedIPToStore.prototype, \"comment\", void 0);\n __decorate([\n JsonProperty('use_current', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], AllowedIPToStore.prototype, \"useCurrent\", void 0);\n AllowedIPToStore = __decorate([\n JsonObject('AllowedIPToStore'),\n __metadata(\"design:paramtypes\", [Object])\n ], AllowedIPToStore);\n return AllowedIPToStore;\n}());\nexport { AllowedIPToStore };\nvar ListedAllowedIP = (function () {\n function ListedAllowedIP(partial) {\n this.id = '';\n this.address = '';\n this.comment = undefined;\n this.includesCurrent = false;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], ListedAllowedIP.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('address'),\n __metadata(\"design:type\", Object)\n ], ListedAllowedIP.prototype, \"address\", void 0);\n __decorate([\n JsonProperty('comment', String, true),\n __metadata(\"design:type\", String)\n ], ListedAllowedIP.prototype, \"comment\", void 0);\n __decorate([\n JsonProperty('includes_current', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], ListedAllowedIP.prototype, \"includesCurrent\", void 0);\n ListedAllowedIP = __decorate([\n JsonObject('ListedAllowedIP'),\n __metadata(\"design:paramtypes\", [Object])\n ], ListedAllowedIP);\n return ListedAllowedIP;\n}());\nexport { ListedAllowedIP };\nvar AccessList = (function () {\n function AccessList(partial) {\n this.listedAllowedIPs = [];\n this.currentIP = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('allowed_ips', [ListedAllowedIP]),\n __metadata(\"design:type\", Array)\n ], AccessList.prototype, \"listedAllowedIPs\", void 0);\n __decorate([\n JsonProperty('current_ip'),\n __metadata(\"design:type\", Object)\n ], AccessList.prototype, \"currentIP\", void 0);\n AccessList = __decorate([\n JsonObject('AccessList'),\n __metadata(\"design:paramtypes\", [Object])\n ], AccessList);\n return AccessList;\n}());\nexport { AccessList };\n//# sourceMappingURL=IPAccess.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { DateConverter } from '../../Converter';\nimport createStringMapSerializers from '../common/createStringMapSerializers';\nimport { Any, JsonConverter, JsonObject, JsonProperty } from 'json2typescript';\nvar FunctionCallLogItem = (function () {\n function FunctionCallLogItem(partial) {\n this.name = '';\n this.arguments = undefined;\n this.service = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], FunctionCallLogItem.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('arguments', Any, true),\n __metadata(\"design:type\", Object)\n ], FunctionCallLogItem.prototype, \"arguments\", void 0);\n __decorate([\n JsonProperty('service', String, true),\n __metadata(\"design:type\", String)\n ], FunctionCallLogItem.prototype, \"service\", void 0);\n FunctionCallLogItem = __decorate([\n JsonObject('FunctionCallLogItem'),\n __metadata(\"design:paramtypes\", [Object])\n ], FunctionCallLogItem);\n return FunctionCallLogItem;\n}());\nexport { FunctionCallLogItem };\nexport var AuthEventType;\n(function (AuthEventType) {\n AuthEventType[\"Login\"] = \"login\";\n AuthEventType[\"Logout\"] = \"logout\";\n AuthEventType[\"Other\"] = \"other\";\n})(AuthEventType || (AuthEventType = {}));\nvar AuthEvent = (function () {\n function AuthEvent(partial) {\n this.failed = undefined;\n this.type = AuthEventType.Other;\n this.provider = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('failed', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], AuthEvent.prototype, \"failed\", void 0);\n __decorate([\n JsonProperty('type', Any, true),\n __metadata(\"design:type\", String)\n ], AuthEvent.prototype, \"type\", void 0);\n __decorate([\n JsonProperty('provider'),\n __metadata(\"design:type\", Object)\n ], AuthEvent.prototype, \"provider\", void 0);\n AuthEvent = __decorate([\n JsonObject('AuthEvent'),\n __metadata(\"design:paramtypes\", [Object])\n ], AuthEvent);\n return AuthEvent;\n}());\nexport { AuthEvent };\nvar RoleMetrics = (function () {\n function RoleMetrics(partial) {\n this.matchingDocuments = 0;\n this.evaluatedFields = 0;\n this.discardedFields = 0;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('matching_documents'),\n __metadata(\"design:type\", Object)\n ], RoleMetrics.prototype, \"matchingDocuments\", void 0);\n __decorate([\n JsonProperty('evaluated_fields'),\n __metadata(\"design:type\", Object)\n ], RoleMetrics.prototype, \"evaluatedFields\", void 0);\n __decorate([\n JsonProperty('discarded_fields'),\n __metadata(\"design:type\", Object)\n ], RoleMetrics.prototype, \"discardedFields\", void 0);\n RoleMetrics = __decorate([\n JsonObject('RoleMetrics'),\n __metadata(\"design:paramtypes\", [Object])\n ], RoleMetrics);\n return RoleMetrics;\n}());\nexport { RoleMetrics };\nvar roleMetricsMapSerializers = createStringMapSerializers(RoleMetrics);\nvar RoleMetricsMapConverter = (function () {\n function RoleMetricsMapConverter() {\n this.serialize = roleMetricsMapSerializers.serialize;\n this.deserialize = roleMetricsMapSerializers.deserialize;\n }\n RoleMetricsMapConverter = __decorate([\n JsonConverter\n ], RoleMetricsMapConverter);\n return RoleMetricsMapConverter;\n}());\nvar NamespaceMetrics = (function () {\n function NamespaceMetrics(partial) {\n this.roles = {};\n this.noMatchingRole = 0;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('roles', RoleMetricsMapConverter, true),\n __metadata(\"design:type\", Object)\n ], NamespaceMetrics.prototype, \"roles\", void 0);\n __decorate([\n JsonProperty('no_matching_role'),\n __metadata(\"design:type\", Object)\n ], NamespaceMetrics.prototype, \"noMatchingRole\", void 0);\n NamespaceMetrics = __decorate([\n JsonObject('NamespaceMetrics'),\n __metadata(\"design:paramtypes\", [Object])\n ], NamespaceMetrics);\n return NamespaceMetrics;\n}());\nexport { NamespaceMetrics };\nvar namespaceMetricsMapSerializers = createStringMapSerializers(NamespaceMetrics);\nvar NamespaceMetricsMapConverter = (function () {\n function NamespaceMetricsMapConverter() {\n this.serialize = namespaceMetricsMapSerializers.serialize;\n this.deserialize = namespaceMetricsMapSerializers.deserialize;\n }\n NamespaceMetricsMapConverter = __decorate([\n JsonConverter\n ], NamespaceMetricsMapConverter);\n return NamespaceMetricsMapConverter;\n}());\nvar RuleMetrics = (function () {\n function RuleMetrics(partial) {\n this.namespacesMetrics = {};\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('namespaces_metrics', NamespaceMetricsMapConverter),\n __metadata(\"design:type\", Object)\n ], RuleMetrics.prototype, \"namespacesMetrics\", void 0);\n RuleMetrics = __decorate([\n JsonObject('RuleMetrics'),\n __metadata(\"design:paramtypes\", [Object])\n ], RuleMetrics);\n return RuleMetrics;\n}());\nexport { RuleMetrics };\nvar SyncSessionMetrics = (function () {\n function SyncSessionMetrics(partial) {\n this.uploads = undefined;\n this.downloads = undefined;\n this.errors = undefined;\n this.changesets = undefined;\n this.dirtyChangesets = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('uploads', Number, true),\n __metadata(\"design:type\", Number)\n ], SyncSessionMetrics.prototype, \"uploads\", void 0);\n __decorate([\n JsonProperty('downloads', Number, true),\n __metadata(\"design:type\", Number)\n ], SyncSessionMetrics.prototype, \"downloads\", void 0);\n __decorate([\n JsonProperty('errors', Number, true),\n __metadata(\"design:type\", Number)\n ], SyncSessionMetrics.prototype, \"errors\", void 0);\n __decorate([\n JsonProperty('changesets', Number, true),\n __metadata(\"design:type\", Number)\n ], SyncSessionMetrics.prototype, \"changesets\", void 0);\n __decorate([\n JsonProperty('dirty_changesets', Number, true),\n __metadata(\"design:type\", Number)\n ], SyncSessionMetrics.prototype, \"dirtyChangesets\", void 0);\n SyncSessionMetrics = __decorate([\n JsonObject('SyncSessionMetrics'),\n __metadata(\"design:paramtypes\", [Object])\n ], SyncSessionMetrics);\n return SyncSessionMetrics;\n}());\nexport { SyncSessionMetrics };\nvar ModifiedDocIDsByOpType = (function () {\n function ModifiedDocIDsByOpType(partial) {\n this.inserted = undefined;\n this.updated = undefined;\n this.deleted = undefined;\n this.replaced = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('inserted', Any, true),\n __metadata(\"design:type\", Array)\n ], ModifiedDocIDsByOpType.prototype, \"inserted\", void 0);\n __decorate([\n JsonProperty('updated', Any, true),\n __metadata(\"design:type\", Array)\n ], ModifiedDocIDsByOpType.prototype, \"updated\", void 0);\n __decorate([\n JsonProperty('deleted', Any, true),\n __metadata(\"design:type\", Array)\n ], ModifiedDocIDsByOpType.prototype, \"deleted\", void 0);\n __decorate([\n JsonProperty('replaced', Any, true),\n __metadata(\"design:type\", Array)\n ], ModifiedDocIDsByOpType.prototype, \"replaced\", void 0);\n ModifiedDocIDsByOpType = __decorate([\n JsonObject('ModifiedDocIDsByOpType'),\n __metadata(\"design:paramtypes\", [Object])\n ], ModifiedDocIDsByOpType);\n return ModifiedDocIDsByOpType;\n}());\nexport { ModifiedDocIDsByOpType };\nvar modifiedDocIDsByOpTypeMapSerializers = createStringMapSerializers(ModifiedDocIDsByOpType);\nvar ModifiedDocIDsByOpTypeMapConverter = (function () {\n function ModifiedDocIDsByOpTypeMapConverter() {\n this.serialize = modifiedDocIDsByOpTypeMapSerializers.serialize;\n this.deserialize = modifiedDocIDsByOpTypeMapSerializers.deserialize;\n }\n ModifiedDocIDsByOpTypeMapConverter = __decorate([\n JsonConverter\n ], ModifiedDocIDsByOpTypeMapConverter);\n return ModifiedDocIDsByOpTypeMapConverter;\n}());\nvar RequestLogItem = (function () {\n function RequestLogItem(partial) {\n this.id = '';\n this.coId = '';\n this.type = '';\n this.requestUrl = '';\n this.requestMethod = '';\n this.userId = undefined;\n this.domainId = undefined;\n this.appId = undefined;\n this.groupId = undefined;\n this.serviceId = undefined;\n this.remoteIpAddress = undefined;\n this.started = undefined;\n this.completed = undefined;\n this.functionCallLocation = undefined;\n this.functionCall = undefined;\n this.functionId = undefined;\n this.functionName = undefined;\n this.incomingWebhookArgs = undefined;\n this.incomingWebhookId = undefined;\n this.incomingWebhookName = undefined;\n this.error = undefined;\n this.errorCode = undefined;\n this.errorDetails = undefined;\n this.eventSubscriptionId = undefined;\n this.eventSubscriptionName = undefined;\n this.status = undefined;\n this.messages = undefined;\n this.authEvent = undefined;\n this.memTimeUsage = undefined;\n this.ruleMetrics = undefined;\n this.platform = undefined;\n this.platformVersion = undefined;\n this.sdkName = undefined;\n this.sdkVersion = undefined;\n this.graphqlQuery = undefined;\n this.syncPartition = undefined;\n this.syncQuery = undefined;\n this.syncSessionMetrics = undefined;\n this.syncWriteSummary = undefined;\n this.syncIsFromMdb = undefined;\n this.documentKey = undefined;\n this.endpointArgs = undefined;\n this.endpointId = undefined;\n this.endpointRoute = undefined;\n this.logForwarderID = undefined;\n this.logForwarderName = undefined;\n this.failedToForwardLogIDs = undefined;\n this.dataSourceID = undefined;\n this.dataSourceName = undefined;\n this.dataSourceNamespace = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], RequestLogItem.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('co_id'),\n __metadata(\"design:type\", Object)\n ], RequestLogItem.prototype, \"coId\", void 0);\n __decorate([\n JsonProperty('type'),\n __metadata(\"design:type\", Object)\n ], RequestLogItem.prototype, \"type\", void 0);\n __decorate([\n JsonProperty('request_url'),\n __metadata(\"design:type\", Object)\n ], RequestLogItem.prototype, \"requestUrl\", void 0);\n __decorate([\n JsonProperty('request_method'),\n __metadata(\"design:type\", Object)\n ], RequestLogItem.prototype, \"requestMethod\", void 0);\n __decorate([\n JsonProperty('user_id', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"userId\", void 0);\n __decorate([\n JsonProperty('domain_id', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"domainId\", void 0);\n __decorate([\n JsonProperty('app_id', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"appId\", void 0);\n __decorate([\n JsonProperty('group_id', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"groupId\", void 0);\n __decorate([\n JsonProperty('service_id', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"serviceId\", void 0);\n __decorate([\n JsonProperty('remote_ip_address', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"remoteIpAddress\", void 0);\n __decorate([\n JsonProperty('started', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"started\", void 0);\n __decorate([\n JsonProperty('completed', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"completed\", void 0);\n __decorate([\n JsonProperty('function_call_location', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"functionCallLocation\", void 0);\n __decorate([\n JsonProperty('function_call', FunctionCallLogItem, true),\n __metadata(\"design:type\", FunctionCallLogItem)\n ], RequestLogItem.prototype, \"functionCall\", void 0);\n __decorate([\n JsonProperty('function_id', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"functionId\", void 0);\n __decorate([\n JsonProperty('function_name', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"functionName\", void 0);\n __decorate([\n JsonProperty('incoming_webhook_args', Any, true),\n __metadata(\"design:type\", Object)\n ], RequestLogItem.prototype, \"incomingWebhookArgs\", void 0);\n __decorate([\n JsonProperty('incoming_webhook_id', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"incomingWebhookId\", void 0);\n __decorate([\n JsonProperty('incoming_webhook_name', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"incomingWebhookName\", void 0);\n __decorate([\n JsonProperty('error', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"error\", void 0);\n __decorate([\n JsonProperty('error_code', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"errorCode\", void 0);\n __decorate([\n JsonProperty('error_details', Any, true),\n __metadata(\"design:type\", Object)\n ], RequestLogItem.prototype, \"errorDetails\", void 0);\n __decorate([\n JsonProperty('event_subscription_id', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"eventSubscriptionId\", void 0);\n __decorate([\n JsonProperty('event_subscription_name', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"eventSubscriptionName\", void 0);\n __decorate([\n JsonProperty('status', Number, true),\n __metadata(\"design:type\", Number)\n ], RequestLogItem.prototype, \"status\", void 0);\n __decorate([\n JsonProperty('messages', Any, true),\n __metadata(\"design:type\", Array)\n ], RequestLogItem.prototype, \"messages\", void 0);\n __decorate([\n JsonProperty('auth_event', AuthEvent, true),\n __metadata(\"design:type\", AuthEvent)\n ], RequestLogItem.prototype, \"authEvent\", void 0);\n __decorate([\n JsonProperty('mem_time_usage', Number, true),\n __metadata(\"design:type\", Number)\n ], RequestLogItem.prototype, \"memTimeUsage\", void 0);\n __decorate([\n JsonProperty('rule_metrics', RuleMetrics, true),\n __metadata(\"design:type\", RuleMetrics)\n ], RequestLogItem.prototype, \"ruleMetrics\", void 0);\n __decorate([\n JsonProperty('platform', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"platform\", void 0);\n __decorate([\n JsonProperty('platform_version', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"platformVersion\", void 0);\n __decorate([\n JsonProperty('sdk_name', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"sdkName\", void 0);\n __decorate([\n JsonProperty('sdk_version', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"sdkVersion\", void 0);\n __decorate([\n JsonProperty('graphql_query', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"graphqlQuery\", void 0);\n __decorate([\n JsonProperty('sync_partition', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"syncPartition\", void 0);\n __decorate([\n JsonProperty('sync_query', Any, true),\n __metadata(\"design:type\", Object)\n ], RequestLogItem.prototype, \"syncQuery\", void 0);\n __decorate([\n JsonProperty('sync_session_metrics', SyncSessionMetrics, true),\n __metadata(\"design:type\", SyncSessionMetrics)\n ], RequestLogItem.prototype, \"syncSessionMetrics\", void 0);\n __decorate([\n JsonProperty('sync_write_summary', ModifiedDocIDsByOpTypeMapConverter, true),\n __metadata(\"design:type\", Object)\n ], RequestLogItem.prototype, \"syncWriteSummary\", void 0);\n __decorate([\n JsonProperty('sync_is_from_mdb', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], RequestLogItem.prototype, \"syncIsFromMdb\", void 0);\n __decorate([\n JsonProperty('document_key', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"documentKey\", void 0);\n __decorate([\n JsonProperty('endpoint_args', Any, true),\n __metadata(\"design:type\", Object)\n ], RequestLogItem.prototype, \"endpointArgs\", void 0);\n __decorate([\n JsonProperty('endpoint_id', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"endpointId\", void 0);\n __decorate([\n JsonProperty('endpoint_route', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"endpointRoute\", void 0);\n __decorate([\n JsonProperty('log_forwarder_id', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"logForwarderID\", void 0);\n __decorate([\n JsonProperty('log_forwarder_name', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"logForwarderName\", void 0);\n __decorate([\n JsonProperty('failed_to_forward_log_ids', [String], true),\n __metadata(\"design:type\", Array)\n ], RequestLogItem.prototype, \"failedToForwardLogIDs\", void 0);\n __decorate([\n JsonProperty('data_source_id', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"dataSourceID\", void 0);\n __decorate([\n JsonProperty('data_source_name', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"dataSourceName\", void 0);\n __decorate([\n JsonProperty('data_source_namespace', String, true),\n __metadata(\"design:type\", String)\n ], RequestLogItem.prototype, \"dataSourceNamespace\", void 0);\n RequestLogItem = __decorate([\n JsonObject('RequestLogItem'),\n __metadata(\"design:paramtypes\", [Object])\n ], RequestLogItem);\n return RequestLogItem;\n}());\nexport { RequestLogItem };\nvar AppLogResponse = (function () {\n function AppLogResponse(partial) {\n this.logs = [];\n this.nextEndDate = undefined;\n this.nextSkip = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('logs', [RequestLogItem]),\n __metadata(\"design:type\", Array)\n ], AppLogResponse.prototype, \"logs\", void 0);\n __decorate([\n JsonProperty('nextEndDate', DateConverter, true),\n __metadata(\"design:type\", Date)\n ], AppLogResponse.prototype, \"nextEndDate\", void 0);\n __decorate([\n JsonProperty('nextSkip', Number, true),\n __metadata(\"design:type\", Number)\n ], AppLogResponse.prototype, \"nextSkip\", void 0);\n AppLogResponse = __decorate([\n JsonObject('AppLogResponse'),\n __metadata(\"design:paramtypes\", [Object])\n ], AppLogResponse);\n return AppLogResponse;\n}());\nexport { AppLogResponse };\n//# sourceMappingURL=Log.js.map","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonConvert, JsonConverter, JsonObject, JsonProperty } from 'json2typescript';\nexport var LogType;\n(function (LogType) {\n LogType[\"AUTH\"] = \"auth\";\n LogType[\"FUNCTION\"] = \"function\";\n LogType[\"PUSH\"] = \"push\";\n LogType[\"SERVICE\"] = \"service\";\n LogType[\"TRIGGER\"] = \"trigger\";\n LogType[\"GRAPHQL\"] = \"graphql\";\n LogType[\"SYNC\"] = \"sync\";\n LogType[\"SCHEMA\"] = \"schema\";\n LogType[\"ENDPOINT\"] = \"endpoint\";\n})(LogType || (LogType = {}));\nexport var LogStatus;\n(function (LogStatus) {\n LogStatus[\"SUCCESS\"] = \"success\";\n LogStatus[\"ERROR\"] = \"error\";\n})(LogStatus || (LogStatus = {}));\nexport var LogPolicyType;\n(function (LogPolicyType) {\n LogPolicyType[\"SINGLE\"] = \"single\";\n LogPolicyType[\"BATCH\"] = \"batch\";\n})(LogPolicyType || (LogPolicyType = {}));\nvar LogPolicy = (function () {\n function LogPolicy(required) {\n this.type = LogPolicyType.SINGLE;\n Object.assign(this, required);\n }\n __decorate([\n JsonProperty('type', String),\n __metadata(\"design:type\", String)\n ], LogPolicy.prototype, \"type\", void 0);\n LogPolicy = __decorate([\n JsonObject('LogPolicy'),\n __metadata(\"design:paramtypes\", [Object])\n ], LogPolicy);\n return LogPolicy;\n}());\nvar SingleLogPolicy = (function (_super) {\n __extends(SingleLogPolicy, _super);\n function SingleLogPolicy(required) {\n var _this = _super.call(this, __assign(__assign({}, required), { type: LogPolicyType.SINGLE })) || this;\n Object.assign(_this, required);\n return _this;\n }\n SingleLogPolicy = __decorate([\n JsonObject('SingleLogPolicy'),\n __metadata(\"design:paramtypes\", [Object])\n ], SingleLogPolicy);\n return SingleLogPolicy;\n}(LogPolicy));\nexport { SingleLogPolicy };\nvar BatchLogPolicy = (function (_super) {\n __extends(BatchLogPolicy, _super);\n function BatchLogPolicy(required) {\n var _this = _super.call(this, __assign(__assign({}, required), { type: LogPolicyType.BATCH })) || this;\n Object.assign(_this, required);\n return _this;\n }\n BatchLogPolicy = __decorate([\n JsonObject('BatchLogPolicy'),\n __metadata(\"design:paramtypes\", [Object])\n ], BatchLogPolicy);\n return BatchLogPolicy;\n}(LogPolicy));\nexport { BatchLogPolicy };\nexport var LogForwardingActionType;\n(function (LogForwardingActionType) {\n LogForwardingActionType[\"FUNCTION\"] = \"function\";\n LogForwardingActionType[\"COLLECTION\"] = \"collection\";\n})(LogForwardingActionType || (LogForwardingActionType = {}));\nvar LogForwardingAction = (function () {\n function LogForwardingAction(required) {\n this.id = '';\n this.type = LogForwardingActionType.FUNCTION;\n Object.assign(this, required);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], LogForwardingAction.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('type', String),\n __metadata(\"design:type\", String)\n ], LogForwardingAction.prototype, \"type\", void 0);\n LogForwardingAction = __decorate([\n JsonObject('LogForwardingAction'),\n __metadata(\"design:paramtypes\", [Object])\n ], LogForwardingAction);\n return LogForwardingAction;\n}());\nvar FunctionForwardingAction = (function (_super) {\n __extends(FunctionForwardingAction, _super);\n function FunctionForwardingAction(required) {\n var _this = _super.call(this, required) || this;\n Object.assign(_this, required);\n return _this;\n }\n FunctionForwardingAction = __decorate([\n JsonObject('FunctionForwardingAction'),\n __metadata(\"design:paramtypes\", [Object])\n ], FunctionForwardingAction);\n return FunctionForwardingAction;\n}(LogForwardingAction));\nexport { FunctionForwardingAction };\nvar CollectionForwardingAction = (function (_super) {\n __extends(CollectionForwardingAction, _super);\n function CollectionForwardingAction(required) {\n var _this = _super.call(this, required) || this;\n _this.database = '';\n _this.collection = '';\n Object.assign(_this, required);\n return _this;\n }\n __decorate([\n JsonProperty('database'),\n __metadata(\"design:type\", Object)\n ], CollectionForwardingAction.prototype, \"database\", void 0);\n __decorate([\n JsonProperty('collection', String),\n __metadata(\"design:type\", Object)\n ], CollectionForwardingAction.prototype, \"collection\", void 0);\n CollectionForwardingAction = __decorate([\n JsonObject('CollectionForwardingAction'),\n __metadata(\"design:paramtypes\", [Object])\n ], CollectionForwardingAction);\n return CollectionForwardingAction;\n}(LogForwardingAction));\nexport { CollectionForwardingAction };\nvar jsonConvert = new JsonConvert();\nvar ActionConverter = (function () {\n function ActionConverter() {\n }\n ActionConverter.prototype.serialize = function (action) {\n var _a;\n var type = (_a = action.type) !== null && _a !== void 0 ? _a : '';\n switch (type) {\n case LogForwardingActionType.FUNCTION:\n return jsonConvert.serializeObject(action, FunctionForwardingAction);\n case LogForwardingActionType.COLLECTION:\n return jsonConvert.serializeObject(action, CollectionForwardingAction);\n default:\n throw new Error('unexpected action type');\n }\n };\n ActionConverter.prototype.deserialize = function (data) {\n if ('type' in data) {\n var type = data.type;\n switch (type) {\n case LogForwardingActionType.FUNCTION:\n return jsonConvert.deserializeObject(data, FunctionForwardingAction);\n case LogForwardingActionType.COLLECTION:\n return jsonConvert.deserializeObject(data, CollectionForwardingAction);\n default:\n throw new Error('unexpected action type');\n }\n }\n throw new Error('unexpected action type');\n };\n ActionConverter = __decorate([\n JsonConverter\n ], ActionConverter);\n return ActionConverter;\n}());\nvar LogForwarder = (function () {\n function LogForwarder(required) {\n this.id = '';\n this.name = '';\n this.logTypes = [];\n this.logStatuses = [];\n this.policy = new LogPolicy();\n this.action = new LogForwardingAction();\n this.disabled = false;\n this.error = undefined;\n this.errorCoId = undefined;\n Object.assign(this, required);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], LogForwarder.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], LogForwarder.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('log_types', [String]),\n __metadata(\"design:type\", Array)\n ], LogForwarder.prototype, \"logTypes\", void 0);\n __decorate([\n JsonProperty('log_statuses', [String]),\n __metadata(\"design:type\", Array)\n ], LogForwarder.prototype, \"logStatuses\", void 0);\n __decorate([\n JsonProperty('policy'),\n __metadata(\"design:type\", LogPolicy)\n ], LogForwarder.prototype, \"policy\", void 0);\n __decorate([\n JsonProperty('action', ActionConverter),\n __metadata(\"design:type\", LogForwardingAction)\n ], LogForwarder.prototype, \"action\", void 0);\n __decorate([\n JsonProperty('disabled'),\n __metadata(\"design:type\", Object)\n ], LogForwarder.prototype, \"disabled\", void 0);\n __decorate([\n JsonProperty('error', String, true),\n __metadata(\"design:type\", String)\n ], LogForwarder.prototype, \"error\", void 0);\n __decorate([\n JsonProperty('error_co_id', String, true),\n __metadata(\"design:type\", String)\n ], LogForwarder.prototype, \"errorCoId\", void 0);\n LogForwarder = __decorate([\n JsonObject('LogForwarder'),\n __metadata(\"design:paramtypes\", [Object])\n ], LogForwarder);\n return LogForwarder;\n}());\nexport { LogForwarder };\nvar CreateLogForwarderRequest = (function () {\n function CreateLogForwarderRequest(required) {\n this.name = '';\n this.logTypes = [];\n this.logStatuses = [];\n this.policy = new LogPolicy();\n this.action = new LogForwardingAction();\n this.disabled = false;\n Object.assign(this, required);\n }\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], CreateLogForwarderRequest.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('log_types', [String]),\n __metadata(\"design:type\", Array)\n ], CreateLogForwarderRequest.prototype, \"logTypes\", void 0);\n __decorate([\n JsonProperty('log_statuses', [String]),\n __metadata(\"design:type\", Array)\n ], CreateLogForwarderRequest.prototype, \"logStatuses\", void 0);\n __decorate([\n JsonProperty('policy'),\n __metadata(\"design:type\", LogPolicy)\n ], CreateLogForwarderRequest.prototype, \"policy\", void 0);\n __decorate([\n JsonProperty('action', ActionConverter),\n __metadata(\"design:type\", LogForwardingAction)\n ], CreateLogForwarderRequest.prototype, \"action\", void 0);\n __decorate([\n JsonProperty('disabled'),\n __metadata(\"design:type\", Object)\n ], CreateLogForwarderRequest.prototype, \"disabled\", void 0);\n CreateLogForwarderRequest = __decorate([\n JsonObject('CreateLogForwarderRequest'),\n __metadata(\"design:paramtypes\", [Object])\n ], CreateLogForwarderRequest);\n return CreateLogForwarderRequest;\n}());\nexport { CreateLogForwarderRequest };\nvar PatchLogForwarderRequest = (function () {\n function PatchLogForwarderRequest(partial) {\n this.name = undefined;\n this.logTypes = undefined;\n this.logStatuses = undefined;\n this.policy = undefined;\n this.action = undefined;\n this.disabled = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('name', String, true),\n __metadata(\"design:type\", String)\n ], PatchLogForwarderRequest.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('log_types', [String], true),\n __metadata(\"design:type\", Array)\n ], PatchLogForwarderRequest.prototype, \"logTypes\", void 0);\n __decorate([\n JsonProperty('log_statuses', [String], true),\n __metadata(\"design:type\", Array)\n ], PatchLogForwarderRequest.prototype, \"logStatuses\", void 0);\n __decorate([\n JsonProperty('policy', LogPolicy, true),\n __metadata(\"design:type\", LogPolicy)\n ], PatchLogForwarderRequest.prototype, \"policy\", void 0);\n __decorate([\n JsonProperty('action', ActionConverter, true),\n __metadata(\"design:type\", LogForwardingAction)\n ], PatchLogForwarderRequest.prototype, \"action\", void 0);\n __decorate([\n JsonProperty('disabled', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], PatchLogForwarderRequest.prototype, \"disabled\", void 0);\n PatchLogForwarderRequest = __decorate([\n JsonObject('PatchLogForwarderRequest'),\n __metadata(\"design:paramtypes\", [Object])\n ], PatchLogForwarderRequest);\n return PatchLogForwarderRequest;\n}());\nexport { PatchLogForwarderRequest };\n//# sourceMappingURL=LogForwarder.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { DateConverter, dateToISO8601 } from '../../Converter';\nimport { JsonObject, JsonProperty } from 'json2typescript';\nexport var MeasurementGroupGranularity;\n(function (MeasurementGroupGranularity) {\n MeasurementGroupGranularity[\"Monthly\"] = \"P31D\";\n MeasurementGroupGranularity[\"Hourly\"] = \"PT1H\";\n})(MeasurementGroupGranularity || (MeasurementGroupGranularity = {}));\nvar DataPoint = (function () {\n function DataPoint(partial) {\n this.timestamp = new Date();\n this.value = 0;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('timestamp'),\n __metadata(\"design:type\", Date)\n ], DataPoint.prototype, \"timestamp\", void 0);\n __decorate([\n JsonProperty('value'),\n __metadata(\"design:type\", Object)\n ], DataPoint.prototype, \"value\", void 0);\n DataPoint = __decorate([\n JsonObject('DataPoint'),\n __metadata(\"design:paramtypes\", [Object])\n ], DataPoint);\n return DataPoint;\n}());\nexport { DataPoint };\nexport var MeasurementName;\n(function (MeasurementName) {\n MeasurementName[\"ComputeTime\"] = \"compute_time\";\n MeasurementName[\"DataOut\"] = \"data_out\";\n MeasurementName[\"RequestCount\"] = \"request_count\";\n MeasurementName[\"SyncTime\"] = \"sync_time\";\n})(MeasurementName || (MeasurementName = {}));\nexport var MeasurementUnit;\n(function (MeasurementUnit) {\n MeasurementUnit[\"None\"] = \"\";\n MeasurementUnit[\"Gigabytes\"] = \"GIGABYTES\";\n MeasurementUnit[\"GigabyteSeconds\"] = \"GIGABYTE_SECONDS\";\n MeasurementUnit[\"Hours\"] = \"HOURS\";\n})(MeasurementUnit || (MeasurementUnit = {}));\nvar Measurement = (function () {\n function Measurement(partial) {\n this.name = MeasurementName.DataOut;\n this.units = MeasurementUnit.None;\n this.dataPoints = [];\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", String)\n ], Measurement.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('units'),\n __metadata(\"design:type\", String)\n ], Measurement.prototype, \"units\", void 0);\n __decorate([\n JsonProperty('data_points', [DataPoint]),\n __metadata(\"design:type\", Array)\n ], Measurement.prototype, \"dataPoints\", void 0);\n Measurement = __decorate([\n JsonObject('Measurement'),\n __metadata(\"design:paramtypes\", [Object])\n ], Measurement);\n return Measurement;\n}());\nexport { Measurement };\nvar AppMeasurementGroup = (function () {\n function AppMeasurementGroup(partial) {\n this.appName = '';\n this.groupId = '';\n this.appId = '';\n this.start = new Date();\n this.end = new Date();\n this.granularity = MeasurementGroupGranularity.Monthly;\n this.measurements = [];\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('app_name'),\n __metadata(\"design:type\", Object)\n ], AppMeasurementGroup.prototype, \"appName\", void 0);\n __decorate([\n JsonProperty('group_id'),\n __metadata(\"design:type\", Object)\n ], AppMeasurementGroup.prototype, \"groupId\", void 0);\n __decorate([\n JsonProperty('app_id'),\n __metadata(\"design:type\", Object)\n ], AppMeasurementGroup.prototype, \"appId\", void 0);\n __decorate([\n JsonProperty('start', DateConverter),\n __metadata(\"design:type\", Date)\n ], AppMeasurementGroup.prototype, \"start\", void 0);\n __decorate([\n JsonProperty('end', DateConverter),\n __metadata(\"design:type\", Date)\n ], AppMeasurementGroup.prototype, \"end\", void 0);\n __decorate([\n JsonProperty('granularity'),\n __metadata(\"design:type\", String)\n ], AppMeasurementGroup.prototype, \"granularity\", void 0);\n __decorate([\n JsonProperty('measurements', [Measurement]),\n __metadata(\"design:type\", Array)\n ], AppMeasurementGroup.prototype, \"measurements\", void 0);\n AppMeasurementGroup = __decorate([\n JsonObject('AppMeasurementGroup'),\n __metadata(\"design:paramtypes\", [Object])\n ], AppMeasurementGroup);\n return AppMeasurementGroup;\n}());\nexport { AppMeasurementGroup };\nvar GroupMeasurementGroup = (function () {\n function GroupMeasurementGroup(partial) {\n this.groupId = '';\n this.start = new Date();\n this.end = new Date();\n this.granularity = MeasurementGroupGranularity.Monthly;\n this.measurements = [];\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('group_id'),\n __metadata(\"design:type\", Object)\n ], GroupMeasurementGroup.prototype, \"groupId\", void 0);\n __decorate([\n JsonProperty('start', DateConverter),\n __metadata(\"design:type\", Date)\n ], GroupMeasurementGroup.prototype, \"start\", void 0);\n __decorate([\n JsonProperty('end', DateConverter),\n __metadata(\"design:type\", Date)\n ], GroupMeasurementGroup.prototype, \"end\", void 0);\n __decorate([\n JsonProperty('granularity'),\n __metadata(\"design:type\", String)\n ], GroupMeasurementGroup.prototype, \"granularity\", void 0);\n __decorate([\n JsonProperty('measurements', [Measurement]),\n __metadata(\"design:type\", Array)\n ], GroupMeasurementGroup.prototype, \"measurements\", void 0);\n GroupMeasurementGroup = __decorate([\n JsonObject('GroupMeasurementGroup'),\n __metadata(\"design:paramtypes\", [Object])\n ], GroupMeasurementGroup);\n return GroupMeasurementGroup;\n}());\nexport { GroupMeasurementGroup };\nexport function getMeasurementFilter(request) {\n if (!request) {\n return undefined;\n }\n var filter = {};\n if (request.start) {\n filter.start = dateToISO8601(request.start);\n }\n if (request.end) {\n filter.end = dateToISO8601(request.end);\n }\n if (request.granularity) {\n filter.granularity = request.granularity;\n }\n return filter;\n}\n//# sourceMappingURL=Measurement.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonObject, JsonProperty } from 'json2typescript';\nexport var MessageState;\n(function (MessageState) {\n MessageState[\"Draft\"] = \"draft\";\n MessageState[\"Sent\"] = \"sent\";\n})(MessageState || (MessageState = {}));\nvar PushNotification = (function () {\n function PushNotification(partial) {\n this.id = '';\n this.appId = '';\n this.state = MessageState.Draft;\n this.topic = '';\n this.message = '';\n this.label = '';\n this.created = new Date(0);\n this.sent = new Date(0);\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], PushNotification.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('appID'),\n __metadata(\"design:type\", Object)\n ], PushNotification.prototype, \"appId\", void 0);\n __decorate([\n JsonProperty('state'),\n __metadata(\"design:type\", String)\n ], PushNotification.prototype, \"state\", void 0);\n __decorate([\n JsonProperty('topic'),\n __metadata(\"design:type\", Object)\n ], PushNotification.prototype, \"topic\", void 0);\n __decorate([\n JsonProperty('message'),\n __metadata(\"design:type\", Object)\n ], PushNotification.prototype, \"message\", void 0);\n __decorate([\n JsonProperty('label'),\n __metadata(\"design:type\", Object)\n ], PushNotification.prototype, \"label\", void 0);\n __decorate([\n JsonProperty('created'),\n __metadata(\"design:type\", Date)\n ], PushNotification.prototype, \"created\", void 0);\n __decorate([\n JsonProperty('sent'),\n __metadata(\"design:type\", Date)\n ], PushNotification.prototype, \"sent\", void 0);\n PushNotification = __decorate([\n JsonObject('PushNotification'),\n __metadata(\"design:paramtypes\", [Object])\n ], PushNotification);\n return PushNotification;\n}());\nexport { PushNotification };\nvar SendNotificationRequest = (function () {\n function SendNotificationRequest(partial) {\n this.topic = '';\n this.message = '';\n this.label = '';\n this.state = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('topic'),\n __metadata(\"design:type\", Object)\n ], SendNotificationRequest.prototype, \"topic\", void 0);\n __decorate([\n JsonProperty('message'),\n __metadata(\"design:type\", Object)\n ], SendNotificationRequest.prototype, \"message\", void 0);\n __decorate([\n JsonProperty('label'),\n __metadata(\"design:type\", Object)\n ], SendNotificationRequest.prototype, \"label\", void 0);\n __decorate([\n JsonProperty('state'),\n __metadata(\"design:type\", Object)\n ], SendNotificationRequest.prototype, \"state\", void 0);\n SendNotificationRequest = __decorate([\n JsonObject('SendNotificationRequest'),\n __metadata(\"design:paramtypes\", [Object])\n ], SendNotificationRequest);\n return SendNotificationRequest;\n}());\nexport { SendNotificationRequest };\n//# sourceMappingURL=Push.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonObject, JsonProperty } from 'json2typescript';\nvar Secret = (function () {\n function Secret(partial) {\n this.id = '';\n this.name = '';\n this.value = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], Secret.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], Secret.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('value', String, true),\n __metadata(\"design:type\", String)\n ], Secret.prototype, \"value\", void 0);\n Secret = __decorate([\n JsonObject('Secret'),\n __metadata(\"design:paramtypes\", [Object])\n ], Secret);\n return Secret;\n}());\nexport { Secret };\nvar PartialSecret = (function () {\n function PartialSecret(partial) {\n this.id = '';\n this.name = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], PartialSecret.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], PartialSecret.prototype, \"name\", void 0);\n PartialSecret = __decorate([\n JsonObject('PartialSecret'),\n __metadata(\"design:paramtypes\", [Object])\n ], PartialSecret);\n return PartialSecret;\n}());\nexport { PartialSecret };\n//# sourceMappingURL=Secret.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport createStringMapSerializers from '../common/createStringMapSerializers';\nimport { JsonConverter, JsonObject, JsonProperty } from 'json2typescript';\nexport var BypassServiceChangeValue;\n(function (BypassServiceChangeValue) {\n BypassServiceChangeValue[\"DestructiveChangeNotAllowed\"] = \"DestructiveChangeNotAllowed\";\n BypassServiceChangeValue[\"InvalidSyncSchema\"] = \"InvalidSyncSchema\";\n BypassServiceChangeValue[\"SyncProtocolIncrease\"] = \"SyncProtocolVersionIncrease\";\n BypassServiceChangeValue[\"DestructiveSyncProtocolIncrease\"] = \"DestructiveSyncProtocolVersionIncrease\";\n})(BypassServiceChangeValue || (BypassServiceChangeValue = {}));\nvar SyncClientSchemaAlert = (function () {\n function SyncClientSchemaAlert(partial) {\n this.errorCode = '';\n this.error = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('error_code'),\n __metadata(\"design:type\", Object)\n ], SyncClientSchemaAlert.prototype, \"errorCode\", void 0);\n __decorate([\n JsonProperty('error'),\n __metadata(\"design:type\", Object)\n ], SyncClientSchemaAlert.prototype, \"error\", void 0);\n SyncClientSchemaAlert = __decorate([\n JsonObject('SyncClientSchemaAlert'),\n __metadata(\"design:paramtypes\", [Object])\n ], SyncClientSchemaAlert);\n return SyncClientSchemaAlert;\n}());\nexport { SyncClientSchemaAlert };\nvar SyncClientSchema = (function () {\n function SyncClientSchema(partial) {\n this.serviceId = '';\n this.ruleId = '';\n this.schemaId = '';\n this.collectionDisplayName = '';\n this.modelName = '';\n this.importStatements = [];\n this.schema = '';\n this.warnings = [];\n this.error = new SyncClientSchemaAlert();\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('service_id'),\n __metadata(\"design:type\", Object)\n ], SyncClientSchema.prototype, \"serviceId\", void 0);\n __decorate([\n JsonProperty('rule_id'),\n __metadata(\"design:type\", Object)\n ], SyncClientSchema.prototype, \"ruleId\", void 0);\n __decorate([\n JsonProperty('schema_id'),\n __metadata(\"design:type\", Object)\n ], SyncClientSchema.prototype, \"schemaId\", void 0);\n __decorate([\n JsonProperty('collection_display_name'),\n __metadata(\"design:type\", Object)\n ], SyncClientSchema.prototype, \"collectionDisplayName\", void 0);\n __decorate([\n JsonProperty('model_name'),\n __metadata(\"design:type\", Object)\n ], SyncClientSchema.prototype, \"modelName\", void 0);\n __decorate([\n JsonProperty('import_statements'),\n __metadata(\"design:type\", Array)\n ], SyncClientSchema.prototype, \"importStatements\", void 0);\n __decorate([\n JsonProperty('schema'),\n __metadata(\"design:type\", Object)\n ], SyncClientSchema.prototype, \"schema\", void 0);\n __decorate([\n JsonProperty('warnings', [SyncClientSchemaAlert]),\n __metadata(\"design:type\", Array)\n ], SyncClientSchema.prototype, \"warnings\", void 0);\n __decorate([\n JsonProperty('error', SyncClientSchemaAlert),\n __metadata(\"design:type\", SyncClientSchemaAlert)\n ], SyncClientSchema.prototype, \"error\", void 0);\n SyncClientSchema = __decorate([\n JsonObject('SyncClientSchema'),\n __metadata(\"design:paramtypes\", [Object])\n ], SyncClientSchema);\n return SyncClientSchema;\n}());\nexport { SyncClientSchema };\nvar SyncConfig = (function () {\n function SyncConfig(partial) {\n this.developmentModeEnabled = false;\n this.serviceId = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('development_mode_enabled'),\n __metadata(\"design:type\", Object)\n ], SyncConfig.prototype, \"developmentModeEnabled\", void 0);\n __decorate([\n JsonProperty('service_id', String, true),\n __metadata(\"design:type\", String)\n ], SyncConfig.prototype, \"serviceId\", void 0);\n SyncConfig = __decorate([\n JsonObject('SyncConfig'),\n __metadata(\"design:paramtypes\", [Object])\n ], SyncConfig);\n return SyncConfig;\n}());\nexport { SyncConfig };\nvar PartitionField = (function () {\n function PartitionField(partial) {\n this.key = '';\n this.type = '';\n this.required = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('key'),\n __metadata(\"design:type\", Object)\n ], PartitionField.prototype, \"key\", void 0);\n __decorate([\n JsonProperty('type'),\n __metadata(\"design:type\", Object)\n ], PartitionField.prototype, \"type\", void 0);\n __decorate([\n JsonProperty('required', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], PartitionField.prototype, \"required\", void 0);\n PartitionField = __decorate([\n JsonObject('PartitionField'),\n __metadata(\"design:paramtypes\", [Object])\n ], PartitionField);\n return PartitionField;\n}());\nexport { PartitionField };\nvar NumCollections = (function () {\n function NumCollections(partial) {\n this.numCollections = 0;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('num_collections'),\n __metadata(\"design:type\", Object)\n ], NumCollections.prototype, \"numCollections\", void 0);\n NumCollections = __decorate([\n JsonObject('NumCollections'),\n __metadata(\"design:paramtypes\", [Object])\n ], NumCollections);\n return NumCollections;\n}());\nexport { NumCollections };\nvar AllowedQueryableFields = (function () {\n function AllowedQueryableFields(partial) {\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('queryable_fields'),\n __metadata(\"design:type\", Map)\n ], AllowedQueryableFields.prototype, \"queryableFields\", void 0);\n AllowedQueryableFields = __decorate([\n JsonObject('AllowedQueryableFields'),\n __metadata(\"design:paramtypes\", [Object])\n ], AllowedQueryableFields);\n return AllowedQueryableFields;\n}());\nexport { AllowedQueryableFields };\nvar SyncData = (function () {\n function SyncData(partial) {\n this.serviceId = undefined;\n this.partitionFields = undefined;\n this.queryableFieldsNames = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('service_id', String, true),\n __metadata(\"design:type\", String)\n ], SyncData.prototype, \"serviceId\", void 0);\n __decorate([\n JsonProperty('partition_fields', [PartitionField], true),\n __metadata(\"design:type\", Array)\n ], SyncData.prototype, \"partitionFields\", void 0);\n __decorate([\n JsonProperty('queryable_fields_names', [String], true),\n __metadata(\"design:type\", Array)\n ], SyncData.prototype, \"queryableFieldsNames\", void 0);\n SyncData = __decorate([\n JsonObject('SyncData'),\n __metadata(\"design:paramtypes\", [Object])\n ], SyncData);\n return SyncData;\n}());\nexport { SyncData };\nexport var PartitionKeyType;\n(function (PartitionKeyType) {\n PartitionKeyType[\"String\"] = \"string\";\n PartitionKeyType[\"ObjectId\"] = \"objectId\";\n PartitionKeyType[\"Long\"] = \"long\";\n PartitionKeyType[\"UUID\"] = \"uuid\";\n})(PartitionKeyType || (PartitionKeyType = {}));\nvar PatchSyncSchemasRequest = (function () {\n function PatchSyncSchemasRequest(partial) {\n this.serviceId = '';\n this.partitionKey = '';\n this.partitionKeyType = PartitionKeyType.String;\n this.partitionKeyRequired = undefined;\n this.indexOnPartitionKey = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('service_id'),\n __metadata(\"design:type\", Object)\n ], PatchSyncSchemasRequest.prototype, \"serviceId\", void 0);\n __decorate([\n JsonProperty('partition_key'),\n __metadata(\"design:type\", Object)\n ], PatchSyncSchemasRequest.prototype, \"partitionKey\", void 0);\n __decorate([\n JsonProperty('partition_key_type'),\n __metadata(\"design:type\", String)\n ], PatchSyncSchemasRequest.prototype, \"partitionKeyType\", void 0);\n __decorate([\n JsonProperty('partition_key_required', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], PatchSyncSchemasRequest.prototype, \"partitionKeyRequired\", void 0);\n __decorate([\n JsonProperty('index_on_partition_key', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], PatchSyncSchemasRequest.prototype, \"indexOnPartitionKey\", void 0);\n PatchSyncSchemasRequest = __decorate([\n JsonObject('PatchSyncSchemasRequest'),\n __metadata(\"design:paramtypes\", [Object])\n ], PatchSyncSchemasRequest);\n return PatchSyncSchemasRequest;\n}());\nexport { PatchSyncSchemasRequest };\nvar SyncProgressDetails = (function () {\n function SyncProgressDetails(partial) {\n this.startedAt = '';\n this.updatedAt = '';\n this.error = undefined;\n this.documentsCompleted = undefined;\n this.totalDocuments = undefined;\n this.complete = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('started_at'),\n __metadata(\"design:type\", Object)\n ], SyncProgressDetails.prototype, \"startedAt\", void 0);\n __decorate([\n JsonProperty('updated_at'),\n __metadata(\"design:type\", Object)\n ], SyncProgressDetails.prototype, \"updatedAt\", void 0);\n __decorate([\n JsonProperty('error', String, true),\n __metadata(\"design:type\", String)\n ], SyncProgressDetails.prototype, \"error\", void 0);\n __decorate([\n JsonProperty('documents_completed', Number, true),\n __metadata(\"design:type\", Number)\n ], SyncProgressDetails.prototype, \"documentsCompleted\", void 0);\n __decorate([\n JsonProperty('total_documents', Number, true),\n __metadata(\"design:type\", Number)\n ], SyncProgressDetails.prototype, \"totalDocuments\", void 0);\n __decorate([\n JsonProperty('complete', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], SyncProgressDetails.prototype, \"complete\", void 0);\n SyncProgressDetails = __decorate([\n JsonObject('SyncProgressDetails'),\n __metadata(\"design:paramtypes\", [Object])\n ], SyncProgressDetails);\n return SyncProgressDetails;\n}());\nexport { SyncProgressDetails };\nvar syncProgressDetailsMapSerializers = createStringMapSerializers(SyncProgressDetails);\nvar SyncProgressDetailsMapConverter = (function () {\n function SyncProgressDetailsMapConverter() {\n this.serialize = syncProgressDetailsMapSerializers.serialize;\n this.deserialize = syncProgressDetailsMapSerializers.deserialize;\n }\n SyncProgressDetailsMapConverter = __decorate([\n JsonConverter\n ], SyncProgressDetailsMapConverter);\n return SyncProgressDetailsMapConverter;\n}());\nvar SyncProgress = (function () {\n function SyncProgress(partial) {\n this.progress = {};\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('progress', SyncProgressDetailsMapConverter),\n __metadata(\"design:type\", Object)\n ], SyncProgress.prototype, \"progress\", void 0);\n SyncProgress = __decorate([\n JsonObject('SyncProgress'),\n __metadata(\"design:paramtypes\", [Object])\n ], SyncProgress);\n return SyncProgress;\n}());\nexport { SyncProgress };\n//# sourceMappingURL=Sync.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonObject, JsonProperty } from 'json2typescript';\nvar Template = (function () {\n function Template() {\n this.id = '';\n this.name = '';\n }\n __decorate([\n JsonProperty('id'),\n __metadata(\"design:type\", Object)\n ], Template.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], Template.prototype, \"name\", void 0);\n Template = __decorate([\n JsonObject('Template')\n ], Template);\n return Template;\n}());\nexport { Template };\n//# sourceMappingURL=Template.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { Any, JsonObject, JsonProperty } from 'json2typescript';\nvar Identity = (function () {\n function Identity(partial) {\n this.id = '';\n this.providerType = '';\n this.providerId = '';\n this.providerData = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('id', String, true),\n __metadata(\"design:type\", Object)\n ], Identity.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('provider_type'),\n __metadata(\"design:type\", Object)\n ], Identity.prototype, \"providerType\", void 0);\n __decorate([\n JsonProperty('provider_id'),\n __metadata(\"design:type\", Object)\n ], Identity.prototype, \"providerId\", void 0);\n __decorate([\n JsonProperty('provider_data', Any, true),\n __metadata(\"design:type\", Object)\n ], Identity.prototype, \"providerData\", void 0);\n Identity = __decorate([\n JsonObject('Identity'),\n __metadata(\"design:paramtypes\", [Object])\n ], Identity);\n return Identity;\n}());\nexport { Identity };\nexport var UserType;\n(function (UserType) {\n UserType[\"Server\"] = \"server\";\n UserType[\"Normal\"] = \"normal\";\n UserType[\"System\"] = \"system\";\n UserType[\"Unknown\"] = \"unknown\";\n})(UserType || (UserType = {}));\nvar RoleAssignment = (function () {\n function RoleAssignment(partial) {\n this.roleName = '';\n this.groupId = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('role_name'),\n __metadata(\"design:type\", Object)\n ], RoleAssignment.prototype, \"roleName\", void 0);\n __decorate([\n JsonProperty('group_id', String, true),\n __metadata(\"design:type\", String)\n ], RoleAssignment.prototype, \"groupId\", void 0);\n RoleAssignment = __decorate([\n JsonObject('RoleAssignment'),\n __metadata(\"design:paramtypes\", [Object])\n ], RoleAssignment);\n return RoleAssignment;\n}());\nexport { RoleAssignment };\nvar User = (function () {\n function User(partial) {\n this.id = '';\n this.domainId = '';\n this.identities = undefined;\n this.data = undefined;\n this.sessionsValidSince = 0;\n this.creationDate = 0;\n this.value = 0;\n this.disabled = false;\n this.type = UserType.Unknown;\n this.roles = undefined;\n this.customData = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], User.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('domain_id'),\n __metadata(\"design:type\", Object)\n ], User.prototype, \"domainId\", void 0);\n __decorate([\n JsonProperty('identities', [Identity], true),\n __metadata(\"design:type\", Array)\n ], User.prototype, \"identities\", void 0);\n __decorate([\n JsonProperty('data', Any, true),\n __metadata(\"design:type\", Object)\n ], User.prototype, \"data\", void 0);\n __decorate([\n JsonProperty('sessions_valid_since'),\n __metadata(\"design:type\", Object)\n ], User.prototype, \"sessionsValidSince\", void 0);\n __decorate([\n JsonProperty('creation_date'),\n __metadata(\"design:type\", Object)\n ], User.prototype, \"creationDate\", void 0);\n __decorate([\n JsonProperty('last_authentication_date'),\n __metadata(\"design:type\", Object)\n ], User.prototype, \"value\", void 0);\n __decorate([\n JsonProperty('disabled'),\n __metadata(\"design:type\", Object)\n ], User.prototype, \"disabled\", void 0);\n __decorate([\n JsonProperty('type'),\n __metadata(\"design:type\", String)\n ], User.prototype, \"type\", void 0);\n __decorate([\n JsonProperty('roles', [RoleAssignment], true),\n __metadata(\"design:type\", Array)\n ], User.prototype, \"roles\", void 0);\n __decorate([\n JsonProperty('custom_data', Any, true),\n __metadata(\"design:type\", Object)\n ], User.prototype, \"customData\", void 0);\n User = __decorate([\n JsonObject('User'),\n __metadata(\"design:paramtypes\", [Object])\n ], User);\n return User;\n}());\nexport { User };\nvar PartialUser = (function () {\n function PartialUser(partial) {\n this.id = '';\n this.identities = undefined;\n this.type = UserType.Unknown;\n this.name = 0;\n this.value = 0;\n this.disabled = false;\n this.data = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], PartialUser.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('identities', [Identity], true),\n __metadata(\"design:type\", Array)\n ], PartialUser.prototype, \"identities\", void 0);\n __decorate([\n JsonProperty('type'),\n __metadata(\"design:type\", String)\n ], PartialUser.prototype, \"type\", void 0);\n __decorate([\n JsonProperty('creation_date'),\n __metadata(\"design:type\", Object)\n ], PartialUser.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('last_authentication_date'),\n __metadata(\"design:type\", Object)\n ], PartialUser.prototype, \"value\", void 0);\n __decorate([\n JsonProperty('disabled'),\n __metadata(\"design:type\", Object)\n ], PartialUser.prototype, \"disabled\", void 0);\n __decorate([\n JsonProperty('data', Any, true),\n __metadata(\"design:type\", Object)\n ], PartialUser.prototype, \"data\", void 0);\n PartialUser = __decorate([\n JsonObject('PartialUser'),\n __metadata(\"design:paramtypes\", [Object])\n ], PartialUser);\n return PartialUser;\n}());\nexport { PartialUser };\nvar UserProfile = (function () {\n function UserProfile(partial) {\n this.userId = '';\n this.domainId = '';\n this.identities = undefined;\n this.customData = undefined;\n this.data = {};\n this.type = UserType.Unknown;\n this.roles = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('user_id'),\n __metadata(\"design:type\", Object)\n ], UserProfile.prototype, \"userId\", void 0);\n __decorate([\n JsonProperty('domain_id'),\n __metadata(\"design:type\", Object)\n ], UserProfile.prototype, \"domainId\", void 0);\n __decorate([\n JsonProperty('identities', [Identity], true),\n __metadata(\"design:type\", Array)\n ], UserProfile.prototype, \"identities\", void 0);\n __decorate([\n JsonProperty('custom_data', Any, true),\n __metadata(\"design:type\", Object)\n ], UserProfile.prototype, \"customData\", void 0);\n __decorate([\n JsonProperty('data'),\n __metadata(\"design:type\", Object)\n ], UserProfile.prototype, \"data\", void 0);\n __decorate([\n JsonProperty('type'),\n __metadata(\"design:type\", String)\n ], UserProfile.prototype, \"type\", void 0);\n __decorate([\n JsonProperty('roles', [RoleAssignment], true),\n __metadata(\"design:type\", Array)\n ], UserProfile.prototype, \"roles\", void 0);\n UserProfile = __decorate([\n JsonObject('UserProfile'),\n __metadata(\"design:paramtypes\", [Object])\n ], UserProfile);\n return UserProfile;\n}());\nexport { UserProfile };\nexport var UserStatus;\n(function (UserStatus) {\n UserStatus[\"Enabled\"] = \"enabled\";\n UserStatus[\"Disabled\"] = \"disabled\";\n})(UserStatus || (UserStatus = {}));\nexport var UsersSort;\n(function (UsersSort) {\n UsersSort[\"Id\"] = \"_id\";\n UsersSort[\"Status\"] = \"status\";\n UsersSort[\"CreatedDate\"] = \"created_date\";\n UsersSort[\"LastAuthDate\"] = \"last_authentication_date\";\n})(UsersSort || (UsersSort = {}));\nvar UserActionToken = (function () {\n function UserActionToken(partial) {\n this.tokenId = '';\n this.token = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('token_id'),\n __metadata(\"design:type\", Object)\n ], UserActionToken.prototype, \"tokenId\", void 0);\n __decorate([\n JsonProperty('token'),\n __metadata(\"design:type\", Object)\n ], UserActionToken.prototype, \"token\", void 0);\n UserActionToken = __decorate([\n JsonObject('UserActionToken'),\n __metadata(\"design:paramtypes\", [Object])\n ], UserActionToken);\n return UserActionToken;\n}());\nexport { UserActionToken };\nvar EmailPasswordRegistrationRequest = (function () {\n function EmailPasswordRegistrationRequest(partial) {\n this.email = '';\n this.password = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('email'),\n __metadata(\"design:type\", Object)\n ], EmailPasswordRegistrationRequest.prototype, \"email\", void 0);\n __decorate([\n JsonProperty('password'),\n __metadata(\"design:type\", Object)\n ], EmailPasswordRegistrationRequest.prototype, \"password\", void 0);\n EmailPasswordRegistrationRequest = __decorate([\n JsonObject('EmailPasswordRegistrationRequest'),\n __metadata(\"design:paramtypes\", [Object])\n ], EmailPasswordRegistrationRequest);\n return EmailPasswordRegistrationRequest;\n}());\nexport { EmailPasswordRegistrationRequest };\nvar Device = (function () {\n function Device(partial) {\n this.id = '';\n this.clientAppVersion = '';\n this.platform = '';\n this.platformVersion = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], Device.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('client_app_version'),\n __metadata(\"design:type\", Object)\n ], Device.prototype, \"clientAppVersion\", void 0);\n __decorate([\n JsonProperty('platform'),\n __metadata(\"design:type\", Object)\n ], Device.prototype, \"platform\", void 0);\n __decorate([\n JsonProperty('platform_version'),\n __metadata(\"design:type\", Object)\n ], Device.prototype, \"platformVersion\", void 0);\n Device = __decorate([\n JsonObject('Device'),\n __metadata(\"design:paramtypes\", [Object])\n ], Device);\n return Device;\n}());\nexport { Device };\nexport var LoginIDType;\n(function (LoginIDType) {\n LoginIDType[\"Email\"] = \"email\";\n LoginIDType[\"Username\"] = \"username\";\n})(LoginIDType || (LoginIDType = {}));\nvar LoginId = (function () {\n function LoginId(partial) {\n this.idType = LoginIDType.Email;\n this.id = '';\n this.confirmed = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('id_type'),\n __metadata(\"design:type\", String)\n ], LoginId.prototype, \"idType\", void 0);\n __decorate([\n JsonProperty('id'),\n __metadata(\"design:type\", Object)\n ], LoginId.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('confirmed', Boolean, true),\n __metadata(\"design:type\", Boolean)\n ], LoginId.prototype, \"confirmed\", void 0);\n LoginId = __decorate([\n JsonObject('LoginId'),\n __metadata(\"design:paramtypes\", [Object])\n ], LoginId);\n return LoginId;\n}());\nexport { LoginId };\nvar PasswordRecord = (function () {\n function PasswordRecord(partial) {\n this.id = '';\n this.domainId = '';\n this.loginIds = [];\n this.userId = '';\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], PasswordRecord.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('domain_id'),\n __metadata(\"design:type\", Object)\n ], PasswordRecord.prototype, \"domainId\", void 0);\n __decorate([\n JsonProperty('login_ids'),\n __metadata(\"design:type\", Array)\n ], PasswordRecord.prototype, \"loginIds\", void 0);\n __decorate([\n JsonProperty('user_id'),\n __metadata(\"design:type\", Object)\n ], PasswordRecord.prototype, \"userId\", void 0);\n PasswordRecord = __decorate([\n JsonObject('PasswordRecord'),\n __metadata(\"design:paramtypes\", [Object])\n ], PasswordRecord);\n return PasswordRecord;\n}());\nexport { PasswordRecord };\n//# sourceMappingURL=User.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { JsonObject, JsonProperty } from 'json2typescript';\nexport var ValidationAction;\n(function (ValidationAction) {\n ValidationAction[\"Error\"] = \"ERROR\";\n ValidationAction[\"Warn\"] = \"WARN\";\n})(ValidationAction || (ValidationAction = {}));\nexport var ValidationLevel;\n(function (ValidationLevel) {\n ValidationLevel[\"Off\"] = \"OFF\";\n ValidationLevel[\"Moderate\"] = \"MODERATE\";\n ValidationLevel[\"Strict\"] = \"STRICT\";\n})(ValidationLevel || (ValidationLevel = {}));\nvar ValidationOptions = (function () {\n function ValidationOptions(partial) {\n this.readValidationAction = ValidationAction.Error;\n this.readValidationLevel = ValidationLevel.Off;\n this.writeValidationAction = ValidationAction.Error;\n this.writeValidationLevel = ValidationLevel.Off;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('read_validation_action'),\n __metadata(\"design:type\", String)\n ], ValidationOptions.prototype, \"readValidationAction\", void 0);\n __decorate([\n JsonProperty('read_validation_level'),\n __metadata(\"design:type\", String)\n ], ValidationOptions.prototype, \"readValidationLevel\", void 0);\n __decorate([\n JsonProperty('write_validation_action'),\n __metadata(\"design:type\", String)\n ], ValidationOptions.prototype, \"writeValidationAction\", void 0);\n __decorate([\n JsonProperty('write_validation_level'),\n __metadata(\"design:type\", String)\n ], ValidationOptions.prototype, \"writeValidationLevel\", void 0);\n ValidationOptions = __decorate([\n JsonObject('ValidationOptions'),\n __metadata(\"design:paramtypes\", [Object])\n ], ValidationOptions);\n return ValidationOptions;\n}());\nexport { ValidationOptions };\n//# sourceMappingURL=ValidationOptions.js.map","var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (this && this.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nimport { Any, JsonObject, JsonProperty } from 'json2typescript';\nvar Value = (function () {\n function Value(partial) {\n this.id = '';\n this.name = '';\n this.value = undefined;\n this.fromSecret = false;\n this.lastModified = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], Value.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], Value.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('value', Any, true),\n __metadata(\"design:type\", Object)\n ], Value.prototype, \"value\", void 0);\n __decorate([\n JsonProperty('from_secret'),\n __metadata(\"design:type\", Object)\n ], Value.prototype, \"fromSecret\", void 0);\n __decorate([\n JsonProperty('last_modified', Number, true),\n __metadata(\"design:type\", Number)\n ], Value.prototype, \"lastModified\", void 0);\n Value = __decorate([\n JsonObject('Value'),\n __metadata(\"design:paramtypes\", [Object])\n ], Value);\n return Value;\n}());\nexport { Value };\nvar PartialValue = (function () {\n function PartialValue(partial) {\n this.id = '';\n this.name = '';\n this.fromSecret = false;\n this.lastModified = undefined;\n Object.assign(this, partial);\n }\n __decorate([\n JsonProperty('_id'),\n __metadata(\"design:type\", Object)\n ], PartialValue.prototype, \"id\", void 0);\n __decorate([\n JsonProperty('name'),\n __metadata(\"design:type\", Object)\n ], PartialValue.prototype, \"name\", void 0);\n __decorate([\n JsonProperty('from_secret'),\n __metadata(\"design:type\", Object)\n ], PartialValue.prototype, \"fromSecret\", void 0);\n __decorate([\n JsonProperty('last_modified', Number, true),\n __metadata(\"design:type\", Number)\n ], PartialValue.prototype, \"lastModified\", void 0);\n PartialValue = __decorate([\n JsonObject('PartialValue'),\n __metadata(\"design:paramtypes\", [Object])\n ], PartialValue);\n return PartialValue;\n}());\nexport { PartialValue };\n//# sourceMappingURL=Value.js.map","var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar _Error = function (message, code) {\n Error.call(this, message);\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this);\n }\n this.message = message;\n this.name = this.constructor.name;\n if (code) {\n this.code = code;\n }\n};\n_Error.prototype = Object.create(Error.prototype);\nvar ResponseError = (function (_super) {\n __extends(ResponseError, _super);\n function ResponseError() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n return ResponseError;\n}(_Error));\nvar ServerError = (function (_super) {\n __extends(ServerError, _super);\n function ServerError() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n return ServerError;\n}(ResponseError));\nvar ErrInvalidSession = 'InvalidSession';\nvar ErrUnauthorized = 'Unauthorized';\nexport { ResponseError, ServerError, ErrInvalidSession, ErrUnauthorized };\nexport function isRawErrorResponse(json) {\n return 'error' in json;\n}\nexport function toErrorResponse(raw) {\n return {\n error: raw.error,\n errorCode: raw.error_code,\n link: raw.link,\n errorDetails: raw.error_details,\n adminErrorDetails: raw.admin_error_details,\n adminError: raw.admin_error,\n };\n}\n//# sourceMappingURL=Error.js.map","export var USER_AUTH_KEY = '_baas_ua';\nexport var REFRESH_TOKEN_KEY = '_baas_rt';\nexport var USER_AUTH_COOKIE_NAME = 'baas_ua';\nexport var DEFAULT_ACCESS_TOKEN_EXPIRE_WITHIN_SECS = 10;\n//# sourceMappingURL=Common.js.map","import { isRawErrorResponse, ResponseError, ServerError, toErrorResponse } from './Error';\nexport var JSONTYPE = 'application/json';\nexport var DEFAULT_BAAS_SERVER_URL = 'https://realm.mongodb.com';\nvar version = 'unknown';\nif (typeof VERSION !== 'undefined') {\n version = VERSION;\n}\nexport var SDK_VERSION = version;\nexport var checkStatus = function (response) {\n if (response.status >= 200 && response.status < 300) {\n return response;\n }\n if (response.headers.get('Content-Type') === JSONTYPE) {\n return response.json().then(function (json) {\n if (!isRawErrorResponse(json)) {\n return Promise.reject(json);\n }\n var serverErr = new ServerError(json.error, json.error_code);\n serverErr.response = response;\n serverErr.json = toErrorResponse(json);\n return Promise.reject(serverErr);\n });\n }\n var error = new ResponseError(response.statusText);\n error.response = response;\n return Promise.reject(error);\n};\nexport var makeFetchArgs = function (method, options) {\n var _a;\n var headers = (_a = options === null || options === void 0 ? void 0 : options.headers) !== null && _a !== void 0 ? _a : {};\n if (!headers.Accept) {\n headers.Accept = JSONTYPE;\n }\n if (!(options === null || options === void 0 ? void 0 : options.multipart) && !headers['Content-Type']) {\n headers['Content-Type'] = JSONTYPE;\n }\n return {\n body: options === null || options === void 0 ? void 0 : options.body,\n credentials: options === null || options === void 0 ? void 0 : options.credentials,\n headers: headers,\n method: method,\n mode: 'cors',\n };\n};\n//# sourceMappingURL=Common.js.map","import { AuthProviderType } from '../api/v3/AuthProvider';\nimport * as common from '../Common';\nfunction userPassProvider(auth) {\n var providerRoute = 'providers/local-userpass';\n var loginRoute = providerRoute + \"/login\";\n return {\n authenticate: function (_a) {\n var username = _a.username, password = _a.password;\n var fetchArgs = common.makeFetchArgs('POST', {\n body: JSON.stringify({ username: username, password: password }),\n });\n return fetch(auth.rootUrl + \"/\" + loginRoute, fetchArgs)\n .then(common.checkStatus)\n .then(function (response) { return response.json(); })\n .then(function (json) { return auth.set(json); });\n },\n };\n}\nfunction apiKeyProvider(auth) {\n var loginRoute = 'providers/api-key/login';\n return {\n authenticate: function (key) {\n var fetchArgs = common.makeFetchArgs('POST', {\n body: JSON.stringify({ key: key }),\n });\n return fetch(auth.rootUrl + \"/\" + loginRoute, fetchArgs)\n .then(common.checkStatus)\n .then(function (response) { return response.json(); })\n .then(function (json) { return auth.set(json); });\n },\n };\n}\nfunction mongodbCloudProvider(auth) {\n var loginRoute = 'providers/mongodb-cloud/login';\n return {\n authenticate: function (data) {\n var username = data.username, apiKey = data.apiKey, cors = data.cors, cookie = data.cookie;\n var options = {\n cookie: cookie || false,\n cors: cors || true,\n };\n var fetchArgs = common.makeFetchArgs('POST', {\n body: JSON.stringify({ username: username, apiKey: apiKey }),\n });\n fetchArgs.credentials = 'include';\n var url = auth.rootUrl + \"/\" + loginRoute;\n if (options.cookie) {\n return fetch(url + \"?cookie=true\", fetchArgs).then(common.checkStatus);\n }\n return fetch(url, fetchArgs)\n .then(common.checkStatus)\n .then(function (response) { return response.json(); })\n .then(function (json) { return auth.set(json); });\n },\n };\n}\nfunction createProviders(auth) {\n var _a;\n return _a = {},\n _a[AuthProviderType.MongoDBCloud] = mongodbCloudProvider(auth),\n _a[AuthProviderType.APIKey] = apiKeyProvider(auth),\n _a[AuthProviderType.Userpass] = userPassProvider(auth),\n _a;\n}\nexport default createProviders;\n//# sourceMappingURL=Providers.js.map","var MemoryStorage = (function () {\n function MemoryStorage() {\n this.data = {};\n this.orderedKeys = [];\n this.length = 0;\n }\n MemoryStorage.prototype.getItem = function (key) {\n return key in this.data ? this.data[key] : null;\n };\n MemoryStorage.prototype.setItem = function (key, value) {\n this.orderedKeys.push(key);\n this.data[key] = value;\n this.length++;\n return this.data[key];\n };\n MemoryStorage.prototype.removeItem = function (key) {\n var index = this.orderedKeys.indexOf(key, 0);\n if (index > -1) {\n this.orderedKeys.splice(index, 1);\n }\n delete this.data[key];\n this.length--;\n };\n MemoryStorage.prototype.key = function (index) {\n return this.orderedKeys[index];\n };\n return MemoryStorage;\n}());\nexport { MemoryStorage };\nvar Storage = (function () {\n function Storage(store, namespace) {\n this.store = store;\n this.namespace = namespace;\n this.store = store;\n this.namespace = \"_baas.\" + namespace;\n }\n Storage.prototype._generateKey = function (key) {\n return this.namespace + \".\" + key;\n };\n Storage.prototype.get = function (key) {\n return this.store.getItem(this._generateKey(key));\n };\n Storage.prototype.set = function (key, value) {\n return this.store.setItem(this._generateKey(key), value);\n };\n Storage.prototype.remove = function (key) {\n this.store.removeItem(this._generateKey(key));\n };\n return Storage;\n}());\nexport { Storage };\nexport function createStorage(options) {\n var storageType = options.storageType, namespace = options.namespace;\n if (storageType === 'localStorage') {\n if (typeof window !== 'undefined' && 'localStorage' in window && window.localStorage !== null) {\n return new Storage(window.localStorage, namespace);\n }\n }\n return new Storage(new MemoryStorage(), namespace);\n}\n//# sourceMappingURL=Storage.js.map","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { ServerError } from '../Error';\nimport * as authCommon from './Common';\nimport createProviders from './Providers';\nimport { createStorage } from './Storage';\nimport jwtDecode from 'jwt-decode';\nvar EMBEDDED_USER_AUTH_DATA_PARTS = 4;\nvar Auth = (function () {\n function Auth(client, rootUrl, options) {\n var _a;\n this.client = client;\n this.rootUrl = rootUrl;\n options = __assign({ codec: {\n accessToken: 'access_token',\n deviceId: 'device_id',\n refreshToken: 'refresh_token',\n userId: 'user_id',\n }, namespace: 'admin', storageType: 'localStorage' }, options);\n this.client = client;\n this.rootUrl = rootUrl;\n this.codec = options.codec;\n this.requestOrigin = options.requestOrigin;\n this.storage = (_a = options.storage) !== null && _a !== void 0 ? _a : createStorage({\n namespace: options.namespace,\n storageType: options.storageType,\n });\n this.providers = createProviders(this);\n var authObj = this._get();\n this.auth = authObj;\n this.authedId = authObj.userId;\n this.rt = this.storage.get(authCommon.REFRESH_TOKEN_KEY);\n return this;\n }\n Auth.prototype.provider = function (name) {\n if (!Object.prototype.hasOwnProperty.call(this.providers, name)) {\n throw new Error(\"Invalid auth provider specified: \" + name);\n }\n return this.providers[name];\n };\n Auth.prototype.refreshToken = function () {\n var _this = this;\n return this.client.doSessionPost().then(function (json) { return _this.set(json); });\n };\n Auth.pageRootUrl = function () {\n return [window.location.protocol, '//', window.location.host, window.location.pathname].join('');\n };\n Auth.getCookie = function (name) {\n var splitCookies = document.cookie.split(' ');\n for (var i = 0; i < splitCookies.length; i++) {\n var cookie = splitCookies[i];\n var sepIdx = cookie.indexOf('=');\n var cookieName = cookie.substring(0, sepIdx);\n if (cookieName === name) {\n var cookieVal = cookie.substring(sepIdx + 1, cookie.length);\n if (cookieVal[cookieVal.length - 1] === ';') {\n return cookieVal.substring(0, cookieVal.length - 1);\n }\n return cookieVal;\n }\n }\n return '';\n };\n Auth.prototype.handleCookie = function () {\n if (typeof window === 'undefined' || typeof document === 'undefined') {\n return;\n }\n if (!document.cookie) {\n return;\n }\n var uaCookie = Auth.getCookie(authCommon.USER_AUTH_COOKIE_NAME);\n if (!uaCookie) {\n return;\n }\n document.cookie = authCommon.USER_AUTH_COOKIE_NAME + \"=; Path=/; Expires=Thu, 01 Jan 1970 00:00:00 GMT;\";\n var userAuth = this.unmarshallUserAuth(uaCookie);\n this.set(userAuth);\n window.history.replaceState(undefined, '', Auth.pageRootUrl());\n };\n Auth.prototype.clear = function () {\n this.auth = undefined;\n this.authedId = undefined;\n this.rt = undefined;\n this.storage.remove(authCommon.USER_AUTH_KEY);\n this.storage.remove(authCommon.REFRESH_TOKEN_KEY);\n };\n Auth.prototype.isAccessTokenExpired = function (withinSeconds) {\n if (withinSeconds === void 0) { withinSeconds = authCommon.DEFAULT_ACCESS_TOKEN_EXPIRE_WITHIN_SECS; }\n var token = this.getAccessToken();\n if (!token) {\n return false;\n }\n var decodedToken;\n try {\n decodedToken = jwtDecode(token);\n }\n catch (e) {\n return false;\n }\n if (!decodedToken) {\n return false;\n }\n return decodedToken.exp && Math.floor(Date.now() / 1000) >= decodedToken.exp - withinSeconds;\n };\n Auth.prototype.getAccessToken = function () {\n var _a;\n return (_a = this.auth) === null || _a === void 0 ? void 0 : _a.accessToken;\n };\n Auth.prototype.getRefreshToken = function () {\n return this.rt;\n };\n Auth.prototype.set = function (json) {\n if (!json) {\n return;\n }\n var newUserAuth = {};\n if (json[this.codec.refreshToken]) {\n this.rt = json[this.codec.refreshToken];\n delete json[this.codec.refreshToken];\n this.storage.set(authCommon.REFRESH_TOKEN_KEY, this.rt);\n }\n if (json[this.codec.accessToken]) {\n newUserAuth.accessToken = json[this.codec.accessToken];\n }\n if (json[this.codec.userId]) {\n newUserAuth.userId = json[this.codec.userId];\n }\n this.auth = __assign(__assign({}, (this.auth ? this.auth : {})), newUserAuth);\n this.authedId = this.auth.userId;\n this.storage.set(authCommon.USER_AUTH_KEY, JSON.stringify(this.auth));\n };\n Auth.prototype._get = function () {\n var data = this.storage.get(authCommon.USER_AUTH_KEY);\n if (!data) {\n return {};\n }\n try {\n return JSON.parse(data);\n }\n catch (e) {\n this.clear();\n throw new ServerError('Failure retrieving stored auth');\n }\n };\n Auth.prototype.unmarshallUserAuth = function (data) {\n var _a;\n var parts = data.split('$');\n if (parts.length !== EMBEDDED_USER_AUTH_DATA_PARTS) {\n throw new RangeError(\"invalid user auth data provided: \" + data);\n }\n return _a = {},\n _a[this.codec.accessToken] = parts[0],\n _a[this.codec.refreshToken] = parts[1],\n _a[this.codec.userId] = parts[2],\n _a;\n };\n return Auth;\n}());\nexport default Auth;\n//# sourceMappingURL=index.js.map","var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nimport { AtlasCluster, CreateAtlasClusterRequest, CreateAtlasClusterResponse } from './api/v1/AtlasCluster';\nimport { AtlasDataLake } from './api/v1/AtlasDataLake';\nimport { AtlasGroup } from './api/v1/AtlasGroup';\nimport { AtlasServerlessInstance } from './api/v1/AtlasServerlessInstance';\nimport { ClusterStorageMetrics } from './api/v1/ClusterStorageMetrics';\nimport { CreateTempAPIKeyResponse } from './api/v1/TempAPIKey';\nimport { APIKey, PartialAPIKey } from './api/v3/APIKey';\nimport { PartialApp } from './api/v3/App';\nimport { CreateAtlasAPIKeyRequest, CreateAtlasAPIKeyResponse } from './api/v3/AtlasAPIKey';\nimport { AuthProviderConfig, PartialAuthProviderConfig } from './api/v3/AuthProvider';\nimport { GitHubBranch, GithubGroupAuthenticationResponse, Installation, PartialCodeDeploy, } from './api/v3/CodeDeploy';\nimport { CustomUserDataConfig } from './api/v3/CustomUserData';\nimport { DebugExecuteFunctionRequest, DebugExecuteFunctionResponse, DebugExecuteFunctionSourceRequest, } from './api/v3/DebugExecuteFunction';\nimport { AppDependencies, DependencyInstallation } from './api/v3/Dependencies';\nimport { AppConfig, DeployDraftPayload, Deployment } from './api/v3/Deployment';\nimport { DraftDiff, PartialDraft } from './api/v3/Draft';\nimport { Endpoint, PartialEndpoint } from './api/v3/Endpoint';\nimport { EnvironmentValue, PartialEnvironmentValue } from './api/v3/EnvironmentValue';\nimport { EventSubscription, EventSubscriptionExecution, } from './api/v3/EventSubscription';\nimport { ClientAppFunction, PartialAppFunction } from './api/v3/Function';\nimport { CustomResolver, ExtendableTypes, GraphQLAlerts, GraphQLConfig } from './api/v3/GraphQL';\nimport { AssetMetadata, AssetURL, HostingConfig } from './api/v3/Hosting';\nimport { IncomingWebhook, PartialIncomingWebhook } from './api/v3/IncomingWebhook';\nimport { AccessList, ListedAllowedIP } from './api/v3/IPAccess';\nimport { AppLogResponse } from './api/v3/Log';\nimport { LogForwarder } from './api/v3/LogForwarder';\nimport { AppMeasurementGroup, getMeasurementFilter, GroupMeasurementGroup, } from './api/v3/Measurement';\nimport { PushNotification } from './api/v3/Push';\nimport { deserializePartialRule, deserializeRule } from './api/v3/Rule';\nimport { PartialSchema, Schema } from './api/v3/Schema';\nimport { PartialSecret } from './api/v3/Secret';\nimport { PartialServiceDesc, ServiceDesc, ServiceDescConfig } from './api/v3/Service';\nimport { AllowedQueryableFields, SyncClientSchema, SyncConfig, SyncData, SyncProgress, } from './api/v3/Sync';\nimport { Template } from './api/v3/Template';\nimport { Device, PartialUser, PasswordRecord, User, UserActionToken, UserProfile, } from './api/v3/User';\nimport { ValidationOptions } from './api/v3/ValidationOptions';\nimport { PartialValue, Value } from './api/v3/Value';\nimport Auth from './auth';\nimport { DEFAULT_BAAS_SERVER_URL, JSONTYPE, makeFetchArgs } from './Common';\nimport { ErrInvalidSession, ErrUnauthorized, isRawErrorResponse, ResponseError, ServerError, toErrorResponse, } from './Error';\nimport { EJSON } from 'bson';\nimport { JsonConvert } from 'json2typescript';\nimport queryString from 'query-string';\nvar jsonConvert = new JsonConvert();\nvar v1 = 1;\nvar v3 = 3;\nvar API_TYPE_PRIVATE = 'private';\nvar API_TYPE_ADMIN = 'admin';\nvar BaasAdminClient = (function () {\n function BaasAdminClient(baseUrl, options) {\n var _a, _b, _c;\n if (baseUrl === void 0) { baseUrl = DEFAULT_BAAS_SERVER_URL; }\n if (options === void 0) { options = {}; }\n this.authUrl = baseUrl + \"/api/admin/v3.0/auth\";\n this.rootURLsByAPIVersion = (_a = {},\n _a[v1] = (_b = {},\n _b[API_TYPE_PRIVATE] = baseUrl + \"/api/private/v1.0\",\n _b),\n _a[v3] = (_c = {},\n _c[API_TYPE_ADMIN] = baseUrl + \"/api/admin/v3.0\",\n _c),\n _a);\n var authOptions = {\n storage: options.storage,\n };\n if (options.requestOrigin) {\n authOptions.requestOrigin = options.requestOrigin;\n }\n this.auth = new Auth(this, this.authUrl, authOptions);\n this.auth.handleCookie();\n return this;\n }\n Object.defineProperty(BaasAdminClient.prototype, \"_private\", {\n get: function () {\n return this.apiMethods(API_TYPE_PRIVATE, v1);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(BaasAdminClient.prototype, \"_admin\", {\n get: function () {\n return this.apiMethods(API_TYPE_ADMIN, v3);\n },\n enumerable: false,\n configurable: true\n });\n BaasAdminClient.prototype.authenticate = function (providerType, options) {\n var _this = this;\n if (options === void 0) { options = {}; }\n var authenticateFn = function () {\n return _this.auth\n .provider(providerType)\n .authenticate(options)\n .then(function () { return _this.authedId(); });\n };\n if (this.isAuthenticated()) {\n return this.logout().then(function () { return authenticateFn(); });\n }\n return authenticateFn();\n };\n BaasAdminClient.prototype.logout = function () {\n var _this = this;\n return this._do('/auth/session', 'DELETE', {\n refreshOnFailure: false,\n useRefreshToken: true,\n }).then(function () { return _this.auth.clear(); }, function () { return _this.auth.clear(); });\n };\n BaasAdminClient.prototype.authError = function () {\n return this.auth.error;\n };\n BaasAdminClient.prototype.isAuthenticated = function () {\n return !!this.authedId();\n };\n BaasAdminClient.prototype.authedId = function () {\n return this.auth.authedId;\n };\n BaasAdminClient.prototype.doSessionPost = function () {\n return this._do('/auth/session', 'POST', {\n refreshOnFailure: false,\n useRefreshToken: true,\n }).then(function (response) { return response.json(); });\n };\n BaasAdminClient.prototype._fetch = function (url, fetchArgs, resource, method, options) {\n var _this = this;\n if (options === void 0) { options = {}; }\n return fetch(url, fetchArgs).then(function (response) {\n if (response.status >= 200 && response.status < 300) {\n return Promise.resolve(response);\n }\n if (response.headers.get('Content-Type') === JSONTYPE) {\n return response.json().then(function (json) {\n if (!isRawErrorResponse(json)) {\n return Promise.reject(json);\n }\n var err = toErrorResponse(json);\n if (err.errorCode === ErrInvalidSession) {\n if (!options.refreshOnFailure) {\n _this.auth.clear();\n var serverErr = new ServerError(err.error, err.errorCode);\n serverErr.response = response;\n serverErr.json = err;\n throw serverErr;\n }\n return _this.auth.refreshToken().then(function () {\n options.refreshOnFailure = false;\n return _this._do(resource, method, options);\n });\n }\n var error = new ServerError(err.error, err.errorCode);\n error.response = response;\n error.json = err;\n return Promise.reject(error);\n });\n }\n var respErr = new ResponseError(response.statusText);\n respErr.response = response;\n return Promise.reject(respErr);\n });\n };\n BaasAdminClient.prototype._fetchArgs = function (resource, method, options) {\n var _a, _b;\n var appURL = this.rootURLsByAPIVersion[(_a = options.apiVersion) !== null && _a !== void 0 ? _a : v3][(_b = options.apiType) !== null && _b !== void 0 ? _b : API_TYPE_ADMIN];\n var url = options.rootURL ? \"\" + options.rootURL + resource : \"\" + appURL + resource;\n var fetchArgs = makeFetchArgs(method, options);\n if (options.queryParams) {\n url = url + \"?\" + queryString.stringify(options.queryParams);\n }\n return { url: url, fetchArgs: fetchArgs };\n };\n BaasAdminClient.prototype._do = function (resource, method, options) {\n if (options === void 0) { options = {}; }\n options = __assign({ apiType: API_TYPE_ADMIN, apiVersion: v3, refreshOnFailure: true, rootURL: undefined, useRefreshToken: false }, options);\n var token = options.useRefreshToken ? this.auth.getRefreshToken() : this.auth.getAccessToken();\n if (!options.headers) {\n options.headers = {};\n }\n if (this.auth.requestOrigin && !options.skipDraft) {\n options.headers['X-BAAS-Request-Origin'] = this.auth.requestOrigin;\n }\n if (!options.noAuth) {\n options.headers.Authorization = \"Bearer \" + token;\n }\n var _a = this._fetchArgs(resource, method, options), url = _a.url, fetchArgs = _a.fetchArgs;\n if (options.noAuth) {\n return this._fetch(url, fetchArgs, resource, method, options);\n }\n if (!this.isAuthenticated()) {\n return Promise.reject(new ServerError('Must auth first', ErrUnauthorized));\n }\n return this._fetch(url, fetchArgs, resource, method, options);\n };\n BaasAdminClient.prototype.userProfile = function () {\n return this._admin._get('/auth/profile', UserProfile);\n };\n BaasAdminClient.prototype.getAuthProviders = function () {\n return this._do('/auth/providers', 'GET', {\n noAuth: true,\n })\n .then(function (response) { return response.text(); })\n .then(function (response) {\n return Object.values(EJSON.parse(response)).map(function (val) { return jsonConvert.deserializeObject(val, AuthProviderConfig); });\n });\n };\n BaasAdminClient.prototype.apps = function (groupId) {\n var api = this._admin;\n var groupUrl = \"/groups/\" + groupId + \"/apps\";\n return {\n measurements: function (request) {\n var filter = getMeasurementFilter(request);\n return api._get(\"/groups/\" + groupId + \"/measurements\", GroupMeasurementGroup, filter);\n },\n atlasAPIKeys: function () {\n return {\n create: function (req) {\n return api._post(\"/groups/\" + groupId + \"/api_keys\", CreateAtlasAPIKeyResponse, new CreateAtlasAPIKeyRequest(req));\n },\n };\n },\n app: function (appId) {\n var appUrl = groupUrl + \"/\" + appId;\n return {\n get: function () { return api._get(appUrl, PartialApp); },\n remove: function () { return api._delete(appUrl); },\n export: function (version, deployment) {\n if (version === void 0) { version = AppConfig.Version20210101; }\n return api._getUntyped(appUrl + \"/export\", { version: version, deployment: deployment }, {\n Accept: 'application/zip',\n });\n },\n measurements: function (request) {\n var filter = getMeasurementFilter(request);\n return api._get(appUrl + \"/measurements\", AppMeasurementGroup, filter);\n },\n commands: function () { return ({\n run: function (command, data) {\n return api._postUntyped(appUrl + \"/commands/\" + command, data);\n },\n }); },\n dependencies: function () { return ({\n delete: function (packageName) { return api._delete(appUrl + \"/dependencies/\" + encodeURIComponent(packageName)); },\n deleteAll: function () { return api._delete(appUrl + \"/dependencies\"); },\n list: function () { return api._get(appUrl + \"/dependencies\", AppDependencies); },\n put: function (filename, body) {\n var form = new FormData();\n form.append('file', body, filename);\n return api._putRaw(appUrl + \"/dependencies\", {\n body: form,\n multipart: true,\n });\n },\n status: function () { return api._get(appUrl + \"/dependencies/status\", DependencyInstallation); },\n upload: function (filename, body) {\n var form = new FormData();\n form.append('file', body, filename);\n return api._postRaw(appUrl + \"/dependencies\", {\n body: form,\n multipart: true,\n });\n },\n upsert: function (packageName, packageVersion) {\n return api._put(appUrl + \"/dependencies/\" + encodeURIComponent(packageName), undefined, {\n version: packageVersion,\n });\n },\n }); },\n environment: function () { return ({\n update: function (environment) { return api._put(appUrl + \"/environment\", environment); },\n }); },\n environmentValues: function () { return ({\n create: function (environmentValue) {\n return api._post(appUrl + \"/environment_values\", EnvironmentValue, environmentValue);\n },\n list: function () { return api._list(appUrl + \"/environment_values\", PartialEnvironmentValue); },\n environmentValue: function (environmentValueId) {\n var environmentValueUrl = appUrl + \"/environment_values/\" + environmentValueId;\n return {\n get: function () { return api._get(environmentValueUrl, EnvironmentValue); },\n remove: function () { return api._delete(environmentValueUrl); },\n update: function (environmentValue) { return api._put(environmentValueUrl, environmentValue); },\n };\n },\n }); },\n templates: function () { return ({\n get: function () { return api._list(appUrl + \"/templates\", Template); },\n }); },\n values: function () { return ({\n create: function (val) { return api._post(appUrl + \"/values\", PartialValue, val); },\n list: function () { return api._list(appUrl + \"/values\", PartialValue); },\n value: function (valueId) {\n var valueUrl = appUrl + \"/values/\" + valueId;\n return {\n get: function () { return api._get(valueUrl, Value); },\n remove: function () { return api._delete(valueUrl); },\n update: function (val) { return api._put(valueUrl, val); },\n };\n },\n }); },\n secrets: function () { return ({\n create: function (secret) { return api._post(appUrl + \"/secrets\", PartialSecret, secret); },\n list: function () { return api._list(appUrl + \"/secrets\", PartialSecret); },\n secret: function (secretId) {\n var secretUrl = appUrl + \"/secrets/\" + secretId;\n return {\n remove: function () { return api._delete(secretUrl); },\n update: function (secret) { return api._put(secretUrl, secret); },\n };\n },\n }); },\n hosting: function () { return ({\n assets: function () { return ({\n asset: function (path) { return ({\n delete: function () { return api._delete(appUrl + \"/hosting/assets/asset\", { path: path }); },\n get: function () {\n return api._get(appUrl + \"/hosting/assets/asset\", AssetMetadata, {\n path: path,\n });\n },\n patch: function (options) {\n return api._patchRaw(appUrl + \"/hosting/assets/asset\", {\n body: JSON.stringify({ attributes: options.attributes }),\n queryParams: { path: path },\n });\n },\n }); },\n createDirectory: function (folderName) {\n return api._putRaw(appUrl + \"/hosting/assets/asset\", {\n body: JSON.stringify({ path: folderName + \"/\" }),\n });\n },\n list: function (prefix, recursive) {\n var filter = {};\n if (prefix) {\n filter.prefix = prefix;\n }\n if (recursive) {\n filter.recursive = recursive;\n }\n return api._list(appUrl + \"/hosting/assets\", AssetMetadata, filter);\n },\n transform: function (request) { return api._postNoContent(appUrl + \"/hosting/assets\", request); },\n upload: function (metadata, body) {\n var form = new FormData();\n form.append('meta', JSON.stringify(jsonConvert.serialize(metadata)));\n form.append('file', body);\n return api._putRaw(appUrl + \"/hosting/assets/asset\", {\n body: form,\n multipart: true,\n });\n },\n }); },\n cache: function () { return ({\n invalidate: function (path) {\n return api._putRaw(appUrl + \"/hosting/cache\", {\n body: JSON.stringify({ invalidate: true, path: path }),\n });\n },\n }); },\n config: function () { return ({\n get: function () { return api._get(appUrl + \"/hosting/config\", HostingConfig); },\n patch: function (config) { return api._patch(appUrl + \"/hosting/config\", config); },\n }); },\n presign: function () { return ({\n get: function (path) {\n return api._get(appUrl + \"/hosting/presign\", AssetURL, {\n path: path,\n });\n },\n }); },\n }); },\n deploy: function () { return ({\n auth: function () { return ({\n github: function () {\n return api._getUntyped(appUrl + \"/deploy/github/auth\", undefined, undefined, {\n credentials: 'include',\n });\n },\n }); },\n config: function () { return api._get(appUrl + \"/deploy/config\", PartialCodeDeploy); },\n deployments: function () { return ({\n get: function (commit) { return api._get(appUrl + \"/deployments/\" + commit, Deployment); },\n list: function (filter) {\n var queryFilter;\n if (filter) {\n queryFilter = {};\n if (filter.before) {\n queryFilter.before = filter.before;\n }\n if (filter.limit) {\n queryFilter.limit = filter.limit;\n }\n if (filter.draftId) {\n queryFilter.draft_id = filter.draftId;\n }\n if (filter.userId) {\n queryFilter.user_id = filter.userId;\n }\n }\n return api._list(appUrl + \"/deployments\", Deployment, filter);\n },\n deployment: function (deploymentId) { return ({\n rename: function (name) {\n return api._patchRaw(appUrl + \"/deployments/\" + deploymentId + \"/rename\", {\n body: JSON.stringify({ name: name }),\n });\n },\n redeploy: function () { return api._postUntyped(appUrl + \"/deployments/\" + deploymentId + \"/redeploy\"); },\n }); },\n }); },\n installation: function () { return api._list(appUrl + \"/deploy/installation\", Installation); },\n overwriteConfig: function (config) { return api._put(appUrl + \"/deploy/config\", config); },\n repositories: function () { return ({\n repository: function (repoId) { return ({\n github: function () { return ({\n branches: function () { return ({\n list: function () { return api._list(appUrl + \"/deploy/github/repositories/\" + repoId + \"/branches\", GitHubBranch); },\n }); },\n }); },\n }); },\n }); },\n updateConfig: function (config) { return api._patch(appUrl + \"/deploy/config\", config); },\n push: function () { return ({\n github: function (request) { return api._postNoContent(appUrl + \"/deploy/github/push\", request); },\n }); },\n ttlInstallations: function (installationId) { return ({\n enableAutoDeploy: function (request) {\n return api._postNoContent(appUrl + \"/deploy/github/ttl_installations/\" + installationId + \"/enable_auto_deploy\", request);\n },\n }); },\n }); },\n drafts: function () { return ({\n create: function () { return api._post(appUrl + \"/drafts\", PartialDraft); },\n delete: function (draftId) { return api._delete(appUrl + \"/drafts/\" + draftId); },\n deploy: function (draftId, bypassServiceChange, deploymentName) {\n var filter;\n if (bypassServiceChange) {\n filter = { bypass_service_change: bypassServiceChange };\n }\n return api._post(appUrl + \"/drafts/\" + draftId + \"/deployment\", Deployment, new DeployDraftPayload({ name: deploymentName }), filter);\n },\n diff: function (draftId) { return api._get(appUrl + \"/drafts/\" + draftId + \"/diff\", DraftDiff); },\n get: function (draftId) { return api._get(appUrl + \"/drafts/\" + draftId, PartialDraft); },\n list: function () { return api._list(appUrl + \"/drafts\", PartialDraft); },\n }); },\n services: function () { return ({\n create: function (desc, skipDraft) {\n if (skipDraft === void 0) { skipDraft = false; }\n return api._post(appUrl + \"/services\", PartialServiceDesc, new ServiceDesc(desc), undefined, {\n skipDraft: skipDraft,\n });\n },\n list: function () { return api._list(appUrl + \"/services\", PartialServiceDesc); },\n service: function (serviceId) { return ({\n config: function () { return ({\n get: function () { return api._getUntyped(appUrl + \"/services/\" + serviceId + \"/config\"); },\n getWithSecrets: function () {\n return api._get(appUrl + \"/services/\" + serviceId + \"/config\", ServiceDescConfig, {\n includeSecretConfig: true,\n });\n },\n update: function (config) {\n return api._patchRaw(appUrl + \"/services/\" + serviceId + \"/config\", {\n body: JSON.stringify(config),\n });\n },\n updateWithSecrets: function (config) {\n return api._patch(appUrl + \"/services/\" + serviceId + \"/config\", config);\n },\n }); },\n get: function () { return api._get(appUrl + \"/services/\" + serviceId, PartialServiceDesc); },\n incomingWebhooks: function () { return ({\n create: function (webhook) {\n return api._post(appUrl + \"/services/\" + serviceId + \"/incoming_webhooks\", PartialIncomingWebhook, webhook);\n },\n incomingWebhook: function (incomingWebhookId) {\n var webhookUrl = appUrl + \"/services/\" + serviceId + \"/incoming_webhooks/\" + incomingWebhookId;\n return {\n get: function () { return api._get(webhookUrl, IncomingWebhook); },\n remove: function () { return api._delete(webhookUrl); },\n update: function (webhook) { return api._put(webhookUrl, webhook); },\n };\n },\n list: function () { return api._list(appUrl + \"/services/\" + serviceId + \"/incoming_webhooks\", PartialIncomingWebhook); },\n }); },\n remove: function (bypassServiceChange) {\n var filter;\n if (bypassServiceChange) {\n filter = { bypass_service_change: bypassServiceChange };\n }\n return api._delete(appUrl + \"/services/\" + serviceId, filter);\n },\n rules: function () { return ({\n create: function (rule, bypassServiceChange) {\n var filter;\n if (bypassServiceChange) {\n filter = { bypass_service_change: bypassServiceChange };\n }\n return api._postConvert(appUrl + \"/services/\" + serviceId + \"/rules\", rule, deserializePartialRule, filter);\n },\n list: function () { return api._listConvert(appUrl + \"/services/\" + serviceId + \"/rules\", deserializePartialRule); },\n rule: function (ruleId) {\n var ruleUrl = appUrl + \"/services/\" + serviceId + \"/rules/\" + ruleId;\n return {\n get: function () { return api._getConvert(deserializeRule, ruleUrl); },\n remove: function (bypassServiceChange) {\n var filter;\n if (bypassServiceChange) {\n filter = { bypass_service_change: bypassServiceChange };\n }\n return api._delete(ruleUrl, filter);\n },\n update: function (rule, bypassServiceChange) {\n var filter;\n if (bypassServiceChange) {\n filter = { bypass_service_change: bypassServiceChange };\n }\n return api._put(ruleUrl, rule, filter);\n },\n };\n },\n }); },\n runCommand: function (commandName, data) {\n return api._postUntyped(appUrl + \"/services/\" + serviceId + \"/commands/\" + commandName, data);\n },\n update: function (version) {\n return api\n ._patchRaw(appUrl + \"/services/\" + serviceId, {\n body: JSON.stringify({ version: version }),\n })\n .then(function (response) { return response.text(); })\n .then(function (response) { return jsonConvert.deserializeObject(EJSON.parse(response), PartialServiceDesc); });\n },\n }); },\n }); },\n endpoints: function () { return ({\n create: function (endpoint) { return api._post(appUrl + \"/endpoints\", PartialEndpoint, endpoint); },\n list: function () { return api._list(appUrl + \"/endpoints\", PartialEndpoint); },\n endpoint: function (endpointId) { return ({\n get: function () { return api._get(appUrl + \"/endpoints/\" + endpointId, Endpoint); },\n remove: function () { return api._delete(appUrl + \"/endpoints/\" + endpointId); },\n update: function (endpoint) { return api._put(appUrl + \"/endpoints/\" + endpointId, endpoint); },\n }); },\n convert: function (request) {\n var filter;\n if (request) {\n filter = {};\n if (request.strategy) {\n filter.strategy = request.strategy;\n }\n }\n return api._put(appUrl + \"/endpoints/convert\", undefined, filter);\n },\n }); },\n pushNotifications: function () { return ({\n create: function (request) {\n return api._post(appUrl + \"/push/notifications\", PushNotification, request);\n },\n list: function (state) {\n return api._list(appUrl + \"/push/notifications\", PushNotification, {\n state: state,\n });\n },\n pushNotification: function (messageId) { return ({\n get: function () { return api._get(appUrl + \"/push/notifications/\" + messageId, PushNotification); },\n remove: function () { return api._delete(appUrl + \"/push/notifications/\" + messageId); },\n send: function () { return api._postUntyped(appUrl + \"/push/notifications/\" + messageId + \"/send\"); },\n update: function (request) {\n return api._put(appUrl + \"/push/notifications/\" + messageId, request);\n },\n }); },\n }); },\n users: function () { return ({\n count: function () { return api._getUntyped(appUrl + \"/users_count\").then(function (result) { return result; }); },\n create: function (request) { return api._post(appUrl + \"/users\", PartialUser, request); },\n list: function (filter) {\n var queryFilter;\n if (filter) {\n queryFilter = {};\n if (filter.descending) {\n queryFilter.desc = filter.descending;\n }\n if (filter.after) {\n queryFilter.after = filter.after;\n }\n if (filter.providerTypes) {\n queryFilter.provider_types = filter.providerTypes;\n }\n if (filter.sort) {\n queryFilter.sort = filter.sort;\n }\n if (filter.limit) {\n queryFilter.limit = filter.limit;\n }\n }\n return api._list(appUrl + \"/users\", PartialUser, filter);\n },\n user: function (uid) { return ({\n devices: function () { return ({\n get: function () { return api._list(appUrl + \"/users/\" + uid + \"/devices\", Device); },\n }); },\n disable: function () { return api._putRaw(appUrl + \"/users/\" + uid + \"/disable\"); },\n enable: function () { return api._putRaw(appUrl + \"/users/\" + uid + \"/enable\"); },\n get: function () { return api._get(appUrl + \"/users/\" + uid, User); },\n logout: function () { return api._putRaw(appUrl + \"/users/\" + uid + \"/logout\"); },\n remove: function () { return api._delete(appUrl + \"/users/\" + uid); },\n }); },\n }); },\n userRegistrations: function () { return ({\n confirmByEmail: function (email) {\n return api._postUntyped(appUrl + \"/user_registrations/by_email/\" + email + \"/confirm\");\n },\n listPending: function (limit, after) {\n var filter;\n if (limit || after) {\n filter = {};\n if (limit) {\n filter.limit = limit;\n }\n if (after) {\n filter.after = after;\n }\n }\n api._list(appUrl + \"/user_registrations/pending_users\", PasswordRecord, filter);\n },\n removePendingUserByEmail: function (email) { return api._delete(appUrl + \"/user_registrations/by_email/\" + email); },\n removePendingUserByID: function (id) { return api._delete(appUrl + \"/user_registrations/by_id/\" + id); },\n runUserConfirmation: function (email) {\n return api._post(appUrl + \"/user_registrations/by_email/\" + email + \"/run_confirm\", UserActionToken);\n },\n sendConfirmationEmail: function (email) {\n return api._post(appUrl + \"/user_registrations/by_email/\" + email + \"/send_confirm\", UserActionToken);\n },\n }); },\n customUserData: function () { return ({\n get: function () { return api._get(appUrl + \"/custom_user_data\", CustomUserDataConfig); },\n update: function (config) { return api._patch(appUrl + \"/custom_user_data\", config); },\n }); },\n debug: function () { return ({\n executeFunction: function (userId, name) {\n if (name === void 0) { name = ''; }\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n return api._postTypedJSON(appUrl + \"/debug/execute_function\", DebugExecuteFunctionResponse, new DebugExecuteFunctionRequest({ name: name, arguments: args }), { user_id: userId });\n },\n executeFunctionSource: function (_a) {\n var userId = _a.userId, _b = _a.source, source = _b === void 0 ? '' : _b, _c = _a.evalSource, evalSource = _c === void 0 ? '' : _c, runAsSystem = _a.runAsSystem;\n return api._postTypedJSON(appUrl + \"/debug/execute_function_source\", DebugExecuteFunctionResponse, new DebugExecuteFunctionSourceRequest({ source: source, evalSource: evalSource }), { user_id: userId, run_as_system: runAsSystem });\n },\n }); },\n authProviders: function () { return ({\n authProvider: function (providerId) { return ({\n disable: function () { return api._putRaw(appUrl + \"/auth_providers/\" + providerId + \"/disable\"); },\n enable: function () { return api._putRaw(appUrl + \"/auth_providers/\" + providerId + \"/enable\"); },\n get: function () { return api._get(appUrl + \"/auth_providers/\" + providerId, AuthProviderConfig); },\n getDeployed: function () { return api._get(appUrl + \"/auth_providers/\" + providerId + \"/deployed\", AuthProviderConfig); },\n remove: function () { return api._delete(appUrl + \"/auth_providers/\" + providerId); },\n update: function (config) { return api._patch(appUrl + \"/auth_providers/\" + providerId, config); },\n }); },\n create: function (config) {\n return api._post(appUrl + \"/auth_providers\", PartialAuthProviderConfig, config);\n },\n list: function () { return api._list(appUrl + \"/auth_providers\", PartialAuthProviderConfig); },\n }); },\n security: function () { return ({\n allowedRequestOrigins: function () { return ({\n get: function () { return api._list(appUrl + \"/security/allowed_request_origins\", String); },\n update: function (origins) { return api._postUntyped(appUrl + \"/security/allowed_request_origins\", origins); },\n }); },\n accessList: function () { return ({\n create: function (allowedIP) {\n return api._post(appUrl + \"/security/access_list\", ListedAllowedIP, allowedIP);\n },\n get: function () { return api._get(appUrl + \"/security/access_list\", AccessList); },\n allowedIP: function (ipID) {\n var allowedIPUrl = appUrl + \"/security/access_list/\" + ipID;\n return {\n update: function (allowedIP) { return api._patchTyped(allowedIPUrl, ListedAllowedIP, allowedIP); },\n delete: function () { return api._delete(allowedIPUrl); },\n };\n },\n }); },\n }); },\n logs: function () { return ({\n list: function (request) {\n var filter;\n if (request) {\n filter = {};\n if (request.endDate) {\n filter.end_date = request.endDate.toISOString();\n }\n if (request.startDate) {\n filter.start_date = request.startDate.toISOString();\n }\n if (request.type) {\n filter.type = request.type;\n }\n if (request.userId) {\n filter.user_id = request.userId;\n }\n if (request.errorsOnly) {\n filter.errors_only = request.errorsOnly;\n }\n if (request.coId) {\n filter.co_id = request.coId;\n }\n if (request.limit) {\n filter.limit = request.limit;\n }\n if (request.skip) {\n filter.skip = request.skip;\n }\n }\n return api._get(appUrl + \"/logs\", AppLogResponse, filter);\n },\n }); },\n logForwarders: function () { return ({\n list: function () { return api._list(appUrl + \"/log_forwarders\", LogForwarder); },\n create: function (logForwarder) {\n return api._post(appUrl + \"/log_forwarders\", LogForwarder, logForwarder);\n },\n logForwarder: function (logForwarderId) { return ({\n get: function () { return api._get(appUrl + \"/log_forwarders/\" + logForwarderId, LogForwarder); },\n remove: function () { return api._delete(appUrl + \"/log_forwarders/\" + logForwarderId); },\n enable: function () { return api._putRaw(appUrl + \"/log_forwarders/\" + logForwarderId + \"/enable\"); },\n disable: function () { return api._putRaw(appUrl + \"/log_forwarders/\" + logForwarderId + \"/disable\"); },\n update: function (logForwarder) {\n return api._patchTyped(appUrl + \"/log_forwarders/\" + logForwarderId, LogForwarder, logForwarder);\n },\n resume: function () { return api._putRaw(appUrl + \"/log_forwarders/\" + logForwarderId + \"/resume\"); },\n }); },\n }); },\n apiKeys: function () { return ({\n apiKey: function (apiKeyId) { return ({\n disable: function () { return api._putRaw(appUrl + \"/api_keys/\" + apiKeyId + \"/disable\"); },\n enable: function () { return api._putRaw(appUrl + \"/api_keys/\" + apiKeyId + \"/enable\"); },\n get: function () { return api._get(appUrl + \"/api_keys/\" + apiKeyId, PartialAPIKey); },\n remove: function () { return api._delete(appUrl + \"/api_keys/\" + apiKeyId); },\n }); },\n create: function (key) { return api._post(appUrl + \"/api_keys\", APIKey, key); },\n list: function () { return api._list(appUrl + \"/api_keys\", PartialAPIKey); },\n }); },\n functions: function () { return ({\n create: function (func) { return api._post(appUrl + \"/functions\", PartialAppFunction, func); },\n function: function (functionId) { return ({\n get: function () { return api._get(appUrl + \"/functions/\" + functionId, ClientAppFunction); },\n remove: function () { return api._delete(appUrl + \"/functions/\" + functionId); },\n update: function (func) { return api._put(appUrl + \"/functions/\" + functionId, func); },\n }); },\n list: function () { return api._list(appUrl + \"/functions\", PartialAppFunction); },\n }); },\n eventSubscriptions: function () { return ({\n create: function (sub) { return api._post(appUrl + \"/event_subscriptions\", EventSubscription, sub); },\n eventSubscription: function (eventSubscriptionId) { return ({\n get: function () { return api._get(appUrl + \"/event_subscriptions/\" + eventSubscriptionId, EventSubscription); },\n remove: function () { return api._delete(appUrl + \"/event_subscriptions/\" + eventSubscriptionId); },\n resume: function (options) {\n return api._put(appUrl + \"/event_subscriptions/\" + eventSubscriptionId + \"/resume\", options);\n },\n update: function (sub) { return api._put(appUrl + \"/event_subscriptions/\" + eventSubscriptionId, sub); },\n execution: function () {\n return api._get(appUrl + \"/event_subscriptions/\" + eventSubscriptionId + \"/execution\", EventSubscriptionExecution);\n },\n }); },\n list: function (type) {\n var filter;\n if (type) {\n filter = { type: type };\n }\n return api._list(appUrl + \"/event_subscriptions\", EventSubscription, filter);\n },\n }); },\n validationSettings: function () {\n var validationSettingsUrl = appUrl + \"/validation_settings\";\n return {\n graphql: function () {\n var graphqlUrl = validationSettingsUrl + \"/graphql\";\n return {\n get: function () { return api._get(graphqlUrl, ValidationOptions); },\n update: function (settings) { return api._put(graphqlUrl, settings); },\n };\n },\n };\n },\n graphql: function () {\n var graphqlUrl = appUrl + \"/graphql\";\n return {\n config: function () { return ({\n get: function () { return api._get(graphqlUrl + \"/config\", GraphQLConfig); },\n update: function (config) { return api._put(graphqlUrl + \"/config\", config); },\n }); },\n customResolvers: function () { return ({\n create: function (resolver) {\n return api._post(graphqlUrl + \"/custom_resolvers\", CustomResolver, resolver);\n },\n customResolver: function (id) { return ({\n get: function () { return api._get(graphqlUrl + \"/custom_resolvers/\" + id, CustomResolver); },\n remove: function () { return api._delete(graphqlUrl + \"/custom_resolvers/\" + id); },\n update: function (resolver) { return api._put(graphqlUrl + \"/custom_resolvers/\" + id, resolver); },\n }); },\n list: function () { return api._list(graphqlUrl + \"/custom_resolvers\", CustomResolver); },\n }); },\n post: function (data) { return api._postUntyped(\"\" + graphqlUrl, data); },\n validate: function () { return api._list(graphqlUrl + \"/validate\", GraphQLAlerts); },\n extendableTypes: function () { return api._get(graphqlUrl + \"/extendable_types\", ExtendableTypes); },\n };\n },\n sync: function () {\n var syncUrl = appUrl + \"/sync\";\n return {\n clientSchemas: function () {\n var clientSchemasUrl = syncUrl + \"/client_schemas\";\n return {\n get: function (language, namespaces) {\n var filter;\n if (namespaces && namespaces.length > 0) {\n filter = { namespace: namespaces };\n }\n return api._list(clientSchemasUrl + \"/\" + language, SyncClientSchema, filter);\n },\n };\n },\n config: function () {\n var configUrl = syncUrl + \"/config\";\n return {\n get: function () { return api._get(configUrl, SyncConfig); },\n update: function (config) { return api._put(configUrl, config); },\n };\n },\n data: function (serviceId) {\n var filter;\n if (serviceId) {\n filter = { service_id: serviceId };\n }\n return api._get(syncUrl + \"/data\", SyncData, filter);\n },\n allowedQueryableFields: function (serviceId) {\n var queryableFieldUrl = appUrl + \"/services/\" + serviceId + \"/sync/allowed_queryable_fields\";\n return api._getConvert(function (response) {\n return new AllowedQueryableFields(response);\n }, queryableFieldUrl);\n },\n progress: function () { return api._get(syncUrl + \"/progress\", SyncProgress); },\n schemas: function () { return ({\n patch: function (request) { return api._patch(syncUrl + \"/schemas\", request); },\n }); },\n };\n },\n schemas: function () { return ({\n create: function (schema, bypassServiceChange) {\n var filter;\n if (bypassServiceChange) {\n filter = { bypass_service_change: bypassServiceChange };\n }\n return api._post(appUrl + \"/schemas\", Schema, schema, filter);\n },\n list: function () { return api._list(appUrl + \"/schemas\", PartialSchema); },\n remove: function (dataSource, database) {\n return api._delete(appUrl + \"/schemas\", { data_source: dataSource, database: database });\n },\n schema: function (schemaId) {\n var schemaUrl = appUrl + \"/schemas/\" + schemaId;\n return {\n get: function () { return api._get(schemaUrl, Schema); },\n remove: function (bypassServiceChange) {\n var filter;\n if (bypassServiceChange) {\n filter = { bypass_service_change: bypassServiceChange };\n }\n return api._delete(schemaUrl, filter);\n },\n update: function (schema, bypassServiceChange) {\n var filter;\n if (bypassServiceChange) {\n filter = { bypass_service_change: bypassServiceChange };\n }\n return api._put(schemaUrl, schema, filter);\n },\n };\n },\n }); },\n };\n },\n deploy: function () {\n var groupDeployUrl = \"/groups/\" + groupId + \"/deploy\";\n return {\n auth: function () { return ({\n github: function () {\n return api._get(groupDeployUrl + \"/github/auth\", GithubGroupAuthenticationResponse, undefined, undefined, {\n credentials: 'include',\n });\n },\n }); },\n installationRequest: function (requestId) {\n return api._list(groupDeployUrl + \"/installation_request/\" + requestId, Installation);\n },\n ttlInstallations: function (installationId) {\n var ttlInstallationUrl = groupDeployUrl + \"/github/ttl_installations/\" + installationId;\n return {\n repository: function (repoId) { return ({\n github: function () { return ({\n branches: function () {\n var branchesUrl = ttlInstallationUrl + \"/repositories/\" + repoId + \"/branches\";\n return {\n branch: function (branchName) { return ({\n directories: function () { return ({\n list: function (githubAuthRequestId) {\n return api._postUntyped(branchesUrl + \"/\" + branchName, {\n github_auth_request_id: githubAuthRequestId,\n });\n },\n }); },\n }); },\n list: function (githubAuthRequestId) {\n return api._postUntyped(\"\" + branchesUrl, { github_auth_request_id: githubAuthRequestId });\n },\n };\n },\n }); },\n }); },\n };\n },\n };\n },\n create: function (request) {\n var query = request.product ? \"?product=\" + request.product : '';\n return api._post(groupUrl + query, PartialApp, request);\n },\n list: function (product) { return api._list(groupUrl, PartialApp, product ? { product: product } : undefined); },\n };\n };\n BaasAdminClient.prototype.templates = function () {\n var api = this._admin;\n return {\n list: function () { return api._list('/templates', Template); },\n };\n };\n BaasAdminClient.prototype.private = function () {\n var privateApi = this._private;\n return {\n auth: function () { return ({\n tempAPIKeys: function () {\n var apiKeysUrl = '/auth/temp_api_keys';\n return {\n create: function (request) {\n return privateApi._post(apiKeysUrl, CreateTempAPIKeyResponse, request);\n },\n };\n },\n }); },\n group: function (groupId) {\n var groupUrl = \"/groups/\" + groupId;\n return {\n app: function (appId) {\n var appUrl = groupUrl + \"/apps/\" + appId;\n return {\n atlasClusters: function () {\n var clustersUrl = appUrl + \"/atlas_clusters\";\n return {\n create: function (regionName) {\n return privateApi._post(clustersUrl, CreateAtlasClusterResponse, new CreateAtlasClusterRequest({ regionName: regionName }), undefined, { credentials: 'include' });\n },\n };\n },\n generate: function (template) { return privateApi._postUntyped(appUrl + \"/generate\", { template_id: template }); },\n };\n },\n atlasClusters: function () {\n var clustersUrl = groupUrl + \"/atlas_clusters\";\n return {\n list: function () { return privateApi._list(clustersUrl, AtlasCluster); },\n cluster: function (clusterName) {\n var clusterUrl = clustersUrl + \"/\" + clusterName;\n return {\n get: function (fields) {\n var query = fields ? \"?fields=\" + fields.join(',') : '';\n return privateApi._get(clusterUrl + query, AtlasCluster);\n },\n storageMetrics: function () {\n var clusterStorageMetricsUrl = clusterUrl + \"/storage_metrics\";\n return {\n get: function () { return privateApi._get(clusterStorageMetricsUrl, ClusterStorageMetrics); },\n };\n },\n };\n },\n };\n },\n atlasDataLakes: function () {\n var dataLakesUrl = groupUrl + \"/atlas_datalakes\";\n return {\n list: function () { return privateApi._list(dataLakesUrl, AtlasDataLake); },\n };\n },\n atlasServerlessInstances: function () {\n var serverlessInstancesUrl = groupUrl + \"/atlas_serverless_instances\";\n return {\n list: function () { return privateApi._list(serverlessInstancesUrl, AtlasServerlessInstance); },\n };\n },\n get: function () { return privateApi._get(groupUrl, AtlasGroup); },\n };\n },\n spa: function () { return ({\n recaptcha: function () { return ({\n verify: function (token) {\n return privateApi._postRaw(\"/spa/recaptcha/verify\", {\n credentials: 'include',\n multipart: true,\n noAuth: true,\n body: new URLSearchParams(\"response=\" + token),\n });\n },\n }); },\n settings: function () { return ({\n global: function () { return privateApi._getUntyped(\"/spa/settings/global\"); },\n }); },\n }); },\n };\n };\n BaasAdminClient.prototype.apiMethods = function (apiType, apiVersion) {\n var _this = this;\n var doRequest = function (url, method, options) {\n return _this._do(url, method, __assign({ apiType: apiType, apiVersion: apiVersion }, options));\n };\n var doJSON = function (url, method, options) {\n return doRequest(url, method, options).then(function (response) {\n var contentHeader = response.headers.get('content-type') || '';\n if (contentHeader.split(',').indexOf('application/json') >= 0) {\n return response.json();\n }\n return response;\n });\n };\n var doText = function (url, method, options) {\n return doRequest(url, method, options).then(function (response) { return response.text(); });\n };\n var doTyped = function (url, method, resultType, data, options) {\n if (data) {\n if (!options) {\n options = {};\n }\n options.body = JSON.stringify(jsonConvert.serialize(data));\n }\n return doText(url, method, options).then(function (response) {\n return jsonConvert.deserializeObject(EJSON.parse(response), resultType);\n });\n };\n var doTypedJSON = function (url, method, resultType, data, options) {\n if (data) {\n if (!options) {\n options = {};\n }\n options.body = JSON.stringify(jsonConvert.serialize(data));\n }\n return doJSON(url, method, options).then(function (response) { return jsonConvert.deserializeObject(response, resultType); });\n };\n var doTypedNoContent = function (url, method, data, options) {\n if (data) {\n if (!options) {\n options = {};\n }\n options.body = JSON.stringify(jsonConvert.serialize(data));\n }\n return doJSON(url, method, options);\n };\n var doTypedList = function (url, method, resultType, data, options) {\n if (data) {\n if (!options) {\n options = {};\n }\n options.body = JSON.stringify(jsonConvert.serialize(data));\n }\n return doText(url, method, options).then(function (response) {\n return Object.values(EJSON.parse(response)).map(function (val) {\n var isPrimitive = val !== Object(val);\n if (isPrimitive) {\n return val;\n }\n return jsonConvert.deserializeObject(val, resultType);\n });\n });\n };\n return {\n _delete: function (url, queryParams) {\n return doJSON(url, 'DELETE', queryParams ? { queryParams: queryParams } : undefined);\n },\n _get: function (url, resultType, queryParams, headers, options) {\n return doTyped(url, 'GET', resultType, undefined, __assign({ headers: headers,\n queryParams: queryParams }, options));\n },\n _getConvert: function (converter, url, queryParams, headers, options) {\n return doText(url, 'GET', __assign({ headers: headers,\n queryParams: queryParams }, options)).then(function (response) { return converter(EJSON.parse(response)); });\n },\n _getUntyped: function (url, queryParams, headers, options) { return doJSON(url, 'GET', __assign({ queryParams: queryParams, headers: headers }, options)); },\n _list: function (url, resultType, queryParams, headers, options) {\n return doTypedList(url, 'GET', resultType, undefined, __assign({ headers: headers,\n queryParams: queryParams }, options));\n },\n _listConvert: function (url, converter, queryParams, headers, options) {\n return doText(url, 'GET', __assign({ headers: headers,\n queryParams: queryParams }, options)).then(function (response) { return Object.values(EJSON.parse(response)).map(function (val) { return converter(val); }); });\n },\n _patch: function (url, data) { return doTypedNoContent(url, 'PATCH', data); },\n _patchTyped: function (url, resultType, data) { return doTyped(url, 'PATCH', resultType, data); },\n _patchRaw: function (url, options) { return doJSON(url, 'PATCH', options); },\n _post: function (url, resultType, data, queryParams, options) { return doTyped(url, 'POST', resultType, data, __assign({ queryParams: queryParams }, options)); },\n _postTypedJSON: function (url, resultType, data, queryParams, options) { return doTypedJSON(url, 'POST', resultType, data, __assign({ queryParams: queryParams }, options)); },\n _postConvert: function (url, data, converter, queryParams) {\n return doText(url, 'POST', {\n body: JSON.stringify(jsonConvert.serialize(data)),\n queryParams: queryParams,\n }).then(function (response) { return converter(EJSON.parse(response)); });\n },\n _postNoContent: function (url, data, queryParams) {\n return doTypedNoContent(url, 'POST', data, { queryParams: queryParams });\n },\n _postRaw: function (url, options) { return doJSON(url, 'POST', options); },\n _postUntyped: function (url, body, queryParams) {\n return doJSON(url, 'POST', {\n body: body ? JSON.stringify(body) : undefined,\n queryParams: queryParams,\n });\n },\n _put: function (url, data, queryParams, options) {\n return doTypedNoContent(url, 'PUT', data, __assign({ queryParams: queryParams }, options));\n },\n _putRaw: function (url, options) { return doJSON(url, 'PUT', options); },\n };\n };\n return BaasAdminClient;\n}());\nexport default BaasAdminClient;\n//# sourceMappingURL=Client.js.map","export * from './AtlasCluster';\nexport * from './AtlasGroup';\nexport * from './AtlasDataLake';\nexport * from './AtlasServerlessInstance';\nexport * from './TempAPIKey';\n//# sourceMappingURL=index.js.map","export * from './APIKey';\nexport * from './App';\nexport * from './AtlasAPIKey';\nexport * from './AuthProvider';\nexport * from './CodeDeploy';\nexport * from './CustomUserData';\nexport * from './Dependencies';\nexport * from './DebugExecuteFunction';\nexport * from './Deployment';\nexport * from './Draft';\nexport * from './Endpoint';\nexport * from './EnvironmentValue';\nexport * from './EventSubscription';\nexport * from './Function';\nexport * from './GraphQL';\nexport * from './Hosting';\nexport * from './IncomingWebhook';\nexport * from './IPAccess';\nexport * from './Log';\nexport * from './Measurement';\nexport * from './Push';\nexport * from './Rule';\nexport * from './Schema';\nexport * from './Secret';\nexport * from './Service';\nexport * from './Sync';\nexport * from './Template';\nexport * from './User';\nexport * from './ValidationOptions';\nexport * from './Value';\nexport * from './LogForwarder';\n//# sourceMappingURL=index.js.map","export * from './v1';\nexport * from './v3';\n//# sourceMappingURL=index.js.map","import BaasAdminClient from './Client';\nexport { BaasAdminClient };\nexport * from './api';\nexport * from './Error';\n//# sourceMappingURL=index.js.map","/**\n * The code was extracted from:\n * https://github.com/davidchambers/Base64.js\n */\n\nvar chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\n\nfunction InvalidCharacterError(message) {\n this.message = message;\n}\n\nInvalidCharacterError.prototype = new Error();\nInvalidCharacterError.prototype.name = 'InvalidCharacterError';\n\nfunction polyfill (input) {\n var str = String(input).replace(/=+$/, '');\n if (str.length % 4 == 1) {\n throw new InvalidCharacterError(\"'atob' failed: The string to be decoded is not correctly encoded.\");\n }\n for (\n // initialize result and counters\n var bc = 0, bs, buffer, idx = 0, output = '';\n // get next character\n buffer = str.charAt(idx++);\n // character found in table? initialize bit storage and add its ascii value;\n ~buffer && (bs = bc % 4 ? bs * 64 + buffer : buffer,\n // and if not first of each 4 characters,\n // convert the first 8 bits to one ascii character\n bc++ % 4) ? output += String.fromCharCode(255 & bs >> (-2 * bc & 6)) : 0\n ) {\n // try to find character in table (0-63, not found => -1)\n buffer = chars.indexOf(buffer);\n }\n return output;\n}\n\n\nmodule.exports = typeof window !== 'undefined' && window.atob && window.atob.bind(window) || polyfill;\n","var atob = require('./atob');\n\nfunction b64DecodeUnicode(str) {\n return decodeURIComponent(atob(str).replace(/(.)/g, function (m, p) {\n var code = p.charCodeAt(0).toString(16).toUpperCase();\n if (code.length < 2) {\n code = '0' + code;\n }\n return '%' + code;\n }));\n}\n\nmodule.exports = function(str) {\n var output = str.replace(/-/g, \"+\").replace(/_/g, \"/\");\n switch (output.length % 4) {\n case 0:\n break;\n case 2:\n output += \"==\";\n break;\n case 3:\n output += \"=\";\n break;\n default:\n throw \"Illegal base64url string!\";\n }\n\n try{\n return b64DecodeUnicode(output);\n } catch (err) {\n return atob(output);\n }\n};\n","'use strict';\nconst strictUriEncode = require('strict-uri-encode');\nconst decodeComponent = require('decode-uri-component');\nconst splitOnFirst = require('split-on-first');\n\nconst isNullOrUndefined = value => value === null || value === undefined;\n\nfunction encoderForArrayFormat(options) {\n\tswitch (options.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tconst index = result.length;\n\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), '[', index, ']'].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [\n\t\t\t\t\t...result,\n\t\t\t\t\t[encode(key, options), '[', encode(index, options), ']=', encode(value, options)].join('')\n\t\t\t\t];\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, [encode(key, options), '[]'].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), '[]=', encode(value, options)].join('')];\n\t\t\t};\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (value === null || value === undefined || value.length === 0) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (result.length === 0) {\n\t\t\t\t\treturn [[encode(key, options), '=', encode(value, options)].join('')];\n\t\t\t\t}\n\n\t\t\t\treturn [[result, encode(value, options)].join(options.arrayFormatSeparator)];\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn key => (result, value) => {\n\t\t\t\tif (\n\t\t\t\t\tvalue === undefined ||\n\t\t\t\t\t(options.skipNull && value === null) ||\n\t\t\t\t\t(options.skipEmptyString && value === '')\n\t\t\t\t) {\n\t\t\t\t\treturn result;\n\t\t\t\t}\n\n\t\t\t\tif (value === null) {\n\t\t\t\t\treturn [...result, encode(key, options)];\n\t\t\t\t}\n\n\t\t\t\treturn [...result, [encode(key, options), '=', encode(value, options)].join('')];\n\t\t\t};\n\t}\n}\n\nfunction parserForArrayFormat(options) {\n\tlet result;\n\n\tswitch (options.arrayFormat) {\n\t\tcase 'index':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /\\[(\\d*)\\]$/.exec(key);\n\n\t\t\t\tkey = key.replace(/\\[\\d*\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = {};\n\t\t\t\t}\n\n\t\t\t\taccumulator[key][result[1]] = value;\n\t\t\t};\n\n\t\tcase 'bracket':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tresult = /(\\[\\])$/.exec(key);\n\t\t\t\tkey = key.replace(/\\[\\]$/, '');\n\n\t\t\t\tif (!result) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = [value];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\n\t\tcase 'comma':\n\t\tcase 'separator':\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tconst isArray = typeof value === 'string' && value.includes(options.arrayFormatSeparator);\n\t\t\t\tconst isEncodedArray = (typeof value === 'string' && !isArray && decode(value, options).includes(options.arrayFormatSeparator));\n\t\t\t\tvalue = isEncodedArray ? decode(value, options) : value;\n\t\t\t\tconst newValue = isArray || isEncodedArray ? value.split(options.arrayFormatSeparator).map(item => decode(item, options)) : value === null ? value : decode(value, options);\n\t\t\t\taccumulator[key] = newValue;\n\t\t\t};\n\n\t\tdefault:\n\t\t\treturn (key, value, accumulator) => {\n\t\t\t\tif (accumulator[key] === undefined) {\n\t\t\t\t\taccumulator[key] = value;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\taccumulator[key] = [].concat(accumulator[key], value);\n\t\t\t};\n\t}\n}\n\nfunction validateArrayFormatSeparator(value) {\n\tif (typeof value !== 'string' || value.length !== 1) {\n\t\tthrow new TypeError('arrayFormatSeparator must be single character string');\n\t}\n}\n\nfunction encode(value, options) {\n\tif (options.encode) {\n\t\treturn options.strict ? strictUriEncode(value) : encodeURIComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction decode(value, options) {\n\tif (options.decode) {\n\t\treturn decodeComponent(value);\n\t}\n\n\treturn value;\n}\n\nfunction keysSorter(input) {\n\tif (Array.isArray(input)) {\n\t\treturn input.sort();\n\t}\n\n\tif (typeof input === 'object') {\n\t\treturn keysSorter(Object.keys(input))\n\t\t\t.sort((a, b) => Number(a) - Number(b))\n\t\t\t.map(key => input[key]);\n\t}\n\n\treturn input;\n}\n\nfunction removeHash(input) {\n\tconst hashStart = input.indexOf('#');\n\tif (hashStart !== -1) {\n\t\tinput = input.slice(0, hashStart);\n\t}\n\n\treturn input;\n}\n\nfunction getHash(url) {\n\tlet hash = '';\n\tconst hashStart = url.indexOf('#');\n\tif (hashStart !== -1) {\n\t\thash = url.slice(hashStart);\n\t}\n\n\treturn hash;\n}\n\nfunction extract(input) {\n\tinput = removeHash(input);\n\tconst queryStart = input.indexOf('?');\n\tif (queryStart === -1) {\n\t\treturn '';\n\t}\n\n\treturn input.slice(queryStart + 1);\n}\n\nfunction parseValue(value, options) {\n\tif (options.parseNumbers && !Number.isNaN(Number(value)) && (typeof value === 'string' && value.trim() !== '')) {\n\t\tvalue = Number(value);\n\t} else if (options.parseBooleans && value !== null && (value.toLowerCase() === 'true' || value.toLowerCase() === 'false')) {\n\t\tvalue = value.toLowerCase() === 'true';\n\t}\n\n\treturn value;\n}\n\nfunction parse(query, options) {\n\toptions = Object.assign({\n\t\tdecode: true,\n\t\tsort: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ',',\n\t\tparseNumbers: false,\n\t\tparseBooleans: false\n\t}, options);\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst formatter = parserForArrayFormat(options);\n\n\t// Create an object with no prototype\n\tconst ret = Object.create(null);\n\n\tif (typeof query !== 'string') {\n\t\treturn ret;\n\t}\n\n\tquery = query.trim().replace(/^[?#&]/, '');\n\n\tif (!query) {\n\t\treturn ret;\n\t}\n\n\tfor (const param of query.split('&')) {\n\t\tlet [key, value] = splitOnFirst(options.decode ? param.replace(/\\+/g, ' ') : param, '=');\n\n\t\t// Missing `=` should be `null`:\n\t\t// http://w3.org/TR/2012/WD-url-20120524/#collect-url-parameters\n\t\tvalue = value === undefined ? null : ['comma', 'separator'].includes(options.arrayFormat) ? value : decode(value, options);\n\t\tformatter(decode(key, options), value, ret);\n\t}\n\n\tfor (const key of Object.keys(ret)) {\n\t\tconst value = ret[key];\n\t\tif (typeof value === 'object' && value !== null) {\n\t\t\tfor (const k of Object.keys(value)) {\n\t\t\t\tvalue[k] = parseValue(value[k], options);\n\t\t\t}\n\t\t} else {\n\t\t\tret[key] = parseValue(value, options);\n\t\t}\n\t}\n\n\tif (options.sort === false) {\n\t\treturn ret;\n\t}\n\n\treturn (options.sort === true ? Object.keys(ret).sort() : Object.keys(ret).sort(options.sort)).reduce((result, key) => {\n\t\tconst value = ret[key];\n\t\tif (Boolean(value) && typeof value === 'object' && !Array.isArray(value)) {\n\t\t\t// Sort object keys, not values\n\t\t\tresult[key] = keysSorter(value);\n\t\t} else {\n\t\t\tresult[key] = value;\n\t\t}\n\n\t\treturn result;\n\t}, Object.create(null));\n}\n\nexports.extract = extract;\nexports.parse = parse;\n\nexports.stringify = (object, options) => {\n\tif (!object) {\n\t\treturn '';\n\t}\n\n\toptions = Object.assign({\n\t\tencode: true,\n\t\tstrict: true,\n\t\tarrayFormat: 'none',\n\t\tarrayFormatSeparator: ','\n\t}, options);\n\n\tvalidateArrayFormatSeparator(options.arrayFormatSeparator);\n\n\tconst shouldFilter = key => (\n\t\t(options.skipNull && isNullOrUndefined(object[key])) ||\n\t\t(options.skipEmptyString && object[key] === '')\n\t);\n\n\tconst formatter = encoderForArrayFormat(options);\n\n\tconst objectCopy = {};\n\n\tfor (const key of Object.keys(object)) {\n\t\tif (!shouldFilter(key)) {\n\t\t\tobjectCopy[key] = object[key];\n\t\t}\n\t}\n\n\tconst keys = Object.keys(objectCopy);\n\n\tif (options.sort !== false) {\n\t\tkeys.sort(options.sort);\n\t}\n\n\treturn keys.map(key => {\n\t\tconst value = object[key];\n\n\t\tif (value === undefined) {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (value === null) {\n\t\t\treturn encode(key, options);\n\t\t}\n\n\t\tif (Array.isArray(value)) {\n\t\t\treturn value\n\t\t\t\t.reduce(formatter(key), [])\n\t\t\t\t.join('&');\n\t\t}\n\n\t\treturn encode(key, options) + '=' + encode(value, options);\n\t}).filter(x => x.length > 0).join('&');\n};\n\nexports.parseUrl = (url, options) => {\n\toptions = Object.assign({\n\t\tdecode: true\n\t}, options);\n\n\tconst [url_, hash] = splitOnFirst(url, '#');\n\n\treturn Object.assign(\n\t\t{\n\t\t\turl: url_.split('?')[0] || '',\n\t\t\tquery: parse(extract(url), options)\n\t\t},\n\t\toptions && options.parseFragmentIdentifier && hash ? {fragmentIdentifier: decode(hash, options)} : {}\n\t);\n};\n\nexports.stringifyUrl = (object, options) => {\n\toptions = Object.assign({\n\t\tencode: true,\n\t\tstrict: true\n\t}, options);\n\n\tconst url = removeHash(object.url).split('?')[0] || '';\n\tconst queryFromUrl = exports.extract(object.url);\n\tconst parsedQueryFromUrl = exports.parse(queryFromUrl, {sort: false});\n\n\tconst query = Object.assign(parsedQueryFromUrl, object.query);\n\tlet queryString = exports.stringify(query, options);\n\tif (queryString) {\n\t\tqueryString = `?${queryString}`;\n\t}\n\n\tlet hash = getHash(object.url);\n\tif (object.fragmentIdentifier) {\n\t\thash = `#${encode(object.fragmentIdentifier, options)}`;\n\t}\n\n\treturn `${url}${queryString}${hash}`;\n};\n","'use strict';\n\nvar base64_url_decode = require('./base64_url_decode');\n\nfunction InvalidTokenError(message) {\n this.message = message;\n}\n\nInvalidTokenError.prototype = new Error();\nInvalidTokenError.prototype.name = 'InvalidTokenError';\n\nmodule.exports = function (token,options) {\n if (typeof token !== 'string') {\n throw new InvalidTokenError('Invalid token specified');\n }\n\n options = options || {};\n var pos = options.header === true ? 0 : 1;\n try {\n return JSON.parse(base64_url_decode(token.split('.')[pos]));\n } catch (e) {\n throw new InvalidTokenError('Invalid token specified: ' + e.message);\n }\n};\n\nmodule.exports.InvalidTokenError = InvalidTokenError;\n","import long from 'long';\nimport buffer from 'buffer';\n\nvar commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};\n\nfunction createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nvar map = createCommonjsModule(function (module) {\n\n if (typeof commonjsGlobal.Map !== 'undefined') {\n module.exports = commonjsGlobal.Map;\n module.exports.Map = commonjsGlobal.Map;\n } else {\n // We will return a polyfill\n var Map = function Map(array) {\n this._keys = [];\n this._values = {};\n\n for (var i = 0; i < array.length; i++) {\n if (array[i] == null) continue; // skip null and undefined\n\n var entry = array[i];\n var key = entry[0];\n var value = entry[1]; // Add the key to the list of keys in order\n\n this._keys.push(key); // Add the key and value to the values dictionary with a point\n // to the location in the ordered keys list\n\n\n this._values[key] = {\n v: value,\n i: this._keys.length - 1\n };\n }\n };\n\n Map.prototype.clear = function () {\n this._keys = [];\n this._values = {};\n };\n\n Map.prototype[\"delete\"] = function (key) {\n var value = this._values[key];\n if (value == null) return false; // Delete entry\n\n delete this._values[key]; // Remove the key from the ordered keys list\n\n this._keys.splice(value.i, 1);\n\n return true;\n };\n\n Map.prototype.entries = function () {\n var self = this;\n var index = 0;\n return {\n next: function next() {\n var key = self._keys[index++];\n return {\n value: key !== undefined ? [key, self._values[key].v] : undefined,\n done: key !== undefined ? false : true\n };\n }\n };\n };\n\n Map.prototype.forEach = function (callback, self) {\n self = self || this;\n\n for (var i = 0; i < this._keys.length; i++) {\n var key = this._keys[i]; // Call the forEach callback\n\n callback.call(self, this._values[key].v, key, self);\n }\n };\n\n Map.prototype.get = function (key) {\n return this._values[key] ? this._values[key].v : undefined;\n };\n\n Map.prototype.has = function (key) {\n return this._values[key] != null;\n };\n\n Map.prototype.keys = function () {\n var self = this;\n var index = 0;\n return {\n next: function next() {\n var key = self._keys[index++];\n return {\n value: key !== undefined ? key : undefined,\n done: key !== undefined ? false : true\n };\n }\n };\n };\n\n Map.prototype.set = function (key, value) {\n if (this._values[key]) {\n this._values[key].v = value;\n return this;\n } // Add the key to the list of keys in order\n\n\n this._keys.push(key); // Add the key and value to the values dictionary with a point\n // to the location in the ordered keys list\n\n\n this._values[key] = {\n v: value,\n i: this._keys.length - 1\n };\n return this;\n };\n\n Map.prototype.values = function () {\n var self = this;\n var index = 0;\n return {\n next: function next() {\n var key = self._keys[index++];\n return {\n value: key !== undefined ? self._values[key].v : undefined,\n done: key !== undefined ? false : true\n };\n }\n };\n }; // Last ismaster\n\n\n Object.defineProperty(Map.prototype, 'size', {\n enumerable: true,\n get: function get() {\n return this._keys.length;\n }\n });\n module.exports = Map;\n }\n});\nvar map_1 = map.Map;\n\n/**\n * @ignore\n */\n\n\nlong.prototype.toExtendedJSON = function (options) {\n if (options && options.relaxed) return this.toNumber();\n return {\n $numberLong: this.toString()\n };\n};\n/**\n * @ignore\n */\n\n\nlong.fromExtendedJSON = function (doc, options) {\n var result = long.fromString(doc.$numberLong);\n return options && options.relaxed ? result.toNumber() : result;\n};\n\nObject.defineProperty(long.prototype, '_bsontype', {\n value: 'Long'\n});\nvar long_1 = long;\n\n/**\n * A class representation of the BSON Double type.\n */\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nvar Double =\n/*#__PURE__*/\nfunction () {\n /**\n * Create a Double type\n *\n * @param {number|Number} value the number we want to represent as a double.\n * @return {Double}\n */\n function Double(value) {\n _classCallCheck(this, Double);\n\n if (value instanceof Number) {\n value = value.valueOf();\n }\n\n this.value = value;\n }\n /**\n * Access the number value.\n *\n * @method\n * @return {number} returns the wrapped double number.\n */\n\n\n _createClass(Double, [{\n key: \"valueOf\",\n value: function valueOf() {\n return this.value;\n }\n /**\n * @ignore\n */\n\n }, {\n key: \"toJSON\",\n value: function toJSON() {\n return this.value;\n }\n /**\n * @ignore\n */\n\n }, {\n key: \"toExtendedJSON\",\n value: function toExtendedJSON(options) {\n if (options && (options.legacy || options.relaxed && isFinite(this.value))) {\n return this.value;\n } // NOTE: JavaScript has +0 and -0, apparently to model limit calculations. If a user\n // explicitly provided `-0` then we need to ensure the sign makes it into the output\n\n\n if (Object.is(Math.sign(this.value), -0)) {\n return {\n $numberDouble: \"-\".concat(this.value.toFixed(1))\n };\n }\n\n return {\n $numberDouble: Number.isInteger(this.value) ? this.value.toFixed(1) : this.value.toString()\n };\n }\n /**\n * @ignore\n */\n\n }], [{\n key: \"fromExtendedJSON\",\n value: function fromExtendedJSON(doc, options) {\n var doubleValue = parseFloat(doc.$numberDouble);\n return options && options.relaxed ? doubleValue : new Double(doubleValue);\n }\n }]);\n\n return Double;\n}();\n\nObject.defineProperty(Double.prototype, '_bsontype', {\n value: 'Double'\n});\nvar double_1 = Double;\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck$1(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties$1(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass$1(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$1(Constructor.prototype, protoProps); if (staticProps) _defineProperties$1(Constructor, staticProps); return Constructor; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n/**\n * @class\n * @param {number} low the low (signed) 32 bits of the Timestamp.\n * @param {number} high the high (signed) 32 bits of the Timestamp.\n * @return {Timestamp}\n */\n\n\nvar Timestamp =\n/*#__PURE__*/\nfunction (_Long) {\n _inherits(Timestamp, _Long);\n\n function Timestamp(low, high) {\n var _this;\n\n _classCallCheck$1(this, Timestamp);\n\n if (long_1.isLong(low)) {\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Timestamp).call(this, low.low, low.high, true));\n } else {\n _this = _possibleConstructorReturn(this, _getPrototypeOf(Timestamp).call(this, low, high, true));\n }\n\n return _possibleConstructorReturn(_this);\n }\n /**\n * Return the JSON value.\n *\n * @method\n * @return {String} the JSON representation.\n */\n\n\n _createClass$1(Timestamp, [{\n key: \"toJSON\",\n value: function toJSON() {\n return {\n $timestamp: this.toString()\n };\n }\n /**\n * Returns a Timestamp represented by the given (32-bit) integer value.\n *\n * @method\n * @param {number} value the 32-bit integer in question.\n * @return {Timestamp} the timestamp.\n */\n\n }, {\n key: \"toExtendedJSON\",\n\n /**\n * @ignore\n */\n value: function toExtendedJSON() {\n return {\n $timestamp: {\n t: this.high >>> 0,\n i: this.low >>> 0\n }\n };\n }\n /**\n * @ignore\n */\n\n }], [{\n key: \"fromInt\",\n value: function fromInt(value) {\n return new Timestamp(long_1.fromInt(value, true));\n }\n /**\n * Returns a Timestamp representing the given number value, provided that it is a finite number. Otherwise, zero is returned.\n *\n * @method\n * @param {number} value the number in question.\n * @return {Timestamp} the timestamp.\n */\n\n }, {\n key: \"fromNumber\",\n value: function fromNumber(value) {\n return new Timestamp(long_1.fromNumber(value, true));\n }\n /**\n * Returns a Timestamp for the given high and low bits. Each is assumed to use 32 bits.\n *\n * @method\n * @param {number} lowBits the low 32-bits.\n * @param {number} highBits the high 32-bits.\n * @return {Timestamp} the timestamp.\n */\n\n }, {\n key: \"fromBits\",\n value: function fromBits(lowBits, highBits) {\n return new Timestamp(lowBits, highBits);\n }\n /**\n * Returns a Timestamp from the given string, optionally using the given radix.\n *\n * @method\n * @param {String} str the textual representation of the Timestamp.\n * @param {number} [opt_radix] the radix in which the text is written.\n * @return {Timestamp} the timestamp.\n */\n\n }, {\n key: \"fromString\",\n value: function fromString(str, opt_radix) {\n return new Timestamp(long_1.fromString(str, opt_radix, true));\n }\n }, {\n key: \"fromExtendedJSON\",\n value: function fromExtendedJSON(doc) {\n return new Timestamp(doc.$timestamp.i, doc.$timestamp.t);\n }\n }]);\n\n return Timestamp;\n}(long_1);\n\nObject.defineProperty(Timestamp.prototype, '_bsontype', {\n value: 'Timestamp'\n});\nTimestamp.MAX_VALUE = Timestamp.MAX_UNSIGNED_VALUE;\nvar timestamp = Timestamp;\n\nvar require$$0 = {};\n\n/* global window */\n\n/**\n * Normalizes our expected stringified form of a function across versions of node\n * @param {Function} fn The function to stringify\n */\n\n\nfunction normalizedFunctionString(fn) {\n return fn.toString().replace('function(', 'function (');\n}\n\nfunction insecureRandomBytes(size) {\n var result = new Uint8Array(size);\n\n for (var i = 0; i < size; ++i) {\n result[i] = Math.floor(Math.random() * 256);\n }\n\n return result;\n}\n\nvar randomBytes = insecureRandomBytes;\n\nif (typeof window !== 'undefined' && window.crypto && window.crypto.getRandomValues) {\n randomBytes = function randomBytes(size) {\n return window.crypto.getRandomValues(new Uint8Array(size));\n };\n} else {\n try {\n randomBytes = require$$0.randomBytes;\n } catch (e) {} // keep the fallback\n // NOTE: in transpiled cases the above require might return null/undefined\n\n\n if (randomBytes == null) {\n randomBytes = insecureRandomBytes;\n }\n}\n\nvar utils = {\n normalizedFunctionString: normalizedFunctionString,\n randomBytes: randomBytes\n};\n\n// shim for using process in browser\n// based off https://github.com/defunctzombie/node-process/blob/master/browser.js\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\n\nfunction defaultClearTimeout() {\n throw new Error('clearTimeout has not been defined');\n}\n\nvar cachedSetTimeout = defaultSetTimout;\nvar cachedClearTimeout = defaultClearTimeout;\n\nif (typeof global.setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n}\n\nif (typeof global.clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n}\n\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n } // if setTimeout wasn't available but was latter defined\n\n\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch (e) {\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch (e) {\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n}\n\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n } // if clearTimeout wasn't available but was latter defined\n\n\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e) {\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e) {\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n}\n\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n\n draining = false;\n\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n var len = queue.length;\n\n while (len) {\n currentQueue = queue;\n queue = [];\n\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n\n queueIndex = -1;\n len = queue.length;\n }\n\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nfunction nextTick(fun) {\n var args = new Array(arguments.length - 1);\n\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n\n queue.push(new Item(fun, args));\n\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n} // v8 likes predictible objects\n\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\n\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\n\nvar title = 'browser';\nvar platform = 'browser';\nvar browser = true;\nvar env = {};\nvar argv = [];\nvar version = ''; // empty string to avoid regexp issues\n\nvar versions = {};\nvar release = {};\nvar config = {};\n\nfunction noop() {}\n\nvar on = noop;\nvar addListener = noop;\nvar once = noop;\nvar off = noop;\nvar removeListener = noop;\nvar removeAllListeners = noop;\nvar emit = noop;\nfunction binding(name) {\n throw new Error('process.binding is not supported');\n}\nfunction cwd() {\n return '/';\n}\nfunction chdir(dir) {\n throw new Error('process.chdir is not supported');\n}\nfunction umask() {\n return 0;\n} // from https://github.com/kumavis/browser-process-hrtime/blob/master/index.js\n\nvar performance = global.performance || {};\n\nvar performanceNow = performance.now || performance.mozNow || performance.msNow || performance.oNow || performance.webkitNow || function () {\n return new Date().getTime();\n}; // generate timestamp or delta\n// see http://nodejs.org/api/process.html#process_process_hrtime\n\n\nfunction hrtime(previousTimestamp) {\n var clocktime = performanceNow.call(performance) * 1e-3;\n var seconds = Math.floor(clocktime);\n var nanoseconds = Math.floor(clocktime % 1 * 1e9);\n\n if (previousTimestamp) {\n seconds = seconds - previousTimestamp[0];\n nanoseconds = nanoseconds - previousTimestamp[1];\n\n if (nanoseconds < 0) {\n seconds--;\n nanoseconds += 1e9;\n }\n }\n\n return [seconds, nanoseconds];\n}\nvar startTime = new Date();\nfunction uptime() {\n var currentTime = new Date();\n var dif = currentTime - startTime;\n return dif / 1000;\n}\nvar process = {\n nextTick: nextTick,\n title: title,\n browser: browser,\n env: env,\n argv: argv,\n version: version,\n versions: versions,\n on: on,\n addListener: addListener,\n once: once,\n off: off,\n removeListener: removeListener,\n removeAllListeners: removeAllListeners,\n emit: emit,\n binding: binding,\n cwd: cwd,\n chdir: chdir,\n umask: umask,\n hrtime: hrtime,\n platform: platform,\n release: release,\n config: config,\n uptime: uptime\n};\n\nvar inherits;\n\nif (typeof Object.create === 'function') {\n inherits = function inherits(ctor, superCtor) {\n // implementation from standard node.js 'util' module\n ctor.super_ = superCtor;\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n inherits = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor;\n\n var TempCtor = function TempCtor() {};\n\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n };\n}\n\nvar inherits$1 = inherits;\n\nfunction _typeof$1(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof$1 = function _typeof(obj) { return typeof obj; }; } else { _typeof$1 = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof$1(obj); }\nvar formatRegExp = /%[sdj%]/g;\nfunction format(f) {\n if (!isString(f)) {\n var objects = [];\n\n for (var i = 0; i < arguments.length; i++) {\n objects.push(inspect(arguments[i]));\n }\n\n return objects.join(' ');\n }\n\n var i = 1;\n var args = arguments;\n var len = args.length;\n var str = String(f).replace(formatRegExp, function (x) {\n if (x === '%%') return '%';\n if (i >= len) return x;\n\n switch (x) {\n case '%s':\n return String(args[i++]);\n\n case '%d':\n return Number(args[i++]);\n\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n\n default:\n return x;\n }\n });\n\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += ' ' + x;\n } else {\n str += ' ' + inspect(x);\n }\n }\n\n return str;\n}\n// Returns a modified function which warns once by default.\n// If --no-deprecation is set, then it is a no-op.\n\nfunction deprecate(fn, msg) {\n // Allow for deprecating things in the process of starting up.\n if (isUndefined(global.process)) {\n return function () {\n return deprecate(fn, msg).apply(this, arguments);\n };\n }\n\n var warned = false;\n\n function deprecated() {\n if (!warned) {\n {\n console.error(msg);\n }\n\n warned = true;\n }\n\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n}\nvar debugs = {};\nvar debugEnviron;\nfunction debuglog(set) {\n if (isUndefined(debugEnviron)) debugEnviron = process.env.NODE_DEBUG || '';\n set = set.toUpperCase();\n\n if (!debugs[set]) {\n if (new RegExp('\\\\b' + set + '\\\\b', 'i').test(debugEnviron)) {\n var pid = 0;\n\n debugs[set] = function () {\n var msg = format.apply(null, arguments);\n console.error('%s %d: %s', set, pid, msg);\n };\n } else {\n debugs[set] = function () {};\n }\n }\n\n return debugs[set];\n}\n/**\n * Echos the value of a value. Trys to print the value out\n * in the best way possible given the different types.\n *\n * @param {Object} obj The object to print out.\n * @param {Object} opts Optional options object that alters the output.\n */\n\n/* legacy: obj, showHidden, depth, colors*/\n\nfunction inspect(obj, opts) {\n // default options\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n }; // legacy...\n\n if (arguments.length >= 3) ctx.depth = arguments[2];\n if (arguments.length >= 4) ctx.colors = arguments[3];\n\n if (isBoolean(opts)) {\n // legacy...\n ctx.showHidden = opts;\n } else if (opts) {\n // got an \"options\" object\n _extend(ctx, opts);\n } // set default options\n\n\n if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\n if (isUndefined(ctx.depth)) ctx.depth = 2;\n if (isUndefined(ctx.colors)) ctx.colors = false;\n if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n} // http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\n\ninspect.colors = {\n 'bold': [1, 22],\n 'italic': [3, 23],\n 'underline': [4, 24],\n 'inverse': [7, 27],\n 'white': [37, 39],\n 'grey': [90, 39],\n 'black': [30, 39],\n 'blue': [34, 39],\n 'cyan': [36, 39],\n 'green': [32, 39],\n 'magenta': [35, 39],\n 'red': [31, 39],\n 'yellow': [33, 39]\n}; // Don't use 'blue' not visible on cmd.exe\n\ninspect.styles = {\n 'special': 'cyan',\n 'number': 'yellow',\n 'boolean': 'yellow',\n 'undefined': 'grey',\n 'null': 'bold',\n 'string': 'green',\n 'date': 'magenta',\n // \"name\": intentionally not styling\n 'regexp': 'red'\n};\n\nfunction stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n\n if (style) {\n return \"\\x1B[\" + inspect.colors[style][0] + 'm' + str + \"\\x1B[\" + inspect.colors[style][1] + 'm';\n } else {\n return str;\n }\n}\n\nfunction stylizeNoColor(str, styleType) {\n return str;\n}\n\nfunction arrayToHash(array) {\n var hash = {};\n array.forEach(function (val, idx) {\n hash[val] = true;\n });\n return hash;\n}\n\nfunction formatValue(ctx, value, recurseTimes) {\n // Provide a hook for user-specified inspect functions.\n // Check that value is an object with an inspect function on it\n if (ctx.customInspect && value && isFunction(value.inspect) && // Filter out the util module, it's inspect function is special\n value.inspect !== inspect && // Also filter out any prototype objects using the circular check.\n !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n\n return ret;\n } // Primitive types cannot have properties\n\n\n var primitive = formatPrimitive(ctx, value);\n\n if (primitive) {\n return primitive;\n } // Look up the keys of the object.\n\n\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n } // IE doesn't make error fields non-enumerable\n // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n\n\n if (isError(value) && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\n return formatError(value);\n } // Some type of object without properties can be shortcutted.\n\n\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n\n if (isError(value)) {\n return formatError(value);\n }\n }\n\n var base = '',\n array = false,\n braces = ['{', '}']; // Make Array say that they are Array\n\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n } // Make functions say that they are functions\n\n\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n } // Make RegExps say that they are RegExps\n\n\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n } // Make dates with properties first say the date\n\n\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n } // Make error with message first say the error\n\n\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n\n ctx.seen.push(value);\n var output;\n\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function (key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n\n ctx.seen.pop();\n return reduceToSingleString(output, base, braces);\n}\n\nfunction formatPrimitive(ctx, value) {\n if (isUndefined(value)) return ctx.stylize('undefined', 'undefined');\n\n if (isString(value)) {\n var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '').replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"') + '\\'';\n return ctx.stylize(simple, 'string');\n }\n\n if (isNumber(value)) return ctx.stylize('' + value, 'number');\n if (isBoolean(value)) return ctx.stylize('' + value, 'boolean'); // For some reason typeof null is \"object\", so special case here.\n\n if (isNull(value)) return ctx.stylize('null', 'null');\n}\n\nfunction formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n}\n\nfunction formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, String(i), true));\n } else {\n output.push('');\n }\n }\n\n keys.forEach(function (key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, key, true));\n }\n });\n return output;\n}\n\nfunction formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || {\n value: value[key]\n };\n\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str.split('\\n').map(function (line) {\n return ' ' + line;\n }).join('\\n').substr(2);\n } else {\n str = '\\n' + str.split('\\n').map(function (line) {\n return ' ' + line;\n }).join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n\n name = JSON.stringify('' + key);\n\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.substr(1, name.length - 2);\n name = ctx.stylize(name, 'name');\n } else {\n name = name.replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"').replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n\n return name + ': ' + str;\n}\n\nfunction reduceToSingleString(output, base, braces) {\n var length = output.reduce(function (prev, cur) {\n if (cur.indexOf('\\n') >= 0) ;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n\n if (length > 60) {\n return braces[0] + (base === '' ? '' : base + '\\n ') + ' ' + output.join(',\\n ') + ' ' + braces[1];\n }\n\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n} // NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\n\nfunction isArray(ar) {\n return Array.isArray(ar);\n}\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nfunction isNull(arg) {\n return arg === null;\n}\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nfunction isSymbol(arg) {\n return _typeof$1(arg) === 'symbol';\n}\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nfunction isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n}\nfunction isObject(arg) {\n return _typeof$1(arg) === 'object' && arg !== null;\n}\nfunction isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n}\nfunction isError(e) {\n return isObject(e) && (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nfunction isPrimitive(arg) {\n return arg === null || typeof arg === 'boolean' || typeof arg === 'number' || typeof arg === 'string' || _typeof$1(arg) === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nfunction isBuffer(maybeBuf) {\n return Buffer.isBuffer(maybeBuf);\n}\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\nfunction pad(n) {\n return n < 10 ? '0' + n.toString(10) : n.toString(10);\n}\n\nvar months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; // 26 Feb 16:19:34\n\nfunction timestamp$1() {\n var d = new Date();\n var time = [pad(d.getHours()), pad(d.getMinutes()), pad(d.getSeconds())].join(':');\n return [d.getDate(), months[d.getMonth()], time].join(' ');\n} // log is just a thin wrapper to console.log that prepends a timestamp\n\n\nfunction log() {\n console.log('%s - %s', timestamp$1(), format.apply(null, arguments));\n}\nfunction _extend(origin, add) {\n // Don't do anything if add isn't an object\n if (!add || !isObject(add)) return origin;\n var keys = Object.keys(add);\n var i = keys.length;\n\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n\n return origin;\n}\n\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nvar util = {\n inherits: inherits$1,\n _extend: _extend,\n log: log,\n isBuffer: isBuffer,\n isPrimitive: isPrimitive,\n isFunction: isFunction,\n isError: isError,\n isDate: isDate,\n isObject: isObject,\n isRegExp: isRegExp,\n isUndefined: isUndefined,\n isSymbol: isSymbol,\n isString: isString,\n isNumber: isNumber,\n isNullOrUndefined: isNullOrUndefined,\n isNull: isNull,\n isBoolean: isBoolean,\n isArray: isArray,\n inspect: inspect,\n deprecate: deprecate,\n format: format,\n debuglog: debuglog\n};\n\nfunction _classCallCheck$2(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties$2(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass$2(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$2(Constructor.prototype, protoProps); if (staticProps) _defineProperties$2(Constructor, staticProps); return Constructor; }\n\nvar Buffer$1 = buffer.Buffer;\nvar randomBytes$1 = utils.randomBytes;\nvar deprecate$1 = util.deprecate; // constants\n\nvar PROCESS_UNIQUE = randomBytes$1(5); // Regular expression that checks for hex value\n\nvar checkForHexRegExp = new RegExp('^[0-9a-fA-F]{24}$');\nvar hasBufferType = false; // Check if buffer exists\n\ntry {\n if (Buffer$1 && Buffer$1.from) hasBufferType = true;\n} catch (err) {\n hasBufferType = false;\n} // Precomputed hex table enables speedy hex string conversion\n\n\nvar hexTable = [];\n\nfor (var _i = 0; _i < 256; _i++) {\n hexTable[_i] = (_i <= 15 ? '0' : '') + _i.toString(16);\n} // Lookup tables\n\n\nvar decodeLookup = [];\nvar i = 0;\n\nwhile (i < 10) {\n decodeLookup[0x30 + i] = i++;\n}\n\nwhile (i < 16) {\n decodeLookup[0x41 - 10 + i] = decodeLookup[0x61 - 10 + i] = i++;\n}\n\nvar _Buffer = Buffer$1;\n\nfunction convertToHex(bytes) {\n return bytes.toString('hex');\n}\n\nfunction makeObjectIdError(invalidString, index) {\n var invalidCharacter = invalidString[index];\n return new TypeError(\"ObjectId string \\\"\".concat(invalidString, \"\\\" contains invalid character \\\"\").concat(invalidCharacter, \"\\\" with character code (\").concat(invalidString.charCodeAt(index), \"). All character codes for a non-hex string must be less than 256.\"));\n}\n/**\n * A class representation of the BSON ObjectId type.\n */\n\n\nvar ObjectId =\n/*#__PURE__*/\nfunction () {\n /**\n * Create an ObjectId type\n *\n * @param {(string|Buffer|number)} id Can be a 24 byte hex string, 12 byte binary Buffer, or a Number.\n * @property {number} generationTime The generation time of this ObjectId instance\n * @return {ObjectId} instance of ObjectId.\n */\n function ObjectId(id) {\n _classCallCheck$2(this, ObjectId);\n\n // Duck-typing to support ObjectId from different npm packages\n if (id instanceof ObjectId) return id; // The most common usecase (blank id, new objectId instance)\n\n if (id == null || typeof id === 'number') {\n // Generate a new id\n this.id = ObjectId.generate(id); // If we are caching the hex string\n\n if (ObjectId.cacheHexString) this.__id = this.toString('hex'); // Return the object\n\n return;\n } // Check if the passed in id is valid\n\n\n var valid = ObjectId.isValid(id); // Throw an error if it's not a valid setup\n\n if (!valid && id != null) {\n throw new TypeError('Argument passed in must be a single String of 12 bytes or a string of 24 hex characters');\n } else if (valid && typeof id === 'string' && id.length === 24 && hasBufferType) {\n return new ObjectId(Buffer$1.from(id, 'hex'));\n } else if (valid && typeof id === 'string' && id.length === 24) {\n return ObjectId.createFromHexString(id);\n } else if (id != null && id.length === 12) {\n // assume 12 byte string\n this.id = id;\n } else if (id != null && id.toHexString) {\n // Duck-typing to support ObjectId from different npm packages\n return ObjectId.createFromHexString(id.toHexString());\n } else {\n throw new TypeError('Argument passed in must be a single String of 12 bytes or a string of 24 hex characters');\n }\n\n if (ObjectId.cacheHexString) this.__id = this.toString('hex');\n }\n /**\n * Return the ObjectId id as a 24 byte hex string representation\n *\n * @method\n * @return {string} return the 24 byte hex string representation.\n */\n\n\n _createClass$2(ObjectId, [{\n key: \"toHexString\",\n value: function toHexString() {\n if (ObjectId.cacheHexString && this.__id) return this.__id;\n var hexString = '';\n\n if (!this.id || !this.id.length) {\n throw new TypeError('invalid ObjectId, ObjectId.id must be either a string or a Buffer, but is [' + JSON.stringify(this.id) + ']');\n }\n\n if (this.id instanceof _Buffer) {\n hexString = convertToHex(this.id);\n if (ObjectId.cacheHexString) this.__id = hexString;\n return hexString;\n }\n\n for (var _i2 = 0; _i2 < this.id.length; _i2++) {\n var hexChar = hexTable[this.id.charCodeAt(_i2)];\n\n if (typeof hexChar !== 'string') {\n throw makeObjectIdError(this.id, _i2);\n }\n\n hexString += hexChar;\n }\n\n if (ObjectId.cacheHexString) this.__id = hexString;\n return hexString;\n }\n /**\n * Update the ObjectId index used in generating new ObjectId's on the driver\n *\n * @method\n * @return {number} returns next index value.\n * @ignore\n */\n\n }, {\n key: \"toString\",\n\n /**\n * Converts the id into a 24 byte hex string for printing\n *\n * @param {String} format The Buffer toString format parameter.\n * @return {String} return the 24 byte hex string representation.\n * @ignore\n */\n value: function toString(format) {\n // Is the id a buffer then use the buffer toString method to return the format\n if (this.id && this.id.copy) {\n return this.id.toString(typeof format === 'string' ? format : 'hex');\n }\n\n return this.toHexString();\n }\n /**\n * Converts to its JSON representation.\n *\n * @return {String} return the 24 byte hex string representation.\n * @ignore\n */\n\n }, {\n key: \"toJSON\",\n value: function toJSON() {\n return this.toHexString();\n }\n /**\n * Compares the equality of this ObjectId with `otherID`.\n *\n * @method\n * @param {object} otherId ObjectId instance to compare against.\n * @return {boolean} the result of comparing two ObjectId's\n */\n\n }, {\n key: \"equals\",\n value: function equals(otherId) {\n if (otherId instanceof ObjectId) {\n return this.toString() === otherId.toString();\n }\n\n if (typeof otherId === 'string' && ObjectId.isValid(otherId) && otherId.length === 12 && this.id instanceof _Buffer) {\n return otherId === this.id.toString('binary');\n }\n\n if (typeof otherId === 'string' && ObjectId.isValid(otherId) && otherId.length === 24) {\n return otherId.toLowerCase() === this.toHexString();\n }\n\n if (typeof otherId === 'string' && ObjectId.isValid(otherId) && otherId.length === 12) {\n return otherId === this.id;\n }\n\n if (otherId != null && (otherId instanceof ObjectId || otherId.toHexString)) {\n return otherId.toHexString() === this.toHexString();\n }\n\n return false;\n }\n /**\n * Returns the generation date (accurate up to the second) that this ID was generated.\n *\n * @method\n * @return {Date} the generation date\n */\n\n }, {\n key: \"getTimestamp\",\n value: function getTimestamp() {\n var timestamp = new Date();\n var time = this.id.readUInt32BE(0);\n timestamp.setTime(Math.floor(time) * 1000);\n return timestamp;\n }\n /**\n * @ignore\n */\n\n }, {\n key: \"toExtendedJSON\",\n\n /**\n * @ignore\n */\n value: function toExtendedJSON() {\n if (this.toHexString) return {\n $oid: this.toHexString()\n };\n return {\n $oid: this.toString('hex')\n };\n }\n /**\n * @ignore\n */\n\n }], [{\n key: \"getInc\",\n value: function getInc() {\n return ObjectId.index = (ObjectId.index + 1) % 0xffffff;\n }\n /**\n * Generate a 12 byte id buffer used in ObjectId's\n *\n * @method\n * @param {number} [time] optional parameter allowing to pass in a second based timestamp.\n * @return {Buffer} return the 12 byte id buffer string.\n */\n\n }, {\n key: \"generate\",\n value: function generate(time) {\n if ('number' !== typeof time) {\n time = ~~(Date.now() / 1000);\n }\n\n var inc = ObjectId.getInc();\n var buffer$$1 = Buffer$1.alloc(12); // 4-byte timestamp\n\n buffer$$1[3] = time & 0xff;\n buffer$$1[2] = time >> 8 & 0xff;\n buffer$$1[1] = time >> 16 & 0xff;\n buffer$$1[0] = time >> 24 & 0xff; // 5-byte process unique\n\n buffer$$1[4] = PROCESS_UNIQUE[0];\n buffer$$1[5] = PROCESS_UNIQUE[1];\n buffer$$1[6] = PROCESS_UNIQUE[2];\n buffer$$1[7] = PROCESS_UNIQUE[3];\n buffer$$1[8] = PROCESS_UNIQUE[4]; // 3-byte counter\n\n buffer$$1[11] = inc & 0xff;\n buffer$$1[10] = inc >> 8 & 0xff;\n buffer$$1[9] = inc >> 16 & 0xff;\n return buffer$$1;\n }\n }, {\n key: \"createPk\",\n value: function createPk() {\n return new ObjectId();\n }\n /**\n * Creates an ObjectId from a second based number, with the rest of the ObjectId zeroed out. Used for comparisons or sorting the ObjectId.\n *\n * @method\n * @param {number} time an integer number representing a number of seconds.\n * @return {ObjectId} return the created ObjectId\n */\n\n }, {\n key: \"createFromTime\",\n value: function createFromTime(time) {\n var buffer$$1 = Buffer$1.from([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]); // Encode time into first 4 bytes\n\n buffer$$1[3] = time & 0xff;\n buffer$$1[2] = time >> 8 & 0xff;\n buffer$$1[1] = time >> 16 & 0xff;\n buffer$$1[0] = time >> 24 & 0xff; // Return the new objectId\n\n return new ObjectId(buffer$$1);\n }\n /**\n * Creates an ObjectId from a hex string representation of an ObjectId.\n *\n * @method\n * @param {string} hexString create a ObjectId from a passed in 24 byte hexstring.\n * @return {ObjectId} return the created ObjectId\n */\n\n }, {\n key: \"createFromHexString\",\n value: function createFromHexString(string) {\n // Throw an error if it's not a valid setup\n if (typeof string === 'undefined' || string != null && string.length !== 24) {\n throw new TypeError('Argument passed in must be a single String of 12 bytes or a string of 24 hex characters');\n } // Use Buffer.from method if available\n\n\n if (hasBufferType) return new ObjectId(Buffer$1.from(string, 'hex')); // Calculate lengths\n\n var array = new _Buffer(12);\n var n = 0;\n var i = 0;\n\n while (i < 24) {\n array[n++] = decodeLookup[string.charCodeAt(i++)] << 4 | decodeLookup[string.charCodeAt(i++)];\n }\n\n return new ObjectId(array);\n }\n /**\n * Checks if a value is a valid bson ObjectId\n *\n * @method\n * @param {*} id ObjectId instance to validate.\n * @return {boolean} return true if the value is a valid bson ObjectId, return false otherwise.\n */\n\n }, {\n key: \"isValid\",\n value: function isValid(id) {\n if (id == null) return false;\n\n if (typeof id === 'number') {\n return true;\n }\n\n if (typeof id === 'string') {\n return id.length === 12 || id.length === 24 && checkForHexRegExp.test(id);\n }\n\n if (id instanceof ObjectId) {\n return true;\n }\n\n if (id instanceof _Buffer && id.length === 12) {\n return true;\n } // Duck-Typing detection of ObjectId like objects\n\n\n if (id.toHexString) {\n return id.id.length === 12 || id.id.length === 24 && checkForHexRegExp.test(id.id);\n }\n\n return false;\n }\n }, {\n key: \"fromExtendedJSON\",\n value: function fromExtendedJSON(doc) {\n return new ObjectId(doc.$oid);\n }\n }]);\n\n return ObjectId;\n}(); // Deprecated methods\n\n\nObjectId.get_inc = deprecate$1(function () {\n return ObjectId.getInc();\n}, 'Please use the static `ObjectId.getInc()` instead');\nObjectId.prototype.get_inc = deprecate$1(function () {\n return ObjectId.getInc();\n}, 'Please use the static `ObjectId.getInc()` instead');\nObjectId.prototype.getInc = deprecate$1(function () {\n return ObjectId.getInc();\n}, 'Please use the static `ObjectId.getInc()` instead');\nObjectId.prototype.generate = deprecate$1(function (time) {\n return ObjectId.generate(time);\n}, 'Please use the static `ObjectId.generate(time)` instead');\n/**\n * @ignore\n */\n\nObject.defineProperty(ObjectId.prototype, 'generationTime', {\n enumerable: true,\n get: function get() {\n return this.id[3] | this.id[2] << 8 | this.id[1] << 16 | this.id[0] << 24;\n },\n set: function set(value) {\n // Encode time into first 4 bytes\n this.id[3] = value & 0xff;\n this.id[2] = value >> 8 & 0xff;\n this.id[1] = value >> 16 & 0xff;\n this.id[0] = value >> 24 & 0xff;\n }\n});\n/**\n * Converts to a string representation of this Id.\n *\n * @return {String} return the 24 byte hex string representation.\n * @ignore\n */\n\nObjectId.prototype[util.inspect.custom || 'inspect'] = ObjectId.prototype.toString;\n/**\n * @ignore\n */\n\nObjectId.index = ~~(Math.random() * 0xffffff); // In 4.0.0 and 4.0.1, this property name was changed to ObjectId to match the class name.\n// This caused interoperability problems with previous versions of the library, so in\n// later builds we changed it back to ObjectID (capital D) to match legacy implementations.\n\nObject.defineProperty(ObjectId.prototype, '_bsontype', {\n value: 'ObjectID'\n});\nvar objectid = ObjectId;\n\nfunction _classCallCheck$3(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties$3(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass$3(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$3(Constructor.prototype, protoProps); if (staticProps) _defineProperties$3(Constructor, staticProps); return Constructor; }\n\nfunction alphabetize(str) {\n return str.split('').sort().join('');\n}\n/**\n * A class representation of the BSON RegExp type.\n */\n\n\nvar BSONRegExp =\n/*#__PURE__*/\nfunction () {\n /**\n * Create a RegExp type\n *\n * @param {string} pattern The regular expression pattern to match\n * @param {string} options The regular expression options\n */\n function BSONRegExp(pattern, options) {\n _classCallCheck$3(this, BSONRegExp);\n\n // Execute\n this.pattern = pattern || '';\n this.options = options ? alphabetize(options) : ''; // Validate options\n\n for (var i = 0; i < this.options.length; i++) {\n if (!(this.options[i] === 'i' || this.options[i] === 'm' || this.options[i] === 'x' || this.options[i] === 'l' || this.options[i] === 's' || this.options[i] === 'u')) {\n throw new Error(\"The regular expression option [\".concat(this.options[i], \"] is not supported\"));\n }\n }\n }\n\n _createClass$3(BSONRegExp, [{\n key: \"toExtendedJSON\",\n\n /**\n * @ignore\n */\n value: function toExtendedJSON(options) {\n options = options || {};\n\n if (options.legacy) {\n return {\n $regex: this.pattern,\n $options: this.options\n };\n }\n\n return {\n $regularExpression: {\n pattern: this.pattern,\n options: this.options\n }\n };\n }\n /**\n * @ignore\n */\n\n }], [{\n key: \"parseOptions\",\n value: function parseOptions(options) {\n return options ? options.split('').sort().join('') : '';\n }\n }, {\n key: \"fromExtendedJSON\",\n value: function fromExtendedJSON(doc) {\n if (doc.$regex) {\n // This is for $regex query operators that have extended json values.\n if (doc.$regex._bsontype === 'BSONRegExp') {\n return doc;\n }\n\n return new BSONRegExp(doc.$regex, BSONRegExp.parseOptions(doc.$options));\n }\n\n return new BSONRegExp(doc.$regularExpression.pattern, BSONRegExp.parseOptions(doc.$regularExpression.options));\n }\n }]);\n\n return BSONRegExp;\n}();\n\nObject.defineProperty(BSONRegExp.prototype, '_bsontype', {\n value: 'BSONRegExp'\n});\nvar regexp = BSONRegExp;\n\n/**\n * A class representation of the BSON Symbol type.\n */\n\nfunction _classCallCheck$4(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties$4(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass$4(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$4(Constructor.prototype, protoProps); if (staticProps) _defineProperties$4(Constructor, staticProps); return Constructor; }\n\nvar BSONSymbol =\n/*#__PURE__*/\nfunction () {\n /**\n * Create a Symbol type\n *\n * @param {string} value the string representing the symbol.\n */\n function BSONSymbol(value) {\n _classCallCheck$4(this, BSONSymbol);\n\n this.value = value;\n }\n /**\n * Access the wrapped string value.\n *\n * @method\n * @return {String} returns the wrapped string.\n */\n\n\n _createClass$4(BSONSymbol, [{\n key: \"valueOf\",\n value: function valueOf() {\n return this.value;\n }\n /**\n * @ignore\n */\n\n }, {\n key: \"toString\",\n value: function toString() {\n return this.value;\n }\n /**\n * @ignore\n */\n\n }, {\n key: \"inspect\",\n value: function inspect() {\n return this.value;\n }\n /**\n * @ignore\n */\n\n }, {\n key: \"toJSON\",\n value: function toJSON() {\n return this.value;\n }\n /**\n * @ignore\n */\n\n }, {\n key: \"toExtendedJSON\",\n value: function toExtendedJSON() {\n return {\n $symbol: this.value\n };\n }\n /**\n * @ignore\n */\n\n }], [{\n key: \"fromExtendedJSON\",\n value: function fromExtendedJSON(doc) {\n return new BSONSymbol(doc.$symbol);\n }\n }]);\n\n return BSONSymbol;\n}();\n\nObject.defineProperty(BSONSymbol.prototype, '_bsontype', {\n value: 'Symbol'\n});\nvar symbol = BSONSymbol;\n\n/**\n * A class representation of a BSON Int32 type.\n */\n\nfunction _classCallCheck$5(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties$5(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass$5(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$5(Constructor.prototype, protoProps); if (staticProps) _defineProperties$5(Constructor, staticProps); return Constructor; }\n\nvar Int32 =\n/*#__PURE__*/\nfunction () {\n /**\n * Create an Int32 type\n *\n * @param {number|Number} value the number we want to represent as an int32.\n * @return {Int32}\n */\n function Int32(value) {\n _classCallCheck$5(this, Int32);\n\n if (value instanceof Number) {\n value = value.valueOf();\n }\n\n this.value = value;\n }\n /**\n * Access the number value.\n *\n * @method\n * @return {number} returns the wrapped int32 number.\n */\n\n\n _createClass$5(Int32, [{\n key: \"valueOf\",\n value: function valueOf() {\n return this.value;\n }\n /**\n * @ignore\n */\n\n }, {\n key: \"toJSON\",\n value: function toJSON() {\n return this.value;\n }\n /**\n * @ignore\n */\n\n }, {\n key: \"toExtendedJSON\",\n value: function toExtendedJSON(options) {\n if (options && (options.relaxed || options.legacy)) return this.value;\n return {\n $numberInt: this.value.toString()\n };\n }\n /**\n * @ignore\n */\n\n }], [{\n key: \"fromExtendedJSON\",\n value: function fromExtendedJSON(doc, options) {\n return options && options.relaxed ? parseInt(doc.$numberInt, 10) : new Int32(doc.$numberInt);\n }\n }]);\n\n return Int32;\n}();\n\nObject.defineProperty(Int32.prototype, '_bsontype', {\n value: 'Int32'\n});\nvar int_32 = Int32;\n\n/**\n * A class representation of the BSON Code type.\n */\n\nfunction _classCallCheck$6(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties$6(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass$6(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$6(Constructor.prototype, protoProps); if (staticProps) _defineProperties$6(Constructor, staticProps); return Constructor; }\n\nvar Code =\n/*#__PURE__*/\nfunction () {\n /**\n * Create a Code type\n *\n * @param {(string|function)} code a string or function.\n * @param {Object} [scope] an optional scope for the function.\n * @return {Code}\n */\n function Code(code, scope) {\n _classCallCheck$6(this, Code);\n\n this.code = code;\n this.scope = scope;\n }\n /**\n * @ignore\n */\n\n\n _createClass$6(Code, [{\n key: \"toJSON\",\n value: function toJSON() {\n return {\n scope: this.scope,\n code: this.code\n };\n }\n /**\n * @ignore\n */\n\n }, {\n key: \"toExtendedJSON\",\n value: function toExtendedJSON() {\n if (this.scope) {\n return {\n $code: this.code,\n $scope: this.scope\n };\n }\n\n return {\n $code: this.code\n };\n }\n /**\n * @ignore\n */\n\n }], [{\n key: \"fromExtendedJSON\",\n value: function fromExtendedJSON(doc) {\n return new Code(doc.$code, doc.$scope);\n }\n }]);\n\n return Code;\n}();\n\nObject.defineProperty(Code.prototype, '_bsontype', {\n value: 'Code'\n});\nvar code = Code;\n\nvar Buffer$2 = buffer.Buffer;\nvar PARSE_STRING_REGEXP = /^(\\+|-)?(\\d+|(\\d*\\.\\d*))?(E|e)?([-+])?(\\d+)?$/;\nvar PARSE_INF_REGEXP = /^(\\+|-)?(Infinity|inf)$/i;\nvar PARSE_NAN_REGEXP = /^(\\+|-)?NaN$/i;\nvar EXPONENT_MAX = 6111;\nvar EXPONENT_MIN = -6176;\nvar EXPONENT_BIAS = 6176;\nvar MAX_DIGITS = 34; // Nan value bits as 32 bit values (due to lack of longs)\n\nvar NAN_BUFFER = [0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00].reverse(); // Infinity value bits 32 bit values (due to lack of longs)\n\nvar INF_NEGATIVE_BUFFER = [0xf8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00].reverse();\nvar INF_POSITIVE_BUFFER = [0x78, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00].reverse();\nvar EXPONENT_REGEX = /^([-+])?(\\d+)?$/; // Detect if the value is a digit\n\nfunction isDigit(value) {\n return !isNaN(parseInt(value, 10));\n} // Divide two uint128 values\n\n\nfunction divideu128(value) {\n var DIVISOR = long_1.fromNumber(1000 * 1000 * 1000);\n\n var _rem = long_1.fromNumber(0);\n\n if (!value.parts[0] && !value.parts[1] && !value.parts[2] && !value.parts[3]) {\n return {\n quotient: value,\n rem: _rem\n };\n }\n\n for (var i = 0; i <= 3; i++) {\n // Adjust remainder to match value of next dividend\n _rem = _rem.shiftLeft(32); // Add the divided to _rem\n\n _rem = _rem.add(new long_1(value.parts[i], 0));\n value.parts[i] = _rem.div(DIVISOR).low;\n _rem = _rem.modulo(DIVISOR);\n }\n\n return {\n quotient: value,\n rem: _rem\n };\n} // Multiply two Long values and return the 128 bit value\n\n\nfunction multiply64x2(left, right) {\n if (!left && !right) {\n return {\n high: long_1.fromNumber(0),\n low: long_1.fromNumber(0)\n };\n }\n\n var leftHigh = left.shiftRightUnsigned(32);\n var leftLow = new long_1(left.getLowBits(), 0);\n var rightHigh = right.shiftRightUnsigned(32);\n var rightLow = new long_1(right.getLowBits(), 0);\n var productHigh = leftHigh.multiply(rightHigh);\n var productMid = leftHigh.multiply(rightLow);\n var productMid2 = leftLow.multiply(rightHigh);\n var productLow = leftLow.multiply(rightLow);\n productHigh = productHigh.add(productMid.shiftRightUnsigned(32));\n productMid = new long_1(productMid.getLowBits(), 0).add(productMid2).add(productLow.shiftRightUnsigned(32));\n productHigh = productHigh.add(productMid.shiftRightUnsigned(32));\n productLow = productMid.shiftLeft(32).add(new long_1(productLow.getLowBits(), 0)); // Return the 128 bit result\n\n return {\n high: productHigh,\n low: productLow\n };\n}\n\nfunction lessThan(left, right) {\n // Make values unsigned\n var uhleft = left.high >>> 0;\n var uhright = right.high >>> 0; // Compare high bits first\n\n if (uhleft < uhright) {\n return true;\n } else if (uhleft === uhright) {\n var ulleft = left.low >>> 0;\n var ulright = right.low >>> 0;\n if (ulleft < ulright) return true;\n }\n\n return false;\n}\n\nfunction invalidErr(string, message) {\n throw new TypeError(\"\\\"\".concat(string, \"\\\" is not a valid Decimal128 string - \").concat(message));\n}\n/**\n * A class representation of the BSON Decimal128 type.\n *\n * @class\n * @param {Buffer} bytes a buffer containing the raw Decimal128 bytes.\n * @return {Double}\n */\n\n\nfunction Decimal128(bytes) {\n this.bytes = bytes;\n}\n/**\n * Create a Decimal128 instance from a string representation\n *\n * @method\n * @param {string} string a numeric string representation.\n * @return {Decimal128} returns a Decimal128 instance.\n */\n\n\nDecimal128.fromString = function (string) {\n // Parse state tracking\n var isNegative = false;\n var sawRadix = false;\n var foundNonZero = false; // Total number of significant digits (no leading or trailing zero)\n\n var significantDigits = 0; // Total number of significand digits read\n\n var nDigitsRead = 0; // Total number of digits (no leading zeros)\n\n var nDigits = 0; // The number of the digits after radix\n\n var radixPosition = 0; // The index of the first non-zero in *str*\n\n var firstNonZero = 0; // Digits Array\n\n var digits = [0]; // The number of digits in digits\n\n var nDigitsStored = 0; // Insertion pointer for digits\n\n var digitsInsert = 0; // The index of the first non-zero digit\n\n var firstDigit = 0; // The index of the last digit\n\n var lastDigit = 0; // Exponent\n\n var exponent = 0; // loop index over array\n\n var i = 0; // The high 17 digits of the significand\n\n var significandHigh = [0, 0]; // The low 17 digits of the significand\n\n var significandLow = [0, 0]; // The biased exponent\n\n var biasedExponent = 0; // Read index\n\n var index = 0; // Naively prevent against REDOS attacks.\n // TODO: implementing a custom parsing for this, or refactoring the regex would yield\n // further gains.\n\n if (string.length >= 7000) {\n throw new TypeError('' + string + ' not a valid Decimal128 string');\n } // Results\n\n\n var stringMatch = string.match(PARSE_STRING_REGEXP);\n var infMatch = string.match(PARSE_INF_REGEXP);\n var nanMatch = string.match(PARSE_NAN_REGEXP); // Validate the string\n\n if (!stringMatch && !infMatch && !nanMatch || string.length === 0) {\n throw new TypeError('' + string + ' not a valid Decimal128 string');\n }\n\n if (stringMatch) {\n // full_match = stringMatch[0]\n // sign = stringMatch[1]\n var unsignedNumber = stringMatch[2]; // stringMatch[3] is undefined if a whole number (ex \"1\", 12\")\n // but defined if a number w/ decimal in it (ex \"1.0, 12.2\")\n\n var e = stringMatch[4];\n var expSign = stringMatch[5];\n var expNumber = stringMatch[6]; // they provided e, but didn't give an exponent number. for ex \"1e\"\n\n if (e && expNumber === undefined) invalidErr(string, 'missing exponent power'); // they provided e, but didn't give a number before it. for ex \"e1\"\n\n if (e && unsignedNumber === undefined) invalidErr(string, 'missing exponent base');\n\n if (e === undefined && (expSign || expNumber)) {\n invalidErr(string, 'missing e before exponent');\n }\n } // Get the negative or positive sign\n\n\n if (string[index] === '+' || string[index] === '-') {\n isNegative = string[index++] === '-';\n } // Check if user passed Infinity or NaN\n\n\n if (!isDigit(string[index]) && string[index] !== '.') {\n if (string[index] === 'i' || string[index] === 'I') {\n return new Decimal128(Buffer$2.from(isNegative ? INF_NEGATIVE_BUFFER : INF_POSITIVE_BUFFER));\n } else if (string[index] === 'N') {\n return new Decimal128(Buffer$2.from(NAN_BUFFER));\n }\n } // Read all the digits\n\n\n while (isDigit(string[index]) || string[index] === '.') {\n if (string[index] === '.') {\n if (sawRadix) invalidErr(string, 'contains multiple periods');\n sawRadix = true;\n index = index + 1;\n continue;\n }\n\n if (nDigitsStored < 34) {\n if (string[index] !== '0' || foundNonZero) {\n if (!foundNonZero) {\n firstNonZero = nDigitsRead;\n }\n\n foundNonZero = true; // Only store 34 digits\n\n digits[digitsInsert++] = parseInt(string[index], 10);\n nDigitsStored = nDigitsStored + 1;\n }\n }\n\n if (foundNonZero) nDigits = nDigits + 1;\n if (sawRadix) radixPosition = radixPosition + 1;\n nDigitsRead = nDigitsRead + 1;\n index = index + 1;\n }\n\n if (sawRadix && !nDigitsRead) throw new TypeError('' + string + ' not a valid Decimal128 string'); // Read exponent if exists\n\n if (string[index] === 'e' || string[index] === 'E') {\n // Read exponent digits\n var match = string.substr(++index).match(EXPONENT_REGEX); // No digits read\n\n if (!match || !match[2]) return new Decimal128(Buffer$2.from(NAN_BUFFER)); // Get exponent\n\n exponent = parseInt(match[0], 10); // Adjust the index\n\n index = index + match[0].length;\n } // Return not a number\n\n\n if (string[index]) return new Decimal128(Buffer$2.from(NAN_BUFFER)); // Done reading input\n // Find first non-zero digit in digits\n\n firstDigit = 0;\n\n if (!nDigitsStored) {\n firstDigit = 0;\n lastDigit = 0;\n digits[0] = 0;\n nDigits = 1;\n nDigitsStored = 1;\n significantDigits = 0;\n } else {\n lastDigit = nDigitsStored - 1;\n significantDigits = nDigits;\n\n if (significantDigits !== 1) {\n while (string[firstNonZero + significantDigits - 1] === '0') {\n significantDigits = significantDigits - 1;\n }\n }\n } // Normalization of exponent\n // Correct exponent based on radix position, and shift significand as needed\n // to represent user input\n // Overflow prevention\n\n\n if (exponent <= radixPosition && radixPosition - exponent > 1 << 14) {\n exponent = EXPONENT_MIN;\n } else {\n exponent = exponent - radixPosition;\n } // Attempt to normalize the exponent\n\n\n while (exponent > EXPONENT_MAX) {\n // Shift exponent to significand and decrease\n lastDigit = lastDigit + 1;\n\n if (lastDigit - firstDigit > MAX_DIGITS) {\n // Check if we have a zero then just hard clamp, otherwise fail\n var digitsString = digits.join('');\n\n if (digitsString.match(/^0+$/)) {\n exponent = EXPONENT_MAX;\n break;\n }\n\n invalidErr(string, 'overflow');\n }\n\n exponent = exponent - 1;\n }\n\n while (exponent < EXPONENT_MIN || nDigitsStored < nDigits) {\n // Shift last digit. can only do this if < significant digits than # stored.\n if (lastDigit === 0 && significantDigits < nDigitsStored) {\n exponent = EXPONENT_MIN;\n significantDigits = 0;\n break;\n }\n\n if (nDigitsStored < nDigits) {\n // adjust to match digits not stored\n nDigits = nDigits - 1;\n } else {\n // adjust to round\n lastDigit = lastDigit - 1;\n }\n\n if (exponent < EXPONENT_MAX) {\n exponent = exponent + 1;\n } else {\n // Check if we have a zero then just hard clamp, otherwise fail\n var _digitsString = digits.join('');\n\n if (_digitsString.match(/^0+$/)) {\n exponent = EXPONENT_MAX;\n break;\n }\n\n invalidErr(string, 'overflow');\n }\n } // Round\n // We've normalized the exponent, but might still need to round.\n\n\n if (lastDigit - firstDigit + 1 < significantDigits) {\n var endOfString = nDigitsRead; // If we have seen a radix point, 'string' is 1 longer than we have\n // documented with ndigits_read, so inc the position of the first nonzero\n // digit and the position that digits are read to.\n\n if (sawRadix) {\n firstNonZero = firstNonZero + 1;\n endOfString = endOfString + 1;\n } // if negative, we need to increment again to account for - sign at start.\n\n\n if (isNegative) {\n firstNonZero = firstNonZero + 1;\n endOfString = endOfString + 1;\n }\n\n var roundDigit = parseInt(string[firstNonZero + lastDigit + 1], 10);\n var roundBit = 0;\n\n if (roundDigit >= 5) {\n roundBit = 1;\n\n if (roundDigit === 5) {\n roundBit = digits[lastDigit] % 2 === 1;\n\n for (i = firstNonZero + lastDigit + 2; i < endOfString; i++) {\n if (parseInt(string[i], 10)) {\n roundBit = 1;\n break;\n }\n }\n }\n }\n\n if (roundBit) {\n var dIdx = lastDigit;\n\n for (; dIdx >= 0; dIdx--) {\n if (++digits[dIdx] > 9) {\n digits[dIdx] = 0; // overflowed most significant digit\n\n if (dIdx === 0) {\n if (exponent < EXPONENT_MAX) {\n exponent = exponent + 1;\n digits[dIdx] = 1;\n } else {\n return new Decimal128(Buffer$2.from(isNegative ? INF_NEGATIVE_BUFFER : INF_POSITIVE_BUFFER));\n }\n }\n }\n }\n }\n } // Encode significand\n // The high 17 digits of the significand\n\n\n significandHigh = long_1.fromNumber(0); // The low 17 digits of the significand\n\n significandLow = long_1.fromNumber(0); // read a zero\n\n if (significantDigits === 0) {\n significandHigh = long_1.fromNumber(0);\n significandLow = long_1.fromNumber(0);\n } else if (lastDigit - firstDigit < 17) {\n var _dIdx = firstDigit;\n significandLow = long_1.fromNumber(digits[_dIdx++]);\n significandHigh = new long_1(0, 0);\n\n for (; _dIdx <= lastDigit; _dIdx++) {\n significandLow = significandLow.multiply(long_1.fromNumber(10));\n significandLow = significandLow.add(long_1.fromNumber(digits[_dIdx]));\n }\n } else {\n var _dIdx2 = firstDigit;\n significandHigh = long_1.fromNumber(digits[_dIdx2++]);\n\n for (; _dIdx2 <= lastDigit - 17; _dIdx2++) {\n significandHigh = significandHigh.multiply(long_1.fromNumber(10));\n significandHigh = significandHigh.add(long_1.fromNumber(digits[_dIdx2]));\n }\n\n significandLow = long_1.fromNumber(digits[_dIdx2++]);\n\n for (; _dIdx2 <= lastDigit; _dIdx2++) {\n significandLow = significandLow.multiply(long_1.fromNumber(10));\n significandLow = significandLow.add(long_1.fromNumber(digits[_dIdx2]));\n }\n }\n\n var significand = multiply64x2(significandHigh, long_1.fromString('100000000000000000'));\n significand.low = significand.low.add(significandLow);\n\n if (lessThan(significand.low, significandLow)) {\n significand.high = significand.high.add(long_1.fromNumber(1));\n } // Biased exponent\n\n\n biasedExponent = exponent + EXPONENT_BIAS;\n var dec = {\n low: long_1.fromNumber(0),\n high: long_1.fromNumber(0)\n }; // Encode combination, exponent, and significand.\n\n if (significand.high.shiftRightUnsigned(49).and(long_1.fromNumber(1)).equals(long_1.fromNumber(1))) {\n // Encode '11' into bits 1 to 3\n dec.high = dec.high.or(long_1.fromNumber(0x3).shiftLeft(61));\n dec.high = dec.high.or(long_1.fromNumber(biasedExponent).and(long_1.fromNumber(0x3fff).shiftLeft(47)));\n dec.high = dec.high.or(significand.high.and(long_1.fromNumber(0x7fffffffffff)));\n } else {\n dec.high = dec.high.or(long_1.fromNumber(biasedExponent & 0x3fff).shiftLeft(49));\n dec.high = dec.high.or(significand.high.and(long_1.fromNumber(0x1ffffffffffff)));\n }\n\n dec.low = significand.low; // Encode sign\n\n if (isNegative) {\n dec.high = dec.high.or(long_1.fromString('9223372036854775808'));\n } // Encode into a buffer\n\n\n var buffer$$1 = Buffer$2.alloc(16);\n index = 0; // Encode the low 64 bits of the decimal\n // Encode low bits\n\n buffer$$1[index++] = dec.low.low & 0xff;\n buffer$$1[index++] = dec.low.low >> 8 & 0xff;\n buffer$$1[index++] = dec.low.low >> 16 & 0xff;\n buffer$$1[index++] = dec.low.low >> 24 & 0xff; // Encode high bits\n\n buffer$$1[index++] = dec.low.high & 0xff;\n buffer$$1[index++] = dec.low.high >> 8 & 0xff;\n buffer$$1[index++] = dec.low.high >> 16 & 0xff;\n buffer$$1[index++] = dec.low.high >> 24 & 0xff; // Encode the high 64 bits of the decimal\n // Encode low bits\n\n buffer$$1[index++] = dec.high.low & 0xff;\n buffer$$1[index++] = dec.high.low >> 8 & 0xff;\n buffer$$1[index++] = dec.high.low >> 16 & 0xff;\n buffer$$1[index++] = dec.high.low >> 24 & 0xff; // Encode high bits\n\n buffer$$1[index++] = dec.high.high & 0xff;\n buffer$$1[index++] = dec.high.high >> 8 & 0xff;\n buffer$$1[index++] = dec.high.high >> 16 & 0xff;\n buffer$$1[index++] = dec.high.high >> 24 & 0xff; // Return the new Decimal128\n\n return new Decimal128(buffer$$1);\n}; // Extract least significant 5 bits\n\n\nvar COMBINATION_MASK = 0x1f; // Extract least significant 14 bits\n\nvar EXPONENT_MASK = 0x3fff; // Value of combination field for Inf\n\nvar COMBINATION_INFINITY = 30; // Value of combination field for NaN\n\nvar COMBINATION_NAN = 31;\n/**\n * Create a string representation of the raw Decimal128 value\n *\n * @method\n * @return {string} returns a Decimal128 string representation.\n */\n\nDecimal128.prototype.toString = function () {\n // Note: bits in this routine are referred to starting at 0,\n // from the sign bit, towards the coefficient.\n // bits 0 - 31\n var high; // bits 32 - 63\n\n var midh; // bits 64 - 95\n\n var midl; // bits 96 - 127\n\n var low; // bits 1 - 5\n\n var combination; // decoded biased exponent (14 bits)\n\n var biased_exponent; // the number of significand digits\n\n var significand_digits = 0; // the base-10 digits in the significand\n\n var significand = new Array(36);\n\n for (var i = 0; i < significand.length; i++) {\n significand[i] = 0;\n } // read pointer into significand\n\n\n var index = 0; // unbiased exponent\n\n var exponent; // the exponent if scientific notation is used\n\n var scientific_exponent; // true if the number is zero\n\n var is_zero = false; // the most signifcant significand bits (50-46)\n\n var significand_msb; // temporary storage for significand decoding\n\n var significand128 = {\n parts: new Array(4)\n }; // indexing variables\n\n var j, k; // Output string\n\n var string = []; // Unpack index\n\n index = 0; // Buffer reference\n\n var buffer$$1 = this.bytes; // Unpack the low 64bits into a long\n\n low = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24;\n midl = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24; // Unpack the high 64bits into a long\n\n midh = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24;\n high = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24; // Unpack index\n\n index = 0; // Create the state of the decimal\n\n var dec = {\n low: new long_1(low, midl),\n high: new long_1(midh, high)\n };\n\n if (dec.high.lessThan(long_1.ZERO)) {\n string.push('-');\n } // Decode combination field and exponent\n\n\n combination = high >> 26 & COMBINATION_MASK;\n\n if (combination >> 3 === 3) {\n // Check for 'special' values\n if (combination === COMBINATION_INFINITY) {\n return string.join('') + 'Infinity';\n } else if (combination === COMBINATION_NAN) {\n return 'NaN';\n } else {\n biased_exponent = high >> 15 & EXPONENT_MASK;\n significand_msb = 0x08 + (high >> 14 & 0x01);\n }\n } else {\n significand_msb = high >> 14 & 0x07;\n biased_exponent = high >> 17 & EXPONENT_MASK;\n }\n\n exponent = biased_exponent - EXPONENT_BIAS; // Create string of significand digits\n // Convert the 114-bit binary number represented by\n // (significand_high, significand_low) to at most 34 decimal\n // digits through modulo and division.\n\n significand128.parts[0] = (high & 0x3fff) + ((significand_msb & 0xf) << 14);\n significand128.parts[1] = midh;\n significand128.parts[2] = midl;\n significand128.parts[3] = low;\n\n if (significand128.parts[0] === 0 && significand128.parts[1] === 0 && significand128.parts[2] === 0 && significand128.parts[3] === 0) {\n is_zero = true;\n } else {\n for (k = 3; k >= 0; k--) {\n var least_digits = 0; // Peform the divide\n\n var result = divideu128(significand128);\n significand128 = result.quotient;\n least_digits = result.rem.low; // We now have the 9 least significant digits (in base 2).\n // Convert and output to string.\n\n if (!least_digits) continue;\n\n for (j = 8; j >= 0; j--) {\n // significand[k * 9 + j] = Math.round(least_digits % 10);\n significand[k * 9 + j] = least_digits % 10; // least_digits = Math.round(least_digits / 10);\n\n least_digits = Math.floor(least_digits / 10);\n }\n }\n } // Output format options:\n // Scientific - [-]d.dddE(+/-)dd or [-]dE(+/-)dd\n // Regular - ddd.ddd\n\n\n if (is_zero) {\n significand_digits = 1;\n significand[index] = 0;\n } else {\n significand_digits = 36;\n\n while (!significand[index]) {\n significand_digits = significand_digits - 1;\n index = index + 1;\n }\n }\n\n scientific_exponent = significand_digits - 1 + exponent; // The scientific exponent checks are dictated by the string conversion\n // specification and are somewhat arbitrary cutoffs.\n //\n // We must check exponent > 0, because if this is the case, the number\n // has trailing zeros. However, we *cannot* output these trailing zeros,\n // because doing so would change the precision of the value, and would\n // change stored data if the string converted number is round tripped.\n\n if (scientific_exponent >= 34 || scientific_exponent <= -7 || exponent > 0) {\n // Scientific format\n // if there are too many significant digits, we should just be treating numbers\n // as + or - 0 and using the non-scientific exponent (this is for the \"invalid\n // representation should be treated as 0/-0\" spec cases in decimal128-1.json)\n if (significand_digits > 34) {\n string.push(0);\n if (exponent > 0) string.push('E+' + exponent);else if (exponent < 0) string.push('E' + exponent);\n return string.join('');\n }\n\n string.push(significand[index++]);\n significand_digits = significand_digits - 1;\n\n if (significand_digits) {\n string.push('.');\n }\n\n for (var _i = 0; _i < significand_digits; _i++) {\n string.push(significand[index++]);\n } // Exponent\n\n\n string.push('E');\n\n if (scientific_exponent > 0) {\n string.push('+' + scientific_exponent);\n } else {\n string.push(scientific_exponent);\n }\n } else {\n // Regular format with no decimal place\n if (exponent >= 0) {\n for (var _i2 = 0; _i2 < significand_digits; _i2++) {\n string.push(significand[index++]);\n }\n } else {\n var radix_position = significand_digits + exponent; // non-zero digits before radix\n\n if (radix_position > 0) {\n for (var _i3 = 0; _i3 < radix_position; _i3++) {\n string.push(significand[index++]);\n }\n } else {\n string.push('0');\n }\n\n string.push('.'); // add leading zeros after radix\n\n while (radix_position++ < 0) {\n string.push('0');\n }\n\n for (var _i4 = 0; _i4 < significand_digits - Math.max(radix_position - 1, 0); _i4++) {\n string.push(significand[index++]);\n }\n }\n }\n\n return string.join('');\n};\n\nDecimal128.prototype.toJSON = function () {\n return {\n $numberDecimal: this.toString()\n };\n};\n/**\n * @ignore\n */\n\n\nDecimal128.prototype.toExtendedJSON = function () {\n return {\n $numberDecimal: this.toString()\n };\n};\n/**\n * @ignore\n */\n\n\nDecimal128.fromExtendedJSON = function (doc) {\n return Decimal128.fromString(doc.$numberDecimal);\n};\n\nObject.defineProperty(Decimal128.prototype, '_bsontype', {\n value: 'Decimal128'\n});\nvar decimal128 = Decimal128;\n\n/**\n * A class representation of the BSON MinKey type.\n */\n\nfunction _classCallCheck$7(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties$7(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass$7(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$7(Constructor.prototype, protoProps); if (staticProps) _defineProperties$7(Constructor, staticProps); return Constructor; }\n\nvar MinKey =\n/*#__PURE__*/\nfunction () {\n /**\n * Create a MinKey type\n *\n * @return {MinKey} A MinKey instance\n */\n function MinKey() {\n _classCallCheck$7(this, MinKey);\n }\n /**\n * @ignore\n */\n\n\n _createClass$7(MinKey, [{\n key: \"toExtendedJSON\",\n value: function toExtendedJSON() {\n return {\n $minKey: 1\n };\n }\n /**\n * @ignore\n */\n\n }], [{\n key: \"fromExtendedJSON\",\n value: function fromExtendedJSON() {\n return new MinKey();\n }\n }]);\n\n return MinKey;\n}();\n\nObject.defineProperty(MinKey.prototype, '_bsontype', {\n value: 'MinKey'\n});\nvar min_key = MinKey;\n\n/**\n * A class representation of the BSON MaxKey type.\n */\n\nfunction _classCallCheck$8(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties$8(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass$8(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$8(Constructor.prototype, protoProps); if (staticProps) _defineProperties$8(Constructor, staticProps); return Constructor; }\n\nvar MaxKey =\n/*#__PURE__*/\nfunction () {\n /**\n * Create a MaxKey type\n *\n * @return {MaxKey} A MaxKey instance\n */\n function MaxKey() {\n _classCallCheck$8(this, MaxKey);\n }\n /**\n * @ignore\n */\n\n\n _createClass$8(MaxKey, [{\n key: \"toExtendedJSON\",\n value: function toExtendedJSON() {\n return {\n $maxKey: 1\n };\n }\n /**\n * @ignore\n */\n\n }], [{\n key: \"fromExtendedJSON\",\n value: function fromExtendedJSON() {\n return new MaxKey();\n }\n }]);\n\n return MaxKey;\n}();\n\nObject.defineProperty(MaxKey.prototype, '_bsontype', {\n value: 'MaxKey'\n});\nvar max_key = MaxKey;\n\n/**\n * A class representation of the BSON DBRef type.\n */\n\nfunction _classCallCheck$9(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties$9(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass$9(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$9(Constructor.prototype, protoProps); if (staticProps) _defineProperties$9(Constructor, staticProps); return Constructor; }\n\nvar DBRef =\n/*#__PURE__*/\nfunction () {\n /**\n * Create a DBRef type\n *\n * @param {string} collection the collection name.\n * @param {ObjectId} oid the reference ObjectId.\n * @param {string} [db] optional db name, if omitted the reference is local to the current db.\n * @return {DBRef}\n */\n function DBRef(collection, oid, db, fields) {\n _classCallCheck$9(this, DBRef);\n\n // check if namespace has been provided\n var parts = collection.split('.');\n\n if (parts.length === 2) {\n db = parts.shift();\n collection = parts.shift();\n }\n\n this.collection = collection;\n this.oid = oid;\n this.db = db;\n this.fields = fields || {};\n }\n /**\n * @ignore\n * @api private\n */\n\n\n _createClass$9(DBRef, [{\n key: \"toJSON\",\n value: function toJSON() {\n var o = Object.assign({\n $ref: this.collection,\n $id: this.oid\n }, this.fields);\n if (this.db != null) o.$db = this.db;\n return o;\n }\n /**\n * @ignore\n */\n\n }, {\n key: \"toExtendedJSON\",\n value: function toExtendedJSON(options) {\n options = options || {};\n var o = {\n $ref: this.collection,\n $id: this.oid\n };\n\n if (options.legacy) {\n return o;\n }\n\n if (this.db) o.$db = this.db;\n o = Object.assign(o, this.fields);\n return o;\n }\n /**\n * @ignore\n */\n\n }], [{\n key: \"fromExtendedJSON\",\n value: function fromExtendedJSON(doc) {\n var copy = Object.assign({}, doc);\n ['$ref', '$id', '$db'].forEach(function (k) {\n return delete copy[k];\n });\n return new DBRef(doc.$ref, doc.$id, doc.$db, copy);\n }\n }]);\n\n return DBRef;\n}();\n\nObject.defineProperty(DBRef.prototype, '_bsontype', {\n value: 'DBRef'\n}); // the 1.x parser used a \"namespace\" property, while 4.x uses \"collection\". To ensure backwards\n// compatibility, let's expose \"namespace\"\n\nObject.defineProperty(DBRef.prototype, 'namespace', {\n get: function get() {\n return this.collection;\n },\n set: function set(val) {\n this.collection = val;\n },\n configurable: false\n});\nvar db_ref = DBRef;\n\nfunction _classCallCheck$a(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties$a(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass$a(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties$a(Constructor.prototype, protoProps); if (staticProps) _defineProperties$a(Constructor, staticProps); return Constructor; }\n\nvar Buffer$3 = buffer.Buffer;\n/**\n * A class representation of the BSON Binary type.\n */\n\nvar Binary =\n/*#__PURE__*/\nfunction () {\n /**\n * Create a Binary type\n *\n * Sub types\n * - **BSON.BSON_BINARY_SUBTYPE_DEFAULT**, default BSON type.\n * - **BSON.BSON_BINARY_SUBTYPE_FUNCTION**, BSON function type.\n * - **BSON.BSON_BINARY_SUBTYPE_BYTE_ARRAY**, BSON byte array type.\n * - **BSON.BSON_BINARY_SUBTYPE_UUID**, BSON uuid type.\n * - **BSON.BSON_BINARY_SUBTYPE_MD5**, BSON md5 type.\n * - **BSON.BSON_BINARY_SUBTYPE_USER_DEFINED**, BSON user defined type.\n *\n * @param {Buffer} buffer a buffer object containing the binary data.\n * @param {Number} [subType] the option binary type.\n * @return {Binary}\n */\n function Binary(buffer$$1, subType) {\n _classCallCheck$a(this, Binary);\n\n if (buffer$$1 != null && !(typeof buffer$$1 === 'string') && !Buffer$3.isBuffer(buffer$$1) && !(buffer$$1 instanceof Uint8Array) && !Array.isArray(buffer$$1)) {\n throw new TypeError('only String, Buffer, Uint8Array or Array accepted');\n }\n\n this.sub_type = subType == null ? BSON_BINARY_SUBTYPE_DEFAULT : subType;\n this.position = 0;\n\n if (buffer$$1 != null && !(buffer$$1 instanceof Number)) {\n // Only accept Buffer, Uint8Array or Arrays\n if (typeof buffer$$1 === 'string') {\n // Different ways of writing the length of the string for the different types\n if (typeof Buffer$3 !== 'undefined') {\n this.buffer = Buffer$3.from(buffer$$1);\n } else if (typeof Uint8Array !== 'undefined' || Array.isArray(buffer$$1)) {\n this.buffer = writeStringToArray(buffer$$1);\n } else {\n throw new TypeError('only String, Buffer, Uint8Array or Array accepted');\n }\n } else {\n this.buffer = buffer$$1;\n }\n\n this.position = buffer$$1.length;\n } else {\n if (typeof Buffer$3 !== 'undefined') {\n this.buffer = Buffer$3.alloc(Binary.BUFFER_SIZE);\n } else if (typeof Uint8Array !== 'undefined') {\n this.buffer = new Uint8Array(new ArrayBuffer(Binary.BUFFER_SIZE));\n } else {\n this.buffer = new Array(Binary.BUFFER_SIZE);\n }\n }\n }\n /**\n * Updates this binary with byte_value.\n *\n * @method\n * @param {string} byte_value a single byte we wish to write.\n */\n\n\n _createClass$a(Binary, [{\n key: \"put\",\n value: function put(byte_value) {\n // If it's a string and a has more than one character throw an error\n if (byte_value['length'] != null && typeof byte_value !== 'number' && byte_value.length !== 1) throw new TypeError('only accepts single character String, Uint8Array or Array');\n if (typeof byte_value !== 'number' && byte_value < 0 || byte_value > 255) throw new TypeError('only accepts number in a valid unsigned byte range 0-255'); // Decode the byte value once\n\n var decoded_byte = null;\n\n if (typeof byte_value === 'string') {\n decoded_byte = byte_value.charCodeAt(0);\n } else if (byte_value['length'] != null) {\n decoded_byte = byte_value[0];\n } else {\n decoded_byte = byte_value;\n }\n\n if (this.buffer.length > this.position) {\n this.buffer[this.position++] = decoded_byte;\n } else {\n if (typeof Buffer$3 !== 'undefined' && Buffer$3.isBuffer(this.buffer)) {\n // Create additional overflow buffer\n var buffer$$1 = Buffer$3.alloc(Binary.BUFFER_SIZE + this.buffer.length); // Combine the two buffers together\n\n this.buffer.copy(buffer$$1, 0, 0, this.buffer.length);\n this.buffer = buffer$$1;\n this.buffer[this.position++] = decoded_byte;\n } else {\n var _buffer = null; // Create a new buffer (typed or normal array)\n\n if (isUint8Array(this.buffer)) {\n _buffer = new Uint8Array(new ArrayBuffer(Binary.BUFFER_SIZE + this.buffer.length));\n } else {\n _buffer = new Array(Binary.BUFFER_SIZE + this.buffer.length);\n } // We need to copy all the content to the new array\n\n\n for (var i = 0; i < this.buffer.length; i++) {\n _buffer[i] = this.buffer[i];\n } // Reassign the buffer\n\n\n this.buffer = _buffer; // Write the byte\n\n this.buffer[this.position++] = decoded_byte;\n }\n }\n }\n /**\n * Writes a buffer or string to the binary.\n *\n * @method\n * @param {(Buffer|string)} string a string or buffer to be written to the Binary BSON object.\n * @param {number} offset specify the binary of where to write the content.\n * @return {null}\n */\n\n }, {\n key: \"write\",\n value: function write(string, offset) {\n offset = typeof offset === 'number' ? offset : this.position; // If the buffer is to small let's extend the buffer\n\n if (this.buffer.length < offset + string.length) {\n var buffer$$1 = null; // If we are in node.js\n\n if (typeof Buffer$3 !== 'undefined' && Buffer$3.isBuffer(this.buffer)) {\n buffer$$1 = Buffer$3.alloc(this.buffer.length + string.length);\n this.buffer.copy(buffer$$1, 0, 0, this.buffer.length);\n } else if (isUint8Array(this.buffer)) {\n // Create a new buffer\n buffer$$1 = new Uint8Array(new ArrayBuffer(this.buffer.length + string.length)); // Copy the content\n\n for (var i = 0; i < this.position; i++) {\n buffer$$1[i] = this.buffer[i];\n }\n } // Assign the new buffer\n\n\n this.buffer = buffer$$1;\n }\n\n if (typeof Buffer$3 !== 'undefined' && Buffer$3.isBuffer(string) && Buffer$3.isBuffer(this.buffer)) {\n string.copy(this.buffer, offset, 0, string.length);\n this.position = offset + string.length > this.position ? offset + string.length : this.position; // offset = string.length\n } else if (typeof Buffer$3 !== 'undefined' && typeof string === 'string' && Buffer$3.isBuffer(this.buffer)) {\n this.buffer.write(string, offset, 'binary');\n this.position = offset + string.length > this.position ? offset + string.length : this.position; // offset = string.length;\n } else if (isUint8Array(string) || Array.isArray(string) && typeof string !== 'string') {\n for (var _i = 0; _i < string.length; _i++) {\n this.buffer[offset++] = string[_i];\n }\n\n this.position = offset > this.position ? offset : this.position;\n } else if (typeof string === 'string') {\n for (var _i2 = 0; _i2 < string.length; _i2++) {\n this.buffer[offset++] = string.charCodeAt(_i2);\n }\n\n this.position = offset > this.position ? offset : this.position;\n }\n }\n /**\n * Reads **length** bytes starting at **position**.\n *\n * @method\n * @param {number} position read from the given position in the Binary.\n * @param {number} length the number of bytes to read.\n * @return {Buffer}\n */\n\n }, {\n key: \"read\",\n value: function read(position, length) {\n length = length && length > 0 ? length : this.position; // Let's return the data based on the type we have\n\n if (this.buffer['slice']) {\n return this.buffer.slice(position, position + length);\n } // Create a buffer to keep the result\n\n\n var buffer$$1 = typeof Uint8Array !== 'undefined' ? new Uint8Array(new ArrayBuffer(length)) : new Array(length);\n\n for (var i = 0; i < length; i++) {\n buffer$$1[i] = this.buffer[position++];\n } // Return the buffer\n\n\n return buffer$$1;\n }\n /**\n * Returns the value of this binary as a string.\n *\n * @method\n * @return {string}\n */\n\n }, {\n key: \"value\",\n value: function value(asRaw) {\n asRaw = asRaw == null ? false : asRaw; // Optimize to serialize for the situation where the data == size of buffer\n\n if (asRaw && typeof Buffer$3 !== 'undefined' && Buffer$3.isBuffer(this.buffer) && this.buffer.length === this.position) return this.buffer; // If it's a node.js buffer object\n\n if (typeof Buffer$3 !== 'undefined' && Buffer$3.isBuffer(this.buffer)) {\n return asRaw ? this.buffer.slice(0, this.position) : this.buffer.toString('binary', 0, this.position);\n } else {\n if (asRaw) {\n // we support the slice command use it\n if (this.buffer['slice'] != null) {\n return this.buffer.slice(0, this.position);\n } else {\n // Create a new buffer to copy content to\n var newBuffer = isUint8Array(this.buffer) ? new Uint8Array(new ArrayBuffer(this.position)) : new Array(this.position); // Copy content\n\n for (var i = 0; i < this.position; i++) {\n newBuffer[i] = this.buffer[i];\n } // Return the buffer\n\n\n return newBuffer;\n }\n } else {\n return convertArraytoUtf8BinaryString(this.buffer, 0, this.position);\n }\n }\n }\n /**\n * Length.\n *\n * @method\n * @return {number} the length of the binary.\n */\n\n }, {\n key: \"length\",\n value: function length() {\n return this.position;\n }\n /**\n * @ignore\n */\n\n }, {\n key: \"toJSON\",\n value: function toJSON() {\n return this.buffer != null ? this.buffer.toString('base64') : '';\n }\n /**\n * @ignore\n */\n\n }, {\n key: \"toString\",\n value: function toString(format) {\n return this.buffer != null ? this.buffer.slice(0, this.position).toString(format) : '';\n }\n /**\n * @ignore\n */\n\n }, {\n key: \"toExtendedJSON\",\n value: function toExtendedJSON(options) {\n options = options || {};\n var base64String = Buffer$3.isBuffer(this.buffer) ? this.buffer.toString('base64') : Buffer$3.from(this.buffer).toString('base64');\n var subType = Number(this.sub_type).toString(16);\n\n if (options.legacy) {\n return {\n $binary: base64String,\n $type: subType.length === 1 ? '0' + subType : subType\n };\n }\n\n return {\n $binary: {\n base64: base64String,\n subType: subType.length === 1 ? '0' + subType : subType\n }\n };\n }\n /**\n * @ignore\n */\n\n }], [{\n key: \"fromExtendedJSON\",\n value: function fromExtendedJSON(doc, options) {\n options = options || {};\n var data, type;\n\n if (options.legacy) {\n type = doc.$type ? parseInt(doc.$type, 16) : 0;\n data = Buffer$3.from(doc.$binary, 'base64');\n } else {\n type = doc.$binary.subType ? parseInt(doc.$binary.subType, 16) : 0;\n data = Buffer$3.from(doc.$binary.base64, 'base64');\n }\n\n return new Binary(data, type);\n }\n }]);\n\n return Binary;\n}();\n/**\n * Binary default subtype\n * @ignore\n */\n\n\nvar BSON_BINARY_SUBTYPE_DEFAULT = 0;\n\nfunction isUint8Array(obj) {\n return Object.prototype.toString.call(obj) === '[object Uint8Array]';\n}\n/**\n * @ignore\n */\n\n\nfunction writeStringToArray(data) {\n // Create a buffer\n var buffer$$1 = typeof Uint8Array !== 'undefined' ? new Uint8Array(new ArrayBuffer(data.length)) : new Array(data.length); // Write the content to the buffer\n\n for (var i = 0; i < data.length; i++) {\n buffer$$1[i] = data.charCodeAt(i);\n } // Write the string to the buffer\n\n\n return buffer$$1;\n}\n/**\n * Convert Array ot Uint8Array to Binary String\n *\n * @ignore\n */\n\n\nfunction convertArraytoUtf8BinaryString(byteArray, startIndex, endIndex) {\n var result = '';\n\n for (var i = startIndex; i < endIndex; i++) {\n result = result + String.fromCharCode(byteArray[i]);\n }\n\n return result;\n}\n\nBinary.BUFFER_SIZE = 256;\n/**\n * Default BSON type\n *\n * @classconstant SUBTYPE_DEFAULT\n **/\n\nBinary.SUBTYPE_DEFAULT = 0;\n/**\n * Function BSON type\n *\n * @classconstant SUBTYPE_DEFAULT\n **/\n\nBinary.SUBTYPE_FUNCTION = 1;\n/**\n * Byte Array BSON type\n *\n * @classconstant SUBTYPE_DEFAULT\n **/\n\nBinary.SUBTYPE_BYTE_ARRAY = 2;\n/**\n * OLD UUID BSON type\n *\n * @classconstant SUBTYPE_DEFAULT\n **/\n\nBinary.SUBTYPE_UUID_OLD = 3;\n/**\n * UUID BSON type\n *\n * @classconstant SUBTYPE_DEFAULT\n **/\n\nBinary.SUBTYPE_UUID = 4;\n/**\n * MD5 BSON type\n *\n * @classconstant SUBTYPE_DEFAULT\n **/\n\nBinary.SUBTYPE_MD5 = 5;\n/**\n * User BSON type\n *\n * @classconstant SUBTYPE_DEFAULT\n **/\n\nBinary.SUBTYPE_USER_DEFINED = 128;\nObject.defineProperty(Binary.prototype, '_bsontype', {\n value: 'Binary'\n});\nvar binary = Binary;\n\nvar constants = {\n // BSON MAX VALUES\n BSON_INT32_MAX: 0x7fffffff,\n BSON_INT32_MIN: -0x80000000,\n BSON_INT64_MAX: Math.pow(2, 63) - 1,\n BSON_INT64_MIN: -Math.pow(2, 63),\n // JS MAX PRECISE VALUES\n JS_INT_MAX: 0x20000000000000,\n // Any integer up to 2^53 can be precisely represented by a double.\n JS_INT_MIN: -0x20000000000000,\n // Any integer down to -2^53 can be precisely represented by a double.\n\n /**\n * Number BSON Type\n *\n * @classconstant BSON_DATA_NUMBER\n **/\n BSON_DATA_NUMBER: 1,\n\n /**\n * String BSON Type\n *\n * @classconstant BSON_DATA_STRING\n **/\n BSON_DATA_STRING: 2,\n\n /**\n * Object BSON Type\n *\n * @classconstant BSON_DATA_OBJECT\n **/\n BSON_DATA_OBJECT: 3,\n\n /**\n * Array BSON Type\n *\n * @classconstant BSON_DATA_ARRAY\n **/\n BSON_DATA_ARRAY: 4,\n\n /**\n * Binary BSON Type\n *\n * @classconstant BSON_DATA_BINARY\n **/\n BSON_DATA_BINARY: 5,\n\n /**\n * Binary BSON Type\n *\n * @classconstant BSON_DATA_UNDEFINED\n **/\n BSON_DATA_UNDEFINED: 6,\n\n /**\n * ObjectId BSON Type\n *\n * @classconstant BSON_DATA_OID\n **/\n BSON_DATA_OID: 7,\n\n /**\n * Boolean BSON Type\n *\n * @classconstant BSON_DATA_BOOLEAN\n **/\n BSON_DATA_BOOLEAN: 8,\n\n /**\n * Date BSON Type\n *\n * @classconstant BSON_DATA_DATE\n **/\n BSON_DATA_DATE: 9,\n\n /**\n * null BSON Type\n *\n * @classconstant BSON_DATA_NULL\n **/\n BSON_DATA_NULL: 10,\n\n /**\n * RegExp BSON Type\n *\n * @classconstant BSON_DATA_REGEXP\n **/\n BSON_DATA_REGEXP: 11,\n\n /**\n * Code BSON Type\n *\n * @classconstant BSON_DATA_DBPOINTER\n **/\n BSON_DATA_DBPOINTER: 12,\n\n /**\n * Code BSON Type\n *\n * @classconstant BSON_DATA_CODE\n **/\n BSON_DATA_CODE: 13,\n\n /**\n * Symbol BSON Type\n *\n * @classconstant BSON_DATA_SYMBOL\n **/\n BSON_DATA_SYMBOL: 14,\n\n /**\n * Code with Scope BSON Type\n *\n * @classconstant BSON_DATA_CODE_W_SCOPE\n **/\n BSON_DATA_CODE_W_SCOPE: 15,\n\n /**\n * 32 bit Integer BSON Type\n *\n * @classconstant BSON_DATA_INT\n **/\n BSON_DATA_INT: 16,\n\n /**\n * Timestamp BSON Type\n *\n * @classconstant BSON_DATA_TIMESTAMP\n **/\n BSON_DATA_TIMESTAMP: 17,\n\n /**\n * Long BSON Type\n *\n * @classconstant BSON_DATA_LONG\n **/\n BSON_DATA_LONG: 18,\n\n /**\n * Long BSON Type\n *\n * @classconstant BSON_DATA_DECIMAL128\n **/\n BSON_DATA_DECIMAL128: 19,\n\n /**\n * MinKey BSON Type\n *\n * @classconstant BSON_DATA_MIN_KEY\n **/\n BSON_DATA_MIN_KEY: 0xff,\n\n /**\n * MaxKey BSON Type\n *\n * @classconstant BSON_DATA_MAX_KEY\n **/\n BSON_DATA_MAX_KEY: 0x7f,\n\n /**\n * Binary Default Type\n *\n * @classconstant BSON_BINARY_SUBTYPE_DEFAULT\n **/\n BSON_BINARY_SUBTYPE_DEFAULT: 0,\n\n /**\n * Binary Function Type\n *\n * @classconstant BSON_BINARY_SUBTYPE_FUNCTION\n **/\n BSON_BINARY_SUBTYPE_FUNCTION: 1,\n\n /**\n * Binary Byte Array Type\n *\n * @classconstant BSON_BINARY_SUBTYPE_BYTE_ARRAY\n **/\n BSON_BINARY_SUBTYPE_BYTE_ARRAY: 2,\n\n /**\n * Binary UUID Type\n *\n * @classconstant BSON_BINARY_SUBTYPE_UUID\n **/\n BSON_BINARY_SUBTYPE_UUID: 3,\n\n /**\n * Binary MD5 Type\n *\n * @classconstant BSON_BINARY_SUBTYPE_MD5\n **/\n BSON_BINARY_SUBTYPE_MD5: 4,\n\n /**\n * Binary User Defined Type\n *\n * @classconstant BSON_BINARY_SUBTYPE_USER_DEFINED\n **/\n BSON_BINARY_SUBTYPE_USER_DEFINED: 128\n};\n\nfunction _typeof$2(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof$2 = function _typeof(obj) { return typeof obj; }; } else { _typeof$2 = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof$2(obj); }\n// const Map = require('./map');\n\n/**\n * @namespace EJSON\n */\n// all the types where we don't need to do any special processing and can just pass the EJSON\n//straight to type.fromExtendedJSON\n\n\nvar keysToCodecs = {\n $oid: objectid,\n $binary: binary,\n $symbol: symbol,\n $numberInt: int_32,\n $numberDecimal: decimal128,\n $numberDouble: double_1,\n $numberLong: long_1,\n $minKey: min_key,\n $maxKey: max_key,\n $regex: regexp,\n $regularExpression: regexp,\n $timestamp: timestamp\n};\n\nfunction deserializeValue(self, key, value, options) {\n if (typeof value === 'number') {\n if (options.relaxed || options.legacy) {\n return value;\n } // if it's an integer, should interpret as smallest BSON integer\n // that can represent it exactly. (if out of range, interpret as double.)\n\n\n if (Math.floor(value) === value) {\n if (value >= BSON_INT32_MIN && value <= BSON_INT32_MAX) return new int_32(value);\n if (value >= BSON_INT64_MIN && value <= BSON_INT64_MAX) return new long_1.fromNumber(value);\n } // If the number is a non-integer or out of integer range, should interpret as BSON Double.\n\n\n return new double_1(value);\n } // from here on out we're looking for bson types, so bail if its not an object\n\n\n if (value == null || _typeof$2(value) !== 'object') return value; // upgrade deprecated undefined to null\n\n if (value.$undefined) return null;\n var keys = Object.keys(value).filter(function (k) {\n return k.startsWith('$') && value[k] != null;\n });\n\n for (var i = 0; i < keys.length; i++) {\n var c = keysToCodecs[keys[i]];\n if (c) return c.fromExtendedJSON(value, options);\n }\n\n if (value.$date != null) {\n var d = value.$date;\n var date = new Date();\n\n if (options.legacy) {\n if (typeof d === 'number') date.setTime(d);else if (typeof d === 'string') date.setTime(Date.parse(d));\n } else {\n if (typeof d === 'string') date.setTime(Date.parse(d));else if (long_1.isLong(d)) date.setTime(d.toNumber());else if (typeof d === 'number' && options.relaxed) date.setTime(d);\n }\n\n return date;\n }\n\n if (value.$code != null) {\n var copy = Object.assign({}, value);\n\n if (value.$scope) {\n copy.$scope = deserializeValue(self, null, value.$scope);\n }\n\n return code.fromExtendedJSON(value);\n }\n\n if (value.$ref != null || value.$dbPointer != null) {\n var v = value.$ref ? value : value.$dbPointer; // we run into this in a \"degenerate EJSON\" case (with $id and $ref order flipped)\n // because of the order JSON.parse goes through the document\n\n if (v instanceof db_ref) return v;\n var dollarKeys = Object.keys(v).filter(function (k) {\n return k.startsWith('$');\n });\n var valid = true;\n dollarKeys.forEach(function (k) {\n if (['$ref', '$id', '$db'].indexOf(k) === -1) valid = false;\n }); // only make DBRef if $ keys are all valid\n\n if (valid) return db_ref.fromExtendedJSON(v);\n }\n\n return value;\n}\n/**\n * Parse an Extended JSON string, constructing the JavaScript value or object described by that\n * string.\n *\n * @memberof EJSON\n * @param {string} text\n * @param {object} [options] Optional settings\n * @param {boolean} [options.relaxed=true] Attempt to return native JS types where possible, rather than BSON types (if true)\n * @return {object}\n *\n * @example\n * const { EJSON } = require('bson');\n * const text = '{ \"int32\": { \"$numberInt\": \"10\" } }';\n *\n * // prints { int32: { [String: '10'] _bsontype: 'Int32', value: '10' } }\n * console.log(EJSON.parse(text, { relaxed: false }));\n *\n * // prints { int32: 10 }\n * console.log(EJSON.parse(text));\n */\n\n\nfunction parse(text, options) {\n var _this = this;\n\n options = Object.assign({}, {\n relaxed: true,\n legacy: false\n }, options); // relaxed implies not strict\n\n if (typeof options.relaxed === 'boolean') options.strict = !options.relaxed;\n if (typeof options.strict === 'boolean') options.relaxed = !options.strict;\n return JSON.parse(text, function (key, value) {\n return deserializeValue(_this, key, value, options);\n });\n} //\n// Serializer\n//\n// MAX INT32 boundaries\n\n\nvar BSON_INT32_MAX = 0x7fffffff,\n BSON_INT32_MIN = -0x80000000,\n BSON_INT64_MAX = 0x7fffffffffffffff,\n BSON_INT64_MIN = -0x8000000000000000;\n/**\n * Converts a BSON document to an Extended JSON string, optionally replacing values if a replacer\n * function is specified or optionally including only the specified properties if a replacer array\n * is specified.\n *\n * @memberof EJSON\n * @param {object} value The value to convert to extended JSON\n * @param {function|array} [replacer] A function that alters the behavior of the stringification process, or an array of String and Number objects that serve as a whitelist for selecting/filtering the properties of the value object to be included in the JSON string. If this value is null or not provided, all properties of the object are included in the resulting JSON string\n * @param {string|number} [space] A String or Number object that's used to insert white space into the output JSON string for readability purposes.\n * @param {object} [options] Optional settings\n * @param {boolean} [options.relaxed=true] Enabled Extended JSON's `relaxed` mode\n * @param {boolean} [options.legacy=false] Output using the Extended JSON v1 spec\n * @returns {string}\n *\n * @example\n * const { EJSON } = require('bson');\n * const Int32 = require('mongodb').Int32;\n * const doc = { int32: new Int32(10) };\n *\n * // prints '{\"int32\":{\"$numberInt\":\"10\"}}'\n * console.log(EJSON.stringify(doc, { relaxed: false }));\n *\n * // prints '{\"int32\":10}'\n * console.log(EJSON.stringify(doc));\n */\n\nfunction stringify(value, replacer, space, options) {\n if (space != null && _typeof$2(space) === 'object') {\n options = space;\n space = 0;\n }\n\n if (replacer != null && _typeof$2(replacer) === 'object' && !Array.isArray(replacer)) {\n options = replacer;\n replacer = null;\n space = 0;\n }\n\n options = Object.assign({}, {\n relaxed: true,\n legacy: false\n }, options);\n var doc = Array.isArray(value) ? serializeArray(value, options) : serializeDocument(value, options);\n return JSON.stringify(doc, replacer, space);\n}\n/**\n * Serializes an object to an Extended JSON string, and reparse it as a JavaScript object.\n *\n * @memberof EJSON\n * @param {object} bson The object to serialize\n * @param {object} [options] Optional settings passed to the `stringify` function\n * @return {object}\n */\n\n\nfunction serialize(bson, options) {\n options = options || {};\n return JSON.parse(stringify(bson, options));\n}\n/**\n * Deserializes an Extended JSON object into a plain JavaScript object with native/BSON types\n *\n * @memberof EJSON\n * @param {object} ejson The Extended JSON object to deserialize\n * @param {object} [options] Optional settings passed to the parse method\n * @return {object}\n */\n\n\nfunction deserialize(ejson, options) {\n options = options || {};\n return parse(JSON.stringify(ejson), options);\n}\n\nfunction serializeArray(array, options) {\n return array.map(function (v) {\n return serializeValue(v, options);\n });\n}\n\nfunction getISOString(date) {\n var isoStr = date.toISOString(); // we should only show milliseconds in timestamp if they're non-zero\n\n return date.getUTCMilliseconds() !== 0 ? isoStr : isoStr.slice(0, -5) + 'Z';\n}\n\nfunction serializeValue(value, options) {\n if (Array.isArray(value)) return serializeArray(value, options);\n if (value === undefined) return null;\n\n if (value instanceof Date) {\n var dateNum = value.getTime(),\n // is it in year range 1970-9999?\n inRange = dateNum > -1 && dateNum < 253402318800000;\n\n if (options.legacy) {\n return options.relaxed && inRange ? {\n $date: value.getTime()\n } : {\n $date: getISOString(value)\n };\n }\n\n return options.relaxed && inRange ? {\n $date: getISOString(value)\n } : {\n $date: {\n $numberLong: value.getTime().toString()\n }\n };\n }\n\n if (typeof value === 'number' && !options.relaxed) {\n // it's an integer\n if (Math.floor(value) === value) {\n var int32Range = value >= BSON_INT32_MIN && value <= BSON_INT32_MAX,\n int64Range = value >= BSON_INT64_MIN && value <= BSON_INT64_MAX; // interpret as being of the smallest BSON integer type that can represent the number exactly\n\n if (int32Range) return {\n $numberInt: value.toString()\n };\n if (int64Range) return {\n $numberLong: value.toString()\n };\n }\n\n return {\n $numberDouble: value.toString()\n };\n }\n\n if (value instanceof RegExp) {\n var flags = value.flags;\n\n if (flags === undefined) {\n flags = value.toString().match(/[gimuy]*$/)[0];\n }\n\n var rx = new regexp(value.source, flags);\n return rx.toExtendedJSON(options);\n }\n\n if (value != null && _typeof$2(value) === 'object') return serializeDocument(value, options);\n return value;\n}\n\nvar BSON_TYPE_MAPPINGS = {\n Binary: function Binary(o) {\n return new binary(o.value(), o.subtype);\n },\n Code: function Code(o) {\n return new code(o.code, o.scope);\n },\n DBRef: function DBRef(o) {\n return new db_ref(o.collection || o.namespace, o.oid, o.db, o.fields);\n },\n // \"namespace\" for 1.x library backwards compat\n Decimal128: function Decimal128(o) {\n return new decimal128(o.bytes);\n },\n Double: function Double(o) {\n return new double_1(o.value);\n },\n Int32: function Int32(o) {\n return new int_32(o.value);\n },\n Long: function Long(o) {\n return long_1.fromBits( // underscore variants for 1.x backwards compatibility\n o.low != null ? o.low : o.low_, o.low != null ? o.high : o.high_, o.low != null ? o.unsigned : o.unsigned_);\n },\n MaxKey: function MaxKey() {\n return new max_key();\n },\n MinKey: function MinKey() {\n return new min_key();\n },\n ObjectID: function ObjectID(o) {\n return new objectid(o);\n },\n ObjectId: function ObjectId(o) {\n return new objectid(o);\n },\n // support 4.0.0/4.0.1 before _bsontype was reverted back to ObjectID\n BSONRegExp: function BSONRegExp(o) {\n return new regexp(o.pattern, o.options);\n },\n Symbol: function Symbol(o) {\n return new symbol(o.value);\n },\n Timestamp: function Timestamp(o) {\n return timestamp.fromBits(o.low, o.high);\n }\n};\n\nfunction serializeDocument(doc, options) {\n if (doc == null || _typeof$2(doc) !== 'object') throw new Error('not an object instance');\n var bsontype = doc._bsontype;\n\n if (typeof bsontype === 'undefined') {\n // It's a regular object. Recursively serialize its property values.\n var _doc = {};\n\n for (var name in doc) {\n _doc[name] = serializeValue(doc[name], options);\n }\n\n return _doc;\n } else if (typeof bsontype === 'string') {\n // the \"document\" is really just a BSON type object\n var _doc2 = doc;\n\n if (typeof _doc2.toExtendedJSON !== 'function') {\n // There's no EJSON serialization function on the object. It's probably an\n // object created by a previous version of this library (or another library)\n // that's duck-typing objects to look like they were generated by this library).\n // Copy the object into this library's version of that type.\n var mapper = BSON_TYPE_MAPPINGS[bsontype];\n\n if (!mapper) {\n throw new TypeError('Unrecognized or invalid _bsontype: ' + bsontype);\n }\n\n _doc2 = mapper(_doc2);\n } // Two BSON types may have nested objects that may need to be serialized too\n\n\n if (bsontype === 'Code' && _doc2.scope) {\n _doc2 = new code(_doc2.code, serializeValue(_doc2.scope, options));\n } else if (bsontype === 'DBRef' && _doc2.oid) {\n _doc2 = new db_ref(_doc2.collection, serializeValue(_doc2.oid, options), _doc2.db, _doc2.fields);\n }\n\n return _doc2.toExtendedJSON(options);\n } else {\n throw new Error('_bsontype must be a string, but was: ' + _typeof$2(bsontype));\n }\n}\n\nvar extended_json = {\n parse: parse,\n deserialize: deserialize,\n serialize: serialize,\n stringify: stringify\n};\n\nvar FIRST_BIT = 0x80;\nvar FIRST_TWO_BITS = 0xc0;\nvar FIRST_THREE_BITS = 0xe0;\nvar FIRST_FOUR_BITS = 0xf0;\nvar FIRST_FIVE_BITS = 0xf8;\nvar TWO_BIT_CHAR = 0xc0;\nvar THREE_BIT_CHAR = 0xe0;\nvar FOUR_BIT_CHAR = 0xf0;\nvar CONTINUING_CHAR = 0x80;\n/**\n * Determines if the passed in bytes are valid utf8\n * @param {Buffer|Uint8Array} bytes An array of 8-bit bytes. Must be indexable and have length property\n * @param {Number} start The index to start validating\n * @param {Number} end The index to end validating\n * @returns {boolean} True if valid utf8\n */\n\nfunction validateUtf8(bytes, start, end) {\n var continuation = 0;\n\n for (var i = start; i < end; i += 1) {\n var _byte = bytes[i];\n\n if (continuation) {\n if ((_byte & FIRST_TWO_BITS) !== CONTINUING_CHAR) {\n return false;\n }\n\n continuation -= 1;\n } else if (_byte & FIRST_BIT) {\n if ((_byte & FIRST_THREE_BITS) === TWO_BIT_CHAR) {\n continuation = 1;\n } else if ((_byte & FIRST_FOUR_BITS) === THREE_BIT_CHAR) {\n continuation = 2;\n } else if ((_byte & FIRST_FIVE_BITS) === FOUR_BIT_CHAR) {\n continuation = 3;\n } else {\n return false;\n }\n }\n }\n\n return !continuation;\n}\n\nvar validateUtf8_1 = validateUtf8;\nvar validate_utf8 = {\n validateUtf8: validateUtf8_1\n};\n\nvar Buffer$4 = buffer.Buffer;\nvar validateUtf8$1 = validate_utf8.validateUtf8; // Internal long versions\n\nvar JS_INT_MAX_LONG = long_1.fromNumber(constants.JS_INT_MAX);\nvar JS_INT_MIN_LONG = long_1.fromNumber(constants.JS_INT_MIN);\nvar functionCache = {};\n\nfunction deserialize$1(buffer$$1, options, isArray) {\n options = options == null ? {} : options;\n var index = options && options.index ? options.index : 0; // Read the document size\n\n var size = buffer$$1[index] | buffer$$1[index + 1] << 8 | buffer$$1[index + 2] << 16 | buffer$$1[index + 3] << 24;\n\n if (size < 5) {\n throw new Error(\"bson size must be >= 5, is \".concat(size));\n }\n\n if (options.allowObjectSmallerThanBufferSize && buffer$$1.length < size) {\n throw new Error(\"buffer length \".concat(buffer$$1.length, \" must be >= bson size \").concat(size));\n }\n\n if (!options.allowObjectSmallerThanBufferSize && buffer$$1.length !== size) {\n throw new Error(\"buffer length \".concat(buffer$$1.length, \" must === bson size \").concat(size));\n }\n\n if (size + index > buffer$$1.length) {\n throw new Error(\"(bson size \".concat(size, \" + options.index \").concat(index, \" must be <= buffer length \").concat(Buffer$4.byteLength(buffer$$1), \")\"));\n } // Illegal end value\n\n\n if (buffer$$1[index + size - 1] !== 0) {\n throw new Error(\"One object, sized correctly, with a spot for an EOO, but the EOO isn't 0x00\");\n } // Start deserializtion\n\n\n return deserializeObject(buffer$$1, index, options, isArray);\n}\n\nfunction deserializeObject(buffer$$1, index, options, isArray) {\n var evalFunctions = options['evalFunctions'] == null ? false : options['evalFunctions'];\n var cacheFunctions = options['cacheFunctions'] == null ? false : options['cacheFunctions'];\n var cacheFunctionsCrc32 = options['cacheFunctionsCrc32'] == null ? false : options['cacheFunctionsCrc32'];\n if (!cacheFunctionsCrc32) var crc32 = null;\n var fieldsAsRaw = options['fieldsAsRaw'] == null ? null : options['fieldsAsRaw']; // Return raw bson buffer instead of parsing it\n\n var raw = options['raw'] == null ? false : options['raw']; // Return BSONRegExp objects instead of native regular expressions\n\n var bsonRegExp = typeof options['bsonRegExp'] === 'boolean' ? options['bsonRegExp'] : false; // Controls the promotion of values vs wrapper classes\n\n var promoteBuffers = options['promoteBuffers'] == null ? false : options['promoteBuffers'];\n var promoteLongs = options['promoteLongs'] == null ? true : options['promoteLongs'];\n var promoteValues = options['promoteValues'] == null ? true : options['promoteValues']; // Set the start index\n\n var startIndex = index; // Validate that we have at least 4 bytes of buffer\n\n if (buffer$$1.length < 5) throw new Error('corrupt bson message < 5 bytes long'); // Read the document size\n\n var size = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24; // Ensure buffer is valid size\n\n if (size < 5 || size > buffer$$1.length) throw new Error('corrupt bson message'); // Create holding object\n\n var object = isArray ? [] : {}; // Used for arrays to skip having to perform utf8 decoding\n\n var arrayIndex = 0;\n var done = false; // While we have more left data left keep parsing\n\n while (!done) {\n // Read the type\n var elementType = buffer$$1[index++]; // If we get a zero it's the last byte, exit\n\n if (elementType === 0) break; // Get the start search index\n\n var i = index; // Locate the end of the c string\n\n while (buffer$$1[i] !== 0x00 && i < buffer$$1.length) {\n i++;\n } // If are at the end of the buffer there is a problem with the document\n\n\n if (i >= Buffer$4.byteLength(buffer$$1)) throw new Error('Bad BSON Document: illegal CString');\n var name = isArray ? arrayIndex++ : buffer$$1.toString('utf8', index, i);\n index = i + 1;\n\n if (elementType === constants.BSON_DATA_STRING) {\n var stringSize = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24;\n if (stringSize <= 0 || stringSize > buffer$$1.length - index || buffer$$1[index + stringSize - 1] !== 0) throw new Error('bad string length in bson');\n\n if (!validateUtf8$1(buffer$$1, index, index + stringSize - 1)) {\n throw new Error('Invalid UTF-8 string in BSON document');\n }\n\n var s = buffer$$1.toString('utf8', index, index + stringSize - 1);\n object[name] = s;\n index = index + stringSize;\n } else if (elementType === constants.BSON_DATA_OID) {\n var oid = Buffer$4.alloc(12);\n buffer$$1.copy(oid, 0, index, index + 12);\n object[name] = new objectid(oid);\n index = index + 12;\n } else if (elementType === constants.BSON_DATA_INT && promoteValues === false) {\n object[name] = new int_32(buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24);\n } else if (elementType === constants.BSON_DATA_INT) {\n object[name] = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24;\n } else if (elementType === constants.BSON_DATA_NUMBER && promoteValues === false) {\n object[name] = new double_1(buffer$$1.readDoubleLE(index));\n index = index + 8;\n } else if (elementType === constants.BSON_DATA_NUMBER) {\n object[name] = buffer$$1.readDoubleLE(index);\n index = index + 8;\n } else if (elementType === constants.BSON_DATA_DATE) {\n var lowBits = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24;\n var highBits = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24;\n object[name] = new Date(new long_1(lowBits, highBits).toNumber());\n } else if (elementType === constants.BSON_DATA_BOOLEAN) {\n if (buffer$$1[index] !== 0 && buffer$$1[index] !== 1) throw new Error('illegal boolean type value');\n object[name] = buffer$$1[index++] === 1;\n } else if (elementType === constants.BSON_DATA_OBJECT) {\n var _index = index;\n var objectSize = buffer$$1[index] | buffer$$1[index + 1] << 8 | buffer$$1[index + 2] << 16 | buffer$$1[index + 3] << 24;\n if (objectSize <= 0 || objectSize > buffer$$1.length - index) throw new Error('bad embedded document length in bson'); // We have a raw value\n\n if (raw) {\n object[name] = buffer$$1.slice(index, index + objectSize);\n } else {\n object[name] = deserializeObject(buffer$$1, _index, options, false);\n }\n\n index = index + objectSize;\n } else if (elementType === constants.BSON_DATA_ARRAY) {\n var _index2 = index;\n\n var _objectSize = buffer$$1[index] | buffer$$1[index + 1] << 8 | buffer$$1[index + 2] << 16 | buffer$$1[index + 3] << 24;\n\n var arrayOptions = options; // Stop index\n\n var stopIndex = index + _objectSize; // All elements of array to be returned as raw bson\n\n if (fieldsAsRaw && fieldsAsRaw[name]) {\n arrayOptions = {};\n\n for (var n in options) {\n arrayOptions[n] = options[n];\n }\n\n arrayOptions['raw'] = true;\n }\n\n object[name] = deserializeObject(buffer$$1, _index2, arrayOptions, true);\n index = index + _objectSize;\n if (buffer$$1[index - 1] !== 0) throw new Error('invalid array terminator byte');\n if (index !== stopIndex) throw new Error('corrupted array bson');\n } else if (elementType === constants.BSON_DATA_UNDEFINED) {\n object[name] = undefined;\n } else if (elementType === constants.BSON_DATA_NULL) {\n object[name] = null;\n } else if (elementType === constants.BSON_DATA_LONG) {\n // Unpack the low and high bits\n var _lowBits = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24;\n\n var _highBits = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24;\n\n var _long = new long_1(_lowBits, _highBits); // Promote the long if possible\n\n\n if (promoteLongs && promoteValues === true) {\n object[name] = _long.lessThanOrEqual(JS_INT_MAX_LONG) && _long.greaterThanOrEqual(JS_INT_MIN_LONG) ? _long.toNumber() : _long;\n } else {\n object[name] = _long;\n }\n } else if (elementType === constants.BSON_DATA_DECIMAL128) {\n // Buffer to contain the decimal bytes\n var bytes = Buffer$4.alloc(16); // Copy the next 16 bytes into the bytes buffer\n\n buffer$$1.copy(bytes, 0, index, index + 16); // Update index\n\n index = index + 16; // Assign the new Decimal128 value\n\n var decimal128$$1 = new decimal128(bytes); // If we have an alternative mapper use that\n\n object[name] = decimal128$$1.toObject ? decimal128$$1.toObject() : decimal128$$1;\n } else if (elementType === constants.BSON_DATA_BINARY) {\n var binarySize = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24;\n var totalBinarySize = binarySize;\n var subType = buffer$$1[index++]; // Did we have a negative binary size, throw\n\n if (binarySize < 0) throw new Error('Negative binary type element size found'); // Is the length longer than the document\n\n if (binarySize > Buffer$4.byteLength(buffer$$1)) throw new Error('Binary type size larger than document size'); // Decode as raw Buffer object if options specifies it\n\n if (buffer$$1['slice'] != null) {\n // If we have subtype 2 skip the 4 bytes for the size\n if (subType === binary.SUBTYPE_BYTE_ARRAY) {\n binarySize = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24;\n if (binarySize < 0) throw new Error('Negative binary type element size found for subtype 0x02');\n if (binarySize > totalBinarySize - 4) throw new Error('Binary type with subtype 0x02 contains to long binary size');\n if (binarySize < totalBinarySize - 4) throw new Error('Binary type with subtype 0x02 contains to short binary size');\n }\n\n if (promoteBuffers && promoteValues) {\n object[name] = buffer$$1.slice(index, index + binarySize);\n } else {\n object[name] = new binary(buffer$$1.slice(index, index + binarySize), subType);\n }\n } else {\n var _buffer = typeof Uint8Array !== 'undefined' ? new Uint8Array(new ArrayBuffer(binarySize)) : new Array(binarySize); // If we have subtype 2 skip the 4 bytes for the size\n\n\n if (subType === binary.SUBTYPE_BYTE_ARRAY) {\n binarySize = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24;\n if (binarySize < 0) throw new Error('Negative binary type element size found for subtype 0x02');\n if (binarySize > totalBinarySize - 4) throw new Error('Binary type with subtype 0x02 contains to long binary size');\n if (binarySize < totalBinarySize - 4) throw new Error('Binary type with subtype 0x02 contains to short binary size');\n } // Copy the data\n\n\n for (i = 0; i < binarySize; i++) {\n _buffer[i] = buffer$$1[index + i];\n }\n\n if (promoteBuffers && promoteValues) {\n object[name] = _buffer;\n } else {\n object[name] = new binary(_buffer, subType);\n }\n } // Update the index\n\n\n index = index + binarySize;\n } else if (elementType === constants.BSON_DATA_REGEXP && bsonRegExp === false) {\n // Get the start search index\n i = index; // Locate the end of the c string\n\n while (buffer$$1[i] !== 0x00 && i < buffer$$1.length) {\n i++;\n } // If are at the end of the buffer there is a problem with the document\n\n\n if (i >= buffer$$1.length) throw new Error('Bad BSON Document: illegal CString'); // Return the C string\n\n var source = buffer$$1.toString('utf8', index, i); // Create the regexp\n\n index = i + 1; // Get the start search index\n\n i = index; // Locate the end of the c string\n\n while (buffer$$1[i] !== 0x00 && i < buffer$$1.length) {\n i++;\n } // If are at the end of the buffer there is a problem with the document\n\n\n if (i >= buffer$$1.length) throw new Error('Bad BSON Document: illegal CString'); // Return the C string\n\n var regExpOptions = buffer$$1.toString('utf8', index, i);\n index = i + 1; // For each option add the corresponding one for javascript\n\n var optionsArray = new Array(regExpOptions.length); // Parse options\n\n for (i = 0; i < regExpOptions.length; i++) {\n switch (regExpOptions[i]) {\n case 'm':\n optionsArray[i] = 'm';\n break;\n\n case 's':\n optionsArray[i] = 'g';\n break;\n\n case 'i':\n optionsArray[i] = 'i';\n break;\n }\n }\n\n object[name] = new RegExp(source, optionsArray.join(''));\n } else if (elementType === constants.BSON_DATA_REGEXP && bsonRegExp === true) {\n // Get the start search index\n i = index; // Locate the end of the c string\n\n while (buffer$$1[i] !== 0x00 && i < buffer$$1.length) {\n i++;\n } // If are at the end of the buffer there is a problem with the document\n\n\n if (i >= buffer$$1.length) throw new Error('Bad BSON Document: illegal CString'); // Return the C string\n\n var _source = buffer$$1.toString('utf8', index, i);\n\n index = i + 1; // Get the start search index\n\n i = index; // Locate the end of the c string\n\n while (buffer$$1[i] !== 0x00 && i < buffer$$1.length) {\n i++;\n } // If are at the end of the buffer there is a problem with the document\n\n\n if (i >= buffer$$1.length) throw new Error('Bad BSON Document: illegal CString'); // Return the C string\n\n var _regExpOptions = buffer$$1.toString('utf8', index, i);\n\n index = i + 1; // Set the object\n\n object[name] = new regexp(_source, _regExpOptions);\n } else if (elementType === constants.BSON_DATA_SYMBOL) {\n var _stringSize = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24;\n\n if (_stringSize <= 0 || _stringSize > buffer$$1.length - index || buffer$$1[index + _stringSize - 1] !== 0) throw new Error('bad string length in bson');\n var symbol$$1 = buffer$$1.toString('utf8', index, index + _stringSize - 1);\n object[name] = promoteValues ? symbol$$1 : new symbol(symbol$$1);\n index = index + _stringSize;\n } else if (elementType === constants.BSON_DATA_TIMESTAMP) {\n var _lowBits2 = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24;\n\n var _highBits2 = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24;\n\n object[name] = new timestamp(_lowBits2, _highBits2);\n } else if (elementType === constants.BSON_DATA_MIN_KEY) {\n object[name] = new min_key();\n } else if (elementType === constants.BSON_DATA_MAX_KEY) {\n object[name] = new max_key();\n } else if (elementType === constants.BSON_DATA_CODE) {\n var _stringSize2 = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24;\n\n if (_stringSize2 <= 0 || _stringSize2 > buffer$$1.length - index || buffer$$1[index + _stringSize2 - 1] !== 0) throw new Error('bad string length in bson');\n var functionString = buffer$$1.toString('utf8', index, index + _stringSize2 - 1); // If we are evaluating the functions\n\n if (evalFunctions) {\n // If we have cache enabled let's look for the md5 of the function in the cache\n if (cacheFunctions) {\n var hash = cacheFunctionsCrc32 ? crc32(functionString) : functionString; // Got to do this to avoid V8 deoptimizing the call due to finding eval\n\n object[name] = isolateEvalWithHash(functionCache, hash, functionString, object);\n } else {\n object[name] = isolateEval(functionString);\n }\n } else {\n object[name] = new code(functionString);\n } // Update parse index position\n\n\n index = index + _stringSize2;\n } else if (elementType === constants.BSON_DATA_CODE_W_SCOPE) {\n var totalSize = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24; // Element cannot be shorter than totalSize + stringSize + documentSize + terminator\n\n if (totalSize < 4 + 4 + 4 + 1) {\n throw new Error('code_w_scope total size shorter minimum expected length');\n } // Get the code string size\n\n\n var _stringSize3 = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24; // Check if we have a valid string\n\n\n if (_stringSize3 <= 0 || _stringSize3 > buffer$$1.length - index || buffer$$1[index + _stringSize3 - 1] !== 0) throw new Error('bad string length in bson'); // Javascript function\n\n var _functionString = buffer$$1.toString('utf8', index, index + _stringSize3 - 1); // Update parse index position\n\n\n index = index + _stringSize3; // Parse the element\n\n var _index3 = index; // Decode the size of the object document\n\n var _objectSize2 = buffer$$1[index] | buffer$$1[index + 1] << 8 | buffer$$1[index + 2] << 16 | buffer$$1[index + 3] << 24; // Decode the scope object\n\n\n var scopeObject = deserializeObject(buffer$$1, _index3, options, false); // Adjust the index\n\n index = index + _objectSize2; // Check if field length is to short\n\n if (totalSize < 4 + 4 + _objectSize2 + _stringSize3) {\n throw new Error('code_w_scope total size is to short, truncating scope');\n } // Check if totalSize field is to long\n\n\n if (totalSize > 4 + 4 + _objectSize2 + _stringSize3) {\n throw new Error('code_w_scope total size is to long, clips outer document');\n } // If we are evaluating the functions\n\n\n if (evalFunctions) {\n // If we have cache enabled let's look for the md5 of the function in the cache\n if (cacheFunctions) {\n var _hash = cacheFunctionsCrc32 ? crc32(_functionString) : _functionString; // Got to do this to avoid V8 deoptimizing the call due to finding eval\n\n\n object[name] = isolateEvalWithHash(functionCache, _hash, _functionString, object);\n } else {\n object[name] = isolateEval(_functionString);\n }\n\n object[name].scope = scopeObject;\n } else {\n object[name] = new code(_functionString, scopeObject);\n }\n } else if (elementType === constants.BSON_DATA_DBPOINTER) {\n // Get the code string size\n var _stringSize4 = buffer$$1[index++] | buffer$$1[index++] << 8 | buffer$$1[index++] << 16 | buffer$$1[index++] << 24; // Check if we have a valid string\n\n\n if (_stringSize4 <= 0 || _stringSize4 > buffer$$1.length - index || buffer$$1[index + _stringSize4 - 1] !== 0) throw new Error('bad string length in bson'); // Namespace\n\n if (!validateUtf8$1(buffer$$1, index, index + _stringSize4 - 1)) {\n throw new Error('Invalid UTF-8 string in BSON document');\n }\n\n var namespace = buffer$$1.toString('utf8', index, index + _stringSize4 - 1); // Update parse index position\n\n index = index + _stringSize4; // Read the oid\n\n var oidBuffer = Buffer$4.alloc(12);\n buffer$$1.copy(oidBuffer, 0, index, index + 12);\n\n var _oid = new objectid(oidBuffer); // Update the index\n\n\n index = index + 12; // Upgrade to DBRef type\n\n object[name] = new db_ref(namespace, _oid);\n } else {\n throw new Error('Detected unknown BSON type ' + elementType.toString(16) + ' for fieldname \"' + name + '\", are you using the latest BSON parser?');\n }\n } // Check if the deserialization was against a valid array/object\n\n\n if (size !== index - startIndex) {\n if (isArray) throw new Error('corrupt array bson');\n throw new Error('corrupt object bson');\n } // check if object's $ keys are those of a DBRef\n\n\n var dollarKeys = Object.keys(object).filter(function (k) {\n return k.startsWith('$');\n });\n var valid = true;\n dollarKeys.forEach(function (k) {\n if (['$ref', '$id', '$db'].indexOf(k) === -1) valid = false;\n }); // if a $key not in \"$ref\", \"$id\", \"$db\", don't make a DBRef\n\n if (!valid) return object;\n\n if (object['$id'] != null && object['$ref'] != null) {\n var copy = Object.assign({}, object);\n delete copy.$ref;\n delete copy.$id;\n delete copy.$db;\n return new db_ref(object.$ref, object.$id, object.$db || null, copy);\n }\n\n return object;\n}\n/**\n * Ensure eval is isolated.\n *\n * @ignore\n * @api private\n */\n\n\nfunction isolateEvalWithHash(functionCache, hash, functionString, object) {\n // Contains the value we are going to set\n var value = null; // Check for cache hit, eval if missing and return cached function\n\n if (functionCache[hash] == null) {\n eval('value = ' + functionString);\n functionCache[hash] = value;\n } // Set the object\n\n\n return functionCache[hash].bind(object);\n}\n/**\n * Ensure eval is isolated.\n *\n * @ignore\n * @api private\n */\n\n\nfunction isolateEval(functionString) {\n // Contains the value we are going to set\n var value = null; // Eval the function\n\n eval('value = ' + functionString);\n return value;\n}\n\nvar deserializer = deserialize$1;\n\n// All rights reserved.\n//\n// Redistribution and use in source and binary forms, with or without\n// modification, are permitted provided that the following conditions are met:\n//\n// * Redistributions of source code must retain the above copyright notice,\n// this list of conditions and the following disclaimer.\n//\n// * Redistributions in binary form must reproduce the above copyright notice,\n// this list of conditions and the following disclaimer in the documentation\n// and/or other materials provided with the distribution.\n//\n// * Neither the name of Fair Oaks Labs, Inc. nor the names of its contributors\n// may be used to endorse or promote products derived from this software\n// without specific prior written permission.\n//\n// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE\n// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE\n// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS\n// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN\n// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)\n// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\n// POSSIBILITY OF SUCH DAMAGE.\n//\n//\n// Modifications to writeIEEE754 to support negative zeroes made by Brian White\n\nfunction readIEEE754(buffer$$1, offset, endian, mLen, nBytes) {\n var e,\n m,\n bBE = endian === 'big',\n eLen = nBytes * 8 - mLen - 1,\n eMax = (1 << eLen) - 1,\n eBias = eMax >> 1,\n nBits = -7,\n i = bBE ? 0 : nBytes - 1,\n d = bBE ? 1 : -1,\n s = buffer$$1[offset + i];\n i += d;\n e = s & (1 << -nBits) - 1;\n s >>= -nBits;\n nBits += eLen;\n\n for (; nBits > 0; e = e * 256 + buffer$$1[offset + i], i += d, nBits -= 8) {\n }\n\n m = e & (1 << -nBits) - 1;\n e >>= -nBits;\n nBits += mLen;\n\n for (; nBits > 0; m = m * 256 + buffer$$1[offset + i], i += d, nBits -= 8) {\n }\n\n if (e === 0) {\n e = 1 - eBias;\n } else if (e === eMax) {\n return m ? NaN : (s ? -1 : 1) * Infinity;\n } else {\n m = m + Math.pow(2, mLen);\n e = e - eBias;\n }\n\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen);\n}\n\nfunction writeIEEE754(buffer$$1, value, offset, endian, mLen, nBytes) {\n var e,\n m,\n c,\n bBE = endian === 'big',\n eLen = nBytes * 8 - mLen - 1,\n eMax = (1 << eLen) - 1,\n eBias = eMax >> 1,\n rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0,\n i = bBE ? nBytes - 1 : 0,\n d = bBE ? -1 : 1,\n s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;\n value = Math.abs(value);\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0;\n e = eMax;\n } else {\n e = Math.floor(Math.log(value) / Math.LN2);\n\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--;\n c *= 2;\n }\n\n if (e + eBias >= 1) {\n value += rt / c;\n } else {\n value += rt * Math.pow(2, 1 - eBias);\n }\n\n if (value * c >= 2) {\n e++;\n c /= 2;\n }\n\n if (e + eBias >= eMax) {\n m = 0;\n e = eMax;\n } else if (e + eBias >= 1) {\n m = (value * c - 1) * Math.pow(2, mLen);\n e = e + eBias;\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);\n e = 0;\n }\n }\n\n if (isNaN(value)) m = 0;\n\n while (mLen >= 8) {\n buffer$$1[offset + i] = m & 0xff;\n i += d;\n m /= 256;\n mLen -= 8;\n }\n\n e = e << mLen | m;\n if (isNaN(value)) e += 8;\n eLen += mLen;\n\n while (eLen > 0) {\n buffer$$1[offset + i] = e & 0xff;\n i += d;\n e /= 256;\n eLen -= 8;\n }\n\n buffer$$1[offset + i - d] |= s * 128;\n}\n\nvar float_parser = {\n readIEEE754: readIEEE754,\n writeIEEE754: writeIEEE754\n};\n\nfunction _typeof$3(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof$3 = function _typeof(obj) { return typeof obj; }; } else { _typeof$3 = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof$3(obj); }\n\nvar Buffer$5 = buffer.Buffer;\nvar writeIEEE754$1 = float_parser.writeIEEE754;\nvar normalizedFunctionString$1 = utils.normalizedFunctionString;\nvar regexp$1 = /\\x00/; // eslint-disable-line no-control-regex\n\nvar ignoreKeys = new Set(['$db', '$ref', '$id', '$clusterTime']); // To ensure that 0.4 of node works correctly\n\nvar isDate$1 = function isDate(d) {\n return _typeof$3(d) === 'object' && Object.prototype.toString.call(d) === '[object Date]';\n};\n\nvar isRegExp$1 = function isRegExp(d) {\n return Object.prototype.toString.call(d) === '[object RegExp]';\n};\n\nfunction serializeString(buffer$$1, key, value, index, isArray) {\n // Encode String type\n buffer$$1[index++] = constants.BSON_DATA_STRING; // Number of written bytes\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes + 1;\n buffer$$1[index - 1] = 0; // Write the string\n\n var size = buffer$$1.write(value, index + 4, 'utf8'); // Write the size of the string to buffer\n\n buffer$$1[index + 3] = size + 1 >> 24 & 0xff;\n buffer$$1[index + 2] = size + 1 >> 16 & 0xff;\n buffer$$1[index + 1] = size + 1 >> 8 & 0xff;\n buffer$$1[index] = size + 1 & 0xff; // Update index\n\n index = index + 4 + size; // Write zero\n\n buffer$$1[index++] = 0;\n return index;\n}\n\nfunction serializeNumber(buffer$$1, key, value, index, isArray) {\n // We have an integer value\n if (Math.floor(value) === value && value >= constants.JS_INT_MIN && value <= constants.JS_INT_MAX) {\n // If the value fits in 32 bits encode as int, if it fits in a double\n // encode it as a double, otherwise long\n if (value >= constants.BSON_INT32_MIN && value <= constants.BSON_INT32_MAX) {\n // Set int type 32 bits or less\n buffer$$1[index++] = constants.BSON_DATA_INT; // Number of written bytes\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes;\n buffer$$1[index++] = 0; // Write the int value\n\n buffer$$1[index++] = value & 0xff;\n buffer$$1[index++] = value >> 8 & 0xff;\n buffer$$1[index++] = value >> 16 & 0xff;\n buffer$$1[index++] = value >> 24 & 0xff;\n } else if (value >= constants.JS_INT_MIN && value <= constants.JS_INT_MAX) {\n // Encode as double\n buffer$$1[index++] = constants.BSON_DATA_NUMBER; // Number of written bytes\n\n var _numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n\n index = index + _numberOfWrittenBytes;\n buffer$$1[index++] = 0; // Write float\n\n writeIEEE754$1(buffer$$1, value, index, 'little', 52, 8); // Ajust index\n\n index = index + 8;\n } else {\n // Set long type\n buffer$$1[index++] = constants.BSON_DATA_LONG; // Number of written bytes\n\n var _numberOfWrittenBytes2 = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n\n index = index + _numberOfWrittenBytes2;\n buffer$$1[index++] = 0;\n var longVal = long_1.fromNumber(value);\n var lowBits = longVal.getLowBits();\n var highBits = longVal.getHighBits(); // Encode low bits\n\n buffer$$1[index++] = lowBits & 0xff;\n buffer$$1[index++] = lowBits >> 8 & 0xff;\n buffer$$1[index++] = lowBits >> 16 & 0xff;\n buffer$$1[index++] = lowBits >> 24 & 0xff; // Encode high bits\n\n buffer$$1[index++] = highBits & 0xff;\n buffer$$1[index++] = highBits >> 8 & 0xff;\n buffer$$1[index++] = highBits >> 16 & 0xff;\n buffer$$1[index++] = highBits >> 24 & 0xff;\n }\n } else {\n // Encode as double\n buffer$$1[index++] = constants.BSON_DATA_NUMBER; // Number of written bytes\n\n var _numberOfWrittenBytes3 = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n\n index = index + _numberOfWrittenBytes3;\n buffer$$1[index++] = 0; // Write float\n\n writeIEEE754$1(buffer$$1, value, index, 'little', 52, 8); // Ajust index\n\n index = index + 8;\n }\n\n return index;\n}\n\nfunction serializeNull(buffer$$1, key, value, index, isArray) {\n // Set long type\n buffer$$1[index++] = constants.BSON_DATA_NULL; // Number of written bytes\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes;\n buffer$$1[index++] = 0;\n return index;\n}\n\nfunction serializeBoolean(buffer$$1, key, value, index, isArray) {\n // Write the type\n buffer$$1[index++] = constants.BSON_DATA_BOOLEAN; // Number of written bytes\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes;\n buffer$$1[index++] = 0; // Encode the boolean value\n\n buffer$$1[index++] = value ? 1 : 0;\n return index;\n}\n\nfunction serializeDate(buffer$$1, key, value, index, isArray) {\n // Write the type\n buffer$$1[index++] = constants.BSON_DATA_DATE; // Number of written bytes\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes;\n buffer$$1[index++] = 0; // Write the date\n\n var dateInMilis = long_1.fromNumber(value.getTime());\n var lowBits = dateInMilis.getLowBits();\n var highBits = dateInMilis.getHighBits(); // Encode low bits\n\n buffer$$1[index++] = lowBits & 0xff;\n buffer$$1[index++] = lowBits >> 8 & 0xff;\n buffer$$1[index++] = lowBits >> 16 & 0xff;\n buffer$$1[index++] = lowBits >> 24 & 0xff; // Encode high bits\n\n buffer$$1[index++] = highBits & 0xff;\n buffer$$1[index++] = highBits >> 8 & 0xff;\n buffer$$1[index++] = highBits >> 16 & 0xff;\n buffer$$1[index++] = highBits >> 24 & 0xff;\n return index;\n}\n\nfunction serializeRegExp(buffer$$1, key, value, index, isArray) {\n // Write the type\n buffer$$1[index++] = constants.BSON_DATA_REGEXP; // Number of written bytes\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes;\n buffer$$1[index++] = 0;\n\n if (value.source && value.source.match(regexp$1) != null) {\n throw Error('value ' + value.source + ' must not contain null bytes');\n } // Adjust the index\n\n\n index = index + buffer$$1.write(value.source, index, 'utf8'); // Write zero\n\n buffer$$1[index++] = 0x00; // Write the parameters\n\n if (value.ignoreCase) buffer$$1[index++] = 0x69; // i\n\n if (value.global) buffer$$1[index++] = 0x73; // s\n\n if (value.multiline) buffer$$1[index++] = 0x6d; // m\n // Add ending zero\n\n buffer$$1[index++] = 0x00;\n return index;\n}\n\nfunction serializeBSONRegExp(buffer$$1, key, value, index, isArray) {\n // Write the type\n buffer$$1[index++] = constants.BSON_DATA_REGEXP; // Number of written bytes\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes;\n buffer$$1[index++] = 0; // Check the pattern for 0 bytes\n\n if (value.pattern.match(regexp$1) != null) {\n // The BSON spec doesn't allow keys with null bytes because keys are\n // null-terminated.\n throw Error('pattern ' + value.pattern + ' must not contain null bytes');\n } // Adjust the index\n\n\n index = index + buffer$$1.write(value.pattern, index, 'utf8'); // Write zero\n\n buffer$$1[index++] = 0x00; // Write the options\n\n index = index + buffer$$1.write(value.options.split('').sort().join(''), index, 'utf8'); // Add ending zero\n\n buffer$$1[index++] = 0x00;\n return index;\n}\n\nfunction serializeMinMax(buffer$$1, key, value, index, isArray) {\n // Write the type of either min or max key\n if (value === null) {\n buffer$$1[index++] = constants.BSON_DATA_NULL;\n } else if (value._bsontype === 'MinKey') {\n buffer$$1[index++] = constants.BSON_DATA_MIN_KEY;\n } else {\n buffer$$1[index++] = constants.BSON_DATA_MAX_KEY;\n } // Number of written bytes\n\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes;\n buffer$$1[index++] = 0;\n return index;\n}\n\nfunction serializeObjectId(buffer$$1, key, value, index, isArray) {\n // Write the type\n buffer$$1[index++] = constants.BSON_DATA_OID; // Number of written bytes\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes;\n buffer$$1[index++] = 0; // Write the objectId into the shared buffer\n\n if (typeof value.id === 'string') {\n buffer$$1.write(value.id, index, 'binary');\n } else if (value.id && value.id.copy) {\n value.id.copy(buffer$$1, index, 0, 12);\n } else {\n throw new TypeError('object [' + JSON.stringify(value) + '] is not a valid ObjectId');\n } // Ajust index\n\n\n return index + 12;\n}\n\nfunction serializeBuffer(buffer$$1, key, value, index, isArray) {\n // Write the type\n buffer$$1[index++] = constants.BSON_DATA_BINARY; // Number of written bytes\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes;\n buffer$$1[index++] = 0; // Get size of the buffer (current write point)\n\n var size = value.length; // Write the size of the string to buffer\n\n buffer$$1[index++] = size & 0xff;\n buffer$$1[index++] = size >> 8 & 0xff;\n buffer$$1[index++] = size >> 16 & 0xff;\n buffer$$1[index++] = size >> 24 & 0xff; // Write the default subtype\n\n buffer$$1[index++] = constants.BSON_BINARY_SUBTYPE_DEFAULT; // Copy the content form the binary field to the buffer\n\n value.copy(buffer$$1, index, 0, size); // Adjust the index\n\n index = index + size;\n return index;\n}\n\nfunction serializeObject(buffer$$1, key, value, index, checkKeys, depth, serializeFunctions, ignoreUndefined, isArray, path) {\n for (var i = 0; i < path.length; i++) {\n if (path[i] === value) throw new Error('cyclic dependency detected');\n } // Push value to stack\n\n\n path.push(value); // Write the type\n\n buffer$$1[index++] = Array.isArray(value) ? constants.BSON_DATA_ARRAY : constants.BSON_DATA_OBJECT; // Number of written bytes\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes;\n buffer$$1[index++] = 0;\n var endIndex = serializeInto(buffer$$1, value, checkKeys, index, depth + 1, serializeFunctions, ignoreUndefined, path); // Pop stack\n\n path.pop();\n return endIndex;\n}\n\nfunction serializeDecimal128(buffer$$1, key, value, index, isArray) {\n buffer$$1[index++] = constants.BSON_DATA_DECIMAL128; // Number of written bytes\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes;\n buffer$$1[index++] = 0; // Write the data from the value\n\n value.bytes.copy(buffer$$1, index, 0, 16);\n return index + 16;\n}\n\nfunction serializeLong(buffer$$1, key, value, index, isArray) {\n // Write the type\n buffer$$1[index++] = value._bsontype === 'Long' ? constants.BSON_DATA_LONG : constants.BSON_DATA_TIMESTAMP; // Number of written bytes\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes;\n buffer$$1[index++] = 0; // Write the date\n\n var lowBits = value.getLowBits();\n var highBits = value.getHighBits(); // Encode low bits\n\n buffer$$1[index++] = lowBits & 0xff;\n buffer$$1[index++] = lowBits >> 8 & 0xff;\n buffer$$1[index++] = lowBits >> 16 & 0xff;\n buffer$$1[index++] = lowBits >> 24 & 0xff; // Encode high bits\n\n buffer$$1[index++] = highBits & 0xff;\n buffer$$1[index++] = highBits >> 8 & 0xff;\n buffer$$1[index++] = highBits >> 16 & 0xff;\n buffer$$1[index++] = highBits >> 24 & 0xff;\n return index;\n}\n\nfunction serializeInt32(buffer$$1, key, value, index, isArray) {\n // Set int type 32 bits or less\n buffer$$1[index++] = constants.BSON_DATA_INT; // Number of written bytes\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes;\n buffer$$1[index++] = 0; // Write the int value\n\n buffer$$1[index++] = value & 0xff;\n buffer$$1[index++] = value >> 8 & 0xff;\n buffer$$1[index++] = value >> 16 & 0xff;\n buffer$$1[index++] = value >> 24 & 0xff;\n return index;\n}\n\nfunction serializeDouble(buffer$$1, key, value, index, isArray) {\n // Encode as double\n buffer$$1[index++] = constants.BSON_DATA_NUMBER; // Number of written bytes\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes;\n buffer$$1[index++] = 0; // Write float\n\n writeIEEE754$1(buffer$$1, value.value, index, 'little', 52, 8); // Adjust index\n\n index = index + 8;\n return index;\n}\n\nfunction serializeFunction(buffer$$1, key, value, index, checkKeys, depth, isArray) {\n buffer$$1[index++] = constants.BSON_DATA_CODE; // Number of written bytes\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes;\n buffer$$1[index++] = 0; // Function string\n\n var functionString = normalizedFunctionString$1(value); // Write the string\n\n var size = buffer$$1.write(functionString, index + 4, 'utf8') + 1; // Write the size of the string to buffer\n\n buffer$$1[index] = size & 0xff;\n buffer$$1[index + 1] = size >> 8 & 0xff;\n buffer$$1[index + 2] = size >> 16 & 0xff;\n buffer$$1[index + 3] = size >> 24 & 0xff; // Update index\n\n index = index + 4 + size - 1; // Write zero\n\n buffer$$1[index++] = 0;\n return index;\n}\n\nfunction serializeCode(buffer$$1, key, value, index, checkKeys, depth, serializeFunctions, ignoreUndefined, isArray) {\n if (value.scope && _typeof$3(value.scope) === 'object') {\n // Write the type\n buffer$$1[index++] = constants.BSON_DATA_CODE_W_SCOPE; // Number of written bytes\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes;\n buffer$$1[index++] = 0; // Starting index\n\n var startIndex = index; // Serialize the function\n // Get the function string\n\n var functionString = typeof value.code === 'string' ? value.code : value.code.toString(); // Index adjustment\n\n index = index + 4; // Write string into buffer\n\n var codeSize = buffer$$1.write(functionString, index + 4, 'utf8') + 1; // Write the size of the string to buffer\n\n buffer$$1[index] = codeSize & 0xff;\n buffer$$1[index + 1] = codeSize >> 8 & 0xff;\n buffer$$1[index + 2] = codeSize >> 16 & 0xff;\n buffer$$1[index + 3] = codeSize >> 24 & 0xff; // Write end 0\n\n buffer$$1[index + 4 + codeSize - 1] = 0; // Write the\n\n index = index + codeSize + 4; //\n // Serialize the scope value\n\n var endIndex = serializeInto(buffer$$1, value.scope, checkKeys, index, depth + 1, serializeFunctions, ignoreUndefined);\n index = endIndex - 1; // Writ the total\n\n var totalSize = endIndex - startIndex; // Write the total size of the object\n\n buffer$$1[startIndex++] = totalSize & 0xff;\n buffer$$1[startIndex++] = totalSize >> 8 & 0xff;\n buffer$$1[startIndex++] = totalSize >> 16 & 0xff;\n buffer$$1[startIndex++] = totalSize >> 24 & 0xff; // Write trailing zero\n\n buffer$$1[index++] = 0;\n } else {\n buffer$$1[index++] = constants.BSON_DATA_CODE; // Number of written bytes\n\n var _numberOfWrittenBytes4 = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n\n index = index + _numberOfWrittenBytes4;\n buffer$$1[index++] = 0; // Function string\n\n var _functionString = value.code.toString(); // Write the string\n\n\n var size = buffer$$1.write(_functionString, index + 4, 'utf8') + 1; // Write the size of the string to buffer\n\n buffer$$1[index] = size & 0xff;\n buffer$$1[index + 1] = size >> 8 & 0xff;\n buffer$$1[index + 2] = size >> 16 & 0xff;\n buffer$$1[index + 3] = size >> 24 & 0xff; // Update index\n\n index = index + 4 + size - 1; // Write zero\n\n buffer$$1[index++] = 0;\n }\n\n return index;\n}\n\nfunction serializeBinary(buffer$$1, key, value, index, isArray) {\n // Write the type\n buffer$$1[index++] = constants.BSON_DATA_BINARY; // Number of written bytes\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes;\n buffer$$1[index++] = 0; // Extract the buffer\n\n var data = value.value(true); // Calculate size\n\n var size = value.position; // Add the deprecated 02 type 4 bytes of size to total\n\n if (value.sub_type === binary.SUBTYPE_BYTE_ARRAY) size = size + 4; // Write the size of the string to buffer\n\n buffer$$1[index++] = size & 0xff;\n buffer$$1[index++] = size >> 8 & 0xff;\n buffer$$1[index++] = size >> 16 & 0xff;\n buffer$$1[index++] = size >> 24 & 0xff; // Write the subtype to the buffer\n\n buffer$$1[index++] = value.sub_type; // If we have binary type 2 the 4 first bytes are the size\n\n if (value.sub_type === binary.SUBTYPE_BYTE_ARRAY) {\n size = size - 4;\n buffer$$1[index++] = size & 0xff;\n buffer$$1[index++] = size >> 8 & 0xff;\n buffer$$1[index++] = size >> 16 & 0xff;\n buffer$$1[index++] = size >> 24 & 0xff;\n } // Write the data to the object\n\n\n data.copy(buffer$$1, index, 0, value.position); // Adjust the index\n\n index = index + value.position;\n return index;\n}\n\nfunction serializeSymbol(buffer$$1, key, value, index, isArray) {\n // Write the type\n buffer$$1[index++] = constants.BSON_DATA_SYMBOL; // Number of written bytes\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes;\n buffer$$1[index++] = 0; // Write the string\n\n var size = buffer$$1.write(value.value, index + 4, 'utf8') + 1; // Write the size of the string to buffer\n\n buffer$$1[index] = size & 0xff;\n buffer$$1[index + 1] = size >> 8 & 0xff;\n buffer$$1[index + 2] = size >> 16 & 0xff;\n buffer$$1[index + 3] = size >> 24 & 0xff; // Update index\n\n index = index + 4 + size - 1; // Write zero\n\n buffer$$1[index++] = 0x00;\n return index;\n}\n\nfunction serializeDBRef(buffer$$1, key, value, index, depth, serializeFunctions, isArray) {\n // Write the type\n buffer$$1[index++] = constants.BSON_DATA_OBJECT; // Number of written bytes\n\n var numberOfWrittenBytes = !isArray ? buffer$$1.write(key, index, 'utf8') : buffer$$1.write(key, index, 'ascii'); // Encode the name\n\n index = index + numberOfWrittenBytes;\n buffer$$1[index++] = 0;\n var startIndex = index;\n var endIndex;\n var output = {\n $ref: value.collection || value.namespace,\n // \"namespace\" was what library 1.x called \"collection\"\n $id: value.oid\n };\n if (value.db != null) output.$db = value.db;\n output = Object.assign(output, value.fields);\n endIndex = serializeInto(buffer$$1, output, false, index, depth + 1, serializeFunctions); // Calculate object size\n\n var size = endIndex - startIndex; // Write the size\n\n buffer$$1[startIndex++] = size & 0xff;\n buffer$$1[startIndex++] = size >> 8 & 0xff;\n buffer$$1[startIndex++] = size >> 16 & 0xff;\n buffer$$1[startIndex++] = size >> 24 & 0xff; // Set index\n\n return endIndex;\n}\n\nfunction serializeInto(buffer$$1, object, checkKeys, startingIndex, depth, serializeFunctions, ignoreUndefined, path) {\n startingIndex = startingIndex || 0;\n path = path || []; // Push the object to the path\n\n path.push(object); // Start place to serialize into\n\n var index = startingIndex + 4; // Special case isArray\n\n if (Array.isArray(object)) {\n // Get object keys\n for (var i = 0; i < object.length; i++) {\n var key = '' + i;\n var value = object[i]; // Is there an override value\n\n if (value && value.toBSON) {\n if (typeof value.toBSON !== 'function') throw new TypeError('toBSON is not a function');\n value = value.toBSON();\n }\n\n var type = _typeof$3(value);\n\n if (type === 'string') {\n index = serializeString(buffer$$1, key, value, index, true);\n } else if (type === 'number') {\n index = serializeNumber(buffer$$1, key, value, index, true);\n } else if (type === 'boolean') {\n index = serializeBoolean(buffer$$1, key, value, index, true);\n } else if (value instanceof Date || isDate$1(value)) {\n index = serializeDate(buffer$$1, key, value, index, true);\n } else if (value === undefined) {\n index = serializeNull(buffer$$1, key, value, index, true);\n } else if (value === null) {\n index = serializeNull(buffer$$1, key, value, index, true);\n } else if (value['_bsontype'] === 'ObjectId' || value['_bsontype'] === 'ObjectID') {\n index = serializeObjectId(buffer$$1, key, value, index, true);\n } else if (Buffer$5.isBuffer(value)) {\n index = serializeBuffer(buffer$$1, key, value, index, true);\n } else if (value instanceof RegExp || isRegExp$1(value)) {\n index = serializeRegExp(buffer$$1, key, value, index, true);\n } else if (type === 'object' && value['_bsontype'] == null) {\n index = serializeObject(buffer$$1, key, value, index, checkKeys, depth, serializeFunctions, ignoreUndefined, true, path);\n } else if (type === 'object' && value['_bsontype'] === 'Decimal128') {\n index = serializeDecimal128(buffer$$1, key, value, index, true);\n } else if (value['_bsontype'] === 'Long' || value['_bsontype'] === 'Timestamp') {\n index = serializeLong(buffer$$1, key, value, index, true);\n } else if (value['_bsontype'] === 'Double') {\n index = serializeDouble(buffer$$1, key, value, index, true);\n } else if (typeof value === 'function' && serializeFunctions) {\n index = serializeFunction(buffer$$1, key, value, index, checkKeys, depth, serializeFunctions, true);\n } else if (value['_bsontype'] === 'Code') {\n index = serializeCode(buffer$$1, key, value, index, checkKeys, depth, serializeFunctions, ignoreUndefined, true);\n } else if (value['_bsontype'] === 'Binary') {\n index = serializeBinary(buffer$$1, key, value, index, true);\n } else if (value['_bsontype'] === 'Symbol') {\n index = serializeSymbol(buffer$$1, key, value, index, true);\n } else if (value['_bsontype'] === 'DBRef') {\n index = serializeDBRef(buffer$$1, key, value, index, depth, serializeFunctions, true);\n } else if (value['_bsontype'] === 'BSONRegExp') {\n index = serializeBSONRegExp(buffer$$1, key, value, index, true);\n } else if (value['_bsontype'] === 'Int32') {\n index = serializeInt32(buffer$$1, key, value, index, true);\n } else if (value['_bsontype'] === 'MinKey' || value['_bsontype'] === 'MaxKey') {\n index = serializeMinMax(buffer$$1, key, value, index, true);\n } else if (typeof value['_bsontype'] !== 'undefined') {\n throw new TypeError('Unrecognized or invalid _bsontype: ' + value['_bsontype']);\n }\n }\n } else if (object instanceof map) {\n var iterator = object.entries();\n var done = false;\n\n while (!done) {\n // Unpack the next entry\n var entry = iterator.next();\n done = entry.done; // Are we done, then skip and terminate\n\n if (done) continue; // Get the entry values\n\n var _key = entry.value[0];\n var _value = entry.value[1]; // Check the type of the value\n\n var _type = _typeof$3(_value); // Check the key and throw error if it's illegal\n\n\n if (typeof _key === 'string' && !ignoreKeys.has(_key)) {\n if (_key.match(regexp$1) != null) {\n // The BSON spec doesn't allow keys with null bytes because keys are\n // null-terminated.\n throw Error('key ' + _key + ' must not contain null bytes');\n }\n\n if (checkKeys) {\n if ('$' === _key[0]) {\n throw Error('key ' + _key + \" must not start with '$'\");\n } else if (~_key.indexOf('.')) {\n throw Error('key ' + _key + \" must not contain '.'\");\n }\n }\n }\n\n if (_type === 'string') {\n index = serializeString(buffer$$1, _key, _value, index);\n } else if (_type === 'number') {\n index = serializeNumber(buffer$$1, _key, _value, index);\n } else if (_type === 'boolean') {\n index = serializeBoolean(buffer$$1, _key, _value, index);\n } else if (_value instanceof Date || isDate$1(_value)) {\n index = serializeDate(buffer$$1, _key, _value, index);\n } else if (_value === null || _value === undefined && ignoreUndefined === false) {\n index = serializeNull(buffer$$1, _key, _value, index);\n } else if (_value['_bsontype'] === 'ObjectId' || _value['_bsontype'] === 'ObjectID') {\n index = serializeObjectId(buffer$$1, _key, _value, index);\n } else if (Buffer$5.isBuffer(_value)) {\n index = serializeBuffer(buffer$$1, _key, _value, index);\n } else if (_value instanceof RegExp || isRegExp$1(_value)) {\n index = serializeRegExp(buffer$$1, _key, _value, index);\n } else if (_type === 'object' && _value['_bsontype'] == null) {\n index = serializeObject(buffer$$1, _key, _value, index, checkKeys, depth, serializeFunctions, ignoreUndefined, false, path);\n } else if (_type === 'object' && _value['_bsontype'] === 'Decimal128') {\n index = serializeDecimal128(buffer$$1, _key, _value, index);\n } else if (_value['_bsontype'] === 'Long' || _value['_bsontype'] === 'Timestamp') {\n index = serializeLong(buffer$$1, _key, _value, index);\n } else if (_value['_bsontype'] === 'Double') {\n index = serializeDouble(buffer$$1, _key, _value, index);\n } else if (_value['_bsontype'] === 'Code') {\n index = serializeCode(buffer$$1, _key, _value, index, checkKeys, depth, serializeFunctions, ignoreUndefined);\n } else if (typeof _value === 'function' && serializeFunctions) {\n index = serializeFunction(buffer$$1, _key, _value, index, checkKeys, depth, serializeFunctions);\n } else if (_value['_bsontype'] === 'Binary') {\n index = serializeBinary(buffer$$1, _key, _value, index);\n } else if (_value['_bsontype'] === 'Symbol') {\n index = serializeSymbol(buffer$$1, _key, _value, index);\n } else if (_value['_bsontype'] === 'DBRef') {\n index = serializeDBRef(buffer$$1, _key, _value, index, depth, serializeFunctions);\n } else if (_value['_bsontype'] === 'BSONRegExp') {\n index = serializeBSONRegExp(buffer$$1, _key, _value, index);\n } else if (_value['_bsontype'] === 'Int32') {\n index = serializeInt32(buffer$$1, _key, _value, index);\n } else if (_value['_bsontype'] === 'MinKey' || _value['_bsontype'] === 'MaxKey') {\n index = serializeMinMax(buffer$$1, _key, _value, index);\n } else if (typeof _value['_bsontype'] !== 'undefined') {\n throw new TypeError('Unrecognized or invalid _bsontype: ' + _value['_bsontype']);\n }\n }\n } else {\n // Did we provide a custom serialization method\n if (object.toBSON) {\n if (typeof object.toBSON !== 'function') throw new TypeError('toBSON is not a function');\n object = object.toBSON();\n if (object != null && _typeof$3(object) !== 'object') throw new TypeError('toBSON function did not return an object');\n } // Iterate over all the keys\n\n\n for (var _key2 in object) {\n var _value2 = object[_key2]; // Is there an override value\n\n if (_value2 && _value2.toBSON) {\n if (typeof _value2.toBSON !== 'function') throw new TypeError('toBSON is not a function');\n _value2 = _value2.toBSON();\n } // Check the type of the value\n\n\n var _type2 = _typeof$3(_value2); // Check the key and throw error if it's illegal\n\n\n if (typeof _key2 === 'string' && !ignoreKeys.has(_key2)) {\n if (_key2.match(regexp$1) != null) {\n // The BSON spec doesn't allow keys with null bytes because keys are\n // null-terminated.\n throw Error('key ' + _key2 + ' must not contain null bytes');\n }\n\n if (checkKeys) {\n if ('$' === _key2[0]) {\n throw Error('key ' + _key2 + \" must not start with '$'\");\n } else if (~_key2.indexOf('.')) {\n throw Error('key ' + _key2 + \" must not contain '.'\");\n }\n }\n }\n\n if (_type2 === 'string') {\n index = serializeString(buffer$$1, _key2, _value2, index);\n } else if (_type2 === 'number') {\n index = serializeNumber(buffer$$1, _key2, _value2, index);\n } else if (_type2 === 'boolean') {\n index = serializeBoolean(buffer$$1, _key2, _value2, index);\n } else if (_value2 instanceof Date || isDate$1(_value2)) {\n index = serializeDate(buffer$$1, _key2, _value2, index);\n } else if (_value2 === undefined) {\n if (ignoreUndefined === false) index = serializeNull(buffer$$1, _key2, _value2, index);\n } else if (_value2 === null) {\n index = serializeNull(buffer$$1, _key2, _value2, index);\n } else if (_value2['_bsontype'] === 'ObjectId' || _value2['_bsontype'] === 'ObjectID') {\n index = serializeObjectId(buffer$$1, _key2, _value2, index);\n } else if (Buffer$5.isBuffer(_value2)) {\n index = serializeBuffer(buffer$$1, _key2, _value2, index);\n } else if (_value2 instanceof RegExp || isRegExp$1(_value2)) {\n index = serializeRegExp(buffer$$1, _key2, _value2, index);\n } else if (_type2 === 'object' && _value2['_bsontype'] == null) {\n index = serializeObject(buffer$$1, _key2, _value2, index, checkKeys, depth, serializeFunctions, ignoreUndefined, false, path);\n } else if (_type2 === 'object' && _value2['_bsontype'] === 'Decimal128') {\n index = serializeDecimal128(buffer$$1, _key2, _value2, index);\n } else if (_value2['_bsontype'] === 'Long' || _value2['_bsontype'] === 'Timestamp') {\n index = serializeLong(buffer$$1, _key2, _value2, index);\n } else if (_value2['_bsontype'] === 'Double') {\n index = serializeDouble(buffer$$1, _key2, _value2, index);\n } else if (_value2['_bsontype'] === 'Code') {\n index = serializeCode(buffer$$1, _key2, _value2, index, checkKeys, depth, serializeFunctions, ignoreUndefined);\n } else if (typeof _value2 === 'function' && serializeFunctions) {\n index = serializeFunction(buffer$$1, _key2, _value2, index, checkKeys, depth, serializeFunctions);\n } else if (_value2['_bsontype'] === 'Binary') {\n index = serializeBinary(buffer$$1, _key2, _value2, index);\n } else if (_value2['_bsontype'] === 'Symbol') {\n index = serializeSymbol(buffer$$1, _key2, _value2, index);\n } else if (_value2['_bsontype'] === 'DBRef') {\n index = serializeDBRef(buffer$$1, _key2, _value2, index, depth, serializeFunctions);\n } else if (_value2['_bsontype'] === 'BSONRegExp') {\n index = serializeBSONRegExp(buffer$$1, _key2, _value2, index);\n } else if (_value2['_bsontype'] === 'Int32') {\n index = serializeInt32(buffer$$1, _key2, _value2, index);\n } else if (_value2['_bsontype'] === 'MinKey' || _value2['_bsontype'] === 'MaxKey') {\n index = serializeMinMax(buffer$$1, _key2, _value2, index);\n } else if (typeof _value2['_bsontype'] !== 'undefined') {\n throw new TypeError('Unrecognized or invalid _bsontype: ' + _value2['_bsontype']);\n }\n }\n } // Remove the path\n\n\n path.pop(); // Final padding byte for object\n\n buffer$$1[index++] = 0x00; // Final size\n\n var size = index - startingIndex; // Write the size of the object\n\n buffer$$1[startingIndex++] = size & 0xff;\n buffer$$1[startingIndex++] = size >> 8 & 0xff;\n buffer$$1[startingIndex++] = size >> 16 & 0xff;\n buffer$$1[startingIndex++] = size >> 24 & 0xff;\n return index;\n}\n\nvar serializer = serializeInto;\n\nfunction _typeof$4(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof$4 = function _typeof(obj) { return typeof obj; }; } else { _typeof$4 = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof$4(obj); }\n\nvar Buffer$6 = buffer.Buffer;\nvar normalizedFunctionString$2 = utils.normalizedFunctionString; // To ensure that 0.4 of node works correctly\n\nfunction isDate$2(d) {\n return _typeof$4(d) === 'object' && Object.prototype.toString.call(d) === '[object Date]';\n}\n\nfunction calculateObjectSize(object, serializeFunctions, ignoreUndefined) {\n var totalLength = 4 + 1;\n\n if (Array.isArray(object)) {\n for (var i = 0; i < object.length; i++) {\n totalLength += calculateElement(i.toString(), object[i], serializeFunctions, true, ignoreUndefined);\n }\n } else {\n // If we have toBSON defined, override the current object\n if (object.toBSON) {\n object = object.toBSON();\n } // Calculate size\n\n\n for (var key in object) {\n totalLength += calculateElement(key, object[key], serializeFunctions, false, ignoreUndefined);\n }\n }\n\n return totalLength;\n}\n/**\n * @ignore\n * @api private\n */\n\n\nfunction calculateElement(name, value, serializeFunctions, isArray, ignoreUndefined) {\n // If we have toBSON defined, override the current object\n if (value && value.toBSON) {\n value = value.toBSON();\n }\n\n switch (_typeof$4(value)) {\n case 'string':\n return 1 + Buffer$6.byteLength(name, 'utf8') + 1 + 4 + Buffer$6.byteLength(value, 'utf8') + 1;\n\n case 'number':\n if (Math.floor(value) === value && value >= constants.JS_INT_MIN && value <= constants.JS_INT_MAX) {\n if (value >= constants.BSON_INT32_MIN && value <= constants.BSON_INT32_MAX) {\n // 32 bit\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + (4 + 1);\n } else {\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + (8 + 1);\n }\n } else {\n // 64 bit\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + (8 + 1);\n }\n\n case 'undefined':\n if (isArray || !ignoreUndefined) return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + 1;\n return 0;\n\n case 'boolean':\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + (1 + 1);\n\n case 'object':\n if (value == null || value['_bsontype'] === 'MinKey' || value['_bsontype'] === 'MaxKey') {\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + 1;\n } else if (value['_bsontype'] === 'ObjectId' || value['_bsontype'] === 'ObjectID') {\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + (12 + 1);\n } else if (value instanceof Date || isDate$2(value)) {\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + (8 + 1);\n } else if (typeof Buffer$6 !== 'undefined' && Buffer$6.isBuffer(value)) {\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + (1 + 4 + 1) + value.length;\n } else if (value['_bsontype'] === 'Long' || value['_bsontype'] === 'Double' || value['_bsontype'] === 'Timestamp') {\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + (8 + 1);\n } else if (value['_bsontype'] === 'Decimal128') {\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + (16 + 1);\n } else if (value['_bsontype'] === 'Code') {\n // Calculate size depending on the availability of a scope\n if (value.scope != null && Object.keys(value.scope).length > 0) {\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + 1 + 4 + 4 + Buffer$6.byteLength(value.code.toString(), 'utf8') + 1 + calculateObjectSize(value.scope, serializeFunctions, ignoreUndefined);\n } else {\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + 1 + 4 + Buffer$6.byteLength(value.code.toString(), 'utf8') + 1;\n }\n } else if (value['_bsontype'] === 'Binary') {\n // Check what kind of subtype we have\n if (value.sub_type === binary.SUBTYPE_BYTE_ARRAY) {\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + (value.position + 1 + 4 + 1 + 4);\n } else {\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + (value.position + 1 + 4 + 1);\n }\n } else if (value['_bsontype'] === 'Symbol') {\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + Buffer$6.byteLength(value.value, 'utf8') + 4 + 1 + 1;\n } else if (value['_bsontype'] === 'DBRef') {\n // Set up correct object for serialization\n var ordered_values = Object.assign({\n $ref: value.collection,\n $id: value.oid\n }, value.fields); // Add db reference if it exists\n\n if (value.db != null) {\n ordered_values['$db'] = value.db;\n }\n\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + 1 + calculateObjectSize(ordered_values, serializeFunctions, ignoreUndefined);\n } else if (value instanceof RegExp || Object.prototype.toString.call(value) === '[object RegExp]') {\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + 1 + Buffer$6.byteLength(value.source, 'utf8') + 1 + (value.global ? 1 : 0) + (value.ignoreCase ? 1 : 0) + (value.multiline ? 1 : 0) + 1;\n } else if (value['_bsontype'] === 'BSONRegExp') {\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + 1 + Buffer$6.byteLength(value.pattern, 'utf8') + 1 + Buffer$6.byteLength(value.options, 'utf8') + 1;\n } else {\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + calculateObjectSize(value, serializeFunctions, ignoreUndefined) + 1;\n }\n\n case 'function':\n // WTF for 0.4.X where typeof /someregexp/ === 'function'\n if (value instanceof RegExp || Object.prototype.toString.call(value) === '[object RegExp]' || String.call(value) === '[object RegExp]') {\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + 1 + Buffer$6.byteLength(value.source, 'utf8') + 1 + (value.global ? 1 : 0) + (value.ignoreCase ? 1 : 0) + (value.multiline ? 1 : 0) + 1;\n } else {\n if (serializeFunctions && value.scope != null && Object.keys(value.scope).length > 0) {\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + 1 + 4 + 4 + Buffer$6.byteLength(normalizedFunctionString$2(value), 'utf8') + 1 + calculateObjectSize(value.scope, serializeFunctions, ignoreUndefined);\n } else if (serializeFunctions) {\n return (name != null ? Buffer$6.byteLength(name, 'utf8') + 1 : 0) + 1 + 4 + Buffer$6.byteLength(normalizedFunctionString$2(value), 'utf8') + 1;\n }\n }\n\n }\n\n return 0;\n}\n\nvar calculate_size = calculateObjectSize;\n\nvar Buffer$7 = buffer.Buffer;\n/**\n * Makes sure that, if a Uint8Array is passed in, it is wrapped in a Buffer.\n *\n * @param {Buffer|Uint8Array} potentialBuffer The potential buffer\n * @returns {Buffer} the input if potentialBuffer is a buffer, or a buffer that\n * wraps a passed in Uint8Array\n * @throws {TypeError} If anything other than a Buffer or Uint8Array is passed in\n */\n\nvar ensure_buffer = function ensureBuffer(potentialBuffer) {\n if (potentialBuffer instanceof Buffer$7) {\n return potentialBuffer;\n }\n\n if (potentialBuffer instanceof Uint8Array) {\n return Buffer$7.from(potentialBuffer.buffer);\n }\n\n throw new TypeError('Must use either Buffer or Uint8Array');\n};\n\nvar Buffer$8 = buffer.Buffer; // Parts of the parser\n\n/**\n * @ignore\n */\n// Default Max Size\n\nvar MAXSIZE = 1024 * 1024 * 17; // Current Internal Temporary Serialization Buffer\n\nvar buffer$1 = Buffer$8.alloc(MAXSIZE);\n/**\n * Sets the size of the internal serialization buffer.\n *\n * @method\n * @param {number} size The desired size for the internal serialization buffer\n */\n\nfunction setInternalBufferSize(size) {\n // Resize the internal serialization buffer if needed\n if (buffer$1.length < size) {\n buffer$1 = Buffer$8.alloc(size);\n }\n}\n/**\n * Serialize a Javascript object.\n *\n * @param {Object} object the Javascript object to serialize.\n * @param {Boolean} [options.checkKeys] the serializer will check if keys are valid.\n * @param {Boolean} [options.serializeFunctions=false] serialize the javascript functions **(default:false)**.\n * @param {Boolean} [options.ignoreUndefined=true] ignore undefined fields **(default:true)**.\n * @return {Buffer} returns the Buffer object containing the serialized object.\n */\n\n\nfunction serialize$1(object, options) {\n options = options || {}; // Unpack the options\n\n var checkKeys = typeof options.checkKeys === 'boolean' ? options.checkKeys : false;\n var serializeFunctions = typeof options.serializeFunctions === 'boolean' ? options.serializeFunctions : false;\n var ignoreUndefined = typeof options.ignoreUndefined === 'boolean' ? options.ignoreUndefined : true;\n var minInternalBufferSize = typeof options.minInternalBufferSize === 'number' ? options.minInternalBufferSize : MAXSIZE; // Resize the internal serialization buffer if needed\n\n if (buffer$1.length < minInternalBufferSize) {\n buffer$1 = Buffer$8.alloc(minInternalBufferSize);\n } // Attempt to serialize\n\n\n var serializationIndex = serializer(buffer$1, object, checkKeys, 0, 0, serializeFunctions, ignoreUndefined, []); // Create the final buffer\n\n var finishedBuffer = Buffer$8.alloc(serializationIndex); // Copy into the finished buffer\n\n buffer$1.copy(finishedBuffer, 0, 0, finishedBuffer.length); // Return the buffer\n\n return finishedBuffer;\n}\n/**\n * Serialize a Javascript object using a predefined Buffer and index into the buffer, useful when pre-allocating the space for serialization.\n *\n * @param {Object} object the Javascript object to serialize.\n * @param {Buffer} buffer the Buffer you pre-allocated to store the serialized BSON object.\n * @param {Boolean} [options.checkKeys] the serializer will check if keys are valid.\n * @param {Boolean} [options.serializeFunctions=false] serialize the javascript functions **(default:false)**.\n * @param {Boolean} [options.ignoreUndefined=true] ignore undefined fields **(default:true)**.\n * @param {Number} [options.index] the index in the buffer where we wish to start serializing into.\n * @return {Number} returns the index pointing to the last written byte in the buffer.\n */\n\n\nfunction serializeWithBufferAndIndex(object, finalBuffer, options) {\n options = options || {}; // Unpack the options\n\n var checkKeys = typeof options.checkKeys === 'boolean' ? options.checkKeys : false;\n var serializeFunctions = typeof options.serializeFunctions === 'boolean' ? options.serializeFunctions : false;\n var ignoreUndefined = typeof options.ignoreUndefined === 'boolean' ? options.ignoreUndefined : true;\n var startIndex = typeof options.index === 'number' ? options.index : 0; // Attempt to serialize\n\n var serializationIndex = serializer(buffer$1, object, checkKeys, 0, 0, serializeFunctions, ignoreUndefined);\n buffer$1.copy(finalBuffer, startIndex, 0, serializationIndex); // Return the index\n\n return startIndex + serializationIndex - 1;\n}\n/**\n * Deserialize data as BSON.\n *\n * @param {Buffer} buffer the buffer containing the serialized set of BSON documents.\n * @param {Object} [options.evalFunctions=false] evaluate functions in the BSON document scoped to the object deserialized.\n * @param {Object} [options.cacheFunctions=false] cache evaluated functions for reuse.\n * @param {Object} [options.cacheFunctionsCrc32=false] use a crc32 code for caching, otherwise use the string of the function.\n * @param {Object} [options.promoteLongs=true] when deserializing a Long will fit it into a Number if it's smaller than 53 bits\n * @param {Object} [options.promoteBuffers=false] when deserializing a Binary will return it as a node.js Buffer instance.\n * @param {Object} [options.promoteValues=false] when deserializing will promote BSON values to their Node.js closest equivalent types.\n * @param {Object} [options.fieldsAsRaw=null] allow to specify if there what fields we wish to return as unserialized raw buffer.\n * @param {Object} [options.bsonRegExp=false] return BSON regular expressions as BSONRegExp instances.\n * @param {boolean} [options.allowObjectSmallerThanBufferSize=false] allows the buffer to be larger than the parsed BSON object\n * @return {Object} returns the deserialized Javascript Object.\n */\n\n\nfunction deserialize$2(buffer$$1, options) {\n buffer$$1 = ensure_buffer(buffer$$1);\n return deserializer(buffer$$1, options);\n}\n/**\n * Calculate the bson size for a passed in Javascript object.\n *\n * @param {Object} object the Javascript object to calculate the BSON byte size for.\n * @param {Boolean} [options.serializeFunctions=false] serialize the javascript functions **(default:false)**.\n * @param {Boolean} [options.ignoreUndefined=true] ignore undefined fields **(default:true)**.\n * @return {Number} returns the number of bytes the BSON object will take up.\n */\n\n\nfunction calculateObjectSize$1(object, options) {\n options = options || {};\n var serializeFunctions = typeof options.serializeFunctions === 'boolean' ? options.serializeFunctions : false;\n var ignoreUndefined = typeof options.ignoreUndefined === 'boolean' ? options.ignoreUndefined : true;\n return calculate_size(object, serializeFunctions, ignoreUndefined);\n}\n/**\n * Deserialize stream data as BSON documents.\n *\n * @param {Buffer} data the buffer containing the serialized set of BSON documents.\n * @param {Number} startIndex the start index in the data Buffer where the deserialization is to start.\n * @param {Number} numberOfDocuments number of documents to deserialize.\n * @param {Array} documents an array where to store the deserialized documents.\n * @param {Number} docStartIndex the index in the documents array from where to start inserting documents.\n * @param {Object} [options] additional options used for the deserialization.\n * @param {Object} [options.evalFunctions=false] evaluate functions in the BSON document scoped to the object deserialized.\n * @param {Object} [options.cacheFunctions=false] cache evaluated functions for reuse.\n * @param {Object} [options.cacheFunctionsCrc32=false] use a crc32 code for caching, otherwise use the string of the function.\n * @param {Object} [options.promoteLongs=true] when deserializing a Long will fit it into a Number if it's smaller than 53 bits\n * @param {Object} [options.promoteBuffers=false] when deserializing a Binary will return it as a node.js Buffer instance.\n * @param {Object} [options.promoteValues=false] when deserializing will promote BSON values to their Node.js closest equivalent types.\n * @param {Object} [options.fieldsAsRaw=null] allow to specify if there what fields we wish to return as unserialized raw buffer.\n * @param {Object} [options.bsonRegExp=false] return BSON regular expressions as BSONRegExp instances.\n * @return {Number} returns the next index in the buffer after deserialization **x** numbers of documents.\n */\n\n\nfunction deserializeStream(data, startIndex, numberOfDocuments, documents, docStartIndex, options) {\n options = Object.assign({\n allowObjectSmallerThanBufferSize: true\n }, options);\n data = ensure_buffer(data);\n var index = startIndex; // Loop over all documents\n\n for (var i = 0; i < numberOfDocuments; i++) {\n // Find size of the document\n var size = data[index] | data[index + 1] << 8 | data[index + 2] << 16 | data[index + 3] << 24; // Update options with index\n\n options.index = index; // Parse the document at this point\n\n documents[docStartIndex + i] = deserializer(data, options); // Adjust index by the document size\n\n index = index + size;\n } // Return object containing end index of parsing and list of documents\n\n\n return index;\n}\n\nvar bson = {\n // constants\n // NOTE: this is done this way because rollup can't resolve an `Object.assign`ed export\n BSON_INT32_MAX: constants.BSON_INT32_MAX,\n BSON_INT32_MIN: constants.BSON_INT32_MIN,\n BSON_INT64_MAX: constants.BSON_INT64_MAX,\n BSON_INT64_MIN: constants.BSON_INT64_MIN,\n JS_INT_MAX: constants.JS_INT_MAX,\n JS_INT_MIN: constants.JS_INT_MIN,\n BSON_DATA_NUMBER: constants.BSON_DATA_NUMBER,\n BSON_DATA_STRING: constants.BSON_DATA_STRING,\n BSON_DATA_OBJECT: constants.BSON_DATA_OBJECT,\n BSON_DATA_ARRAY: constants.BSON_DATA_ARRAY,\n BSON_DATA_BINARY: constants.BSON_DATA_BINARY,\n BSON_DATA_UNDEFINED: constants.BSON_DATA_UNDEFINED,\n BSON_DATA_OID: constants.BSON_DATA_OID,\n BSON_DATA_BOOLEAN: constants.BSON_DATA_BOOLEAN,\n BSON_DATA_DATE: constants.BSON_DATA_DATE,\n BSON_DATA_NULL: constants.BSON_DATA_NULL,\n BSON_DATA_REGEXP: constants.BSON_DATA_REGEXP,\n BSON_DATA_DBPOINTER: constants.BSON_DATA_DBPOINTER,\n BSON_DATA_CODE: constants.BSON_DATA_CODE,\n BSON_DATA_SYMBOL: constants.BSON_DATA_SYMBOL,\n BSON_DATA_CODE_W_SCOPE: constants.BSON_DATA_CODE_W_SCOPE,\n BSON_DATA_INT: constants.BSON_DATA_INT,\n BSON_DATA_TIMESTAMP: constants.BSON_DATA_TIMESTAMP,\n BSON_DATA_LONG: constants.BSON_DATA_LONG,\n BSON_DATA_DECIMAL128: constants.BSON_DATA_DECIMAL128,\n BSON_DATA_MIN_KEY: constants.BSON_DATA_MIN_KEY,\n BSON_DATA_MAX_KEY: constants.BSON_DATA_MAX_KEY,\n BSON_BINARY_SUBTYPE_DEFAULT: constants.BSON_BINARY_SUBTYPE_DEFAULT,\n BSON_BINARY_SUBTYPE_FUNCTION: constants.BSON_BINARY_SUBTYPE_FUNCTION,\n BSON_BINARY_SUBTYPE_BYTE_ARRAY: constants.BSON_BINARY_SUBTYPE_BYTE_ARRAY,\n BSON_BINARY_SUBTYPE_UUID: constants.BSON_BINARY_SUBTYPE_UUID,\n BSON_BINARY_SUBTYPE_MD5: constants.BSON_BINARY_SUBTYPE_MD5,\n BSON_BINARY_SUBTYPE_USER_DEFINED: constants.BSON_BINARY_SUBTYPE_USER_DEFINED,\n // wrapped types\n Code: code,\n Map: map,\n BSONSymbol: symbol,\n DBRef: db_ref,\n Binary: binary,\n ObjectId: objectid,\n Long: long_1,\n Timestamp: timestamp,\n Double: double_1,\n Int32: int_32,\n MinKey: min_key,\n MaxKey: max_key,\n BSONRegExp: regexp,\n Decimal128: decimal128,\n // methods\n serialize: serialize$1,\n serializeWithBufferAndIndex: serializeWithBufferAndIndex,\n deserialize: deserialize$2,\n calculateObjectSize: calculateObjectSize$1,\n deserializeStream: deserializeStream,\n setInternalBufferSize: setInternalBufferSize,\n // legacy support\n ObjectID: objectid,\n // Extended JSON\n EJSON: extended_json\n};\nvar bson_1 = bson.BSON_INT32_MAX;\nvar bson_2 = bson.BSON_INT32_MIN;\nvar bson_3 = bson.BSON_INT64_MAX;\nvar bson_4 = bson.BSON_INT64_MIN;\nvar bson_5 = bson.JS_INT_MAX;\nvar bson_6 = bson.JS_INT_MIN;\nvar bson_7 = bson.BSON_DATA_NUMBER;\nvar bson_8 = bson.BSON_DATA_STRING;\nvar bson_9 = bson.BSON_DATA_OBJECT;\nvar bson_10 = bson.BSON_DATA_ARRAY;\nvar bson_11 = bson.BSON_DATA_BINARY;\nvar bson_12 = bson.BSON_DATA_UNDEFINED;\nvar bson_13 = bson.BSON_DATA_OID;\nvar bson_14 = bson.BSON_DATA_BOOLEAN;\nvar bson_15 = bson.BSON_DATA_DATE;\nvar bson_16 = bson.BSON_DATA_NULL;\nvar bson_17 = bson.BSON_DATA_REGEXP;\nvar bson_18 = bson.BSON_DATA_DBPOINTER;\nvar bson_19 = bson.BSON_DATA_CODE;\nvar bson_20 = bson.BSON_DATA_SYMBOL;\nvar bson_21 = bson.BSON_DATA_CODE_W_SCOPE;\nvar bson_22 = bson.BSON_DATA_INT;\nvar bson_23 = bson.BSON_DATA_TIMESTAMP;\nvar bson_24 = bson.BSON_DATA_LONG;\nvar bson_25 = bson.BSON_DATA_DECIMAL128;\nvar bson_26 = bson.BSON_DATA_MIN_KEY;\nvar bson_27 = bson.BSON_DATA_MAX_KEY;\nvar bson_28 = bson.BSON_BINARY_SUBTYPE_DEFAULT;\nvar bson_29 = bson.BSON_BINARY_SUBTYPE_FUNCTION;\nvar bson_30 = bson.BSON_BINARY_SUBTYPE_BYTE_ARRAY;\nvar bson_31 = bson.BSON_BINARY_SUBTYPE_UUID;\nvar bson_32 = bson.BSON_BINARY_SUBTYPE_MD5;\nvar bson_33 = bson.BSON_BINARY_SUBTYPE_USER_DEFINED;\nvar bson_34 = bson.Code;\nvar bson_35 = bson.BSONSymbol;\nvar bson_36 = bson.DBRef;\nvar bson_37 = bson.Binary;\nvar bson_38 = bson.ObjectId;\nvar bson_39 = bson.Long;\nvar bson_40 = bson.Timestamp;\nvar bson_41 = bson.Double;\nvar bson_42 = bson.Int32;\nvar bson_43 = bson.MinKey;\nvar bson_44 = bson.MaxKey;\nvar bson_45 = bson.BSONRegExp;\nvar bson_46 = bson.Decimal128;\nvar bson_47 = bson.serialize;\nvar bson_48 = bson.serializeWithBufferAndIndex;\nvar bson_49 = bson.deserialize;\nvar bson_50 = bson.calculateObjectSize;\nvar bson_51 = bson.deserializeStream;\nvar bson_52 = bson.setInternalBufferSize;\nvar bson_53 = bson.ObjectID;\nvar bson_54 = bson.EJSON;\n\nexport default bson;\nexport { bson_1 as BSON_INT32_MAX, bson_2 as BSON_INT32_MIN, bson_3 as BSON_INT64_MAX, bson_4 as BSON_INT64_MIN, bson_5 as JS_INT_MAX, bson_6 as JS_INT_MIN, bson_7 as BSON_DATA_NUMBER, bson_8 as BSON_DATA_STRING, bson_9 as BSON_DATA_OBJECT, bson_10 as BSON_DATA_ARRAY, bson_11 as BSON_DATA_BINARY, bson_12 as BSON_DATA_UNDEFINED, bson_13 as BSON_DATA_OID, bson_14 as BSON_DATA_BOOLEAN, bson_15 as BSON_DATA_DATE, bson_16 as BSON_DATA_NULL, bson_17 as BSON_DATA_REGEXP, bson_18 as BSON_DATA_DBPOINTER, bson_19 as BSON_DATA_CODE, bson_20 as BSON_DATA_SYMBOL, bson_21 as BSON_DATA_CODE_W_SCOPE, bson_22 as BSON_DATA_INT, bson_23 as BSON_DATA_TIMESTAMP, bson_24 as BSON_DATA_LONG, bson_25 as BSON_DATA_DECIMAL128, bson_26 as BSON_DATA_MIN_KEY, bson_27 as BSON_DATA_MAX_KEY, bson_28 as BSON_BINARY_SUBTYPE_DEFAULT, bson_29 as BSON_BINARY_SUBTYPE_FUNCTION, bson_30 as BSON_BINARY_SUBTYPE_BYTE_ARRAY, bson_31 as BSON_BINARY_SUBTYPE_UUID, bson_32 as BSON_BINARY_SUBTYPE_MD5, bson_33 as BSON_BINARY_SUBTYPE_USER_DEFINED, bson_34 as Code, bson_35 as BSONSymbol, bson_36 as DBRef, bson_37 as Binary, bson_38 as ObjectId, bson_39 as Long, bson_40 as Timestamp, bson_41 as Double, bson_42 as Int32, bson_43 as MinKey, bson_44 as MaxKey, bson_45 as BSONRegExp, bson_46 as Decimal128, bson_47 as serialize, bson_48 as serializeWithBufferAndIndex, bson_49 as deserialize, bson_50 as calculateObjectSize, bson_51 as deserializeStream, bson_52 as setInternalBufferSize, bson_53 as ObjectID, bson_54 as EJSON };\n"],"names":[],"sourceRoot":""}