@viibe/impulse-integration-js 2.4.2 → 3.0.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/coverage/clover.xml +111 -6
- package/coverage/coverage-final.json +1 -1
- package/coverage/lcov-report/index.html +21 -21
- package/coverage/lcov-report/index.js.html +1001 -11
- package/coverage/lcov.info +224 -182
- package/dist/index.js +1 -1
- package/package.json +5 -2
- package/src/index.js +23 -66
- package/test/dist.test.js +39 -4
- package/webpack.config.js +1 -1
package/coverage/lcov.info
CHANGED
|
@@ -1,187 +1,229 @@
|
|
|
1
1
|
TN:
|
|
2
|
-
SF:
|
|
3
|
-
FN:
|
|
4
|
-
FN:
|
|
5
|
-
FN:
|
|
6
|
-
FN:
|
|
7
|
-
FN:
|
|
8
|
-
FN:
|
|
9
|
-
FN:
|
|
10
|
-
FN:
|
|
11
|
-
FN:
|
|
12
|
-
FN:
|
|
13
|
-
FN:
|
|
14
|
-
FN:
|
|
15
|
-
FN:
|
|
16
|
-
FN:
|
|
17
|
-
FN:
|
|
18
|
-
FN:
|
|
19
|
-
FN:
|
|
20
|
-
FN:
|
|
21
|
-
FN:
|
|
22
|
-
FN:
|
|
23
|
-
FN:
|
|
24
|
-
FN:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
FNH:14
|
|
36
|
-
FNDA:1,(anonymous_0)
|
|
37
|
-
FNDA:1,(anonymous_1)
|
|
38
|
-
FNDA:8,n
|
|
39
|
-
FNDA:2,e
|
|
40
|
-
FNDA:2,o
|
|
41
|
-
FNDA:7,i
|
|
42
|
-
FNDA:0,(anonymous_6)
|
|
43
|
-
FNDA:0,a
|
|
2
|
+
SF:src/index.js
|
|
3
|
+
FN:3,isFromOrigin
|
|
4
|
+
FN:4,isEventFromOrigin
|
|
5
|
+
FN:9,openAuthPopup
|
|
6
|
+
FN:36,(anonymous_3)
|
|
7
|
+
FN:45,(anonymous_4)
|
|
8
|
+
FN:54,onClose
|
|
9
|
+
FN:61,destroy
|
|
10
|
+
FN:67,onMessage
|
|
11
|
+
FN:112,(anonymous_8)
|
|
12
|
+
FN:116,(anonymous_9)
|
|
13
|
+
FN:140,(anonymous_10)
|
|
14
|
+
FN:155,(anonymous_11)
|
|
15
|
+
FN:173,(anonymous_12)
|
|
16
|
+
FN:191,(anonymous_13)
|
|
17
|
+
FN:196,(anonymous_14)
|
|
18
|
+
FN:246,(anonymous_15)
|
|
19
|
+
FN:248,(anonymous_16)
|
|
20
|
+
FN:249,(anonymous_17)
|
|
21
|
+
FN:257,(anonymous_18)
|
|
22
|
+
FN:286,(anonymous_19)
|
|
23
|
+
FN:304,(anonymous_20)
|
|
24
|
+
FN:313,(anonymous_21)
|
|
25
|
+
FNF:22
|
|
26
|
+
FNH:6
|
|
27
|
+
FNDA:8,isFromOrigin
|
|
28
|
+
FNDA:0,isEventFromOrigin
|
|
29
|
+
FNDA:0,openAuthPopup
|
|
30
|
+
FNDA:0,(anonymous_3)
|
|
31
|
+
FNDA:0,(anonymous_4)
|
|
32
|
+
FNDA:0,onClose
|
|
33
|
+
FNDA:0,destroy
|
|
34
|
+
FNDA:0,onMessage
|
|
44
35
|
FNDA:0,(anonymous_8)
|
|
45
36
|
FNDA:0,(anonymous_9)
|
|
46
|
-
FNDA:
|
|
47
|
-
FNDA:
|
|
48
|
-
FNDA:
|
|
49
|
-
FNDA:0,
|
|
50
|
-
FNDA:
|
|
51
|
-
FNDA:
|
|
52
|
-
FNDA:
|
|
53
|
-
FNDA:
|
|
54
|
-
FNDA:
|
|
55
|
-
FNDA:
|
|
56
|
-
FNDA:
|
|
37
|
+
FNDA:9,(anonymous_10)
|
|
38
|
+
FNDA:3,(anonymous_11)
|
|
39
|
+
FNDA:3,(anonymous_12)
|
|
40
|
+
FNDA:0,(anonymous_13)
|
|
41
|
+
FNDA:2,(anonymous_14)
|
|
42
|
+
FNDA:0,(anonymous_15)
|
|
43
|
+
FNDA:0,(anonymous_16)
|
|
44
|
+
FNDA:0,(anonymous_17)
|
|
45
|
+
FNDA:0,(anonymous_18)
|
|
46
|
+
FNDA:1,(anonymous_19)
|
|
47
|
+
FNDA:0,(anonymous_20)
|
|
57
48
|
FNDA:0,(anonymous_21)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
DA:
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
BRDA:
|
|
167
|
-
BRDA:
|
|
168
|
-
BRDA:
|
|
169
|
-
BRDA:1,
|
|
170
|
-
BRDA:
|
|
171
|
-
BRDA:
|
|
172
|
-
BRDA:
|
|
173
|
-
BRDA:
|
|
174
|
-
BRDA:
|
|
175
|
-
BRDA:1,
|
|
176
|
-
BRDA:
|
|
177
|
-
BRDA:
|
|
178
|
-
BRDA:
|
|
179
|
-
BRDA:1,
|
|
180
|
-
BRDA:
|
|
181
|
-
BRDA:1,
|
|
182
|
-
BRDA:
|
|
183
|
-
BRDA:
|
|
184
|
-
BRDA:
|
|
185
|
-
|
|
186
|
-
|
|
49
|
+
DA:1,1
|
|
50
|
+
DA:4,8
|
|
51
|
+
DA:5,0
|
|
52
|
+
DA:10,0
|
|
53
|
+
DA:11,0
|
|
54
|
+
DA:13,0
|
|
55
|
+
DA:14,0
|
|
56
|
+
DA:15,0
|
|
57
|
+
DA:16,0
|
|
58
|
+
DA:18,0
|
|
59
|
+
DA:19,0
|
|
60
|
+
DA:20,0
|
|
61
|
+
DA:36,0
|
|
62
|
+
DA:37,0
|
|
63
|
+
DA:39,0
|
|
64
|
+
DA:41,0
|
|
65
|
+
DA:45,0
|
|
66
|
+
DA:46,0
|
|
67
|
+
DA:47,0
|
|
68
|
+
DA:48,0
|
|
69
|
+
DA:56,0
|
|
70
|
+
DA:62,0
|
|
71
|
+
DA:63,0
|
|
72
|
+
DA:68,0
|
|
73
|
+
DA:69,0
|
|
74
|
+
DA:73,0
|
|
75
|
+
DA:74,0
|
|
76
|
+
DA:75,0
|
|
77
|
+
DA:78,0
|
|
78
|
+
DA:79,0
|
|
79
|
+
DA:80,0
|
|
80
|
+
DA:84,0
|
|
81
|
+
DA:85,0
|
|
82
|
+
DA:87,0
|
|
83
|
+
DA:89,0
|
|
84
|
+
DA:91,0
|
|
85
|
+
DA:93,0
|
|
86
|
+
DA:100,0
|
|
87
|
+
DA:103,0
|
|
88
|
+
DA:107,1
|
|
89
|
+
DA:108,1
|
|
90
|
+
DA:113,0
|
|
91
|
+
DA:117,0
|
|
92
|
+
DA:118,0
|
|
93
|
+
DA:120,0
|
|
94
|
+
DA:144,9
|
|
95
|
+
DA:145,9
|
|
96
|
+
DA:146,8
|
|
97
|
+
DA:147,8
|
|
98
|
+
DA:148,8
|
|
99
|
+
DA:150,8
|
|
100
|
+
DA:152,8
|
|
101
|
+
DA:156,3
|
|
102
|
+
DA:157,1
|
|
103
|
+
DA:160,2
|
|
104
|
+
DA:161,1
|
|
105
|
+
DA:164,1
|
|
106
|
+
DA:166,1
|
|
107
|
+
DA:167,1
|
|
108
|
+
DA:168,1
|
|
109
|
+
DA:170,1
|
|
110
|
+
DA:174,3
|
|
111
|
+
DA:175,1
|
|
112
|
+
DA:178,2
|
|
113
|
+
DA:179,1
|
|
114
|
+
DA:182,1
|
|
115
|
+
DA:184,1
|
|
116
|
+
DA:186,1
|
|
117
|
+
DA:187,1
|
|
118
|
+
DA:188,1
|
|
119
|
+
DA:189,1
|
|
120
|
+
DA:191,1
|
|
121
|
+
DA:193,1
|
|
122
|
+
DA:206,2
|
|
123
|
+
DA:208,2
|
|
124
|
+
DA:210,2
|
|
125
|
+
DA:228,2
|
|
126
|
+
DA:229,28
|
|
127
|
+
DA:232,2
|
|
128
|
+
DA:247,0
|
|
129
|
+
DA:248,0
|
|
130
|
+
DA:249,0
|
|
131
|
+
DA:258,0
|
|
132
|
+
DA:259,0
|
|
133
|
+
DA:262,0
|
|
134
|
+
DA:263,0
|
|
135
|
+
DA:267,0
|
|
136
|
+
DA:268,0
|
|
137
|
+
DA:271,0
|
|
138
|
+
DA:272,0
|
|
139
|
+
DA:275,0
|
|
140
|
+
DA:287,1
|
|
141
|
+
DA:290,0
|
|
142
|
+
DA:291,0
|
|
143
|
+
DA:292,0
|
|
144
|
+
DA:295,1
|
|
145
|
+
DA:301,1
|
|
146
|
+
DA:305,0
|
|
147
|
+
DA:314,0
|
|
148
|
+
DA:315,0
|
|
149
|
+
DA:317,0
|
|
150
|
+
DA:322,1
|
|
151
|
+
DA:324,1
|
|
152
|
+
DA:325,1
|
|
153
|
+
DA:328,1
|
|
154
|
+
DA:329,1
|
|
155
|
+
LF:106
|
|
156
|
+
LH:46
|
|
157
|
+
BRDA:5,0,0,0
|
|
158
|
+
BRDA:5,0,1,0
|
|
159
|
+
BRDA:39,1,0,0
|
|
160
|
+
BRDA:39,1,1,0
|
|
161
|
+
BRDA:46,2,0,0
|
|
162
|
+
BRDA:46,2,1,0
|
|
163
|
+
BRDA:68,3,0,0
|
|
164
|
+
BRDA:68,3,1,0
|
|
165
|
+
BRDA:73,4,0,0
|
|
166
|
+
BRDA:73,4,1,0
|
|
167
|
+
BRDA:78,5,0,0
|
|
168
|
+
BRDA:78,5,1,0
|
|
169
|
+
BRDA:84,6,0,0
|
|
170
|
+
BRDA:84,6,1,0
|
|
171
|
+
BRDA:84,7,0,0
|
|
172
|
+
BRDA:84,7,1,0
|
|
173
|
+
BRDA:84,7,2,0
|
|
174
|
+
BRDA:85,8,0,0
|
|
175
|
+
BRDA:85,8,1,0
|
|
176
|
+
BRDA:85,8,2,0
|
|
177
|
+
BRDA:112,9,0,0
|
|
178
|
+
BRDA:146,10,0,1
|
|
179
|
+
BRDA:146,10,1,7
|
|
180
|
+
BRDA:147,11,0,1
|
|
181
|
+
BRDA:147,11,1,7
|
|
182
|
+
BRDA:156,12,0,1
|
|
183
|
+
BRDA:156,12,1,2
|
|
184
|
+
BRDA:160,13,0,1
|
|
185
|
+
BRDA:160,13,1,1
|
|
186
|
+
BRDA:173,14,0,3
|
|
187
|
+
BRDA:174,15,0,1
|
|
188
|
+
BRDA:174,15,1,2
|
|
189
|
+
BRDA:178,16,0,1
|
|
190
|
+
BRDA:178,16,1,1
|
|
191
|
+
BRDA:196,17,0,0
|
|
192
|
+
BRDA:200,18,0,1
|
|
193
|
+
BRDA:223,19,0,1
|
|
194
|
+
BRDA:223,19,1,1
|
|
195
|
+
BRDA:224,20,0,2
|
|
196
|
+
BRDA:224,20,1,0
|
|
197
|
+
BRDA:229,21,0,10
|
|
198
|
+
BRDA:229,21,1,18
|
|
199
|
+
BRDA:248,22,0,0
|
|
200
|
+
BRDA:248,22,1,0
|
|
201
|
+
BRDA:248,22,2,0
|
|
202
|
+
BRDA:258,23,0,0
|
|
203
|
+
BRDA:258,23,1,0
|
|
204
|
+
BRDA:262,24,0,0
|
|
205
|
+
BRDA:262,24,1,0
|
|
206
|
+
BRDA:262,25,0,0
|
|
207
|
+
BRDA:262,25,1,0
|
|
208
|
+
BRDA:267,26,0,0
|
|
209
|
+
BRDA:267,26,1,0
|
|
210
|
+
BRDA:267,27,0,0
|
|
211
|
+
BRDA:267,27,1,0
|
|
212
|
+
BRDA:271,28,0,0
|
|
213
|
+
BRDA:271,28,1,0
|
|
214
|
+
BRDA:271,29,0,0
|
|
215
|
+
BRDA:271,29,1,0
|
|
216
|
+
BRDA:287,30,0,0
|
|
217
|
+
BRDA:287,30,1,1
|
|
218
|
+
BRDA:287,31,0,1
|
|
219
|
+
BRDA:287,31,1,0
|
|
220
|
+
BRDA:287,31,2,0
|
|
221
|
+
BRDA:298,32,0,1
|
|
222
|
+
BRDA:298,32,1,0
|
|
223
|
+
BRDA:324,33,0,1
|
|
224
|
+
BRDA:324,33,1,0
|
|
225
|
+
BRDA:328,34,0,1
|
|
226
|
+
BRDA:328,34,1,0
|
|
227
|
+
BRF:70
|
|
228
|
+
BRH:24
|
|
187
229
|
end_of_record
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var t={579:t=>{function n(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function e(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function o(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}function i(t){return function(n){return Boolean(n.isTrusted&&0===n.origin.indexOf(t))}}function a(t){var n=new URL(t),e="".concat(n.protocol,"//").concat(n.host),o=window.screen.width/2-240,a=window.screen.height/2-300,r=["toolbar=no","location=no","directories=no","status=no","menubar=no","scrollbars=no","resizable=no","copyhistory=no","width=".concat(480),"height=".concat(600),"top=".concat(a),"left=".concat(o)];return new Promise((function(n,o){var a=window.open(t,"Authorization",r.join(", "));a||o("Failed to open window");var c=setInterval((function(){a.closed&&(s(),o("User closed window"))}),100);function s(){window.removeEventListener("message",u),clearInterval(c)}function u(t){if(!i(e)(t))return null;if(t.data.token&&(s(),n(t.data.token)),t.data.error&&(s(),o(t.data.error)),t.data&&t.data.event&&t.data.payload)switch(t.data.event){case"authentication:success":return s(),n(t.data);case"authentication:failure":return s(),o(t.data)}return null}window.addEventListener("message",u)}))}var r=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auth.viibe.pro";n(this,t),this.host=e}return o(t,[{key:"loginZendesk",value:function(t){var n=document.location.origin;return a("https://".concat(this.host,"/auth/zendesk/login?subdomain=").concat(t,"&origin=").concat(n))}}]),t}(),c=function(){function t(e){n(this,t),this.handlers=[],this.host=e.host,this.origin=/^localhost/.test(this.host)?"http://".concat(this.host):"https://".concat(this.host),this.apiOrigin=/^localhost/.test(this.host)?"http://".concat(this.host):"https://api-".concat(this.host),this.source=e.source,this.isViibeEvent=i(this.origin),window.addEventListener("message",this.onMessage.bind(this))}return o(t,[{key:"createNotificationIframe",value:function(){if(!this.host)throw new Error("fillHost");if(!this.source)throw new Error("fillSource");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.origin,"/integration/features/notifications"),t}},{key:"createCallIframe",value:function(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.host)throw new Error("fillHost");if(!this.source)throw new Error("fillSource");var e=this.generateIframeSrc(n),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=e,o.allow="geolocation;autoplay;microphone;camera;midi;encrypted-media;clipboard-write;",this.on(o,"document",(function(n){return t.onDocument(n)})),o}},{key:"generateIframeSrc",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.clipboard,e=void 0!==n&&n,o=t.components,i=t.links,a=t.o2m,r=void 0!==a&&a,c=t.ticket,s=t.locale,u=t.standalone,l=t.suggestions,h=t.token,d="".concat(this.origin,"/integration/features/ticket"),f=new URLSearchParams({origin:document.location.origin,resize:"true",source:this.source});if(c&&c.title&&f.set("title",c.title),c&&c.integration){f.set("thirdPartyId",c.integration.id);var v=(c.integration.customData||{}).entUuid;v&&f.set("entUuid",v)}if(i){var m=i instanceof Array?i.map((function(t){return"".concat(t.category,":").concat(t.value)})).join(","):String(i);f.set("links",m)}if(l){var w=l instanceof Array?l.map((function(t){var n=t.category,e=t.value,o=t.description,i="".concat(n,":").concat(e);return o&&(i+=":".concat(o)),i})).join(","):String(l);f.set("suggestions",w)}if(h&&f.set("token",h),s&&f.set("locale",s),o){var p=o instanceof Array?o.join(","):String(o);f.set("components",p)}return u&&f.set("standalone",Boolean(u)),f.set("clipboard",Boolean(e)),f.set("o2m",Boolean(r)),d+"?".concat(f)}},{key:"dispatch",value:function(t,n,e,o){return this.handlers.filter((function(n){return n.eventName===t&&(!n.windowName||n.windowName===o)})).map((function(t){return t.func(n,e)}))}},{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,n,e){"string"==typeof t&&"function"==typeof n&&void 0===e&&(e=n,n=t,t=null);var o={eventName:n,func:e,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 n=document.location,e=n.protocol,o=n.host;return a("".concat(e,"//api-").concat(o,"/auth/login/").concat(t,"?origin=").concat(origin))}}]),t}();c.Auth=r,"undefined"!=typeof window&&(window.Viibe=c),t.exports=c}},n={},e=function e(o){var i=n[o];if(void 0!==i)return i.exports;var a=n[o]={exports:{}};return t[o](a,a.exports,e),a.exports}(579);module.exports=e})();
|
|
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),s=n("WeakMap.prototype.has",!0),f=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 f(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?s(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),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),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%":s,"%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%":f,"%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 s=1,f=!0;s<r.length;s+=1){var y=r[s],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&&f||(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&&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=L(a,y),a=a[y];f&&!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.apiOrigin=/^localhost/.test(this.host)?"http://".concat(this.host):"https://api-".concat(this.host),this.source=e.source,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.source)throw new Error("fillSource");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.source)throw new Error("fillSource");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,s=r.suggestions,f=r.token,y="".concat(this.viibeDomain,"/integration/features/ticket"),d={version:"2.0.0",origin:document.location.origin,resize:"true",source:this.source,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:s,token:f,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),s=n("Map.prototype.delete",!0),f=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=s(t,e);return 0===f(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])},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,c,p,s,f,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=f?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(!s||null!==L){var B=b&&f?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,s,f,"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 s=[];if("object"!=typeof n||null===n)return"";var f=c[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],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&":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,s=[];if(u){if(!r.plainObjects&&n.call(Object.prototype,u)&&!r.allowPrototypes)return;s.push(u)}for(var f=0;r.depth>0&&null!==(p=c.exec(a))&&f<r.depth;){if(f+=1,!r.plainObjects&&n.call(Object.prototype,p[1].slice(1,-1))&&!r.allowPrototypes)return;s.push(p[1])}if(p){if(!0===r.strictDepth)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");s.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,s=t[p];if("[]"===s&&r.parseArrays)u=r.allowEmptyArrays&&(""===c||r.strictNullHandling&&null===c)?[]:o.combine([],c);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);r.parseArrays||""!==y?!isNaN(d)&&s!==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}(s,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,s=p.split(e.delimiter,e.throwOnLimitExceeded?u+1:u);if(e.throwOnLimitExceeded&&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;-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,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)}},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 s=c.length>=l?c.slice(u,u+l):c,f=[],y=0;y<s.length;++y){var d=s.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)?f[f.length]=s.charAt(y):d<128?f[f.length]=a[d]:d<2048?f[f.length]=a[192|d>>6]+a[128|63&d]:d<55296||d>=57344?f[f.length]=a[224|d>>12]+a[128|d>>6&63]+a[128|63&d]:(y+=1,d=65536+((1023&d)<<10|1023&s.charCodeAt(y)),f[f.length]=a[240|d>>18]+a[128|d>>12&63]+a[128|d>>6&63]+a[128|63&d])}p+=f.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,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,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,""")}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 st=[];return u&&u.call(e,(function(t){st.push($(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)&&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 ft=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===ft.length?mt+"{}":B?mt+"{"+et(ft,B)+"}":mt+"{ "+O.call(ft,", ")+" }"}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)})()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viibe/impulse-integration-js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">= 10.0.0"
|
|
6
6
|
},
|
|
@@ -38,7 +38,10 @@
|
|
|
38
38
|
"core-js": "^3.18.2",
|
|
39
39
|
"jest": "^28.1.1",
|
|
40
40
|
"jest-environment-jsdom": "^28.1.1",
|
|
41
|
-
"webpack": "5.
|
|
41
|
+
"webpack": "5.98.0",
|
|
42
42
|
"webpack-cli": "^4.9.0"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"qs": "6.14.0"
|
|
43
46
|
}
|
|
44
47
|
}
|