@viibe/impulse-integration-js 202608.4.0 → 202609.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/babel.config.json CHANGED
@@ -1,10 +1,5 @@
1
1
  {
2
- "presets": [
3
- [
4
- "@babel/preset-env",
5
- {
6
- "useBuiltIns": "entry"
7
- }
8
- ]
9
- ]
10
- }
2
+ "presets": [
3
+ "@babel/preset-env"
4
+ ]
5
+ }
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1787237253976" clover="3.2.0">
3
- <project timestamp="1787237253976" name="All files">
2
+ <coverage generated="1788427690430" clover="3.2.0">
3
+ <project timestamp="1788427690431" name="All files">
4
4
  <metrics statements="105" coveredstatements="45" conditionals="68" coveredconditionals="22" methods="22" coveredmethods="6" elements="195" coveredelements="73" complexity="0" loc="105" ncloc="105" packages="1" files="1" classes="1"/>
5
5
  <file name="index.js" path="/home/jenkins/workspace/VIIBE_viibe-impulse_main/impulse-integration-js/src/index.js">
6
6
  <metrics statements="105" coveredstatements="45" conditionals="68" coveredconditionals="22" methods="22" coveredmethods="6"/>
@@ -9,7 +9,7 @@ var jumpToCode = (function init() {
9
9
  // We don't want to select elements that are direct descendants of another match
10
10
  var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
11
11
 
12
- // Selecter that finds elements on the page to which we can jump
12
+ // Selector that finds elements on the page to which we can jump
13
13
  var selector =
14
14
  fileListingElements.join(', ') +
15
15
  ', ' +
Binary file
@@ -57,7 +57,7 @@
57
57
  <template id="filterTemplate">
58
58
  <div class="quiet">
59
59
  Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
60
+ <input type="search" id="fileSearch">
61
61
  </div>
62
62
  </template>
63
63
  </div>
@@ -101,7 +101,7 @@
101
101
  <div class='footer quiet pad2 space-top1 center small'>
102
102
  Code coverage generated by
103
103
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
104
- at Thu Aug 20 2026 14:47:33 GMT+0000 (Coordinated Universal Time)
104
+ at 2026-09-03T09:28:10.418Z
105
105
  </div>
106
106
  <script src="prettify.js"></script>
107
107
  <script>
@@ -57,7 +57,7 @@
57
57
  <template id="filterTemplate">
58
58
  <div class="quiet">
59
59
  Filter:
60
- <input oninput="onInput()" type="search" id="fileSearch">
60
+ <input type="search" id="fileSearch">
61
61
  </div>
62
62
  </template>
63
63
  </div>
@@ -1057,7 +1057,7 @@ Viibe.Auth = ViibeAuth;
1057
1057
  <div class='footer quiet pad2 space-top1 center small'>
1058
1058
  Code coverage generated by
1059
1059
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
1060
- at Thu Aug 20 2026 14:47:33 GMT+0000 (Coordinated Universal Time)
1060
+ at 2026-09-03T09:28:10.418Z
1061
1061
  </div>
1062
1062
  <script src="prettify.js"></script>
1063
1063
  <script>
@@ -27,17 +27,31 @@ var addSorting = (function() {
27
27
  function onFilterInput() {
28
28
  const searchValue = document.getElementById('fileSearch').value;
29
29
  const rows = document.getElementsByTagName('tbody')[0].children;
30
+
31
+ // Try to create a RegExp from the searchValue. If it fails (invalid regex),
32
+ // it will be treated as a plain text search
33
+ let searchRegex;
34
+ try {
35
+ searchRegex = new RegExp(searchValue, 'i'); // 'i' for case-insensitive
36
+ } catch (error) {
37
+ searchRegex = null;
38
+ }
39
+
30
40
  for (let i = 0; i < rows.length; i++) {
31
41
  const row = rows[i];
32
- if (
33
- row.textContent
34
- .toLowerCase()
35
- .includes(searchValue.toLowerCase())
36
- ) {
37
- row.style.display = '';
42
+ let isMatch = false;
43
+
44
+ if (searchRegex) {
45
+ // If a valid regex was created, use it for matching
46
+ isMatch = searchRegex.test(row.textContent);
38
47
  } else {
39
- row.style.display = 'none';
48
+ // Otherwise, fall back to the original plain text search
49
+ isMatch = row.textContent
50
+ .toLowerCase()
51
+ .includes(searchValue.toLowerCase());
40
52
  }
53
+
54
+ row.style.display = isMatch ? '' : 'none';
41
55
  }
42
56
  }
43
57
 
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var o in r)("object"==typeof exports?exports:t)[o]=r[o]}}(self,(()=>(()=>{var t={2:t=>{"use strict";t.exports=Math.min},39:(t,e,r)=>{"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(333);t.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},64:(t,e,r)=>{"use strict";var o=r(612);t.exports=o.getPrototypeOf||null},68:t=>{"use strict";t.exports=SyntaxError},76:t=>{"use strict";t.exports=Function.prototype.call},93:(t,e,r)=>{"use strict";var o=r(459);t.exports=function(t){return o(t)||0===t?t:t<0?-1:1}},119:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},126:(t,e,r)=>{"use strict";var o=r(743),n=r(675),i=r(76),a=r(144);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new n("a function is required");return a(o,i,t)}},144:(t,e,r)=>{"use strict";var o=r(743),n=r(621),i=r(76),a=r(119);t.exports=a||o.call(i,n)},176:(t,e,r)=>{"use strict";var o,n=r(126),i=r(795);try{o=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!o&&i&&i(Object.prototype,"__proto__"),c=Object,l=c.getPrototypeOf;t.exports=a&&"function"==typeof a.get?n([a.get]):"function"==typeof l&&function(t){return l(null==t?t:c(t))}},188:t=>{"use strict";t.exports=Math.max},237:t=>{"use strict";t.exports=EvalError},271:(t,e,r)=>{"use strict";var o=r(453),n=r(556),i=r(859),a=r(507),c=r(675),l=o("%WeakMap%",!0),p=n("WeakMap.prototype.get",!0),u=n("WeakMap.prototype.set",!0),f=n("WeakMap.prototype.has",!0),s=n("WeakMap.prototype.delete",!0);t.exports=l?function(){var t,e,r={assert:function(t){if(!r.has(t))throw new c("Side channel does not contain "+i(t))},delete:function(r){if(l&&r&&("object"==typeof r||"function"==typeof r)){if(t)return s(t,r)}else if(a&&e)return e.delete(r);return!1},get:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&t?p(t,r):e&&e.get(r)},has:function(r){return l&&r&&("object"==typeof r||"function"==typeof r)&&t?f(t,r):!!e&&e.has(r)},set:function(r,o){l&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new l),u(t,r,o)):a&&(e||(e=a()),e.set(r,o))}};return r}:a},290:t=>{"use strict";t.exports=RangeError},333:t=>{"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var o in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},345:t=>{"use strict";t.exports=URIError},353:t=>{"use strict";var e=Object.prototype.toString,r=Math.max,o=function(t,e){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var n=0;n<e.length;n+=1)r[n+t.length]=e[n];return r};t.exports=function(t){var n=this;if("function"!=typeof n||"[object Function]"!==e.apply(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var i,a=function(t){for(var e=[],r=1,o=0;r<t.length;r+=1,o+=1)e[o]=t[r];return e}(arguments),c=r(0,n.length-a.length),l=[],p=0;p<c;p++)l[p]="$"+p;if(i=Function("binder","return function ("+function(t){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=",");return e}(l)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var e=n.apply(this,o(a,arguments));return Object(e)===e?e:this}return n.apply(t,o(a,arguments))})),n.prototype){var u=function(){};u.prototype=n.prototype,i.prototype=new u,u.prototype=null}return i}},373:(t,e,r)=>{"use strict";var o=r(636),n=r(642),i=r(765);t.exports={formats:i,parse:n,stringify:o}},383:t=>{"use strict";t.exports=Error},414:t=>{"use strict";t.exports=Math.round},453:(t,e,r)=>{"use strict";var o,n=r(612),i=r(383),a=r(237),c=r(290),l=r(538),p=r(68),u=r(675),f=r(345),s=r(514),y=r(968),d=r(188),h=r(2),m=r(880),g=r(414),b=r(93),v=Function,w=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch(t){}},S=r(795),A=r(655),x=function(){throw new u},O=S?function(){try{return x}catch(t){try{return S(arguments,"callee").get}catch(t){return x}}}():x,j=r(39)(),E=r(628),P=r(64),I=r(648),k=r(621),D=r(76),_={},R="undefined"!=typeof Uint8Array&&E?E(Uint8Array):o,M={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":j&&E?E([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":_,"%AsyncGenerator%":_,"%AsyncGeneratorFunction%":_,"%AsyncIteratorPrototype%":_,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?o:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":_,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":j&&E?E(E([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&j&&E?E((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":c,"%ReferenceError%":l,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&j&&E?E((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":j&&E?E(""[Symbol.iterator]()):o,"%Symbol%":j?Symbol:o,"%SyntaxError%":p,"%ThrowTypeError%":O,"%TypedArray%":R,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":f,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":k,"%Object.defineProperty%":A,"%Object.getPrototypeOf%":P,"%Math.abs%":s,"%Math.floor%":y,"%Math.max%":d,"%Math.min%":h,"%Math.pow%":m,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":I};if(E)try{null.error}catch(t){var F=E(E(t));M["%Error.prototype%"]=F}var N=function t(e){var r;if("%AsyncFunction%"===e)r=w("async function () {}");else if("%GeneratorFunction%"===e)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=w("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&E&&(r=E(n.prototype))}return M[e]=r,r},T={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},U=r(743),L=r(957),B=U.call(D,Array.prototype.concat),C=U.call(k,Array.prototype.splice),W=U.call(D,String.prototype.replace),K=U.call(D,String.prototype.slice),H=U.call(D,RegExp.prototype.exec),z=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,$=function(t,e){var r,o=t;if(L(T,o)&&(o="%"+(r=T[o])[0]+"%"),L(M,o)){var n=M[o];if(n===_&&(n=N(o)),void 0===n&&!e)throw new u("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new p("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===H(/^%?[^%]*%?$/,t))throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=K(t,0,1),r=K(t,-1);if("%"===e&&"%"!==r)throw new p("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new p("invalid intrinsic syntax, expected opening `%`");var o=[];return W(t,z,(function(t,e,r,n){o[o.length]=r?W(n,G,"$1"):e||t})),o}(t),o=r.length>0?r[0]:"",n=$("%"+o+"%",e),i=n.name,a=n.value,c=!1,l=n.alias;l&&(o=l[0],C(r,B([0,1],l)));for(var f=1,s=!0;f<r.length;f+=1){var y=r[f],d=K(y,0,1),h=K(y,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new p("property names with quotes must have matching quotes");if("constructor"!==y&&s||(c=!0),L(M,i="%"+(o+="."+y)+"%"))a=M[i];else if(null!=a){if(!(y in a)){if(!e)throw new u("base intrinsic for "+t+" exists, but the property is not available.");return}if(S&&f+1>=r.length){var m=S(a,y);a=(s=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[y]}else s=L(a,y),a=a[y];s&&!c&&(M[i]=a)}}return a}},459:t=>{"use strict";t.exports=Number.isNaN||function(t){return t!=t}},497:(t,e,r)=>{function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function i(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t}var a=r(373);function c(t){return function(e){return Boolean(e.isTrusted&&0===e.origin.indexOf(t))}}function l(t){var e=new URL(t),r="".concat(e.protocol,"//").concat(e.host),o=window.screen.width/2-240,n=window.screen.height/2-300,i=["toolbar=no","location=no","directories=no","status=no","menubar=no","scrollbars=no","resizable=no","copyhistory=no","width=".concat(480),"height=".concat(600),"top=".concat(n),"left=".concat(o)];return new Promise((function(e,o){var n=window.open(t,"Authorization",i.join(", "));n||o("Failed to open window");var a=setInterval((function(){n.closed&&(l(),o("User closed window"))}),100);function l(){window.removeEventListener("message",p),clearInterval(a)}function p(t){if(!c(r)(t))return null;if(t.data.token&&(l(),e(t.data.token)),t.data.error&&(l(),o(t.data.error)),t.data&&t.data.event&&t.data.payload)switch(t.data.event){case"authentication:success":return l(),e(t.data);case"authentication:failure":return l(),o(t.data)}return null}window.addEventListener("message",p)}))}var p=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auth.viibe.pro";o(this,t),this.host=e}return i(t,[{key:"loginZendesk",value:function(t){var e=document.location.origin;return l("https://".concat(this.host,"/auth/zendesk/login?subdomain=").concat(t,"&origin=").concat(e))}}]),t}(),u=function(){function t(e){o(this,t),this.handlers=[],this.host=e.host,this.viibeDomain=/^localhost/.test(this.host)?"http://".concat(this.host):"https://".concat(this.host),this.strategyIdentifier=e.strategyIdentifier,this.isViibeEvent=c(this.viibeDomain),window.addEventListener("message",this.onMessage.bind(this))}return i(t,[{key:"createNotificationIframe",value:function(){if(!this.host)throw new Error("fillHost");if(!this.strategyIdentifier)throw new Error("fillStrategyIdentifier");var t=document.createElement("iframe");return t.name="viibe-".concat(Math.floor(1e4*Math.random())),t.style="border: 0;width: 0;",t.src="".concat(this.viibeDomain,"/integration/features/notifications"),t}},{key:"createCallIframe",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.host)throw new Error("fillHost");if(!this.strategyIdentifier)throw new Error("fillStrategyIdentifier - this identifier should match exactly your viibe strategy identifier");var r=this.generateIframeSrc(e),o=document.createElement("iframe");return o.name="viibe-".concat(Math.floor(1e4*Math.random())),o.style="border: 0;width: calc(100% - 1rem);margin: 0.5rem;",o.src=r,o.allow="geolocation;autoplay;microphone;camera;midi;encrypted-media;clipboard-write;",this.on(o,"document",(function(e){return t.onDocument(e)})),o}},{key:"generateIframeSrc",value:function(){var t,e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=r.components,n=r.links,i=r.o2m,c=void 0!==i&&i,l=r.ticket,p=r.locale,u=r.standalone,f=r.suggestions,s=r.token,y="".concat(this.viibeDomain,"/integration/features/ticket"),d={version:"2.0.0",origin:document.location.origin,resize:"true",strategyIdentifier:this.strategyIdentifier,title:null==l?void 0:l.title,thirdPartyId:null==l||null===(t=l.integration)||void 0===t?void 0:t.id,custom:null==l||null===(e=l.integration)||void 0===e?void 0:e.customData,links:n,suggestions:f,token:s,locale:p,components:o,standalone:[!0,!1].includes(u)?u:null,o2m:[!0,!1].includes(c)?c:null};for(var h in d)[null,void 0,""].includes(d[h])&&delete d[h];return"".concat(y,"?").concat(a.stringify(d))}},{key:"dispatch",value:function(t,e,r,o){return this.handlers.filter((function(e){return e.eventName===t&&(!e.windowName||e.windowName===o)})).map((function(t){return t.func(e,r)}))}},{key:"onMessage",value:function(t){return this.isViibeEvent(t)?t.data&&t.data.event?this.dispatch(t.data.event,t.data.payload,t,t.data.windowName):t.data&&t.data.token?this.dispatch("authentication:token",t.data.token,t):t.data&&t.data.error?this.dispatch("authentication:error",t.data.error,t):null:null}},{key:"on",value:function(t,e,r){"string"==typeof t&&"function"==typeof e&&void 0===r&&(r=e,e=t,t=null);var o={eventName:e,func:r,windowName:t?t.name:null};this.handlers.push(o)}},{key:"onDocument",value:function(t){window.open(t.signed_url,"_blank")}},{key:"authenticate",value:function(t){var e=document.location,r=e.protocol,o=e.host;return l("".concat(r,"//api-").concat(o,"/auth/login/").concat(t,"?origin=").concat(origin))}}]),t}();u.Auth=p,"undefined"!=typeof window&&(window.Viibe=u),t.exports=u},507:(t,e,r)=>{"use strict";var o=r(453),n=r(556),i=r(859),a=r(675),c=o("%Map%",!0),l=n("Map.prototype.get",!0),p=n("Map.prototype.set",!0),u=n("Map.prototype.has",!0),f=n("Map.prototype.delete",!0),s=n("Map.prototype.size",!0);t.exports=!!c&&function(){var t,e={assert:function(t){if(!e.has(t))throw new a("Side channel does not contain "+i(t))},delete:function(e){if(t){var r=f(t,e);return 0===s(t)&&(t=void 0),r}return!1},get:function(e){if(t)return l(t,e)},has:function(e){return!!t&&u(t,e)},set:function(e,r){t||(t=new c),p(t,e,r)}};return e}},514:t=>{"use strict";t.exports=Math.abs},538:t=>{"use strict";t.exports=ReferenceError},549:t=>{"use strict";t.exports=Object.getOwnPropertyDescriptor},556:(t,e,r)=>{"use strict";var o=r(453),n=r(126),i=n([o("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=o(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?n([r]):r}},612:t=>{"use strict";t.exports=Object},621:t=>{"use strict";t.exports=Function.prototype.apply},628:(t,e,r)=>{"use strict";var o=r(648),n=r(64),i=r(176);t.exports=o?function(t){return o(t)}:n?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return n(t)}:i?function(t){return i(t)}:null},634:()=>{},636:(t,e,r)=>{"use strict";var o=r(920),n=r(720),i=r(765),a=Object.prototype.hasOwnProperty,c={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},l=Array.isArray,p=Array.prototype.push,u=function(t,e){p.apply(t,l(e)?e:[e])},f=Date.prototype.toISOString,s=i.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,format:s,formatter:i.formatters[s],indices:!1,serializeDate:function(t){return f.call(t)},skipNulls:!1,strictNullHandling:!1},d={},h=function t(e,r,i,a,c,p,f,s,h,m,g,b,v,w,S,A,x,O){for(var j,E=e,P=O,I=0,k=!1;void 0!==(P=P.get(d))&&!k;){var D=P.get(e);if(I+=1,void 0!==D){if(D===I)throw new RangeError("Cyclic object value");k=!0}void 0===P.get(d)&&(I=0)}if("function"==typeof m?E=m(r,E):E instanceof Date?E=v(E):"comma"===i&&l(E)&&(E=n.maybeMap(E,(function(t){return t instanceof Date?v(t):t}))),null===E){if(p)return h&&!A?h(r,y.encoder,x,"key",w):r;E=""}if("string"==typeof(j=E)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||n.isBuffer(E))return h?[S(A?r:h(r,y.encoder,x,"key",w))+"="+S(h(E,y.encoder,x,"value",w))]:[S(r)+"="+S(String(E))];var _,R=[];if(void 0===E)return R;if("comma"===i&&l(E))A&&h&&(E=n.maybeMap(E,h)),_=[{value:E.length>0?E.join(",")||null:void 0}];else if(l(m))_=m;else{var M=Object.keys(E);_=g?M.sort(g):M}var F=s?String(r).replace(/\./g,"%2E"):String(r),N=a&&l(E)&&1===E.length?F+"[]":F;if(c&&l(E)&&0===E.length)return N+"[]";for(var T=0;T<_.length;++T){var U=_[T],L="object"==typeof U&&U&&void 0!==U.value?U.value:E[U];if(!f||null!==L){var B=b&&s?String(U).replace(/\./g,"%2E"):String(U),C=l(E)?"function"==typeof i?i(N,B):N:N+(b?"."+B:"["+B+"]");O.set(e,I);var W=o();W.set(d,O),u(R,t(L,C,i,a,c,p,f,s,"comma"===i&&A&&l(E)?null:h,m,g,b,v,w,S,A,x,W))}}return R};t.exports=function(t,e){var r,n=t,p=function(t){if(!t)return y;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||y.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o,n=i.formatters[r],p=y.filter;if(("function"==typeof t.filter||l(t.filter))&&(p=t.filter),o=t.arrayFormat in c?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":y.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===t.allowDots?!0===t.encodeDotInKeys||y.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:y.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:o,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:y.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:void 0===t.delimiter?y.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:y.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:y.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:y.encodeValuesOnly,filter:p,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:y.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:y.strictNullHandling}}(e);"function"==typeof p.filter?n=(0,p.filter)("",n):l(p.filter)&&(r=p.filter);var f=[];if("object"!=typeof n||null===n)return"";var s=c[p.arrayFormat],d="comma"===s&&p.commaRoundTrip;r||(r=Object.keys(n)),p.sort&&r.sort(p.sort);for(var m=o(),g=0;g<r.length;++g){var b=r[g],v=n[b];p.skipNulls&&null===v||u(f,h(v,b,s,d,p.allowEmptyArrays,p.strictNullHandling,p.skipNulls,p.encodeDotInKeys,p.encode?p.encoder:null,p.filter,p.sort,p.allowDots,p.serializeDate,p.format,p.formatter,p.encodeValuesOnly,p.charset,m))}var w=f.join(p.delimiter),S=!0===p.addQueryPrefix?"?":"";return p.charsetSentinel&&("iso-8859-1"===p.charset?S+="utf8=%26%2310003%3B&":S+="utf8=%E2%9C%93&"),w.length>0?S+w:""}},642:(t,e,r)=>{"use strict";var o=r(720),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:o.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},c=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},l=function(t,e,r){if(t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t},p=function(t,e,r,i){if(t){var a=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,c=/(\[[^[\]]*])/g,p=r.depth>0&&/(\[[^[\]]*])/.exec(a),u=p?a.slice(0,p.index):a,f=[];if(u){if(!r.plainObjects&&n.call(Object.prototype,u)&&!r.allowPrototypes)return;f.push(u)}for(var s=0;r.depth>0&&null!==(p=c.exec(a))&&s<r.depth;){if(s+=1,!r.plainObjects&&n.call(Object.prototype,p[1].slice(1,-1))&&!r.allowPrototypes)return;f.push(p[1])}if(p){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");f.push("["+a.slice(p.index)+"]")}return function(t,e,r,n){var i=0;if(t.length>0&&"[]"===t[t.length-1]){var a=t.slice(0,-1).join("");i=Array.isArray(e)&&e[a]?e[a].length:0}for(var c=n?e:l(e,r,i),p=t.length-1;p>=0;--p){var u,f=t[p];if("[]"===f&&r.parseArrays)u=r.allowEmptyArrays&&(""===c||r.strictNullHandling&&null===c)?[]:o.combine([],c);else{u=r.plainObjects?{__proto__:null}:{};var s="["===f.charAt(0)&&"]"===f.charAt(f.length-1)?f.slice(1,-1):f,y=r.decodeDotInKeys?s.replace(/%2E/g,"."):s,d=parseInt(y,10);r.parseArrays||""!==y?!isNaN(d)&&f!==y&&String(d)===y&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(u=[])[d]=c:"__proto__"!==y&&(u[y]=c):u={0:c}}c=u}return c}(f,e,r,i)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var e=void 0===t.charset?a.charset:t.charset,r=void 0===t.duplicates?a.duplicates:t.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||a.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||o.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:a.strictDepth,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}}(e);if(""===t||null==t)return r.plainObjects?{__proto__:null}:{};for(var u="string"==typeof t?function(t,e){var r={__proto__:null},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t;p=p.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=e.parameterLimit===1/0?void 0:e.parameterLimit,f=p.split(e.delimiter,e.throwOnLimitExceeded?u+1:u);if(e.throwOnLimitExceeded&&f.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var s,y=-1,d=e.charset;if(e.charsetSentinel)for(s=0;s<f.length;++s)0===f[s].indexOf("utf8=")&&("utf8=%E2%9C%93"===f[s]?d="utf-8":"utf8=%26%2310003%3B"===f[s]&&(d="iso-8859-1"),y=s,s=f.length);for(s=0;s<f.length;++s)if(s!==y){var h,m,g=f[s],b=g.indexOf("]="),v=-1===b?g.indexOf("="):b+1;-1===v?(h=e.decoder(g,a.decoder,d,"key"),m=e.strictNullHandling?null:""):(h=e.decoder(g.slice(0,v),a.decoder,d,"key"),m=o.maybeMap(l(g.slice(v+1),e,i(r[h])?r[h].length:0),(function(t){return e.decoder(t,a.decoder,d,"value")}))),m&&e.interpretNumericEntities&&"iso-8859-1"===d&&(m=c(String(m))),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m);var w=n.call(r,h);w&&"combine"===e.duplicates?r[h]=o.combine(r[h],m):w&&"last"!==e.duplicates||(r[h]=m)}return r}(t,r):t,f=r.plainObjects?{__proto__:null}:{},s=Object.keys(u),y=0;y<s.length;++y){var d=s[y],h=p(d,u[d],r,"string"==typeof t);f=o.merge(f,h,r)}return!0===r.allowSparse?f:o.compact(f)}},648:t=>{"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},655:t=>{"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},675:t=>{"use strict";t.exports=TypeError},720:(t,e,r)=>{"use strict";var o=r(765),n=Object.prototype.hasOwnProperty,i=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),c=function(t,e){for(var r=e&&e.plainObjects?{__proto__:null}:{},o=0;o<t.length;++o)void 0!==t[o]&&(r[o]=t[o]);return r},l=1024;t.exports={arrayToObject:c,assign:function(t,e){return Object.keys(e).reduce((function(t,r){return t[r]=e[r],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=[],o=0;o<e.length;++o)for(var n=e[o],a=n.obj[n.prop],c=Object.keys(a),l=0;l<c.length;++l){var p=c[l],u=a[p];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(e.push({obj:a,prop:p}),r.push(u))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(i(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&o.push(r[n]);e.obj[e.prop]=o}}}(e),t},decode:function(t,e,r){var o=t.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(t){return o}},encode:function(t,e,r,n,i){if(0===t.length)return t;var c=t;if("symbol"==typeof t?c=Symbol.prototype.toString.call(t):"string"!=typeof t&&(c=String(t)),"iso-8859-1"===r)return escape(c).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var p="",u=0;u<c.length;u+=l){for(var f=c.length>=l?c.slice(u,u+l):c,s=[],y=0;y<f.length;++y){var d=f.charCodeAt(y);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===o.RFC1738&&(40===d||41===d)?s[s.length]=f.charAt(y):d<128?s[s.length]=a[d]:d<2048?s[s.length]=a[192|d>>6]+a[128|63&d]:d<55296||d>=57344?s[s.length]=a[224|d>>12]+a[128|d>>6&63]+a[128|63&d]:(y+=1,d=65536+((1023&d)<<10|1023&f.charCodeAt(y)),s[s.length]=a[240|d>>18]+a[128|d>>12&63]+a[128|d>>6&63]+a[128|63&d])}p+=s.join("")}return p},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(i(t)){for(var r=[],o=0;o<t.length;o+=1)r.push(e(t[o]));return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r&&"function"!=typeof r){if(i(e))e.push(r);else{if(!e||"object"!=typeof e)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!n.call(Object.prototype,r))&&(e[r]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(r);var a=e;return i(e)&&!i(r)&&(a=c(e,o)),i(e)&&i(r)?(r.forEach((function(r,i){if(n.call(e,i)){var a=e[i];a&&"object"==typeof a&&r&&"object"==typeof r?e[i]=t(a,r,o):e.push(r)}else e[i]=r})),e):Object.keys(r).reduce((function(e,i){var a=r[i];return n.call(e,i)?e[i]=t(e[i],a,o):e[i]=a,e}),a)}}},743:(t,e,r)=>{"use strict";var o=r(353);t.exports=Function.prototype.bind||o},765:t=>{"use strict";var e=String.prototype.replace,r=/%20/g,o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:o}},795:(t,e,r)=>{"use strict";var o=r(549);if(o)try{o([],"length")}catch(t){o=null}t.exports=o},803:(t,e,r)=>{"use strict";var o=r(859),n=r(675),i=function(t,e,r){for(var o,n=t;null!=(o=n.next);n=o)if(o.key===e)return n.next=o.next,r||(o.next=t.next,t.next=o),o};t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new n("Side channel does not contain "+o(t))},delete:function(e){var r=t&&t.next,o=function(t,e){if(t)return i(t,e,!0)}(t,e);return o&&r&&r===o&&(t=void 0),!!o},get:function(e){return function(t,e){if(t){var r=i(t,e);return r&&r.value}}(t,e)},has:function(e){return function(t,e){return!!t&&!!i(t,e)}(t,e)},set:function(e,r){t||(t={next:void 0}),function(t,e,r){var o=i(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}}(t,e,r)}};return e}},859:(t,e,r)=>{var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,c="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&c?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=c&&l&&"function"==typeof l.get?l.get:null,u=c&&Set.prototype.forEach,f="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,s="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,A=RegExp.prototype.test,x=Array.prototype.concat,O=Array.prototype.join,j=Array.prototype.slice,E=Math.floor,P="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,D="function"==typeof Symbol&&"object"==typeof Symbol.iterator,_="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,R=Object.prototype.propertyIsEnumerable,M=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function F(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||A.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var o=t<0?-E(-t):E(t);if(o!==t){var n=String(o),i=b.call(e,n.length+1);return v.call(n,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(e,r,"$&_")}var N=r(634),T=N.custom,U=G(T)?T:null,L={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function C(t,e,r){var o=r.quoteStyle||e,n=L[o];return n+t+n}function W(t){return v.call(String(t),/"/g,"&quot;")}function K(t){return!_||!("object"==typeof t&&(_ in t||void 0!==t[_]))}function H(t){return"[object Array]"===q(t)&&K(t)}function z(t){return"[object RegExp]"===q(t)&&K(t)}function G(t){if(D)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!k)return!1;try{return k.call(t),!0}catch(t){}return!1}t.exports=function t(e,o,n,c){var l=o||{};if(V(l,"quoteStyle")&&!V(L,l.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!V(l,"customInspect")||l.customInspect;if("boolean"!=typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=l.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return J(e,l);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var A=String(e);return w?F(e,A):A}if("bigint"==typeof e){var E=String(e)+"n";return w?F(e,E):E}var I=void 0===l.depth?5:l.depth;if(void 0===n&&(n=0),n>=I&&I>0&&"object"==typeof e)return H(e)?"[Array]":"[Object]";var T,B=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=O.call(Array(t.indent+1)," ")}return{base:r,prev:O.call(Array(e+1),r)}}(l,n);if(void 0===c)c=[];else if(Q(c,e)>=0)return"[Circular]";function $(e,r,o){if(r&&(c=j.call(c)).push(r),o){var i={depth:l.depth};return V(l,"quoteStyle")&&(i.quoteStyle=l.quoteStyle),t(e,i,n+1,c)}return t(e,l,n+1,c)}if("function"==typeof e&&!z(e)){var Z=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),ot=rt(e,$);return"[Function"+(Z?": "+Z:" (anonymous)")+"]"+(ot.length>0?" { "+O.call(ot,", ")+" }":"")}if(G(e)){var nt=D?v.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(e);return"object"!=typeof e||D?nt:X(nt)}if((T=e)&&"object"==typeof T&&("undefined"!=typeof HTMLElement&&T instanceof HTMLElement||"string"==typeof T.nodeName&&"function"==typeof T.getAttribute)){for(var it="<"+S.call(String(e.nodeName)),at=e.attributes||[],ct=0;ct<at.length;ct++)it+=" "+at[ct].name+"="+C(W(at[ct].value),"double",l);return it+=">",e.childNodes&&e.childNodes.length&&(it+="..."),it+"</"+S.call(String(e.nodeName))+">"}if(H(e)){if(0===e.length)return"[]";var lt=rt(e,$);return B&&!function(t){for(var e=0;e<t.length;e++)if(Q(t[e],"\n")>=0)return!1;return!0}(lt)?"["+et(lt,B)+"]":"[ "+O.call(lt,", ")+" ]"}if(function(t){return"[object Error]"===q(t)&&K(t)}(e)){var pt=rt(e,$);return"cause"in Error.prototype||!("cause"in e)||R.call(e,"cause")?0===pt.length?"["+String(e)+"]":"{ ["+String(e)+"] "+O.call(pt,", ")+" }":"{ ["+String(e)+"] "+O.call(x.call("[cause]: "+$(e.cause),pt),", ")+" }"}if("object"==typeof e&&h){if(U&&"function"==typeof e[U]&&N)return N(e,{depth:I-n});if("symbol"!==h&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{p.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var ut=[];return a&&a.call(e,(function(t,r){ut.push($(r,e,!0)+" => "+$(t,e))})),tt("Map",i.call(e),ut,B)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var ft=[];return u&&u.call(e,(function(t){ft.push($(t,e))})),tt("Set",p.call(e),ft,B)}if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{s.call(t,s)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return Y("WeakMap");if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{s.call(t,s);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return Y("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(e))return Y("WeakRef");if(function(t){return"[object Number]"===q(t)&&K(t)}(e))return X($(Number(e)));if(function(t){if(!t||"object"!=typeof t||!P)return!1;try{return P.call(t),!0}catch(t){}return!1}(e))return X($(P.call(e)));if(function(t){return"[object Boolean]"===q(t)&&K(t)}(e))return X(d.call(e));if(function(t){return"[object String]"===q(t)&&K(t)}(e))return X($(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&e===globalThis||void 0!==r.g&&e===r.g)return"{ [object globalThis] }";if(!function(t){return"[object Date]"===q(t)&&K(t)}(e)&&!z(e)){var st=rt(e,$),yt=M?M(e)===Object.prototype:e instanceof Object||e.constructor===Object,dt=e instanceof Object?"":"null prototype",ht=!yt&&_&&Object(e)===e&&_ in e?b.call(q(e),8,-1):dt?"Object":"",mt=(yt||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ht||dt?"["+O.call(x.call([],ht||[],dt||[]),": ")+"] ":"");return 0===st.length?mt+"{}":B?mt+"{"+et(st,B)+"}":mt+"{ "+O.call(st,", ")+" }"}return String(e)};var $=Object.prototype.hasOwnProperty||function(t){return t in this};function V(t,e){return $.call(t,e)}function q(t){return h.call(t)}function Q(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function J(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return J(b.call(t,0,e.maxStringLength),e)+o}var n=B[e.quoteStyle||"single"];return n.lastIndex=0,C(v.call(v.call(t,n,"\\$1"),/[\x00-\x1f]/g,Z),"single",e)}function Z(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function X(t){return"Object("+t+")"}function Y(t){return t+" { ? }"}function tt(t,e,r,o){return t+" ("+e+") {"+(o?et(r,o):O.call(r,", "))+"}"}function et(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+O.call(t,","+r)+"\n"+e.prev}function rt(t,e){var r=H(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=V(t,n)?e(t[n],t):""}var i,a="function"==typeof I?I(t):[];if(D){i={};for(var c=0;c<a.length;c++)i["$"+a[c]]=a[c]}for(var l in t)V(t,l)&&(r&&String(Number(l))===l&&l<t.length||D&&i["$"+l]instanceof Symbol||(A.call(/[^\w$]/,l)?o.push(e(l,t)+": "+e(t[l],t)):o.push(l+": "+e(t[l],t))));if("function"==typeof I)for(var p=0;p<a.length;p++)R.call(t,a[p])&&o.push("["+e(a[p])+"]: "+e(t[a[p]],t));return o}},880:t=>{"use strict";t.exports=Math.pow},920:(t,e,r)=>{"use strict";var o=r(675),n=r(859),i=r(803),a=r(507),c=r(271)||a||i;t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new o("Side channel does not contain "+n(t))},delete:function(e){return!!t&&t.delete(e)},get:function(e){return t&&t.get(e)},has:function(e){return!!t&&t.has(e)},set:function(e,r){t||(t=c()),t.set(e,r)}};return e}},957:(t,e,r)=>{"use strict";var o=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=r(743);t.exports=i.call(o,n)},968:t=>{"use strict";t.exports=Math.floor}},e={};function r(o){var n=e[o];if(void 0!==n)return n.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r(497)})()));
1
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var r=e();for(var o in r)("object"==typeof exports?exports:t)[o]=r[o]}}(self,()=>(()=>{var t={497(t,e,r){const o=r(373);function n(t){return function(e){return Boolean(e.isTrusted&&0===e.origin.indexOf(t))}}function i(t){const e=new URL(t),r=`${e.protocol}//${e.host}`,o=window.screen.width/2-240,i=["toolbar=no","location=no","directories=no","status=no","menubar=no","scrollbars=no","resizable=no","copyhistory=no","width=480","height=600","top="+(window.screen.height/2-300),`left=${o}`];return new Promise((e,o)=>{const a=window.open(t,"Authorization",i.join(", "));a||o("Failed to open window");const l=setInterval(()=>{a.closed&&(c(),o("User closed window"))},100);function c(){window.removeEventListener("message",p),clearInterval(l)}function p(t){if(!n(r)(t))return null;if(t.data.token&&(c(),e(t.data.token)),t.data.error&&(c(),o(t.data.error)),t.data&&t.data.event&&t.data.payload)switch(t.data.event){case"authentication:success":return c(),e(t.data);case"authentication:failure":return c(),o(t.data)}return null}window.addEventListener("message",p)})}class a{constructor(t){this.handlers=[],this.host=t.host,this.viibeDomain=/^localhost/.test(this.host)?`http://${this.host}`:`https://${this.host}`,this.strategyIdentifier=t.strategyIdentifier,this.isViibeEvent=n(this.viibeDomain),window.addEventListener("message",this.onMessage.bind(this))}createNotificationIframe(){if(!this.host)throw new Error("fillHost");if(!this.strategyIdentifier)throw new Error("fillStrategyIdentifier");const t=document.createElement("iframe");return t.name=`viibe-${Math.floor(1e4*Math.random())}`,t.style="border: 0;width: 0;",t.src=`${this.viibeDomain}/integration/features/notifications`,t}createCallIframe(t={}){if(!this.host)throw new Error("fillHost");if(!this.strategyIdentifier)throw new Error("fillStrategyIdentifier - this identifier should match exactly your viibe strategy identifier");const e=this.generateIframeSrc(t),r=document.createElement("iframe");return r.name=`viibe-${Math.floor(1e4*Math.random())}`,r.style="border: 0;width: calc(100% - 1rem);margin: 0.5rem;",r.src=e,r.allow="geolocation;autoplay;microphone;camera;midi;encrypted-media;clipboard-write;",this.on(r,"document",t=>this.onDocument(t)),r}generateIframeSrc(t={}){const{components:e,links:r,o2m:n=!1,ticket:i,locale:a,standalone:l,suggestions:c,token:p}=t,u=`${this.viibeDomain}/integration/features/ticket`,s={version:"2.0.0",origin:document.location.origin,resize:"true",strategyIdentifier:this.strategyIdentifier,title:i?.title,thirdPartyId:i?.integration?.id,custom:i?.integration?.customData,links:r,suggestions:c,token:p,locale:a,components:e,standalone:[!0,!1].includes(l)?l:null,o2m:[!0,!1].includes(n)?n:null};for(let t in s)[null,void 0,""].includes(s[t])&&delete s[t];return`${u}?${o.stringify(s)}`}dispatch(t,e,r,o){return this.handlers.filter(e=>e.eventName===t&&(!e.windowName||e.windowName===o)).map(t=>t.func(e,r))}onMessage(t){return this.isViibeEvent(t)?t.data&&t.data.event?this.dispatch(t.data.event,t.data.payload,t,t.data.windowName):t.data&&t.data.token?this.dispatch("authentication:token",t.data.token,t):t.data&&t.data.error?this.dispatch("authentication:error",t.data.error,t):null:null}on(t,e,r){"string"==typeof t&&"function"==typeof e&&void 0===r&&(r=e,e=t,t=null);const o={eventName:e,func:r,windowName:t?t.name:null};this.handlers.push(o)}onDocument(t){window.open(t.signed_url,"_blank")}authenticate(t){const{protocol:e,host:r}=document.location;return i(`${e}//api-${r}/auth/login/${t}?origin=${origin}`)}}a.Auth=class{constructor(t="auth.viibe.pro"){this.host=t}loginZendesk(t){const{origin:e}=document.location;return i(`https://${this.host}/auth/zendesk/login?subdomain=${t}&origin=${e}`)}},"undefined"!=typeof window&&(window.Viibe=a),t.exports=a},144(t,e,r){"use strict";var o=r(743),n=r(621),i=r(76),a=r(119);t.exports=a||o.call(i,n)},621(t){"use strict";t.exports=Function.prototype.apply},76(t){"use strict";t.exports=Function.prototype.call},126(t,e,r){"use strict";var o=r(743),n=r(675),i=r(76),a=r(144);t.exports=function(t){if(t.length<1||"function"!=typeof t[0])throw new n("a function is required");return a(o,i,t)}},119(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},556(t,e,r){"use strict";var o=r(453),n=r(126),i=n([o("%String.prototype.indexOf%")]);t.exports=function(t,e){var r=o(t,!!e);return"function"==typeof r&&i(t,".prototype.")>-1?n([r]):r}},176(t,e,r){"use strict";var o,n=r(126),i=r(795);try{o=[].__proto__===Array.prototype}catch(t){if(!t||"object"!=typeof t||!("code"in t)||"ERR_PROTO_ACCESS"!==t.code)throw t}var a=!!o&&i&&i(Object.prototype,"__proto__"),l=Object,c=l.getPrototypeOf;t.exports=a&&"function"==typeof a.get?n([a.get]):"function"==typeof c&&function(t){return c(null==t?t:l(t))}},655(t){"use strict";var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}t.exports=e},237(t){"use strict";t.exports=EvalError},383(t){"use strict";t.exports=Error},290(t){"use strict";t.exports=RangeError},538(t){"use strict";t.exports=ReferenceError},68(t){"use strict";t.exports=SyntaxError},675(t){"use strict";t.exports=TypeError},345(t){"use strict";t.exports=URIError},612(t){"use strict";t.exports=Object},353(t){"use strict";var e=Object.prototype.toString,r=Math.max,o=function(t,e){for(var r=[],o=0;o<t.length;o+=1)r[o]=t[o];for(var n=0;n<e.length;n+=1)r[n+t.length]=e[n];return r};t.exports=function(t){var n=this;if("function"!=typeof n||"[object Function]"!==e.apply(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var i,a=function(t){for(var e=[],r=1,o=0;r<t.length;r+=1,o+=1)e[o]=t[r];return e}(arguments),l=r(0,n.length-a.length),c=[],p=0;p<l;p++)c[p]="$"+p;if(i=Function("binder","return function ("+function(t){for(var e="",r=0;r<t.length;r+=1)e+=t[r],r+1<t.length&&(e+=",");return e}(c)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var e=n.apply(this,o(a,arguments));return Object(e)===e?e:this}return n.apply(t,o(a,arguments))}),n.prototype){var u=function(){};u.prototype=n.prototype,i.prototype=new u,u.prototype=null}return i}},743(t,e,r){"use strict";var o=r(353);t.exports=Function.prototype.bind||o},453(t,e,r){"use strict";var o,n=r(612),i=r(383),a=r(237),l=r(290),c=r(538),p=r(68),u=r(675),s=r(345),f=r(514),y=r(968),d=r(188),h=r(2),m=r(880),g=r(414),b=r(93),v=Function,w=function(t){try{return v('"use strict"; return ('+t+").constructor;")()}catch(t){}},S=r(795),O=r(655),A=function(){throw new u},x=S?function(){try{return A}catch(t){try{return S(arguments,"callee").get}catch(t){return A}}}():A,E=r(39)(),j=r(628),P=r(64),I=r(648),_=r(621),R=r(76),k={},D="undefined"!=typeof Uint8Array&&j?j(Uint8Array):o,L={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?o:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?o:ArrayBuffer,"%ArrayIteratorPrototype%":E&&j?j([][Symbol.iterator]()):o,"%AsyncFromSyncIteratorPrototype%":o,"%AsyncFunction%":k,"%AsyncGenerator%":k,"%AsyncGeneratorFunction%":k,"%AsyncIteratorPrototype%":k,"%Atomics%":"undefined"==typeof Atomics?o:Atomics,"%BigInt%":"undefined"==typeof BigInt?o:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?o:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?o:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?o:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":"undefined"==typeof Float16Array?o:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?o:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?o:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?o:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":k,"%Int8Array%":"undefined"==typeof Int8Array?o:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?o:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?o:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":E&&j?j(j([][Symbol.iterator]())):o,"%JSON%":"object"==typeof JSON?JSON:o,"%Map%":"undefined"==typeof Map?o:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&E&&j?j((new Map)[Symbol.iterator]()):o,"%Math%":Math,"%Number%":Number,"%Object%":n,"%Object.getOwnPropertyDescriptor%":S,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?o:Promise,"%Proxy%":"undefined"==typeof Proxy?o:Proxy,"%RangeError%":l,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?o:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?o:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&E&&j?j((new Set)[Symbol.iterator]()):o,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?o:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":E&&j?j(""[Symbol.iterator]()):o,"%Symbol%":E?Symbol:o,"%SyntaxError%":p,"%ThrowTypeError%":x,"%TypedArray%":D,"%TypeError%":u,"%Uint8Array%":"undefined"==typeof Uint8Array?o:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?o:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?o:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?o:Uint32Array,"%URIError%":s,"%WeakMap%":"undefined"==typeof WeakMap?o:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?o:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?o:WeakSet,"%Function.prototype.call%":R,"%Function.prototype.apply%":_,"%Object.defineProperty%":O,"%Object.getPrototypeOf%":P,"%Math.abs%":f,"%Math.floor%":y,"%Math.max%":d,"%Math.min%":h,"%Math.pow%":m,"%Math.round%":g,"%Math.sign%":b,"%Reflect.getPrototypeOf%":I};if(j)try{null.error}catch(t){var M=j(j(t));L["%Error.prototype%"]=M}var F=function t(e){var r;if("%AsyncFunction%"===e)r=w("async function () {}");else if("%GeneratorFunction%"===e)r=w("function* () {}");else if("%AsyncGeneratorFunction%"===e)r=w("async function* () {}");else if("%AsyncGenerator%"===e){var o=t("%AsyncGeneratorFunction%");o&&(r=o.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&j&&(r=j(n.prototype))}return L[e]=r,r},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=r(743),U=r(957),B=T.call(R,Array.prototype.concat),C=T.call(_,Array.prototype.splice),$=T.call(R,String.prototype.replace),W=T.call(R,String.prototype.slice),K=T.call(R,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,G=function(t,e){var r,o=t;if(U(N,o)&&(o="%"+(r=N[o])[0]+"%"),U(L,o)){var n=L[o];if(n===k&&(n=F(o)),void 0===n&&!e)throw new u("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:r,name:o,value:n}}throw new p("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new u("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new u('"allowMissing" argument must be a boolean');if(null===K(/^%?[^%]*%?$/,t))throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(t){var e=W(t,0,1),r=W(t,-1);if("%"===e&&"%"!==r)throw new p("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==e)throw new p("invalid intrinsic syntax, expected opening `%`");var o=[];return $(t,H,function(t,e,r,n){o[o.length]=r?$(n,z,"$1"):e||t}),o}(t),o=r.length>0?r[0]:"",n=G("%"+o+"%",e),i=n.name,a=n.value,l=!1,c=n.alias;c&&(o=c[0],C(r,B([0,1],c)));for(var s=1,f=!0;s<r.length;s+=1){var y=r[s],d=W(y,0,1),h=W(y,-1);if(('"'===d||"'"===d||"`"===d||'"'===h||"'"===h||"`"===h)&&d!==h)throw new p("property names with quotes must have matching quotes");if("constructor"!==y&&f||(l=!0),U(L,i="%"+(o+="."+y)+"%"))a=L[i];else if(null!=a){if(!(y in a)){if(!e)throw new u("base intrinsic for "+t+" exists, but the property is not available.");return}if(S&&s+1>=r.length){var m=S(a,y);a=(f=!!m)&&"get"in m&&!("originalValue"in m.get)?m.get:a[y]}else f=U(a,y),a=a[y];f&&!l&&(L[i]=a)}}return a}},64(t,e,r){"use strict";var o=r(612);t.exports=o.getPrototypeOf||null},648(t){"use strict";t.exports="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null},628(t,e,r){"use strict";var o=r(648),n=r(64),i=r(176);t.exports=o?function(t){return o(t)}:n?function(t){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("getProto: not an object");return n(t)}:i?function(t){return i(t)}:null},549(t){"use strict";t.exports=Object.getOwnPropertyDescriptor},795(t,e,r){"use strict";var o=r(549);if(o)try{o([],"length")}catch(t){o=null}t.exports=o},39(t,e,r){"use strict";var o="undefined"!=typeof Symbol&&Symbol,n=r(333);t.exports=function(){return"function"==typeof o&&"function"==typeof Symbol&&"symbol"==typeof o("foo")&&"symbol"==typeof Symbol("bar")&&n()}},333(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),r=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var o in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var n=Object.getOwnPropertySymbols(t);if(1!==n.length||n[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},957(t,e,r){"use strict";var o=Function.prototype.call,n=Object.prototype.hasOwnProperty,i=r(743);t.exports=i.call(o,n)},514(t){"use strict";t.exports=Math.abs},968(t){"use strict";t.exports=Math.floor},459(t){"use strict";t.exports=Number.isNaN||function(t){return t!=t}},188(t){"use strict";t.exports=Math.max},2(t){"use strict";t.exports=Math.min},880(t){"use strict";t.exports=Math.pow},414(t){"use strict";t.exports=Math.round},93(t,e,r){"use strict";var o=r(459);t.exports=function(t){return o(t)||0===t?t:t<0?-1:1}},859(t,e,r){var o="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=o&&n&&"function"==typeof n.get?n.get:null,a=o&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,p=l&&c&&"function"==typeof c.get?c.get:null,u=l&&Set.prototype.forEach,s="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,y="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,d=Boolean.prototype.valueOf,h=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,b=String.prototype.slice,v=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,O=RegExp.prototype.test,A=Array.prototype.concat,x=Array.prototype.join,E=Array.prototype.slice,j=Math.floor,P="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,R="function"==typeof Symbol&&"object"==typeof Symbol.iterator,k="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,D=Object.prototype.propertyIsEnumerable,L=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function M(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||O.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var o=t<0?-j(-t):j(t);if(o!==t){var n=String(o),i=b.call(e,n.length+1);return v.call(n,r,"$&_")+"."+v.call(v.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(e,r,"$&_")}var F=r(634),N=F.custom,T=z(N)?N:null,U={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function C(t,e,r){var o=r.quoteStyle||e,n=U[o];return n+t+n}function $(t){return v.call(String(t),/"/g,"&quot;")}function W(t){return!k||!("object"==typeof t&&(k in t||void 0!==t[k]))}function K(t){return"[object Array]"===q(t)&&W(t)}function H(t){return"[object RegExp]"===q(t)&&W(t)}function z(t){if(R)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!_)return!1;try{return _.call(t),!0}catch(t){}return!1}t.exports=function t(e,o,n,l){var c=o||{};if(V(c,"quoteStyle")&&!V(U,c.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(V(c,"maxStringLength")&&("number"==typeof c.maxStringLength?c.maxStringLength<0&&c.maxStringLength!==1/0:null!==c.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!V(c,"customInspect")||c.customInspect;if("boolean"!=typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(c,"indent")&&null!==c.indent&&"\t"!==c.indent&&!(parseInt(c.indent,10)===c.indent&&c.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(c,"numericSeparator")&&"boolean"!=typeof c.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var w=c.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return J(e,c);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var O=String(e);return w?M(e,O):O}if("bigint"==typeof e){var j=String(e)+"n";return w?M(e,j):j}var I=void 0===c.depth?5:c.depth;if(void 0===n&&(n=0),n>=I&&I>0&&"object"==typeof e)return K(e)?"[Array]":"[Object]";var N,B=function(t,e){var r;if("\t"===t.indent)r="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;r=x.call(Array(t.indent+1)," ")}return{base:r,prev:x.call(Array(e+1),r)}}(c,n);if(void 0===l)l=[];else if(Q(l,e)>=0)return"[Circular]";function G(e,r,o){if(r&&(l=E.call(l)).push(r),o){var i={depth:c.depth};return V(c,"quoteStyle")&&(i.quoteStyle=c.quoteStyle),t(e,i,n+1,l)}return t(e,c,n+1,l)}if("function"==typeof e&&!H(e)){var Z=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),ot=rt(e,G);return"[Function"+(Z?": "+Z:" (anonymous)")+"]"+(ot.length>0?" { "+x.call(ot,", ")+" }":"")}if(z(e)){var nt=R?v.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(e);return"object"!=typeof e||R?nt:X(nt)}if((N=e)&&"object"==typeof N&&("undefined"!=typeof HTMLElement&&N instanceof HTMLElement||"string"==typeof N.nodeName&&"function"==typeof N.getAttribute)){for(var it="<"+S.call(String(e.nodeName)),at=e.attributes||[],lt=0;lt<at.length;lt++)it+=" "+at[lt].name+"="+C($(at[lt].value),"double",c);return it+=">",e.childNodes&&e.childNodes.length&&(it+="..."),it+"</"+S.call(String(e.nodeName))+">"}if(K(e)){if(0===e.length)return"[]";var ct=rt(e,G);return B&&!function(t){for(var e=0;e<t.length;e++)if(Q(t[e],"\n")>=0)return!1;return!0}(ct)?"["+et(ct,B)+"]":"[ "+x.call(ct,", ")+" ]"}if(function(t){return"[object Error]"===q(t)&&W(t)}(e)){var pt=rt(e,G);return"cause"in Error.prototype||!("cause"in e)||D.call(e,"cause")?0===pt.length?"["+String(e)+"]":"{ ["+String(e)+"] "+x.call(pt,", ")+" }":"{ ["+String(e)+"] "+x.call(A.call("[cause]: "+G(e.cause),pt),", ")+" }"}if("object"==typeof e&&h){if(T&&"function"==typeof e[T]&&F)return F(e,{depth:I-n});if("symbol"!==h&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!i||!t||"object"!=typeof t)return!1;try{i.call(t);try{p.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var ut=[];return a&&a.call(e,function(t,r){ut.push(G(r,e,!0)+" => "+G(t,e))}),tt("Map",i.call(e),ut,B)}if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{p.call(t);try{i.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var st=[];return u&&u.call(e,function(t){st.push(G(t,e))}),tt("Set",p.call(e),st,B)}if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{s.call(t,s);try{f.call(t,f)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return Y("WeakMap");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{f.call(t,f);try{s.call(t,s)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return Y("WeakSet");if(function(t){if(!y||!t||"object"!=typeof t)return!1;try{return y.call(t),!0}catch(t){}return!1}(e))return Y("WeakRef");if(function(t){return"[object Number]"===q(t)&&W(t)}(e))return X(G(Number(e)));if(function(t){if(!t||"object"!=typeof t||!P)return!1;try{return P.call(t),!0}catch(t){}return!1}(e))return X(G(P.call(e)));if(function(t){return"[object Boolean]"===q(t)&&W(t)}(e))return X(d.call(e));if(function(t){return"[object String]"===q(t)&&W(t)}(e))return X(G(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&e===globalThis||void 0!==r.g&&e===r.g)return"{ [object globalThis] }";if(!function(t){return"[object Date]"===q(t)&&W(t)}(e)&&!H(e)){var ft=rt(e,G),yt=L?L(e)===Object.prototype:e instanceof Object||e.constructor===Object,dt=e instanceof Object?"":"null prototype",ht=!yt&&k&&Object(e)===e&&k in e?b.call(q(e),8,-1):dt?"Object":"",mt=(yt||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ht||dt?"["+x.call(A.call([],ht||[],dt||[]),": ")+"] ":"");return 0===ft.length?mt+"{}":B?mt+"{"+et(ft,B)+"}":mt+"{ "+x.call(ft,", ")+" }"}return String(e)};var G=Object.prototype.hasOwnProperty||function(t){return t in this};function V(t,e){return G.call(t,e)}function q(t){return h.call(t)}function Q(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,o=t.length;r<o;r++)if(t[r]===e)return r;return-1}function J(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,o="... "+r+" more character"+(r>1?"s":"");return J(b.call(t,0,e.maxStringLength),e)+o}var n=B[e.quoteStyle||"single"];return n.lastIndex=0,C(v.call(v.call(t,n,"\\$1"),/[\x00-\x1f]/g,Z),"single",e)}function Z(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+w.call(e.toString(16))}function X(t){return"Object("+t+")"}function Y(t){return t+" { ? }"}function tt(t,e,r,o){return t+" ("+e+") {"+(o?et(r,o):x.call(r,", "))+"}"}function et(t,e){if(0===t.length)return"";var r="\n"+e.prev+e.base;return r+x.call(t,","+r)+"\n"+e.prev}function rt(t,e){var r=K(t),o=[];if(r){o.length=t.length;for(var n=0;n<t.length;n++)o[n]=V(t,n)?e(t[n],t):""}var i,a="function"==typeof I?I(t):[];if(R){i={};for(var l=0;l<a.length;l++)i["$"+a[l]]=a[l]}for(var c in t)V(t,c)&&(r&&String(Number(c))===c&&c<t.length||R&&i["$"+c]instanceof Symbol||(O.call(/[^\w$]/,c)?o.push(e(c,t)+": "+e(t[c],t)):o.push(c+": "+e(t[c],t))));if("function"==typeof I)for(var p=0;p<a.length;p++)D.call(t,a[p])&&o.push("["+e(a[p])+"]: "+e(t[a[p]],t));return o}},765(t){"use strict";var e=String.prototype.replace,r=/%20/g,o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(t){return e.call(t,r,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:o}},373(t,e,r){"use strict";var o=r(636),n=r(642),i=r(765);t.exports={formats:i,parse:n,stringify:o}},642(t,e,r){"use strict";var o=r(720),n=Object.prototype.hasOwnProperty,i=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:o.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},l=function(t){return t.replace(/&#(\d+);/g,function(t,e){return String.fromCharCode(parseInt(e,10))})},c=function(t,e,r,o){if(t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1){if(o&&e.throwOnLimitExceeded)for(var n=0,i=t.indexOf(",");i>-1;){if((n+=1)>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");i=t.indexOf(",",i+1)}return t.split(",")}if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(1===e.arrayLimit?"":"s")+" allowed in an array.");return t},p=function(t,e,r,i){if(t){var a=function(t,e){var r=e.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t;if(e.depth<=0){if(!e.plainObjects&&n.call(Object.prototype,r)&&!e.allowPrototypes)return;return[r]}var o=[],i=r.indexOf("["),a=i>=0?r.slice(0,i):r;if(a){if(!e.plainObjects&&n.call(Object.prototype,a)&&!e.allowPrototypes)return;o[o.length]=a}for(var l=r.length,c=i,p=0;c>=0&&p<e.depth;){for(var u=1,s=c+1,f=-1;s<l&&f<0;){var y=r.charCodeAt(s);91===y?u+=1:93===y&&0==(u-=1)&&(f=s),s+=1}if(f<0)return o[o.length]="["+r.slice(c)+"]",o;var d=r.slice(c,f+1),h=d.slice(1,-1);if(!e.plainObjects&&n.call(Object.prototype,h)&&!e.allowPrototypes)return;o[o.length]=d,p+=1,c=r.indexOf("[",f+1)}if(c>=0){if(!0===e.strictDepth)throw new RangeError("Input depth exceeded depth option of "+e.depth+" and strictDepth is true");o[o.length]="["+r.slice(c)+"]"}return o}(t,r);if(a)return function(t,e,r,n){var i=0;if(t.length>0&&"[]"===t[t.length-1]){var a=t.slice(0,-1).join("");i=Array.isArray(e)&&e[a]?e[a].length:0}for(var l=n?e:c(e,r,i),p=t.length-1;p>=0;--p){var u,s=t[p];if("[]"===s&&r.parseArrays)u=o.isOverflow(l)?l:r.allowEmptyArrays&&(""===l||r.strictNullHandling&&null===l)?[]:o.combine([],l,r.arrayLimit,r.plainObjects,r.throwOnLimitExceeded);else{u=r.plainObjects?{__proto__:null}:{};var f="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,y=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,d=parseInt(y,10),h=!isNaN(d)&&s!==y&&String(d)===y&&d>=0&&r.parseArrays;if(r.parseArrays||""!==y)if(h&&d<r.arrayLimit)(u=[])[d]=l;else{if(h&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(1===r.arrayLimit?"":"s")+" allowed in an array.");h?(u[d]=l,o.markOverflow(u,d)):"__proto__"!==y&&(u[y]=l)}else u={0:l}}l=u}return l}(a,e,r,i)}};t.exports=function(t,e){var r=function(t){if(!t)return a;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==t.throwOnLimitExceeded&&"boolean"!=typeof t.throwOnLimitExceeded)throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var e=void 0===t.charset?a.charset:t.charset,r=void 0===t.duplicates?a.duplicates:t.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||a.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||o.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,duplicates:r,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictDepth:"boolean"==typeof t.strictDepth?!!t.strictDepth:a.strictDepth,strictMerge:"boolean"==typeof t.strictMerge?!!t.strictMerge:a.strictMerge,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof t.throwOnLimitExceeded&&t.throwOnLimitExceeded}}(e);if(""===t||null==t)return r.plainObjects?{__proto__:null}:{};for(var u="string"==typeof t?function(t,e){var r={__proto__:null},p=e.ignoreQueryPrefix?t.replace(/^\?/,""):t;p=p.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=e.parameterLimit===1/0?void 0:e.parameterLimit,s=p.split(e.delimiter,e.throwOnLimitExceeded&&void 0!==u?u+1:u);if(e.throwOnLimitExceeded&&void 0!==u&&s.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var f,y=-1,d=e.charset;if(e.charsetSentinel)for(f=0;f<s.length;++f)0===s[f].indexOf("utf8=")&&("utf8=%E2%9C%93"===s[f]?d="utf-8":"utf8=%26%2310003%3B"===s[f]&&(d="iso-8859-1"),y=f,f=s.length);for(f=0;f<s.length;++f)if(f!==y){var h,m,g=s[f],b=g.indexOf("]="),v=-1===b?g.indexOf("="):b+1;if(-1===v?(h=e.decoder(g,a.decoder,d,"key"),m=e.strictNullHandling?null:""):null!==(h=e.decoder(g.slice(0,v),a.decoder,d,"key"))&&(m=o.maybeMap(c(g.slice(v+1),e,i(r[h])?r[h].length:0,-1===g.indexOf("[]=")),function(t){return e.decoder(t,a.decoder,d,"value")})),m&&e.interpretNumericEntities&&"iso-8859-1"===d&&(m=l(String(m))),g.indexOf("[]=")>-1&&(m=i(m)?[m]:m),e.comma&&i(m)&&m.length>e.arrayLimit&&(m=o.combine([],m,e.arrayLimit,e.plainObjects,e.throwOnLimitExceeded)),null!==h){var w=n.call(r,h);w&&("combine"===e.duplicates||g.indexOf("[]=")>-1)?r[h]=o.combine(r[h],m,e.arrayLimit,e.plainObjects,e.throwOnLimitExceeded):w&&"last"!==e.duplicates||(r[h]=m)}}return r}(t,r):t,s=r.plainObjects?{__proto__:null}:{},f=Object.keys(u),y=0;y<f.length;++y){var d=f[y],h=p(d,u[d],r,"string"==typeof t);s=o.merge(s,h,r)}return!0===r.allowSparse?s:o.compact(s)}},636(t,e,r){"use strict";var o=r(920),n=r(720),i=r(765),a=Object.prototype.hasOwnProperty,l={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},c=Array.isArray,p=Array.prototype.push,u=function(t,e){p.apply(t,c(e)?e:[e])},s=Date.prototype.toISOString,f=i.default,y={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:i.formatters[f],indices:!1,serializeDate:function(t){return s.call(t)},skipNulls:!1,strictNullHandling:!1},d={},h=function t(e,r,i,a,l,p,s,f,h,m,g,b,v,w,S,O,A,x){for(var E,j=e,P=x,I=0,_=!1;void 0!==(P=P.get(d))&&!_;){var R=P.get(e);if(I+=1,void 0!==R){if(R===I)throw new RangeError("Cyclic object value");_=!0}void 0===P.get(d)&&(I=0)}if("function"==typeof m?j=m(r,j):j instanceof Date?j=v(j):"comma"===i&&c(j)&&(j=n.maybeMap(j,function(t){return t instanceof Date?v(t):t})),null===j){if(p)return S(h&&!O?h(r,y.encoder,A,"key",w):r);j=""}if("string"==typeof(E=j)||"number"==typeof E||"boolean"==typeof E||"symbol"==typeof E||"bigint"==typeof E||n.isBuffer(j))return h?[S(O?r:h(r,y.encoder,A,"key",w))+"="+S(h(j,y.encoder,A,"value",w))]:[S(r)+"="+S(String(j))];var k,D=[];if(void 0===j)return D;if("comma"===i&&c(j))O&&h&&(j=n.maybeMap(j,function(t){return null==t?t:h(t)})),k=[{value:j.length>0?j.join(",")||null:void 0}];else if(c(m))k=m;else{var L=Object.keys(j);k=g?L.sort(g):L}var M=f?String(r).replace(/\./g,"%2E"):String(r),F=a&&c(j)&&1===j.length?M+"[]":M;if(l&&c(j)&&0===j.length)return F+"[]";for(var N=0;N<k.length;++N){var T=k[N],U="object"==typeof T&&T&&void 0!==T.value?T.value:j[T];if(!s||null!==U){var B=b&&f?String(T).replace(/\./g,"%2E"):String(T),C=c(j)?"function"==typeof i?i(F,B):F:F+(b?"."+B:"["+B+"]");x.set(e,I);var $=o();$.set(d,x),u(D,t(U,C,i,a,l,p,s,f,"comma"===i&&O&&c(j)?null:h,m,g,b,v,w,S,O,A,$))}}return D};t.exports=function(t,e){var r,n=t,p=function(t){if(!t)return y;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||y.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==t.format){if(!a.call(i.formatters,t.format))throw new TypeError("Unknown format option provided.");r=t.format}var o,n=i.formatters[r],p=y.filter;if(("function"==typeof t.filter||c(t.filter))&&(p=t.filter),o=t.arrayFormat in l?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":y.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=void 0===t.allowDots?!0===t.encodeDotInKeys||y.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:y.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:y.allowEmptyArrays,arrayFormat:o,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:y.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:void 0===t.delimiter?y.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:y.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:y.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:y.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:y.encodeValuesOnly,filter:p,format:r,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:y.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:y.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:y.strictNullHandling}}(e);"function"==typeof p.filter?n=(0,p.filter)("",n):c(p.filter)&&(r=p.filter);var s=[];if("object"!=typeof n||null===n)return"";var f=l[p.arrayFormat],d="comma"===f&&p.commaRoundTrip;r||(r=Object.keys(n)),p.sort&&r.sort(p.sort);for(var m=o(),g=0;g<r.length;++g){var b=r[g];if(null!=b){var v=n[b];p.skipNulls&&null===v||u(s,h(v,b,f,d,p.allowEmptyArrays,p.strictNullHandling,p.skipNulls,p.encodeDotInKeys,p.encode?p.encoder:null,p.filter,p.sort,p.allowDots,p.serializeDate,p.format,p.formatter,p.encodeValuesOnly,p.charset,m))}}var w=s.join(p.delimiter),S=!0===p.addQueryPrefix?"?":"";return p.charsetSentinel&&("iso-8859-1"===p.charset?S+="utf8=%26%2310003%3B"+p.delimiter:S+="utf8=%E2%9C%93"+p.delimiter),w.length>0?S+w:""}},720(t,e,r){"use strict";var o=r(765),n=r(920),i=r(655),a=Object.prototype.hasOwnProperty,l=Array.isArray,c=n(),p=function(t,e){return c.set(t,e),t},u=function(t){return c.has(t)},s=function(t){return c.get(t)},f=function(t,e){c.set(t,e)},y=function(){for(var t=[],e=0;e<256;++e)t[t.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t}(),d=function(t,e){for(var r=e&&e.plainObjects?{__proto__:null}:{},o=0;o<t.length;++o)void 0!==t[o]&&(r[o]=t[o]);return r},h=function(t,e,r){"__proto__"===e&&i?i(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r},m=1024;t.exports={arrayToObject:d,assign:function(t,e){return Object.keys(e).reduce(function(t,r){return h(t,r,e[r]),t},t)},combine:function(t,e,r,o,n){if(u(t)){if(n)throw new RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");var i=s(t)+1;return t[i]=e,f(t,i),t}var a=[].concat(t,e);if(a.length>r){if(n)throw new RangeError("Array limit exceeded. Only "+r+" element"+(1===r?"":"s")+" allowed in an array.");return p(d(a,{plainObjects:o}),a.length-1)}return a},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],r=n(),o=0;o<e.length;++o)for(var i=e[o],a=i.obj[i.prop],c=Object.keys(a),p=0;p<c.length;++p){var u=c[p],s=a[u];"object"!=typeof s||null===s||r.has(s)||(e[e.length]={obj:a,prop:u},r.set(s,!0))}return function(t){for(;t.length>1;){var e=t.pop(),r=e.obj[e.prop];if(l(r)){for(var o=[],n=0;n<r.length;++n)void 0!==r[n]&&(o[o.length]=r[n]);e.obj[e.prop]=o}}}(e),t},decode:function(t,e,r){var o=t.replace(/\+/g," ");if("iso-8859-1"===r)return o.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(o)}catch(t){return o}},encode:function(t,e,r,n,i){if(0===t.length)return t;var a=t;if("symbol"==typeof t?a=Symbol.prototype.toString.call(t):"string"!=typeof t&&(a=String(t)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"});for(var l="",c=0;c<a.length;c+=m){var p=a.length>=m?a.slice(c,c+m):a;if(c+m<a.length){var u=p.charCodeAt(p.length-1);u>=55296&&u<=56319&&(p=p.slice(0,-1),c-=1)}for(var s=[],f=0;f<p.length;++f){var d=p.charCodeAt(f);45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||i===o.RFC1738&&(40===d||41===d)?s[s.length]=p.charAt(f):d<128?s[s.length]=y[d]:d<2048?s[s.length]=y[192|d>>6]+y[128|63&d]:d<55296||d>=57344?s[s.length]=y[224|d>>12]+y[128|d>>6&63]+y[128|63&d]:(f+=1,d=65536+((1023&d)<<10|1023&p.charCodeAt(f)),s[s.length]=y[240|d>>18]+y[128|d>>12&63]+y[128|d>>6&63]+y[128|63&d])}l+=s.join("")}return l},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isOverflow:u,isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},markOverflow:p,maybeMap:function(t,e){if(l(t)){for(var r=[],o=0;o<t.length;o+=1)r[r.length]=e(t[o]);return r}return e(t)},merge:function t(e,r,o){if(!r)return e;if("object"!=typeof r&&"function"!=typeof r){if(l(e)){var n=e.length;if(o&&"number"==typeof o.arrayLimit&&n>=o.arrayLimit){if(o.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");return p(d(e.concat(r),o),n)}e[n]=r}else{if(!e||"object"!=typeof e)return[e,r];if(u(e)){var i=s(e)+1;e[i]=r,f(e,i)}else{if(o&&o.strictMerge)return[e,r];(o&&(o.plainObjects||o.allowPrototypes)||!a.call(Object.prototype,r))&&(e[r]=!0)}}return e}if(!e||"object"!=typeof e){if(u(r)){for(var c=Object.keys(r),y=o&&o.plainObjects?{__proto__:null,0:e}:{0:e},m=0;m<c.length;m++)y[parseInt(c[m],10)+1]=r[c[m]];return p(y,s(r)+1)}var g=[e].concat(r);if(o&&"number"==typeof o.arrayLimit&&g.length>o.arrayLimit){if(o.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");return p(d(g,o),g.length-1)}return g}var b=e;if(l(e)&&!l(r)&&(b=d(e,o)),l(e)&&l(r)){if(r.forEach(function(r,n){if(a.call(e,n)){var i=e[n];i&&"object"==typeof i&&r&&"object"==typeof r?e[n]=t(i,r,o):e[e.length]=r}else e[n]=r}),o&&"number"==typeof o.arrayLimit&&e.length>o.arrayLimit){if(o.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+o.arrayLimit+" element"+(1===o.arrayLimit?"":"s")+" allowed in an array.");return p(d(e,o),e.length-1)}return e}return Object.keys(r).reduce(function(e,n){var i=r[n];if(a.call(e,n)?h(e,n,t(e[n],i,o)):h(e,n,i),u(r)&&!u(e)&&p(e,s(r)),u(e)){var l=parseInt(n,10);String(l)===n&&l>=0&&l>s(e)&&f(e,l)}return e},b)}}},803(t,e,r){"use strict";var o=r(859),n=r(675),i=function(t,e,r){for(var o,n=t;null!=(o=n.next);n=o)if(o.key===e)return n.next=o.next,r||(o.next=t.next,t.next=o),o};t.exports=function(){var t,e={assert:function(t){if(!e.has(t))throw new n("Side channel does not contain "+o(t))},delete:function(e){var r=function(t,e){if(t)return i(t,e,!0)}(t,e);return r&&t&&!t.next&&(t=void 0),!!r},get:function(e){return function(t,e){if(t){var r=i(t,e);return r&&r.value}}(t,e)},has:function(e){return function(t,e){return!!t&&!!i(t,e)}(t,e)},set:function(e,r){t||(t={next:void 0}),function(t,e,r){var o=i(t,e);o?o.value=r:t.next={key:e,next:t.next,value:r}}(t,e,r)}};return e}},507(t,e,r){"use strict";var o=r(453),n=r(556),i=r(859),a=r(675),l=o("%Map%",!0),c=n("Map.prototype.get",!0),p=n("Map.prototype.set",!0),u=n("Map.prototype.has",!0),s=n("Map.prototype.delete",!0),f=n("Map.prototype.size",!0);t.exports=!!l&&function(){var t,e={assert:function(t){if(!e.has(t))throw new a("Side channel does not contain "+i(t))},delete:function(e){if(t){var r=s(t,e);return 0===f(t)&&(t=void 0),r}return!1},get:function(e){if(t)return c(t,e)},has:function(e){return!!t&&u(t,e)},set:function(e,r){t||(t=new l),p(t,e,r)}};return e}},271(t,e,r){"use strict";var o=r(453),n=r(556),i=r(859),a=r(507),l=r(675),c=o("%WeakMap%",!0),p=n("WeakMap.prototype.get",!0),u=n("WeakMap.prototype.set",!0),s=n("WeakMap.prototype.has",!0),f=n("WeakMap.prototype.delete",!0);t.exports=c?function(){var t,e,r={assert:function(t){if(!r.has(t))throw new l("Side channel does not contain "+i(t))},delete:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(t)return f(t,r)}else if(a&&e)return e.delete(r);return!1},get:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&t?p(t,r):e&&e.get(r)},has:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&t?s(t,r):!!e&&e.has(r)},set:function(r,o){c&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new c),u(t,r,o)):a&&(e||(e=a()),e.set(r,o))}};return r}:a},920(t,e,r){"use strict";var o=r(675),n=r(859),i=r(803),a=r(507),l=r(271)||a||i;t.exports=function(){var t,e={assert:function(t){if(!e.has(t)){var r=t&&Object(t)===t?"the given object key":n(t);throw new o("Side channel does not contain "+r)}},delete:function(e){return!!t&&t.delete(e)},get:function(e){return t&&t.get(e)},has:function(e){return!!t&&t.has(e)},set:function(e,r){t||(t=l()),t.set(e,r)}};return e}},634(){}};const e={};function r(o){const n=e[o];if(void 0!==n)return n.exports;const i=e[o]={exports:{}};return t[o](i,i.exports,r),i.exports}return r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r(497)})());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viibe/impulse-integration-js",
3
- "version": "202608.4.0",
3
+ "version": "202609.3.0",
4
4
  "engines": {
5
5
  "node": ">= 10.0.0"
6
6
  },
@@ -34,17 +34,16 @@
34
34
  "author": "Viibe",
35
35
  "license": "ISC",
36
36
  "devDependencies": {
37
- "@babel/core": "^7.15.8",
38
- "@babel/preset-env": "^7.15.8",
39
- "@types/jest": "^28.1.3",
40
- "babel-loader": "^8.2.2",
41
- "core-js": "^3.18.2",
42
- "jest": "^28.1.1",
43
- "jest-environment-jsdom": "^28.1.1",
44
- "webpack": "5.98.0",
45
- "webpack-cli": "^4.9.0"
37
+ "@babel/core": "8.0.1",
38
+ "@babel/preset-env": "8.0.2",
39
+ "@types/jest": "30.0.0",
40
+ "babel-loader": "10.1.1",
41
+ "jest": "30.4.2",
42
+ "jest-environment-jsdom": "30.4.1",
43
+ "webpack": "5.109.2",
44
+ "webpack-cli": "7.2.2"
46
45
  },
47
46
  "dependencies": {
48
- "qs": "6.14.0"
47
+ "qs": "6.15.3"
49
48
  }
50
49
  }
package/test/dist.test.js CHANGED
@@ -7,7 +7,7 @@ const Viibe = require('../src');
7
7
  describe('dist', () => {
8
8
  test('exposes Viibe constructor', () => {
9
9
  expect(typeof Viibe).toBe('function');
10
- expect(() => new Viibe()).toThrowError();
10
+ expect(() => new Viibe()).toThrow();
11
11
  expect(new Viibe({})).toBeInstanceOf(Viibe);
12
12
  });
13
13