@livetiles/reach-components-react 0.4.92 → 0.4.94
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/ManageChannels.d.ts +1 -0
- package/NewsHero.d.ts +4 -1
- package/{auto-track-f51a2a4b.esm.js → auto-track-3044a81d.esm.js} +1 -1
- package/common/hero/Hero.d.ts +7 -8
- package/common/hero/HeroPaging.d.ts +5 -0
- package/common/hero/HeroSlide.d.ts +18 -5
- package/de.async.esm2.esm.js +1 -1
- package/en.async.esm.esm.js +1 -1
- package/es.async.esm2.esm.js +1 -1
- package/fr.async.esm2.esm.js +1 -1
- package/{index-d4477314.esm.js → index-28074e12.esm.js} +1 -1
- package/{index-b8e04782.esm.js → index-5e113ba7.esm.js} +126 -41
- package/index-6542329b.esm.js +1 -0
- package/index-788b2f42.esm.js +1 -0
- package/{index-beff4bdb.esm.js → index-904b1d06.esm.js} +1 -1
- package/index-b417cb34.esm.js +1 -0
- package/index.d.ts +10 -2
- package/index.esm2.js +11 -11
- package/index.umd.js +138 -53
- package/it.async.esm2.esm.js +1 -1
- package/ja.async.esm2.esm.js +1 -1
- package/package.json +1 -1
- package/tr.async.esm2.esm.js +1 -1
- package/zh-CN.async.esm2.esm.js +1 -1
- package/zh-TW.async.esm2.esm.js +1 -1
- package/index-86828242.esm.js +0 -1
- package/index-9966489c.esm.js +0 -1
- package/index-bb815ffc.esm.js +0 -1
- /package/{index.umd-3ae1841e.esm.js → index.umd-c9cf1445.esm.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{z as e,E as r,L as t,B as i,A as o}from"./index.esm2.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";function a(a,n,c){var s;return e(this,void 0,void 0,(function(){var m,l,u,d,f=this;return r(this,(function(p){switch(p.label){case 0:return t()?[2,[]]:(m=i(),l=null!==(s=n.enabledMiddleware)&&void 0!==s?s:{},u=Object.entries(l).filter((function(e){return e[0],e[1]})).map((function(e){return e[0]})),d=u.map((function(t){return e(f,void 0,void 0,(function(){var e,i,n,s;return r(this,(function(r){switch(r.label){case 0:e=t.replace("@segment/",""),i=e,c&&(i=btoa(e).replace(/=/g,"")),n="".concat(m,"/middleware/").concat(i,"/latest/").concat(i,".js.gz"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,o(n)];case 2:return r.sent(),[2,window["".concat(e,"Middleware")]];case 3:return s=r.sent(),a.log("error",s),a.stats.increment("failed_remote_middleware"),[3,4];case 4:return[2]}}))}))})),[4,Promise.all(d)]);case 1:return[2,p.sent().filter(Boolean)]}}))}))}export{a as remoteMiddlewares};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{F as r,x as e,y as t}from"./index.esm2.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";const n=Object.freeze(Object.defineProperty({__proto__:null,default:function(r,e,t,n,o){for(e=e.split?e.split("."):e,n=0;n<e.length;n++)r=r?r[e[n]]:o;return r===o?t:r}},Symbol.toStringTag,{value:"Module"}));for(var o={},a={},i=[],u=0;u<64;)i[u]=0|4294967296*Math.sin(++u%Math.PI);const c=Object.freeze(Object.defineProperty({__proto__:null,default:function(r){var e,t,n,o=[e=1732584193,t=4023233417,~e,~t],a=[],c=unescape(encodeURI(r))+"",f=c.length;for(r=--f/4+2|15,a[--r]=8*f;~f;)a[f>>2]|=c.charCodeAt(f)<<8*f--;for(u=c=0;u<r;u+=16){for(f=o;c<64;f=[n=f[3],e+((n=f[0]+[e&t|~e&n,n&e|~n&t,e^t^n,t^(e|~n)][f=c>>4]+i[c]+~~a[u|15&[c,5*c+1,3*c+5,7*c][f]])<<(f=[7,12,17,22,5,9,14,20,4,11,16,23,6,10,15,21][4*f+c++%4])|n>>>-f),e,t])e=0|f[1],t=f[2];for(c=4;c;)o[--c]+=f[c]}for(r="";c<32;)r+=(o[c>>3]>>4*(1^c++)&15).toString(16);return r}},Symbol.toStringTag,{value:"Module"})),f=e(c),l=e(n);
|
|
2
2
|
/**
|
|
3
3
|
* @license Apache-2.0
|
|
4
4
|
*
|
|
@@ -15,7 +15,7 @@ import{M as t,x as e,A as n,C as r,H as i,K as o,D as a,y as u,w as s,I as c,Q a
|
|
|
15
15
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
16
16
|
* See the License for the specific language governing permissions and
|
|
17
17
|
* limitations under the License.
|
|
18
|
-
*/var
|
|
18
|
+
*/var s=Number.POSITIVE_INFINITY,p=Number.NEGATIVE_INFINITY;
|
|
19
19
|
/**
|
|
20
20
|
* @license Apache-2.0
|
|
21
21
|
*
|
|
@@ -32,7 +32,7 @@ import{M as t,x as e,A as n,C as r,H as i,K as o,D as a,y as u,w as s,I as c,Q a
|
|
|
32
32
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
33
33
|
* See the License for the specific language governing permissions and
|
|
34
34
|
* limitations under the License.
|
|
35
|
-
*/var
|
|
35
|
+
*/var y=
|
|
36
36
|
/**
|
|
37
37
|
* @license Apache-2.0
|
|
38
38
|
*
|
|
@@ -50,7 +50,7 @@ import{M as t,x as e,A as n,C as r,H as i,K as o,D as a,y as u,w as s,I as c,Q a
|
|
|
50
50
|
* See the License for the specific language governing permissions and
|
|
51
51
|
* limitations under the License.
|
|
52
52
|
*/
|
|
53
|
-
function(
|
|
53
|
+
function(r){return r!=r},v=y,d=s,h=p;
|
|
54
54
|
/**
|
|
55
55
|
* @license Apache-2.0
|
|
56
56
|
*
|
|
@@ -67,7 +67,7 @@ function(t){return t!=t},D=z,L=E,T=F;
|
|
|
67
67
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
68
68
|
* See the License for the specific language governing permissions and
|
|
69
69
|
* limitations under the License.
|
|
70
|
-
*/var
|
|
70
|
+
*/var m=function(r){return r===d||r===h},b=m,g="function"==typeof Object.defineProperty?Object.defineProperty:null;
|
|
71
71
|
/**
|
|
72
72
|
* @license Apache-2.0
|
|
73
73
|
*
|
|
@@ -84,7 +84,58 @@ function(t){return t!=t},D=z,L=E,T=F;
|
|
|
84
84
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
85
85
|
* See the License for the specific language governing permissions and
|
|
86
86
|
* limitations under the License.
|
|
87
|
-
*/var
|
|
87
|
+
*/var _=function(){try{return g({},"x",{}),!0}catch(r){return!1}},w=Object.defineProperty,j=Object.prototype,A=j.toString,O=j.__defineGetter__,k=j.__defineSetter__,S=j.__lookupGetter__,N=j.__lookupSetter__;
|
|
88
|
+
/**
|
|
89
|
+
* @license Apache-2.0
|
|
90
|
+
*
|
|
91
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
92
|
+
*
|
|
93
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
94
|
+
* you may not use this file except in compliance with the License.
|
|
95
|
+
* You may obtain a copy of the License at
|
|
96
|
+
*
|
|
97
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
98
|
+
*
|
|
99
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
100
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
101
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
102
|
+
* See the License for the specific language governing permissions and
|
|
103
|
+
* limitations under the License.
|
|
104
|
+
*/var E=function(r,e,t){var n,o,a,i;if("object"!=typeof r||null===r||"[object Array]"===A.call(r))throw new TypeError("invalid argument. First argument must be an object. Value: `"+r+"`.");if("object"!=typeof t||null===t||"[object Array]"===A.call(t))throw new TypeError("invalid argument. Property descriptor must be an object. Value: `"+t+"`.");if((o="value"in t)&&(S.call(r,e)||N.call(r,e)?(n=r.__proto__,r.__proto__=j,delete r[e],r[e]=t.value,r.__proto__=n):r[e]=t.value),a="get"in t,i="set"in t,o&&(a||i))throw new Error("invalid argument. Cannot specify one or more accessors and a value or writable attribute in the property descriptor.");return a&&O&&O.call(r,e,t.get),i&&k&&k.call(r,e,t.set),r},U=w,I=E,P=_()?U:I;
|
|
105
|
+
/**
|
|
106
|
+
* @license Apache-2.0
|
|
107
|
+
*
|
|
108
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
109
|
+
*
|
|
110
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
111
|
+
* you may not use this file except in compliance with the License.
|
|
112
|
+
* You may obtain a copy of the License at
|
|
113
|
+
*
|
|
114
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
115
|
+
*
|
|
116
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
117
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
118
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
119
|
+
* See the License for the specific language governing permissions and
|
|
120
|
+
* limitations under the License.
|
|
121
|
+
*/var M=function(r,e,t){P(r,e,{configurable:!1,enumerable:!1,writable:!1,value:t})},F=M;
|
|
122
|
+
/**
|
|
123
|
+
* @license Apache-2.0
|
|
124
|
+
*
|
|
125
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
126
|
+
*
|
|
127
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
128
|
+
* you may not use this file except in compliance with the License.
|
|
129
|
+
* You may obtain a copy of the License at
|
|
130
|
+
*
|
|
131
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
132
|
+
*
|
|
133
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
134
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
135
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
136
|
+
* See the License for the specific language governing permissions and
|
|
137
|
+
* limitations under the License.
|
|
138
|
+
*/var T=
|
|
88
139
|
/**
|
|
89
140
|
* @license Apache-2.0
|
|
90
141
|
*
|
|
@@ -119,7 +170,7 @@ function(){return"function"==typeof Symbol&&"symbol"==typeof Symbol("foo")}();
|
|
|
119
170
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
120
171
|
* See the License for the specific language governing permissions and
|
|
121
172
|
* limitations under the License.
|
|
122
|
-
*/var
|
|
173
|
+
*/var H=function(){return T&&"symbol"==typeof Symbol.toStringTag},C=Object.prototype.toString,J=C;
|
|
123
174
|
/**
|
|
124
175
|
* @license Apache-2.0
|
|
125
176
|
*
|
|
@@ -136,7 +187,7 @@ function(){return"function"==typeof Symbol&&"symbol"==typeof Symbol("foo")}();
|
|
|
136
187
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
137
188
|
* See the License for the specific language governing permissions and
|
|
138
189
|
* limitations under the License.
|
|
139
|
-
*/var
|
|
190
|
+
*/var x=function(r){return J.call(r)},D=Object.prototype.hasOwnProperty;
|
|
140
191
|
/**
|
|
141
192
|
* @license Apache-2.0
|
|
142
193
|
*
|
|
@@ -153,7 +204,7 @@ function(){return"function"==typeof Symbol&&"symbol"==typeof Symbol("foo")}();
|
|
|
153
204
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
154
205
|
* See the License for the specific language governing permissions and
|
|
155
206
|
* limitations under the License.
|
|
156
|
-
*/var
|
|
207
|
+
*/var G=function(r,e){return null!=r&&D.call(r,e)},L=G,R="function"==typeof Symbol?Symbol.toStringTag:"",V=L,W=R,z=C;
|
|
157
208
|
/**
|
|
158
209
|
* @license Apache-2.0
|
|
159
210
|
*
|
|
@@ -170,7 +221,7 @@ function(){return"function"==typeof Symbol&&"symbol"==typeof Symbol("foo")}();
|
|
|
170
221
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
171
222
|
* See the License for the specific language governing permissions and
|
|
172
223
|
* limitations under the License.
|
|
173
|
-
*/var
|
|
224
|
+
*/var B=function(r){var e,t,n;if(null==r)return z.call(r);t=r[W],e=V(r,W);try{r[W]=void 0}catch(e){return z.call(r)}return n=z.call(r),e?r[W]=t:delete r[W],n},Q=x,Y=B,q=H()?Y:Q,K=q,X="function"==typeof Uint32Array;
|
|
174
225
|
/**
|
|
175
226
|
* @license Apache-2.0
|
|
176
227
|
*
|
|
@@ -187,7 +238,7 @@ function(){return"function"==typeof Symbol&&"symbol"==typeof Symbol("foo")}();
|
|
|
187
238
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
188
239
|
* See the License for the specific language governing permissions and
|
|
189
240
|
* limitations under the License.
|
|
190
|
-
*/var
|
|
241
|
+
*/var Z=function(r){return X&&r instanceof Uint32Array||"[object Uint32Array]"===K(r)},$="function"==typeof Uint32Array?Uint32Array:null,rr=Z,er=4294967295,tr=$;
|
|
191
242
|
/**
|
|
192
243
|
* @license Apache-2.0
|
|
193
244
|
*
|
|
@@ -204,7 +255,7 @@ function(){return"function"==typeof Symbol&&"symbol"==typeof Symbol("foo")}();
|
|
|
204
255
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
205
256
|
* See the License for the specific language governing permissions and
|
|
206
257
|
* limitations under the License.
|
|
207
|
-
*/var
|
|
258
|
+
*/var nr=function(){var r,e;if("function"!=typeof tr)return!1;try{e=new tr(e=[1,3.14,-3.14,er+1,er+2]),r=rr(e)&&1===e[0]&&3===e[1]&&e[2]===er-2&&0===e[3]&&1===e[4]}catch(e){r=!1}return r};
|
|
208
259
|
/**
|
|
209
260
|
* @license Apache-2.0
|
|
210
261
|
*
|
|
@@ -221,7 +272,7 @@ function(){return"function"==typeof Symbol&&"symbol"==typeof Symbol("foo")}();
|
|
|
221
272
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
222
273
|
* See the License for the specific language governing permissions and
|
|
223
274
|
* limitations under the License.
|
|
224
|
-
*/var
|
|
275
|
+
*/var or="function"==typeof Uint32Array?Uint32Array:void 0,ar=
|
|
225
276
|
/**
|
|
226
277
|
* @license Apache-2.0
|
|
227
278
|
*
|
|
@@ -239,7 +290,7 @@ function(){return"function"==typeof Symbol&&"symbol"==typeof Symbol("foo")}();
|
|
|
239
290
|
* See the License for the specific language governing permissions and
|
|
240
291
|
* limitations under the License.
|
|
241
292
|
*/
|
|
242
|
-
function(){throw new Error("not implemented")},
|
|
293
|
+
function(){throw new Error("not implemented")},ir=nr()?or:ar,ur=q,cr="function"==typeof Float64Array;
|
|
243
294
|
/**
|
|
244
295
|
* @license Apache-2.0
|
|
245
296
|
*
|
|
@@ -256,7 +307,7 @@ function(){throw new Error("not implemented")},dt=ct()?ft:lt,pt=et,ht="function"
|
|
|
256
307
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
257
308
|
* See the License for the specific language governing permissions and
|
|
258
309
|
* limitations under the License.
|
|
259
|
-
*/var
|
|
310
|
+
*/var fr=function(r){return cr&&r instanceof Float64Array||"[object Float64Array]"===ur(r)},lr="function"==typeof Float64Array?Float64Array:null,sr=fr,pr=lr;
|
|
260
311
|
/**
|
|
261
312
|
* @license Apache-2.0
|
|
262
313
|
*
|
|
@@ -273,7 +324,7 @@ function(){throw new Error("not implemented")},dt=ct()?ft:lt,pt=et,ht="function"
|
|
|
273
324
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
274
325
|
* See the License for the specific language governing permissions and
|
|
275
326
|
* limitations under the License.
|
|
276
|
-
*/var
|
|
327
|
+
*/var yr=function(){var r,e;if("function"!=typeof pr)return!1;try{e=new pr([1,3.14,-3.14,NaN]),r=sr(e)&&1===e[0]&&3.14===e[1]&&-3.14===e[2]&&e[3]!=e[3]}catch(e){r=!1}return r};
|
|
277
328
|
/**
|
|
278
329
|
* @license Apache-2.0
|
|
279
330
|
*
|
|
@@ -290,7 +341,7 @@ function(){throw new Error("not implemented")},dt=ct()?ft:lt,pt=et,ht="function"
|
|
|
290
341
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
291
342
|
* See the License for the specific language governing permissions and
|
|
292
343
|
* limitations under the License.
|
|
293
|
-
*/var
|
|
344
|
+
*/var vr="function"==typeof Float64Array?Float64Array:void 0,dr=
|
|
294
345
|
/**
|
|
295
346
|
* @license Apache-2.0
|
|
296
347
|
*
|
|
@@ -308,7 +359,7 @@ function(){throw new Error("not implemented")},dt=ct()?ft:lt,pt=et,ht="function"
|
|
|
308
359
|
* See the License for the specific language governing permissions and
|
|
309
360
|
* limitations under the License.
|
|
310
361
|
*/
|
|
311
|
-
function(){throw new Error("not implemented")},
|
|
362
|
+
function(){throw new Error("not implemented")},hr=yr()?vr:dr,mr=q,br="function"==typeof Uint8Array;
|
|
312
363
|
/**
|
|
313
364
|
* @license Apache-2.0
|
|
314
365
|
*
|
|
@@ -325,7 +376,7 @@ function(){throw new Error("not implemented")},jt=wt()?bt:_t,At=et,Ot="function"
|
|
|
325
376
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
326
377
|
* See the License for the specific language governing permissions and
|
|
327
378
|
* limitations under the License.
|
|
328
|
-
*/var
|
|
379
|
+
*/var gr=function(r){return br&&r instanceof Uint8Array||"[object Uint8Array]"===mr(r)},_r="function"==typeof Uint8Array?Uint8Array:null,wr=gr,jr=_r;
|
|
329
380
|
/**
|
|
330
381
|
* @license Apache-2.0
|
|
331
382
|
*
|
|
@@ -342,7 +393,7 @@ function(){throw new Error("not implemented")},jt=wt()?bt:_t,At=et,Ot="function"
|
|
|
342
393
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
343
394
|
* See the License for the specific language governing permissions and
|
|
344
395
|
* limitations under the License.
|
|
345
|
-
*/var
|
|
396
|
+
*/var Ar=function(){var r,e;if("function"!=typeof jr)return!1;try{e=new jr(e=[1,3.14,-3.14,256,257]),r=wr(e)&&1===e[0]&&3===e[1]&&253===e[2]&&0===e[3]&&1===e[4]}catch(e){r=!1}return r};
|
|
346
397
|
/**
|
|
347
398
|
* @license Apache-2.0
|
|
348
399
|
*
|
|
@@ -359,7 +410,7 @@ function(){throw new Error("not implemented")},jt=wt()?bt:_t,At=et,Ot="function"
|
|
|
359
410
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
360
411
|
* See the License for the specific language governing permissions and
|
|
361
412
|
* limitations under the License.
|
|
362
|
-
*/var
|
|
413
|
+
*/var Or="function"==typeof Uint8Array?Uint8Array:void 0,kr=
|
|
363
414
|
/**
|
|
364
415
|
* @license Apache-2.0
|
|
365
416
|
*
|
|
@@ -377,7 +428,7 @@ function(){throw new Error("not implemented")},jt=wt()?bt:_t,At=et,Ot="function"
|
|
|
377
428
|
* See the License for the specific language governing permissions and
|
|
378
429
|
* limitations under the License.
|
|
379
430
|
*/
|
|
380
|
-
function(){throw new Error("not implemented")},
|
|
431
|
+
function(){throw new Error("not implemented")},Sr=Ar()?Or:kr,Nr=q,Er="function"==typeof Uint16Array;
|
|
381
432
|
/**
|
|
382
433
|
* @license Apache-2.0
|
|
383
434
|
*
|
|
@@ -394,7 +445,7 @@ function(){throw new Error("not implemented")},Et=Pt()?Ut:Mt,Ft=et,zt="function"
|
|
|
394
445
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
395
446
|
* See the License for the specific language governing permissions and
|
|
396
447
|
* limitations under the License.
|
|
397
|
-
*/var
|
|
448
|
+
*/var Ur=function(r){return Er&&r instanceof Uint16Array||"[object Uint16Array]"===Nr(r)},Ir="function"==typeof Uint16Array?Uint16Array:null,Pr=Ur,Mr=65535,Fr=Ir;
|
|
398
449
|
/**
|
|
399
450
|
* @license Apache-2.0
|
|
400
451
|
*
|
|
@@ -411,7 +462,7 @@ function(){throw new Error("not implemented")},Et=Pt()?Ut:Mt,Ft=et,zt="function"
|
|
|
411
462
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
412
463
|
* See the License for the specific language governing permissions and
|
|
413
464
|
* limitations under the License.
|
|
414
|
-
*/var
|
|
465
|
+
*/var Tr=function(){var r,e;if("function"!=typeof Fr)return!1;try{e=new Fr(e=[1,3.14,-3.14,Mr+1,Mr+2]),r=Pr(e)&&1===e[0]&&3===e[1]&&e[2]===Mr-2&&0===e[3]&&1===e[4]}catch(e){r=!1}return r};
|
|
415
466
|
/**
|
|
416
467
|
* @license Apache-2.0
|
|
417
468
|
*
|
|
@@ -428,7 +479,7 @@ function(){throw new Error("not implemented")},Et=Pt()?Ut:Mt,Ft=et,zt="function"
|
|
|
428
479
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
429
480
|
* See the License for the specific language governing permissions and
|
|
430
481
|
* limitations under the License.
|
|
431
|
-
*/var
|
|
482
|
+
*/var Hr,Cr="function"==typeof Uint16Array?Uint16Array:void 0,Jr=
|
|
432
483
|
/**
|
|
433
484
|
* @license Apache-2.0
|
|
434
485
|
*
|
|
@@ -446,7 +497,24 @@ function(){throw new Error("not implemented")},Et=Pt()?Ut:Mt,Ft=et,zt="function"
|
|
|
446
497
|
* See the License for the specific language governing permissions and
|
|
447
498
|
* limitations under the License.
|
|
448
499
|
*/
|
|
449
|
-
function(){throw new Error("not implemented")},
|
|
500
|
+
function(){throw new Error("not implemented")},xr={uint16:Tr()?Cr:Jr,uint8:Sr};
|
|
501
|
+
/**
|
|
502
|
+
* @license Apache-2.0
|
|
503
|
+
*
|
|
504
|
+
* Copyright (c) 2018 The Stdlib Authors.
|
|
505
|
+
*
|
|
506
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
507
|
+
* you may not use this file except in compliance with the License.
|
|
508
|
+
* You may obtain a copy of the License at
|
|
509
|
+
*
|
|
510
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
511
|
+
*
|
|
512
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
513
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
514
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
515
|
+
* See the License for the specific language governing permissions and
|
|
516
|
+
* limitations under the License.
|
|
517
|
+
*/(Hr=new xr.uint16(1))[0]=4660;var Dr,Gr,Lr=52===new xr.uint8(Hr.buffer)[0];
|
|
450
518
|
/**
|
|
451
519
|
* @license Apache-2.0
|
|
452
520
|
*
|
|
@@ -463,7 +531,7 @@ function(){throw new Error("not implemented")},Bt={uint16:Ht()?xt:Gt,uint8:Et};
|
|
|
463
531
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
464
532
|
* See the License for the specific language governing permissions and
|
|
465
533
|
* limitations under the License.
|
|
466
|
-
|
|
534
|
+
*/!0===Lr?(Dr=1,Gr=0):(Dr=0,Gr=1);var Rr=ir,Vr={HIGH:Dr,LOW:Gr},Wr=new hr(1),zr=new Rr(Wr.buffer),Br=Vr.HIGH,Qr=Vr.LOW;
|
|
467
535
|
/**
|
|
468
536
|
* @license Apache-2.0
|
|
469
537
|
*
|
|
@@ -480,7 +548,7 @@ function(){throw new Error("not implemented")},Bt={uint16:Ht()?xt:Gt,uint8:Et};
|
|
|
480
548
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
481
549
|
* See the License for the specific language governing permissions and
|
|
482
550
|
* limitations under the License.
|
|
483
|
-
|
|
551
|
+
*/var Yr=function(r,e,t,n){return Wr[0]=r,e[n]=zr[Br],e[n+t]=zr[Qr],e},qr=Yr;
|
|
484
552
|
/**
|
|
485
553
|
* @license Apache-2.0
|
|
486
554
|
*
|
|
@@ -497,7 +565,7 @@ function(){throw new Error("not implemented")},Bt={uint16:Ht()?xt:Gt,uint8:Et};
|
|
|
497
565
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
498
566
|
* See the License for the specific language governing permissions and
|
|
499
567
|
* limitations under the License.
|
|
500
|
-
*/var
|
|
568
|
+
*/var Kr=function(r){return qr(r,[0,0],1,0)},Xr=Kr;
|
|
501
569
|
/**
|
|
502
570
|
* @license Apache-2.0
|
|
503
571
|
*
|
|
@@ -514,7 +582,7 @@ function(){throw new Error("not implemented")},Bt={uint16:Ht()?xt:Gt,uint8:Et};
|
|
|
514
582
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
515
583
|
* See the License for the specific language governing permissions and
|
|
516
584
|
* limitations under the License.
|
|
517
|
-
*/
|
|
585
|
+
*/F(Xr,"assign",Yr);var Zr=Xr,$r=ir,re=!0===Lr?1:0,ee=new hr(1),te=new $r(ee.buffer);
|
|
518
586
|
/**
|
|
519
587
|
* @license Apache-2.0
|
|
520
588
|
*
|
|
@@ -531,7 +599,7 @@ function(){throw new Error("not implemented")},Bt={uint16:Ht()?xt:Gt,uint8:Et};
|
|
|
531
599
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
532
600
|
* See the License for the specific language governing permissions and
|
|
533
601
|
* limitations under the License.
|
|
534
|
-
*/var
|
|
602
|
+
*/var ne,oe,ae=function(r){return ee[0]=r,te[re]},ie=ae;
|
|
535
603
|
/**
|
|
536
604
|
* @license Apache-2.0
|
|
537
605
|
*
|
|
@@ -548,7 +616,7 @@ function(){throw new Error("not implemented")},Bt={uint16:Ht()?xt:Gt,uint8:Et};
|
|
|
548
616
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
549
617
|
* See the License for the specific language governing permissions and
|
|
550
618
|
* limitations under the License.
|
|
551
|
-
*/!0===
|
|
619
|
+
*/!0===Lr?(ne=1,oe=0):(ne=0,oe=1);var ue=ir,ce={HIGH:ne,LOW:oe},fe=new hr(1),le=new ue(fe.buffer),se=ce.HIGH,pe=ce.LOW;
|
|
552
620
|
/**
|
|
553
621
|
* @license Apache-2.0
|
|
554
622
|
*
|
|
@@ -565,7 +633,7 @@ function(){throw new Error("not implemented")},Bt={uint16:Ht()?xt:Gt,uint8:Et};
|
|
|
565
633
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
566
634
|
* See the License for the specific language governing permissions and
|
|
567
635
|
* limitations under the License.
|
|
568
|
-
*/var
|
|
636
|
+
*/var ye=function(r,e){return le[se]=r,le[pe]=e,fe[0]},ve=ye,de=Zr,he=ie,me=ve,be=[0,0];
|
|
569
637
|
/**
|
|
570
638
|
* @license Apache-2.0
|
|
571
639
|
*
|
|
@@ -582,7 +650,7 @@ function(){throw new Error("not implemented")},Bt={uint16:Ht()?xt:Gt,uint8:Et};
|
|
|
582
650
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
583
651
|
* See the License for the specific language governing permissions and
|
|
584
652
|
* limitations under the License.
|
|
585
|
-
*/var
|
|
653
|
+
*/var ge=function(r,e){var t,n;return de.assign(r,be,1,0),t=be[0],t&=2147483647,n=he(e),me(t|=n&=2147483648,be[1])},_e=ge;
|
|
586
654
|
/**
|
|
587
655
|
* @license Apache-2.0
|
|
588
656
|
*
|
|
@@ -599,7 +667,7 @@ function(){throw new Error("not implemented")},Bt={uint16:Ht()?xt:Gt,uint8:Et};
|
|
|
599
667
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
600
668
|
* See the License for the specific language governing permissions and
|
|
601
669
|
* limitations under the License.
|
|
602
|
-
*/var
|
|
670
|
+
*/var we=
|
|
603
671
|
/**
|
|
604
672
|
* @license Apache-2.0
|
|
605
673
|
*
|
|
@@ -617,7 +685,24 @@ function(){throw new Error("not implemented")},Bt={uint16:Ht()?xt:Gt,uint8:Et};
|
|
|
617
685
|
* See the License for the specific language governing permissions and
|
|
618
686
|
* limitations under the License.
|
|
619
687
|
*/
|
|
620
|
-
function(
|
|
688
|
+
function(r){return Math.abs(r)},je=b,Ae=v,Oe=we;
|
|
689
|
+
/**
|
|
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 ke=function(r,e,t,n){return Ae(r)||je(r)?(e[n]=r,e[n+t]=0,e):0!==r&&Oe(r)<22250738585072014e-324?(e[n]=4503599627370496*r,e[n+t]=-52,e):(e[n]=r,e[n+t]=0,e)},Se=ke;
|
|
621
706
|
/**
|
|
622
707
|
* @license Apache-2.0
|
|
623
708
|
*
|
|
@@ -634,7 +719,7 @@ function(t){return Math.abs(t)},ke=C,Se=D,Ne=Oe;
|
|
|
634
719
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
635
720
|
* See the License for the specific language governing permissions and
|
|
636
721
|
* limitations under the License.
|
|
637
|
-
*/var
|
|
722
|
+
*/var Ne=function(r){return Se(r,[0,0],1,0)},Ee=Ne;
|
|
638
723
|
/**
|
|
639
724
|
* @license Apache-2.0
|
|
640
725
|
*
|
|
@@ -651,7 +736,7 @@ function(t){return Math.abs(t)},ke=C,Se=D,Ne=Oe;
|
|
|
651
736
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
652
737
|
* See the License for the specific language governing permissions and
|
|
653
738
|
* limitations under the License.
|
|
654
|
-
*/
|
|
739
|
+
*/F(Ee,"assign",ke);var Ue=ie;
|
|
655
740
|
/**
|
|
656
741
|
* @license Apache-2.0
|
|
657
742
|
*
|
|
@@ -668,7 +753,7 @@ function(t){return Math.abs(t)},ke=C,Se=D,Ne=Oe;
|
|
|
668
753
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
669
754
|
* See the License for the specific language governing permissions and
|
|
670
755
|
* limitations under the License.
|
|
671
|
-
*/var
|
|
756
|
+
*/var Ie=function(r){var e=Ue(r);return(e=(2146435072&e)>>>20)-1023|0},Pe=s,Me=p,Fe=v,Te=b,He=_e,Ce=Ee,Je=Ie,xe=Zr,De=ve,Ge=[0,0],Le=[0,0];
|
|
672
757
|
/**
|
|
673
758
|
* @license Apache-2.0
|
|
674
759
|
*
|
|
@@ -685,7 +770,7 @@ function(t){return Math.abs(t)},ke=C,Se=D,Ne=Oe;
|
|
|
685
770
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
686
771
|
* See the License for the specific language governing permissions and
|
|
687
772
|
* limitations under the License.
|
|
688
|
-
*/var
|
|
773
|
+
*/var Re=function(r,e){var t,n;return 0===r||Fe(r)||Te(r)?r:(Ce(Ge),e+=Ge[1],(e+=Je(r=Ge[0]))<-1074?He(0,r):e>1023?r<0?Me:Pe:(e<=-1023?(e+=52,n=2220446049250313e-31):n=1,xe(Le),t=Le[0],t&=2148532223,n*De(t|=e+1023<<20,Le[1])))},Ve=Re;
|
|
689
774
|
/**
|
|
690
775
|
* @license Apache-2.0
|
|
691
776
|
*
|
|
@@ -702,4 +787,4 @@ function(t){return Math.abs(t)},ke=C,Se=D,Ne=Oe;
|
|
|
702
787
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
703
788
|
* See the License for the specific language governing permissions and
|
|
704
789
|
* limitations under the License.
|
|
705
|
-
*/const Qe=h(_);var Ve={},Ye=t&&t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ve,"__esModule",{value:!0}),Ve.unset=void 0;var qe=Ye(M);Ve.unset=function(t,e){if((0,qe.default)(t,e)){for(var n=e.split("."),r=n.pop();n.length&&"\\"===n[n.length-1].slice(-1);)r=n.pop().slice(0,-1)+"."+r;for(;n.length;)t=t[e=n.shift()];return delete t[r]}return!0};var Ke=t&&t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(S,"__esModule",{value:!0});var Xe=Ke(U),Ze=Ke(M),$e=Ke(We),tn=Qe,en=Ve;function nn(t,e){for(var n in e.drop)if(e.drop.hasOwnProperty(n)){var r=""===n?t:(0,Ze.default)(t,n);if("object"==typeof r&&null!==r)for(var i=0,o=e.drop[n];i<o.length;i++){delete r[o[i]]}}}function rn(t,e){for(var n in e.allow)if(e.allow.hasOwnProperty(n)){var r=""===n?t:(0,Ze.default)(t,n);if("object"==typeof r&&null!==r)for(var i in r)r.hasOwnProperty(i)&&-1===e.allow[n].indexOf(i)&&delete r[i]}}function on(t,e){var n=JSON.parse(JSON.stringify(t));for(var r in e.map)if(e.map.hasOwnProperty(r)){var i=e.map[r],o=r.split("."),a=void 0;if(o.length>1?(o.pop(),a=(0,Ze.default)(n,o.join("."))):a=t,"object"==typeof a){if(i.copy){var u=(0,Ze.default)(n,i.copy);void 0!==u&&(0,tn.dset)(t,r,u)}else if(i.move){var s=(0,Ze.default)(n,i.move);void 0!==s&&(0,tn.dset)(t,r,s),(0,en.unset)(t,i.move)}else i.hasOwnProperty("set")&&(0,tn.dset)(t,r,i.set);if(i.to_string){var c=(0,Ze.default)(t,r);if("string"==typeof c||"object"==typeof c&&null!==c)continue;void 0!==c?(0,tn.dset)(t,r,JSON.stringify(c)):(0,tn.dset)(t,r,"undefined")}}}}function an(t,e){return!(e.sample.percent<=0)&&(e.sample.percent>=1||(e.sample.path?function(t,e){var n=(0,Ze.default)(t,e.sample.path),r=(0,Xe.default)(JSON.stringify(n)),i=-64,o=[];un(r.slice(0,8),o);for(var a=0,u=0;u<64&&1!==o[u];u++)a++;if(0!==a){var s=[];un(r.slice(9,16),s),i-=a,o.splice(0,a),s.splice(64-a),o=o.concat(s)}return o[63]=0===o[63]?1:0,(0,$e.default)(parseInt(o.join(""),2),i)<e.sample.percent}(t,e):function(t){return Math.random()<=t}(e.sample.percent)))}function un(t,e){for(var n=0;n<8;n++)for(var r=t[n],i=128;i>=1;i/=2)r-i>=0?(r-=i,e.push(1)):e.push(0)}S.default=function(t,e){for(var n=t,r=0,i=e;r<i.length;r++){var o=i[r];switch(o.type){case"drop":return null;case"drop_properties":nn(n,o.config);break;case"allow_properties":rn(n,o.config);break;case"sample_event":if(an(n,o.config))break;return null;case"map_properties":on(n,o.config);break;case"hash_properties":break;default:throw new Error('Transformer of type "'.concat(o.type,'" is unsupported.'))}}return n};var sn={},cn=t&&t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(sn,"__esModule",{value:!0});var fn=cn(M);function ln(t,e){if(!Array.isArray(t))return!0===dn(t,e);var n=t[0];switch(n){case"!":return!ln(t[1],e);case"or":for(var r=1;r<t.length;r++)if(ln(t[r],e))return!0;return!1;case"and":for(r=1;r<t.length;r++)if(!ln(t[r],e))return!1;return!0;case"=":case"!=":return function(t,e,n,r){switch(pn(t)&&(t=ln(t,r)),pn(e)&&(e=ln(e,r)),"object"==typeof t&&"object"==typeof e&&(t=JSON.stringify(t),e=JSON.stringify(e)),n){case"=":return t===e;case"!=":return t!==e;default:throw new Error("Invalid operator in compareItems: ".concat(n))}}(dn(t[1],e),dn(t[2],e),n,e);case"<=":case"<":case">":case">=":return function(t,e,n,r){if(pn(t)&&(t=ln(t,r)),pn(e)&&(e=ln(e,r)),"number"!=typeof t||"number"!=typeof e)return!1;switch(n){case"<=":return t<=e;case">=":return t>=e;case"<":return t<e;case">":return t>e;default:throw new Error("Invalid operator in compareNumbers: ".concat(n))}}(dn(t[1],e),dn(t[2],e),n,e);case"contains":return function(t,e){return"string"==typeof t&&"string"==typeof e&&-1!==t.indexOf(e)}(dn(t[1],e),dn(t[2],e));case"match":return function(t,e){return"string"==typeof t&&"string"==typeof e&&function(t,e){var n,r;t:for(;t.length>0;){var i=void 0,o=void 0;if(i=(n=hn(t)).star,o=n.chunk,t=n.pattern,i&&""===o)return!0;var a=vn(o,e),u=a.t,s=a.ok,c=a.err;if(c)return!1;if(!s||!(0===u.length||t.length>0)){if(i)for(var f=0;f<e.length;f++){if(u=(r=vn(o,e.slice(f+1))).t,s=r.ok,c=r.err,s){if(0===t.length&&u.length>0)continue;e=u;continue t}if(c)return!1}return!1}e=u}return 0===e.length}(e,t)}(dn(t[1],e),dn(t[2],e));case"lowercase":var i=dn(t[1],e);return"string"!=typeof i?null:i.toLowerCase();case"typeof":return typeof dn(t[1],e);case"length":return function(t){return null===t?0:Array.isArray(t)||"string"==typeof t?t.length:NaN}(dn(t[1],e));default:throw new Error("FQL IR could not evaluate for token: ".concat(n))}}function dn(t,e){return Array.isArray(t)?t:"object"==typeof t?t.value:(0,fn.default)(e,t)}function pn(t){return!!Array.isArray(t)&&(("lowercase"===t[0]||"length"===t[0]||"typeof"===t[0])&&2===t.length||("contains"===t[0]||"match"===t[0])&&3===t.length)}function hn(t){for(var e={star:!1,chunk:"",pattern:""};t.length>0&&"*"===t[0];)t=t.slice(1),e.star=!0;var n,r=!1;t:for(n=0;n<t.length;n++)switch(t[n]){case"\\":n+1<t.length&&n++;break;case"[":r=!0;break;case"]":r=!1;break;case"*":if(!r)break t}return e.chunk=t.slice(0,n),e.pattern=t.slice(n),e}function vn(t,e){for(var n,r,i={t:"",ok:!1,err:!1};t.length>0;){if(0===e.length)return i;switch(t[0]){case"[":var o=e[0];e=e.slice(1);var a=!0;(t=t.slice(1)).length>0&&"^"===t[0]&&(a=!1,t=t.slice(1));for(var u=!1,s=0;;){if(t.length>0&&"]"===t[0]&&s>0){t=t.slice(1);break}var c,f="";if(c=(n=yn(t)).char,t=n.newChunk,n.err||(f=c,"-"===t[0]&&(f=(r=yn(t.slice(1))).char,t=r.newChunk,r.err)))return i;c<=o&&o<=f&&(u=!0),s++}if(u!==a)return i;break;case"?":e=e.slice(1),t=t.slice(1);break;case"\\":if(0===(t=t.slice(1)).length)return i.err=!0,i;default:if(t[0]!==e[0])return i;e=e.slice(1),t=t.slice(1)}}return i.t=e,i.ok=!0,i.err=!1,i}function yn(t){var e={char:"",newChunk:"",err:!1};return 0===t.length||"-"===t[0]||"]"===t[0]||"\\"===t[0]&&0===(t=t.slice(1)).length?(e.err=!0,e):(e.char=t[0],e.newChunk=t.slice(1),0===e.newChunk.length&&(e.err=!0),e)}sn.default=function(t,e){if(!e)throw new Error("No matcher supplied!");switch(e.type){case"all":return!0;case"fql":return function(t,e){if(!t)return!1;try{t=JSON.parse(t)}catch(e){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(t,'": ').concat(e))}var n=ln(t,e);return"boolean"==typeof n&&n}(e.ir,t);default:throw new Error("Matcher of type ".concat(e.type," unsupported."))}};var gn={};Object.defineProperty(gn,"__esModule",{value:!0});var mn=function(){function t(t){this.rules=[],this.rules=t||[]}return t.prototype.getRulesByDestinationName=function(t){for(var e=[],n=0,r=this.rules;n<r.length;n++){var i=r[n];(i.destinationName===t||void 0===i.destinationName)&&e.push(i)}return e},t}();gn.default=mn,function(e){var n=t&&t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Store=e.matches=e.transform=void 0;var r=S;Object.defineProperty(e,"transform",{enumerable:!0,get:function(){return n(r).default}});var i=sn;Object.defineProperty(e,"matches",{enumerable:!0,get:function(){return n(i).default}});var o=gn;Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return n(o).default}})}(k);function wn(t){return t.toLowerCase().replace(".","").replace(/\s+/g,"-")}function bn(t,e){return void 0===e&&(e=!1),e?btoa(t).replace(/=/g,""):void 0}function _n(t,o,a,u,s,c){return e(this,void 0,void 0,(function(){var e,f,l,d,p,h,y,g;return n(this,(function(n){switch(n.label){case 0:e=wn(a),f=bn(e,c),l=i(),d="".concat(l,"/integrations/").concat(null!=f?f:e,"/").concat(u,"/").concat(null!=f?f:e,".dynamic.js.gz"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,r(d)];case 2:return n.sent(),function(t,e,n){var r,i;try{var o=(null!==(i=null===(r=null==window?void 0:window.performance)||void 0===r?void 0:r.getEntriesByName(t,"resource"))&&void 0!==i?i:[])[0];o&&e.stats.gauge("legacy_destination_time",Math.round(o.duration),v([n],o.duration<100?["cached"]:[],!0))}catch(t){}}(d,t,a),[3,4];case 3:throw p=n.sent(),t.stats.gauge("legacy_destination_time",-1,["plugin:".concat(a),"failed"]),p;case 4:return h=window["".concat(e,"Deps")],[4,Promise.all(h.map((function(t){return r(l+t+".gz")})))];case 5:return n.sent(),window["".concat(e,"Loader")](),(y=window["".concat(e,"Integration")]).Integration&&(y({user:function(){return o.user()},addIntegration:function(){}}),y=y.Integration),(g=new y(s)).analytics=o,[2,g]}}))}))}var jn=function(t){return JSON.parse(JSON.stringify(t))};function An(t,r){return e(this,void 0,void 0,(function(){var i,o=this;return n(this,(function(u){switch(u.label){case 0:return i=[],a()?[2,r]:[4,l((function(){return r.length>0&&g()}),(function(){return e(o,void 0,void 0,(function(){var e,o;return n(this,(function(n){switch(n.label){case 0:return(e=r.pop())?[4,y(e,t)]:[2];case 1:return o=n.sent(),o instanceof b||i.push(e),[2]}}))}))}))];case 1:return u.sent(),i.map((function(t){return r.pushWithBackoff(t)})),[2,r]}}))}))}var On=function(){function t(t,e,n,r){void 0===n&&(n={}),this.options={},this.type="destination",this.middleware=[],this._ready=!1,this._initialized=!1,this.flushing=!1,this.name=t,this.version=e,this.settings=s({},n),this.settings.type&&"browser"===this.settings.type&&delete this.settings.type,this.options=r,this.buffer=r.disableClientPersistence?new m(4,[]):new w(4,"dest-".concat(t)),this.scheduleFlush()}return t.prototype.isLoaded=function(){return this._ready},t.prototype.ready=function(){var t;return null!==(t=this.onReady)&&void 0!==t?t:Promise.resolve()},t.prototype.load=function(t,r){return e(this,void 0,void 0,(function(){var e,i=this;return n(this,(function(n){switch(n.label){case 0:return this._ready||void 0!==this.onReady?[2]:(e=this,[4,_n(t,r,this.name,this.version,this.settings,this.options.obfuscate)]);case 1:e.integration=n.sent(),this.onReady=new Promise((function(t){i.integration.once("ready",(function(){i._ready=!0,t(!0)}))})),this.onInitialize=new Promise((function(t){i.integration.on("initialize",(function(){i._initialized=!0,t(!0)}))}));try{t.stats.increment("analytics_js.integration.invoke",1,["method:initialize","integration_name:".concat(this.name)]),this.integration.initialize()}catch(e){throw t.stats.increment("analytics_js.integration.invoke.error",1,["method:initialize","integration_name:".concat(this.name)]),e}return[2]}}))}))},t.prototype.unload=function(t,r){return function(t,r,a){return e(this,void 0,void 0,(function(){var e,u,s,c;return n(this,(function(n){return e=i(),u=wn(t),s=bn(t,a),c="".concat(e,"/integrations/").concat(null!=s?s:u,"/").concat(r,"/").concat(null!=s?s:u,".dynamic.js.gz"),[2,o(c)]}))}))}(this.name,this.version,this.options.obfuscate)},t.prototype.addMiddleware=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];this.middleware=(t=this.middleware).concat.apply(t,e)},t.prototype.shouldBuffer=function(t){return"page"!==t.event.type&&(a()||!1===this._ready||!1===this._initialized)},t.prototype.send=function(t,r,i){var o,a;return e(this,void 0,void 0,(function(){var e,f,l,d,p,h;return n(this,(function(n){switch(n.label){case 0:if(this.shouldBuffer(t))return this.buffer.push(t),this.scheduleFlush(),[2,t];if(e=null===(a=null===(o=this.options)||void 0===o?void 0:o.plan)||void 0===a?void 0:a.track,f=t.event.event,e&&f&&"Segment.io"!==this.name){if(l=e[f],!j(e,l))return t.updateEvent("integrations",s(s({},t.event.integrations),{All:!1,"Segment.io":!0})),t.cancel(new c({retry:!1,reason:"Event ".concat(f," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,t];if(t.updateEvent("integrations",s(s({},t.event.integrations),null==l?void 0:l.integrations)),null!=l&&l.enabled&&!1===(null==l?void 0:l.integrations[this.name]))return t.cancel(new c({retry:!1,reason:"Event ".concat(f," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,t]}return[4,A(this.name,jn(t.event),this.middleware)];case 1:if(null===(d=n.sent()))return[2,t];p=new r(d,{}),t.stats.increment("analytics_js.integration.invoke",1,["method:".concat(i),"integration_name:".concat(this.name)]),n.label=2;case 2:return n.trys.push([2,5,,6]),this.integration?[4,u(this.integration.invoke.call(this.integration,i,p))]:[3,4];case 3:n.sent(),n.label=4;case 4:return[3,6];case 5:throw h=n.sent(),t.stats.increment("analytics_js.integration.invoke.error",1,["method:".concat(i),"integration_name:".concat(this.name)]),h;case 6:return[2,t]}}))}))},t.prototype.track=function(t){return e(this,void 0,void 0,(function(){return n(this,(function(e){return[2,this.send(t,f.Track,"track")]}))}))},t.prototype.page=function(t){var r;return e(this,void 0,void 0,(function(){var e=this;return n(this,(function(n){return!(null===(r=this.integration)||void 0===r)&&r._assumesPageview&&!this._initialized&&this.integration.initialize(),[2,this.onInitialize.then((function(){return e.send(t,f.Page,"page")}))]}))}))},t.prototype.identify=function(t){return e(this,void 0,void 0,(function(){return n(this,(function(e){return[2,this.send(t,f.Identify,"identify")]}))}))},t.prototype.alias=function(t){return e(this,void 0,void 0,(function(){return n(this,(function(e){return[2,this.send(t,f.Alias,"alias")]}))}))},t.prototype.group=function(t){return e(this,void 0,void 0,(function(){return n(this,(function(e){return[2,this.send(t,f.Group,"group")]}))}))},t.prototype.scheduleFlush=function(){var t=this;this.flushing||setTimeout((function(){return e(t,void 0,void 0,(function(){var t;return n(this,(function(e){switch(e.label){case 0:return this.flushing=!0,t=this,[4,An(this,this.buffer)];case 1:return t.buffer=e.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}}))}))}),5e3*Math.random())},t}();function kn(t,e,n){var r,i;if(void 0===e&&(e={}),void 0===n&&(n={}),d())return[];t.plan&&((n=null!=n?n:{}).plan=t.plan);var o=null!==(i=null===(r=t.middlewareSettings)||void 0===r?void 0:r.routingRules)&&void 0!==i?i:[],a=function(t){return function(e){var n=e.payload,r=e.integration,i=e.next;new k.Store(t).getRulesByDestinationName(r).forEach((function(t){for(var e=t.matchers,r=t.transformers,o=0;o<e.length;o++)if(k.matches(n.obj,e[o])&&(n.obj=k.transform(n.obj,r[o]),null===n.obj))return i(null)})),i(n)}}(o),u=p(t,null!=n?n:{});return Object.entries(t.integrations).map((function(t){var r,i=t[0],s=t[1];if(!i.startsWith("Segment")){var c=!1===e.All&&void 0===e[i];if(!1!==e[i]&&!c){var f=s.type,l=s.bundlingStatus,d=s.versionSettings;if(("unbundled"!==l&&("browser"===f||(null===(r=null==d?void 0:d.componentTypes)||void 0===r?void 0:r.includes("browser")))||"Segment.io"===i)&&"Iterable"!==i){var p=function(t){var e,n,r,i;return null!==(i=null!==(n=null===(e=t.versionSettings)||void 0===e?void 0:e.override)&&void 0!==n?n:null===(r=t.versionSettings)||void 0===r?void 0:r.version)&&void 0!==i?i:"latest"}(s),h=new On(i,p,u[i],n);return o.filter((function(t){return t.destinationName===i})).length>0&&h.addMiddleware(a),h}}}})).filter((function(t){return void 0!==t}))}export{On as LegacyDestination,kn as ajsDestinations};
|
|
790
|
+
*/const We=e(t);var ze={},Be=r&&r.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ze,"__esModule",{value:!0}),ze.unset=void 0;var Qe=Be(l);ze.unset=function(r,e){if((0,Qe.default)(r,e)){for(var t=e.split("."),n=t.pop();t.length&&"\\"===t[t.length-1].slice(-1);)n=t.pop().slice(0,-1)+"."+n;for(;t.length;)r=r[e=t.shift()];return delete r[n]}return!0};var Ye=r&&r.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(a,"__esModule",{value:!0});var qe=Ye(f),Ke=Ye(l),Xe=Ye(Ve),Ze=We,$e=ze;function rt(r,e){tt(r,e.drop,(function(r,e){e.forEach((function(e){return delete r[e]}))}))}function et(r,e){tt(r,e.allow,(function(r,e){Object.keys(r).forEach((function(t){e.includes(t)||delete r[t]}))}))}function tt(r,e,t){Object.entries(e).forEach((function(e){var n=e[0],o=e[1],a=function(r){"object"!=typeof r||null===r||t(r,o)},i=""===n?r:(0,Ke.default)(r,n);Array.isArray(i)?i.forEach(a):a(i)}))}function nt(r,e){var t=JSON.parse(JSON.stringify(r));for(var n in e.map)if(e.map.hasOwnProperty(n)){var o=e.map[n],a=n.split("."),i=void 0;if(a.length>1?(a.pop(),i=(0,Ke.default)(t,a.join("."))):i=r,"object"==typeof i){if(o.copy){var u=(0,Ke.default)(t,o.copy);void 0!==u&&(0,Ze.dset)(r,n,u)}else if(o.move){var c=(0,Ke.default)(t,o.move);void 0!==c&&(0,Ze.dset)(r,n,c),(0,$e.unset)(r,o.move)}else o.hasOwnProperty("set")&&(0,Ze.dset)(r,n,o.set);if(o.to_string){var f=(0,Ke.default)(r,n);if("string"==typeof f||"object"==typeof f&&null!==f)continue;void 0!==f?(0,Ze.dset)(r,n,JSON.stringify(f)):(0,Ze.dset)(r,n,"undefined")}}}}function ot(r,e){return!(e.sample.percent<=0)&&(e.sample.percent>=1||(e.sample.path?function(r,e){var t=(0,Ke.default)(r,e.sample.path),n=(0,qe.default)(JSON.stringify(t)),o=-64,a=[];at(n.slice(0,8),a);for(var i=0,u=0;u<64&&1!==a[u];u++)i++;if(0!==i){var c=[];at(n.slice(9,16),c),o-=i,a.splice(0,i),c.splice(64-i),a=a.concat(c)}return a[63]=0===a[63]?1:0,(0,Xe.default)(parseInt(a.join(""),2),o)<e.sample.percent}(r,e):function(r){return Math.random()<=r}(e.sample.percent)))}function at(r,e){for(var t=0;t<8;t++)for(var n=r[t],o=128;o>=1;o/=2)n-o>=0?(n-=o,e.push(1)):e.push(0)}a.default=function(r,e){for(var t=r,n=0,o=e;n<o.length;n++){var a=o[n];switch(a.type){case"drop":return null;case"drop_properties":rt(t,a.config);break;case"allow_properties":et(t,a.config);break;case"sample_event":if(ot(t,a.config))break;return null;case"map_properties":nt(t,a.config);break;case"hash_properties":break;default:throw new Error('Transformer of type "'.concat(a.type,'" is unsupported.'))}}return t};var it={},ut=r&&r.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(it,"__esModule",{value:!0});var ct=ut(l);function ft(r,e){if(!Array.isArray(r))return!0===lt(r,e);var t=r[0];switch(t){case"!":return!ft(r[1],e);case"or":for(var n=1;n<r.length;n++)if(ft(r[n],e))return!0;return!1;case"and":for(n=1;n<r.length;n++)if(!ft(r[n],e))return!1;return!0;case"=":case"!=":return function(r,e,t,n){switch(st(r)&&(r=ft(r,n)),st(e)&&(e=ft(e,n)),"object"==typeof r&&"object"==typeof e&&(r=JSON.stringify(r),e=JSON.stringify(e)),t){case"=":return r===e;case"!=":return r!==e;default:throw new Error("Invalid operator in compareItems: ".concat(t))}}(lt(r[1],e),lt(r[2],e),t,e);case"<=":case"<":case">":case">=":return function(r,e,t,n){if(st(r)&&(r=ft(r,n)),st(e)&&(e=ft(e,n)),"number"!=typeof r||"number"!=typeof e)return!1;switch(t){case"<=":return r<=e;case">=":return r>=e;case"<":return r<e;case">":return r>e;default:throw new Error("Invalid operator in compareNumbers: ".concat(t))}}(lt(r[1],e),lt(r[2],e),t,e);case"in":return function(r,e,t){return void 0!==e.find((function(e){return lt(e,t)===r}))}(lt(r[1],e),lt(r[2],e),e);case"contains":return function(r,e){return"string"==typeof r&&"string"==typeof e&&-1!==r.indexOf(e)}(lt(r[1],e),lt(r[2],e));case"match":return function(r,e){return"string"==typeof r&&"string"==typeof e&&function(r,e){var t,n;r:for(;r.length>0;){var o=void 0,a=void 0;if(o=(t=pt(r)).star,a=t.chunk,r=t.pattern,o&&""===a)return!0;var i=yt(a,e),u=i.t,c=i.ok,f=i.err;if(f)return!1;if(!c||!(0===u.length||r.length>0)){if(o)for(var l=0;l<e.length;l++){if(u=(n=yt(a,e.slice(l+1))).t,c=n.ok,f=n.err,c){if(0===r.length&&u.length>0)continue;e=u;continue r}if(f)return!1}return!1}e=u}return 0===e.length}(e,r)}(lt(r[1],e),lt(r[2],e));case"lowercase":var o=lt(r[1],e);return"string"!=typeof o?null:o.toLowerCase();case"typeof":return typeof lt(r[1],e);case"length":return function(r){return null===r?0:Array.isArray(r)||"string"==typeof r?r.length:NaN}(lt(r[1],e));default:throw new Error("FQL IR could not evaluate for token: ".concat(t))}}function lt(r,e){return Array.isArray(r)?r:"object"==typeof r?r.value:(0,ct.default)(e,r)}function st(r){return!!Array.isArray(r)&&(("lowercase"===r[0]||"length"===r[0]||"typeof"===r[0])&&2===r.length||("contains"===r[0]||"match"===r[0])&&3===r.length)}function pt(r){for(var e={star:!1,chunk:"",pattern:""};r.length>0&&"*"===r[0];)r=r.slice(1),e.star=!0;var t,n=!1;r:for(t=0;t<r.length;t++)switch(r[t]){case"\\":t+1<r.length&&t++;break;case"[":n=!0;break;case"]":n=!1;break;case"*":if(!n)break r}return e.chunk=r.slice(0,t),e.pattern=r.slice(t),e}function yt(r,e){for(var t,n,o={t:"",ok:!1,err:!1};r.length>0;){if(0===e.length)return o;switch(r[0]){case"[":var a=e[0];e=e.slice(1);var i=!0;(r=r.slice(1)).length>0&&"^"===r[0]&&(i=!1,r=r.slice(1));for(var u=!1,c=0;;){if(r.length>0&&"]"===r[0]&&c>0){r=r.slice(1);break}var f,l="";if(f=(t=vt(r)).char,r=t.newChunk,t.err||(l=f,"-"===r[0]&&(l=(n=vt(r.slice(1))).char,r=n.newChunk,n.err)))return o;f<=a&&a<=l&&(u=!0),c++}if(u!==i)return o;break;case"?":e=e.slice(1),r=r.slice(1);break;case"\\":if(0===(r=r.slice(1)).length)return o.err=!0,o;default:if(r[0]!==e[0])return o;e=e.slice(1),r=r.slice(1)}}return o.t=e,o.ok=!0,o.err=!1,o}function vt(r){var e={char:"",newChunk:"",err:!1};return 0===r.length||"-"===r[0]||"]"===r[0]||"\\"===r[0]&&0===(r=r.slice(1)).length?(e.err=!0,e):(e.char=r[0],e.newChunk=r.slice(1),0===e.newChunk.length&&(e.err=!0),e)}it.default=function(r,e){if(!e)throw new Error("No matcher supplied!");switch(e.type){case"all":return!0;case"fql":return function(r,e){if(!r)return!1;try{r=JSON.parse(r)}catch(e){throw new Error('Failed to JSON.parse FQL intermediate representation "'.concat(r,'": ').concat(e))}var t=ft(r,e);return"boolean"==typeof t&&t}(e.ir,r);default:throw new Error("Matcher of type ".concat(e.type," unsupported."))}};var dt={};Object.defineProperty(dt,"__esModule",{value:!0});var ht=function(){function r(r){this.rules=[],this.rules=r||[]}return r.prototype.getRulesByDestinationName=function(r){for(var e=[],t=0,n=this.rules;t<n.length;t++){var o=n[t];(o.destinationName===r||void 0===o.destinationName)&&e.push(o)}return e},r}();dt.default=ht,function(e){var t=r&&r.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(e,"__esModule",{value:!0}),e.Store=e.matches=e.transform=void 0;var n=a;Object.defineProperty(e,"transform",{enumerable:!0,get:function(){return t(n).default}});var o=it;Object.defineProperty(e,"matches",{enumerable:!0,get:function(){return t(o).default}});var i=dt;Object.defineProperty(e,"Store",{enumerable:!0,get:function(){return t(i).default}})}(o);var mt=function(r){return function(e){var t=e.payload,n=e.integration,a=e.next;new o.Store(r).getRulesByDestinationName(n).forEach((function(r){for(var e=r.matchers,n=r.transformers,i=0;i<e.length;i++)if(o.matches(t.obj,e[i])&&(t.obj=o.transform(t.obj,n[i]),null===t.obj))return a(null)})),a(t)}};export{mt as tsubMiddleware};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{C as r,H as i}from"./index.esm2.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";function t(r,i){return Object.keys(i).reduce((function(t,e){e.startsWith(r)&&(t[e.substr(r.length)]=i[e]);return t}),{})}function e(e,a){var s=document.createElement("a");s.href=a;var o=s.search.slice(1).split("&").reduce((function(i,t){var e=t.split("="),a=e[0],s=e[1];return i[a]=r(s),i}),{}),n=[],c=o.ajs_uid,u=o.ajs_event,m=o.ajs_aid,d=i(e.options.useQueryString)?e.options.useQueryString:{},p=d.aid,f=void 0===p?/.+/:p,j=d.uid,_=void 0===j?/.+/:j;if(m){var v=Array.isArray(o.ajs_aid)?o.ajs_aid[0]:o.ajs_aid;f.test(v)&&e.setAnonymousId(v)}if(c){var y=Array.isArray(o.ajs_uid)?o.ajs_uid[0]:o.ajs_uid;if(_.test(y)){var l=t("ajs_trait_",o);n.push(e.identify(y,l))}}if(u){var b=Array.isArray(o.ajs_event)?o.ajs_event[0]:o.ajs_event,A=t("ajs_prop_",o);n.push(e.track(b,A))}return Promise.all(n)}export{e as queryString};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{G as e}from"./index.esm2.js";import{l as t}from"./is-plan-event-enabled-d9660f36.esm.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";function n(n,r){function i(i){var o=n,a=i.event.event;if(o&&a){var c=o[a];if(!t(o,c))return i.updateEvent("integrations",e(e({},i.event.integrations),{All:!1,"Segment.io":!0})),i;var s=function(e,t){var n,r;if(!e||!Object.keys(e))return{};var i=e.integrations?Object.keys(e.integrations).filter((function(t){return!1===e.integrations[t]})):[],o=[];return(null!==(n=t.remotePlugins)&&void 0!==n?n:[]).forEach((function(e){i.forEach((function(t){(e.name.includes(t)||t.includes(e.name))&&o.push(e.name)}))})),(null!==(r=t.remotePlugins)&&void 0!==r?r:[]).reduce((function(e,t){return t.settings.subscriptions&&o.includes(t.name)&&t.settings.subscriptions.forEach((function(n){return e["".concat(t.name," ").concat(n.partnerAction)]=!1})),e}),{})}(c,r);i.updateEvent("integrations",e(e(e({},i.event.integrations),null==c?void 0:c.integrations),s))}return i}return{name:"Schema Filter",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:i,alias:i,track:i,identify:i,group:i}}export{n as schemaFilter};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{z as i,E as r}from"./index.esm2.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";function t(t){return i(this,void 0,void 0,(function(){var i;return r(this,(function(r){switch(r.label){case 0:return[4,import("./index.umd-c9cf1445.esm.js").then((i=>i.i))];case 1:return i=r.sent(),t._plugins=i,[2]}}))}))}export{t as loadLegacyVideoPlugins};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{z as t,E as n,A as i,B as e,S as r,D as o,G as s,I as a,J as u,X as c,K as l,L as d,M as h,N as f,H as v,O as p,Q as g,R as m,U as y,V as b}from"./index.esm2.js";import{l as w}from"./is-plan-event-enabled-d9660f36.esm.js";import"react/jsx-runtime";import"events";import"react";import"office-ui-fabric-react";import"react-router-dom";import"react-is";import"styled-components";import"react-dom";import"office-ui-fabric-core/dist/css/fabric.css";import"office-ui-fabric-react/lib/common/DirectionalHint";import"react-dom/server";function _(t){return t.toLowerCase().replace(".","").replace(/\s+/g,"-")}function z(t,n){return void 0===n&&(n=!1),n?btoa(t).replace(/=/g,""):void 0}function S(r,o,s,a){return t(this,void 0,void 0,(function(){var t,u,c,l,d,h;return n(this,(function(n){switch(n.label){case 0:t=_(o),u=z(t,a),c=e(),l="".concat(c,"/integrations/").concat(null!=u?u:t,"/").concat(s,"/").concat(null!=u?u:t,".dynamic.js.gz"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,i(l)];case 2:return n.sent(),function(t,n,i){var e,r;try{var o=(null!==(r=null===(e=null==window?void 0:window.performance)||void 0===e?void 0:e.getEntriesByName(t,"resource"))&&void 0!==r?r:[])[0];o&&n.stats.gauge("legacy_destination_time",Math.round(o.duration),f([i],o.duration<100?["cached"]:[],!0))}catch(t){}}(l,r,o),[3,4];case 3:throw d=n.sent(),r.stats.gauge("legacy_destination_time",-1,["plugin:".concat(o),"failed"]),d;case 4:return h=window["".concat(t,"Deps")],[4,Promise.all(h.map((function(t){return i(c+t+".gz")})))];case 5:return n.sent(),window["".concat(t,"Loader")](),[2,window["".concat(t,"Integration")]]}}))}))}function k(i,e){return t(this,void 0,void 0,(function(){var r,s=this;return n(this,(function(a){switch(a.label){case 0:return r=[],o()?[2,e]:[4,l((function(){return e.length>0&&g()}),(function(){return t(s,void 0,void 0,(function(){var t,o;return n(this,(function(n){switch(n.label){case 0:return(t=e.pop())?[4,p(t,i)]:[2];case 1:return o=n.sent(),o instanceof b||r.push(t),[2]}}))}))}))];case 1:return a.sent(),r.map((function(t){return e.pushWithBackoff(t)})),[2,e]}}))}))}var I=function(){function i(t,n,i,e,r,o){void 0===e&&(e={}),this.options={},this.type="destination",this.middleware=[],this._ready=!1,this._initialized=!1,this.flushing=!1,this.name=t,this.version=n,this.settings=s({},e),this.disableAutoISOConversion=r.disableAutoISOConversion||!1,this.integrationSource=o,this.settings.type&&"browser"===this.settings.type&&delete this.settings.type,this.options=r,this.buffer=r.disableClientPersistence?new m(4,[]):new y(4,"".concat(i,":dest-").concat(t)),this.scheduleFlush()}return i.prototype.isLoaded=function(){return this._ready},i.prototype.ready=function(){var t;return null!==(t=this.onReady)&&void 0!==t?t:Promise.resolve()},i.prototype.load=function(i,e){var r;return t(this,void 0,void 0,(function(){var t,o,s=this;return n(this,(function(n){switch(n.label){case 0:return this._ready||void 0!==this.onReady?[2]:null!==(r=this.integrationSource)&&void 0!==r?(o=r,[3,3]):[3,1];case 1:return[4,S(i,this.name,this.version,this.options.obfuscate)];case 2:o=n.sent(),n.label=3;case 3:t=o,this.integration=function(t,n,i){var e;"Integration"in t?(t({user:function(){return i.user()},addIntegration:function(){}}),e=t.Integration):e=t;var r=new e(n);return r.analytics=i,r}(t,this.settings,e),this.onReady=new Promise((function(t){s.integration.once("ready",(function(){s._ready=!0,t(!0)}))})),this.onInitialize=new Promise((function(t){s.integration.on("initialize",(function(){s._initialized=!0,t(!0)}))}));try{i.stats.increment("analytics_js.integration.invoke",1,["method:initialize","integration_name:".concat(this.name)]),this.integration.initialize()}catch(t){throw i.stats.increment("analytics_js.integration.invoke.error",1,["method:initialize","integration_name:".concat(this.name)]),t}return[2]}}))}))},i.prototype.unload=function(i,o){return function(i,o,s){return t(this,void 0,void 0,(function(){var t,a,u,c;return n(this,(function(n){return t=e(),a=_(i),u=z(i,s),c="".concat(t,"/integrations/").concat(null!=u?u:a,"/").concat(o,"/").concat(null!=u?u:a,".dynamic.js.gz"),[2,r(c)]}))}))}(this.name,this.version,this.options.obfuscate)},i.prototype.addMiddleware=function(){for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];this.middleware=(t=this.middleware).concat.apply(t,n)},i.prototype.shouldBuffer=function(t){return"page"!==t.event.type&&(o()||!1===this._ready||!1===this._initialized)},i.prototype.send=function(i,e,r){var o,c;return t(this,void 0,void 0,(function(){var t,l,d,h,f,v;return n(this,(function(n){switch(n.label){case 0:if(this.shouldBuffer(i))return this.buffer.push(i),this.scheduleFlush(),[2,i];if(t=null===(c=null===(o=this.options)||void 0===o?void 0:o.plan)||void 0===c?void 0:c.track,l=i.event.event,t&&l&&"Segment.io"!==this.name){if(d=t[l],!w(t,d))return i.updateEvent("integrations",s(s({},i.event.integrations),{All:!1,"Segment.io":!0})),i.cancel(new a({retry:!1,reason:"Event ".concat(l," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,i];if(i.updateEvent("integrations",s(s({},i.event.integrations),null==d?void 0:d.integrations)),null!=d&&d.enabled&&!1===(null==d?void 0:d.integrations[this.name]))return i.cancel(new a({retry:!1,reason:"Event ".concat(l," disabled for integration ").concat(this.name," in tracking plan"),type:"Dropped by plan"})),[2,i]}return[4,u(this.name,i.event,this.middleware)];case 1:if(null===(h=n.sent()))return[2,i];f=new e(h,{traverse:!this.disableAutoISOConversion}),i.stats.increment("analytics_js.integration.invoke",1,["method:".concat(r),"integration_name:".concat(this.name)]),n.label=2;case 2:return n.trys.push([2,5,,6]),this.integration?[4,this.integration.invoke.call(this.integration,r,f)]:[3,4];case 3:n.sent(),n.label=4;case 4:return[3,6];case 5:throw v=n.sent(),i.stats.increment("analytics_js.integration.invoke.error",1,["method:".concat(r),"integration_name:".concat(this.name)]),v;case 6:return[2,i]}}))}))},i.prototype.track=function(i){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this.send(i,c.Track,"track")]}))}))},i.prototype.page=function(i){var e;return t(this,void 0,void 0,(function(){var t=this;return n(this,(function(n){return!(null===(e=this.integration)||void 0===e)&&e._assumesPageview&&!this._initialized&&this.integration.initialize(),[2,this.onInitialize.then((function(){return t.send(i,c.Page,"page")}))]}))}))},i.prototype.identify=function(i){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this.send(i,c.Identify,"identify")]}))}))},i.prototype.alias=function(i){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this.send(i,c.Alias,"alias")]}))}))},i.prototype.group=function(i){return t(this,void 0,void 0,(function(){return n(this,(function(t){return[2,this.send(i,c.Group,"group")]}))}))},i.prototype.scheduleFlush=function(){var i=this;this.flushing||setTimeout((function(){return t(i,void 0,void 0,(function(){var t;return n(this,(function(n){switch(n.label){case 0:return this.flushing=!0,t=this,[4,k(this,this.buffer)];case 1:return t.buffer=n.sent(),this.flushing=!1,this.buffer.todo>0&&this.scheduleFlush(),[2]}}))}))}),5e3*Math.random())},i}();function j(t,n,i,e,r,o){var a,u;if(void 0===i&&(i={}),void 0===e&&(e={}),d())return[];n.plan&&((e=null!=e?e:{}).plan=n.plan);var c=null!==(u=null===(a=n.middlewareSettings)||void 0===a?void 0:a.routingRules)&&void 0!==u?u:[],l=n.integrations,p=e.integrations,g=h(n,null!=e?e:{}),m=null==o?void 0:o.reduce((function(t,n){var i;return s(s({},t),((i={})[function(t){return("Integration"in t?t.Integration:t).prototype.name}(n)]=n,i))}),{}),y=new Set(f(f([],Object.keys(l).filter((function(t){return function(t,n){var i,e=n.type,r=n.bundlingStatus,o=n.versionSettings,s="unbundled"!==r&&("browser"===e||(null===(i=null==o?void 0:o.componentTypes)||void 0===i?void 0:i.includes("browser")));return!t.startsWith("Segment")&&"Iterable"!==t&&s}(t,l[t])})),!0),Object.keys(m||{}).filter((function(t){return v(l[t])||v(null==p?void 0:p[t])})),!0));return Array.from(y).filter((function(t){return!function(t,n){var i=!1===n.All&&void 0===n[t];return!1===n[t]||i}(t,i)})).map((function(n){var i=function(t){var n,i,e,r;return null!==(r=null!==(i=null===(n=null==t?void 0:t.versionSettings)||void 0===n?void 0:n.override)&&void 0!==i?i:null===(e=null==t?void 0:t.versionSettings)||void 0===e?void 0:e.version)&&void 0!==r?r:"latest"}(l[n]),o=new I(n,i,t,g[n],e,null==m?void 0:m[n]);return c.filter((function(t){return t.destinationName===n})).length>0&&r&&o.addMiddleware(r),o}))}export{I as LegacyDestination,j as ajsDestinations};
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { FC, ReactNode, MouseEvent } from 'react';
|
|
3
3
|
import { IDialogProps, IDropdownOption, IPersonaProps } from 'office-ui-fabric-react';
|
|
4
4
|
import * as styled_components from 'styled-components';
|
|
5
5
|
|
|
@@ -1238,6 +1238,7 @@ interface NewsListProps {
|
|
|
1238
1238
|
declare const NewsList: FC<NewsListProps>;
|
|
1239
1239
|
|
|
1240
1240
|
interface ManageChannelsProps {
|
|
1241
|
+
hideSearch?: boolean;
|
|
1241
1242
|
className?: string;
|
|
1242
1243
|
}
|
|
1243
1244
|
declare const ManageChannels: FC<ManageChannelsProps>;
|
|
@@ -1303,6 +1304,11 @@ interface EventsListProps {
|
|
|
1303
1304
|
}
|
|
1304
1305
|
declare const EventsList: FC<EventsListProps>;
|
|
1305
1306
|
|
|
1307
|
+
declare enum HeroPagingType {
|
|
1308
|
+
page = 0,
|
|
1309
|
+
item = 1
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1306
1312
|
interface NewsHeroFilterProps {
|
|
1307
1313
|
/**
|
|
1308
1314
|
* Limit results to those associated with the given channels.
|
|
@@ -1326,6 +1332,8 @@ interface NewsHeroProps {
|
|
|
1326
1332
|
onChannelClick?: (channelName: string, channelItem?: Channel) => unknown;
|
|
1327
1333
|
onKeywordClick?: (keywordId: string, keywordItem?: Keyword) => unknown;
|
|
1328
1334
|
showKeywords?: boolean;
|
|
1335
|
+
onViewAllButtonClick?: (e: MouseEvent<unknown>) => void;
|
|
1336
|
+
pagingType?: HeroPagingType;
|
|
1329
1337
|
}
|
|
1330
1338
|
declare const NewsHero: FC<NewsHeroProps>;
|
|
1331
1339
|
|
|
@@ -1637,4 +1645,4 @@ declare const ToolbarBookmarkButton: FC<{
|
|
|
1637
1645
|
onClick?: () => unknown;
|
|
1638
1646
|
}>;
|
|
1639
1647
|
|
|
1640
|
-
export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, ContactToolbarFilter, EditorToolbarIndicators, EditorToolbarIndicatorsProps, ErrorType, ErrorWrapper, ErrorWrapperProps, EventDatesToolbarFilter, EventDatesToolbarFilterProps, EventDetail, EventDetailPreview, EventDetailProps, EventEditor, EventEditorContextProvider, EventEditorContextProviderProps, EventEditorPanel, EventEditorPanelProps, EventEditorProps, EventEditorToolbarRecurringControls, EventEditorToolbarRecurringControlsProps, EventEditorToolbarStateActions, EventGridProps, EventItemContextProvider, EventItemPreviewContextProvider, EventStreamItem, EventView, EventsEditorDashboard, EventsEditorDashboardProps, EventsGrid, EventsList, EventsListProps, FilterProps, FilterSearch, FilterWithLogicalOperator, GroupNotificationsSettings, GroupNotificationsSettingsProps, ItemLayoutMode, ItemLoader, ItemResourceTypes, Keyword, ScrollableKeywordPicker as KeywordPicker, KeywordPickerProps, KeywordsFilter, KeywordsToolbarFilter, LibNewsFilterDefinition, LogicalOperator, ManageChannels, ManageChannelsProps, NewsDetail, NewsDetailPreview, NewsDetailProps, NewsEditor, NewsEditorContextProvider, NewsEditorContextProviderProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsEditorPanel, NewsEditorPanelProps, NewsEditorProps, NewsEditorToolbarStateActions, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, NewsStreamItem, PageDetail, PageDetailPreview, PageDetailProps, PageEditor, PageEditorContextProvider, PageEditorContextProviderProps, PageEditorPanel, PageEditorPanelProps, PageEditorProps, PageEditorToolbarStateActions, PageItemContextProvider, PageItemPreviewContextProvider, PageStreamItem, PageType, PageViewTrackerSettings, PageViewTrackerSettingsContextProvider, PagesGrid, PagesGridProps, PagesList, PagesListProps, PostDetail, PostDetailProps, PostGroupSelector, PostGroupSelectorButton, PostGroupSelectorProps, PostGroupsPicker, PostGroupsPickerProps, PostInputBox, PostInputBoxProps, PostList, PostListContextProvider, PostListContextProviderProps, PostListProps, PostStreamItem, PublishableItem, PublishingDateFilter, PublishingDateToolbarFilter, ReachContextProps, ReachContextProvider, Dialog as ReachDialog, SharedItemDetailPreviewProps, TargetLinkOverrideContextProvider, Toolbar, ToolbarBookmarkButton, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarEventViewSelector, ToolbarEventViewSelectorProps, ToolbarFilterModal, ToolbarFilterModalButton, ToolbarFilterModalProps, ToolbarFilterPanel, ToolbarFilterSearch, ToolbarFilterToggleButton, ToolbarIconButton, ToolbarIconButtonProps, ToolbarLanguageSelector, ToolbarManageButton, ToolbarManageItemButton, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllNewsAsReadButton, ToolbarMarkEventsItemsAsReadButtonProps, ToolbarMarkNewsItemsAsReadButtonProps, ToolbarLanguageSelector as ToolbarNewsLanguageSelector, ToolbarPostNotificationButton, ToolbarProps, ToolbarSearchProps, ToolbarUnreadItemsButton, UserDetails, UserDetailsProps, VerticalFilterPanel, VerticalFilterPanelProps, VideoSource$1 as VideoSource, isFilterActive, useCurrentUser, useEventsStreamDataLoader, useLazySubscriptionContext, useNewsStreamDataLoader, usePagesStreamDataLoader, usePostsStreamDataLoader };
|
|
1648
|
+
export { AuthorFilter, AuthorToolbarFilter, Avatar, Props as AvatarProps, ChannelFilter, ChannelFilterProps, ChannelSelectorWrapper as ChannelSelector, ChannelSelectorWrapperProps as ChannelSelectorProps, ChannelToolbarFilter, ClearAllFiltersButton, ClearAllFiltersButtonProps, ContactToolbarFilter, EditorToolbarIndicators, EditorToolbarIndicatorsProps, ErrorType, ErrorWrapper, ErrorWrapperProps, EventDatesToolbarFilter, EventDatesToolbarFilterProps, EventDetail, EventDetailPreview, EventDetailProps, EventEditor, EventEditorContextProvider, EventEditorContextProviderProps, EventEditorPanel, EventEditorPanelProps, EventEditorProps, EventEditorToolbarRecurringControls, EventEditorToolbarRecurringControlsProps, EventEditorToolbarStateActions, EventGridProps, EventItemContextProvider, EventItemPreviewContextProvider, EventStreamItem, EventView, EventsEditorDashboard, EventsEditorDashboardProps, EventsGrid, EventsList, EventsListProps, FilterProps, FilterSearch, FilterWithLogicalOperator, GroupNotificationsSettings, GroupNotificationsSettingsProps, HeroPagingType, ItemLayoutMode, ItemLoader, ItemResourceTypes, Keyword, ScrollableKeywordPicker as KeywordPicker, KeywordPickerProps, KeywordsFilter, KeywordsToolbarFilter, LibNewsFilterDefinition, LogicalOperator, ManageChannels, ManageChannelsProps, NewsDetail, NewsDetailPreview, NewsDetailProps, NewsEditor, NewsEditorContextProvider, NewsEditorContextProviderProps, NewsEditorDashboard, NewsEditorDashboardProps, NewsEditorPanel, NewsEditorPanelProps, NewsEditorProps, NewsEditorToolbarStateActions, NewsGrid, NewsGridProps, NewsHero, NewsHeroProps, NewsItemContextProvider, NewsItemPreviewContextProvider, NewsList, NewsListProps, NewsStreamItem, PageDetail, PageDetailPreview, PageDetailProps, PageEditor, PageEditorContextProvider, PageEditorContextProviderProps, PageEditorPanel, PageEditorPanelProps, PageEditorProps, PageEditorToolbarStateActions, PageItemContextProvider, PageItemPreviewContextProvider, PageStreamItem, PageType, PageViewTrackerSettings, PageViewTrackerSettingsContextProvider, PagesGrid, PagesGridProps, PagesList, PagesListProps, PostDetail, PostDetailProps, PostGroupSelector, PostGroupSelectorButton, PostGroupSelectorProps, PostGroupsPicker, PostGroupsPickerProps, PostInputBox, PostInputBoxProps, PostList, PostListContextProvider, PostListContextProviderProps, PostListProps, PostStreamItem, PublishableItem, PublishingDateFilter, PublishingDateToolbarFilter, ReachContextProps, ReachContextProvider, Dialog as ReachDialog, SharedItemDetailPreviewProps, TargetLinkOverrideContextProvider, Toolbar, ToolbarBookmarkButton, ToolbarChannelSelector, ToolbarChannelSelectorOption, ToolbarChannelSelectorProps, ToolbarCloseButton, ToolbarCloseButtonProps, ToolbarEventViewSelector, ToolbarEventViewSelectorProps, ToolbarFilterModal, ToolbarFilterModalButton, ToolbarFilterModalProps, ToolbarFilterPanel, ToolbarFilterSearch, ToolbarFilterToggleButton, ToolbarIconButton, ToolbarIconButtonProps, ToolbarLanguageSelector, ToolbarManageButton, ToolbarManageItemButton, ToolbarManageNewsItemButton, ToolbarMarkAllEventsAsReadButton, ToolbarMarkAllNewsAsReadButton, ToolbarMarkEventsItemsAsReadButtonProps, ToolbarMarkNewsItemsAsReadButtonProps, ToolbarLanguageSelector as ToolbarNewsLanguageSelector, ToolbarPostNotificationButton, ToolbarProps, ToolbarSearchProps, ToolbarUnreadItemsButton, UserDetails, UserDetailsProps, VerticalFilterPanel, VerticalFilterPanelProps, VideoSource$1 as VideoSource, isFilterActive, useCurrentUser, useEventsStreamDataLoader, useLazySubscriptionContext, useNewsStreamDataLoader, usePagesStreamDataLoader, usePostsStreamDataLoader };
|