@local-logic/sdks-app 1.0.0-beta.53 → 1.0.0-beta.55

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.
Files changed (33) hide show
  1. package/dist/assets/auto-track.000d2da6.js +1 -0
  2. package/dist/assets/{chevron_right.f4a05ecb.js → chevron_right.f7f802f5.js} +5 -5
  3. package/dist/assets/index.1fe3a37f.js +183 -0
  4. package/dist/assets/index.252bea88.js +1 -0
  5. package/dist/assets/{index.039c8af5.js → index.6af2d34a.js} +46 -46
  6. package/dist/assets/{index.bd887e31.js → index.85e812f8.js} +16 -16
  7. package/dist/assets/index.95833aec.js +1345 -0
  8. package/dist/assets/index.b5fad94d.js +1 -0
  9. package/dist/assets/index.bec88049.js +1 -0
  10. package/dist/assets/index.e9c00339.js +1 -0
  11. package/dist/assets/index.f4705c55.js +1 -0
  12. package/dist/assets/index.umd.8e71fd05.js +1 -0
  13. package/dist/assets/is-plan-event-enabled.681b46ca.js +1 -0
  14. package/dist/index.html +1 -1
  15. package/dist/types/constants/tracking.d.ts +20 -0
  16. package/dist/types/constants/tracking.d.ts.map +1 -0
  17. package/dist/types/constants/tracking.js +21 -0
  18. package/dist/types/constants/tracking.js.map +1 -0
  19. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/Score/index.d.ts.map +1 -1
  20. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/Score/index.js +6 -0
  21. package/dist/types/sdks/LocalContent/Map/DesktopScores/ScoreCategoryAccordion/ScoreCategory/Score/index.js.map +1 -1
  22. package/dist/types/sdks/LocalContent/context.d.ts.map +1 -1
  23. package/dist/types/sdks/LocalContent/context.js +19 -1
  24. package/dist/types/sdks/LocalContent/context.js.map +1 -1
  25. package/dist/types/sdks/LocalContent/index.d.ts.map +1 -1
  26. package/dist/types/sdks/LocalContent/index.js +6 -2
  27. package/dist/types/sdks/LocalContent/index.js.map +1 -1
  28. package/dist/types/services/tracking/index.d.ts +11 -0
  29. package/dist/types/services/tracking/index.d.ts.map +1 -0
  30. package/dist/types/services/tracking/index.js +20 -0
  31. package/dist/types/services/tracking/index.js.map +1 -0
  32. package/package.json +14 -3
  33. package/dist/assets/index.8143f5fa.js +0 -183
