rudder-sdk-js 1.2.8 → 1.2.13
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/index.d.ts +2 -0
- package/index.js +552 -114
- package/package.json +1 -1
package/index.d.ts
CHANGED
package/index.js
CHANGED
@@ -9,14 +9,9 @@
|
|
9
9
|
|
10
10
|
if (Object.getOwnPropertySymbols) {
|
11
11
|
var symbols = Object.getOwnPropertySymbols(object);
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
16
|
-
});
|
17
|
-
}
|
18
|
-
|
19
|
-
keys.push.apply(keys, symbols);
|
12
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
13
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
14
|
+
})), keys.push.apply(keys, symbols);
|
20
15
|
}
|
21
16
|
|
22
17
|
return keys;
|
@@ -24,19 +19,12 @@
|
|
24
19
|
|
25
20
|
function _objectSpread2(target) {
|
26
21
|
for (var i = 1; i < arguments.length; i++) {
|
27
|
-
var source = arguments[i]
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
34
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
35
|
-
} else {
|
36
|
-
ownKeys(Object(source)).forEach(function (key) {
|
37
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
38
|
-
});
|
39
|
-
}
|
22
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
23
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
24
|
+
_defineProperty(target, key, source[key]);
|
25
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
26
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
27
|
+
});
|
40
28
|
}
|
41
29
|
|
42
30
|
return target;
|
@@ -45,17 +33,11 @@
|
|
45
33
|
function _typeof(obj) {
|
46
34
|
"@babel/helpers - typeof";
|
47
35
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
}
|
53
|
-
_typeof = function (obj) {
|
54
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
55
|
-
};
|
56
|
-
}
|
57
|
-
|
58
|
-
return _typeof(obj);
|
36
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
37
|
+
return typeof obj;
|
38
|
+
} : function (obj) {
|
39
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
40
|
+
}, _typeof(obj);
|
59
41
|
}
|
60
42
|
|
61
43
|
function _classCallCheck(instance, Constructor) {
|
@@ -77,6 +59,9 @@
|
|
77
59
|
function _createClass(Constructor, protoProps, staticProps) {
|
78
60
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
79
61
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
62
|
+
Object.defineProperty(Constructor, "prototype", {
|
63
|
+
writable: false
|
64
|
+
});
|
80
65
|
return Constructor;
|
81
66
|
}
|
82
67
|
|
@@ -1381,7 +1366,9 @@
|
|
1381
1366
|
|
1382
1367
|
for (var key in value) {
|
1383
1368
|
if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && ( // Safari 9 has enumerable `arguments.length` in strict mode.
|
1384
|
-
key == 'length' ||
|
1369
|
+
key == 'length' || // Node.js 0.10 has enumerable non-index properties on buffers.
|
1370
|
+
isBuff && (key == 'offset' || key == 'parent') || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
1371
|
+
isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset') || // Skip index properties.
|
1385
1372
|
isIndex(key, length)))) {
|
1386
1373
|
result.push(key);
|
1387
1374
|
}
|
@@ -5466,7 +5453,18 @@
|
|
5466
5453
|
QuantumMetric: "QUANTUMMETRIC",
|
5467
5454
|
quantumMetric: "QUANTUMMETRIC",
|
5468
5455
|
quantummetric: "QUANTUMMETRIC",
|
5469
|
-
Quantum_Metric: "QUANTUMMETRIC"
|
5456
|
+
Quantum_Metric: "QUANTUMMETRIC",
|
5457
|
+
"Google Optimize": "GOOGLE_OPTIMIZE",
|
5458
|
+
GOOGLE_OPTIMIZE: "GOOGLE_OPTIMIZE",
|
5459
|
+
GoogleOptimize: "GOOGLE_OPTIMIZE",
|
5460
|
+
Googleoptimize: "GOOGLE_OPTIMIZE",
|
5461
|
+
GOOGLEOPTIMIZE: "GOOGLE_OPTIMIZE",
|
5462
|
+
PostAffiliatePro: "POST_AFFILIATE_PRO",
|
5463
|
+
Post_affiliate_pro: "POST_AFFILIATE_PRO",
|
5464
|
+
"Post Affiliate Pro": "POST_AFFILIATE_PRO",
|
5465
|
+
postaffiliatepro: "POST_AFFILIATE_PRO",
|
5466
|
+
POSTAFFILIATEPRO: "POST_AFFILIATE_PRO",
|
5467
|
+
POST_AFFILIATE_PRO: "POST_AFFILIATE_PRO"
|
5470
5468
|
};
|
5471
5469
|
|
5472
5470
|
// from client native integration name to server identified display name
|
@@ -5511,7 +5509,9 @@
|
|
5511
5509
|
CRITEO: "Criteo",
|
5512
5510
|
MP: "Mixpanel",
|
5513
5511
|
QUALTRICS: "Qualtrics",
|
5514
|
-
SENTRY: "Sentry"
|
5512
|
+
SENTRY: "Sentry",
|
5513
|
+
GOOGLE_OPTIMIZE: "GoogleOptimize",
|
5514
|
+
POST_AFFILIATE_PRO: "PostAffiliatePro"
|
5515
5515
|
};
|
5516
5516
|
|
5517
5517
|
// Reserved Keywords for properties/triats
|
@@ -5555,7 +5555,7 @@
|
|
5555
5555
|
PRODUCT_REVIEWED: "Product Reviewed"
|
5556
5556
|
}; // Enumeration for integrations supported
|
5557
5557
|
|
5558
|
-
var CONFIG_URL = "https://api.rudderlabs.com/sourceConfig/?p=npm&v=1.2.
|
5558
|
+
var CONFIG_URL = "https://api.rudderlabs.com/sourceConfig/?p=npm&v=1.2.13";
|
5559
5559
|
var MAX_WAIT_FOR_INTEGRATION_LOAD = 10000;
|
5560
5560
|
var INTEGRATION_LOAD_CHECK_INTERVAL = 1000;
|
5561
5561
|
/* module.exports = {
|
@@ -8138,7 +8138,8 @@
|
|
8138
8138
|
|
8139
8139
|
|
8140
8140
|
function isBuffer(obj) {
|
8141
|
-
return !!(obj != null && (obj._isBuffer ||
|
8141
|
+
return !!(obj != null && (obj._isBuffer || // For Safari 5-7 (missing Object.prototype.constructor)
|
8142
|
+
obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)));
|
8142
8143
|
}
|
8143
8144
|
|
8144
8145
|
/*
|
@@ -8550,7 +8551,10 @@
|
|
8550
8551
|
|
8551
8552
|
function useColors() {
|
8552
8553
|
// is webkit? http://stackoverflow.com/a/16459606/376773
|
8553
|
-
return 'WebkitAppearance' in document.documentElement.style ||
|
8554
|
+
return 'WebkitAppearance' in document.documentElement.style || // is firebug? http://stackoverflow.com/a/398120/376773
|
8555
|
+
window.console && (console.firebug || console.exception && console.table) || // is firefox >= v31?
|
8556
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
8557
|
+
navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31;
|
8554
8558
|
}
|
8555
8559
|
/**
|
8556
8560
|
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
@@ -10730,7 +10734,11 @@
|
|
10730
10734
|
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
10731
10735
|
|
10732
10736
|
|
10733
|
-
return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance ||
|
10737
|
+
return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // is firebug? http://stackoverflow.com/a/398120/376773
|
10738
|
+
typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || // is firefox >= v31?
|
10739
|
+
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
10740
|
+
typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // double check webkit in userAgent just in case we are in a worker
|
10741
|
+
typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
10734
10742
|
}
|
10735
10743
|
/**
|
10736
10744
|
* Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.
|
@@ -13298,7 +13306,9 @@
|
|
13298
13306
|
* @param {boolean} inherited Specify returning inherited property names.
|
13299
13307
|
* @returns {Array} Returns the array of property names.
|
13300
13308
|
*/function arrayLikeKeys(value,inherited){var isArr=isArray(value),isArg=!isArr&&isArguments(value),isBuff=!isArr&&!isArg&&isBuffer(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value){if((inherited||hasOwnProperty.call(value,key))&&!(skipIndexes&&(// Safari 9 has enumerable `arguments.length` in strict mode.
|
13301
|
-
key=='length'
|
13309
|
+
key=='length'||// Node.js 0.10 has enumerable non-index properties on buffers.
|
13310
|
+
isBuff&&(key=='offset'||key=='parent')||// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
13311
|
+
isType&&(key=='buffer'||key=='byteLength'||key=='byteOffset')||// Skip index properties.
|
13302
13312
|
isIndex(key,length)))){result.push(key);}}return result;}/**
|
13303
13313
|
* A specialized version of `_.sample` for arrays.
|
13304
13314
|
*
|
@@ -22848,12 +22858,14 @@
|
|
22848
22858
|
};
|
22849
22859
|
|
22850
22860
|
/* eslint-disable no-use-before-define */
|
22861
|
+
var defaultAsyncState = true;
|
22851
22862
|
|
22852
22863
|
var ScriptLoader = function ScriptLoader(id, src) {
|
22864
|
+
var async = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : defaultAsyncState;
|
22853
22865
|
logger.debug("in script loader=== ".concat(id));
|
22854
22866
|
var js = document.createElement("script");
|
22855
22867
|
js.src = src;
|
22856
|
-
js.async =
|
22868
|
+
js.async = async === undefined ? defaultAsyncState : async;
|
22857
22869
|
js.type = "text/javascript";
|
22858
22870
|
js.id = id;
|
22859
22871
|
var e = document.getElementsByTagName("script")[0];
|
@@ -23697,7 +23709,7 @@
|
|
23697
23709
|
return Appcues;
|
23698
23710
|
}();
|
23699
23711
|
|
23700
|
-
var BingAds = function BingAds(config) {
|
23712
|
+
var BingAds = /*#__PURE__*/_createClass(function BingAds(config) {
|
23701
23713
|
var _this = this;
|
23702
23714
|
|
23703
23715
|
_classCallCheck(this, BingAds);
|
@@ -23777,7 +23789,7 @@
|
|
23777
23789
|
|
23778
23790
|
this.tagID = config.tagID;
|
23779
23791
|
this.name = "BINGADS";
|
23780
|
-
};
|
23792
|
+
});
|
23781
23793
|
|
23782
23794
|
/*
|
23783
23795
|
E-commerce support required for logPurchase support & other e-commerce events as track with productId changed
|
@@ -26955,8 +26967,13 @@
|
|
26955
26967
|
}
|
26956
26968
|
}, {
|
26957
26969
|
key: "page",
|
26958
|
-
value: function page() {
|
26959
|
-
|
26970
|
+
value: function page(rudderElement) {
|
26971
|
+
var _rudderElement$messag = rudderElement.message,
|
26972
|
+
properties = _rudderElement$messag.properties,
|
26973
|
+
messageId = _rudderElement$messag.messageId;
|
26974
|
+
window.fbq("track", "PageView", properties, {
|
26975
|
+
eventID: messageId
|
26976
|
+
});
|
26960
26977
|
}
|
26961
26978
|
}, {
|
26962
26979
|
key: "identify",
|
@@ -26972,10 +26989,10 @@
|
|
26972
26989
|
var _this = this;
|
26973
26990
|
|
26974
26991
|
var self = this;
|
26975
|
-
var _rudderElement$
|
26976
|
-
event = _rudderElement$
|
26977
|
-
properties = _rudderElement$
|
26978
|
-
messageId = _rudderElement$
|
26992
|
+
var _rudderElement$messag2 = rudderElement.message,
|
26993
|
+
event = _rudderElement$messag2.event,
|
26994
|
+
properties = _rudderElement$messag2.properties,
|
26995
|
+
messageId = _rudderElement$messag2.messageId;
|
26979
26996
|
var revValue;
|
26980
26997
|
var currVal;
|
26981
26998
|
|
@@ -27286,25 +27303,25 @@
|
|
27286
27303
|
}
|
27287
27304
|
/**
|
27288
27305
|
* Get the Facebook Content Type
|
27289
|
-
*
|
27306
|
+
*
|
27290
27307
|
* Can be `product`, `destination`, `flight` or `hotel`.
|
27291
|
-
*
|
27308
|
+
*
|
27292
27309
|
* This can be overridden within the message
|
27293
27310
|
* `options.integrations.FACEBOOK_PIXEL.contentType`, or alternatively you can
|
27294
27311
|
* set the "Map Categories to Facebook Content Types" setting within
|
27295
27312
|
* RudderStack config and then set the corresponding commerce category in
|
27296
27313
|
* `track()` properties.
|
27297
|
-
*
|
27314
|
+
*
|
27298
27315
|
* https://www.facebook.com/business/help/606577526529702?id=1205376682832142
|
27299
27316
|
*/
|
27300
27317
|
|
27301
27318
|
}, {
|
27302
27319
|
key: "getContentType",
|
27303
27320
|
value: function getContentType(rudderElement, defaultValue) {
|
27304
|
-
var _rudderElement$
|
27321
|
+
var _rudderElement$messag3, _rudderElement$messag4;
|
27305
27322
|
|
27306
27323
|
// Get the message-specific override if it exists in the options parameter of `track()`
|
27307
|
-
var contentTypeMessageOverride = (_rudderElement$
|
27324
|
+
var contentTypeMessageOverride = (_rudderElement$messag3 = rudderElement.message.integrations) === null || _rudderElement$messag3 === void 0 ? void 0 : (_rudderElement$messag4 = _rudderElement$messag3.FACEBOOK_PIXEL) === null || _rudderElement$messag4 === void 0 ? void 0 : _rudderElement$messag4.contentType;
|
27308
27325
|
if (contentTypeMessageOverride) return [contentTypeMessageOverride]; // Otherwise check if there is a replacement set for all Facebook Pixel
|
27309
27326
|
// track calls of this category
|
27310
27327
|
|
@@ -27410,6 +27427,15 @@
|
|
27410
27427
|
return FacebookPixel;
|
27411
27428
|
}();
|
27412
27429
|
|
27430
|
+
var UPPERCASE = /(?:[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1C90-\u1CBA\u1CBD-\u1CBF\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2F\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AE\uA7B0-\uA7B4\uA7B6\uA7B8\uA7BA\uA7BC\uA7BE\uA7C0\uA7C2\uA7C4-\uA7C7\uA7C9\uA7D0\uA7D6\uA7D8\uA7F5\uFF21-\uFF3A]|\uD801[\uDC00-\uDC27\uDCB0-\uDCD3\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95]|\uD803[\uDC80-\uDCB2]|\uD806[\uDCA0-\uDCBF]|\uD81B[\uDE40-\uDE5F]|\uD835[\uDC00-\uDC19\uDC34-\uDC4D\uDC68-\uDC81\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB5\uDCD0-\uDCE9\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD38\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD6C-\uDD85\uDDA0-\uDDB9\uDDD4-\uDDED\uDE08-\uDE21\uDE3C-\uDE55\uDE70-\uDE89\uDEA8-\uDEC0\uDEE2-\uDEFA\uDF1C-\uDF34\uDF56-\uDF6E\uDF90-\uDFA8\uDFCA]|\uD83A[\uDD00-\uDD21])/;
|
27431
|
+
var LOWERCASE = /(?:[a-z\xB5\xDF-\xF6\xF8-\xFF\u0101\u0103\u0105\u0107\u0109\u010B\u010D\u010F\u0111\u0113\u0115\u0117\u0119\u011B\u011D\u011F\u0121\u0123\u0125\u0127\u0129\u012B\u012D\u012F\u0131\u0133\u0135\u0137\u0138\u013A\u013C\u013E\u0140\u0142\u0144\u0146\u0148\u0149\u014B\u014D\u014F\u0151\u0153\u0155\u0157\u0159\u015B\u015D\u015F\u0161\u0163\u0165\u0167\u0169\u016B\u016D\u016F\u0171\u0173\u0175\u0177\u017A\u017C\u017E-\u0180\u0183\u0185\u0188\u018C\u018D\u0192\u0195\u0199-\u019B\u019E\u01A1\u01A3\u01A5\u01A8\u01AA\u01AB\u01AD\u01B0\u01B4\u01B6\u01B9\u01BA\u01BD-\u01BF\u01C6\u01C9\u01CC\u01CE\u01D0\u01D2\u01D4\u01D6\u01D8\u01DA\u01DC\u01DD\u01DF\u01E1\u01E3\u01E5\u01E7\u01E9\u01EB\u01ED\u01EF\u01F0\u01F3\u01F5\u01F9\u01FB\u01FD\u01FF\u0201\u0203\u0205\u0207\u0209\u020B\u020D\u020F\u0211\u0213\u0215\u0217\u0219\u021B\u021D\u021F\u0221\u0223\u0225\u0227\u0229\u022B\u022D\u022F\u0231\u0233-\u0239\u023C\u023F\u0240\u0242\u0247\u0249\u024B\u024D\u024F-\u0293\u0295-\u02AF\u0371\u0373\u0377\u037B-\u037D\u0390\u03AC-\u03CE\u03D0\u03D1\u03D5-\u03D7\u03D9\u03DB\u03DD\u03DF\u03E1\u03E3\u03E5\u03E7\u03E9\u03EB\u03ED\u03EF-\u03F3\u03F5\u03F8\u03FB\u03FC\u0430-\u045F\u0461\u0463\u0465\u0467\u0469\u046B\u046D\u046F\u0471\u0473\u0475\u0477\u0479\u047B\u047D\u047F\u0481\u048B\u048D\u048F\u0491\u0493\u0495\u0497\u0499\u049B\u049D\u049F\u04A1\u04A3\u04A5\u04A7\u04A9\u04AB\u04AD\u04AF\u04B1\u04B3\u04B5\u04B7\u04B9\u04BB\u04BD\u04BF\u04C2\u04C4\u04C6\u04C8\u04CA\u04CC\u04CE\u04CF\u04D1\u04D3\u04D5\u04D7\u04D9\u04DB\u04DD\u04DF\u04E1\u04E3\u04E5\u04E7\u04E9\u04EB\u04ED\u04EF\u04F1\u04F3\u04F5\u04F7\u04F9\u04FB\u04FD\u04FF\u0501\u0503\u0505\u0507\u0509\u050B\u050D\u050F\u0511\u0513\u0515\u0517\u0519\u051B\u051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1FD7\u1FE0-\u1FE7\u1FF2-\u1FF4\u1FF6\u1FF7\u210A\u210E\u210F\u2113\u212F\u2134\u2139\u213C\u213D\u2146-\u2149\u214E\u2184\u2C30-\u2C5F\u2C61\u2C65\u2C66\u2C68\u2C6A\u2C6C\u2C71\u2C73\u2C74\u2C76-\u2C7B\u2C81\u2C83\u2C85\u2C87\u2C89\u2C8B\u2C8D\u2C8F\u2C91\u2C93\u2C95\u2C97\u2C99\u2C9B\u2C9D\u2C9F\u2CA1\u2CA3\u2CA5\u2CA7\u2CA9\u2CAB\u2CAD\u2CAF\u2CB1\u2CB3\u2CB5\u2CB7\u2CB9\u2CBB\u2CBD\u2CBF\u2CC1\u2CC3\u2CC5\u2CC7\u2CC9\u2CCB\u2CCD\u2CCF\u2CD1\u2CD3\u2CD5\u2CD7\u2CD9\u2CDB\u2CDD\u2CDF\u2CE1\u2CE3\u2CE4\u2CEC\u2CEE\u2CF3\u2D00-\u2D25\u2D27\u2D2D\uA641\uA643\uA645\uA647\uA649\uA64B\uA64D\uA64F\uA651\uA653\uA655\uA657\uA659\uA65B\uA65D\uA65F\uA661\uA663\uA665\uA667\uA669\uA66B\uA66D\uA681\uA683\uA685\uA687\uA689\uA68B\uA68D\uA68F\uA691\uA693\uA695\uA697\uA699\uA69B\uA723\uA725\uA727\uA729\uA72B\uA72D\uA72F-\uA731\uA733\uA735\uA737\uA739\uA73B\uA73D\uA73F\uA741\uA743\uA745\uA747\uA749\uA74B\uA74D\uA74F\uA751\uA753\uA755\uA757\uA759\uA75B\uA75D\uA75F\uA761\uA763\uA765\uA767\uA769\uA76B\uA76D\uA76F\uA771-\uA778\uA77A\uA77C\uA77F\uA781\uA783\uA785\uA787\uA78C\uA78E\uA791\uA793-\uA795\uA797\uA799\uA79B\uA79D\uA79F\uA7A1\uA7A3\uA7A5\uA7A7\uA7A9\uA7AF\uA7B5\uA7B7\uA7B9\uA7BB\uA7BD\uA7BF\uA7C1\uA7C3\uA7C8\uA7CA\uA7D1\uA7D3\uA7D5\uA7D7\uA7D9\uA7F6\uA7FA\uAB30-\uAB5A\uAB60-\uAB68\uAB70-\uABBF\uFB00-\uFB06\uFB13-\uFB17\uFF41-\uFF5A]|\uD801[\uDC28-\uDC4F\uDCD8-\uDCFB\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC]|\uD803[\uDCC0-\uDCF2]|\uD806[\uDCC0-\uDCDF]|\uD81B[\uDE60-\uDE7F]|\uD835[\uDC1A-\uDC33\uDC4E-\uDC54\uDC56-\uDC67\uDC82-\uDC9B\uDCB6-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDCEA-\uDD03\uDD1E-\uDD37\uDD52-\uDD6B\uDD86-\uDD9F\uDDBA-\uDDD3\uDDEE-\uDE07\uDE22-\uDE3B\uDE56-\uDE6F\uDE8A-\uDEA5\uDEC2-\uDEDA\uDEDC-\uDEE1\uDEFC-\uDF14\uDF16-\uDF1B\uDF36-\uDF4E\uDF50-\uDF55\uDF70-\uDF88\uDF8A-\uDF8F\uDFAA-\uDFC2\uDFC4-\uDFC9\uDFCB]|\uD837[\uDF00-\uDF09\uDF0B-\uDF1E]|\uD83A[\uDD22-\uDD43])/;
|
27432
|
+
var LEADING_CAPITAL = /^(?:[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1C90-\u1CBA\u1CBD-\u1CBF\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1E76\u1E78\u1E7A\u1E7C\u1E7E\u1E80\u1E82\u1E84\u1E86\u1E88\u1E8A\u1E8C\u1E8E\u1E90\u1E92\u1E94\u1E9E\u1EA0\u1EA2\u1EA4\u1EA6\u1EA8\u1EAA\u1EAC\u1EAE\u1EB0\u1EB2\u1EB4\u1EB6\u1EB8\u1EBA\u1EBC\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1EC8\u1ECA\u1ECC\u1ECE\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EDA\u1EDC\u1EDE\u1EE0\u1EE2\u1EE4\u1EE6\u1EE8\u1EEA\u1EEC\u1EEE\u1EF0\u1EF2\u1EF4\u1EF6\u1EF8\u1EFA\u1EFC\u1EFE\u1F08-\u1F0F\u1F18-\u1F1D\u1F28-\u1F2F\u1F38-\u1F3F\u1F48-\u1F4D\u1F59\u1F5B\u1F5D\u1F5F\u1F68-\u1F6F\u1FB8-\u1FBB\u1FC8-\u1FCB\u1FD8-\u1FDB\u1FE8-\u1FEC\u1FF8-\u1FFB\u2102\u2107\u210B-\u210D\u2110-\u2112\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u2130-\u2133\u213E\u213F\u2145\u2183\u2C00-\u2C2F\u2C60\u2C62-\u2C64\u2C67\u2C69\u2C6B\u2C6D-\u2C70\u2C72\u2C75\u2C7E-\u2C80\u2C82\u2C84\u2C86\u2C88\u2C8A\u2C8C\u2C8E\u2C90\u2C92\u2C94\u2C96\u2C98\u2C9A\u2C9C\u2C9E\u2CA0\u2CA2\u2CA4\u2CA6\u2CA8\u2CAA\u2CAC\u2CAE\u2CB0\u2CB2\u2CB4\u2CB6\u2CB8\u2CBA\u2CBC\u2CBE\u2CC0\u2CC2\u2CC4\u2CC6\u2CC8\u2CCA\u2CCC\u2CCE\u2CD0\u2CD2\u2CD4\u2CD6\u2CD8\u2CDA\u2CDC\u2CDE\u2CE0\u2CE2\u2CEB\u2CED\u2CF2\uA640\uA642\uA644\uA646\uA648\uA64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AE\uA7B0-\uA7B4\uA7B6\uA7B8\uA7BA\uA7BC\uA7BE\uA7C0\uA7C2\uA7C4-\uA7C7\uA7C9\uA7D0\uA7D6\uA7D8\uA7F5\uFF21-\uFF3A]|\uD801[\uDC00-\uDC27\uDCB0-\uDCD3\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95]|\uD803[\uDC80-\uDCB2]|\uD806[\uDCA0-\uDCBF]|\uD81B[\uDE40-\uDE5F]|\uD835[\uDC00-\uDC19\uDC34-\uDC4D\uDC68-\uDC81\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB5\uDCD0-\uDCE9\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD38\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD6C-\uDD85\uDDA0-\uDDB9\uDDD4-\uDDED\uDE08-\uDE21\uDE3C-\uDE55\uDE70-\uDE89\uDEA8-\uDEC0\uDEE2-\uDEFA\uDF1C-\uDF34\uDF56-\uDF6E\uDF90-\uDFA8\uDFCA]|\uD83A[\uDD00-\uDD21])(?!(?:[A-Z\xC0-\xD6\xD8-\xDE\u0100\u0102\u0104\u0106\u0108\u010A\u010C\u010E\u0110\u0112\u0114\u0116\u0118\u011A\u011C\u011E\u0120\u0122\u0124\u0126\u0128\u012A\u012C\u012E\u0130\u0132\u0134\u0136\u0139\u013B\u013D\u013F\u0141\u0143\u0145\u0147\u014A\u014C\u014E\u0150\u0152\u0154\u0156\u0158\u015A\u015C\u015E\u0160\u0162\u0164\u0166\u0168\u016A\u016C\u016E\u0170\u0172\u0174\u0176\u0178\u0179\u017B\u017D\u0181\u0182\u0184\u0186\u0187\u0189-\u018B\u018E-\u0191\u0193\u0194\u0196-\u0198\u019C\u019D\u019F\u01A0\u01A2\u01A4\u01A6\u01A7\u01A9\u01AC\u01AE\u01AF\u01B1-\u01B3\u01B5\u01B7\u01B8\u01BC\u01C4\u01C7\u01CA\u01CD\u01CF\u01D1\u01D3\u01D5\u01D7\u01D9\u01DB\u01DE\u01E0\u01E2\u01E4\u01E6\u01E8\u01EA\u01EC\u01EE\u01F1\u01F4\u01F6-\u01F8\u01FA\u01FC\u01FE\u0200\u0202\u0204\u0206\u0208\u020A\u020C\u020E\u0210\u0212\u0214\u0216\u0218\u021A\u021C\u021E\u0220\u0222\u0224\u0226\u0228\u022A\u022C\u022E\u0230\u0232\u023A\u023B\u023D\u023E\u0241\u0243-\u0246\u0248\u024A\u024C\u024E\u0370\u0372\u0376\u037F\u0386\u0388-\u038A\u038C\u038E\u038F\u0391-\u03A1\u03A3-\u03AB\u03CF\u03D2-\u03D4\u03D8\u03DA\u03DC\u03DE\u03E0\u03E2\u03E4\u03E6\u03E8\u03EA\u03EC\u03EE\u03F4\u03F7\u03F9\u03FA\u03FD-\u042F\u0460\u0462\u0464\u0466\u0468\u046A\u046C\u046E\u0470\u0472\u0474\u0476\u0478\u047A\u047C\u047E\u0480\u048A\u048C\u048E\u0490\u0492\u0494\u0496\u0498\u049A\u049C\u049E\u04A0\u04A2\u04A4\u04A6\u04A8\u04AA\u04AC\u04AE\u04B0\u04B2\u04B4\u04B6\u04B8\u04BA\u04BC\u04BE\u04C0\u04C1\u04C3\u04C5\u04C7\u04C9\u04CB\u04CD\u04D0\u04D2\u04D4\u04D6\u04D8\u04DA\u04DC\u04DE\u04E0\u04E2\u04E4\u04E6\u04E8\u04EA\u04EC\u04EE\u04F0\u04F2\u04F4\u04F6\u04F8\u04FA\u04FC\u04FE\u0500\u0502\u0504\u0506\u0508\u050A\u050C\u050E\u0510\u0512\u0514\u0516\u0518\u051A\u051C\u051E\u0520\u0522\u0524\u0526\u0528\u052A\u052C\u052E\u0531-\u0556\u10A0-\u10C5\u10C7\u10CD\u13A0-\u13F5\u1C90-\u1CBA\u1CBD-\u1CBF\u1E00\u1E02\u1E04\u1E06\u1E08\u1E0A\u1E0C\u1E0E\u1E10\u1E12\u1E14\u1E16\u1E18\u1E1A\u1E1C\u1E1E\u1E20\u1E22\u1E24\u1E26\u1E28\u1E2A\u1E2C\u1E2E\u1E30\u1E32\u1E34\u1E36\u1E38\u1E3A\u1E3C\u1E3E\u1E40\u1E42\u1E44\u1E46\u1E48\u1E4A\u1E4C\u1E4E\u1E50\u1E52\u1E54\u1E56\u1E58\u1E5A\u1E5C\u1E5E\u1E60\u1E62\u1E64\u1E66\u1E68\u1E6A\u1E6C\u1E6E\u1E70\u1E72\u1E74\u1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A64A\uA64C\uA64E\uA650\uA652\uA654\uA656\uA658\uA65A\uA65C\uA65E\uA660\uA662\uA664\uA666\uA668\uA66A\uA66C\uA680\uA682\uA684\uA686\uA688\uA68A\uA68C\uA68E\uA690\uA692\uA694\uA696\uA698\uA69A\uA722\uA724\uA726\uA728\uA72A\uA72C\uA72E\uA732\uA734\uA736\uA738\uA73A\uA73C\uA73E\uA740\uA742\uA744\uA746\uA748\uA74A\uA74C\uA74E\uA750\uA752\uA754\uA756\uA758\uA75A\uA75C\uA75E\uA760\uA762\uA764\uA766\uA768\uA76A\uA76C\uA76E\uA779\uA77B\uA77D\uA77E\uA780\uA782\uA784\uA786\uA78B\uA78D\uA790\uA792\uA796\uA798\uA79A\uA79C\uA79E\uA7A0\uA7A2\uA7A4\uA7A6\uA7A8\uA7AA-\uA7AE\uA7B0-\uA7B4\uA7B6\uA7B8\uA7BA\uA7BC\uA7BE\uA7C0\uA7C2\uA7C4-\uA7C7\uA7C9\uA7D0\uA7D6\uA7D8\uA7F5\uFF21-\uFF3A]|\uD801[\uDC00-\uDC27\uDCB0-\uDCD3\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95]|\uD803[\uDC80-\uDCB2]|\uD806[\uDCA0-\uDCBF]|\uD81B[\uDE40-\uDE5F]|\uD835[\uDC00-\uDC19\uDC34-\uDC4D\uDC68-\uDC81\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB5\uDCD0-\uDCE9\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD38\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD6C-\uDD85\uDDA0-\uDDB9\uDDD4-\uDDED\uDE08-\uDE21\uDE3C-\uDE55\uDE70-\uDE89\uDEA8-\uDEC0\uDEE2-\uDEFA\uDF1C-\uDF34\uDF56-\uDF6E\uDF90-\uDFA8\uDFCA]|\uD83A[\uDD00-\uDD21]))/g;
|
27433
|
+
var IDENTIFIER = /((?:[0-9A-Z_a-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0345\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05B0-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05EF-\u05F2\u0610-\u061A\u0620-\u0657\u0659-\u0669\u066E-\u06D3\u06D5-\u06DC\u06E1-\u06E8\u06ED-\u06FC\u06FF\u0710-\u073F\u074D-\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0817\u081A-\u082C\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u08D4-\u08DF\u08E3-\u08E9\u08F0-\u093B\u093D-\u094C\u094E-\u0950\u0955-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD-\u09C4\u09C7\u09C8\u09CB\u09CC\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3E-\u0A42\u0A47\u0A48\u0A4B\u0A4C\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD-\u0AC5\u0AC7-\u0AC9\u0ACB\u0ACC\u0AD0\u0AE0-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3\u0EA5\u0EA7-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F71-\u0F81\u0F88-\u0F97\u0F99-\u0FBC\u1000-\u1036\u1038\u103B-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1713\u171F-\u1733\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17B3\u17B6-\u17C8\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u1938\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A61-\u1A74\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1ABF\u1AC0\u1ACC-\u1ACE\u1B00-\u1B33\u1B35-\u1B43\u1B45-\u1B4C\u1B50-\u1B59\u1B80-\u1BA9\u1BAC-\u1BE5\u1BE7-\u1BF1\u1C00-\u1C36\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1DE7-\u1DF4\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2189\u2150-\u2182\u2460-\u249B\u24B6-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA674-\uA67B\uA67F-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA805\uA807-\uA827\uA830-\uA835\uA840-\uA873\uA880-\uA8C3\uA8C5\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD-\uA92A\uA930-\uA952\uA960-\uA97C\uA980-\uA9B2\uA9B4-\uA9BF\uA9CF-\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-\uDC41\uDC43-\uDC45\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCC1\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDBE\uDDD8-\uDDDD\uDE00-\uDE3E\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB5\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF1D-\uDF2A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC38\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD35\uDD37\uDD38\uDD3B\uDD3C\uDD3F-\uDD42\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD7\uDDDA-\uDDDF\uDDE1\uDDE3\uDDE4\uDE00-\uDE32\uDE35-\uDE3E\uDE50-\uDE97\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC3E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD41\uDD43\uDD46\uDD47\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD8E\uDD90\uDD91\uDD93-\uDD96\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF6\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uD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CCF\uDD00-\uDD43\uDD47\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C\uDD30-\uDD49\uDD50-\uDD69\uDD70-\uDD89]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])|$)/;
|
27434
|
+
var SEPARATORS = /[_.\- ]+/;
|
27435
|
+
var LEADING_SEPARATORS = new RegExp('^' + SEPARATORS.source);
|
27436
|
+
var SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, 'gu');
|
27437
|
+
var NUMBERS_AND_IDENTIFIER = new RegExp('\\d+' + IDENTIFIER.source, 'gu');
|
27438
|
+
|
27413
27439
|
var preserveCamelCase = function preserveCamelCase(string, locale) {
|
27414
27440
|
var isLastCharLower = false;
|
27415
27441
|
var isLastCharUpper = false;
|
@@ -27418,13 +27444,13 @@
|
|
27418
27444
|
for (var i = 0; i < string.length; i++) {
|
27419
27445
|
var character = string[i];
|
27420
27446
|
|
27421
|
-
if (isLastCharLower &&
|
27447
|
+
if (isLastCharLower && UPPERCASE.test(character)) {
|
27422
27448
|
string = string.slice(0, i) + '-' + string.slice(i);
|
27423
27449
|
isLastCharLower = false;
|
27424
27450
|
isLastLastCharUpper = isLastCharUpper;
|
27425
27451
|
isLastCharUpper = true;
|
27426
27452
|
i++;
|
27427
|
-
} else if (isLastCharUpper && isLastLastCharUpper &&
|
27453
|
+
} else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character)) {
|
27428
27454
|
string = string.slice(0, i - 1) + '-' + string.slice(i - 1);
|
27429
27455
|
isLastLastCharUpper = isLastCharUpper;
|
27430
27456
|
isLastCharUpper = false;
|
@@ -27440,15 +27466,18 @@
|
|
27440
27466
|
};
|
27441
27467
|
|
27442
27468
|
var preserveConsecutiveUppercase = function preserveConsecutiveUppercase(input) {
|
27443
|
-
|
27469
|
+
LEADING_CAPITAL.lastIndex = 0;
|
27470
|
+
return input.replace(LEADING_CAPITAL, function (m1) {
|
27444
27471
|
return m1.toLowerCase();
|
27445
27472
|
});
|
27446
27473
|
};
|
27447
27474
|
|
27448
27475
|
var postProcess = function postProcess(input, options) {
|
27449
|
-
|
27450
|
-
|
27451
|
-
|
27476
|
+
SEPARATORS_AND_IDENTIFIER.lastIndex = 0;
|
27477
|
+
NUMBERS_AND_IDENTIFIER.lastIndex = 0;
|
27478
|
+
return input.replace(SEPARATORS_AND_IDENTIFIER, function (_, identifier) {
|
27479
|
+
return identifier.toLocaleUpperCase(options.locale);
|
27480
|
+
}).replace(NUMBERS_AND_IDENTIFIER, function (m) {
|
27452
27481
|
return m.toLocaleUpperCase(options.locale);
|
27453
27482
|
});
|
27454
27483
|
};
|
@@ -27487,7 +27516,7 @@
|
|
27487
27516
|
input = preserveCamelCase(input, options.locale);
|
27488
27517
|
}
|
27489
27518
|
|
27490
|
-
input = input.replace(
|
27519
|
+
input = input.replace(LEADING_SEPARATORS, '');
|
27491
27520
|
|
27492
27521
|
if (options.preserveConsecutiveUppercase) {
|
27493
27522
|
input = preserveConsecutiveUppercase(input);
|
@@ -29076,6 +29105,7 @@
|
|
29076
29105
|
this.pageLoadConversions = config.pageLoadConversions;
|
29077
29106
|
this.clickEventConversions = config.clickEventConversions;
|
29078
29107
|
this.defaultPageConversion = config.defaultPageConversion;
|
29108
|
+
this.dynamicRemarketing = config.dynamicRemarketing;
|
29079
29109
|
this.sendPageView = config.sendPageView || true;
|
29080
29110
|
this.conversionLinker = config.conversionLinker || true;
|
29081
29111
|
this.disableAdPersonalization = config.disableAdPersonalization || false;
|
@@ -29120,44 +29150,85 @@
|
|
29120
29150
|
}
|
29121
29151
|
}, {
|
29122
29152
|
key: "identify",
|
29123
|
-
value: function identify(
|
29153
|
+
value: function identify() {
|
29124
29154
|
logger.debug("[GoogleAds] identify:: method not supported");
|
29125
29155
|
} // https://developers.google.com/gtagjs/reference/event
|
29126
29156
|
|
29127
29157
|
}, {
|
29128
29158
|
key: "track",
|
29129
29159
|
value: function track(rudderElement) {
|
29130
|
-
logger.debug("in GoogleAdsAnalyticsManager track");
|
29131
|
-
var conversionData = this.getConversionData(this.clickEventConversions, rudderElement.message.event);
|
29160
|
+
logger.debug("in GoogleAdsAnalyticsManager track"); // Dynamic remarketing disabled
|
29132
29161
|
|
29133
|
-
if (
|
29134
|
-
var
|
29135
|
-
|
29136
|
-
|
29137
|
-
|
29162
|
+
if (!this.dynamicRemarketing) {
|
29163
|
+
var conversionData = this.getConversionData(this.clickEventConversions, rudderElement.message.event);
|
29164
|
+
|
29165
|
+
if (conversionData.conversionLabel) {
|
29166
|
+
var conversionLabel = conversionData.conversionLabel;
|
29167
|
+
var eventName = conversionData.eventName;
|
29168
|
+
var sendToValue = "".concat(this.conversionId, "/").concat(conversionLabel);
|
29169
|
+
var properties = {};
|
29170
|
+
|
29171
|
+
if (rudderElement.message.properties) {
|
29172
|
+
properties.value = rudderElement.message.properties.revenue;
|
29173
|
+
properties.currency = rudderElement.message.properties.currency;
|
29174
|
+
properties.transaction_id = rudderElement.message.properties.order_id;
|
29175
|
+
}
|
29176
|
+
|
29177
|
+
properties.send_to = sendToValue;
|
29178
|
+
properties = removeUndefinedAndNullValues(properties);
|
29179
|
+
window.gtag("event", eventName, properties);
|
29180
|
+
}
|
29181
|
+
} else {
|
29182
|
+
var event = rudderElement.message.event;
|
29183
|
+
|
29184
|
+
if (!event) {
|
29185
|
+
logger.error("Event name not present");
|
29186
|
+
return;
|
29187
|
+
}
|
29188
|
+
|
29189
|
+
var payload = {};
|
29190
|
+
var _sendToValue = this.conversionId;
|
29138
29191
|
|
29139
29192
|
if (rudderElement.message.properties) {
|
29140
|
-
|
29141
|
-
properties.currency = rudderElement.message.properties.currency;
|
29142
|
-
properties.transaction_id = rudderElement.message.properties.order_id;
|
29193
|
+
payload = rudderElement.message.properties;
|
29143
29194
|
}
|
29144
29195
|
|
29145
|
-
|
29146
|
-
window.gtag("event",
|
29196
|
+
payload.send_to = _sendToValue;
|
29197
|
+
window.gtag("event", event, payload);
|
29147
29198
|
}
|
29148
29199
|
}
|
29149
29200
|
}, {
|
29150
29201
|
key: "page",
|
29151
29202
|
value: function page(rudderElement) {
|
29152
|
-
logger.debug("in GoogleAdsAnalyticsManager page");
|
29153
|
-
|
29154
|
-
|
29155
|
-
|
29156
|
-
|
29157
|
-
|
29158
|
-
|
29159
|
-
|
29160
|
-
|
29203
|
+
logger.debug("in GoogleAdsAnalyticsManager page"); // Dynamic re-marketing is disabled
|
29204
|
+
|
29205
|
+
if (!this.dynamicRemarketing) {
|
29206
|
+
var conversionData = this.getConversionData(this.pageLoadConversions, rudderElement.message.name);
|
29207
|
+
|
29208
|
+
if (conversionData.conversionLabel) {
|
29209
|
+
var conversionLabel = conversionData.conversionLabel;
|
29210
|
+
var eventName = conversionData.eventName;
|
29211
|
+
window.gtag("event", eventName, {
|
29212
|
+
send_to: "".concat(this.conversionId, "/").concat(conversionLabel)
|
29213
|
+
});
|
29214
|
+
}
|
29215
|
+
} else {
|
29216
|
+
var event = rudderElement.message.name;
|
29217
|
+
|
29218
|
+
if (!event) {
|
29219
|
+
logger.error("Event name not present");
|
29220
|
+
return;
|
29221
|
+
}
|
29222
|
+
|
29223
|
+
var payload = {};
|
29224
|
+
var sendToValue = this.conversionId;
|
29225
|
+
|
29226
|
+
if (rudderElement.message.properties) {
|
29227
|
+
payload = rudderElement.message.properties;
|
29228
|
+
}
|
29229
|
+
|
29230
|
+
payload.send_to = sendToValue;
|
29231
|
+
window.gtag("event", event, payload);
|
29161
29232
|
}
|
29162
29233
|
}
|
29163
29234
|
}, {
|
@@ -29757,7 +29828,10 @@
|
|
29757
29828
|
var properties = message.properties ? Object.keys(message.properties) : null;
|
29758
29829
|
properties.forEach(function (property) {
|
29759
29830
|
var value = message.properties[property];
|
29760
|
-
|
29831
|
+
|
29832
|
+
if (value && _typeof(value) !== "object" && !Array.isArray(value)) {
|
29833
|
+
rawPayload[property] = value;
|
29834
|
+
}
|
29761
29835
|
});
|
29762
29836
|
|
29763
29837
|
if (message.event) {
|
@@ -30415,6 +30489,102 @@
|
|
30415
30489
|
return Kissmetrics;
|
30416
30490
|
}();
|
30417
30491
|
|
30492
|
+
/* eslint-disable no-param-reassign */
|
30493
|
+
|
30494
|
+
var itemsPayload = function itemsPayload(item) {
|
30495
|
+
var itemObj = {};
|
30496
|
+
itemObj.ProductID = item.product_id;
|
30497
|
+
itemObj.SKU = item.sku;
|
30498
|
+
itemObj.ProductName = item.name;
|
30499
|
+
itemObj.Quantity = item.quantity;
|
30500
|
+
itemObj.ItemPrice = item.price;
|
30501
|
+
itemObj.RowTotal = item.total;
|
30502
|
+
itemObj.ProductURL = item.url;
|
30503
|
+
itemObj.ImageURL = item.image_url;
|
30504
|
+
itemObj.ProductCategories = item.categories;
|
30505
|
+
return itemObj;
|
30506
|
+
};
|
30507
|
+
|
30508
|
+
var ecommEventPayload = function ecommEventPayload(event, message) {
|
30509
|
+
var payload = {};
|
30510
|
+
|
30511
|
+
switch (event) {
|
30512
|
+
case "Viewed Product":
|
30513
|
+
{
|
30514
|
+
payload.ProductName = getValue(message, "properties.name");
|
30515
|
+
payload.ProductID = getValue(message, "properties.product_id");
|
30516
|
+
payload.SKU = getValue(message, "properties.sku");
|
30517
|
+
payload.ImageURL = getValue(message, "properties.image_url");
|
30518
|
+
payload.URL = getValue(message, "properties.url");
|
30519
|
+
payload.Brand = getValue(message, "properties.brand");
|
30520
|
+
payload.Price = getValue(message, "properties.price");
|
30521
|
+
payload.CompareAtPrice = getValue(message, "properties.compare_at_price");
|
30522
|
+
payload.Categories = getValue(message, "properties.categories");
|
30523
|
+
break;
|
30524
|
+
}
|
30525
|
+
|
30526
|
+
case "Added to Cart":
|
30527
|
+
{
|
30528
|
+
payload.$value = getValue(message, "properties.value");
|
30529
|
+
payload.AddedItemProductName = getValue(message, "properties.name");
|
30530
|
+
payload.AddedItemProductID = getValue(message, "properties.product_id");
|
30531
|
+
payload.AddedItemSKU = getValue(message, "properties.sku");
|
30532
|
+
payload.AddedItemImageURL = getValue(message, "properties.image_url");
|
30533
|
+
payload.AddedItemURL = getValue(message, "properties.url");
|
30534
|
+
payload.AddedItemPrice = getValue(message, "properties.price");
|
30535
|
+
payload.AddedItemQuantity = getValue(message, "properties.quantity");
|
30536
|
+
payload.AddedItemCategories = getValue(message, "properties.categories");
|
30537
|
+
payload.ItemNames = getValue(message, "properties.item_names");
|
30538
|
+
payload.CheckoutURL = getValue(message, "properties.checkout_url");
|
30539
|
+
|
30540
|
+
if (message.properties.items && Array.isArray(message.properties.items)) {
|
30541
|
+
var itemArr = [];
|
30542
|
+
message.properties.items.forEach(function (element) {
|
30543
|
+
var item = itemsPayload(element);
|
30544
|
+
item = removeUndefinedAndNullValues(item);
|
30545
|
+
|
30546
|
+
if (isNotEmpty(item)) {
|
30547
|
+
itemArr.push(item);
|
30548
|
+
}
|
30549
|
+
});
|
30550
|
+
payload.Items = itemArr;
|
30551
|
+
}
|
30552
|
+
|
30553
|
+
break;
|
30554
|
+
}
|
30555
|
+
|
30556
|
+
case "Started Checkout":
|
30557
|
+
{
|
30558
|
+
payload.$event_id = getValue(message, "properties.order_id");
|
30559
|
+
payload.$value = getValue(message, "properties.value");
|
30560
|
+
payload.Categories = getValue(message, "properties.categories");
|
30561
|
+
payload.CheckoutURL = getValue(message, "properties.checkout_url");
|
30562
|
+
payload.ItemNames = getValue(message, "item_names");
|
30563
|
+
|
30564
|
+
if (message.properties.items && Array.isArray(message.properties.items)) {
|
30565
|
+
var _itemArr = [];
|
30566
|
+
message.properties.items.forEach(function (element) {
|
30567
|
+
var item = itemsPayload(element);
|
30568
|
+
item = removeUndefinedAndNullValues(item);
|
30569
|
+
|
30570
|
+
if (isNotEmpty(item)) {
|
30571
|
+
_itemArr.push(item);
|
30572
|
+
}
|
30573
|
+
});
|
30574
|
+
payload.Items = _itemArr;
|
30575
|
+
}
|
30576
|
+
|
30577
|
+
break;
|
30578
|
+
}
|
30579
|
+
}
|
30580
|
+
|
30581
|
+
if (payload) {
|
30582
|
+
payload = removeUndefinedAndNullValues(payload);
|
30583
|
+
}
|
30584
|
+
|
30585
|
+
return payload;
|
30586
|
+
};
|
30587
|
+
|
30418
30588
|
var Klaviyo = /*#__PURE__*/function () {
|
30419
30589
|
function Klaviyo(config) {
|
30420
30590
|
_classCallCheck(this, Klaviyo);
|
@@ -30426,6 +30596,14 @@
|
|
30426
30596
|
this.name = "KLAVIYO";
|
30427
30597
|
this.keysToExtract = ["context.traits"];
|
30428
30598
|
this.exclusionKeys = ["email", "E-mail", "Email", "firstName", "firstname", "first_name", "lastName", "lastname", "last_name", "phone", "Phone", "title", "organization", "city", "City", "region", "country", "Country", "zip", "image", "timezone", "anonymousId", "userId", "properties"];
|
30599
|
+
this.ecomExclusionKeys = ["name", "product_id", "sku", "image_url", "url", "brand", "price", "compare_at_price", "quantity", "categories", "products", "product_names", "order_id", "value", "checkout_url", "item_names", "items", "checkout_url"];
|
30600
|
+
this.ecomEvents = ["product viewed", "product clicked", "product added", "checkout started"];
|
30601
|
+
this.eventNameMapping = {
|
30602
|
+
"product viewed": "Viewed Product",
|
30603
|
+
"product clicked": "Viewed Product",
|
30604
|
+
"product added": "Added to Cart",
|
30605
|
+
"checkout started": "Started Checkout"
|
30606
|
+
};
|
30429
30607
|
}
|
30430
30608
|
|
30431
30609
|
_createClass(Klaviyo, [{
|
@@ -30504,14 +30682,33 @@
|
|
30504
30682
|
var message = rudderElement.message;
|
30505
30683
|
|
30506
30684
|
if (message.properties) {
|
30507
|
-
|
30685
|
+
// ecomm events
|
30686
|
+
var event = getValue(message, "event");
|
30687
|
+
event = event ? event.trim().toLowerCase() : event;
|
30688
|
+
|
30689
|
+
if (this.ecomEvents.includes(event)) {
|
30690
|
+
var payload = ecommEventPayload(this.eventNameMapping[event], message);
|
30691
|
+
var eventName = this.eventNameMapping[event];
|
30692
|
+
var customProperties = {};
|
30693
|
+
customProperties = extractCustomFields(message, customProperties, ["properties"], this.ecomExclusionKeys);
|
30694
|
+
|
30695
|
+
if (isNotEmpty(customProperties)) {
|
30696
|
+
payload = _objectSpread2(_objectSpread2({}, payload), customProperties);
|
30697
|
+
}
|
30508
30698
|
|
30509
|
-
|
30510
|
-
|
30511
|
-
|
30512
|
-
}
|
30699
|
+
if (isNotEmpty(payload)) {
|
30700
|
+
window._learnq.push(["track", eventName, payload]);
|
30701
|
+
}
|
30702
|
+
} else {
|
30703
|
+
var propsPayload = message.properties;
|
30704
|
+
|
30705
|
+
if (propsPayload.revenue) {
|
30706
|
+
propsPayload.$value = propsPayload.revenue;
|
30707
|
+
delete propsPayload.revenue;
|
30708
|
+
}
|
30513
30709
|
|
30514
|
-
|
30710
|
+
window._learnq.push(["track", message.event, propsPayload]);
|
30711
|
+
}
|
30515
30712
|
} else window._learnq.push(["track", message.event]);
|
30516
30713
|
}
|
30517
30714
|
}, {
|
@@ -33178,7 +33375,7 @@
|
|
33178
33375
|
return payload;
|
33179
33376
|
};
|
33180
33377
|
|
33181
|
-
var ecommEventPayload = function ecommEventPayload(event, message) {
|
33378
|
+
var ecommEventPayload$1 = function ecommEventPayload(event, message) {
|
33182
33379
|
var payload = {
|
33183
33380
|
price: getValue(message, "properties.price"),
|
33184
33381
|
currency: getValue(message, "properties.currency"),
|
@@ -33437,31 +33634,31 @@
|
|
33437
33634
|
|
33438
33635
|
switch (event.toLowerCase().trim()) {
|
33439
33636
|
case "order completed":
|
33440
|
-
sendEvent(this.ecomEvents.PURCHASE, ecommEventPayload(event, message));
|
33637
|
+
sendEvent(this.ecomEvents.PURCHASE, ecommEventPayload$1(event, message));
|
33441
33638
|
break;
|
33442
33639
|
|
33443
33640
|
case "checkout started":
|
33444
|
-
sendEvent(this.ecomEvents.START_CHECKOUT, ecommEventPayload(event, message));
|
33641
|
+
sendEvent(this.ecomEvents.START_CHECKOUT, ecommEventPayload$1(event, message));
|
33445
33642
|
break;
|
33446
33643
|
|
33447
33644
|
case "product added":
|
33448
|
-
sendEvent(this.ecomEvents.ADD_CART, ecommEventPayload(event, message));
|
33645
|
+
sendEvent(this.ecomEvents.ADD_CART, ecommEventPayload$1(event, message));
|
33449
33646
|
break;
|
33450
33647
|
|
33451
33648
|
case "payment info entered":
|
33452
|
-
sendEvent(this.ecomEvents.ADD_BILLING, ecommEventPayload(event, message));
|
33649
|
+
sendEvent(this.ecomEvents.ADD_BILLING, ecommEventPayload$1(event, message));
|
33453
33650
|
break;
|
33454
33651
|
|
33455
33652
|
case "promotion clicked":
|
33456
|
-
sendEvent(this.ecomEvents.AD_CLICK, ecommEventPayload(event, message));
|
33653
|
+
sendEvent(this.ecomEvents.AD_CLICK, ecommEventPayload$1(event, message));
|
33457
33654
|
break;
|
33458
33655
|
|
33459
33656
|
case "promotion viewed":
|
33460
|
-
sendEvent(this.ecomEvents.AD_VIEW, ecommEventPayload(event, message));
|
33657
|
+
sendEvent(this.ecomEvents.AD_VIEW, ecommEventPayload$1(event, message));
|
33461
33658
|
break;
|
33462
33659
|
|
33463
33660
|
case "product added to wishlist":
|
33464
|
-
sendEvent(this.ecomEvents.ADD_TO_WISHLIST, ecommEventPayload(event, message));
|
33661
|
+
sendEvent(this.ecomEvents.ADD_TO_WISHLIST, ecommEventPayload$1(event, message));
|
33465
33662
|
break;
|
33466
33663
|
|
33467
33664
|
default:
|
@@ -33501,6 +33698,10 @@
|
|
33501
33698
|
};
|
33502
33699
|
|
33503
33700
|
this.page = function () {
|
33701
|
+
window._tvq.push([function () {
|
33702
|
+
this.deleteCustomVariable(5, "page");
|
33703
|
+
}]);
|
33704
|
+
|
33504
33705
|
window._tvq.push(["trackPageView"]);
|
33505
33706
|
};
|
33506
33707
|
|
@@ -33596,6 +33797,10 @@
|
|
33596
33797
|
}]);
|
33597
33798
|
|
33598
33799
|
window._tvq.push(["trackPageView"]);
|
33800
|
+
} else {
|
33801
|
+
window._tvq.push([function () {
|
33802
|
+
this.deleteCustomVariable(5, "page");
|
33803
|
+
}]);
|
33599
33804
|
}
|
33600
33805
|
}
|
33601
33806
|
}]);
|
@@ -33763,6 +33968,225 @@
|
|
33763
33968
|
return VWO;
|
33764
33969
|
}();
|
33765
33970
|
|
33971
|
+
var GoogleOptimize = /*#__PURE__*/function () {
|
33972
|
+
function GoogleOptimize(config) {
|
33973
|
+
_classCallCheck(this, GoogleOptimize);
|
33974
|
+
|
33975
|
+
this.name = "GOOGLE_OPTIMIZE";
|
33976
|
+
this.ga = config.ga;
|
33977
|
+
this.trackingId = config.trackingId;
|
33978
|
+
this.containerId = config.containerId;
|
33979
|
+
this.async = config.async;
|
33980
|
+
this.aflicker = config.aflicker;
|
33981
|
+
}
|
33982
|
+
|
33983
|
+
_createClass(GoogleOptimize, [{
|
33984
|
+
key: "init",
|
33985
|
+
value: function init() {
|
33986
|
+
logger.debug("===in init Google Optimize===");
|
33987
|
+
|
33988
|
+
if (!this.containerId) {
|
33989
|
+
return;
|
33990
|
+
} // load optimize script first
|
33991
|
+
|
33992
|
+
|
33993
|
+
ScriptLoader("Google Optimize", "https://www.googleoptimize.com/optimize.js?id=".concat(this.containerId), this.async);
|
33994
|
+
|
33995
|
+
if (this.ga) {
|
33996
|
+
var gtag = function gtag() {
|
33997
|
+
dataLayer.push(arguments);
|
33998
|
+
};
|
33999
|
+
|
34000
|
+
if (!this.trackingId) {
|
34001
|
+
return;
|
34002
|
+
}
|
34003
|
+
|
34004
|
+
ScriptLoader("Google Tag Manager", "https://www.googletagmanager.com/gtag/js?id=".concat(this.trackingId));
|
34005
|
+
window.dataLayer = window.dataLayer || [];
|
34006
|
+
gtag("js", new Date());
|
34007
|
+
gtag("config", "".concat(this.trackingId));
|
34008
|
+
} // anti flicker snippet contains insertBefore since it needs to be executed before any other script
|
34009
|
+
// link -> https://support.google.com/optimize/answer/7100284?hl=en&ref_topic=6197443
|
34010
|
+
|
34011
|
+
|
34012
|
+
if (this.aflicker) {
|
34013
|
+
var flick = document.createElement("style");
|
34014
|
+
flick.innerHTML = ".async-hide { opacity: 0 !important}";
|
34015
|
+
var js = document.createElement("script");
|
34016
|
+
js.innerHTML = "(function(a,s,y,n,c,h,i,d,e){s.className+=' '+y;h.start=1*new Date;h.end=i=function(){s.className=s.className.replace(RegExp(' ?'+y),'')};(a[n]=a[n]||[]).hide=h;setTimeout(function(){i();h.end=null},c);h.timeout=c;})(window,document.documentElement,'async-hide','dataLayer',4000,{'".concat(this.containerId, "':true});");
|
34017
|
+
var e = document.getElementsByTagName("script")[0];
|
34018
|
+
e.parentNode.insertBefore(flick, e); // style tag in anti flicker snippet should be before the a-flicker script as per docs
|
34019
|
+
|
34020
|
+
e.parentNode.insertBefore(js, e);
|
34021
|
+
}
|
34022
|
+
}
|
34023
|
+
}, {
|
34024
|
+
key: "isLoaded",
|
34025
|
+
value: function isLoaded() {
|
34026
|
+
logger.debug("=== in isLoaded Google Optimize===");
|
34027
|
+
return !!window.dataLayer;
|
34028
|
+
}
|
34029
|
+
}, {
|
34030
|
+
key: "isReady",
|
34031
|
+
value: function isReady() {
|
34032
|
+
logger.debug("=== in isReady Google Optimize===");
|
34033
|
+
return !!window.dataLayer;
|
34034
|
+
}
|
34035
|
+
}]);
|
34036
|
+
|
34037
|
+
return GoogleOptimize;
|
34038
|
+
}();
|
34039
|
+
|
34040
|
+
// This function helps to populate the sale object
|
34041
|
+
var updateSaleObject = function updateSaleObject(sale, properties) {
|
34042
|
+
if (properties.total) sale.setTotalCost(properties.total);
|
34043
|
+
if (properties.fixedCost) sale.setFixedCost(properties.fixedCost);
|
34044
|
+
if (properties.order_id) sale.setOrderID(properties.order_id); // Post Affiliate Pro supports five extra data only.
|
34045
|
+
|
34046
|
+
if (properties.data1) sale.setData1(properties.data1);
|
34047
|
+
if (properties.data2) sale.setData2(properties.data2);
|
34048
|
+
if (properties.data3) sale.setData3(properties.data3);
|
34049
|
+
if (properties.data4) sale.setData4(properties.data4);
|
34050
|
+
if (properties.data5) sale.setData5(properties.data5);
|
34051
|
+
if (properties.doNotDeleteCookies && properties.doNotDeleteCookies === true) sale.doNotDeleteCookies();
|
34052
|
+
if (properties.status) sale.setStatus(properties.status);
|
34053
|
+
if (properties.currency) sale.setCurrency(properties.currency);
|
34054
|
+
if (properties.customCommision) sale.setCustomCommission(properties.customCommision);
|
34055
|
+
if (properties.channel) sale.setChannelID(properties.channel);
|
34056
|
+
if (properties.coupon) sale.setCoupon(properties.coupon);
|
34057
|
+
if (properties.campaignId) sale.setCampaignID(properties.campaignId);
|
34058
|
+
if (properties.affiliateId) sale.setAffiliateID(properties.affiliateId);
|
34059
|
+
};
|
34060
|
+
|
34061
|
+
var PostAffiliatePro = /*#__PURE__*/function () {
|
34062
|
+
function PostAffiliatePro(config) {
|
34063
|
+
_classCallCheck(this, PostAffiliatePro);
|
34064
|
+
|
34065
|
+
this.name = "POST_AFFILIATE_PRO";
|
34066
|
+
this.url = config.url;
|
34067
|
+
this.mergeProducts = config.mergeProducts;
|
34068
|
+
this.accountId = config.accountId;
|
34069
|
+
this.affLinkId = config.affLinkId;
|
34070
|
+
this.idName = config.idName;
|
34071
|
+
this.cookieLinkId = config.cookieLinkId;
|
34072
|
+
this.cookieName = config.cookieName;
|
34073
|
+
this.affiliateToCustomField = config.affiliateToCustomField;
|
34074
|
+
this.campaignToCustomField = config.campaignToCustomField;
|
34075
|
+
this.cookieDomain = config.cookieDomain;
|
34076
|
+
this.cookieToCustomField = config.cookieToCustomField;
|
34077
|
+
this.disableTrackingMethod = config.disableTrackingMethod;
|
34078
|
+
this.paramNameUserId = config.paramNameUserId;
|
34079
|
+
this.clickEvents = config.clickEvents;
|
34080
|
+
}
|
34081
|
+
|
34082
|
+
_createClass(PostAffiliatePro, [{
|
34083
|
+
key: "init",
|
34084
|
+
value: function init() {
|
34085
|
+
logger.debug("===in init Post Affiliate Pro===");
|
34086
|
+
|
34087
|
+
if (!this.url) {
|
34088
|
+
logger.debug("URL is missing");
|
34089
|
+
return;
|
34090
|
+
}
|
34091
|
+
|
34092
|
+
ScriptLoader("pap_x2s6df8d", this.url);
|
34093
|
+
}
|
34094
|
+
}, {
|
34095
|
+
key: "isLoaded",
|
34096
|
+
value: function isLoaded() {
|
34097
|
+
logger.debug("===In isLoaded Post Affiliate Pro===");
|
34098
|
+
return !!window.PostAffTracker;
|
34099
|
+
}
|
34100
|
+
}, {
|
34101
|
+
key: "isReady",
|
34102
|
+
value: function isReady() {
|
34103
|
+
logger.debug("===In isReady Post Affiliate Pro===");
|
34104
|
+
|
34105
|
+
if (window.PostAffTracker) {
|
34106
|
+
if (!this.disableTrackingMethod) window.PostAffTracker.disableTrackingMethod("F");
|
34107
|
+
if (this.paramNameUserId) window.PostAffTracker.setParamNameUserId(this.paramNameUserId);
|
34108
|
+
if (this.accountId) window.PostAffTracker.setAccountId(this.accountId);
|
34109
|
+
if (this.cookieDomain) window.PostAffTracker.setCookieDomain(this.cookieDomain);
|
34110
|
+
if (this.cookieToCustomField) window.PostAffTracker.writeCookieToCustomField(this.cookieToCustomField);
|
34111
|
+
if (this.affiliateToCustomField) window.PostAffTracker.writeAffiliateToCustomField(this.affiliateToCustomField);
|
34112
|
+
if (this.campaignToCustomField) window.PostAffTracker.writeCampaignToCustomField(this.campaignToCustomField);
|
34113
|
+
if (this.affLinkId && this.idName) window.PostAffTracker.writeAffiliateToLink(this.affLinkId, this.idName);
|
34114
|
+
if (this.cookieName && this.cookieLinkId) window.PostAffTracker.writeCookieToLink(this.cookieLinkId, this.cookieName);
|
34115
|
+
return true;
|
34116
|
+
}
|
34117
|
+
|
34118
|
+
return false;
|
34119
|
+
}
|
34120
|
+
}, {
|
34121
|
+
key: "identify",
|
34122
|
+
value: function identify(rudderElement) {
|
34123
|
+
logger.debug("===In Post Affiliate Pro identify===");
|
34124
|
+
var message = rudderElement.message;
|
34125
|
+
var visitorId = getValue(message, "userId");
|
34126
|
+
window.PostAffTracker.setVisitorId(visitorId);
|
34127
|
+
} // eslint-disable-next-line lines-between-class-members
|
34128
|
+
|
34129
|
+
}, {
|
34130
|
+
key: "track",
|
34131
|
+
value: function track(rudderElement) {
|
34132
|
+
logger.debug("===In Post Affiliate Pro track===");
|
34133
|
+
var clickEventsArr = this.clickEvents ? this.clickEvents.split(",") : null;
|
34134
|
+
var message = rudderElement.message;
|
34135
|
+
var event = message.event;
|
34136
|
+
var properties = message.properties; // We are going to call click event, for the event list given in dashboard only.
|
34137
|
+
|
34138
|
+
if (clickEventsArr && clickEventsArr.includes(event)) {
|
34139
|
+
if (properties) {
|
34140
|
+
if (properties.data1) window.Data1 = properties.data1;
|
34141
|
+
if (properties.data2) window.Data2 = properties.data2;
|
34142
|
+
if (properties.affiliateId) window.AffiliateID = properties.affiliateId;
|
34143
|
+
if (properties.bannerId) window.BannerID = properties.bannerId;
|
34144
|
+
if (properties.campaignId) window.CampaignID = properties.campaignId;
|
34145
|
+
if (properties.channel) window.Channel = properties.channel;
|
34146
|
+
}
|
34147
|
+
|
34148
|
+
window.PostAffTracker.track();
|
34149
|
+
} // We are supporting only one event for sale.
|
34150
|
+
|
34151
|
+
|
34152
|
+
if (event === "Order Completed") {
|
34153
|
+
var productsArr = properties && properties.products ? properties.products : null;
|
34154
|
+
|
34155
|
+
if (productsArr) {
|
34156
|
+
if (this.mergeProducts) {
|
34157
|
+
window.sale = window.PostAffTracker.createSale();
|
34158
|
+
if (window.sale) updateSaleObject(window.sale, properties);
|
34159
|
+
var mergedProductId = [];
|
34160
|
+
|
34161
|
+
for (var i = 0; i < productsArr.length; i += 1) {
|
34162
|
+
if (productsArr[i].product_id) mergedProductId.push(productsArr[i].product_id);
|
34163
|
+
}
|
34164
|
+
|
34165
|
+
var merged = mergedProductId.join();
|
34166
|
+
if (merged) window.sale.setProductID(merged);
|
34167
|
+
} else {
|
34168
|
+
for (var _i = 0; _i < productsArr.length; _i += 1) {
|
34169
|
+
window["sale".concat(_i)] = window.PostAffTracker.createSale();
|
34170
|
+
updateSaleObject(window["sale".concat(_i)], properties);
|
34171
|
+
if (productsArr[_i].product_id) window["sale".concat(_i)].setProductID(productsArr[_i].product_id);
|
34172
|
+
}
|
34173
|
+
}
|
34174
|
+
} else {
|
34175
|
+
// If any product is not available.
|
34176
|
+
window.sale = window.PostAffTracker.createSale();
|
34177
|
+
}
|
34178
|
+
|
34179
|
+
window.PostAffTracker.register();
|
34180
|
+
}
|
34181
|
+
} // reset() {
|
34182
|
+
// window.PostAffTracker.setVisitorId(null);
|
34183
|
+
// }
|
34184
|
+
|
34185
|
+
}]);
|
34186
|
+
|
34187
|
+
return PostAffiliatePro;
|
34188
|
+
}();
|
34189
|
+
|
33766
34190
|
// (config-plan name, native destination.name , exported integration name(this one below))
|
33767
34191
|
|
33768
34192
|
var integrations = {
|
@@ -33807,37 +34231,39 @@
|
|
33807
34231
|
SENTRY: Sentry,
|
33808
34232
|
SNAP_PIXEL: SnapPixel,
|
33809
34233
|
TVSQUARED: TVSquared,
|
33810
|
-
VWO: VWO
|
34234
|
+
VWO: VWO,
|
34235
|
+
GOOGLE_OPTIMIZE: GoogleOptimize,
|
34236
|
+
POST_AFFILIATE_PRO: PostAffiliatePro
|
33811
34237
|
};
|
33812
34238
|
|
33813
34239
|
// Application class
|
33814
|
-
var RudderApp = function RudderApp() {
|
34240
|
+
var RudderApp = /*#__PURE__*/_createClass(function RudderApp() {
|
33815
34241
|
_classCallCheck(this, RudderApp);
|
33816
34242
|
|
33817
34243
|
this.build = "1.0.0";
|
33818
34244
|
this.name = "RudderLabs JavaScript SDK";
|
33819
34245
|
this.namespace = "com.rudderlabs.javascript";
|
33820
|
-
this.version = "1.2.
|
33821
|
-
};
|
34246
|
+
this.version = "1.2.13";
|
34247
|
+
});
|
33822
34248
|
|
33823
34249
|
// Library information class
|
33824
|
-
var RudderLibraryInfo = function RudderLibraryInfo() {
|
34250
|
+
var RudderLibraryInfo = /*#__PURE__*/_createClass(function RudderLibraryInfo() {
|
33825
34251
|
_classCallCheck(this, RudderLibraryInfo);
|
33826
34252
|
|
33827
34253
|
this.name = "RudderLabs JavaScript SDK";
|
33828
|
-
this.version = "1.2.
|
33829
|
-
}; // Operating System information class
|
34254
|
+
this.version = "1.2.13";
|
34255
|
+
}); // Operating System information class
|
33830
34256
|
|
33831
34257
|
|
33832
|
-
var RudderOSInfo = function RudderOSInfo() {
|
34258
|
+
var RudderOSInfo = /*#__PURE__*/_createClass(function RudderOSInfo() {
|
33833
34259
|
_classCallCheck(this, RudderOSInfo);
|
33834
34260
|
|
33835
34261
|
this.name = "";
|
33836
34262
|
this.version = "";
|
33837
|
-
}; // Screen information class
|
34263
|
+
}); // Screen information class
|
33838
34264
|
|
33839
34265
|
|
33840
|
-
var RudderScreenInfo = function RudderScreenInfo() {
|
34266
|
+
var RudderScreenInfo = /*#__PURE__*/_createClass(function RudderScreenInfo() {
|
33841
34267
|
_classCallCheck(this, RudderScreenInfo);
|
33842
34268
|
|
33843
34269
|
this.density = 0;
|
@@ -33845,9 +34271,9 @@
|
|
33845
34271
|
this.height = 0;
|
33846
34272
|
this.innerWidth = 0;
|
33847
34273
|
this.innerHeight = 0;
|
33848
|
-
}; // Device information class
|
34274
|
+
}); // Device information class
|
33849
34275
|
|
33850
|
-
var RudderContext = function RudderContext() {
|
34276
|
+
var RudderContext = /*#__PURE__*/_createClass(function RudderContext() {
|
33851
34277
|
_classCallCheck(this, RudderContext);
|
33852
34278
|
|
33853
34279
|
this.app = new RudderApp();
|
@@ -33885,7 +34311,7 @@
|
|
33885
34311
|
this.screen = screen;
|
33886
34312
|
this.device = null;
|
33887
34313
|
this.network = null;
|
33888
|
-
};
|
34314
|
+
});
|
33889
34315
|
|
33890
34316
|
var RudderMessage = /*#__PURE__*/function () {
|
33891
34317
|
function RudderMessage() {
|
@@ -35515,12 +35941,12 @@
|
|
35515
35941
|
var lib$2 = Queue;
|
35516
35942
|
|
35517
35943
|
// Payload class, contains batch of Elements
|
35518
|
-
var RudderPayload = function RudderPayload() {
|
35944
|
+
var RudderPayload = /*#__PURE__*/_createClass(function RudderPayload() {
|
35519
35945
|
_classCallCheck(this, RudderPayload);
|
35520
35946
|
|
35521
35947
|
this.batch = null;
|
35522
35948
|
this.writeKey = null;
|
35523
|
-
};
|
35949
|
+
});
|
35524
35950
|
|
35525
35951
|
var queueOptions = {
|
35526
35952
|
maxRetryDelay: 360000,
|
@@ -37151,16 +37577,28 @@
|
|
37151
37577
|
throw Error("failed to initialize");
|
37152
37578
|
}
|
37153
37579
|
|
37580
|
+
var storageOptions = {};
|
37581
|
+
|
37154
37582
|
if (options && options.logLevel) {
|
37155
37583
|
logger.setLogLevel(options.logLevel);
|
37156
37584
|
}
|
37157
37585
|
|
37158
37586
|
if (options && options.setCookieDomain) {
|
37159
|
-
|
37587
|
+
storageOptions = _objectSpread2(_objectSpread2({}, storageOptions), {}, {
|
37160
37588
|
domain: options.setCookieDomain
|
37161
37589
|
});
|
37162
37590
|
}
|
37163
37591
|
|
37592
|
+
if (options && options.secureCookie) {
|
37593
|
+
storageOptions = _objectSpread2(_objectSpread2({}, storageOptions), {}, {
|
37594
|
+
secure: options.secureCookie
|
37595
|
+
});
|
37596
|
+
}
|
37597
|
+
|
37598
|
+
if (isNotEmpty(storageOptions)) {
|
37599
|
+
this.storage.options(storageOptions);
|
37600
|
+
}
|
37601
|
+
|
37164
37602
|
if (options && options.integrations) {
|
37165
37603
|
_extends(this.loadOnlyIntegrations, options.integrations);
|
37166
37604
|
|