@tapni/auth 0.0.156 → 0.0.158

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
- "_install-HnJgkMHx.js": {
3
- "file": "install-HnJgkMHx.js",
2
+ "_install-FKOGFQEK.js": {
3
+ "file": "install-FKOGFQEK.js",
4
4
  "dynamicImports": [
5
5
  "src/views/Account.vue",
6
6
  "src/views/QR.vue",
@@ -36,19 +36,19 @@
36
36
  "isEntry": true
37
37
  },
38
38
  "src/views/Account.vue": {
39
- "file": "Account-gL0FSIxc.js",
39
+ "file": "Account-9gRJi_gS.js",
40
40
  "src": "src/views/Account.vue",
41
41
  "isDynamicEntry": true,
42
42
  "imports": [
43
- "_install-HnJgkMHx.js"
43
+ "_install-FKOGFQEK.js"
44
44
  ]
45
45
  },
46
46
  "src/views/QR.vue": {
47
- "file": "QR-SuxiYcMd.js",
47
+ "file": "QR-usDlkdAk.js",
48
48
  "src": "src/views/QR.vue",
49
49
  "isDynamicEntry": true,
50
50
  "imports": [
51
- "_install-HnJgkMHx.js"
51
+ "_install-FKOGFQEK.js"
52
52
  ]
53
53
  },
54
54
  "style.css": {
@@ -1,4 +1,4 @@
1
- import { _ as l, A as d, E as r } from "./install-HnJgkMHx.js";
1
+ import { _ as l, A as d, E as r } from "./install-FKOGFQEK.js";
2
2
  import { openBlock as g, createElementBlock as p, createElementVNode as t, toDisplayString as i, createCommentVNode as a, pushScopeId as _, popScopeId as u } from "vue";
3
3
  var h = { VITE_APP_MODE: "npm", VITE_APP_APP_ROOT: "https://t.link", VITE_APP_API_ROOT: "https://api.tapni.co", VITE_APP_GOOGLE_RECAPTCHA_SITE_KEY: "6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk", VITE_APP_SSO_ID: "9cd47053-080a-4df8-8fd8-ca4389163fde", VITE_APP_POPUP_LOGIN_ALLOWED_ORIGIN: "https://auth.tapni.com", BASE_URL: "/", MODE: "production", DEV: !1, PROD: !0, SSR: !1 };
4
4
  const m = {
@@ -1,4 +1,4 @@
1
- import { _ as s, A as a, Q as i } from "./install-HnJgkMHx.js";
1
+ import { _ as s, A as a, Q as i } from "./install-FKOGFQEK.js";
2
2
  import { resolveComponent as l, openBlock as _, createElementBlock as r, createElementVNode as n, toDisplayString as o, createVNode as d, withCtx as u, createTextVNode as p } from "vue";
3
3
  const g = {
4
4
  name: "AuthQR",
@@ -1,4 +1,4 @@
1
- import { i as f } from "./install-HnJgkMHx.js";
1
+ import { i as f } from "./install-FKOGFQEK.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
5
5
  * @license MIT
6
- */(function(n){const e=$n,t=Tr,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=u,n.SlowBuffer=q,n.INSPECT_MAX_BYTES=50;const o=2147483647;n.kMaxLength=o;const{Uint8Array:i,ArrayBuffer:a,SharedArrayBuffer:c}=globalThis;u.TYPED_ARRAY_SUPPORT=d(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d(){try{const m=new i(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,i.prototype),Object.setPrototypeOf(m,l),m.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function h(m){if(m>o)throw new RangeError('The value "'+m+'" is invalid for option "size"');const l=new i(m);return Object.setPrototypeOf(l,u.prototype),l}function u(m,l,p){if(typeof m=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return E(m)}return g(m,l,p)}u.poolSize=8192;function g(m,l,p){if(typeof m=="string")return N(m,l);if(a.isView(m))return D(m);if(m==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m);if(Pe(m,a)||m&&Pe(m.buffer,a)||typeof c<"u"&&(Pe(m,c)||m&&Pe(m.buffer,c)))return R(m,l,p);if(typeof m=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const _=m.valueOf&&m.valueOf();if(_!=null&&_!==m)return u.from(_,l,p);const w=T(m);if(w)return w;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof m[Symbol.toPrimitive]=="function")return u.from(m[Symbol.toPrimitive]("string"),l,p);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m)}u.from=function(m,l,p){return g(m,l,p)},Object.setPrototypeOf(u.prototype,i.prototype),Object.setPrototypeOf(u,i);function f(m){if(typeof m!="number")throw new TypeError('"size" argument must be of type number');if(m<0)throw new RangeError('The value "'+m+'" is invalid for option "size"')}function b(m,l,p){return f(m),m<=0?h(m):l!==void 0?typeof p=="string"?h(m).fill(l,p):h(m).fill(l):h(m)}u.alloc=function(m,l,p){return b(m,l,p)};function E(m){return f(m),h(m<0?0:x(m)|0)}u.allocUnsafe=function(m){return E(m)},u.allocUnsafeSlow=function(m){return E(m)};function N(m,l){if((typeof l!="string"||l==="")&&(l="utf8"),!u.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const p=Y(m,l)|0;let _=h(p);const w=_.write(m,l);return w!==p&&(_=_.slice(0,w)),_}function M(m){const l=m.length<0?0:x(m.length)|0,p=h(l);for(let _=0;_<l;_+=1)p[_]=m[_]&255;return p}function D(m){if(Pe(m,i)){const l=new i(m);return R(l.buffer,l.byteOffset,l.byteLength)}return M(m)}function R(m,l,p){if(l<0||m.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(m.byteLength<l+(p||0))throw new RangeError('"length" is outside of buffer bounds');let _;return l===void 0&&p===void 0?_=new i(m):p===void 0?_=new i(m,l):_=new i(m,l,p),Object.setPrototypeOf(_,u.prototype),_}function T(m){if(u.isBuffer(m)){const l=x(m.length)|0,p=h(l);return p.length===0||m.copy(p,0,0,l),p}if(m.length!==void 0)return typeof m.length!="number"||st(m.length)?h(0):M(m);if(m.type==="Buffer"&&Array.isArray(m.data))return M(m.data)}function x(m){if(m>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return m|0}function q(m){return+m!=m&&(m=0),u.alloc(+m)}u.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==u.prototype},u.compare=function(l,p){if(Pe(l,i)&&(l=u.from(l,l.offset,l.byteLength)),Pe(p,i)&&(p=u.from(p,p.offset,p.byteLength)),!u.isBuffer(l)||!u.isBuffer(p))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===p)return 0;let _=l.length,w=p.length;for(let S=0,P=Math.min(_,w);S<P;++S)if(l[S]!==p[S]){_=l[S],w=p[S];break}return _<w?-1:w<_?1:0},u.isEncoding=function(l){switch(String(l).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(l,p){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return u.alloc(0);let _;if(p===void 0)for(p=0,_=0;_<l.length;++_)p+=l[_].length;const w=u.allocUnsafe(p);let S=0;for(_=0;_<l.length;++_){let P=l[_];if(Pe(P,i))S+P.length>w.length?(u.isBuffer(P)||(P=u.from(P)),P.copy(w,S)):i.prototype.set.call(w,P,S);else if(u.isBuffer(P))P.copy(w,S);else throw new TypeError('"list" argument must be an Array of Buffers');S+=P.length}return w};function Y(m,l){if(u.isBuffer(m))return m.length;if(a.isView(m)||Pe(m,a))return m.byteLength;if(typeof m!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof m);const p=m.length,_=arguments.length>2&&arguments[2]===!0;if(!_&&p===0)return 0;let w=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return ht(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p*2;case"hex":return p>>>1;case"base64":return Be(m).length;default:if(w)return _?-1:ht(m).length;l=(""+l).toLowerCase(),w=!0}}u.byteLength=Y;function J(m,l,p){let _=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,l>>>=0,p<=l))return"";for(m||(m="utf8");;)switch(m){case"hex":return tn(this,l,p);case"utf8":case"utf-8":return Pt(this,l,p);case"ascii":return en(this,l,p);case"latin1":case"binary":return mn(this,l,p);case"base64":return Nt(this,l,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Nn(this,l,p);default:if(_)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),_=!0}}u.prototype._isBuffer=!0;function $(m,l,p){const _=m[l];m[l]=m[p],m[p]=_}u.prototype.swap16=function(){const l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let p=0;p<l;p+=2)$(this,p,p+1);return this},u.prototype.swap32=function(){const l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let p=0;p<l;p+=4)$(this,p,p+3),$(this,p+1,p+2);return this},u.prototype.swap64=function(){const l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let p=0;p<l;p+=8)$(this,p,p+7),$(this,p+1,p+6),$(this,p+2,p+5),$(this,p+3,p+4);return this},u.prototype.toString=function(){const l=this.length;return l===0?"":arguments.length===0?Pt(this,0,l):J.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(l){if(!u.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:u.compare(this,l)===0},u.prototype.inspect=function(){let l="";const p=n.INSPECT_MAX_BYTES;return l=this.toString("hex",0,p).replace(/(.{2})/g,"$1 ").trim(),this.length>p&&(l+=" ... "),"<Buffer "+l+">"},r&&(u.prototype[r]=u.prototype.inspect),u.prototype.compare=function(l,p,_,w,S){if(Pe(l,i)&&(l=u.from(l,l.offset,l.byteLength)),!u.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(p===void 0&&(p=0),_===void 0&&(_=l?l.length:0),w===void 0&&(w=0),S===void 0&&(S=this.length),p<0||_>l.length||w<0||S>this.length)throw new RangeError("out of range index");if(w>=S&&p>=_)return 0;if(w>=S)return-1;if(p>=_)return 1;if(p>>>=0,_>>>=0,w>>>=0,S>>>=0,this===l)return 0;let P=S-w,oe=_-p;const _e=Math.min(P,oe),ge=this.slice(w,S),ye=l.slice(p,_);for(let he=0;he<_e;++he)if(ge[he]!==ye[he]){P=ge[he],oe=ye[he];break}return P<oe?-1:oe<P?1:0};function ie(m,l,p,_,w){if(m.length===0)return-1;if(typeof p=="string"?(_=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),p=+p,st(p)&&(p=w?0:m.length-1),p<0&&(p=m.length+p),p>=m.length){if(w)return-1;p=m.length-1}else if(p<0)if(w)p=0;else return-1;if(typeof l=="string"&&(l=u.from(l,_)),u.isBuffer(l))return l.length===0?-1:ce(m,l,p,_,w);if(typeof l=="number")return l=l&255,typeof i.prototype.indexOf=="function"?w?i.prototype.indexOf.call(m,l,p):i.prototype.lastIndexOf.call(m,l,p):ce(m,[l],p,_,w);throw new TypeError("val must be string, number or Buffer")}function ce(m,l,p,_,w){let S=1,P=m.length,oe=l.length;if(_!==void 0&&(_=String(_).toLowerCase(),_==="ucs2"||_==="ucs-2"||_==="utf16le"||_==="utf-16le")){if(m.length<2||l.length<2)return-1;S=2,P/=2,oe/=2,p/=2}function _e(ye,he){return S===1?ye[he]:ye.readUInt16BE(he*S)}let ge;if(w){let ye=-1;for(ge=p;ge<P;ge++)if(_e(m,ge)===_e(l,ye===-1?0:ge-ye)){if(ye===-1&&(ye=ge),ge-ye+1===oe)return ye*S}else ye!==-1&&(ge-=ge-ye),ye=-1}else for(p+oe>P&&(p=P-oe),ge=p;ge>=0;ge--){let ye=!0;for(let he=0;he<oe;he++)if(_e(m,ge+he)!==_e(l,he)){ye=!1;break}if(ye)return ge}return-1}u.prototype.includes=function(l,p,_){return this.indexOf(l,p,_)!==-1},u.prototype.indexOf=function(l,p,_){return ie(this,l,p,_,!0)},u.prototype.lastIndexOf=function(l,p,_){return ie(this,l,p,_,!1)};function fe(m,l,p,_){p=Number(p)||0;const w=m.length-p;_?(_=Number(_),_>w&&(_=w)):_=w;const S=l.length;_>S/2&&(_=S/2);let P;for(P=0;P<_;++P){const oe=parseInt(l.substr(P*2,2),16);if(st(oe))return P;m[p+P]=oe}return P}function Ie(m,l,p,_){return mt(ht(l,m.length-p),m,p,_)}function Gt(m,l,p,_){return mt(fn(l),m,p,_)}function Ve(m,l,p,_){return mt(Be(l),m,p,_)}function Zt(m,l,p,_){return mt(kt(l,m.length-p),m,p,_)}u.prototype.write=function(l,p,_,w){if(p===void 0)w="utf8",_=this.length,p=0;else if(_===void 0&&typeof p=="string")w=p,_=this.length,p=0;else if(isFinite(p))p=p>>>0,isFinite(_)?(_=_>>>0,w===void 0&&(w="utf8")):(w=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const S=this.length-p;if((_===void 0||_>S)&&(_=S),l.length>0&&(_<0||p<0)||p>this.length)throw new RangeError("Attempt to write outside buffer bounds");w||(w="utf8");let P=!1;for(;;)switch(w){case"hex":return fe(this,l,p,_);case"utf8":case"utf-8":return Ie(this,l,p,_);case"ascii":case"latin1":case"binary":return Gt(this,l,p,_);case"base64":return Ve(this,l,p,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zt(this,l,p,_);default:if(P)throw new TypeError("Unknown encoding: "+w);w=(""+w).toLowerCase(),P=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Nt(m,l,p){return l===0&&p===m.length?e.fromByteArray(m):e.fromByteArray(m.slice(l,p))}function Pt(m,l,p){p=Math.min(m.length,p);const _=[];let w=l;for(;w<p;){const S=m[w];let P=null,oe=S>239?4:S>223?3:S>191?2:1;if(w+oe<=p){let _e,ge,ye,he;switch(oe){case 1:S<128&&(P=S);break;case 2:_e=m[w+1],(_e&192)===128&&(he=(S&31)<<6|_e&63,he>127&&(P=he));break;case 3:_e=m[w+1],ge=m[w+2],(_e&192)===128&&(ge&192)===128&&(he=(S&15)<<12|(_e&63)<<6|ge&63,he>2047&&(he<55296||he>57343)&&(P=he));break;case 4:_e=m[w+1],ge=m[w+2],ye=m[w+3],(_e&192)===128&&(ge&192)===128&&(ye&192)===128&&(he=(S&15)<<18|(_e&63)<<12|(ge&63)<<6|ye&63,he>65535&&he<1114112&&(P=he))}}P===null?(P=65533,oe=1):P>65535&&(P-=65536,_.push(P>>>10&1023|55296),P=56320|P&1023),_.push(P),w+=oe}return hn(_)}const ot=4096;function hn(m){const l=m.length;if(l<=ot)return String.fromCharCode.apply(String,m);let p="",_=0;for(;_<l;)p+=String.fromCharCode.apply(String,m.slice(_,_+=ot));return p}function en(m,l,p){let _="";p=Math.min(m.length,p);for(let w=l;w<p;++w)_+=String.fromCharCode(m[w]&127);return _}function mn(m,l,p){let _="";p=Math.min(m.length,p);for(let w=l;w<p;++w)_+=String.fromCharCode(m[w]);return _}function tn(m,l,p){const _=m.length;(!l||l<0)&&(l=0),(!p||p<0||p>_)&&(p=_);let w="";for(let S=l;S<p;++S)w+=gn[m[S]];return w}function Nn(m,l,p){const _=m.slice(l,p);let w="";for(let S=0;S<_.length-1;S+=2)w+=String.fromCharCode(_[S]+_[S+1]*256);return w}u.prototype.slice=function(l,p){const _=this.length;l=~~l,p=p===void 0?_:~~p,l<0?(l+=_,l<0&&(l=0)):l>_&&(l=_),p<0?(p+=_,p<0&&(p=0)):p>_&&(p=_),p<l&&(p=l);const w=this.subarray(l,p);return Object.setPrototypeOf(w,u.prototype),w};function we(m,l,p){if(m%1!==0||m<0)throw new RangeError("offset is not uint");if(m+l>p)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(l,p,_){l=l>>>0,p=p>>>0,_||we(l,p,this.length);let w=this[l],S=1,P=0;for(;++P<p&&(S*=256);)w+=this[l+P]*S;return w},u.prototype.readUintBE=u.prototype.readUIntBE=function(l,p,_){l=l>>>0,p=p>>>0,_||we(l,p,this.length);let w=this[l+--p],S=1;for(;p>0&&(S*=256);)w+=this[l+--p]*S;return w},u.prototype.readUint8=u.prototype.readUInt8=function(l,p){return l=l>>>0,p||we(l,1,this.length),this[l]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(l,p){return l=l>>>0,p||we(l,2,this.length),this[l]|this[l+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(l,p){return l=l>>>0,p||we(l,2,this.length),this[l]<<8|this[l+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(l,p){return l=l>>>0,p||we(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(l,p){return l=l>>>0,p||we(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},u.prototype.readBigUInt64LE=Ue(function(l){l=l>>>0,Te(l,"offset");const p=this[l],_=this[l+7];(p===void 0||_===void 0)&&at(l,this.length-8);const w=p+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,S=this[++l]+this[++l]*2**8+this[++l]*2**16+_*2**24;return BigInt(w)+(BigInt(S)<<BigInt(32))}),u.prototype.readBigUInt64BE=Ue(function(l){l=l>>>0,Te(l,"offset");const p=this[l],_=this[l+7];(p===void 0||_===void 0)&&at(l,this.length-8);const w=p*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],S=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+_;return(BigInt(w)<<BigInt(32))+BigInt(S)}),u.prototype.readIntLE=function(l,p,_){l=l>>>0,p=p>>>0,_||we(l,p,this.length);let w=this[l],S=1,P=0;for(;++P<p&&(S*=256);)w+=this[l+P]*S;return S*=128,w>=S&&(w-=Math.pow(2,8*p)),w},u.prototype.readIntBE=function(l,p,_){l=l>>>0,p=p>>>0,_||we(l,p,this.length);let w=p,S=1,P=this[l+--w];for(;w>0&&(S*=256);)P+=this[l+--w]*S;return S*=128,P>=S&&(P-=Math.pow(2,8*p)),P},u.prototype.readInt8=function(l,p){return l=l>>>0,p||we(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},u.prototype.readInt16LE=function(l,p){l=l>>>0,p||we(l,2,this.length);const _=this[l]|this[l+1]<<8;return _&32768?_|4294901760:_},u.prototype.readInt16BE=function(l,p){l=l>>>0,p||we(l,2,this.length);const _=this[l+1]|this[l]<<8;return _&32768?_|4294901760:_},u.prototype.readInt32LE=function(l,p){return l=l>>>0,p||we(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},u.prototype.readInt32BE=function(l,p){return l=l>>>0,p||we(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},u.prototype.readBigInt64LE=Ue(function(l){l=l>>>0,Te(l,"offset");const p=this[l],_=this[l+7];(p===void 0||_===void 0)&&at(l,this.length-8);const w=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(_<<24);return(BigInt(w)<<BigInt(32))+BigInt(p+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24)}),u.prototype.readBigInt64BE=Ue(function(l){l=l>>>0,Te(l,"offset");const p=this[l],_=this[l+7];(p===void 0||_===void 0)&&at(l,this.length-8);const w=(p<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(w)<<BigInt(32))+BigInt(this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+_)}),u.prototype.readFloatLE=function(l,p){return l=l>>>0,p||we(l,4,this.length),t.read(this,l,!0,23,4)},u.prototype.readFloatBE=function(l,p){return l=l>>>0,p||we(l,4,this.length),t.read(this,l,!1,23,4)},u.prototype.readDoubleLE=function(l,p){return l=l>>>0,p||we(l,8,this.length),t.read(this,l,!0,52,8)},u.prototype.readDoubleBE=function(l,p){return l=l>>>0,p||we(l,8,this.length),t.read(this,l,!1,52,8)};function Ce(m,l,p,_,w,S){if(!u.isBuffer(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>w||l<S)throw new RangeError('"value" argument is out of bounds');if(p+_>m.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(l,p,_,w){if(l=+l,p=p>>>0,_=_>>>0,!w){const oe=Math.pow(2,8*_)-1;Ce(this,l,p,_,oe,0)}let S=1,P=0;for(this[p]=l&255;++P<_&&(S*=256);)this[p+P]=l/S&255;return p+_},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(l,p,_,w){if(l=+l,p=p>>>0,_=_>>>0,!w){const oe=Math.pow(2,8*_)-1;Ce(this,l,p,_,oe,0)}let S=_-1,P=1;for(this[p+S]=l&255;--S>=0&&(P*=256);)this[p+S]=l/P&255;return p+_},u.prototype.writeUint8=u.prototype.writeUInt8=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,1,255,0),this[p]=l&255,p+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,2,65535,0),this[p]=l&255,this[p+1]=l>>>8,p+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,2,65535,0),this[p]=l>>>8,this[p+1]=l&255,p+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,4,4294967295,0),this[p+3]=l>>>24,this[p+2]=l>>>16,this[p+1]=l>>>8,this[p]=l&255,p+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,4,4294967295,0),this[p]=l>>>24,this[p+1]=l>>>16,this[p+2]=l>>>8,this[p+3]=l&255,p+4};function Qt(m,l,p,_,w){Ke(l,_,w,m,p,7);let S=Number(l&BigInt(4294967295));m[p++]=S,S=S>>8,m[p++]=S,S=S>>8,m[p++]=S,S=S>>8,m[p++]=S;let P=Number(l>>BigInt(32)&BigInt(4294967295));return m[p++]=P,P=P>>8,m[p++]=P,P=P>>8,m[p++]=P,P=P>>8,m[p++]=P,p}function xe(m,l,p,_,w){Ke(l,_,w,m,p,7);let S=Number(l&BigInt(4294967295));m[p+7]=S,S=S>>8,m[p+6]=S,S=S>>8,m[p+5]=S,S=S>>8,m[p+4]=S;let P=Number(l>>BigInt(32)&BigInt(4294967295));return m[p+3]=P,P=P>>8,m[p+2]=P,P=P>>8,m[p+1]=P,P=P>>8,m[p]=P,p+8}u.prototype.writeBigUInt64LE=Ue(function(l,p=0){return Qt(this,l,p,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=Ue(function(l,p=0){return xe(this,l,p,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(l,p,_,w){if(l=+l,p=p>>>0,!w){const _e=Math.pow(2,8*_-1);Ce(this,l,p,_,_e-1,-_e)}let S=0,P=1,oe=0;for(this[p]=l&255;++S<_&&(P*=256);)l<0&&oe===0&&this[p+S-1]!==0&&(oe=1),this[p+S]=(l/P>>0)-oe&255;return p+_},u.prototype.writeIntBE=function(l,p,_,w){if(l=+l,p=p>>>0,!w){const _e=Math.pow(2,8*_-1);Ce(this,l,p,_,_e-1,-_e)}let S=_-1,P=1,oe=0;for(this[p+S]=l&255;--S>=0&&(P*=256);)l<0&&oe===0&&this[p+S+1]!==0&&(oe=1),this[p+S]=(l/P>>0)-oe&255;return p+_},u.prototype.writeInt8=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,1,127,-128),l<0&&(l=255+l+1),this[p]=l&255,p+1},u.prototype.writeInt16LE=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,2,32767,-32768),this[p]=l&255,this[p+1]=l>>>8,p+2},u.prototype.writeInt16BE=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,2,32767,-32768),this[p]=l>>>8,this[p+1]=l&255,p+2},u.prototype.writeInt32LE=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,4,2147483647,-2147483648),this[p]=l&255,this[p+1]=l>>>8,this[p+2]=l>>>16,this[p+3]=l>>>24,p+4},u.prototype.writeInt32BE=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[p]=l>>>24,this[p+1]=l>>>16,this[p+2]=l>>>8,this[p+3]=l&255,p+4},u.prototype.writeBigInt64LE=Ue(function(l,p=0){return Qt(this,l,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=Ue(function(l,p=0){return xe(this,l,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ne(m,l,p,_,w,S){if(p+_>m.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function Mt(m,l,p,_,w){return l=+l,p=p>>>0,w||Ne(m,l,p,4),t.write(m,l,p,_,23,4),p+4}u.prototype.writeFloatLE=function(l,p,_){return Mt(this,l,p,!0,_)},u.prototype.writeFloatBE=function(l,p,_){return Mt(this,l,p,!1,_)};function vt(m,l,p,_,w){return l=+l,p=p>>>0,w||Ne(m,l,p,8),t.write(m,l,p,_,52,8),p+8}u.prototype.writeDoubleLE=function(l,p,_){return vt(this,l,p,!0,_)},u.prototype.writeDoubleBE=function(l,p,_){return vt(this,l,p,!1,_)},u.prototype.copy=function(l,p,_,w){if(!u.isBuffer(l))throw new TypeError("argument should be a Buffer");if(_||(_=0),!w&&w!==0&&(w=this.length),p>=l.length&&(p=l.length),p||(p=0),w>0&&w<_&&(w=_),w===_||l.length===0||this.length===0)return 0;if(p<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("sourceEnd out of bounds");w>this.length&&(w=this.length),l.length-p<w-_&&(w=l.length-p+_);const S=w-_;return this===l&&typeof i.prototype.copyWithin=="function"?this.copyWithin(p,_,w):i.prototype.set.call(l,this.subarray(_,w),p),S},u.prototype.fill=function(l,p,_,w){if(typeof l=="string"){if(typeof p=="string"?(w=p,p=0,_=this.length):typeof _=="string"&&(w=_,_=this.length),w!==void 0&&typeof w!="string")throw new TypeError("encoding must be a string");if(typeof w=="string"&&!u.isEncoding(w))throw new TypeError("Unknown encoding: "+w);if(l.length===1){const P=l.charCodeAt(0);(w==="utf8"&&P<128||w==="latin1")&&(l=P)}}else typeof l=="number"?l=l&255:typeof l=="boolean"&&(l=Number(l));if(p<0||this.length<p||this.length<_)throw new RangeError("Out of range index");if(_<=p)return this;p=p>>>0,_=_===void 0?this.length:_>>>0,l||(l=0);let S;if(typeof l=="number")for(S=p;S<_;++S)this[S]=l;else{const P=u.isBuffer(l)?l:u.from(l,w),oe=P.length;if(oe===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for(S=0;S<_-p;++S)this[S+p]=P[S%oe]}return this};const Ye={};function it(m,l,p){Ye[m]=class extends p{constructor(){super(),Object.defineProperty(this,"message",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${m}]`,this.stack,delete this.name}get code(){return m}set code(w){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:w,writable:!0})}toString(){return`${this.name} [${m}]: ${this.message}`}}}it("ERR_BUFFER_OUT_OF_BOUNDS",function(m){return m?`${m} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),it("ERR_INVALID_ARG_TYPE",function(m,l){return`The "${m}" argument must be of type number. Received type ${typeof l}`},TypeError),it("ERR_OUT_OF_RANGE",function(m,l,p){let _=`The value of "${m}" is out of range.`,w=p;return Number.isInteger(p)&&Math.abs(p)>2**32?w=$t(String(p)):typeof p=="bigint"&&(w=String(p),(p>BigInt(2)**BigInt(32)||p<-(BigInt(2)**BigInt(32)))&&(w=$t(w)),w+="n"),_+=` It must be ${l}. Received ${w}`,_},RangeError);function $t(m){let l="",p=m.length;const _=m[0]==="-"?1:0;for(;p>=_+4;p-=3)l=`_${m.slice(p-3,p)}${l}`;return`${m.slice(0,p)}${l}`}function Ot(m,l,p){Te(l,"offset"),(m[l]===void 0||m[l+p]===void 0)&&at(l,m.length-(p+1))}function Ke(m,l,p,_,w,S){if(m>p||m<l){const P=typeof l=="bigint"?"n":"";let oe;throw S>3?l===0||l===BigInt(0)?oe=`>= 0${P} and < 2${P} ** ${(S+1)*8}${P}`:oe=`>= -(2${P} ** ${(S+1)*8-1}${P}) and < 2 ** ${(S+1)*8-1}${P}`:oe=`>= ${l}${P} and <= ${p}${P}`,new Ye.ERR_OUT_OF_RANGE("value",oe,m)}Ot(_,w,S)}function Te(m,l){if(typeof m!="number")throw new Ye.ERR_INVALID_ARG_TYPE(l,"number",m)}function at(m,l,p){throw Math.floor(m)!==m?(Te(m,p),new Ye.ERR_OUT_OF_RANGE(p||"offset","an integer",m)):l<0?new Ye.ERR_BUFFER_OUT_OF_BOUNDS:new Ye.ERR_OUT_OF_RANGE(p||"offset",`>= ${p?1:0} and <= ${l}`,m)}const Lt=/[^+/0-9A-Za-z-_]/g;function zt(m){if(m=m.split("=")[0],m=m.trim().replace(Lt,""),m.length<2)return"";for(;m.length%4!==0;)m=m+"=";return m}function ht(m,l){l=l||1/0;let p;const _=m.length;let w=null;const S=[];for(let P=0;P<_;++P){if(p=m.charCodeAt(P),p>55295&&p<57344){if(!w){if(p>56319){(l-=3)>-1&&S.push(239,191,189);continue}else if(P+1===_){(l-=3)>-1&&S.push(239,191,189);continue}w=p;continue}if(p<56320){(l-=3)>-1&&S.push(239,191,189),w=p;continue}p=(w-55296<<10|p-56320)+65536}else w&&(l-=3)>-1&&S.push(239,191,189);if(w=null,p<128){if((l-=1)<0)break;S.push(p)}else if(p<2048){if((l-=2)<0)break;S.push(p>>6|192,p&63|128)}else if(p<65536){if((l-=3)<0)break;S.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((l-=4)<0)break;S.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else throw new Error("Invalid code point")}return S}function fn(m){const l=[];for(let p=0;p<m.length;++p)l.push(m.charCodeAt(p)&255);return l}function kt(m,l){let p,_,w;const S=[];for(let P=0;P<m.length&&!((l-=2)<0);++P)p=m.charCodeAt(P),_=p>>8,w=p%256,S.push(w),S.push(_);return S}function Be(m){return e.toByteArray(zt(m))}function mt(m,l,p,_){let w;for(w=0;w<_&&!(w+p>=l.length||w>=m.length);++w)l[w+p]=m[w];return w}function Pe(m,l){return m instanceof l||m!=null&&m.constructor!=null&&m.constructor.name!=null&&m.constructor.name===l.name}function st(m){return m!==m}const gn=function(){const m="0123456789abcdef",l=new Array(256);for(let p=0;p<16;++p){const _=p*16;for(let w=0;w<16;++w)l[_+w]=m[p]+m[w]}return l}();function Ue(m){return typeof BigInt>"u"?xt:m}function xt(){throw new Error("BigInt not supported")}})(Er);const an=Er.Buffer,Pi=Er.Buffer,Yn=s.reactive(new Map),F={$on(n,e){let t=Yn.get(n);t||(t=new Set,Yn.set(n,t)),t.add(e)},$emit(n,...e){const t=Yn.get(n);if(t)for(const r of t)r(...e)},$off(n,e){const t=Yn.get(n);t&&t.delete(e)}};s.readonly(F);const Mi={computed:{home(){return this.$storex&&this.$storex.token&&this.$storex.username?"/"+this.$storex.username:"/welcome"},isAndroid(){return/Android/i.test(navigator.userAgent)||Ge.Capacitor.getPlatform()==="android"},isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||Ge.Capacitor.getPlatform()==="ios"},isNative(){return Ge.Capacitor.isNativePlatform()}},methods:{errorHandler(n){return n&&n.response&&n.response.data&&n.response.data.error&&((n.response.data.error==="ACCESS_DENIED"||n.response.data.error==="TOKEN_EXPIRED")&&this.logout(),!n.response.data.error.includes("Network Error")&&!n.response.data.error.includes("Cannot read properties")&&this.errorSnack(n.response.data.error)),n},errorSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("errorMessage"),r=document.getElementById("errorSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},successSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("successMessage"),r=document.getElementById("successSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},tapsEmoji(n){return n<10?"":n<=50?"🔥":n<=100?"💥":n<=300?"💎":n>300?"🚀":""},isEmpty(n){if(!n)return!0;for(let e in n)if(n.hasOwnProperty(e))return!1;return JSON.stringify(n)===JSON.stringify({})},copy(n=""){const e=document.createElement("textarea");e.value=n,e.setAttribute("readonly",""),e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.successSnack(this.ssoLang[this.appLanguage].copied)},async getCaptchaToken(n){try{return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",{action:n})}catch(e){return console.log(e),null}}}},{mapState:Oi,mapActions:Li,mapGetters:zi}=co.createNamespacedHelpers("auth"),De={mixins:[Mi],computed:{...Oi(["$storex","refreshing","loggedInUserId","account","device","loggedInAccounts","ssoLang","display","redirect_uri","response_type","state","allowedOriginsAuth"]),...zi(["accessToken","refreshTokens","isLoggedIn","renderView","appLanguage"])},methods:{...Li(["setLoggedInAccounts","setLoggedInUserId","getRefreshTokens","setRefreshToken","unsetRefreshToken","setToken","setView","setStorage","setUserID","updateLang","login","register","verify","reset","exchangeAuthCode","changePassword","newPassword","deleteAccount","registerDevice","addFcmToken","acceptCompanyInvitation","logout","getCompanyBySSOEmail","getLoggedInAccounts","loginUsingQR","getAccountSettings","setRedirectUri","setDisplay","setState","setResponseType","switchAccount"])},watch:{"$route.query":{handler:function(){this.$route.query.redirect_uri&&this.setRedirectUri(this.$route.query.redirect_uri),this.$route.query.display&&this.setDisplay(this.$route.query.display),this.$route.query.state&&this.setState(this.$route.query.state),this.$route.query.response_type&&this.setResponseType(this.$route.query.response_type),this.$route.query.realm&&this.$storage&&this.setRealm(this.$route.query.realm)},deep:!0}}},Qe=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},xi={name:"AuthWelcome",mixins:[De],data(){return{loading:!0}},async mounted(){let n=document.getElementById("tapniVideo");n.addEventListener("canplay",function(){if(document.body.contains(n))try{n.play()}catch(e){console.log("Play was interrupted:",e)}}),setTimeout(()=>{this.$storex&&this.$storex.token?this.$router.push(this.home):F.$emit("ssoEvent",{name:"setLoading",data:!1})},500)},methods:{}},fo=n=>(s.pushScopeId("data-v-615ed484"),n=n(),s.popScopeId(),n),Bi={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},Ui=["autoplay"],Di=[fo(()=>s.createElementVNode("source",{src:"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",type:"video/mp4"},null,-1))],Hi={class:"bold full-top no-bottom center-text"},ji={class:"full-bottom half-top center-text color-black font-16"},Fi={class:"page-login-links center-text"},qi=fo(()=>s.createElementVNode("div",{class:"clear"},null,-1)),Vi={key:2,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}},Ki=[s.createStaticVNode('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-615ed484><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-615ed484></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-615ed484><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-615ed484></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-615ed484><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-615ed484></a>',3)];function Gi(n,e,t,r,o,i){const a=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("div",Bi,[s.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:n.isNative},Di,8,Ui),s.createElementVNode("h1",Hi,s.toDisplayString(n.ssoLang[this.appLanguage].welcome),1),s.createElementVNode("p",ji,s.toDisplayString(n.ssoLang[this.appLanguage].welcome_p1),1),s.createCommentVNode("",!0),s.createCommentVNode("",!0),s.createVNode(a,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:s.withCtx(()=>[s.createElementVNode("span",null,s.toDisplayString(n.ssoLang[this.appLanguage].create_account),1)]),_:1}),s.createElementVNode("div",Fi,[s.createVNode(a,{to:"/login"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(n.ssoLang[this.appLanguage].already_registered)+"? ",1),s.createElementVNode("b",null,s.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),qi]),this.isNative?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Vi,Ki))])}const Sr=Qe(xi,[["render",Gi],["__scopeId","data-v-615ed484"]]),Qi=Object.freeze(Object.defineProperty({__proto__:null,default:Sr},Symbol.toStringTag,{value:"Module"})),$i="0.0.156",Wn={getMe(){return ae().get("/users/me")},getByUsername(n){let e=document.referrer||"",t=n.utmParams||{};return n.dontTap&&(t.dontTap=!0),ae().get(`/users/${n.username}`,{params:t,headers:{"X-Referer":e}})},getByNumber(n){let e=document.referrer||"",t=n.utmParams||{};return n.dontTap&&(t.dontTap=!0),ae().get(`/users/tag/${n.serial}`,{params:t,headers:{"X-Referer":e}})},save(n){return ae().put("/users",n)},newPassword(n){return ae().put("/users/new-password",n)},connect(n){return ae().post("/users/connect",n)},eventLog(n){return ae().post("/users/log",n)},deleteAccount(n){return ae().post("/users/profile/delete",n)},registerDevice(n){return ae().post("/users/device/register",n)},addFcmToken(n){return ae().post("/users/device/fcm",n)},loginUsingQR(n){return ae().post("/users/qr/login",n)}},go={registerDevice(n){return ae().post("/devices/add",n)},addFcmToken(n){return ae().post("/devices/fcm/add",n)}},Ir={getBySSOEmail(n){return ae().get(`/company/sso/${n}`)},acceptCompanyInvitation(n){return ae().get(`/users/invitation?ic=${n}`)},qrCodePooling(n){return ae().post("/company/login/qr",n)}},_o={state:{english:"English",spanish:"Spanish",german:"German",korean:"Korean",italian:"Italian",french:"French",serbian:"Serbian",turkish:"Turkish",chinese:"Chinese",app_language:"Language",profile_preview:"Profile preview",edit_profile:"Edit profile",login:"Login",referral_reach:"Provide us with more information about you and your reach.",referral_apply_placeholder:"How do you plan to promote Tapni?",referral_apply_note:`Add as many links as possible in your account, <br>
6
+ */(function(n){const e=$n,t=Tr,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;n.Buffer=u,n.SlowBuffer=q,n.INSPECT_MAX_BYTES=50;const o=2147483647;n.kMaxLength=o;const{Uint8Array:i,ArrayBuffer:a,SharedArrayBuffer:c}=globalThis;u.TYPED_ARRAY_SUPPORT=d(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function d(){try{const m=new i(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,i.prototype),Object.setPrototypeOf(m,l),m.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function h(m){if(m>o)throw new RangeError('The value "'+m+'" is invalid for option "size"');const l=new i(m);return Object.setPrototypeOf(l,u.prototype),l}function u(m,l,p){if(typeof m=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return E(m)}return g(m,l,p)}u.poolSize=8192;function g(m,l,p){if(typeof m=="string")return N(m,l);if(a.isView(m))return D(m);if(m==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m);if(Pe(m,a)||m&&Pe(m.buffer,a)||typeof c<"u"&&(Pe(m,c)||m&&Pe(m.buffer,c)))return R(m,l,p);if(typeof m=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const _=m.valueOf&&m.valueOf();if(_!=null&&_!==m)return u.from(_,l,p);const w=T(m);if(w)return w;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof m[Symbol.toPrimitive]=="function")return u.from(m[Symbol.toPrimitive]("string"),l,p);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof m)}u.from=function(m,l,p){return g(m,l,p)},Object.setPrototypeOf(u.prototype,i.prototype),Object.setPrototypeOf(u,i);function f(m){if(typeof m!="number")throw new TypeError('"size" argument must be of type number');if(m<0)throw new RangeError('The value "'+m+'" is invalid for option "size"')}function b(m,l,p){return f(m),m<=0?h(m):l!==void 0?typeof p=="string"?h(m).fill(l,p):h(m).fill(l):h(m)}u.alloc=function(m,l,p){return b(m,l,p)};function E(m){return f(m),h(m<0?0:x(m)|0)}u.allocUnsafe=function(m){return E(m)},u.allocUnsafeSlow=function(m){return E(m)};function N(m,l){if((typeof l!="string"||l==="")&&(l="utf8"),!u.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const p=Y(m,l)|0;let _=h(p);const w=_.write(m,l);return w!==p&&(_=_.slice(0,w)),_}function M(m){const l=m.length<0?0:x(m.length)|0,p=h(l);for(let _=0;_<l;_+=1)p[_]=m[_]&255;return p}function D(m){if(Pe(m,i)){const l=new i(m);return R(l.buffer,l.byteOffset,l.byteLength)}return M(m)}function R(m,l,p){if(l<0||m.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(m.byteLength<l+(p||0))throw new RangeError('"length" is outside of buffer bounds');let _;return l===void 0&&p===void 0?_=new i(m):p===void 0?_=new i(m,l):_=new i(m,l,p),Object.setPrototypeOf(_,u.prototype),_}function T(m){if(u.isBuffer(m)){const l=x(m.length)|0,p=h(l);return p.length===0||m.copy(p,0,0,l),p}if(m.length!==void 0)return typeof m.length!="number"||st(m.length)?h(0):M(m);if(m.type==="Buffer"&&Array.isArray(m.data))return M(m.data)}function x(m){if(m>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return m|0}function q(m){return+m!=m&&(m=0),u.alloc(+m)}u.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==u.prototype},u.compare=function(l,p){if(Pe(l,i)&&(l=u.from(l,l.offset,l.byteLength)),Pe(p,i)&&(p=u.from(p,p.offset,p.byteLength)),!u.isBuffer(l)||!u.isBuffer(p))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===p)return 0;let _=l.length,w=p.length;for(let S=0,P=Math.min(_,w);S<P;++S)if(l[S]!==p[S]){_=l[S],w=p[S];break}return _<w?-1:w<_?1:0},u.isEncoding=function(l){switch(String(l).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(l,p){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return u.alloc(0);let _;if(p===void 0)for(p=0,_=0;_<l.length;++_)p+=l[_].length;const w=u.allocUnsafe(p);let S=0;for(_=0;_<l.length;++_){let P=l[_];if(Pe(P,i))S+P.length>w.length?(u.isBuffer(P)||(P=u.from(P)),P.copy(w,S)):i.prototype.set.call(w,P,S);else if(u.isBuffer(P))P.copy(w,S);else throw new TypeError('"list" argument must be an Array of Buffers');S+=P.length}return w};function Y(m,l){if(u.isBuffer(m))return m.length;if(a.isView(m)||Pe(m,a))return m.byteLength;if(typeof m!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof m);const p=m.length,_=arguments.length>2&&arguments[2]===!0;if(!_&&p===0)return 0;let w=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return p;case"utf8":case"utf-8":return ht(m).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return p*2;case"hex":return p>>>1;case"base64":return Be(m).length;default:if(w)return _?-1:ht(m).length;l=(""+l).toLowerCase(),w=!0}}u.byteLength=Y;function J(m,l,p){let _=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((p===void 0||p>this.length)&&(p=this.length),p<=0)||(p>>>=0,l>>>=0,p<=l))return"";for(m||(m="utf8");;)switch(m){case"hex":return tn(this,l,p);case"utf8":case"utf-8":return Pt(this,l,p);case"ascii":return en(this,l,p);case"latin1":case"binary":return mn(this,l,p);case"base64":return Nt(this,l,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Nn(this,l,p);default:if(_)throw new TypeError("Unknown encoding: "+m);m=(m+"").toLowerCase(),_=!0}}u.prototype._isBuffer=!0;function $(m,l,p){const _=m[l];m[l]=m[p],m[p]=_}u.prototype.swap16=function(){const l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let p=0;p<l;p+=2)$(this,p,p+1);return this},u.prototype.swap32=function(){const l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let p=0;p<l;p+=4)$(this,p,p+3),$(this,p+1,p+2);return this},u.prototype.swap64=function(){const l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let p=0;p<l;p+=8)$(this,p,p+7),$(this,p+1,p+6),$(this,p+2,p+5),$(this,p+3,p+4);return this},u.prototype.toString=function(){const l=this.length;return l===0?"":arguments.length===0?Pt(this,0,l):J.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(l){if(!u.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:u.compare(this,l)===0},u.prototype.inspect=function(){let l="";const p=n.INSPECT_MAX_BYTES;return l=this.toString("hex",0,p).replace(/(.{2})/g,"$1 ").trim(),this.length>p&&(l+=" ... "),"<Buffer "+l+">"},r&&(u.prototype[r]=u.prototype.inspect),u.prototype.compare=function(l,p,_,w,S){if(Pe(l,i)&&(l=u.from(l,l.offset,l.byteLength)),!u.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(p===void 0&&(p=0),_===void 0&&(_=l?l.length:0),w===void 0&&(w=0),S===void 0&&(S=this.length),p<0||_>l.length||w<0||S>this.length)throw new RangeError("out of range index");if(w>=S&&p>=_)return 0;if(w>=S)return-1;if(p>=_)return 1;if(p>>>=0,_>>>=0,w>>>=0,S>>>=0,this===l)return 0;let P=S-w,oe=_-p;const _e=Math.min(P,oe),ge=this.slice(w,S),ye=l.slice(p,_);for(let he=0;he<_e;++he)if(ge[he]!==ye[he]){P=ge[he],oe=ye[he];break}return P<oe?-1:oe<P?1:0};function ie(m,l,p,_,w){if(m.length===0)return-1;if(typeof p=="string"?(_=p,p=0):p>2147483647?p=2147483647:p<-2147483648&&(p=-2147483648),p=+p,st(p)&&(p=w?0:m.length-1),p<0&&(p=m.length+p),p>=m.length){if(w)return-1;p=m.length-1}else if(p<0)if(w)p=0;else return-1;if(typeof l=="string"&&(l=u.from(l,_)),u.isBuffer(l))return l.length===0?-1:ce(m,l,p,_,w);if(typeof l=="number")return l=l&255,typeof i.prototype.indexOf=="function"?w?i.prototype.indexOf.call(m,l,p):i.prototype.lastIndexOf.call(m,l,p):ce(m,[l],p,_,w);throw new TypeError("val must be string, number or Buffer")}function ce(m,l,p,_,w){let S=1,P=m.length,oe=l.length;if(_!==void 0&&(_=String(_).toLowerCase(),_==="ucs2"||_==="ucs-2"||_==="utf16le"||_==="utf-16le")){if(m.length<2||l.length<2)return-1;S=2,P/=2,oe/=2,p/=2}function _e(ye,he){return S===1?ye[he]:ye.readUInt16BE(he*S)}let ge;if(w){let ye=-1;for(ge=p;ge<P;ge++)if(_e(m,ge)===_e(l,ye===-1?0:ge-ye)){if(ye===-1&&(ye=ge),ge-ye+1===oe)return ye*S}else ye!==-1&&(ge-=ge-ye),ye=-1}else for(p+oe>P&&(p=P-oe),ge=p;ge>=0;ge--){let ye=!0;for(let he=0;he<oe;he++)if(_e(m,ge+he)!==_e(l,he)){ye=!1;break}if(ye)return ge}return-1}u.prototype.includes=function(l,p,_){return this.indexOf(l,p,_)!==-1},u.prototype.indexOf=function(l,p,_){return ie(this,l,p,_,!0)},u.prototype.lastIndexOf=function(l,p,_){return ie(this,l,p,_,!1)};function fe(m,l,p,_){p=Number(p)||0;const w=m.length-p;_?(_=Number(_),_>w&&(_=w)):_=w;const S=l.length;_>S/2&&(_=S/2);let P;for(P=0;P<_;++P){const oe=parseInt(l.substr(P*2,2),16);if(st(oe))return P;m[p+P]=oe}return P}function Ie(m,l,p,_){return mt(ht(l,m.length-p),m,p,_)}function Gt(m,l,p,_){return mt(fn(l),m,p,_)}function Ve(m,l,p,_){return mt(Be(l),m,p,_)}function Zt(m,l,p,_){return mt(kt(l,m.length-p),m,p,_)}u.prototype.write=function(l,p,_,w){if(p===void 0)w="utf8",_=this.length,p=0;else if(_===void 0&&typeof p=="string")w=p,_=this.length,p=0;else if(isFinite(p))p=p>>>0,isFinite(_)?(_=_>>>0,w===void 0&&(w="utf8")):(w=_,_=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const S=this.length-p;if((_===void 0||_>S)&&(_=S),l.length>0&&(_<0||p<0)||p>this.length)throw new RangeError("Attempt to write outside buffer bounds");w||(w="utf8");let P=!1;for(;;)switch(w){case"hex":return fe(this,l,p,_);case"utf8":case"utf-8":return Ie(this,l,p,_);case"ascii":case"latin1":case"binary":return Gt(this,l,p,_);case"base64":return Ve(this,l,p,_);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Zt(this,l,p,_);default:if(P)throw new TypeError("Unknown encoding: "+w);w=(""+w).toLowerCase(),P=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Nt(m,l,p){return l===0&&p===m.length?e.fromByteArray(m):e.fromByteArray(m.slice(l,p))}function Pt(m,l,p){p=Math.min(m.length,p);const _=[];let w=l;for(;w<p;){const S=m[w];let P=null,oe=S>239?4:S>223?3:S>191?2:1;if(w+oe<=p){let _e,ge,ye,he;switch(oe){case 1:S<128&&(P=S);break;case 2:_e=m[w+1],(_e&192)===128&&(he=(S&31)<<6|_e&63,he>127&&(P=he));break;case 3:_e=m[w+1],ge=m[w+2],(_e&192)===128&&(ge&192)===128&&(he=(S&15)<<12|(_e&63)<<6|ge&63,he>2047&&(he<55296||he>57343)&&(P=he));break;case 4:_e=m[w+1],ge=m[w+2],ye=m[w+3],(_e&192)===128&&(ge&192)===128&&(ye&192)===128&&(he=(S&15)<<18|(_e&63)<<12|(ge&63)<<6|ye&63,he>65535&&he<1114112&&(P=he))}}P===null?(P=65533,oe=1):P>65535&&(P-=65536,_.push(P>>>10&1023|55296),P=56320|P&1023),_.push(P),w+=oe}return hn(_)}const ot=4096;function hn(m){const l=m.length;if(l<=ot)return String.fromCharCode.apply(String,m);let p="",_=0;for(;_<l;)p+=String.fromCharCode.apply(String,m.slice(_,_+=ot));return p}function en(m,l,p){let _="";p=Math.min(m.length,p);for(let w=l;w<p;++w)_+=String.fromCharCode(m[w]&127);return _}function mn(m,l,p){let _="";p=Math.min(m.length,p);for(let w=l;w<p;++w)_+=String.fromCharCode(m[w]);return _}function tn(m,l,p){const _=m.length;(!l||l<0)&&(l=0),(!p||p<0||p>_)&&(p=_);let w="";for(let S=l;S<p;++S)w+=gn[m[S]];return w}function Nn(m,l,p){const _=m.slice(l,p);let w="";for(let S=0;S<_.length-1;S+=2)w+=String.fromCharCode(_[S]+_[S+1]*256);return w}u.prototype.slice=function(l,p){const _=this.length;l=~~l,p=p===void 0?_:~~p,l<0?(l+=_,l<0&&(l=0)):l>_&&(l=_),p<0?(p+=_,p<0&&(p=0)):p>_&&(p=_),p<l&&(p=l);const w=this.subarray(l,p);return Object.setPrototypeOf(w,u.prototype),w};function we(m,l,p){if(m%1!==0||m<0)throw new RangeError("offset is not uint");if(m+l>p)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(l,p,_){l=l>>>0,p=p>>>0,_||we(l,p,this.length);let w=this[l],S=1,P=0;for(;++P<p&&(S*=256);)w+=this[l+P]*S;return w},u.prototype.readUintBE=u.prototype.readUIntBE=function(l,p,_){l=l>>>0,p=p>>>0,_||we(l,p,this.length);let w=this[l+--p],S=1;for(;p>0&&(S*=256);)w+=this[l+--p]*S;return w},u.prototype.readUint8=u.prototype.readUInt8=function(l,p){return l=l>>>0,p||we(l,1,this.length),this[l]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(l,p){return l=l>>>0,p||we(l,2,this.length),this[l]|this[l+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(l,p){return l=l>>>0,p||we(l,2,this.length),this[l]<<8|this[l+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(l,p){return l=l>>>0,p||we(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(l,p){return l=l>>>0,p||we(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},u.prototype.readBigUInt64LE=Ue(function(l){l=l>>>0,Te(l,"offset");const p=this[l],_=this[l+7];(p===void 0||_===void 0)&&at(l,this.length-8);const w=p+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,S=this[++l]+this[++l]*2**8+this[++l]*2**16+_*2**24;return BigInt(w)+(BigInt(S)<<BigInt(32))}),u.prototype.readBigUInt64BE=Ue(function(l){l=l>>>0,Te(l,"offset");const p=this[l],_=this[l+7];(p===void 0||_===void 0)&&at(l,this.length-8);const w=p*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],S=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+_;return(BigInt(w)<<BigInt(32))+BigInt(S)}),u.prototype.readIntLE=function(l,p,_){l=l>>>0,p=p>>>0,_||we(l,p,this.length);let w=this[l],S=1,P=0;for(;++P<p&&(S*=256);)w+=this[l+P]*S;return S*=128,w>=S&&(w-=Math.pow(2,8*p)),w},u.prototype.readIntBE=function(l,p,_){l=l>>>0,p=p>>>0,_||we(l,p,this.length);let w=p,S=1,P=this[l+--w];for(;w>0&&(S*=256);)P+=this[l+--w]*S;return S*=128,P>=S&&(P-=Math.pow(2,8*p)),P},u.prototype.readInt8=function(l,p){return l=l>>>0,p||we(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},u.prototype.readInt16LE=function(l,p){l=l>>>0,p||we(l,2,this.length);const _=this[l]|this[l+1]<<8;return _&32768?_|4294901760:_},u.prototype.readInt16BE=function(l,p){l=l>>>0,p||we(l,2,this.length);const _=this[l+1]|this[l]<<8;return _&32768?_|4294901760:_},u.prototype.readInt32LE=function(l,p){return l=l>>>0,p||we(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},u.prototype.readInt32BE=function(l,p){return l=l>>>0,p||we(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},u.prototype.readBigInt64LE=Ue(function(l){l=l>>>0,Te(l,"offset");const p=this[l],_=this[l+7];(p===void 0||_===void 0)&&at(l,this.length-8);const w=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(_<<24);return(BigInt(w)<<BigInt(32))+BigInt(p+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24)}),u.prototype.readBigInt64BE=Ue(function(l){l=l>>>0,Te(l,"offset");const p=this[l],_=this[l+7];(p===void 0||_===void 0)&&at(l,this.length-8);const w=(p<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(w)<<BigInt(32))+BigInt(this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+_)}),u.prototype.readFloatLE=function(l,p){return l=l>>>0,p||we(l,4,this.length),t.read(this,l,!0,23,4)},u.prototype.readFloatBE=function(l,p){return l=l>>>0,p||we(l,4,this.length),t.read(this,l,!1,23,4)},u.prototype.readDoubleLE=function(l,p){return l=l>>>0,p||we(l,8,this.length),t.read(this,l,!0,52,8)},u.prototype.readDoubleBE=function(l,p){return l=l>>>0,p||we(l,8,this.length),t.read(this,l,!1,52,8)};function Ce(m,l,p,_,w,S){if(!u.isBuffer(m))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>w||l<S)throw new RangeError('"value" argument is out of bounds');if(p+_>m.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(l,p,_,w){if(l=+l,p=p>>>0,_=_>>>0,!w){const oe=Math.pow(2,8*_)-1;Ce(this,l,p,_,oe,0)}let S=1,P=0;for(this[p]=l&255;++P<_&&(S*=256);)this[p+P]=l/S&255;return p+_},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(l,p,_,w){if(l=+l,p=p>>>0,_=_>>>0,!w){const oe=Math.pow(2,8*_)-1;Ce(this,l,p,_,oe,0)}let S=_-1,P=1;for(this[p+S]=l&255;--S>=0&&(P*=256);)this[p+S]=l/P&255;return p+_},u.prototype.writeUint8=u.prototype.writeUInt8=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,1,255,0),this[p]=l&255,p+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,2,65535,0),this[p]=l&255,this[p+1]=l>>>8,p+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,2,65535,0),this[p]=l>>>8,this[p+1]=l&255,p+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,4,4294967295,0),this[p+3]=l>>>24,this[p+2]=l>>>16,this[p+1]=l>>>8,this[p]=l&255,p+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,4,4294967295,0),this[p]=l>>>24,this[p+1]=l>>>16,this[p+2]=l>>>8,this[p+3]=l&255,p+4};function Qt(m,l,p,_,w){Ke(l,_,w,m,p,7);let S=Number(l&BigInt(4294967295));m[p++]=S,S=S>>8,m[p++]=S,S=S>>8,m[p++]=S,S=S>>8,m[p++]=S;let P=Number(l>>BigInt(32)&BigInt(4294967295));return m[p++]=P,P=P>>8,m[p++]=P,P=P>>8,m[p++]=P,P=P>>8,m[p++]=P,p}function xe(m,l,p,_,w){Ke(l,_,w,m,p,7);let S=Number(l&BigInt(4294967295));m[p+7]=S,S=S>>8,m[p+6]=S,S=S>>8,m[p+5]=S,S=S>>8,m[p+4]=S;let P=Number(l>>BigInt(32)&BigInt(4294967295));return m[p+3]=P,P=P>>8,m[p+2]=P,P=P>>8,m[p+1]=P,P=P>>8,m[p]=P,p+8}u.prototype.writeBigUInt64LE=Ue(function(l,p=0){return Qt(this,l,p,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=Ue(function(l,p=0){return xe(this,l,p,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(l,p,_,w){if(l=+l,p=p>>>0,!w){const _e=Math.pow(2,8*_-1);Ce(this,l,p,_,_e-1,-_e)}let S=0,P=1,oe=0;for(this[p]=l&255;++S<_&&(P*=256);)l<0&&oe===0&&this[p+S-1]!==0&&(oe=1),this[p+S]=(l/P>>0)-oe&255;return p+_},u.prototype.writeIntBE=function(l,p,_,w){if(l=+l,p=p>>>0,!w){const _e=Math.pow(2,8*_-1);Ce(this,l,p,_,_e-1,-_e)}let S=_-1,P=1,oe=0;for(this[p+S]=l&255;--S>=0&&(P*=256);)l<0&&oe===0&&this[p+S+1]!==0&&(oe=1),this[p+S]=(l/P>>0)-oe&255;return p+_},u.prototype.writeInt8=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,1,127,-128),l<0&&(l=255+l+1),this[p]=l&255,p+1},u.prototype.writeInt16LE=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,2,32767,-32768),this[p]=l&255,this[p+1]=l>>>8,p+2},u.prototype.writeInt16BE=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,2,32767,-32768),this[p]=l>>>8,this[p+1]=l&255,p+2},u.prototype.writeInt32LE=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,4,2147483647,-2147483648),this[p]=l&255,this[p+1]=l>>>8,this[p+2]=l>>>16,this[p+3]=l>>>24,p+4},u.prototype.writeInt32BE=function(l,p,_){return l=+l,p=p>>>0,_||Ce(this,l,p,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[p]=l>>>24,this[p+1]=l>>>16,this[p+2]=l>>>8,this[p+3]=l&255,p+4},u.prototype.writeBigInt64LE=Ue(function(l,p=0){return Qt(this,l,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=Ue(function(l,p=0){return xe(this,l,p,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ne(m,l,p,_,w,S){if(p+_>m.length)throw new RangeError("Index out of range");if(p<0)throw new RangeError("Index out of range")}function Mt(m,l,p,_,w){return l=+l,p=p>>>0,w||Ne(m,l,p,4),t.write(m,l,p,_,23,4),p+4}u.prototype.writeFloatLE=function(l,p,_){return Mt(this,l,p,!0,_)},u.prototype.writeFloatBE=function(l,p,_){return Mt(this,l,p,!1,_)};function vt(m,l,p,_,w){return l=+l,p=p>>>0,w||Ne(m,l,p,8),t.write(m,l,p,_,52,8),p+8}u.prototype.writeDoubleLE=function(l,p,_){return vt(this,l,p,!0,_)},u.prototype.writeDoubleBE=function(l,p,_){return vt(this,l,p,!1,_)},u.prototype.copy=function(l,p,_,w){if(!u.isBuffer(l))throw new TypeError("argument should be a Buffer");if(_||(_=0),!w&&w!==0&&(w=this.length),p>=l.length&&(p=l.length),p||(p=0),w>0&&w<_&&(w=_),w===_||l.length===0||this.length===0)return 0;if(p<0)throw new RangeError("targetStart out of bounds");if(_<0||_>=this.length)throw new RangeError("Index out of range");if(w<0)throw new RangeError("sourceEnd out of bounds");w>this.length&&(w=this.length),l.length-p<w-_&&(w=l.length-p+_);const S=w-_;return this===l&&typeof i.prototype.copyWithin=="function"?this.copyWithin(p,_,w):i.prototype.set.call(l,this.subarray(_,w),p),S},u.prototype.fill=function(l,p,_,w){if(typeof l=="string"){if(typeof p=="string"?(w=p,p=0,_=this.length):typeof _=="string"&&(w=_,_=this.length),w!==void 0&&typeof w!="string")throw new TypeError("encoding must be a string");if(typeof w=="string"&&!u.isEncoding(w))throw new TypeError("Unknown encoding: "+w);if(l.length===1){const P=l.charCodeAt(0);(w==="utf8"&&P<128||w==="latin1")&&(l=P)}}else typeof l=="number"?l=l&255:typeof l=="boolean"&&(l=Number(l));if(p<0||this.length<p||this.length<_)throw new RangeError("Out of range index");if(_<=p)return this;p=p>>>0,_=_===void 0?this.length:_>>>0,l||(l=0);let S;if(typeof l=="number")for(S=p;S<_;++S)this[S]=l;else{const P=u.isBuffer(l)?l:u.from(l,w),oe=P.length;if(oe===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for(S=0;S<_-p;++S)this[S+p]=P[S%oe]}return this};const Ye={};function it(m,l,p){Ye[m]=class extends p{constructor(){super(),Object.defineProperty(this,"message",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${m}]`,this.stack,delete this.name}get code(){return m}set code(w){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:w,writable:!0})}toString(){return`${this.name} [${m}]: ${this.message}`}}}it("ERR_BUFFER_OUT_OF_BOUNDS",function(m){return m?`${m} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),it("ERR_INVALID_ARG_TYPE",function(m,l){return`The "${m}" argument must be of type number. Received type ${typeof l}`},TypeError),it("ERR_OUT_OF_RANGE",function(m,l,p){let _=`The value of "${m}" is out of range.`,w=p;return Number.isInteger(p)&&Math.abs(p)>2**32?w=$t(String(p)):typeof p=="bigint"&&(w=String(p),(p>BigInt(2)**BigInt(32)||p<-(BigInt(2)**BigInt(32)))&&(w=$t(w)),w+="n"),_+=` It must be ${l}. Received ${w}`,_},RangeError);function $t(m){let l="",p=m.length;const _=m[0]==="-"?1:0;for(;p>=_+4;p-=3)l=`_${m.slice(p-3,p)}${l}`;return`${m.slice(0,p)}${l}`}function Ot(m,l,p){Te(l,"offset"),(m[l]===void 0||m[l+p]===void 0)&&at(l,m.length-(p+1))}function Ke(m,l,p,_,w,S){if(m>p||m<l){const P=typeof l=="bigint"?"n":"";let oe;throw S>3?l===0||l===BigInt(0)?oe=`>= 0${P} and < 2${P} ** ${(S+1)*8}${P}`:oe=`>= -(2${P} ** ${(S+1)*8-1}${P}) and < 2 ** ${(S+1)*8-1}${P}`:oe=`>= ${l}${P} and <= ${p}${P}`,new Ye.ERR_OUT_OF_RANGE("value",oe,m)}Ot(_,w,S)}function Te(m,l){if(typeof m!="number")throw new Ye.ERR_INVALID_ARG_TYPE(l,"number",m)}function at(m,l,p){throw Math.floor(m)!==m?(Te(m,p),new Ye.ERR_OUT_OF_RANGE(p||"offset","an integer",m)):l<0?new Ye.ERR_BUFFER_OUT_OF_BOUNDS:new Ye.ERR_OUT_OF_RANGE(p||"offset",`>= ${p?1:0} and <= ${l}`,m)}const Lt=/[^+/0-9A-Za-z-_]/g;function zt(m){if(m=m.split("=")[0],m=m.trim().replace(Lt,""),m.length<2)return"";for(;m.length%4!==0;)m=m+"=";return m}function ht(m,l){l=l||1/0;let p;const _=m.length;let w=null;const S=[];for(let P=0;P<_;++P){if(p=m.charCodeAt(P),p>55295&&p<57344){if(!w){if(p>56319){(l-=3)>-1&&S.push(239,191,189);continue}else if(P+1===_){(l-=3)>-1&&S.push(239,191,189);continue}w=p;continue}if(p<56320){(l-=3)>-1&&S.push(239,191,189),w=p;continue}p=(w-55296<<10|p-56320)+65536}else w&&(l-=3)>-1&&S.push(239,191,189);if(w=null,p<128){if((l-=1)<0)break;S.push(p)}else if(p<2048){if((l-=2)<0)break;S.push(p>>6|192,p&63|128)}else if(p<65536){if((l-=3)<0)break;S.push(p>>12|224,p>>6&63|128,p&63|128)}else if(p<1114112){if((l-=4)<0)break;S.push(p>>18|240,p>>12&63|128,p>>6&63|128,p&63|128)}else throw new Error("Invalid code point")}return S}function fn(m){const l=[];for(let p=0;p<m.length;++p)l.push(m.charCodeAt(p)&255);return l}function kt(m,l){let p,_,w;const S=[];for(let P=0;P<m.length&&!((l-=2)<0);++P)p=m.charCodeAt(P),_=p>>8,w=p%256,S.push(w),S.push(_);return S}function Be(m){return e.toByteArray(zt(m))}function mt(m,l,p,_){let w;for(w=0;w<_&&!(w+p>=l.length||w>=m.length);++w)l[w+p]=m[w];return w}function Pe(m,l){return m instanceof l||m!=null&&m.constructor!=null&&m.constructor.name!=null&&m.constructor.name===l.name}function st(m){return m!==m}const gn=function(){const m="0123456789abcdef",l=new Array(256);for(let p=0;p<16;++p){const _=p*16;for(let w=0;w<16;++w)l[_+w]=m[p]+m[w]}return l}();function Ue(m){return typeof BigInt>"u"?xt:m}function xt(){throw new Error("BigInt not supported")}})(Er);const an=Er.Buffer,Pi=Er.Buffer,Yn=s.reactive(new Map),F={$on(n,e){let t=Yn.get(n);t||(t=new Set,Yn.set(n,t)),t.add(e)},$emit(n,...e){const t=Yn.get(n);if(t)for(const r of t)r(...e)},$off(n,e){const t=Yn.get(n);t&&t.delete(e)}};s.readonly(F);const Mi={computed:{home(){return this.$storex&&this.$storex.token&&this.$storex.username?"/"+this.$storex.username:"/welcome"},isAndroid(){return/Android/i.test(navigator.userAgent)||Ge.Capacitor.getPlatform()==="android"},isiOS(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||Ge.Capacitor.getPlatform()==="ios"},isNative(){return Ge.Capacitor.isNativePlatform()}},methods:{errorHandler(n){return n&&n.response&&n.response.data&&n.response.data.error&&((n.response.data.error==="ACCESS_DENIED"||n.response.data.error==="TOKEN_EXPIRED")&&this.logout(),!n.response.data.error.includes("Network Error")&&!n.response.data.error.includes("Cannot read properties")&&this.errorSnack(n.response.data.error)),n},errorSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("errorMessage"),r=document.getElementById("errorSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},successSnack(n){let e=document.getElementById("snackbar"),t=document.getElementById("successMessage"),r=document.getElementById("successSnack");t.innerHTML=n,e.classList.add("show-snack"),r.classList.add("active-snack"),setTimeout(function(){r.classList.remove("active-snack"),e.classList.remove("show-snack")},3e3)},closeSnacks(){document.getElementById("snackbar").classList.remove("show-snack"),document.getElementById("successSnack").classList.remove("active-snack"),document.getElementById("errorSnack").classList.remove("active-snack")},tapsEmoji(n){return n<10?"":n<=50?"🔥":n<=100?"💥":n<=300?"💎":n>300?"🚀":""},isEmpty(n){if(!n)return!0;for(let e in n)if(n.hasOwnProperty(e))return!1;return JSON.stringify(n)===JSON.stringify({})},copy(n=""){const e=document.createElement("textarea");e.value=n,e.setAttribute("readonly",""),e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.successSnack(this.ssoLang[this.appLanguage].copied)},async getCaptchaToken(n){try{return await window.grecaptcha.execute("6LenkC0mAAAAADWBxPOhpmwXCwzCJd7cilNgtOLk",{action:n})}catch(e){return console.log(e),null}}}},{mapState:Oi,mapActions:Li,mapGetters:zi}=co.createNamespacedHelpers("auth"),De={mixins:[Mi],computed:{...Oi(["$storex","refreshing","loggedInUserId","account","device","loggedInAccounts","ssoLang","display","redirect_uri","response_type","state","allowedOriginsAuth"]),...zi(["accessToken","refreshTokens","isLoggedIn","renderView","appLanguage"])},methods:{...Li(["setLoggedInAccounts","setLoggedInUserId","getRefreshTokens","setRefreshToken","unsetRefreshToken","setToken","setView","setStorage","setUserID","updateLang","login","register","verify","reset","exchangeAuthCode","changePassword","newPassword","deleteAccount","registerDevice","addFcmToken","acceptCompanyInvitation","logout","getCompanyBySSOEmail","getLoggedInAccounts","loginUsingQR","getAccountSettings","setRedirectUri","setDisplay","setState","setResponseType","switchAccount","loginSetup","loginSuccess","refreshTokenAction"])},watch:{"$route.query":{handler:function(){this.$route.query.redirect_uri&&this.setRedirectUri(this.$route.query.redirect_uri),this.$route.query.display&&this.setDisplay(this.$route.query.display),this.$route.query.state&&this.setState(this.$route.query.state),this.$route.query.response_type&&this.setResponseType(this.$route.query.response_type),this.$route.query.realm&&this.$storage&&this.setRealm(this.$route.query.realm)},deep:!0}}},Qe=(n,e)=>{const t=n.__vccOpts||n;for(const[r,o]of e)t[r]=o;return t},xi={name:"AuthWelcome",mixins:[De],data(){return{loading:!0}},async mounted(){let n=document.getElementById("tapniVideo");n.addEventListener("canplay",function(){if(document.body.contains(n))try{n.play()}catch(e){console.log("Play was interrupted:",e)}}),setTimeout(()=>{this.$storex&&this.$storex.token?this.$router.push(this.home):F.$emit("ssoEvent",{name:"setLoading",data:!1})},500)},methods:{}},fo=n=>(s.pushScopeId("data-v-615ed484"),n=n(),s.popScopeId(),n),Bi={class:"page-login content-boxed content-boxed-padding center-text",style:{"margin-top":"-1px",overflow:"hidden",border:"solid 0px #ffffff"}},Ui=["autoplay"],Di=[fo(()=>s.createElementVNode("source",{src:"https://cdn.tapni.co/images/tapni-card-tap-video-white.mp4",type:"video/mp4"},null,-1))],Hi={class:"bold full-top no-bottom center-text"},ji={class:"full-bottom half-top center-text color-black font-16"},Fi={class:"page-login-links center-text"},qi=fo(()=>s.createElementVNode("div",{class:"clear"},null,-1)),Vi={key:2,style:{display:"flex","flex-direction":"row","justify-content":"space-around",width:"90%",margin:"0 auto","margin-top":"40px"}},Ki=[s.createStaticVNode('<a href="https://play.google.com/store/apps/details?id=co.tapni.app" target="_blank" data-v-615ed484><img src="https://cdn.tapni.co/images/playstore.png" class="app-store-icon pointer" style="width:55px;" data-v-615ed484></a><a href="https://apps.apple.com/ag/app/tapni/id1552930233" target="_blank" data-v-615ed484><img src="https://cdn.tapni.co/images/appstore.png" class="app-store-icon pointer" style="width:55px;" data-v-615ed484></a><a href="https://appgallery.huawei.com/#/app/C103931997" target="_blank" data-v-615ed484><img src="https://cdn.tapni.co/images/appgallery.png" class="app-store-icon pointer" style="width:55px;" data-v-615ed484></a>',3)];function Gi(n,e,t,r,o,i){const a=s.resolveComponent("router-link");return s.openBlock(),s.createElementBlock("div",Bi,[s.createElementVNode("video",{id:"tapniVideo",muted:"",loop:"",playsinline:"",width:"350",style:{margin:"0 auto","max-width":"100%","margin-top":"63px",overflow:"hidden"},autoplay:n.isNative},Di,8,Ui),s.createElementVNode("h1",Hi,s.toDisplayString(n.ssoLang[this.appLanguage].welcome),1),s.createElementVNode("p",ji,s.toDisplayString(n.ssoLang[this.appLanguage].welcome_p1),1),s.createCommentVNode("",!0),s.createCommentVNode("",!0),s.createVNode(a,{to:"register",exact:"",class:"button-center button button-90 google-button bg-tapni-grey pointer"},{default:s.withCtx(()=>[s.createElementVNode("span",null,s.toDisplayString(n.ssoLang[this.appLanguage].create_account),1)]),_:1}),s.createElementVNode("div",Fi,[s.createVNode(a,{to:"/login"},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(n.ssoLang[this.appLanguage].already_registered)+"? ",1),s.createElementVNode("b",null,s.toDisplayString(n.ssoLang[this.appLanguage].sign_in),1)]),_:1}),qi]),this.isNative?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",Vi,Ki))])}const Sr=Qe(xi,[["render",Gi],["__scopeId","data-v-615ed484"]]),Qi=Object.freeze(Object.defineProperty({__proto__:null,default:Sr},Symbol.toStringTag,{value:"Module"})),$i="0.0.158",Wn={getMe(){return ae().get("/users/me")},getByUsername(n){let e=document.referrer||"",t=n.utmParams||{};return n.dontTap&&(t.dontTap=!0),ae().get(`/users/${n.username}`,{params:t,headers:{"X-Referer":e}})},getByNumber(n){let e=document.referrer||"",t=n.utmParams||{};return n.dontTap&&(t.dontTap=!0),ae().get(`/users/tag/${n.serial}`,{params:t,headers:{"X-Referer":e}})},save(n){return ae().put("/users",n)},newPassword(n){return ae().put("/users/new-password",n)},connect(n){return ae().post("/users/connect",n)},eventLog(n){return ae().post("/users/log",n)},deleteAccount(n){return ae().post("/users/profile/delete",n)},registerDevice(n){return ae().post("/users/device/register",n)},addFcmToken(n){return ae().post("/users/device/fcm",n)},loginUsingQR(n){return ae().post("/users/qr/login",n)}},go={registerDevice(n){return ae().post("/devices/add",n)},addFcmToken(n){return ae().post("/devices/fcm/add",n)}},Ir={getBySSOEmail(n){return ae().get(`/company/sso/${n}`)},acceptCompanyInvitation(n){return ae().get(`/users/invitation?ic=${n}`)},qrCodePooling(n){return ae().post("/company/login/qr",n)}},_o={state:{english:"English",spanish:"Spanish",german:"German",korean:"Korean",italian:"Italian",french:"French",serbian:"Serbian",turkish:"Turkish",chinese:"Chinese",app_language:"Language",profile_preview:"Profile preview",edit_profile:"Edit profile",login:"Login",referral_reach:"Provide us with more information about you and your reach.",referral_apply_placeholder:"How do you plan to promote Tapni?",referral_apply_note:`Add as many links as possible in your account, <br>
7
7
  so that we can know who you are.
8
8
  <br><br>Be exclusive.
9
9
  <br>Not everyone gets accepted.😉`,referral_apply_now:"Apply now",referral_apply_thanks:"Thanks for applying. We will review your application soon!",connect:"Connect",with:"with",exchange_contact:"Exchange Contact",add_details:"Add more",show_details:"Show more",download_contact:"Download Contact",stay_in_touch:"Stay in touch with",no_thanks:"No Thanks",connect_join:"Join Tapni",connect_with:"Exchange contact with",connect_required_fields:"One of the two contact fields must be provided",name:"Name",first_name:"First name",last_name:"Last name",email:"Email",phone:"Phone number",phone_p:"Phone",company:"Company",address:"Address",website:"Website",open:"Open",delete:"Delete",confirm:"Confirm",cancel:"Cancel",save:"Save",code:"Code",note:"Note",note_p:"Add a note",contact_card_icon:"Set text under the contact card icon",contact_card_name:"Enter first and lastname",contact_card_name_p:"Contact card name",contact_card_email:"Enter personal email address",contact_card_email_p:"Contact card email",contact_card_phone:"Enter personal phone number",contact_card_phone_p:"Contact card phone",contact_card_website:"Enter personal website",contact_card_website_p:"Contact card website",contact_card_company_name:"Enter company name",contact_card_company_name_p:"Contact card company name",contact_card_job_title:"Job title",contact_card_job_title_p:"Enter job title",contact_card_company_website:"Company website",contact_card_company_website_p:"Enter company website",contact_card_bio:"Enter bio for the contact card",contact_card_bio_p:"Enter bio for the contact card",contact_card_home_address:"Enter home address",contact_card_home_address_p:"Contact card home address",contact_card_work_address:"Enter work address",contact_card_work_address_p:"Contact card work address",contact_card_social:"Choose social media links to your Tapni profile <br>in order to add them in the contact card",contact_card_social_p:"Choose social media links for the contact card",link_text_p:"Link Text",link_icon:"Set text under the link icon",direct_pick:"Pick a direct link",direct_p:"When you tap someone's phone, <br> this link will be opened instead of your full profile.",password_change:"Change password",password_repeat:"Repeat password",password_reset_t:"Password reset",password_current:"Enter your current password",password_current_p:"Current Password",password_new:"Enter your new password",password_new_p:"New Password",password_new_repeat:"Enter your new password again",password_new_repeat_p:"Enter your new password again",password_update:"Password update",password_reset:`If you can't remember your current password,<br>
@@ -1315,7 +1315,10 @@ const aa = {
1315
1315
  "setDisplay",
1316
1316
  "setState",
1317
1317
  "setResponseType",
1318
- "switchAccount"
1318
+ "switchAccount",
1319
+ "loginSetup",
1320
+ "loginSuccess",
1321
+ "refreshTokenAction"
1319
1322
  ])
1320
1323
  },
1321
1324
  watch: {
@@ -1409,7 +1412,7 @@ function ka(n, e, t, r, o, i) {
1409
1412
  const po = /* @__PURE__ */ mt(ua, [["render", ka], ["__scopeId", "data-v-615ed484"]]), Ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1410
1413
  __proto__: null,
1411
1414
  default: po
1412
- }, Symbol.toStringTag, { value: "Module" })), Ea = "0.0.156", hr = {
1415
+ }, Symbol.toStringTag, { value: "Module" })), Ea = "0.0.158", hr = {
1413
1416
  getMe() {
1414
1417
  return ce().get("/users/me");
1415
1418
  },
@@ -5550,7 +5553,7 @@ Tanıştığınız herkesi etkileyin 😎 <br> Kendinize bir tane ayırın 👇`
5550
5553
  choose_other_login_methods: "다른 로그인 방법 선택하기",
5551
5554
  no_sso_logins: "귀하의 회사는 SSO 로그인을 사용하지 않습니다. 관리자에게 문의하십시오."
5552
5555
  }
5553
- }, Ao = () => Promise.resolve().then(() => Ca), Sa = () => Promise.resolve().then(() => qc), Ia = () => Promise.resolve().then(() => Ul), Aa = () => Promise.resolve().then(() => wd), Ra = () => import("./Account-gL0FSIxc.js"), Pa = () => Promise.resolve().then(() => du), Ma = () => Promise.resolve().then(() => Id), Na = () => import("./QR-SuxiYcMd.js"), Oa = () => Promise.resolve().then(() => xu), La = [
5556
+ }, Ao = () => Promise.resolve().then(() => Ca), Sa = () => Promise.resolve().then(() => qc), Ia = () => Promise.resolve().then(() => Ul), Aa = () => Promise.resolve().then(() => wd), Ra = () => import("./Account-9gRJi_gS.js"), Pa = () => Promise.resolve().then(() => du), Ma = () => Promise.resolve().then(() => Id), Na = () => import("./QR-usDlkdAk.js"), Oa = () => Promise.resolve().then(() => xu), La = [
5554
5557
  {
5555
5558
  path: "/welcome",
5556
5559
  name: "AuthWelcome",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tapni/auth",
3
- "version": "0.0.156",
3
+ "version": "0.0.158",
4
4
  "type": "module",
5
5
  "main": "./dist/TapniAuth.umd.js",
6
6
  "module": "./dist/TapniAuth.es.js",
@@ -59,7 +59,10 @@ export default {
59
59
  'setDisplay',
60
60
  'setState',
61
61
  'setResponseType',
62
- 'switchAccount'
62
+ 'switchAccount',
63
+ 'loginSetup',
64
+ 'loginSuccess',
65
+ 'refreshTokenAction'
63
66
  ])
64
67
  },
65
68
  watch: {