@@ -0,0 +1,1345 @@
1
+ import{j as or,c as $}from"./chevron_right.f7f802f5.js";import{d as Sr}from"./index.1fe3a37f.js";import"./index.85e812f8.js";var m={},R={};for(var lr=[],p=0;p<64;)lr[p]=0|4294967296*Math.sin(++p%Math.PI);function Or(r){var a,e,t,n=[a=1732584193,e=4023233417,~a,~e],i=[],l=unescape(encodeURI(r))+"\x80",o=l.length;for(r=--o/4+2|15,i[--r]=8*o;~o;)i[o>>2]|=l.charCodeAt(o)<<8*o--;for(p=l=0;p<r;p+=16){for(o=n;l<64;o=[t=o[3],a+((t=o[0]+[a&e|~a&t,t&a|~t&e,a^e^t,e^(a|~t)][o=l>>4]+lr[l]+~~i[p|15&[l,5*l+1,3*l+5,7*l][o]])<<(o=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*o+l++%4])|t>>>-o),a,e])a=0|o[1],e=o[2];for(l=4;l;)n[--l]+=o[l]}for(r="";l<32;)r+=(n[l>>3]>>4*(1^l++)&15).toString(16);return r}var Ir=Object.freeze(Object.defineProperty({__proto__:null,default:Or},Symbol.toStringTag,{value:"Module"})),Ur=or(Ir),_={exports:{}};(function(r,a){(function(e,t){r.exports=function(n,i,l,o,f){for(i=i.split?i.split("."):i,o=0;o<i.length;o++)n=n?n[i[o]]:f;return n===f?l:n}})()})(_);/**
2
+ * @license Apache-2.0
3
+ *
4
+ * Copyright (c) 2018 The Stdlib Authors.
5
+ *
6
+ * Licensed under the Apache License, Version 2.0 (the "License");
7
+ * you may not use this file except in compliance with the License.
8
+ * You may obtain a copy of the License at
9
+ *
10
+ * http://www.apache.org/licenses/LICENSE-2.0
11
+ *
12
+ * Unless required by applicable law or agreed to in writing, software
13
+ * distributed under the License is distributed on an "AS IS" BASIS,
14
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ * See the License for the specific language governing permissions and
16
+ * limitations under the License.
17
+ */var Er=Number.POSITIVE_INFINITY,fr=Er;/**
18
+ * @license Apache-2.0
19
+ *
20
+ * Copyright (c) 2018 The Stdlib Authors.
21
+ *
22
+ * Licensed under the Apache License, Version 2.0 (the "License");
23
+ * you may not use this file except in compliance with the License.
24
+ * You may obtain a copy of the License at
25
+ *
26
+ * http://www.apache.org/licenses/LICENSE-2.0
27
+ *
28
+ * Unless required by applicable law or agreed to in writing, software
29
+ * distributed under the License is distributed on an "AS IS" BASIS,
30
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31
+ * See the License for the specific language governing permissions and
32
+ * limitations under the License.
33
+ */var Tr=Number;/**
34
+ * @license Apache-2.0
35
+ *
36
+ * Copyright (c) 2018 The Stdlib Authors.
37
+ *
38
+ * Licensed under the Apache License, Version 2.0 (the "License");
39
+ * you may not use this file except in compliance with the License.
40
+ * You may obtain a copy of the License at
41
+ *
42
+ * http://www.apache.org/licenses/LICENSE-2.0
43
+ *
44
+ * Unless required by applicable law or agreed to in writing, software
45
+ * distributed under the License is distributed on an "AS IS" BASIS,
46
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
47
+ * See the License for the specific language governing permissions and
48
+ * limitations under the License.
49
+ */var Fr=Tr,Lr=Fr;/**
50
+ * @license Apache-2.0
51
+ *
52
+ * Copyright (c) 2018 The Stdlib Authors.
53
+ *
54
+ * Licensed under the Apache License, Version 2.0 (the "License");
55
+ * you may not use this file except in compliance with the License.
56
+ * You may obtain a copy of the License at
57
+ *
58
+ * http://www.apache.org/licenses/LICENSE-2.0
59
+ *
60
+ * Unless required by applicable law or agreed to in writing, software
61
+ * distributed under the License is distributed on an "AS IS" BASIS,
62
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
63
+ * See the License for the specific language governing permissions and
64
+ * limitations under the License.
65
+ */var Pr=Lr,Mr=Pr.NEGATIVE_INFINITY,ur=Mr;/**
66
+ * @license Apache-2.0
67
+ *
68
+ * Copyright (c) 2018 The Stdlib Authors.
69
+ *
70
+ * Licensed under the Apache License, Version 2.0 (the "License");
71
+ * you may not use this file except in compliance with the License.
72
+ * You may obtain a copy of the License at
73
+ *
74
+ * http://www.apache.org/licenses/LICENSE-2.0
75
+ *
76
+ * Unless required by applicable law or agreed to in writing, software
77
+ * distributed under the License is distributed on an "AS IS" BASIS,
78
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
79
+ * See the License for the specific language governing permissions and
80
+ * limitations under the License.
81
+ */var Wr=1023,vr=Wr;/**
82
+ * @license Apache-2.0
83
+ *
84
+ * Copyright (c) 2018 The Stdlib Authors.
85
+ *
86
+ * Licensed under the Apache License, Version 2.0 (the "License");
87
+ * you may not use this file except in compliance with the License.
88
+ * You may obtain a copy of the License at
89
+ *
90
+ * http://www.apache.org/licenses/LICENSE-2.0
91
+ *
92
+ * Unless required by applicable law or agreed to in writing, software
93
+ * distributed under the License is distributed on an "AS IS" BASIS,
94
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
95
+ * See the License for the specific language governing permissions and
96
+ * limitations under the License.
97
+ */var jr=1023,Hr=jr;/**
98
+ * @license Apache-2.0
99
+ *
100
+ * Copyright (c) 2018 The Stdlib Authors.
101
+ *
102
+ * Licensed under the Apache License, Version 2.0 (the "License");
103
+ * you may not use this file except in compliance with the License.
104
+ * You may obtain a copy of the License at
105
+ *
106
+ * http://www.apache.org/licenses/LICENSE-2.0
107
+ *
108
+ * Unless required by applicable law or agreed to in writing, software
109
+ * distributed under the License is distributed on an "AS IS" BASIS,
110
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
111
+ * See the License for the specific language governing permissions and
112
+ * limitations under the License.
113
+ */var Cr=-1023,Gr=Cr;/**
114
+ * @license Apache-2.0
115
+ *
116
+ * Copyright (c) 2018 The Stdlib Authors.
117
+ *
118
+ * Licensed under the Apache License, Version 2.0 (the "License");
119
+ * you may not use this file except in compliance with the License.
120
+ * You may obtain a copy of the License at
121
+ *
122
+ * http://www.apache.org/licenses/LICENSE-2.0
123
+ *
124
+ * Unless required by applicable law or agreed to in writing, software
125
+ * distributed under the License is distributed on an "AS IS" BASIS,
126
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
127
+ * See the License for the specific language governing permissions and
128
+ * limitations under the License.
129
+ */var Xr=-1074,Rr=Xr;/**
130
+ * @license Apache-2.0
131
+ *
132
+ * Copyright (c) 2018 The Stdlib Authors.
133
+ *
134
+ * Licensed under the Apache License, Version 2.0 (the "License");
135
+ * you may not use this file except in compliance with the License.
136
+ * You may obtain a copy of the License at
137
+ *
138
+ * http://www.apache.org/licenses/LICENSE-2.0
139
+ *
140
+ * Unless required by applicable law or agreed to in writing, software
141
+ * distributed under the License is distributed on an "AS IS" BASIS,
142
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
143
+ * See the License for the specific language governing permissions and
144
+ * limitations under the License.
145
+ */function Dr(r){return r!==r}var Br=Dr;/**
146
+ * @license Apache-2.0
147
+ *
148
+ * Copyright (c) 2018 The Stdlib Authors.
149
+ *
150
+ * Licensed under the Apache License, Version 2.0 (the "License");
151
+ * you may not use this file except in compliance with the License.
152
+ * You may obtain a copy of the License at
153
+ *
154
+ * http://www.apache.org/licenses/LICENSE-2.0
155
+ *
156
+ * Unless required by applicable law or agreed to in writing, software
157
+ * distributed under the License is distributed on an "AS IS" BASIS,
158
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
159
+ * See the License for the specific language governing permissions and
160
+ * limitations under the License.
161
+ */var Vr=Br,sr=Vr;/**
162
+ * @license Apache-2.0
163
+ *
164
+ * Copyright (c) 2018 The Stdlib Authors.
165
+ *
166
+ * Licensed under the Apache License, Version 2.0 (the "License");
167
+ * you may not use this file except in compliance with the License.
168
+ * You may obtain a copy of the License at
169
+ *
170
+ * http://www.apache.org/licenses/LICENSE-2.0
171
+ *
172
+ * Unless required by applicable law or agreed to in writing, software
173
+ * distributed under the License is distributed on an "AS IS" BASIS,
174
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
175
+ * See the License for the specific language governing permissions and
176
+ * limitations under the License.
177
+ */var xr=fr,Jr=ur;function zr(r){return r===xr||r===Jr}var qr=zr;/**
178
+ * @license Apache-2.0
179
+ *
180
+ * Copyright (c) 2018 The Stdlib Authors.
181
+ *
182
+ * Licensed under the Apache License, Version 2.0 (the "License");
183
+ * you may not use this file except in compliance with the License.
184
+ * You may obtain a copy of the License at
185
+ *
186
+ * http://www.apache.org/licenses/LICENSE-2.0
187
+ *
188
+ * Unless required by applicable law or agreed to in writing, software
189
+ * distributed under the License is distributed on an "AS IS" BASIS,
190
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
191
+ * See the License for the specific language governing permissions and
192
+ * limitations under the License.
193
+ */var Kr=qr,cr=Kr;/**
194
+ * @license Apache-2.0
195
+ *
196
+ * Copyright (c) 2018 The Stdlib Authors.
197
+ *
198
+ * Licensed under the Apache License, Version 2.0 (the "License");
199
+ * you may not use this file except in compliance with the License.
200
+ * You may obtain a copy of the License at
201
+ *
202
+ * http://www.apache.org/licenses/LICENSE-2.0
203
+ *
204
+ * Unless required by applicable law or agreed to in writing, software
205
+ * distributed under the License is distributed on an "AS IS" BASIS,
206
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
207
+ * See the License for the specific language governing permissions and
208
+ * limitations under the License.
209
+ */function Qr(){return typeof Symbol=="function"&&typeof Symbol("foo")=="symbol"}var Yr=Qr;/**
210
+ * @license Apache-2.0
211
+ *
212
+ * Copyright (c) 2018 The Stdlib Authors.
213
+ *
214
+ * Licensed under the Apache License, Version 2.0 (the "License");
215
+ * you may not use this file except in compliance with the License.
216
+ * You may obtain a copy of the License at
217
+ *
218
+ * http://www.apache.org/licenses/LICENSE-2.0
219
+ *
220
+ * Unless required by applicable law or agreed to in writing, software
221
+ * distributed under the License is distributed on an "AS IS" BASIS,
222
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
223
+ * See the License for the specific language governing permissions and
224
+ * limitations under the License.
225
+ */var Zr=Yr,kr=Zr;/**
226
+ * @license Apache-2.0
227
+ *
228
+ * Copyright (c) 2018 The Stdlib Authors.
229
+ *
230
+ * Licensed under the Apache License, Version 2.0 (the "License");
231
+ * you may not use this file except in compliance with the License.
232
+ * You may obtain a copy of the License at
233
+ *
234
+ * http://www.apache.org/licenses/LICENSE-2.0
235
+ *
236
+ * Unless required by applicable law or agreed to in writing, software
237
+ * distributed under the License is distributed on an "AS IS" BASIS,
238
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
239
+ * See the License for the specific language governing permissions and
240
+ * limitations under the License.
241
+ */var ra=kr,aa=ra();function ea(){return aa&&typeof Symbol.toStringTag=="symbol"}var ta=ea;/**
242
+ * @license Apache-2.0
243
+ *
244
+ * Copyright (c) 2018 The Stdlib Authors.
245
+ *
246
+ * Licensed under the Apache License, Version 2.0 (the "License");
247
+ * you may not use this file except in compliance with the License.
248
+ * You may obtain a copy of the License at
249
+ *
250
+ * http://www.apache.org/licenses/LICENSE-2.0
251
+ *
252
+ * Unless required by applicable law or agreed to in writing, software
253
+ * distributed under the License is distributed on an "AS IS" BASIS,
254
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
255
+ * See the License for the specific language governing permissions and
256
+ * limitations under the License.
257
+ */var na=ta,ia=na;/**
258
+ * @license Apache-2.0
259
+ *
260
+ * Copyright (c) 2018 The Stdlib Authors.
261
+ *
262
+ * Licensed under the Apache License, Version 2.0 (the "License");
263
+ * you may not use this file except in compliance with the License.
264
+ * You may obtain a copy of the License at
265
+ *
266
+ * http://www.apache.org/licenses/LICENSE-2.0
267
+ *
268
+ * Unless required by applicable law or agreed to in writing, software
269
+ * distributed under the License is distributed on an "AS IS" BASIS,
270
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
271
+ * See the License for the specific language governing permissions and
272
+ * limitations under the License.
273
+ */var oa=Object.prototype.toString,$r=oa;/**
274
+ * @license Apache-2.0
275
+ *
276
+ * Copyright (c) 2018 The Stdlib Authors.
277
+ *
278
+ * Licensed under the Apache License, Version 2.0 (the "License");
279
+ * you may not use this file except in compliance with the License.
280
+ * You may obtain a copy of the License at
281
+ *
282
+ * http://www.apache.org/licenses/LICENSE-2.0
283
+ *
284
+ * Unless required by applicable law or agreed to in writing, software
285
+ * distributed under the License is distributed on an "AS IS" BASIS,
286
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
287
+ * See the License for the specific language governing permissions and
288
+ * limitations under the License.
289
+ */var la=$r;function fa(r){return la.call(r)}var ua=fa;/**
290
+ * @license Apache-2.0
291
+ *
292
+ * Copyright (c) 2018 The Stdlib Authors.
293
+ *
294
+ * Licensed under the Apache License, Version 2.0 (the "License");
295
+ * you may not use this file except in compliance with the License.
296
+ * You may obtain a copy of the License at
297
+ *
298
+ * http://www.apache.org/licenses/LICENSE-2.0
299
+ *
300
+ * Unless required by applicable law or agreed to in writing, software
301
+ * distributed under the License is distributed on an "AS IS" BASIS,
302
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
303
+ * See the License for the specific language governing permissions and
304
+ * limitations under the License.
305
+ */var va=Object.prototype.hasOwnProperty;function sa(r,a){return r==null?!1:va.call(r,a)}var ca=sa;/**
306
+ * @license Apache-2.0
307
+ *
308
+ * Copyright (c) 2018 The Stdlib Authors.
309
+ *
310
+ * Licensed under the Apache License, Version 2.0 (the "License");
311
+ * you may not use this file except in compliance with the License.
312
+ * You may obtain a copy of the License at
313
+ *
314
+ * http://www.apache.org/licenses/LICENSE-2.0
315
+ *
316
+ * Unless required by applicable law or agreed to in writing, software
317
+ * distributed under the License is distributed on an "AS IS" BASIS,
318
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
319
+ * See the License for the specific language governing permissions and
320
+ * limitations under the License.
321
+ */var $a=ca,pa=$a;/**
322
+ * @license Apache-2.0
323
+ *
324
+ * Copyright (c) 2018 The Stdlib Authors.
325
+ *
326
+ * Licensed under the Apache License, Version 2.0 (the "License");
327
+ * you may not use this file except in compliance with the License.
328
+ * You may obtain a copy of the License at
329
+ *
330
+ * http://www.apache.org/licenses/LICENSE-2.0
331
+ *
332
+ * Unless required by applicable law or agreed to in writing, software
333
+ * distributed under the License is distributed on an "AS IS" BASIS,
334
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
335
+ * See the License for the specific language governing permissions and
336
+ * limitations under the License.
337
+ */var ya=typeof Symbol=="function"?Symbol.toStringTag:"",Aa=ya;/**
338
+ * @license Apache-2.0
339
+ *
340
+ * Copyright (c) 2018 The Stdlib Authors.
341
+ *
342
+ * Licensed under the Apache License, Version 2.0 (the "License");
343
+ * you may not use this file except in compliance with the License.
344
+ * You may obtain a copy of the License at
345
+ *
346
+ * http://www.apache.org/licenses/LICENSE-2.0
347
+ *
348
+ * Unless required by applicable law or agreed to in writing, software
349
+ * distributed under the License is distributed on an "AS IS" BASIS,
350
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
351
+ * See the License for the specific language governing permissions and
352
+ * limitations under the License.
353
+ */var ba=pa,A=Aa,N=$r;function ha(r){var a,e,t;if(r==null)return N.call(r);e=r[A],a=ba(r,A);try{r[A]=void 0}catch{return N.call(r)}return t=N.call(r),a?r[A]=e:delete r[A],t}var ma=ha;/**
354
+ * @license Apache-2.0
355
+ *
356
+ * Copyright (c) 2018 The Stdlib Authors.
357
+ *
358
+ * Licensed under the Apache License, Version 2.0 (the "License");
359
+ * you may not use this file except in compliance with the License.
360
+ * You may obtain a copy of the License at
361
+ *
362
+ * http://www.apache.org/licenses/LICENSE-2.0
363
+ *
364
+ * Unless required by applicable law or agreed to in writing, software
365
+ * distributed under the License is distributed on an "AS IS" BASIS,
366
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
367
+ * See the License for the specific language governing permissions and
368
+ * limitations under the License.
369
+ */var da=ia,_a=ua,ga=ma,F;da()?F=ga:F=_a;var g=F;/**
370
+ * @license Apache-2.0
371
+ *
372
+ * Copyright (c) 2018 The Stdlib Authors.
373
+ *
374
+ * Licensed under the Apache License, Version 2.0 (the "License");
375
+ * you may not use this file except in compliance with the License.
376
+ * You may obtain a copy of the License at
377
+ *
378
+ * http://www.apache.org/licenses/LICENSE-2.0
379
+ *
380
+ * Unless required by applicable law or agreed to in writing, software
381
+ * distributed under the License is distributed on an "AS IS" BASIS,
382
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
383
+ * See the License for the specific language governing permissions and
384
+ * limitations under the License.
385
+ */var wa=g,Na=typeof Uint32Array=="function";function Sa(r){return Na&&r instanceof Uint32Array||wa(r)==="[object Uint32Array]"}var Oa=Sa;/**
386
+ * @license Apache-2.0
387
+ *
388
+ * Copyright (c) 2018 The Stdlib Authors.
389
+ *
390
+ * Licensed under the Apache License, Version 2.0 (the "License");
391
+ * you may not use this file except in compliance with the License.
392
+ * You may obtain a copy of the License at
393
+ *
394
+ * http://www.apache.org/licenses/LICENSE-2.0
395
+ *
396
+ * Unless required by applicable law or agreed to in writing, software
397
+ * distributed under the License is distributed on an "AS IS" BASIS,
398
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
399
+ * See the License for the specific language governing permissions and
400
+ * limitations under the License.
401
+ */var Ia=Oa,Ua=Ia;/**
402
+ * @license Apache-2.0
403
+ *
404
+ * Copyright (c) 2018 The Stdlib Authors.
405
+ *
406
+ * Licensed under the Apache License, Version 2.0 (the "License");
407
+ * you may not use this file except in compliance with the License.
408
+ * You may obtain a copy of the License at
409
+ *
410
+ * http://www.apache.org/licenses/LICENSE-2.0
411
+ *
412
+ * Unless required by applicable law or agreed to in writing, software
413
+ * distributed under the License is distributed on an "AS IS" BASIS,
414
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
415
+ * See the License for the specific language governing permissions and
416
+ * limitations under the License.
417
+ */var Ea=4294967295,Ta=Ea;/**
418
+ * @license Apache-2.0
419
+ *
420
+ * Copyright (c) 2018 The Stdlib Authors.
421
+ *
422
+ * Licensed under the Apache License, Version 2.0 (the "License");
423
+ * you may not use this file except in compliance with the License.
424
+ * You may obtain a copy of the License at
425
+ *
426
+ * http://www.apache.org/licenses/LICENSE-2.0
427
+ *
428
+ * Unless required by applicable law or agreed to in writing, software
429
+ * distributed under the License is distributed on an "AS IS" BASIS,
430
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
431
+ * See the License for the specific language governing permissions and
432
+ * limitations under the License.
433
+ */var Fa=typeof Uint32Array=="function"?Uint32Array:null,La=Fa;/**
434
+ * @license Apache-2.0
435
+ *
436
+ * Copyright (c) 2018 The Stdlib Authors.
437
+ *
438
+ * Licensed under the Apache License, Version 2.0 (the "License");
439
+ * you may not use this file except in compliance with the License.
440
+ * You may obtain a copy of the License at
441
+ *
442
+ * http://www.apache.org/licenses/LICENSE-2.0
443
+ *
444
+ * Unless required by applicable law or agreed to in writing, software
445
+ * distributed under the License is distributed on an "AS IS" BASIS,
446
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
447
+ * See the License for the specific language governing permissions and
448
+ * limitations under the License.
449
+ */var Pa=Ua,S=Ta,q=La;function Ma(){var r,a;if(typeof q!="function")return!1;try{a=[1,3.14,-3.14,S+1,S+2],a=new q(a),r=Pa(a)&&a[0]===1&&a[1]===3&&a[2]===S-2&&a[3]===0&&a[4]===1}catch{r=!1}return r}var Wa=Ma;/**
450
+ * @license Apache-2.0
451
+ *
452
+ * Copyright (c) 2018 The Stdlib Authors.
453
+ *
454
+ * Licensed under the Apache License, Version 2.0 (the "License");
455
+ * you may not use this file except in compliance with the License.
456
+ * You may obtain a copy of the License at
457
+ *
458
+ * http://www.apache.org/licenses/LICENSE-2.0
459
+ *
460
+ * Unless required by applicable law or agreed to in writing, software
461
+ * distributed under the License is distributed on an "AS IS" BASIS,
462
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
463
+ * See the License for the specific language governing permissions and
464
+ * limitations under the License.
465
+ */var ja=Wa,Ha=ja;/**
466
+ * @license Apache-2.0
467
+ *
468
+ * Copyright (c) 2018 The Stdlib Authors.
469
+ *
470
+ * Licensed under the Apache License, Version 2.0 (the "License");
471
+ * you may not use this file except in compliance with the License.
472
+ * You may obtain a copy of the License at
473
+ *
474
+ * http://www.apache.org/licenses/LICENSE-2.0
475
+ *
476
+ * Unless required by applicable law or agreed to in writing, software
477
+ * distributed under the License is distributed on an "AS IS" BASIS,
478
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
479
+ * See the License for the specific language governing permissions and
480
+ * limitations under the License.
481
+ */var Ca=typeof Uint32Array=="function"?Uint32Array:void 0,Ga=Ca;/**
482
+ * @license Apache-2.0
483
+ *
484
+ * Copyright (c) 2018 The Stdlib Authors.
485
+ *
486
+ * Licensed under the Apache License, Version 2.0 (the "License");
487
+ * you may not use this file except in compliance with the License.
488
+ * You may obtain a copy of the License at
489
+ *
490
+ * http://www.apache.org/licenses/LICENSE-2.0
491
+ *
492
+ * Unless required by applicable law or agreed to in writing, software
493
+ * distributed under the License is distributed on an "AS IS" BASIS,
494
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
495
+ * See the License for the specific language governing permissions and
496
+ * limitations under the License.
497
+ */function Xa(){throw new Error("not implemented")}var Ra=Xa;/**
498
+ * @license Apache-2.0
499
+ *
500
+ * Copyright (c) 2018 The Stdlib Authors.
501
+ *
502
+ * Licensed under the Apache License, Version 2.0 (the "License");
503
+ * you may not use this file except in compliance with the License.
504
+ * You may obtain a copy of the License at
505
+ *
506
+ * http://www.apache.org/licenses/LICENSE-2.0
507
+ *
508
+ * Unless required by applicable law or agreed to in writing, software
509
+ * distributed under the License is distributed on an "AS IS" BASIS,
510
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
511
+ * See the License for the specific language governing permissions and
512
+ * limitations under the License.
513
+ */var Da=Ha,Ba=Ga,Va=Ra,L;Da()?L=Ba:L=Va;var D=L;/**
514
+ * @license Apache-2.0
515
+ *
516
+ * Copyright (c) 2018 The Stdlib Authors.
517
+ *
518
+ * Licensed under the Apache License, Version 2.0 (the "License");
519
+ * you may not use this file except in compliance with the License.
520
+ * You may obtain a copy of the License at
521
+ *
522
+ * http://www.apache.org/licenses/LICENSE-2.0
523
+ *
524
+ * Unless required by applicable law or agreed to in writing, software
525
+ * distributed under the License is distributed on an "AS IS" BASIS,
526
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
527
+ * See the License for the specific language governing permissions and
528
+ * limitations under the License.
529
+ */var xa=g,Ja=typeof Float64Array=="function";function za(r){return Ja&&r instanceof Float64Array||xa(r)==="[object Float64Array]"}var qa=za;/**
530
+ * @license Apache-2.0
531
+ *
532
+ * Copyright (c) 2018 The Stdlib Authors.
533
+ *
534
+ * Licensed under the Apache License, Version 2.0 (the "License");
535
+ * you may not use this file except in compliance with the License.
536
+ * You may obtain a copy of the License at
537
+ *
538
+ * http://www.apache.org/licenses/LICENSE-2.0
539
+ *
540
+ * Unless required by applicable law or agreed to in writing, software
541
+ * distributed under the License is distributed on an "AS IS" BASIS,
542
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
543
+ * See the License for the specific language governing permissions and
544
+ * limitations under the License.
545
+ */var Ka=qa,Qa=Ka;/**
546
+ * @license Apache-2.0
547
+ *
548
+ * Copyright (c) 2018 The Stdlib Authors.
549
+ *
550
+ * Licensed under the Apache License, Version 2.0 (the "License");
551
+ * you may not use this file except in compliance with the License.
552
+ * You may obtain a copy of the License at
553
+ *
554
+ * http://www.apache.org/licenses/LICENSE-2.0
555
+ *
556
+ * Unless required by applicable law or agreed to in writing, software
557
+ * distributed under the License is distributed on an "AS IS" BASIS,
558
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
559
+ * See the License for the specific language governing permissions and
560
+ * limitations under the License.
561
+ */var Ya=typeof Float64Array=="function"?Float64Array:null,Za=Ya;/**
562
+ * @license Apache-2.0
563
+ *
564
+ * Copyright (c) 2018 The Stdlib Authors.
565
+ *
566
+ * Licensed under the Apache License, Version 2.0 (the "License");
567
+ * you may not use this file except in compliance with the License.
568
+ * You may obtain a copy of the License at
569
+ *
570
+ * http://www.apache.org/licenses/LICENSE-2.0
571
+ *
572
+ * Unless required by applicable law or agreed to in writing, software
573
+ * distributed under the License is distributed on an "AS IS" BASIS,
574
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
575
+ * See the License for the specific language governing permissions and
576
+ * limitations under the License.
577
+ */var ka=Qa,K=Za;function re(){var r,a;if(typeof K!="function")return!1;try{a=new K([1,3.14,-3.14,NaN]),r=ka(a)&&a[0]===1&&a[1]===3.14&&a[2]===-3.14&&a[3]!==a[3]}catch{r=!1}return r}var ae=re;/**
578
+ * @license Apache-2.0
579
+ *
580
+ * Copyright (c) 2018 The Stdlib Authors.
581
+ *
582
+ * Licensed under the Apache License, Version 2.0 (the "License");
583
+ * you may not use this file except in compliance with the License.
584
+ * You may obtain a copy of the License at
585
+ *
586
+ * http://www.apache.org/licenses/LICENSE-2.0
587
+ *
588
+ * Unless required by applicable law or agreed to in writing, software
589
+ * distributed under the License is distributed on an "AS IS" BASIS,
590
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
591
+ * See the License for the specific language governing permissions and
592
+ * limitations under the License.
593
+ */var ee=ae,te=ee;/**
594
+ * @license Apache-2.0
595
+ *
596
+ * Copyright (c) 2018 The Stdlib Authors.
597
+ *
598
+ * Licensed under the Apache License, Version 2.0 (the "License");
599
+ * you may not use this file except in compliance with the License.
600
+ * You may obtain a copy of the License at
601
+ *
602
+ * http://www.apache.org/licenses/LICENSE-2.0
603
+ *
604
+ * Unless required by applicable law or agreed to in writing, software
605
+ * distributed under the License is distributed on an "AS IS" BASIS,
606
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
607
+ * See the License for the specific language governing permissions and
608
+ * limitations under the License.
609
+ */var ne=typeof Float64Array=="function"?Float64Array:void 0,ie=ne;/**
610
+ * @license Apache-2.0
611
+ *
612
+ * Copyright (c) 2018 The Stdlib Authors.
613
+ *
614
+ * Licensed under the Apache License, Version 2.0 (the "License");
615
+ * you may not use this file except in compliance with the License.
616
+ * You may obtain a copy of the License at
617
+ *
618
+ * http://www.apache.org/licenses/LICENSE-2.0
619
+ *
620
+ * Unless required by applicable law or agreed to in writing, software
621
+ * distributed under the License is distributed on an "AS IS" BASIS,
622
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
623
+ * See the License for the specific language governing permissions and
624
+ * limitations under the License.
625
+ */function oe(){throw new Error("not implemented")}var le=oe;/**
626
+ * @license Apache-2.0
627
+ *
628
+ * Copyright (c) 2018 The Stdlib Authors.
629
+ *
630
+ * Licensed under the Apache License, Version 2.0 (the "License");
631
+ * you may not use this file except in compliance with the License.
632
+ * You may obtain a copy of the License at
633
+ *
634
+ * http://www.apache.org/licenses/LICENSE-2.0
635
+ *
636
+ * Unless required by applicable law or agreed to in writing, software
637
+ * distributed under the License is distributed on an "AS IS" BASIS,
638
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
639
+ * See the License for the specific language governing permissions and
640
+ * limitations under the License.
641
+ */var fe=te,ue=ie,ve=le,P;fe()?P=ue:P=ve;var B=P;/**
642
+ * @license Apache-2.0
643
+ *
644
+ * Copyright (c) 2018 The Stdlib Authors.
645
+ *
646
+ * Licensed under the Apache License, Version 2.0 (the "License");
647
+ * you may not use this file except in compliance with the License.
648
+ * You may obtain a copy of the License at
649
+ *
650
+ * http://www.apache.org/licenses/LICENSE-2.0
651
+ *
652
+ * Unless required by applicable law or agreed to in writing, software
653
+ * distributed under the License is distributed on an "AS IS" BASIS,
654
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
655
+ * See the License for the specific language governing permissions and
656
+ * limitations under the License.
657
+ */var se=g,ce=typeof Uint8Array=="function";function $e(r){return ce&&r instanceof Uint8Array||se(r)==="[object Uint8Array]"}var pe=$e;/**
658
+ * @license Apache-2.0
659
+ *
660
+ * Copyright (c) 2018 The Stdlib Authors.
661
+ *
662
+ * Licensed under the Apache License, Version 2.0 (the "License");
663
+ * you may not use this file except in compliance with the License.
664
+ * You may obtain a copy of the License at
665
+ *
666
+ * http://www.apache.org/licenses/LICENSE-2.0
667
+ *
668
+ * Unless required by applicable law or agreed to in writing, software
669
+ * distributed under the License is distributed on an "AS IS" BASIS,
670
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
671
+ * See the License for the specific language governing permissions and
672
+ * limitations under the License.
673
+ */var ye=pe,Ae=ye;/**
674
+ * @license Apache-2.0
675
+ *
676
+ * Copyright (c) 2018 The Stdlib Authors.
677
+ *
678
+ * Licensed under the Apache License, Version 2.0 (the "License");
679
+ * you may not use this file except in compliance with the License.
680
+ * You may obtain a copy of the License at
681
+ *
682
+ * http://www.apache.org/licenses/LICENSE-2.0
683
+ *
684
+ * Unless required by applicable law or agreed to in writing, software
685
+ * distributed under the License is distributed on an "AS IS" BASIS,
686
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
687
+ * See the License for the specific language governing permissions and
688
+ * limitations under the License.
689
+ */var be=255,he=be;/**
690
+ * @license Apache-2.0
691
+ *
692
+ * Copyright (c) 2018 The Stdlib Authors.
693
+ *
694
+ * Licensed under the Apache License, Version 2.0 (the "License");
695
+ * you may not use this file except in compliance with the License.
696
+ * You may obtain a copy of the License at
697
+ *
698
+ * http://www.apache.org/licenses/LICENSE-2.0
699
+ *
700
+ * Unless required by applicable law or agreed to in writing, software
701
+ * distributed under the License is distributed on an "AS IS" BASIS,
702
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
703
+ * See the License for the specific language governing permissions and
704
+ * limitations under the License.
705
+ */var me=typeof Uint8Array=="function"?Uint8Array:null,de=me;/**
706
+ * @license Apache-2.0
707
+ *
708
+ * Copyright (c) 2018 The Stdlib Authors.
709
+ *
710
+ * Licensed under the Apache License, Version 2.0 (the "License");
711
+ * you may not use this file except in compliance with the License.
712
+ * You may obtain a copy of the License at
713
+ *
714
+ * http://www.apache.org/licenses/LICENSE-2.0
715
+ *
716
+ * Unless required by applicable law or agreed to in writing, software
717
+ * distributed under the License is distributed on an "AS IS" BASIS,
718
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
719
+ * See the License for the specific language governing permissions and
720
+ * limitations under the License.
721
+ */var _e=Ae,O=he,Q=de;function ge(){var r,a;if(typeof Q!="function")return!1;try{a=[1,3.14,-3.14,O+1,O+2],a=new Q(a),r=_e(a)&&a[0]===1&&a[1]===3&&a[2]===O-2&&a[3]===0&&a[4]===1}catch{r=!1}return r}var we=ge;/**
722
+ * @license Apache-2.0
723
+ *
724
+ * Copyright (c) 2018 The Stdlib Authors.
725
+ *
726
+ * Licensed under the Apache License, Version 2.0 (the "License");
727
+ * you may not use this file except in compliance with the License.
728
+ * You may obtain a copy of the License at
729
+ *
730
+ * http://www.apache.org/licenses/LICENSE-2.0
731
+ *
732
+ * Unless required by applicable law or agreed to in writing, software
733
+ * distributed under the License is distributed on an "AS IS" BASIS,
734
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
735
+ * See the License for the specific language governing permissions and
736
+ * limitations under the License.
737
+ */var Ne=we,Se=Ne;/**
738
+ * @license Apache-2.0
739
+ *
740
+ * Copyright (c) 2018 The Stdlib Authors.
741
+ *
742
+ * Licensed under the Apache License, Version 2.0 (the "License");
743
+ * you may not use this file except in compliance with the License.
744
+ * You may obtain a copy of the License at
745
+ *
746
+ * http://www.apache.org/licenses/LICENSE-2.0
747
+ *
748
+ * Unless required by applicable law or agreed to in writing, software
749
+ * distributed under the License is distributed on an "AS IS" BASIS,
750
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
751
+ * See the License for the specific language governing permissions and
752
+ * limitations under the License.
753
+ */var Oe=typeof Uint8Array=="function"?Uint8Array:void 0,Ie=Oe;/**
754
+ * @license Apache-2.0
755
+ *
756
+ * Copyright (c) 2018 The Stdlib Authors.
757
+ *
758
+ * Licensed under the Apache License, Version 2.0 (the "License");
759
+ * you may not use this file except in compliance with the License.
760
+ * You may obtain a copy of the License at
761
+ *
762
+ * http://www.apache.org/licenses/LICENSE-2.0
763
+ *
764
+ * Unless required by applicable law or agreed to in writing, software
765
+ * distributed under the License is distributed on an "AS IS" BASIS,
766
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
767
+ * See the License for the specific language governing permissions and
768
+ * limitations under the License.
769
+ */function Ue(){throw new Error("not implemented")}var Ee=Ue;/**
770
+ * @license Apache-2.0
771
+ *
772
+ * Copyright (c) 2018 The Stdlib Authors.
773
+ *
774
+ * Licensed under the Apache License, Version 2.0 (the "License");
775
+ * you may not use this file except in compliance with the License.
776
+ * You may obtain a copy of the License at
777
+ *
778
+ * http://www.apache.org/licenses/LICENSE-2.0
779
+ *
780
+ * Unless required by applicable law or agreed to in writing, software
781
+ * distributed under the License is distributed on an "AS IS" BASIS,
782
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
783
+ * See the License for the specific language governing permissions and
784
+ * limitations under the License.
785
+ */var Te=Se,Fe=Ie,Le=Ee,M;Te()?M=Fe:M=Le;var Pe=M;/**
786
+ * @license Apache-2.0
787
+ *
788
+ * Copyright (c) 2018 The Stdlib Authors.
789
+ *
790
+ * Licensed under the Apache License, Version 2.0 (the "License");
791
+ * you may not use this file except in compliance with the License.
792
+ * You may obtain a copy of the License at
793
+ *
794
+ * http://www.apache.org/licenses/LICENSE-2.0
795
+ *
796
+ * Unless required by applicable law or agreed to in writing, software
797
+ * distributed under the License is distributed on an "AS IS" BASIS,
798
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
799
+ * See the License for the specific language governing permissions and
800
+ * limitations under the License.
801
+ */var Me=g,We=typeof Uint16Array=="function";function je(r){return We&&r instanceof Uint16Array||Me(r)==="[object Uint16Array]"}var He=je;/**
802
+ * @license Apache-2.0
803
+ *
804
+ * Copyright (c) 2018 The Stdlib Authors.
805
+ *
806
+ * Licensed under the Apache License, Version 2.0 (the "License");
807
+ * you may not use this file except in compliance with the License.
808
+ * You may obtain a copy of the License at
809
+ *
810
+ * http://www.apache.org/licenses/LICENSE-2.0
811
+ *
812
+ * Unless required by applicable law or agreed to in writing, software
813
+ * distributed under the License is distributed on an "AS IS" BASIS,
814
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
815
+ * See the License for the specific language governing permissions and
816
+ * limitations under the License.
817
+ */var Ce=He,Ge=Ce;/**
818
+ * @license Apache-2.0
819
+ *
820
+ * Copyright (c) 2018 The Stdlib Authors.
821
+ *
822
+ * Licensed under the Apache License, Version 2.0 (the "License");
823
+ * you may not use this file except in compliance with the License.
824
+ * You may obtain a copy of the License at
825
+ *
826
+ * http://www.apache.org/licenses/LICENSE-2.0
827
+ *
828
+ * Unless required by applicable law or agreed to in writing, software
829
+ * distributed under the License is distributed on an "AS IS" BASIS,
830
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
831
+ * See the License for the specific language governing permissions and
832
+ * limitations under the License.
833
+ */var Xe=65535,Re=Xe;/**
834
+ * @license Apache-2.0
835
+ *
836
+ * Copyright (c) 2018 The Stdlib Authors.
837
+ *
838
+ * Licensed under the Apache License, Version 2.0 (the "License");
839
+ * you may not use this file except in compliance with the License.
840
+ * You may obtain a copy of the License at
841
+ *
842
+ * http://www.apache.org/licenses/LICENSE-2.0
843
+ *
844
+ * Unless required by applicable law or agreed to in writing, software
845
+ * distributed under the License is distributed on an "AS IS" BASIS,
846
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
847
+ * See the License for the specific language governing permissions and
848
+ * limitations under the License.
849
+ */var De=typeof Uint16Array=="function"?Uint16Array:null,Be=De;/**
850
+ * @license Apache-2.0
851
+ *
852
+ * Copyright (c) 2018 The Stdlib Authors.
853
+ *
854
+ * Licensed under the Apache License, Version 2.0 (the "License");
855
+ * you may not use this file except in compliance with the License.
856
+ * You may obtain a copy of the License at
857
+ *
858
+ * http://www.apache.org/licenses/LICENSE-2.0
859
+ *
860
+ * Unless required by applicable law or agreed to in writing, software
861
+ * distributed under the License is distributed on an "AS IS" BASIS,
862
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
863
+ * See the License for the specific language governing permissions and
864
+ * limitations under the License.
865
+ */var Ve=Ge,I=Re,Y=Be;function xe(){var r,a;if(typeof Y!="function")return!1;try{a=[1,3.14,-3.14,I+1,I+2],a=new Y(a),r=Ve(a)&&a[0]===1&&a[1]===3&&a[2]===I-2&&a[3]===0&&a[4]===1}catch{r=!1}return r}var Je=xe;/**
866
+ * @license Apache-2.0
867
+ *
868
+ * Copyright (c) 2018 The Stdlib Authors.
869
+ *
870
+ * Licensed under the Apache License, Version 2.0 (the "License");
871
+ * you may not use this file except in compliance with the License.
872
+ * You may obtain a copy of the License at
873
+ *
874
+ * http://www.apache.org/licenses/LICENSE-2.0
875
+ *
876
+ * Unless required by applicable law or agreed to in writing, software
877
+ * distributed under the License is distributed on an "AS IS" BASIS,
878
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
879
+ * See the License for the specific language governing permissions and
880
+ * limitations under the License.
881
+ */var ze=Je,qe=ze;/**
882
+ * @license Apache-2.0
883
+ *
884
+ * Copyright (c) 2018 The Stdlib Authors.
885
+ *
886
+ * Licensed under the Apache License, Version 2.0 (the "License");
887
+ * you may not use this file except in compliance with the License.
888
+ * You may obtain a copy of the License at
889
+ *
890
+ * http://www.apache.org/licenses/LICENSE-2.0
891
+ *
892
+ * Unless required by applicable law or agreed to in writing, software
893
+ * distributed under the License is distributed on an "AS IS" BASIS,
894
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
895
+ * See the License for the specific language governing permissions and
896
+ * limitations under the License.
897
+ */var Ke=typeof Uint16Array=="function"?Uint16Array:void 0,Qe=Ke;/**
898
+ * @license Apache-2.0
899
+ *
900
+ * Copyright (c) 2018 The Stdlib Authors.
901
+ *
902
+ * Licensed under the Apache License, Version 2.0 (the "License");
903
+ * you may not use this file except in compliance with the License.
904
+ * You may obtain a copy of the License at
905
+ *
906
+ * http://www.apache.org/licenses/LICENSE-2.0
907
+ *
908
+ * Unless required by applicable law or agreed to in writing, software
909
+ * distributed under the License is distributed on an "AS IS" BASIS,
910
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
911
+ * See the License for the specific language governing permissions and
912
+ * limitations under the License.
913
+ */function Ye(){throw new Error("not implemented")}var Ze=Ye;/**
914
+ * @license Apache-2.0
915
+ *
916
+ * Copyright (c) 2018 The Stdlib Authors.
917
+ *
918
+ * Licensed under the Apache License, Version 2.0 (the "License");
919
+ * you may not use this file except in compliance with the License.
920
+ * You may obtain a copy of the License at
921
+ *
922
+ * http://www.apache.org/licenses/LICENSE-2.0
923
+ *
924
+ * Unless required by applicable law or agreed to in writing, software
925
+ * distributed under the License is distributed on an "AS IS" BASIS,
926
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
927
+ * See the License for the specific language governing permissions and
928
+ * limitations under the License.
929
+ */var ke=qe,rt=Qe,at=Ze,W;ke()?W=rt:W=at;var et=W;/**
930
+ * @license Apache-2.0
931
+ *
932
+ * Copyright (c) 2018 The Stdlib Authors.
933
+ *
934
+ * Licensed under the Apache License, Version 2.0 (the "License");
935
+ * you may not use this file except in compliance with the License.
936
+ * You may obtain a copy of the License at
937
+ *
938
+ * http://www.apache.org/licenses/LICENSE-2.0
939
+ *
940
+ * Unless required by applicable law or agreed to in writing, software
941
+ * distributed under the License is distributed on an "AS IS" BASIS,
942
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
943
+ * See the License for the specific language governing permissions and
944
+ * limitations under the License.
945
+ */var tt=Pe,nt=et,it={uint16:nt,uint8:tt},ot=it;/**
946
+ * @license Apache-2.0
947
+ *
948
+ * Copyright (c) 2018 The Stdlib Authors.
949
+ *
950
+ * Licensed under the Apache License, Version 2.0 (the "License");
951
+ * you may not use this file except in compliance with the License.
952
+ * You may obtain a copy of the License at
953
+ *
954
+ * http://www.apache.org/licenses/LICENSE-2.0
955
+ *
956
+ * Unless required by applicable law or agreed to in writing, software
957
+ * distributed under the License is distributed on an "AS IS" BASIS,
958
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
959
+ * See the License for the specific language governing permissions and
960
+ * limitations under the License.
961
+ */var Z=ot,pr;function lt(){var r,a;return r=new Z.uint16(1),r[0]=4660,a=new Z.uint8(r.buffer),a[0]===52}pr=lt();var ft=pr;/**
962
+ * @license Apache-2.0
963
+ *
964
+ * Copyright (c) 2018 The Stdlib Authors.
965
+ *
966
+ * Licensed under the Apache License, Version 2.0 (the "License");
967
+ * you may not use this file except in compliance with the License.
968
+ * You may obtain a copy of the License at
969
+ *
970
+ * http://www.apache.org/licenses/LICENSE-2.0
971
+ *
972
+ * Unless required by applicable law or agreed to in writing, software
973
+ * distributed under the License is distributed on an "AS IS" BASIS,
974
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
975
+ * See the License for the specific language governing permissions and
976
+ * limitations under the License.
977
+ */var ut=ft,V=ut;/**
978
+ * @license Apache-2.0
979
+ *
980
+ * Copyright (c) 2018 The Stdlib Authors.
981
+ *
982
+ * Licensed under the Apache License, Version 2.0 (the "License");
983
+ * you may not use this file except in compliance with the License.
984
+ * You may obtain a copy of the License at
985
+ *
986
+ * http://www.apache.org/licenses/LICENSE-2.0
987
+ *
988
+ * Unless required by applicable law or agreed to in writing, software
989
+ * distributed under the License is distributed on an "AS IS" BASIS,
990
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
991
+ * See the License for the specific language governing permissions and
992
+ * limitations under the License.
993
+ */var vt=V,yr,j,H;vt===!0?(j=1,H=0):(j=0,H=1);yr={HIGH:j,LOW:H};var st=yr;/**
994
+ * @license Apache-2.0
995
+ *
996
+ * Copyright (c) 2018 The Stdlib Authors.
997
+ *
998
+ * Licensed under the Apache License, Version 2.0 (the "License");
999
+ * you may not use this file except in compliance with the License.
1000
+ * You may obtain a copy of the License at
1001
+ *
1002
+ * http://www.apache.org/licenses/LICENSE-2.0
1003
+ *
1004
+ * Unless required by applicable law or agreed to in writing, software
1005
+ * distributed under the License is distributed on an "AS IS" BASIS,
1006
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1007
+ * See the License for the specific language governing permissions and
1008
+ * limitations under the License.
1009
+ */var ct=D,$t=B,Ar=st,br=new $t(1),k=new ct(br.buffer),pt=Ar.HIGH,yt=Ar.LOW;function At(r,a){return br[0]=a,r[0]=k[pt],r[1]=k[yt],r}var bt=At;/**
1010
+ * @license Apache-2.0
1011
+ *
1012
+ * Copyright (c) 2018 The Stdlib Authors.
1013
+ *
1014
+ * Licensed under the Apache License, Version 2.0 (the "License");
1015
+ * you may not use this file except in compliance with the License.
1016
+ * You may obtain a copy of the License at
1017
+ *
1018
+ * http://www.apache.org/licenses/LICENSE-2.0
1019
+ *
1020
+ * Unless required by applicable law or agreed to in writing, software
1021
+ * distributed under the License is distributed on an "AS IS" BASIS,
1022
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1023
+ * See the License for the specific language governing permissions and
1024
+ * limitations under the License.
1025
+ */var rr=bt;function ht(r,a){return arguments.length===1?rr([0,0],r):rr(r,a)}var mt=ht;/**
1026
+ * @license Apache-2.0
1027
+ *
1028
+ * Copyright (c) 2018 The Stdlib Authors.
1029
+ *
1030
+ * Licensed under the Apache License, Version 2.0 (the "License");
1031
+ * you may not use this file except in compliance with the License.
1032
+ * You may obtain a copy of the License at
1033
+ *
1034
+ * http://www.apache.org/licenses/LICENSE-2.0
1035
+ *
1036
+ * Unless required by applicable law or agreed to in writing, software
1037
+ * distributed under the License is distributed on an "AS IS" BASIS,
1038
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1039
+ * See the License for the specific language governing permissions and
1040
+ * limitations under the License.
1041
+ */var dt=mt,hr=dt;/**
1042
+ * @license Apache-2.0
1043
+ *
1044
+ * Copyright (c) 2018 The Stdlib Authors.
1045
+ *
1046
+ * Licensed under the Apache License, Version 2.0 (the "License");
1047
+ * you may not use this file except in compliance with the License.
1048
+ * You may obtain a copy of the License at
1049
+ *
1050
+ * http://www.apache.org/licenses/LICENSE-2.0
1051
+ *
1052
+ * Unless required by applicable law or agreed to in writing, software
1053
+ * distributed under the License is distributed on an "AS IS" BASIS,
1054
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1055
+ * See the License for the specific language governing permissions and
1056
+ * limitations under the License.
1057
+ */var _t=V,C;_t===!0?C=1:C=0;var gt=C;/**
1058
+ * @license Apache-2.0
1059
+ *
1060
+ * Copyright (c) 2018 The Stdlib Authors.
1061
+ *
1062
+ * Licensed under the Apache License, Version 2.0 (the "License");
1063
+ * you may not use this file except in compliance with the License.
1064
+ * You may obtain a copy of the License at
1065
+ *
1066
+ * http://www.apache.org/licenses/LICENSE-2.0
1067
+ *
1068
+ * Unless required by applicable law or agreed to in writing, software
1069
+ * distributed under the License is distributed on an "AS IS" BASIS,
1070
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1071
+ * See the License for the specific language governing permissions and
1072
+ * limitations under the License.
1073
+ */var wt=D,Nt=B,St=gt,mr=new Nt(1),Ot=new wt(mr.buffer);function It(r){return mr[0]=r,Ot[St]}var Ut=It;/**
1074
+ * @license Apache-2.0
1075
+ *
1076
+ * Copyright (c) 2018 The Stdlib Authors.
1077
+ *
1078
+ * Licensed under the Apache License, Version 2.0 (the "License");
1079
+ * you may not use this file except in compliance with the License.
1080
+ * You may obtain a copy of the License at
1081
+ *
1082
+ * http://www.apache.org/licenses/LICENSE-2.0
1083
+ *
1084
+ * Unless required by applicable law or agreed to in writing, software
1085
+ * distributed under the License is distributed on an "AS IS" BASIS,
1086
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1087
+ * See the License for the specific language governing permissions and
1088
+ * limitations under the License.
1089
+ */var Et=Ut,dr=Et;/**
1090
+ * @license Apache-2.0
1091
+ *
1092
+ * Copyright (c) 2018 The Stdlib Authors.
1093
+ *
1094
+ * Licensed under the Apache License, Version 2.0 (the "License");
1095
+ * you may not use this file except in compliance with the License.
1096
+ * You may obtain a copy of the License at
1097
+ *
1098
+ * http://www.apache.org/licenses/LICENSE-2.0
1099
+ *
1100
+ * Unless required by applicable law or agreed to in writing, software
1101
+ * distributed under the License is distributed on an "AS IS" BASIS,
1102
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1103
+ * See the License for the specific language governing permissions and
1104
+ * limitations under the License.
1105
+ */var Tt=V,_r,G,X;Tt===!0?(G=1,X=0):(G=0,X=1);_r={HIGH:G,LOW:X};var Ft=_r;/**
1106
+ * @license Apache-2.0
1107
+ *
1108
+ * Copyright (c) 2018 The Stdlib Authors.
1109
+ *
1110
+ * Licensed under the Apache License, Version 2.0 (the "License");
1111
+ * you may not use this file except in compliance with the License.
1112
+ * You may obtain a copy of the License at
1113
+ *
1114
+ * http://www.apache.org/licenses/LICENSE-2.0
1115
+ *
1116
+ * Unless required by applicable law or agreed to in writing, software
1117
+ * distributed under the License is distributed on an "AS IS" BASIS,
1118
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1119
+ * See the License for the specific language governing permissions and
1120
+ * limitations under the License.
1121
+ */var Lt=D,Pt=B,gr=Ft,wr=new Pt(1),ar=new Lt(wr.buffer),Mt=gr.HIGH,Wt=gr.LOW;function jt(r,a){return ar[Mt]=r,ar[Wt]=a,wr[0]}var Ht=jt;/**
1122
+ * @license Apache-2.0
1123
+ *
1124
+ * Copyright (c) 2018 The Stdlib Authors.
1125
+ *
1126
+ * Licensed under the Apache License, Version 2.0 (the "License");
1127
+ * you may not use this file except in compliance with the License.
1128
+ * You may obtain a copy of the License at
1129
+ *
1130
+ * http://www.apache.org/licenses/LICENSE-2.0
1131
+ *
1132
+ * Unless required by applicable law or agreed to in writing, software
1133
+ * distributed under the License is distributed on an "AS IS" BASIS,
1134
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1135
+ * See the License for the specific language governing permissions and
1136
+ * limitations under the License.
1137
+ */var Ct=Ht,Nr=Ct;/**
1138
+ * @license Apache-2.0
1139
+ *
1140
+ * Copyright (c) 2018 The Stdlib Authors.
1141
+ *
1142
+ * Licensed under the Apache License, Version 2.0 (the "License");
1143
+ * you may not use this file except in compliance with the License.
1144
+ * You may obtain a copy of the License at
1145
+ *
1146
+ * http://www.apache.org/licenses/LICENSE-2.0
1147
+ *
1148
+ * Unless required by applicable law or agreed to in writing, software
1149
+ * distributed under the License is distributed on an "AS IS" BASIS,
1150
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1151
+ * See the License for the specific language governing permissions and
1152
+ * limitations under the License.
1153
+ */var Gt=hr,Xt=dr,Rt=Nr,Dt=2147483648>>>0,Bt=2147483647,U=[0,0];function Vt(r,a){var e,t;return Gt(U,r),e=U[0],e&=Bt,t=Xt(a),t&=Dt,e|=t,Rt(e,U[1])}var xt=Vt;/**
1154
+ * @license Apache-2.0
1155
+ *
1156
+ * Copyright (c) 2018 The Stdlib Authors.
1157
+ *
1158
+ * Licensed under the Apache License, Version 2.0 (the "License");
1159
+ * you may not use this file except in compliance with the License.
1160
+ * You may obtain a copy of the License at
1161
+ *
1162
+ * http://www.apache.org/licenses/LICENSE-2.0
1163
+ *
1164
+ * Unless required by applicable law or agreed to in writing, software
1165
+ * distributed under the License is distributed on an "AS IS" BASIS,
1166
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1167
+ * See the License for the specific language governing permissions and
1168
+ * limitations under the License.
1169
+ */var Jt=xt,zt=Jt;/**
1170
+ * @license Apache-2.0
1171
+ *
1172
+ * Copyright (c) 2018 The Stdlib Authors.
1173
+ *
1174
+ * Licensed under the Apache License, Version 2.0 (the "License");
1175
+ * you may not use this file except in compliance with the License.
1176
+ * You may obtain a copy of the License at
1177
+ *
1178
+ * http://www.apache.org/licenses/LICENSE-2.0
1179
+ *
1180
+ * Unless required by applicable law or agreed to in writing, software
1181
+ * distributed under the License is distributed on an "AS IS" BASIS,
1182
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1183
+ * See the License for the specific language governing permissions and
1184
+ * limitations under the License.
1185
+ */var qt=22250738585072014e-324,Kt=qt;/**
1186
+ * @license Apache-2.0
1187
+ *
1188
+ * Copyright (c) 2021 The Stdlib Authors.
1189
+ *
1190
+ * Licensed under the Apache License, Version 2.0 (the "License");
1191
+ * you may not use this file except in compliance with the License.
1192
+ * You may obtain a copy of the License at
1193
+ *
1194
+ * http://www.apache.org/licenses/LICENSE-2.0
1195
+ *
1196
+ * Unless required by applicable law or agreed to in writing, software
1197
+ * distributed under the License is distributed on an "AS IS" BASIS,
1198
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1199
+ * See the License for the specific language governing permissions and
1200
+ * limitations under the License.
1201
+ */function Qt(r){return Math.abs(r)}var Yt=Qt;/**
1202
+ * @license Apache-2.0
1203
+ *
1204
+ * Copyright (c) 2018 The Stdlib Authors.
1205
+ *
1206
+ * Licensed under the Apache License, Version 2.0 (the "License");
1207
+ * you may not use this file except in compliance with the License.
1208
+ * You may obtain a copy of the License at
1209
+ *
1210
+ * http://www.apache.org/licenses/LICENSE-2.0
1211
+ *
1212
+ * Unless required by applicable law or agreed to in writing, software
1213
+ * distributed under the License is distributed on an "AS IS" BASIS,
1214
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1215
+ * See the License for the specific language governing permissions and
1216
+ * limitations under the License.
1217
+ */var Zt=Yt,kt=Zt;/**
1218
+ * @license Apache-2.0
1219
+ *
1220
+ * Copyright (c) 2018 The Stdlib Authors.
1221
+ *
1222
+ * Licensed under the Apache License, Version 2.0 (the "License");
1223
+ * you may not use this file except in compliance with the License.
1224
+ * You may obtain a copy of the License at
1225
+ *
1226
+ * http://www.apache.org/licenses/LICENSE-2.0
1227
+ *
1228
+ * Unless required by applicable law or agreed to in writing, software
1229
+ * distributed under the License is distributed on an "AS IS" BASIS,
1230
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1231
+ * See the License for the specific language governing permissions and
1232
+ * limitations under the License.
1233
+ */var rn=Kt,an=cr,en=sr,tn=kt,nn=4503599627370496;function on(r,a){return en(a)||an(a)?(r[0]=a,r[1]=0,r):a!==0&&tn(a)<rn?(r[0]=a*nn,r[1]=-52,r):(r[0]=a,r[1]=0,r)}var ln=on;/**
1234
+ * @license Apache-2.0
1235
+ *
1236
+ * Copyright (c) 2018 The Stdlib Authors.
1237
+ *
1238
+ * Licensed under the Apache License, Version 2.0 (the "License");
1239
+ * you may not use this file except in compliance with the License.
1240
+ * You may obtain a copy of the License at
1241
+ *
1242
+ * http://www.apache.org/licenses/LICENSE-2.0
1243
+ *
1244
+ * Unless required by applicable law or agreed to in writing, software
1245
+ * distributed under the License is distributed on an "AS IS" BASIS,
1246
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1247
+ * See the License for the specific language governing permissions and
1248
+ * limitations under the License.
1249
+ */var er=ln;function fn(r,a){return arguments.length===1?er([0,0],r):er(r,a)}var un=fn;/**
1250
+ * @license Apache-2.0
1251
+ *
1252
+ * Copyright (c) 2018 The Stdlib Authors.
1253
+ *
1254
+ * Licensed under the Apache License, Version 2.0 (the "License");
1255
+ * you may not use this file except in compliance with the License.
1256
+ * You may obtain a copy of the License at
1257
+ *
1258
+ * http://www.apache.org/licenses/LICENSE-2.0
1259
+ *
1260
+ * Unless required by applicable law or agreed to in writing, software
1261
+ * distributed under the License is distributed on an "AS IS" BASIS,
1262
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1263
+ * See the License for the specific language governing permissions and
1264
+ * limitations under the License.
1265
+ */var vn=un,sn=vn;/**
1266
+ * @license Apache-2.0
1267
+ *
1268
+ * Copyright (c) 2018 The Stdlib Authors.
1269
+ *
1270
+ * Licensed under the Apache License, Version 2.0 (the "License");
1271
+ * you may not use this file except in compliance with the License.
1272
+ * You may obtain a copy of the License at
1273
+ *
1274
+ * http://www.apache.org/licenses/LICENSE-2.0
1275
+ *
1276
+ * Unless required by applicable law or agreed to in writing, software
1277
+ * distributed under the License is distributed on an "AS IS" BASIS,
1278
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1279
+ * See the License for the specific language governing permissions and
1280
+ * limitations under the License.
1281
+ */var cn=2146435072,$n=cn;/**
1282
+ * @license Apache-2.0
1283
+ *
1284
+ * Copyright (c) 2018 The Stdlib Authors.
1285
+ *
1286
+ * Licensed under the Apache License, Version 2.0 (the "License");
1287
+ * you may not use this file except in compliance with the License.
1288
+ * You may obtain a copy of the License at
1289
+ *
1290
+ * http://www.apache.org/licenses/LICENSE-2.0
1291
+ *
1292
+ * Unless required by applicable law or agreed to in writing, software
1293
+ * distributed under the License is distributed on an "AS IS" BASIS,
1294
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1295
+ * See the License for the specific language governing permissions and
1296
+ * limitations under the License.
1297
+ */var pn=dr,yn=$n,An=vr;function bn(r){var a=pn(r);return a=(a&yn)>>>20,a-An|0}var hn=bn;/**
1298
+ * @license Apache-2.0
1299
+ *
1300
+ * Copyright (c) 2018 The Stdlib Authors.
1301
+ *
1302
+ * Licensed under the Apache License, Version 2.0 (the "License");
1303
+ * you may not use this file except in compliance with the License.
1304
+ * You may obtain a copy of the License at
1305
+ *
1306
+ * http://www.apache.org/licenses/LICENSE-2.0
1307
+ *
1308
+ * Unless required by applicable law or agreed to in writing, software
1309
+ * distributed under the License is distributed on an "AS IS" BASIS,
1310
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1311
+ * See the License for the specific language governing permissions and
1312
+ * limitations under the License.
1313
+ */var mn=hn,dn=mn;/**
1314
+ * @license Apache-2.0
1315
+ *
1316
+ * Copyright (c) 2018 The Stdlib Authors.
1317
+ *
1318
+ * Licensed under the Apache License, Version 2.0 (the "License");
1319
+ * you may not use this file except in compliance with the License.
1320
+ * You may obtain a copy of the License at
1321
+ *
1322
+ * http://www.apache.org/licenses/LICENSE-2.0
1323
+ *
1324
+ * Unless required by applicable law or agreed to in writing, software
1325
+ * distributed under the License is distributed on an "AS IS" BASIS,
1326
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1327
+ * See the License for the specific language governing permissions and
1328
+ * limitations under the License.
1329
+ */var _n=fr,gn=ur,wn=vr,Nn=Hr,Sn=Gr,On=Rr,In=sr,Un=cr,En=zt,Tn=sn,Fn=dn,Ln=hr,Pn=Nr,Mn=2220446049250313e-31,Wn=2148532223>>>0,E=[0,0],T=[0,0];function jn(r,a){var e,t;return r===0||In(r)||Un(r)?r:(Tn(E,r),r=E[0],a+=E[1],a+=Fn(r),a<On?En(0,r):a>Nn?r<0?gn:_n:(a<=Sn?(a+=52,t=Mn):t=1,Ln(T,r),e=T[0],e&=Wn,e|=a+wn<<20,t*Pn(e,T[1])))}var Hn=jn;/**
1330
+ * @license Apache-2.0
1331
+ *
1332
+ * Copyright (c) 2018 The Stdlib Authors.
1333
+ *
1334
+ * Licensed under the Apache License, Version 2.0 (the "License");
1335
+ * you may not use this file except in compliance with the License.
1336
+ * You may obtain a copy of the License at
1337
+ *
1338
+ * http://www.apache.org/licenses/LICENSE-2.0
1339
+ *
1340
+ * Unless required by applicable law or agreed to in writing, software
1341
+ * distributed under the License is distributed on an "AS IS" BASIS,
1342
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1343
+ * See the License for the specific language governing permissions and
1344
+ * limitations under the License.
1345
+ */var Cn=Hn,Gn=Cn,Xn=or(Sr),w={},Rn=$&&$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(w,"__esModule",{value:!0});w.unset=void 0;var Dn=Rn(_.exports);function Bn(r,a){if((0,Dn.default)(r,a)){for(var e=a.split("."),t=e.pop();e.length&&e[e.length-1].slice(-1)==="\\";)t=e.pop().slice(0,-1)+"."+t;for(;e.length;)r=r[a=e.shift()];return delete r[t]}return!0}w.unset=Bn;var x=$&&$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(R,"__esModule",{value:!0});var Vn=x(Ur),y=x(_.exports),xn=x(Gn),b=Xn,Jn=w;function zn(r,a){for(var e=r,t=0,n=a;t<n.length;t++){var i=n[t];switch(i.type){case"drop":return null;case"drop_properties":qn(e,i.config);break;case"allow_properties":Kn(e,i.config);break;case"sample_event":if(Yn(e,i.config))break;return null;case"map_properties":Qn(e,i.config);break;case"hash_properties":break;default:throw new Error('Transformer of type "'.concat(i.type,'" is unsupported.'))}}return e}R.default=zn;function qn(r,a){for(var e in a.drop)if(!!a.drop.hasOwnProperty(e)){var t=e===""?r:(0,y.default)(r,e);if(!(typeof t!="object"||t===null))for(var n=0,i=a.drop[e];n<i.length;n++){var l=i[n];delete t[l]}}}function Kn(r,a){for(var e in a.allow)if(!!a.allow.hasOwnProperty(e)){var t=e===""?r:(0,y.default)(r,e);if(!(typeof t!="object"||t===null))for(var n in t)!t.hasOwnProperty(n)||a.allow[e].indexOf(n)===-1&&delete t[n]}}function Qn(r,a){var e=JSON.parse(JSON.stringify(r));for(var t in a.map)if(!!a.map.hasOwnProperty(t)){var n=a.map[t],i=t.split("."),l=void 0;if(i.length>1?(i.pop(),l=(0,y.default)(e,i.join("."))):l=r,typeof l=="object"){if(n.copy){var o=(0,y.default)(e,n.copy);o!==void 0&&(0,b.dset)(r,t,o)}else if(n.move){var f=(0,y.default)(e,n.move);f!==void 0&&(0,b.dset)(r,t,f),(0,Jn.unset)(r,n.move)}else n.hasOwnProperty("set")&&(0,b.dset)(r,t,n.set);if(n.to_string){var u=(0,y.default)(r,t);if(typeof u=="string"||typeof u=="object"&&u!==null)continue;u!==void 0?(0,b.dset)(r,t,JSON.stringify(u)):(0,b.dset)(r,t,"undefined")}}}}function Yn(r,a){return a.sample.percent<=0?!1:a.sample.percent>=1?!0:a.sample.path?kn(r,a):Zn(a.sample.percent)}function Zn(r){return Math.random()<=r}function kn(r,a){var e=(0,y.default)(r,a.sample.path),t=(0,Vn.default)(JSON.stringify(e)),n=-64,i=[];tr(t.slice(0,8),i);for(var l=0,o=0;o<64&&i[o]!==1;o++)l++;if(l!==0){var f=[];tr(t.slice(9,16),f),n-=l,i.splice(0,l),f.splice(64-l),i=i.concat(f)}return i[63]=i[63]===0?1:0,(0,xn.default)(parseInt(i.join(""),2),n)<a.sample.percent}function tr(r,a){for(var e=0;e<8;e++)for(var t=r[e],n=128;n>=1;n/=2)t-n>=0?(t-=n,a.push(1)):a.push(0)}var J={},ri=$&&$.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(J,"__esModule",{value:!0});var ai=ri(_.exports);function ei(r,a){if(!a)throw new Error("No matcher supplied!");switch(a.type){case"all":return ti();case"fql":return ni(a.ir,r);default:throw new Error("Matcher of type ".concat(a.type," unsupported."))}}J.default=ei;function ti(){return!0}function ni(r,a){if(!r)return!1;try{r=JSON.parse(r)}catch(t){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(r,'": ').concat(t))}var e=c(r,a);return typeof e!="boolean"?!1:e}function c(r,a){if(!Array.isArray(r))return s(r,a)===!0;var e=r[0];switch(e){case"!":return!c(r[1],a);case"or":for(var t=1;t<r.length;t++)if(c(r[t],a))return!0;return!1;case"and":for(var t=1;t<r.length;t++)if(!c(r[t],a))return!1;return!0;case"=":case"!=":return oi(s(r[1],a),s(r[2],a),e,a);case"<=":case"<":case">":case">=":return ii(s(r[1],a),s(r[2],a),e,a);case"contains":return li(s(r[1],a),s(r[2],a));case"match":return fi(s(r[1],a),s(r[2],a));case"lowercase":var n=s(r[1],a);return typeof n!="string"?null:n.toLowerCase();case"typeof":return typeof s(r[1],a);case"length":return ui(s(r[1],a));default:throw new Error("FQL IR could not evaluate for token: ".concat(e))}}function s(r,a){return Array.isArray(r)?r:typeof r=="object"?r.value:(0,ai.default)(a,r)}function ii(r,a,e,t){if(d(r)&&(r=c(r,t)),d(a)&&(a=c(a,t)),typeof r!="number"||typeof a!="number")return!1;switch(e){case"<=":return r<=a;case">=":return r>=a;case"<":return r<a;case">":return r>a;default:throw new Error("Invalid operator in compareNumbers: ".concat(e))}}function oi(r,a,e,t){switch(d(r)&&(r=c(r,t)),d(a)&&(a=c(a,t)),typeof r=="object"&&typeof a=="object"&&(r=JSON.stringify(r),a=JSON.stringify(a)),e){case"=":return r===a;case"!=":return r!==a;default:throw new Error("Invalid operator in compareItems: ".concat(e))}}function li(r,a){return typeof r!="string"||typeof a!="string"?!1:r.indexOf(a)!==-1}function fi(r,a){return typeof r!="string"||typeof a!="string"?!1:vi(a,r)}function ui(r){return r===null?0:!Array.isArray(r)&&typeof r!="string"?NaN:r.length}function d(r){return Array.isArray(r)?(r[0]==="lowercase"||r[0]==="length"||r[0]==="typeof")&&r.length===2||(r[0]==="contains"||r[0]==="match")&&r.length===3:!1}function vi(r,a){var e,t;r:for(;r.length>0;){var n=void 0,i=void 0;if(e=si(r),n=e.star,i=e.chunk,r=e.pattern,n&&i==="")return!0;var l=nr(i,a),o=l.t,f=l.ok,u=l.err;if(u)return!1;if(f&&(o.length===0||r.length>0)){a=o;continue}if(n)for(var v=0;v<a.length;v++){if(t=nr(i,a.slice(v+1)),o=t.t,f=t.ok,u=t.err,f){if(r.length===0&&o.length>0)continue;a=o;continue r}if(u)return!1}return!1}return a.length===0}function si(r){for(var a={star:!1,chunk:"",pattern:""};r.length>0&&r[0]==="*";)r=r.slice(1),a.star=!0;var e=!1,t;r:for(t=0;t<r.length;t++)switch(r[t]){case"\\":t+1<r.length&&t++;break;case"[":e=!0;break;case"]":e=!1;break;case"*":if(!e)break r}return a.chunk=r.slice(0,t),a.pattern=r.slice(t),a}function nr(r,a){for(var e,t,n={t:"",ok:!1,err:!1};r.length>0;){if(a.length===0)return n;switch(r[0]){case"[":var i=a[0];a=a.slice(1),r=r.slice(1);var l=!0;r.length>0&&r[0]==="^"&&(l=!1,r=r.slice(1));for(var o=!1,f=0;;){if(r.length>0&&r[0]==="]"&&f>0){r=r.slice(1);break}var u="",v="",h=void 0;if(e=ir(r),u=e.char,r=e.newChunk,h=e.err,h||(v=u,r[0]==="-"&&(t=ir(r.slice(1)),v=t.char,r=t.newChunk,h=t.err,h)))return n;u<=i&&i<=v&&(o=!0),f++}if(o!==l)return n;break;case"?":a=a.slice(1),r=r.slice(1);break;case"\\":if(r=r.slice(1),r.length===0)return n.err=!0,n;default:if(r[0]!==a[0])return n;a=a.slice(1),r=r.slice(1)}}return n.t=a,n.ok=!0,n.err=!1,n}function ir(r){var a={char:"",newChunk:"",err:!1};return r.length===0||r[0]==="-"||r[0]==="]"||r[0]==="\\"&&(r=r.slice(1),r.length===0)?(a.err=!0,a):(a.char=r[0],a.newChunk=r.slice(1),a.newChunk.length===0&&(a.err=!0),a)}var z={};Object.defineProperty(z,"__esModule",{value:!0});var ci=function(){function r(a){this.rules=[],this.rules=a||[]}return r.prototype.getRulesByDestinationName=function(a){for(var e=[],t=0,n=this.rules;t<n.length;t++){var i=n[t];(i.destinationName===a||i.destinationName===void 0)&&e.push(i)}return e},r}();z.default=ci;(function(r){var a=$&&$.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(r,"__esModule",{value:!0}),r.Store=r.matches=r.transform=void 0;var e=R;Object.defineProperty(r,"transform",{enumerable:!0,get:function(){return a(e).default}});var t=J;Object.defineProperty(r,"matches",{enumerable:!0,get:function(){return a(t).default}});var n=z;Object.defineProperty(r,"Store",{enumerable:!0,get:function(){return a(n).default}})})(m);var Ai=function(r){return function(a){var e=a.payload,t=a.integration,n=a.next,i=new m.Store(r),l=i.getRulesByDestinationName(t);l.forEach(function(o){for(var f=o.matchers,u=o.transformers,v=0;v<f.length;v++)if(m.matches(e.obj,f[v])&&(e.obj=m.transform(e.obj,u[v]),e.obj===null))return n(null)}),n(e)}};export{Ai as tsubMiddleware};