@adv-re/segment-wrapper 4.36.1 → 4.36.2-beta.1

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.
@@ -0,0 +1,1484 @@
1
+ // src/scripts/adobeVisitorApi.js
2
+ var e = (function() {
3
+ "use strict";
4
+ function e2(t2) {
5
+ "@babel/helpers - typeof";
6
+ return (e2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e3) {
7
+ return typeof e3;
8
+ } : function(e3) {
9
+ return e3 && "function" == typeof Symbol && e3.constructor === Symbol && e3 !== Symbol.prototype ? "symbol" : typeof e3;
10
+ })(t2);
11
+ }
12
+ function t(e3, t2, n2) {
13
+ return t2 in e3 ? Object.defineProperty(e3, t2, { value: n2, enumerable: true, configurable: true, writable: true }) : e3[t2] = n2, e3;
14
+ }
15
+ function n() {
16
+ return { callbacks: {}, add: function(e3, t2) {
17
+ this.callbacks[e3] = this.callbacks[e3] || [];
18
+ var n2 = this.callbacks[e3].push(t2) - 1, i2 = this;
19
+ return function() {
20
+ i2.callbacks[e3].splice(n2, 1);
21
+ };
22
+ }, execute: function(e3, t2) {
23
+ if (this.callbacks[e3]) {
24
+ t2 = void 0 === t2 ? [] : t2, t2 = t2 instanceof Array ? t2 : [t2];
25
+ try {
26
+ for (; this.callbacks[e3].length; ) {
27
+ var n2 = this.callbacks[e3].shift();
28
+ "function" == typeof n2 ? n2.apply(null, t2) : n2 instanceof Array && n2[1].apply(n2[0], t2);
29
+ }
30
+ delete this.callbacks[e3];
31
+ } catch (e4) {
32
+ }
33
+ }
34
+ }, executeAll: function(e3, t2) {
35
+ (t2 || e3 && !j.isObjectEmpty(e3)) && Object.keys(this.callbacks).forEach(function(t3) {
36
+ var n2 = void 0 !== e3[t3] ? e3[t3] : "";
37
+ this.execute(t3, n2);
38
+ }, this);
39
+ }, hasCallbacks: function() {
40
+ return Boolean(Object.keys(this.callbacks).length);
41
+ } };
42
+ }
43
+ function i(e3, t2, n2) {
44
+ var i2 = null == e3 ? void 0 : e3[t2];
45
+ return void 0 === i2 ? n2 : i2;
46
+ }
47
+ function r(e3) {
48
+ for (var t2 = /^\d+$/, n2 = 0, i2 = e3.length; n2 < i2; n2++) if (!t2.test(e3[n2])) return false;
49
+ return true;
50
+ }
51
+ function a(e3, t2) {
52
+ for (; e3.length < t2.length; ) e3.push("0");
53
+ for (; t2.length < e3.length; ) t2.push("0");
54
+ }
55
+ function o(e3, t2) {
56
+ for (var n2 = 0; n2 < e3.length; n2++) {
57
+ var i2 = parseInt(e3[n2], 10), r2 = parseInt(t2[n2], 10);
58
+ if (i2 > r2) return 1;
59
+ if (r2 > i2) return -1;
60
+ }
61
+ return 0;
62
+ }
63
+ function s(e3, t2) {
64
+ if (e3 === t2) return 0;
65
+ var n2 = e3.toString().split("."), i2 = t2.toString().split(".");
66
+ return r(n2.concat(i2)) ? (a(n2, i2), o(n2, i2)) : NaN;
67
+ }
68
+ function l(e3) {
69
+ return e3 === Object(e3) && 0 === Object.keys(e3).length;
70
+ }
71
+ function c(e3) {
72
+ return "function" == typeof e3 || e3 instanceof Array && e3.length;
73
+ }
74
+ function u() {
75
+ var e3 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "", t2 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : function() {
76
+ return true;
77
+ };
78
+ this.log = _e("log", e3, t2), this.warn = _e("warn", e3, t2), this.error = _e("error", e3, t2);
79
+ }
80
+ function d() {
81
+ var e3 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, t2 = e3.isEnabled, n2 = e3.cookieName, i2 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, r2 = i2.cookies;
82
+ return t2 && n2 && r2 ? { remove: function() {
83
+ r2.remove(n2);
84
+ }, get: function() {
85
+ var e4 = r2.get(n2), t3 = {};
86
+ try {
87
+ t3 = JSON.parse(e4);
88
+ } catch (e5) {
89
+ t3 = {};
90
+ }
91
+ return t3;
92
+ }, set: function(e4, t3) {
93
+ t3 = t3 || {}, r2.set(n2, JSON.stringify(e4), { domain: t3.optInCookieDomain || "", cookieLifetime: t3.optInStorageExpiry || 3419e4, expires: true });
94
+ } } : { get: Pe, set: Pe, remove: Pe };
95
+ }
96
+ function f(e3) {
97
+ this.name = this.constructor.name, this.message = e3, "function" == typeof Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error(e3).stack;
98
+ }
99
+ function p() {
100
+ function e3(e4, t3) {
101
+ var n3 = De(e4);
102
+ return n3.length ? n3.every(function(e5) {
103
+ return !!t3[e5];
104
+ }) : Se(t3);
105
+ }
106
+ function t2() {
107
+ M2(b2), O2(ce.COMPLETE), _2(h2.status, h2.permissions), m2.set(h2.permissions, { optInCookieDomain: l2, optInStorageExpiry: c2 }), C2.execute(xe);
108
+ }
109
+ function n2(e4) {
110
+ return function(n3, i3) {
111
+ if (!Ae(n3)) throw new Error("[OptIn] Invalid category(-ies). Please use the `OptIn.Categories` enum.");
112
+ return O2(ce.CHANGED), Object.assign(b2, ye(De(n3), e4)), i3 || t2(), h2;
113
+ };
114
+ }
115
+ var i2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, r2 = i2.doesOptInApply, a2 = i2.previousPermissions, o2 = i2.preOptInApprovals, s2 = i2.isOptInStorageEnabled, l2 = i2.optInCookieDomain, c2 = i2.optInStorageExpiry, u2 = i2.isIabContext, f2 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, p2 = f2.cookies, g2 = Le(a2);
116
+ Re(g2, "Invalid `previousPermissions`!"), Re(o2, "Invalid `preOptInApprovals`!");
117
+ var m2 = d({ isEnabled: !!s2, cookieName: "adobeujs-optin" }, { cookies: p2 }), h2 = this, _2 = le(h2), C2 = ge(), I2 = Me(g2), v2 = Me(o2), D2 = m2.get(), S2 = {}, A2 = (function(e4, t3) {
118
+ return ke(e4) || t3 && ke(t3) ? ce.COMPLETE : ce.PENDING;
119
+ })(I2, D2), y2 = (function(e4, t3, n3) {
120
+ var i3 = ye(pe, !r2);
121
+ return r2 ? Object.assign({}, i3, e4, t3, n3) : i3;
122
+ })(v2, I2, D2), b2 = be(y2), O2 = function(e4) {
123
+ return A2 = e4;
124
+ }, M2 = function(e4) {
125
+ return y2 = e4;
126
+ };
127
+ h2.deny = n2(false), h2.approve = n2(true), h2.denyAll = h2.deny.bind(h2, pe), h2.approveAll = h2.approve.bind(h2, pe), h2.isApproved = function(t3) {
128
+ return e3(t3, h2.permissions);
129
+ }, h2.isPreApproved = function(t3) {
130
+ return e3(t3, v2);
131
+ }, h2.fetchPermissions = function(e4) {
132
+ var t3 = arguments.length > 1 && void 0 !== arguments[1] && arguments[1], n3 = t3 ? h2.on(ce.COMPLETE, e4) : Pe;
133
+ return !r2 || r2 && h2.isComplete || !!o2 ? e4(h2.permissions) : t3 || C2.add(xe, function() {
134
+ return e4(h2.permissions);
135
+ }), n3;
136
+ }, h2.complete = function() {
137
+ h2.status === ce.CHANGED && t2();
138
+ }, h2.registerPlugin = function(e4) {
139
+ if (!e4 || !e4.name || "function" != typeof e4.onRegister) throw new Error(je);
140
+ S2[e4.name] || (S2[e4.name] = e4, e4.onRegister.call(e4, h2));
141
+ }, h2.execute = Ne(S2), Object.defineProperties(h2, { permissions: { get: function() {
142
+ return y2;
143
+ } }, status: { get: function() {
144
+ return A2;
145
+ } }, Categories: { get: function() {
146
+ return ue;
147
+ } }, doesOptInApply: { get: function() {
148
+ return !!r2;
149
+ } }, isPending: { get: function() {
150
+ return h2.status === ce.PENDING;
151
+ } }, isComplete: { get: function() {
152
+ return h2.status === ce.COMPLETE;
153
+ } }, __plugins: { get: function() {
154
+ return Object.keys(S2);
155
+ } }, isIabContext: { get: function() {
156
+ return u2;
157
+ } } });
158
+ }
159
+ function g(e3, t2) {
160
+ function n2() {
161
+ r2 = null, e3.call(e3, new f("The call took longer than you wanted!"));
162
+ }
163
+ function i2() {
164
+ r2 && (clearTimeout(r2), e3.apply(e3, arguments));
165
+ }
166
+ if (void 0 === t2) return e3;
167
+ var r2 = setTimeout(n2, t2);
168
+ return i2;
169
+ }
170
+ function m() {
171
+ if (window.__cmp) return window.__cmp;
172
+ var e3 = window;
173
+ if (e3 === window.top) return void Ie.error("__cmp not found");
174
+ for (var t2; !t2; ) {
175
+ e3 = e3.parent;
176
+ try {
177
+ e3.frames.__cmpLocator && (t2 = e3);
178
+ } catch (e4) {
179
+ }
180
+ if (e3 === window.top) break;
181
+ }
182
+ if (!t2) return void Ie.error("__cmp not found");
183
+ var n2 = {};
184
+ return window.__cmp = function(e4, i2, r2) {
185
+ var a2 = Math.random() + "", o2 = { __cmpCall: { command: e4, parameter: i2, callId: a2 } };
186
+ n2[a2] = r2, t2.postMessage(o2, "*");
187
+ }, window.addEventListener("message", function(e4) {
188
+ var t3 = e4.data;
189
+ if ("string" == typeof t3) try {
190
+ t3 = JSON.parse(e4.data);
191
+ } catch (e5) {
192
+ }
193
+ if (t3.__cmpReturn) {
194
+ var i2 = t3.__cmpReturn;
195
+ n2[i2.callId] && (n2[i2.callId](i2.returnValue, i2.success), delete n2[i2.callId]);
196
+ }
197
+ }, false), window.__cmp;
198
+ }
199
+ function h() {
200
+ var e3 = this;
201
+ e3.name = "iabPlugin", e3.version = "0.0.1";
202
+ var t2 = ge(), n2 = { allConsentData: null }, i2 = function(e4) {
203
+ var t3 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
204
+ return n2[e4] = t3;
205
+ };
206
+ e3.fetchConsentData = function(e4) {
207
+ var t3 = e4.callback, n3 = e4.timeout, i3 = g(t3, n3);
208
+ r2({ callback: i3 });
209
+ }, e3.isApproved = function(e4) {
210
+ var t3 = e4.callback, i3 = e4.category, a3 = e4.timeout;
211
+ if (n2.allConsentData) return t3(null, s2(i3, n2.allConsentData.vendorConsents, n2.allConsentData.purposeConsents));
212
+ var o3 = g(function(e5) {
213
+ var n3 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, r3 = n3.vendorConsents, a4 = n3.purposeConsents;
214
+ t3(e5, s2(i3, r3, a4));
215
+ }, a3);
216
+ r2({ category: i3, callback: o3 });
217
+ }, e3.onRegister = function(t3) {
218
+ var n3 = Object.keys(de), i3 = function(e4) {
219
+ var i4 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, r3 = i4.purposeConsents, a3 = i4.gdprApplies, o3 = i4.vendorConsents;
220
+ !e4 && a3 && o3 && r3 && (n3.forEach(function(e5) {
221
+ var n4 = s2(e5, o3, r3);
222
+ t3[n4 ? "approve" : "deny"](e5, true);
223
+ }), t3.complete());
224
+ };
225
+ e3.fetchConsentData({ callback: i3 });
226
+ };
227
+ var r2 = function(e4) {
228
+ var r3 = e4.callback;
229
+ if (n2.allConsentData) return r3(null, n2.allConsentData);
230
+ t2.add("FETCH_CONSENT_DATA", r3);
231
+ var s3 = {};
232
+ o2(function() {
233
+ var e5 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, r4 = e5.purposeConsents, o3 = e5.gdprApplies, l2 = e5.vendorConsents;
234
+ (arguments.length > 1 ? arguments[1] : void 0) && (s3 = { purposeConsents: r4, gdprApplies: o3, vendorConsents: l2 }, i2("allConsentData", s3)), a2(function() {
235
+ var e6 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
236
+ (arguments.length > 1 ? arguments[1] : void 0) && (s3.consentString = e6.consentData, i2("allConsentData", s3)), t2.execute("FETCH_CONSENT_DATA", [null, n2.allConsentData]);
237
+ });
238
+ });
239
+ }, a2 = function(e4) {
240
+ var t3 = m();
241
+ t3 && t3("getConsentData", null, e4);
242
+ }, o2 = function(e4) {
243
+ var t3 = Fe(de), n3 = m();
244
+ n3 && n3("getVendorConsents", t3, e4);
245
+ }, s2 = function(e4) {
246
+ var t3 = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n3 = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, i3 = !!t3[de[e4]];
247
+ return i3 && (function() {
248
+ return fe[e4].every(function(e5) {
249
+ return n3[e5];
250
+ });
251
+ })();
252
+ };
253
+ }
254
+ var _ = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};
255
+ Object.assign = Object.assign || function(e3) {
256
+ for (var t2, n2, i2 = 1; i2 < arguments.length; ++i2) {
257
+ n2 = arguments[i2];
258
+ for (t2 in n2) Object.prototype.hasOwnProperty.call(n2, t2) && (e3[t2] = n2[t2]);
259
+ }
260
+ return e3;
261
+ };
262
+ var C, I, v = { HANDSHAKE: "HANDSHAKE", GETSTATE: "GETSTATE", PARENTSTATE: "PARENTSTATE" }, D = { MCMID: "MCMID", MCAID: "MCAID", MCAAMB: "MCAAMB", MCAAMLH: "MCAAMLH", MCOPTOUT: "MCOPTOUT", CUSTOMERIDS: "CUSTOMERIDS" }, S = { MCMID: "getMarketingCloudVisitorID", MCAID: "getAnalyticsVisitorID", MCAAMB: "getAudienceManagerBlob", MCAAMLH: "getAudienceManagerLocationHint", MCOPTOUT: "isOptedOut", ALLFIELDS: "getVisitorValues" }, A = { CUSTOMERIDS: "getCustomerIDs" }, y = { MCMID: "getMarketingCloudVisitorID", MCAAMB: "getAudienceManagerBlob", MCAAMLH: "getAudienceManagerLocationHint", MCOPTOUT: "isOptedOut", MCAID: "getAnalyticsVisitorID", CUSTOMERIDS: "getCustomerIDs", ALLFIELDS: "getVisitorValues" }, b = { MC: "MCMID", A: "MCAID", AAM: "MCAAMB" }, O = { MCMID: "MCMID", MCOPTOUT: "MCOPTOUT", MCAID: "MCAID", MCAAMLH: "MCAAMLH", MCAAMB: "MCAAMB" }, M = { UNKNOWN: 0, AUTHENTICATED: 1, LOGGED_OUT: 2 }, k = { GLOBAL: "global" }, E = { MESSAGES: v, STATE_KEYS_MAP: D, ASYNC_API_MAP: S, SYNC_API_MAP: A, ALL_APIS: y, FIELDGROUP_TO_FIELD: b, FIELDS: O, AUTH_STATE: M, OPT_OUT: k }, T = E.STATE_KEYS_MAP, P = function(e3) {
263
+ function t2() {
264
+ }
265
+ function n2(t3, n3) {
266
+ var i2 = this;
267
+ return function() {
268
+ var r2 = e3(0, t3), a2 = {};
269
+ return a2[t3] = r2, i2.setStateAndPublish(a2), n3(r2), r2;
270
+ };
271
+ }
272
+ this.getMarketingCloudVisitorID = function(e4) {
273
+ e4 = e4 || t2;
274
+ var i2 = this.findField(T.MCMID, e4), r2 = n2.call(this, T.MCMID, e4);
275
+ return void 0 !== i2 ? i2 : r2();
276
+ }, this.getVisitorValues = function(e4) {
277
+ this.getMarketingCloudVisitorID(function(t3) {
278
+ e4({ MCMID: t3 });
279
+ });
280
+ };
281
+ }, L = E.MESSAGES, R = E.ASYNC_API_MAP, w = E.SYNC_API_MAP, F = function() {
282
+ function e3() {
283
+ }
284
+ function t2(e4, t3) {
285
+ var n3 = this;
286
+ return function() {
287
+ return n3.callbackRegistry.add(e4, t3), n3.messageParent(L.GETSTATE), "";
288
+ };
289
+ }
290
+ function n2(n3) {
291
+ this[R[n3]] = function(i3) {
292
+ i3 = i3 || e3;
293
+ var r2 = this.findField(n3, i3), a2 = t2.call(this, n3, i3);
294
+ return void 0 !== r2 ? r2 : a2();
295
+ };
296
+ }
297
+ function i2(t3) {
298
+ this[w[t3]] = function() {
299
+ return this.findField(t3, e3) || {};
300
+ };
301
+ }
302
+ Object.keys(R).forEach(n2, this), Object.keys(w).forEach(i2, this);
303
+ }, N = E.ASYNC_API_MAP, x = function() {
304
+ Object.keys(N).forEach(function(e3) {
305
+ this[N[e3]] = function(t2) {
306
+ this.callbackRegistry.add(e3, t2);
307
+ };
308
+ }, this);
309
+ }, j = (function(e3, t2) {
310
+ return t2 = { exports: {} }, e3(t2, t2.exports), t2.exports;
311
+ })(function(t2, n2) {
312
+ n2.isObjectEmpty = function(e3) {
313
+ return e3 === Object(e3) && 0 === Object.keys(e3).length;
314
+ }, n2.isValueEmpty = function(e3) {
315
+ return "" === e3 || n2.isObjectEmpty(e3);
316
+ };
317
+ var i2 = function() {
318
+ var e3 = navigator.appName, t3 = navigator.userAgent;
319
+ return "Microsoft Internet Explorer" === e3 || t3.indexOf("MSIE ") >= 0 || t3.indexOf("Trident/") >= 0 && t3.indexOf("Windows NT 6") >= 0;
320
+ };
321
+ n2.getIeVersion = function() {
322
+ return document.documentMode ? document.documentMode : i2() ? 7 : null;
323
+ }, n2.encodeAndBuildRequest = function(e3, t3) {
324
+ return e3.map(encodeURIComponent).join(t3);
325
+ }, n2.isObject = function(t3) {
326
+ return null !== t3 && "object" === e2(t3) && false === Array.isArray(t3);
327
+ }, n2.defineGlobalNamespace = function() {
328
+ return window.adobe = n2.isObject(window.adobe) ? window.adobe : {}, window.adobe;
329
+ }, n2.pluck = function(e3, t3) {
330
+ return t3.reduce(function(t4, n3) {
331
+ return e3[n3] && (t4[n3] = e3[n3]), t4;
332
+ }, /* @__PURE__ */ Object.create(null));
333
+ }, n2.parseOptOut = function(e3, t3, n3) {
334
+ t3 || (t3 = n3, e3.d_optout && e3.d_optout instanceof Array && (t3 = e3.d_optout.join(",")));
335
+ var i3 = parseInt(e3.d_ottl, 10);
336
+ return isNaN(i3) && (i3 = 7200), { optOut: t3, d_ottl: i3 };
337
+ }, n2.normalizeBoolean = function(e3) {
338
+ var t3 = e3;
339
+ return "true" === e3 ? t3 = true : "false" === e3 && (t3 = false), t3;
340
+ };
341
+ }), V = (j.isObjectEmpty, j.isValueEmpty, j.getIeVersion, j.encodeAndBuildRequest, j.isObject, j.defineGlobalNamespace, j.pluck, j.parseOptOut, j.normalizeBoolean, n), U = E.MESSAGES, H = { 0: "prefix", 1: "orgID", 2: "state" }, B = function(e3, t2) {
342
+ this.parse = function(e4) {
343
+ try {
344
+ var t3 = {};
345
+ return e4.data.split("|").forEach(function(e5, n2) {
346
+ if (void 0 !== e5) {
347
+ t3[H[n2]] = 2 !== n2 ? e5 : JSON.parse(e5);
348
+ }
349
+ }), t3;
350
+ } catch (e5) {
351
+ }
352
+ }, this.isInvalid = function(n2) {
353
+ var i2 = this.parse(n2);
354
+ if (!i2 || Object.keys(i2).length < 2) return true;
355
+ var r2 = e3 !== i2.orgID, a2 = !t2 || n2.origin !== t2, o2 = -1 === Object.keys(U).indexOf(i2.prefix);
356
+ return r2 || a2 || o2;
357
+ }, this.send = function(n2, i2, r2) {
358
+ var a2 = i2 + "|" + e3;
359
+ r2 && r2 === Object(r2) && (a2 += "|" + JSON.stringify(r2));
360
+ try {
361
+ n2.postMessage(a2, t2);
362
+ } catch (e4) {
363
+ }
364
+ };
365
+ }, G = E.MESSAGES, Y = function(e3, t2, n2, i2) {
366
+ function r2(e4) {
367
+ Object.assign(p2, e4);
368
+ }
369
+ function a2(e4) {
370
+ Object.assign(p2.state, e4), Object.assign(p2.state.ALLFIELDS, e4), p2.callbackRegistry.executeAll(p2.state);
371
+ }
372
+ function o2(e4) {
373
+ if (!h2.isInvalid(e4)) {
374
+ m2 = false;
375
+ var t3 = h2.parse(e4);
376
+ p2.setStateAndPublish(t3.state);
377
+ }
378
+ }
379
+ function s2(e4) {
380
+ !m2 && g2 && (m2 = true, h2.send(i2, e4));
381
+ }
382
+ function l2() {
383
+ r2(new P(n2._generateID)), p2.getMarketingCloudVisitorID(), p2.callbackRegistry.executeAll(p2.state, true), _.removeEventListener("message", c2);
384
+ }
385
+ function c2(e4) {
386
+ if (!h2.isInvalid(e4)) {
387
+ var t3 = h2.parse(e4);
388
+ m2 = false, _.clearTimeout(p2._handshakeTimeout), _.removeEventListener("message", c2), r2(new F(p2)), _.addEventListener("message", o2), p2.setStateAndPublish(t3.state), p2.callbackRegistry.hasCallbacks() && s2(G.GETSTATE);
389
+ }
390
+ }
391
+ function u2() {
392
+ g2 && postMessage ? (_.addEventListener("message", c2), s2(G.HANDSHAKE), p2._handshakeTimeout = setTimeout(l2, 250)) : l2();
393
+ }
394
+ function d2() {
395
+ _.s_c_in || (_.s_c_il = [], _.s_c_in = 0), p2._c = "Visitor", p2._il = _.s_c_il, p2._in = _.s_c_in, p2._il[p2._in] = p2, _.s_c_in++;
396
+ }
397
+ function f2() {
398
+ function e4(e5) {
399
+ 0 !== e5.indexOf("_") && "function" == typeof n2[e5] && (p2[e5] = function() {
400
+ });
401
+ }
402
+ Object.keys(n2).forEach(e4), p2.getSupplementalDataID = n2.getSupplementalDataID, p2.isAllowed = function() {
403
+ return true;
404
+ };
405
+ }
406
+ var p2 = this, g2 = t2.whitelistParentDomain;
407
+ p2.state = { ALLFIELDS: {} }, p2.version = n2.version, p2.marketingCloudOrgID = e3, p2.cookieDomain = n2.cookieDomain || "", p2._instanceType = "child";
408
+ var m2 = false, h2 = new B(e3, g2);
409
+ p2.callbackRegistry = V(), p2.init = function() {
410
+ d2(), f2(), r2(new x(p2)), u2();
411
+ }, p2.findField = function(e4, t3) {
412
+ if (void 0 !== p2.state[e4]) return t3(p2.state[e4]), p2.state[e4];
413
+ }, p2.messageParent = s2, p2.setStateAndPublish = a2;
414
+ }, q = E.MESSAGES, X = E.ALL_APIS, W = E.ASYNC_API_MAP, J = E.FIELDGROUP_TO_FIELD, K = function(e3, t2) {
415
+ function n2() {
416
+ var t3 = {};
417
+ return Object.keys(X).forEach(function(n3) {
418
+ var i3 = X[n3], r3 = e3[i3]();
419
+ j.isValueEmpty(r3) || (t3[n3] = r3);
420
+ }), t3;
421
+ }
422
+ function i2() {
423
+ var t3 = [];
424
+ return e3._loading && Object.keys(e3._loading).forEach(function(n3) {
425
+ if (e3._loading[n3]) {
426
+ var i3 = J[n3];
427
+ t3.push(i3);
428
+ }
429
+ }), t3.length ? t3 : null;
430
+ }
431
+ function r2(t3) {
432
+ return function n3(r3) {
433
+ var a3 = i2();
434
+ if (a3) {
435
+ var o3 = W[a3[0]];
436
+ e3[o3](n3, true);
437
+ } else t3();
438
+ };
439
+ }
440
+ function a2(e4, i3) {
441
+ var r3 = n2();
442
+ t2.send(e4, i3, r3);
443
+ }
444
+ function o2(e4) {
445
+ l2(e4), a2(e4, q.HANDSHAKE);
446
+ }
447
+ function s2(e4) {
448
+ r2(function() {
449
+ a2(e4, q.PARENTSTATE);
450
+ })();
451
+ }
452
+ function l2(n3) {
453
+ function i3(i4) {
454
+ r3.call(e3, i4), t2.send(n3, q.PARENTSTATE, { CUSTOMERIDS: e3.getCustomerIDs() });
455
+ }
456
+ var r3 = e3.setCustomerIDs;
457
+ e3.setCustomerIDs = i3;
458
+ }
459
+ return function(e4) {
460
+ if (!t2.isInvalid(e4)) {
461
+ (t2.parse(e4).prefix === q.HANDSHAKE ? o2 : s2)(e4.source);
462
+ }
463
+ };
464
+ }, z = function(e3, t2) {
465
+ function n2(e4) {
466
+ return function(n3) {
467
+ i2[e4] = n3, r2++, r2 === a2 && t2(i2);
468
+ };
469
+ }
470
+ var i2 = {}, r2 = 0, a2 = Object.keys(e3).length;
471
+ Object.keys(e3).forEach(function(t3) {
472
+ var i3 = e3[t3];
473
+ if (i3.fn) {
474
+ var r3 = i3.args || [];
475
+ r3.unshift(n2(t3)), i3.fn.apply(i3.context || null, r3);
476
+ }
477
+ });
478
+ }, Q = { get: function(e3) {
479
+ e3 = encodeURIComponent(e3);
480
+ var t2 = (";" + document.cookie).split(" ").join(";"), n2 = t2.indexOf(";" + e3 + "="), i2 = n2 < 0 ? n2 : t2.indexOf(";", n2 + 1);
481
+ return n2 < 0 ? "" : decodeURIComponent(t2.substring(n2 + 2 + e3.length, i2 < 0 ? t2.length : i2));
482
+ }, set: function(e3, t2, n2) {
483
+ var r2 = i(n2, "cookieLifetime"), a2 = i(n2, "expires"), o2 = i(n2, "domain"), s2 = i(n2, "secure"), l2 = s2 ? "Secure" : "";
484
+ if (a2 && "SESSION" !== r2 && "NONE" !== r2) {
485
+ var c2 = "" !== t2 ? parseInt(r2 || 0, 10) : -60;
486
+ if (c2) a2 = /* @__PURE__ */ new Date(), a2.setTime(a2.getTime() + 1e3 * c2);
487
+ else if (1 === a2) {
488
+ a2 = /* @__PURE__ */ new Date();
489
+ var u2 = a2.getYear();
490
+ a2.setYear(u2 + 2 + (u2 < 1900 ? 1900 : 0));
491
+ }
492
+ } else a2 = 0;
493
+ return e3 && "NONE" !== r2 ? (document.cookie = encodeURIComponent(e3) + "=" + encodeURIComponent(t2) + "; path=/;" + (a2 ? " expires=" + a2.toGMTString() + ";" : "") + (o2 ? " domain=" + o2 + ";" : "") + l2, this.get(e3) === t2) : 0;
494
+ }, remove: function(e3, t2) {
495
+ var n2 = i(t2, "domain");
496
+ n2 = n2 ? " domain=" + n2 + ";" : "", document.cookie = encodeURIComponent(e3) + "=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;" + n2;
497
+ } }, $ = function(e3) {
498
+ var t2;
499
+ !e3 && _.location && (e3 = _.location.hostname), t2 = e3;
500
+ var n2, i2 = t2.split(".");
501
+ for (n2 = i2.length - 2; n2 >= 0; n2--) if (t2 = i2.slice(n2).join("."), Q.set("test", "cookie", { domain: t2 })) return Q.remove("test", { domain: t2 }), t2;
502
+ return "";
503
+ }, Z = { compare: s, isLessThan: function(e3, t2) {
504
+ return s(e3, t2) < 0;
505
+ }, areVersionsDifferent: function(e3, t2) {
506
+ return 0 !== s(e3, t2);
507
+ }, isGreaterThan: function(e3, t2) {
508
+ return s(e3, t2) > 0;
509
+ }, isEqual: function(e3, t2) {
510
+ return 0 === s(e3, t2);
511
+ } }, ee = !!_.postMessage, te = { postMessage: function(e3, t2, n2) {
512
+ var i2 = 1;
513
+ t2 && (ee ? n2.postMessage(e3, t2.replace(/([^:]+:\/\/[^\/]+).*/, "$1")) : t2 && (n2.location = t2.replace(/#.*$/, "") + "#" + +/* @__PURE__ */ new Date() + i2++ + "&" + e3));
514
+ }, receiveMessage: function(e3, t2) {
515
+ var n2;
516
+ try {
517
+ ee && (e3 && (n2 = function(n3) {
518
+ if ("string" == typeof t2 && n3.origin !== t2 || "[object Function]" === Object.prototype.toString.call(t2) && false === t2(n3.origin)) return false;
519
+ e3(n3);
520
+ }), _.addEventListener ? _[e3 ? "addEventListener" : "removeEventListener"]("message", n2) : _[e3 ? "attachEvent" : "detachEvent"]("onmessage", n2));
521
+ } catch (e4) {
522
+ }
523
+ } }, ne = function(e3) {
524
+ var t2, n2, i2 = "0123456789", r2 = "", a2 = "", o2 = 8, s2 = 10, l2 = 10;
525
+ if (1 == e3) {
526
+ for (i2 += "ABCDEF", t2 = 0; 16 > t2; t2++) n2 = Math.floor(Math.random() * o2), r2 += i2.substring(n2, n2 + 1), n2 = Math.floor(Math.random() * o2), a2 += i2.substring(n2, n2 + 1), o2 = 16;
527
+ return r2 + "-" + a2;
528
+ }
529
+ for (t2 = 0; 19 > t2; t2++) n2 = Math.floor(Math.random() * s2), r2 += i2.substring(n2, n2 + 1), 0 === t2 && 9 == n2 ? s2 = 3 : (1 == t2 || 2 == t2) && 10 != s2 && 2 > n2 ? s2 = 10 : 2 < t2 && (s2 = 10), n2 = Math.floor(Math.random() * l2), a2 += i2.substring(n2, n2 + 1), 0 === t2 && 9 == n2 ? l2 = 3 : (1 == t2 || 2 == t2) && 10 != l2 && 2 > n2 ? l2 = 10 : 2 < t2 && (l2 = 10);
530
+ return r2 + a2;
531
+ }, ie = function(e3, t2) {
532
+ return { corsMetadata: (function() {
533
+ var e4 = "none", t3 = true;
534
+ return "undefined" != typeof XMLHttpRequest && XMLHttpRequest === Object(XMLHttpRequest) && ("withCredentials" in new XMLHttpRequest() ? e4 = "XMLHttpRequest" : "undefined" != typeof XDomainRequest && XDomainRequest === Object(XDomainRequest) && (t3 = false), Object.prototype.toString.call(_.HTMLElement).indexOf("Constructor") > 0 && (t3 = false)), { corsType: e4, corsCookiesEnabled: t3 };
535
+ })(), getCORSInstance: function() {
536
+ return "none" === this.corsMetadata.corsType ? null : new _[this.corsMetadata.corsType]();
537
+ }, fireCORS: function(t3, n2, i2) {
538
+ function r2(e4) {
539
+ var n3;
540
+ try {
541
+ if ((n3 = JSON.parse(e4)) !== Object(n3)) return void a2.handleCORSError(t3, null, "Response is not JSON");
542
+ } catch (e5) {
543
+ return void a2.handleCORSError(t3, e5, "Error parsing response as JSON");
544
+ }
545
+ try {
546
+ for (var i3 = t3.callback, r3 = _, o3 = 0; o3 < i3.length; o3++) r3 = r3[i3[o3]];
547
+ r3(n3);
548
+ } catch (e5) {
549
+ a2.handleCORSError(t3, e5, "Error forming callback function");
550
+ }
551
+ }
552
+ var a2 = this;
553
+ n2 && (t3.loadErrorHandler = n2);
554
+ try {
555
+ var o2 = this.getCORSInstance();
556
+ o2.open("get", t3.corsUrl + "&ts=" + (/* @__PURE__ */ new Date()).getTime(), true), "XMLHttpRequest" === this.corsMetadata.corsType && (o2.withCredentials = true, o2.timeout = e3.loadTimeout, o2.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"), o2.onreadystatechange = function() {
557
+ 4 === this.readyState && 200 === this.status && r2(this.responseText);
558
+ }), o2.onerror = function(e4) {
559
+ a2.handleCORSError(t3, e4, "onerror");
560
+ }, o2.ontimeout = function(e4) {
561
+ a2.handleCORSError(t3, e4, "ontimeout");
562
+ }, o2.send(), e3._log.requests.push(t3.corsUrl);
563
+ } catch (e4) {
564
+ this.handleCORSError(t3, e4, "try-catch");
565
+ }
566
+ }, handleCORSError: function(t3, n2, i2) {
567
+ e3.CORSErrors.push({ corsData: t3, error: n2, description: i2 }), t3.loadErrorHandler && ("ontimeout" === i2 ? t3.loadErrorHandler(true) : t3.loadErrorHandler(false));
568
+ } };
569
+ }, re = { POST_MESSAGE_ENABLED: !!_.postMessage, DAYS_BETWEEN_SYNC_ID_CALLS: 1, MILLIS_PER_DAY: 864e5, ADOBE_MC: "adobe_mc", ADOBE_MC_SDID: "adobe_mc_sdid", VALID_VISITOR_ID_REGEX: /^[0-9a-fA-F\-]+$/, ADOBE_MC_TTL_IN_MIN: 5, VERSION_REGEX: /vVersion\|((\d+\.)?(\d+\.)?(\*|\d+))(?=$|\|)/, FIRST_PARTY_SERVER_COOKIE: "s_ecid" }, ae = function(e3, t2) {
570
+ var n2 = _.document;
571
+ return { THROTTLE_START: 3e4, MAX_SYNCS_LENGTH: 649, throttleTimerSet: false, id: null, onPagePixels: [], iframeHost: null, getIframeHost: function(e4) {
572
+ if ("string" == typeof e4) {
573
+ var t3 = e4.split("/");
574
+ return t3[0] + "//" + t3[2];
575
+ }
576
+ }, subdomain: null, url: null, getUrl: function() {
577
+ var t3, i2 = "http://fast.", r2 = "?d_nsid=" + e3.idSyncContainerID + "#" + encodeURIComponent(n2.location.origin);
578
+ return this.subdomain || (this.subdomain = "nosubdomainreturned"), e3.loadSSL && (i2 = e3.idSyncSSLUseAkamai ? "https://fast." : "https://"), t3 = i2 + this.subdomain + ".demdex.net/dest5.html" + r2, this.iframeHost = this.getIframeHost(t3), this.id = "destination_publishing_iframe_" + this.subdomain + "_" + e3.idSyncContainerID, t3;
579
+ }, checkDPIframeSrc: function() {
580
+ var t3 = "?d_nsid=" + e3.idSyncContainerID + "#" + encodeURIComponent(n2.location.href);
581
+ "string" == typeof e3.dpIframeSrc && e3.dpIframeSrc.length && (this.id = "destination_publishing_iframe_" + (e3._subdomain || this.subdomain || (/* @__PURE__ */ new Date()).getTime()) + "_" + e3.idSyncContainerID, this.iframeHost = this.getIframeHost(e3.dpIframeSrc), this.url = e3.dpIframeSrc + t3);
582
+ }, idCallNotProcesssed: null, doAttachIframe: false, startedAttachingIframe: false, iframeHasLoaded: null, iframeIdChanged: null, newIframeCreated: null, originalIframeHasLoadedAlready: null, iframeLoadedCallbacks: [], regionChanged: false, timesRegionChanged: 0, sendingMessages: false, messages: [], messagesPosted: [], messagesReceived: [], messageSendingInterval: re.POST_MESSAGE_ENABLED ? null : 100, onPageDestinationsFired: [], jsonForComparison: [], jsonDuplicates: [], jsonWaiting: [], jsonProcessed: [], canSetThirdPartyCookies: true, receivedThirdPartyCookiesNotification: false, readyToAttachIframePreliminary: function() {
583
+ return !(e3.idSyncDisableSyncs || e3.disableIdSyncs || e3.idSyncDisable3rdPartySyncing || e3.disableThirdPartyCookies || e3.disableThirdPartyCalls);
584
+ }, readyToAttachIframe: function() {
585
+ return this.readyToAttachIframePreliminary() && (this.doAttachIframe || e3._doAttachIframe) && (this.subdomain && "nosubdomainreturned" !== this.subdomain || e3._subdomain) && this.url && !this.startedAttachingIframe;
586
+ }, attachIframe: function() {
587
+ function e4() {
588
+ r2 = n2.createElement("iframe"), r2.sandbox = "allow-scripts allow-same-origin", r2.title = "Adobe ID Syncing iFrame", r2.id = i2.id, r2.name = i2.id + "_name", r2.style.cssText = "display: none; width: 0; height: 0;", r2.src = i2.url, i2.newIframeCreated = true, t3(), n2.body.appendChild(r2);
589
+ }
590
+ function t3(e5) {
591
+ r2.addEventListener("load", function() {
592
+ r2.className = "aamIframeLoaded", i2.iframeHasLoaded = true, i2.fireIframeLoadedCallbacks(e5), i2.requestToProcess();
593
+ });
594
+ }
595
+ this.startedAttachingIframe = true;
596
+ var i2 = this, r2 = n2.getElementById(this.id);
597
+ r2 ? "IFRAME" !== r2.nodeName ? (this.id += "_2", this.iframeIdChanged = true, e4()) : (this.newIframeCreated = false, "aamIframeLoaded" !== r2.className ? (this.originalIframeHasLoadedAlready = false, t3("The destination publishing iframe already exists from a different library, but hadn't loaded yet.")) : (this.originalIframeHasLoadedAlready = true, this.iframeHasLoaded = true, this.iframe = r2, this.fireIframeLoadedCallbacks("The destination publishing iframe already exists from a different library, and had loaded alresady."), this.requestToProcess())) : e4(), this.iframe = r2;
598
+ }, fireIframeLoadedCallbacks: function(e4) {
599
+ this.iframeLoadedCallbacks.forEach(function(t3) {
600
+ "function" == typeof t3 && t3({ message: e4 || "The destination publishing iframe was attached and loaded successfully." });
601
+ }), this.iframeLoadedCallbacks = [];
602
+ }, requestToProcess: function(t3) {
603
+ function n3() {
604
+ r2.jsonForComparison.push(t3), r2.jsonWaiting.push(t3), r2.processSyncOnPage(t3);
605
+ }
606
+ var i2, r2 = this;
607
+ if (t3 === Object(t3) && t3.ibs) if (i2 = JSON.stringify(t3.ibs || []), this.jsonForComparison.length) {
608
+ var a2, o2, s2, l2 = false;
609
+ for (a2 = 0, o2 = this.jsonForComparison.length; a2 < o2; a2++) if (s2 = this.jsonForComparison[a2], i2 === JSON.stringify(s2.ibs || [])) {
610
+ l2 = true;
611
+ break;
612
+ }
613
+ l2 ? this.jsonDuplicates.push(t3) : n3();
614
+ } else n3();
615
+ if ((this.receivedThirdPartyCookiesNotification || !re.POST_MESSAGE_ENABLED || this.iframeHasLoaded) && this.jsonWaiting.length) {
616
+ var c2 = this.jsonWaiting.shift();
617
+ this.process(c2), this.requestToProcess();
618
+ }
619
+ e3.idSyncDisableSyncs || e3.disableIdSyncs || !this.iframeHasLoaded || !this.messages.length || this.sendingMessages || (this.throttleTimerSet || (this.throttleTimerSet = true, setTimeout(function() {
620
+ r2.messageSendingInterval = re.POST_MESSAGE_ENABLED ? null : 150;
621
+ }, this.THROTTLE_START)), this.sendingMessages = true, this.sendMessages());
622
+ }, getRegionAndCheckIfChanged: function(t3, n3) {
623
+ var i2 = e3._getField("MCAAMLH"), r2 = t3.d_region || t3.dcs_region;
624
+ return i2 ? r2 && (e3._setFieldExpire("MCAAMLH", n3), e3._setField("MCAAMLH", r2), parseInt(i2, 10) !== r2 && (this.regionChanged = true, this.timesRegionChanged++, e3._setField("MCSYNCSOP", ""), e3._setField("MCSYNCS", ""), i2 = r2)) : (i2 = r2) && (e3._setFieldExpire("MCAAMLH", n3), e3._setField("MCAAMLH", i2)), i2 || (i2 = ""), i2;
625
+ }, processSyncOnPage: function(e4) {
626
+ var t3, n3, i2, r2;
627
+ if ((t3 = e4.ibs) && t3 instanceof Array && (n3 = t3.length)) for (i2 = 0; i2 < n3; i2++) r2 = t3[i2], r2.syncOnPage && this.checkFirstPartyCookie(r2, "", "syncOnPage");
628
+ }, process: function(e4) {
629
+ var t3, n3, i2, r2, a2, o2 = encodeURIComponent, s2 = false;
630
+ if ((t3 = e4.ibs) && t3 instanceof Array && (n3 = t3.length)) for (s2 = true, i2 = 0; i2 < n3; i2++) r2 = t3[i2], a2 = [o2("ibs"), o2(r2.id || ""), o2(r2.tag || ""), j.encodeAndBuildRequest(r2.url || [], ","), o2(r2.ttl || ""), "", "", r2.fireURLSync ? "true" : "false"], r2.syncOnPage || (this.canSetThirdPartyCookies ? this.addMessage(a2.join("|")) : r2.fireURLSync && this.checkFirstPartyCookie(r2, a2.join("|")));
631
+ s2 && this.jsonProcessed.push(e4);
632
+ }, checkFirstPartyCookie: function(t3, n3, i2) {
633
+ var r2 = "syncOnPage" === i2, a2 = r2 ? "MCSYNCSOP" : "MCSYNCS";
634
+ e3._readVisitor();
635
+ var o2, s2, l2 = e3._getField(a2), c2 = false, u2 = false, d2 = Math.ceil((/* @__PURE__ */ new Date()).getTime() / re.MILLIS_PER_DAY);
636
+ l2 ? (o2 = l2.split("*"), s2 = this.pruneSyncData(o2, t3.id, d2), c2 = s2.dataPresent, u2 = s2.dataValid, c2 && u2 || this.fireSync(r2, t3, n3, o2, a2, d2)) : (o2 = [], this.fireSync(r2, t3, n3, o2, a2, d2));
637
+ }, pruneSyncData: function(e4, t3, n3) {
638
+ var i2, r2, a2, o2 = false, s2 = false;
639
+ for (r2 = 0; r2 < e4.length; r2++) i2 = e4[r2], a2 = parseInt(i2.split("-")[1], 10), i2.match("^" + t3 + "-") ? (o2 = true, n3 < a2 ? s2 = true : (e4.splice(r2, 1), r2--)) : n3 >= a2 && (e4.splice(r2, 1), r2--);
640
+ return { dataPresent: o2, dataValid: s2 };
641
+ }, manageSyncsSize: function(e4) {
642
+ if (e4.join("*").length > this.MAX_SYNCS_LENGTH) for (e4.sort(function(e5, t3) {
643
+ return parseInt(e5.split("-")[1], 10) - parseInt(t3.split("-")[1], 10);
644
+ }); e4.join("*").length > this.MAX_SYNCS_LENGTH; ) e4.shift();
645
+ }, fireSync: function(t3, n3, i2, r2, a2, o2) {
646
+ var s2 = this;
647
+ if (t3) {
648
+ if ("img" === n3.tag) {
649
+ var l2, c2, u2, d2, f2 = n3.url, p2 = e3.loadSSL ? "https:" : "http:";
650
+ for (l2 = 0, c2 = f2.length; l2 < c2; l2++) {
651
+ u2 = f2[l2], d2 = /^\/\//.test(u2);
652
+ var g2 = new Image();
653
+ g2.addEventListener("load", /* @__PURE__ */ (function(t4, n4, i3, r3) {
654
+ return function() {
655
+ s2.onPagePixels[t4] = null, e3._readVisitor();
656
+ var o3, l3 = e3._getField(a2), c3 = [];
657
+ if (l3) {
658
+ o3 = l3.split("*");
659
+ var u3, d3, f3;
660
+ for (u3 = 0, d3 = o3.length; u3 < d3; u3++) f3 = o3[u3], f3.match("^" + n4.id + "-") || c3.push(f3);
661
+ }
662
+ s2.setSyncTrackingData(c3, n4, i3, r3);
663
+ };
664
+ })(this.onPagePixels.length, n3, a2, o2)), g2.src = (d2 ? p2 : "") + u2, this.onPagePixels.push(g2);
665
+ }
666
+ }
667
+ } else this.addMessage(i2), this.setSyncTrackingData(r2, n3, a2, o2);
668
+ }, addMessage: function(t3) {
669
+ var n3 = encodeURIComponent, i2 = n3(e3._enableErrorReporting ? "---destpub-debug---" : "---destpub---");
670
+ this.messages.push((re.POST_MESSAGE_ENABLED ? "" : i2) + t3);
671
+ }, setSyncTrackingData: function(t3, n3, i2, r2) {
672
+ t3.push(n3.id + "-" + (r2 + Math.ceil(n3.ttl / 60 / 24))), this.manageSyncsSize(t3), e3._setField(i2, t3.join("*"));
673
+ }, sendMessages: function() {
674
+ var e4, t3 = this, n3 = "", i2 = encodeURIComponent;
675
+ this.regionChanged && (n3 = i2("---destpub-clear-dextp---"), this.regionChanged = false), this.messages.length ? re.POST_MESSAGE_ENABLED ? (e4 = n3 + i2("---destpub-combined---") + this.messages.join("%01"), this.postMessage(e4), this.messages = [], this.sendingMessages = false) : (e4 = this.messages.shift(), this.postMessage(n3 + e4), setTimeout(function() {
676
+ t3.sendMessages();
677
+ }, this.messageSendingInterval)) : this.sendingMessages = false;
678
+ }, postMessage: function(e4) {
679
+ te.postMessage(e4, this.url, this.iframe.contentWindow), this.messagesPosted.push(e4);
680
+ }, receiveMessage: function(e4) {
681
+ var t3, n3 = /^---destpub-to-parent---/;
682
+ "string" == typeof e4 && n3.test(e4) && (t3 = e4.replace(n3, "").split("|"), "canSetThirdPartyCookies" === t3[0] && (this.canSetThirdPartyCookies = "true" === t3[1], this.receivedThirdPartyCookiesNotification = true, this.requestToProcess()), this.messagesReceived.push(e4));
683
+ }, processIDCallData: function(i2) {
684
+ (null == this.url || i2.subdomain && "nosubdomainreturned" === this.subdomain) && ("string" == typeof e3._subdomain && e3._subdomain.length ? this.subdomain = e3._subdomain : this.subdomain = i2.subdomain || "", this.url = this.getUrl()), i2.ibs instanceof Array && i2.ibs.length && (this.doAttachIframe = true), this.readyToAttachIframe() && (e3.idSyncAttachIframeOnWindowLoad ? (t2.windowLoaded || "complete" === n2.readyState || "loaded" === n2.readyState) && this.attachIframe() : this.attachIframeASAP()), "function" == typeof e3.idSyncIDCallResult ? e3.idSyncIDCallResult(i2) : this.requestToProcess(i2), "function" == typeof e3.idSyncAfterIDCallResult && e3.idSyncAfterIDCallResult(i2);
685
+ }, canMakeSyncIDCall: function(t3, n3) {
686
+ return e3._forceSyncIDCall || !t3 || n3 - t3 > re.DAYS_BETWEEN_SYNC_ID_CALLS;
687
+ }, attachIframeASAP: function() {
688
+ function e4() {
689
+ t3.startedAttachingIframe || (n2.body ? t3.attachIframe() : setTimeout(e4, 30));
690
+ }
691
+ var t3 = this;
692
+ e4();
693
+ } };
694
+ }, oe = { audienceManagerServer: {}, audienceManagerServerSecure: {}, cookieDomain: {}, cookieLifetime: {}, cookieName: {}, doesOptInApply: {}, disableThirdPartyCalls: {}, discardTrackingServerECID: {}, idSyncAfterIDCallResult: {}, idSyncAttachIframeOnWindowLoad: {}, idSyncContainerID: {}, idSyncDisable3rdPartySyncing: {}, disableThirdPartyCookies: {}, idSyncDisableSyncs: {}, disableIdSyncs: {}, idSyncIDCallResult: {}, idSyncSSLUseAkamai: {}, isCoopSafe: {}, isIabContext: {}, isOptInStorageEnabled: {}, loadSSL: {}, loadTimeout: {}, marketingCloudServer: {}, marketingCloudServerSecure: {}, optInCookieDomain: {}, optInStorageExpiry: {}, overwriteCrossDomainMCIDAndAID: {}, preOptInApprovals: {}, previousPermissions: {}, resetBeforeVersion: {}, sdidParamExpiry: {}, serverState: {}, sessionCookieName: {}, secureCookie: {}, takeTimeoutMetrics: {}, trackingServer: {}, trackingServerSecure: {}, whitelistIframeDomains: {}, whitelistParentDomain: {} }, se = { getConfigNames: function() {
695
+ return Object.keys(oe);
696
+ }, getConfigs: function() {
697
+ return oe;
698
+ }, normalizeConfig: function(e3) {
699
+ return "function" != typeof e3 ? e3 : e3();
700
+ } }, le = function(e3) {
701
+ var t2 = {};
702
+ return e3.on = function(e4, n2, i2) {
703
+ if (!n2 || "function" != typeof n2) throw new Error("[ON] Callback should be a function.");
704
+ t2.hasOwnProperty(e4) || (t2[e4] = []);
705
+ var r2 = t2[e4].push({ callback: n2, context: i2 }) - 1;
706
+ return function() {
707
+ t2[e4].splice(r2, 1), t2[e4].length || delete t2[e4];
708
+ };
709
+ }, e3.off = function(e4, n2) {
710
+ t2.hasOwnProperty(e4) && (t2[e4] = t2[e4].filter(function(e5) {
711
+ if (e5.callback !== n2) return e5;
712
+ }));
713
+ }, e3.publish = function(e4) {
714
+ if (t2.hasOwnProperty(e4)) {
715
+ var n2 = [].slice.call(arguments, 1);
716
+ t2[e4].slice(0).forEach(function(e5) {
717
+ e5.callback.apply(e5.context, n2);
718
+ });
719
+ }
720
+ }, e3.publish;
721
+ }, ce = { PENDING: "pending", CHANGED: "changed", COMPLETE: "complete" }, ue = { AAM: "aam", ADCLOUD: "adcloud", ANALYTICS: "aa", CAMPAIGN: "campaign", ECID: "ecid", LIVEFYRE: "livefyre", TARGET: "target", MEDIA_ANALYTICS: "mediaaa" }, de = (C = {}, t(C, ue.AAM, 565), t(C, ue.ECID, 565), C), fe = (I = {}, t(I, ue.AAM, [1, 2, 5]), t(I, ue.ECID, [1, 2, 5]), I), pe = (function(e3) {
722
+ return Object.keys(e3).map(function(t2) {
723
+ return e3[t2];
724
+ });
725
+ })(ue), ge = function() {
726
+ var e3 = {};
727
+ return e3.callbacks = /* @__PURE__ */ Object.create(null), e3.add = function(t2, n2) {
728
+ if (!c(n2)) throw new Error("[callbackRegistryFactory] Make sure callback is a function or an array of functions.");
729
+ e3.callbacks[t2] = e3.callbacks[t2] || [];
730
+ var i2 = e3.callbacks[t2].push(n2) - 1;
731
+ return function() {
732
+ e3.callbacks[t2].splice(i2, 1);
733
+ };
734
+ }, e3.execute = function(t2, n2) {
735
+ if (e3.callbacks[t2]) {
736
+ n2 = void 0 === n2 ? [] : n2, n2 = n2 instanceof Array ? n2 : [n2];
737
+ try {
738
+ for (; e3.callbacks[t2].length; ) {
739
+ var i2 = e3.callbacks[t2].shift();
740
+ "function" == typeof i2 ? i2.apply(null, n2) : i2 instanceof Array && i2[1].apply(i2[0], n2);
741
+ }
742
+ delete e3.callbacks[t2];
743
+ } catch (e4) {
744
+ }
745
+ }
746
+ }, e3.executeAll = function(t2, n2) {
747
+ (n2 || t2 && !l(t2)) && Object.keys(e3.callbacks).forEach(function(n3) {
748
+ var i2 = void 0 !== t2[n3] ? t2[n3] : "";
749
+ e3.execute(n3, i2);
750
+ }, e3);
751
+ }, e3.hasCallbacks = function() {
752
+ return Boolean(Object.keys(e3.callbacks).length);
753
+ }, e3;
754
+ }, me = function() {
755
+ }, he = function(e3) {
756
+ var t2 = window, n2 = t2.console;
757
+ return !!n2 && "function" == typeof n2[e3];
758
+ }, _e = function(e3, t2, n2) {
759
+ return n2() ? function() {
760
+ if (he(e3)) {
761
+ for (var n3 = arguments.length, i2 = new Array(n3), r2 = 0; r2 < n3; r2++) i2[r2] = arguments[r2];
762
+ console[e3].apply(console, [t2].concat(i2));
763
+ }
764
+ } : me;
765
+ }, Ce = u, Ie = new Ce("[ADOBE OPT-IN]"), ve = function(t2, n2) {
766
+ return e2(t2) === n2;
767
+ }, De = function(e3, t2) {
768
+ return e3 instanceof Array ? e3 : ve(e3, "string") ? [e3] : t2 || [];
769
+ }, Se = function(e3) {
770
+ var t2 = Object.keys(e3);
771
+ return !!t2.length && t2.every(function(t3) {
772
+ return true === e3[t3];
773
+ });
774
+ }, Ae = function(e3) {
775
+ return !(!e3 || Oe(e3)) && De(e3).every(function(e4) {
776
+ return pe.indexOf(e4) > -1;
777
+ });
778
+ }, ye = function(e3, t2) {
779
+ return e3.reduce(function(e4, n2) {
780
+ return e4[n2] = t2, e4;
781
+ }, {});
782
+ }, be = function(e3) {
783
+ return JSON.parse(JSON.stringify(e3));
784
+ }, Oe = function(e3) {
785
+ return "[object Array]" === Object.prototype.toString.call(e3) && !e3.length;
786
+ }, Me = function(e3) {
787
+ if (Te(e3)) return e3;
788
+ try {
789
+ return JSON.parse(e3);
790
+ } catch (e4) {
791
+ return {};
792
+ }
793
+ }, ke = function(e3) {
794
+ return void 0 === e3 || (Te(e3) ? Ae(Object.keys(e3)) : Ee(e3));
795
+ }, Ee = function(e3) {
796
+ try {
797
+ var t2 = JSON.parse(e3);
798
+ return !!e3 && ve(e3, "string") && Ae(Object.keys(t2));
799
+ } catch (e4) {
800
+ return false;
801
+ }
802
+ }, Te = function(e3) {
803
+ return null !== e3 && ve(e3, "object") && false === Array.isArray(e3);
804
+ }, Pe = function() {
805
+ }, Le = function(e3) {
806
+ return ve(e3, "function") ? e3() : e3;
807
+ }, Re = function(e3, t2) {
808
+ ke(e3) || Ie.error("".concat(t2));
809
+ }, we = function(e3) {
810
+ return Object.keys(e3).map(function(t2) {
811
+ return e3[t2];
812
+ });
813
+ }, Fe = function(e3) {
814
+ return we(e3).filter(function(e4, t2, n2) {
815
+ return n2.indexOf(e4) === t2;
816
+ });
817
+ }, Ne = function(e3) {
818
+ return function() {
819
+ var t2 = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, n2 = t2.command, i2 = t2.params, r2 = void 0 === i2 ? {} : i2, a2 = t2.callback, o2 = void 0 === a2 ? Pe : a2;
820
+ if (!n2 || -1 === n2.indexOf(".")) throw new Error("[OptIn.execute] Please provide a valid command.");
821
+ try {
822
+ var s2 = n2.split("."), l2 = e3[s2[0]], c2 = s2[1];
823
+ if (!l2 || "function" != typeof l2[c2]) throw new Error("Make sure the plugin and API name exist.");
824
+ var u2 = Object.assign(r2, { callback: o2 });
825
+ l2[c2].call(l2, u2);
826
+ } catch (e4) {
827
+ Ie.error("[execute] Something went wrong: " + e4.message);
828
+ }
829
+ };
830
+ };
831
+ f.prototype = Object.create(Error.prototype), f.prototype.constructor = f;
832
+ var xe = "fetchPermissions", je = "[OptIn#registerPlugin] Plugin is invalid.";
833
+ p.Categories = ue, p.TimeoutError = f;
834
+ var Ve = Object.freeze({ OptIn: p, IabPlugin: h }), Ue = function(e3, t2) {
835
+ e3.publishDestinations = function(n2) {
836
+ var i2 = arguments[1], r2 = arguments[2];
837
+ try {
838
+ r2 = "function" == typeof r2 ? r2 : n2.callback;
839
+ } catch (e4) {
840
+ r2 = function() {
841
+ };
842
+ }
843
+ var a2 = t2;
844
+ if (!a2.readyToAttachIframePreliminary()) return void r2({ error: "The destination publishing iframe is disabled in the Visitor library." });
845
+ if ("string" == typeof n2) {
846
+ if (!n2.length) return void r2({ error: "subdomain is not a populated string." });
847
+ if (!(i2 instanceof Array && i2.length)) return void r2({ error: "messages is not a populated array." });
848
+ var o2 = false;
849
+ if (i2.forEach(function(e4) {
850
+ "string" == typeof e4 && e4.length && (a2.addMessage(e4), o2 = true);
851
+ }), !o2) return void r2({ error: "None of the messages are populated strings." });
852
+ } else {
853
+ if (!j.isObject(n2)) return void r2({ error: "Invalid parameters passed." });
854
+ var s2 = n2;
855
+ if ("string" != typeof (n2 = s2.subdomain) || !n2.length) return void r2({ error: "config.subdomain is not a populated string." });
856
+ var l2 = s2.urlDestinations;
857
+ if (!(l2 instanceof Array && l2.length)) return void r2({ error: "config.urlDestinations is not a populated array." });
858
+ var c2 = [];
859
+ l2.forEach(function(e4) {
860
+ j.isObject(e4) && (e4.hideReferrer ? e4.message && a2.addMessage(e4.message) : c2.push(e4));
861
+ });
862
+ !(function e4() {
863
+ c2.length && setTimeout(function() {
864
+ var t3 = new Image(), n3 = c2.shift();
865
+ t3.src = n3.url, a2.onPageDestinationsFired.push(n3), e4();
866
+ }, 100);
867
+ })();
868
+ }
869
+ a2.iframe ? (r2({ message: "The destination publishing iframe is already attached and loaded." }), a2.requestToProcess()) : !e3.subdomain && e3._getField("MCMID") ? (a2.subdomain = n2, a2.doAttachIframe = true, a2.url = a2.getUrl(), a2.readyToAttachIframe() ? (a2.iframeLoadedCallbacks.push(function(e4) {
870
+ r2({ message: "Attempted to attach and load the destination publishing iframe through this API call. Result: " + (e4.message || "no result") });
871
+ }), a2.attachIframe()) : r2({ error: "Encountered a problem in attempting to attach and load the destination publishing iframe through this API call." })) : a2.iframeLoadedCallbacks.push(function(e4) {
872
+ r2({ message: "Attempted to attach and load the destination publishing iframe through normal Visitor API processing. Result: " + (e4.message || "no result") });
873
+ });
874
+ };
875
+ }, He = function e3(t2) {
876
+ function n2(e4, t3) {
877
+ return e4 >>> t3 | e4 << 32 - t3;
878
+ }
879
+ for (var i2, r2, a2 = Math.pow, o2 = a2(2, 32), s2 = "", l2 = [], c2 = 8 * t2.length, u2 = e3.h = e3.h || [], d2 = e3.k = e3.k || [], f2 = d2.length, p2 = {}, g2 = 2; f2 < 64; g2++) if (!p2[g2]) {
880
+ for (i2 = 0; i2 < 313; i2 += g2) p2[i2] = g2;
881
+ u2[f2] = a2(g2, 0.5) * o2 | 0, d2[f2++] = a2(g2, 1 / 3) * o2 | 0;
882
+ }
883
+ for (t2 += "\x80"; t2.length % 64 - 56; ) t2 += "\0";
884
+ for (i2 = 0; i2 < t2.length; i2++) {
885
+ if ((r2 = t2.charCodeAt(i2)) >> 8) return;
886
+ l2[i2 >> 2] |= r2 << (3 - i2) % 4 * 8;
887
+ }
888
+ for (l2[l2.length] = c2 / o2 | 0, l2[l2.length] = c2, r2 = 0; r2 < l2.length; ) {
889
+ var m2 = l2.slice(r2, r2 += 16), h2 = u2;
890
+ for (u2 = u2.slice(0, 8), i2 = 0; i2 < 64; i2++) {
891
+ var _2 = m2[i2 - 15], C2 = m2[i2 - 2], I2 = u2[0], v2 = u2[4], D2 = u2[7] + (n2(v2, 6) ^ n2(v2, 11) ^ n2(v2, 25)) + (v2 & u2[5] ^ ~v2 & u2[6]) + d2[i2] + (m2[i2] = i2 < 16 ? m2[i2] : m2[i2 - 16] + (n2(_2, 7) ^ n2(_2, 18) ^ _2 >>> 3) + m2[i2 - 7] + (n2(C2, 17) ^ n2(C2, 19) ^ C2 >>> 10) | 0);
892
+ u2 = [D2 + ((n2(I2, 2) ^ n2(I2, 13) ^ n2(I2, 22)) + (I2 & u2[1] ^ I2 & u2[2] ^ u2[1] & u2[2])) | 0].concat(u2), u2[4] = u2[4] + D2 | 0;
893
+ }
894
+ for (i2 = 0; i2 < 8; i2++) u2[i2] = u2[i2] + h2[i2] | 0;
895
+ }
896
+ for (i2 = 0; i2 < 8; i2++) for (r2 = 3; r2 + 1; r2--) {
897
+ var S2 = u2[i2] >> 8 * r2 & 255;
898
+ s2 += (S2 < 16 ? 0 : "") + S2.toString(16);
899
+ }
900
+ return s2;
901
+ }, Be = function(e3, t2) {
902
+ return "SHA-256" !== t2 && "SHA256" !== t2 && "sha256" !== t2 && "sha-256" !== t2 || (e3 = He(e3)), e3;
903
+ }, Ge = function(e3) {
904
+ return String(e3).trim().toLowerCase();
905
+ }, Ye = Ve.OptIn;
906
+ j.defineGlobalNamespace(), window.adobe.OptInCategories = Ye.Categories;
907
+ var qe = function(t2, n2, i2) {
908
+ function r2(e3) {
909
+ var t3 = e3;
910
+ return function(e4) {
911
+ var n3 = e4 || D2.location.href;
912
+ try {
913
+ var i3 = m2._extractParamFromUri(n3, t3);
914
+ if (i3) return N2.parsePipeDelimetedKeyValues(i3);
915
+ } catch (e5) {
916
+ }
917
+ };
918
+ }
919
+ function a2(e3) {
920
+ function t3(e4, t4, n3) {
921
+ e4 && e4.match(re.VALID_VISITOR_ID_REGEX) && (n3 === y2 && (v2 = true), t4(e4));
922
+ }
923
+ t3(e3[y2], m2.setMarketingCloudVisitorID, y2), m2._setFieldExpire(T2, -1), t3(e3[M2], m2.setAnalyticsVisitorID);
924
+ }
925
+ function o2(e3) {
926
+ e3 = e3 || {}, m2._supplementalDataIDCurrent = e3.supplementalDataIDCurrent || "", m2._supplementalDataIDCurrentConsumed = e3.supplementalDataIDCurrentConsumed || {}, m2._supplementalDataIDLast = e3.supplementalDataIDLast || "", m2._supplementalDataIDLastConsumed = e3.supplementalDataIDLastConsumed || {};
927
+ }
928
+ function s2(e3) {
929
+ function t3(e4, t4, n4) {
930
+ return n4 = n4 ? n4 += "|" : n4, n4 += e4 + "=" + encodeURIComponent(t4);
931
+ }
932
+ function n3(e4, n4) {
933
+ var i4 = n4[0], r3 = n4[1];
934
+ return null != r3 && r3 !== P2 && (e4 = t3(i4, r3, e4)), e4;
935
+ }
936
+ var i3 = e3.reduce(n3, "");
937
+ return (function(e4) {
938
+ var t4 = N2.getTimestampInSeconds();
939
+ return e4 = e4 ? e4 += "|" : e4, e4 += "TS=" + t4;
940
+ })(i3);
941
+ }
942
+ function l2(e3) {
943
+ var t3 = e3.minutesToLive, n3 = "";
944
+ return (m2.idSyncDisableSyncs || m2.disableIdSyncs) && (n3 = n3 || "Error: id syncs have been disabled"), "string" == typeof e3.dpid && e3.dpid.length || (n3 = n3 || "Error: config.dpid is empty"), "string" == typeof e3.url && e3.url.length || (n3 = n3 || "Error: config.url is empty"), void 0 === t3 ? t3 = 20160 : (t3 = parseInt(t3, 10), (isNaN(t3) || t3 <= 0) && (n3 = n3 || "Error: config.minutesToLive needs to be a positive number")), { error: n3, ttl: t3 };
945
+ }
946
+ function c2() {
947
+ return !!m2.configs.doesOptInApply && !(h2.optIn.isComplete && u2());
948
+ }
949
+ function u2() {
950
+ return m2.configs.doesOptInApply && m2.configs.isIabContext ? h2.optIn.isApproved(h2.optIn.Categories.ECID) && I2 : h2.optIn.isApproved(h2.optIn.Categories.ECID);
951
+ }
952
+ function d2() {
953
+ [["getMarketingCloudVisitorID"], ["setCustomerIDs", void 0], ["getAnalyticsVisitorID"], ["getAudienceManagerLocationHint"], ["getLocationHint"], ["getAudienceManagerBlob"]].forEach(function(e3) {
954
+ var t3 = e3[0], n3 = 2 === e3.length ? e3[1] : "", i3 = m2[t3];
955
+ m2[t3] = function(e4) {
956
+ return u2() && m2.isAllowed() ? i3.apply(m2, arguments) : ("function" == typeof e4 && m2._callCallback(e4, [n3]), n3);
957
+ };
958
+ });
959
+ }
960
+ function f2(e3, t3) {
961
+ if (I2 = true, e3) throw new Error("[IAB plugin] : " + e3);
962
+ t3.gdprApplies && (C2 = t3.consentString), m2.init(), g2();
963
+ }
964
+ function p2() {
965
+ h2.optIn.isComplete && (h2.optIn.isApproved(h2.optIn.Categories.ECID) ? m2.configs.isIabContext ? h2.optIn.execute({ command: "iabPlugin.fetchConsentData", callback: f2 }) : (m2.init(), g2()) : (d2(), g2()));
966
+ }
967
+ function g2() {
968
+ h2.optIn.off("complete", p2);
969
+ }
970
+ if (!i2 || i2.split("").reverse().join("") !== t2) throw new Error("Please use `Visitor.getInstance` to instantiate Visitor.");
971
+ var m2 = this, h2 = window.adobe, C2 = "", I2 = false, v2 = false;
972
+ m2.version = "4.6.0";
973
+ var D2 = _, S2 = D2.Visitor;
974
+ S2.version = m2.version, S2.AuthState = E.AUTH_STATE, S2.OptOut = E.OPT_OUT, D2.s_c_in || (D2.s_c_il = [], D2.s_c_in = 0), m2._c = "Visitor", m2._il = D2.s_c_il, m2._in = D2.s_c_in, m2._il[m2._in] = m2, D2.s_c_in++, m2._instanceType = "regular", m2._log = { requests: [] }, m2.marketingCloudOrgID = t2, m2.cookieName = "AMCV_" + t2, m2.sessionCookieName = "AMCVS_" + t2, m2.cookieDomain = $(), m2.loadSSL = true, m2.loadTimeout = 3e4, m2.CORSErrors = [], m2.marketingCloudServer = m2.audienceManagerServer = "dpm.demdex.net", m2.sdidParamExpiry = 30;
975
+ var A2 = null, y2 = "MCMID", b2 = "MCIDTS", O2 = "A", M2 = "MCAID", k2 = "AAM", T2 = "MCAAMB", P2 = "NONE", L2 = function(e3) {
976
+ return !Object.prototype[e3];
977
+ }, R2 = ie(m2);
978
+ m2.FIELDS = E.FIELDS, m2.cookieRead = function(e3) {
979
+ return Q.get(e3);
980
+ }, m2.cookieWrite = function(e3, t3, n3) {
981
+ var i3 = m2.cookieLifetime ? ("" + m2.cookieLifetime).toUpperCase() : "", r3 = false;
982
+ return m2.configs && m2.configs.secureCookie && "https:" === location.protocol && (r3 = true), Q.set(e3, "" + t3, { expires: n3, domain: m2.cookieDomain, cookieLifetime: i3, secure: r3 });
983
+ }, m2.resetState = function(e3) {
984
+ e3 ? m2._mergeServerState(e3) : o2();
985
+ }, m2._isAllowedDone = false, m2._isAllowedFlag = false, m2.isAllowed = function() {
986
+ return m2._isAllowedDone || (m2._isAllowedDone = true, (m2.cookieRead(m2.cookieName) || m2.cookieWrite(m2.cookieName, "T", 1)) && (m2._isAllowedFlag = true)), "T" === m2.cookieRead(m2.cookieName) && m2._helpers.removeCookie(m2.cookieName), m2._isAllowedFlag;
987
+ }, m2.setMarketingCloudVisitorID = function(e3) {
988
+ m2._setMarketingCloudFields(e3);
989
+ }, m2._use1stPartyMarketingCloudServer = false, m2.getMarketingCloudVisitorID = function(e3, t3) {
990
+ m2.marketingCloudServer && m2.marketingCloudServer.indexOf(".demdex.net") < 0 && (m2._use1stPartyMarketingCloudServer = true);
991
+ var n3 = m2._getAudienceManagerURLData("_setMarketingCloudFields"), i3 = n3.url;
992
+ return m2._getRemoteField(y2, i3, e3, t3, n3);
993
+ };
994
+ var w2 = function(e3, t3) {
995
+ var n3 = {};
996
+ m2.getMarketingCloudVisitorID(function() {
997
+ t3.forEach(function(e4) {
998
+ n3[e4] = m2._getField(e4, true);
999
+ }), -1 !== t3.indexOf("MCOPTOUT") ? m2.isOptedOut(function(t4) {
1000
+ n3.MCOPTOUT = t4, e3(n3);
1001
+ }, null, true) : e3(n3);
1002
+ }, true);
1003
+ };
1004
+ m2.getVisitorValues = function(e3, t3) {
1005
+ var n3 = { MCMID: { fn: m2.getMarketingCloudVisitorID, args: [true], context: m2 }, MCOPTOUT: { fn: m2.isOptedOut, args: [void 0, true], context: m2 }, MCAID: { fn: m2.getAnalyticsVisitorID, args: [true], context: m2 }, MCAAMLH: { fn: m2.getAudienceManagerLocationHint, args: [true], context: m2 }, MCAAMB: { fn: m2.getAudienceManagerBlob, args: [true], context: m2 } }, i3 = t3 && t3.length ? j.pluck(n3, t3) : n3;
1006
+ t3 && -1 === t3.indexOf("MCAID") ? w2(e3, t3) : z(i3, e3);
1007
+ }, m2._currentCustomerIDs = {}, m2._customerIDsHashChanged = false, m2._newCustomerIDsHash = "", m2.setCustomerIDs = function(t3, n3) {
1008
+ function i3() {
1009
+ m2._customerIDsHashChanged = false;
1010
+ }
1011
+ if (!m2.isOptedOut() && t3) {
1012
+ if (!j.isObject(t3) || j.isObjectEmpty(t3)) return false;
1013
+ m2._readVisitor();
1014
+ var r3, a3, o3;
1015
+ for (r3 in t3) if (L2(r3) && (a3 = t3[r3], n3 = a3.hasOwnProperty("hashType") ? a3.hashType : n3, a3)) if ("object" === e2(a3)) {
1016
+ var s3 = {};
1017
+ if (a3.id) {
1018
+ if (n3) {
1019
+ if (!(o3 = Be(Ge(a3.id), n3))) return;
1020
+ a3.id = o3, s3.hashType = n3;
1021
+ }
1022
+ s3.id = a3.id;
1023
+ }
1024
+ void 0 != a3.authState && (s3.authState = a3.authState), m2._currentCustomerIDs[r3] = s3;
1025
+ } else if (n3) {
1026
+ if (!(o3 = Be(Ge(a3), n3))) return;
1027
+ m2._currentCustomerIDs[r3] = { id: o3, hashType: n3 };
1028
+ } else m2._currentCustomerIDs[r3] = { id: a3 };
1029
+ var l3 = m2.getCustomerIDs(), c3 = m2._getField("MCCIDH"), u3 = "";
1030
+ c3 || (c3 = 0);
1031
+ for (r3 in l3) L2(r3) && (a3 = l3[r3], u3 += (u3 ? "|" : "") + r3 + "|" + (a3.id ? a3.id : "") + (a3.authState ? a3.authState : ""));
1032
+ m2._newCustomerIDsHash = String(m2._hash(u3)), m2._newCustomerIDsHash !== c3 && (m2._customerIDsHashChanged = true, m2._mapCustomerIDs(i3));
1033
+ }
1034
+ }, m2.getCustomerIDs = function() {
1035
+ m2._readVisitor();
1036
+ var e3, t3, n3 = {};
1037
+ for (e3 in m2._currentCustomerIDs) L2(e3) && (t3 = m2._currentCustomerIDs[e3], t3.id && (n3[e3] || (n3[e3] = {}), n3[e3].id = t3.id, void 0 != t3.authState ? n3[e3].authState = t3.authState : n3[e3].authState = S2.AuthState.UNKNOWN, t3.hashType && (n3[e3].hashType = t3.hashType)));
1038
+ return n3;
1039
+ }, m2.setAnalyticsVisitorID = function(e3) {
1040
+ m2._setAnalyticsFields(e3);
1041
+ }, m2.getAnalyticsVisitorID = function(e3, t3, n3) {
1042
+ if (!N2.isTrackingServerPopulated() && !n3) return m2._callCallback(e3, [""]), "";
1043
+ var i3 = "";
1044
+ if (n3 || (i3 = m2.getMarketingCloudVisitorID(function(t4) {
1045
+ m2.getAnalyticsVisitorID(e3, true);
1046
+ })), i3 || n3) {
1047
+ var r3 = n3 ? m2.marketingCloudServer : m2.trackingServer, a3 = "";
1048
+ m2.loadSSL && (n3 ? m2.marketingCloudServerSecure && (r3 = m2.marketingCloudServerSecure) : m2.trackingServerSecure && (r3 = m2.trackingServerSecure));
1049
+ var o3 = {};
1050
+ if (r3) {
1051
+ var s3 = "http" + (m2.loadSSL ? "s" : "") + "://" + r3 + "/id", l3 = "d_visid_ver=" + m2.version + "&mcorgid=" + encodeURIComponent(m2.marketingCloudOrgID) + (i3 ? "&mid=" + encodeURIComponent(i3) : "") + (m2.idSyncDisable3rdPartySyncing || m2.disableThirdPartyCookies ? "&d_coppa=true" : ""), c3 = ["s_c_il", m2._in, "_set" + (n3 ? "MarketingCloud" : "Analytics") + "Fields"];
1052
+ a3 = s3 + "?" + l3 + "&callback=s_c_il%5B" + m2._in + "%5D._set" + (n3 ? "MarketingCloud" : "Analytics") + "Fields", o3.corsUrl = s3 + "?" + l3, o3.callback = c3;
1053
+ }
1054
+ return o3.url = a3, m2._getRemoteField(n3 ? y2 : M2, a3, e3, t3, o3);
1055
+ }
1056
+ return "";
1057
+ }, m2.getAudienceManagerLocationHint = function(e3, t3) {
1058
+ if (m2.getMarketingCloudVisitorID(function(t4) {
1059
+ m2.getAudienceManagerLocationHint(e3, true);
1060
+ })) {
1061
+ var n3 = m2._getField(M2);
1062
+ if (!n3 && N2.isTrackingServerPopulated() && (n3 = m2.getAnalyticsVisitorID(function(t4) {
1063
+ m2.getAudienceManagerLocationHint(e3, true);
1064
+ })), n3 || !N2.isTrackingServerPopulated()) {
1065
+ var i3 = m2._getAudienceManagerURLData(), r3 = i3.url;
1066
+ return m2._getRemoteField("MCAAMLH", r3, e3, t3, i3);
1067
+ }
1068
+ }
1069
+ return "";
1070
+ }, m2.getLocationHint = m2.getAudienceManagerLocationHint, m2.getAudienceManagerBlob = function(e3, t3) {
1071
+ if (m2.getMarketingCloudVisitorID(function(t4) {
1072
+ m2.getAudienceManagerBlob(e3, true);
1073
+ })) {
1074
+ var n3 = m2._getField(M2);
1075
+ if (!n3 && N2.isTrackingServerPopulated() && (n3 = m2.getAnalyticsVisitorID(function(t4) {
1076
+ m2.getAudienceManagerBlob(e3, true);
1077
+ })), n3 || !N2.isTrackingServerPopulated()) {
1078
+ var i3 = m2._getAudienceManagerURLData(), r3 = i3.url;
1079
+ return m2._customerIDsHashChanged && m2._setFieldExpire(T2, -1), m2._getRemoteField(T2, r3, e3, t3, i3);
1080
+ }
1081
+ }
1082
+ return "";
1083
+ }, m2._supplementalDataIDCurrent = "", m2._supplementalDataIDCurrentConsumed = {}, m2._supplementalDataIDLast = "", m2._supplementalDataIDLastConsumed = {}, m2.getSupplementalDataID = function(e3, t3) {
1084
+ m2._supplementalDataIDCurrent || t3 || (m2._supplementalDataIDCurrent = m2._generateID(1));
1085
+ var n3 = m2._supplementalDataIDCurrent;
1086
+ return m2._supplementalDataIDLast && !m2._supplementalDataIDLastConsumed[e3] ? (n3 = m2._supplementalDataIDLast, m2._supplementalDataIDLastConsumed[e3] = true) : n3 && (m2._supplementalDataIDCurrentConsumed[e3] && (m2._supplementalDataIDLast = m2._supplementalDataIDCurrent, m2._supplementalDataIDLastConsumed = m2._supplementalDataIDCurrentConsumed, m2._supplementalDataIDCurrent = n3 = t3 ? "" : m2._generateID(1), m2._supplementalDataIDCurrentConsumed = {}), n3 && (m2._supplementalDataIDCurrentConsumed[e3] = true)), n3;
1087
+ };
1088
+ var F2 = false;
1089
+ m2._liberatedOptOut = null, m2.getOptOut = function(e3, t3) {
1090
+ var n3 = m2._getAudienceManagerURLData("_setMarketingCloudFields"), i3 = n3.url;
1091
+ if (u2()) return m2._getRemoteField("MCOPTOUT", i3, e3, t3, n3);
1092
+ if (m2._registerCallback("liberatedOptOut", e3), null !== m2._liberatedOptOut) return m2._callAllCallbacks("liberatedOptOut", [m2._liberatedOptOut]), F2 = false, m2._liberatedOptOut;
1093
+ if (F2) return null;
1094
+ F2 = true;
1095
+ var r3 = "liberatedGetOptOut";
1096
+ return n3.corsUrl = n3.corsUrl.replace(/dpm\.demdex\.net\/id\?/, "dpm.demdex.net/optOutStatus?"), n3.callback = [r3], _[r3] = function(e4) {
1097
+ if (e4 === Object(e4)) {
1098
+ var t4, n4, i4 = j.parseOptOut(e4, t4, P2);
1099
+ t4 = i4.optOut, n4 = 1e3 * i4.d_ottl, m2._liberatedOptOut = t4, setTimeout(function() {
1100
+ m2._liberatedOptOut = null;
1101
+ }, n4);
1102
+ }
1103
+ m2._callAllCallbacks("liberatedOptOut", [t4]), F2 = false;
1104
+ }, R2.fireCORS(n3), null;
1105
+ }, m2.isOptedOut = function(e3, t3, n3) {
1106
+ t3 || (t3 = S2.OptOut.GLOBAL);
1107
+ var i3 = m2.getOptOut(function(n4) {
1108
+ var i4 = n4 === S2.OptOut.GLOBAL || n4.indexOf(t3) >= 0;
1109
+ m2._callCallback(e3, [i4]);
1110
+ }, n3);
1111
+ return i3 ? i3 === S2.OptOut.GLOBAL || i3.indexOf(t3) >= 0 : null;
1112
+ }, m2._fields = null, m2._fieldsExpired = null, m2._hash = function(e3) {
1113
+ var t3, n3, i3 = 0;
1114
+ if (e3) for (t3 = 0; t3 < e3.length; t3++) n3 = e3.charCodeAt(t3), i3 = (i3 << 5) - i3 + n3, i3 &= i3;
1115
+ return i3;
1116
+ }, m2._generateID = ne, m2._generateLocalMID = function() {
1117
+ var e3 = m2._generateID(0);
1118
+ return V2.isClientSideMarketingCloudVisitorID = true, e3;
1119
+ }, m2._callbackList = null, m2._callCallback = function(e3, t3) {
1120
+ try {
1121
+ "function" == typeof e3 ? e3.apply(D2, t3) : e3[1].apply(e3[0], t3);
1122
+ } catch (e4) {
1123
+ }
1124
+ }, m2._registerCallback = function(e3, t3) {
1125
+ t3 && (null == m2._callbackList && (m2._callbackList = {}), void 0 == m2._callbackList[e3] && (m2._callbackList[e3] = []), m2._callbackList[e3].push(t3));
1126
+ }, m2._callAllCallbacks = function(e3, t3) {
1127
+ if (null != m2._callbackList) {
1128
+ var n3 = m2._callbackList[e3];
1129
+ if (n3) for (; n3.length > 0; ) m2._callCallback(n3.shift(), t3);
1130
+ }
1131
+ }, m2._addQuerystringParam = function(e3, t3, n3, i3) {
1132
+ var r3 = encodeURIComponent(t3) + "=" + encodeURIComponent(n3), a3 = N2.parseHash(e3), o3 = N2.hashlessUrl(e3);
1133
+ if (-1 === o3.indexOf("?")) return o3 + "?" + r3 + a3;
1134
+ var s3 = o3.split("?"), l3 = s3[0] + "?", c3 = s3[1];
1135
+ return l3 + N2.addQueryParamAtLocation(c3, r3, i3) + a3;
1136
+ }, m2._extractParamFromUri = function(e3, t3) {
1137
+ var n3 = new RegExp("[\\?&#]" + t3 + "=([^&#]*)"), i3 = n3.exec(e3);
1138
+ if (i3 && i3.length) return decodeURIComponent(i3[1]);
1139
+ }, m2._parseAdobeMcFromUrl = r2(re.ADOBE_MC), m2._parseAdobeMcSdidFromUrl = r2(re.ADOBE_MC_SDID), m2._attemptToPopulateSdidFromUrl = function(e3) {
1140
+ var n3 = m2._parseAdobeMcSdidFromUrl(e3), i3 = 1e9;
1141
+ n3 && n3.TS && (i3 = N2.getTimestampInSeconds() - n3.TS), n3 && n3.SDID && n3.MCORGID === t2 && i3 < m2.sdidParamExpiry && (m2._supplementalDataIDCurrent = n3.SDID, m2._supplementalDataIDCurrentConsumed.SDID_URL_PARAM = true);
1142
+ }, m2._attemptToPopulateIdsFromUrl = function() {
1143
+ var e3 = m2._parseAdobeMcFromUrl();
1144
+ if (e3 && e3.TS) {
1145
+ var n3 = N2.getTimestampInSeconds(), i3 = n3 - e3.TS;
1146
+ if (Math.floor(i3 / 60) > re.ADOBE_MC_TTL_IN_MIN || e3.MCORGID !== t2) return;
1147
+ a2(e3);
1148
+ }
1149
+ }, m2._mergeServerState = function(e3) {
1150
+ if (e3) try {
1151
+ if (e3 = (function(e4) {
1152
+ return N2.isObject(e4) ? e4 : JSON.parse(e4);
1153
+ })(e3), e3[m2.marketingCloudOrgID]) {
1154
+ var t3 = e3[m2.marketingCloudOrgID];
1155
+ !(function(e4) {
1156
+ N2.isObject(e4) && m2.setCustomerIDs(e4);
1157
+ })(t3.customerIDs), o2(t3.sdid);
1158
+ }
1159
+ } catch (e4) {
1160
+ throw new Error("`serverState` has an invalid format.");
1161
+ }
1162
+ }, m2._timeout = null, m2._loadData = function(e3, t3, n3, i3) {
1163
+ t3 = m2._addQuerystringParam(t3, "d_fieldgroup", e3, 1), i3.url = m2._addQuerystringParam(i3.url, "d_fieldgroup", e3, 1), i3.corsUrl = m2._addQuerystringParam(i3.corsUrl, "d_fieldgroup", e3, 1), V2.fieldGroupObj[e3] = true, i3 === Object(i3) && i3.corsUrl && "XMLHttpRequest" === R2.corsMetadata.corsType && R2.fireCORS(i3, n3, e3);
1164
+ }, m2._clearTimeout = function(e3) {
1165
+ null != m2._timeout && m2._timeout[e3] && (clearTimeout(m2._timeout[e3]), m2._timeout[e3] = 0);
1166
+ }, m2._settingsDigest = 0, m2._getSettingsDigest = function() {
1167
+ if (!m2._settingsDigest) {
1168
+ var e3 = m2.version;
1169
+ m2.audienceManagerServer && (e3 += "|" + m2.audienceManagerServer), m2.audienceManagerServerSecure && (e3 += "|" + m2.audienceManagerServerSecure), m2._settingsDigest = m2._hash(e3);
1170
+ }
1171
+ return m2._settingsDigest;
1172
+ }, m2._readVisitorDone = false, m2._readVisitor = function() {
1173
+ if (!m2._readVisitorDone) {
1174
+ m2._readVisitorDone = true;
1175
+ var e3, t3, n3, i3, r3, a3, o3 = m2._getSettingsDigest(), s3 = false, l3 = m2.cookieRead(m2.cookieName), c3 = /* @__PURE__ */ new Date();
1176
+ if (l3 || v2 || m2.discardTrackingServerECID || (l3 = m2.cookieRead(re.FIRST_PARTY_SERVER_COOKIE)), null == m2._fields && (m2._fields = {}), l3 && "T" !== l3) for (l3 = l3.split("|"), l3[0].match(/^[\-0-9]+$/) && (parseInt(l3[0], 10) !== o3 && (s3 = true), l3.shift()), l3.length % 2 == 1 && l3.pop(), e3 = 0; e3 < l3.length; e3 += 2) t3 = l3[e3].split("-"), n3 = t3[0], i3 = l3[e3 + 1], t3.length > 1 ? (r3 = parseInt(t3[1], 10), a3 = t3[1].indexOf("s") > 0) : (r3 = 0, a3 = false), s3 && ("MCCIDH" === n3 && (i3 = ""), r3 > 0 && (r3 = c3.getTime() / 1e3 - 60)), n3 && i3 && (m2._setField(n3, i3, 1), r3 > 0 && (m2._fields["expire" + n3] = r3 + (a3 ? "s" : ""), (c3.getTime() >= 1e3 * r3 || a3 && !m2.cookieRead(m2.sessionCookieName)) && (m2._fieldsExpired || (m2._fieldsExpired = {}), m2._fieldsExpired[n3] = true)));
1177
+ !m2._getField(M2) && N2.isTrackingServerPopulated() && (l3 = m2.cookieRead("s_vi")) && (l3 = l3.split("|"), l3.length > 1 && l3[0].indexOf("v1") >= 0 && (i3 = l3[1], e3 = i3.indexOf("["), e3 >= 0 && (i3 = i3.substring(0, e3)), i3 && i3.match(re.VALID_VISITOR_ID_REGEX) && m2._setField(M2, i3)));
1178
+ }
1179
+ }, m2._appendVersionTo = function(e3) {
1180
+ var t3 = "vVersion|" + m2.version, n3 = e3 ? m2._getCookieVersion(e3) : null;
1181
+ return n3 ? Z.areVersionsDifferent(n3, m2.version) && (e3 = e3.replace(re.VERSION_REGEX, t3)) : e3 += (e3 ? "|" : "") + t3, e3;
1182
+ }, m2._writeVisitor = function() {
1183
+ var e3, t3, n3 = m2._getSettingsDigest();
1184
+ for (e3 in m2._fields) L2(e3) && m2._fields[e3] && "expire" !== e3.substring(0, 6) && (t3 = m2._fields[e3], n3 += (n3 ? "|" : "") + e3 + (m2._fields["expire" + e3] ? "-" + m2._fields["expire" + e3] : "") + "|" + t3);
1185
+ n3 = m2._appendVersionTo(n3), m2.cookieWrite(m2.cookieName, n3, 1);
1186
+ }, m2._getField = function(e3, t3) {
1187
+ return null == m2._fields || !t3 && m2._fieldsExpired && m2._fieldsExpired[e3] ? null : m2._fields[e3];
1188
+ }, m2._setField = function(e3, t3, n3) {
1189
+ null == m2._fields && (m2._fields = {}), m2._fields[e3] = t3, n3 || m2._writeVisitor();
1190
+ }, m2._getFieldList = function(e3, t3) {
1191
+ var n3 = m2._getField(e3, t3);
1192
+ return n3 ? n3.split("*") : null;
1193
+ }, m2._setFieldList = function(e3, t3, n3) {
1194
+ m2._setField(e3, t3 ? t3.join("*") : "", n3);
1195
+ }, m2._getFieldMap = function(e3, t3) {
1196
+ var n3 = m2._getFieldList(e3, t3);
1197
+ if (n3) {
1198
+ var i3, r3 = {};
1199
+ for (i3 = 0; i3 < n3.length; i3 += 2) r3[n3[i3]] = n3[i3 + 1];
1200
+ return r3;
1201
+ }
1202
+ return null;
1203
+ }, m2._setFieldMap = function(e3, t3, n3) {
1204
+ var i3, r3 = null;
1205
+ if (t3) {
1206
+ r3 = [];
1207
+ for (i3 in t3) L2(i3) && (r3.push(i3), r3.push(t3[i3]));
1208
+ }
1209
+ m2._setFieldList(e3, r3, n3);
1210
+ }, m2._setFieldExpire = function(e3, t3, n3) {
1211
+ var i3 = /* @__PURE__ */ new Date();
1212
+ i3.setTime(i3.getTime() + 1e3 * t3), null == m2._fields && (m2._fields = {}), m2._fields["expire" + e3] = Math.floor(i3.getTime() / 1e3) + (n3 ? "s" : ""), t3 < 0 ? (m2._fieldsExpired || (m2._fieldsExpired = {}), m2._fieldsExpired[e3] = true) : m2._fieldsExpired && (m2._fieldsExpired[e3] = false), n3 && (m2.cookieRead(m2.sessionCookieName) || m2.cookieWrite(m2.sessionCookieName, "1"));
1213
+ }, m2._findVisitorID = function(t3) {
1214
+ return t3 && ("object" === e2(t3) && (t3 = t3.d_mid ? t3.d_mid : t3.visitorID ? t3.visitorID : t3.id ? t3.id : t3.uuid ? t3.uuid : "" + t3), t3 && "NOTARGET" === (t3 = t3.toUpperCase()) && (t3 = P2), t3 && (t3 === P2 || t3.match(re.VALID_VISITOR_ID_REGEX)) || (t3 = "")), t3;
1215
+ }, m2._setFields = function(t3, n3) {
1216
+ if (m2._clearTimeout(t3), null != m2._loading && (m2._loading[t3] = false), V2.fieldGroupObj[t3] && V2.setState(t3, false), "MC" === t3) {
1217
+ true !== V2.isClientSideMarketingCloudVisitorID && (V2.isClientSideMarketingCloudVisitorID = false);
1218
+ var i3 = m2._getField(y2);
1219
+ if (!i3 || m2.overwriteCrossDomainMCIDAndAID) {
1220
+ if (!(i3 = "object" === e2(n3) && n3.mid ? n3.mid : m2._findVisitorID(n3))) {
1221
+ if (m2._use1stPartyMarketingCloudServer && !m2.tried1stPartyMarketingCloudServer) return m2.tried1stPartyMarketingCloudServer = true, void m2.getAnalyticsVisitorID(null, false, true);
1222
+ i3 = m2._generateLocalMID();
1223
+ }
1224
+ m2._setField(y2, i3);
1225
+ }
1226
+ i3 && i3 !== P2 || (i3 = ""), "object" === e2(n3) && ((n3.d_region || n3.dcs_region || n3.d_blob || n3.blob) && m2._setFields(k2, n3), m2._use1stPartyMarketingCloudServer && n3.mid && m2._setFields(O2, { id: n3.id })), m2._callAllCallbacks(y2, [i3]);
1227
+ }
1228
+ if (t3 === k2 && "object" === e2(n3)) {
1229
+ var r3 = 604800;
1230
+ void 0 != n3.id_sync_ttl && n3.id_sync_ttl && (r3 = parseInt(n3.id_sync_ttl, 10));
1231
+ var a3 = x2.getRegionAndCheckIfChanged(n3, r3);
1232
+ m2._callAllCallbacks("MCAAMLH", [a3]);
1233
+ var o3 = m2._getField(T2);
1234
+ (n3.d_blob || n3.blob) && (o3 = n3.d_blob, o3 || (o3 = n3.blob), m2._setFieldExpire(T2, r3), m2._setField(T2, o3)), o3 || (o3 = ""), m2._callAllCallbacks(T2, [o3]), !n3.error_msg && m2._newCustomerIDsHash && m2._setField("MCCIDH", m2._newCustomerIDsHash);
1235
+ }
1236
+ if (t3 === O2) {
1237
+ var s3 = m2._getField(M2);
1238
+ s3 && !m2.overwriteCrossDomainMCIDAndAID || (s3 = m2._findVisitorID(n3), s3 ? s3 !== P2 && m2._setFieldExpire(T2, -1) : s3 = P2, m2._setField(M2, s3)), s3 && s3 !== P2 || (s3 = ""), m2._callAllCallbacks(M2, [s3]);
1239
+ }
1240
+ if (m2.idSyncDisableSyncs || m2.disableIdSyncs) x2.idCallNotProcesssed = true;
1241
+ else {
1242
+ x2.idCallNotProcesssed = false;
1243
+ var l3 = {};
1244
+ l3.ibs = n3.ibs, l3.subdomain = n3.subdomain, x2.processIDCallData(l3);
1245
+ }
1246
+ if (n3 === Object(n3)) {
1247
+ var c3, d3;
1248
+ u2() && m2.isAllowed() && (c3 = m2._getField("MCOPTOUT"));
1249
+ var f3 = j.parseOptOut(n3, c3, P2);
1250
+ c3 = f3.optOut, d3 = f3.d_ottl, m2._setFieldExpire("MCOPTOUT", d3, true), m2._setField("MCOPTOUT", c3), m2._callAllCallbacks("MCOPTOUT", [c3]);
1251
+ }
1252
+ }, m2._loading = null, m2._getRemoteField = function(e3, t3, n3, i3, r3) {
1253
+ var a3, o3 = "", s3 = N2.isFirstPartyAnalyticsVisitorIDCall(e3), l3 = { MCAAMLH: true, MCAAMB: true };
1254
+ if (u2() && m2.isAllowed()) {
1255
+ m2._readVisitor(), o3 = m2._getField(e3, true === l3[e3]);
1256
+ if ((function() {
1257
+ return (!o3 || m2._fieldsExpired && m2._fieldsExpired[e3]) && (!m2.disableThirdPartyCalls || s3);
1258
+ })()) {
1259
+ if (e3 === y2 || "MCOPTOUT" === e3 ? a3 = "MC" : "MCAAMLH" === e3 || e3 === T2 ? a3 = k2 : e3 === M2 && (a3 = O2), a3) return !t3 || null != m2._loading && m2._loading[a3] || (null == m2._loading && (m2._loading = {}), m2._loading[a3] = true, m2._loadData(a3, t3, function(t4) {
1260
+ if (!m2._getField(e3)) {
1261
+ t4 && V2.setState(a3, true);
1262
+ var n4 = "";
1263
+ e3 === y2 ? n4 = m2._generateLocalMID() : a3 === k2 && (n4 = { error_msg: "timeout" }), m2._setFields(a3, n4);
1264
+ }
1265
+ }, r3)), m2._registerCallback(e3, n3), o3 || (t3 || m2._setFields(a3, { id: P2 }), "");
1266
+ } else o3 || (e3 === y2 ? (m2._registerCallback(e3, n3), o3 = m2._generateLocalMID(), m2.setMarketingCloudVisitorID(o3)) : e3 === M2 ? (m2._registerCallback(e3, n3), o3 = "", m2.setAnalyticsVisitorID(o3)) : (o3 = "", i3 = true));
1267
+ }
1268
+ return e3 !== y2 && e3 !== M2 || o3 !== P2 || (o3 = "", i3 = true), n3 && i3 && m2._callCallback(n3, [o3]), o3;
1269
+ }, m2._setMarketingCloudFields = function(e3) {
1270
+ m2._readVisitor(), m2._setFields("MC", e3);
1271
+ }, m2._mapCustomerIDs = function(e3) {
1272
+ m2.getAudienceManagerBlob(e3, true);
1273
+ }, m2._setAnalyticsFields = function(e3) {
1274
+ m2._readVisitor(), m2._setFields(O2, e3);
1275
+ }, m2._setAudienceManagerFields = function(e3) {
1276
+ m2._readVisitor(), m2._setFields(k2, e3);
1277
+ }, m2._getAudienceManagerURLData = function(e3) {
1278
+ var t3 = m2.audienceManagerServer, n3 = "", i3 = m2._getField(y2), r3 = m2._getField(T2, true), a3 = m2._getField(M2), o3 = a3 && a3 !== P2 ? "&d_cid_ic=AVID%01" + encodeURIComponent(a3) : "";
1279
+ if (m2.loadSSL && m2.audienceManagerServerSecure && (t3 = m2.audienceManagerServerSecure), t3) {
1280
+ var s3, l3, c3 = m2.getCustomerIDs();
1281
+ if (c3) for (s3 in c3) L2(s3) && (l3 = c3[s3], o3 += "&d_cid_ic=" + encodeURIComponent(s3) + "%01" + encodeURIComponent(l3.id ? l3.id : "") + (l3.authState ? "%01" + l3.authState : ""));
1282
+ e3 || (e3 = "_setAudienceManagerFields");
1283
+ var u3 = "http" + (m2.loadSSL ? "s" : "") + "://" + t3 + "/id", d3 = "d_visid_ver=" + m2.version + (C2 && -1 !== u3.indexOf("demdex.net") ? "&gdpr=1&gdpr_force=1&gdpr_consent=" + C2 : "") + "&d_rtbd=json&d_ver=2" + (!i3 && m2._use1stPartyMarketingCloudServer ? "&d_verify=1" : "") + "&d_orgid=" + encodeURIComponent(m2.marketingCloudOrgID) + "&d_nsid=" + (m2.idSyncContainerID || 0) + (i3 ? "&d_mid=" + encodeURIComponent(i3) : "") + (m2.idSyncDisable3rdPartySyncing || m2.disableThirdPartyCookies ? "&d_coppa=true" : "") + (true === A2 ? "&d_coop_safe=1" : false === A2 ? "&d_coop_unsafe=1" : "") + (r3 ? "&d_blob=" + encodeURIComponent(r3) : "") + o3, f3 = ["s_c_il", m2._in, e3];
1284
+ return n3 = u3 + "?" + d3 + "&d_cb=s_c_il%5B" + m2._in + "%5D." + e3, { url: n3, corsUrl: u3 + "?" + d3, callback: f3 };
1285
+ }
1286
+ return { url: n3 };
1287
+ }, m2.appendVisitorIDsTo = function(e3) {
1288
+ try {
1289
+ var t3 = [[y2, m2._getField(y2)], [M2, m2._getField(M2)], ["MCORGID", m2.marketingCloudOrgID]];
1290
+ return m2._addQuerystringParam(e3, re.ADOBE_MC, s2(t3));
1291
+ } catch (t4) {
1292
+ return e3;
1293
+ }
1294
+ }, m2.appendSupplementalDataIDTo = function(e3, t3) {
1295
+ if (!(t3 = t3 || m2.getSupplementalDataID(N2.generateRandomString(), true))) return e3;
1296
+ try {
1297
+ var n3 = s2([["SDID", t3], ["MCORGID", m2.marketingCloudOrgID]]);
1298
+ return m2._addQuerystringParam(e3, re.ADOBE_MC_SDID, n3);
1299
+ } catch (t4) {
1300
+ return e3;
1301
+ }
1302
+ };
1303
+ var N2 = { parseHash: function(e3) {
1304
+ var t3 = e3.indexOf("#");
1305
+ return t3 > 0 ? e3.substr(t3) : "";
1306
+ }, hashlessUrl: function(e3) {
1307
+ var t3 = e3.indexOf("#");
1308
+ return t3 > 0 ? e3.substr(0, t3) : e3;
1309
+ }, addQueryParamAtLocation: function(e3, t3, n3) {
1310
+ var i3 = e3.split("&");
1311
+ return n3 = null != n3 ? n3 : i3.length, i3.splice(n3, 0, t3), i3.join("&");
1312
+ }, isFirstPartyAnalyticsVisitorIDCall: function(e3, t3, n3) {
1313
+ if (e3 !== M2) return false;
1314
+ var i3;
1315
+ return t3 || (t3 = m2.trackingServer), n3 || (n3 = m2.trackingServerSecure), !("string" != typeof (i3 = m2.loadSSL ? n3 : t3) || !i3.length) && (i3.indexOf("2o7.net") < 0 && i3.indexOf("omtrdc.net") < 0);
1316
+ }, isObject: function(e3) {
1317
+ return Boolean(e3 && e3 === Object(e3));
1318
+ }, removeCookie: function(e3) {
1319
+ Q.remove(e3, { domain: m2.cookieDomain });
1320
+ }, isTrackingServerPopulated: function() {
1321
+ return !!m2.trackingServer || !!m2.trackingServerSecure;
1322
+ }, getTimestampInSeconds: function() {
1323
+ return Math.round((/* @__PURE__ */ new Date()).getTime() / 1e3);
1324
+ }, parsePipeDelimetedKeyValues: function(e3) {
1325
+ return e3.split("|").reduce(function(e4, t3) {
1326
+ var n3 = t3.split("=");
1327
+ return e4[n3[0]] = decodeURIComponent(n3[1]), e4;
1328
+ }, {});
1329
+ }, generateRandomString: function(e3) {
1330
+ e3 = e3 || 5;
1331
+ for (var t3 = "", n3 = "abcdefghijklmnopqrstuvwxyz0123456789"; e3--; ) t3 += n3[Math.floor(Math.random() * n3.length)];
1332
+ return t3;
1333
+ }, normalizeBoolean: function(e3) {
1334
+ return "true" === e3 || "false" !== e3 && e3;
1335
+ }, parseBoolean: function(e3) {
1336
+ return "true" === e3 || "false" !== e3 && null;
1337
+ }, replaceMethodsWithFunction: function(e3, t3) {
1338
+ for (var n3 in e3) e3.hasOwnProperty(n3) && "function" == typeof e3[n3] && (e3[n3] = t3);
1339
+ return e3;
1340
+ } };
1341
+ m2._helpers = N2;
1342
+ var x2 = ae(m2, S2);
1343
+ m2._destinationPublishing = x2, m2.timeoutMetricsLog = [];
1344
+ var V2 = { isClientSideMarketingCloudVisitorID: null, MCIDCallTimedOut: null, AnalyticsIDCallTimedOut: null, AAMIDCallTimedOut: null, fieldGroupObj: {}, setState: function(e3, t3) {
1345
+ switch (e3) {
1346
+ case "MC":
1347
+ false === t3 ? true !== this.MCIDCallTimedOut && (this.MCIDCallTimedOut = false) : this.MCIDCallTimedOut = t3;
1348
+ break;
1349
+ case O2:
1350
+ false === t3 ? true !== this.AnalyticsIDCallTimedOut && (this.AnalyticsIDCallTimedOut = false) : this.AnalyticsIDCallTimedOut = t3;
1351
+ break;
1352
+ case k2:
1353
+ false === t3 ? true !== this.AAMIDCallTimedOut && (this.AAMIDCallTimedOut = false) : this.AAMIDCallTimedOut = t3;
1354
+ }
1355
+ } };
1356
+ m2.isClientSideMarketingCloudVisitorID = function() {
1357
+ return V2.isClientSideMarketingCloudVisitorID;
1358
+ }, m2.MCIDCallTimedOut = function() {
1359
+ return V2.MCIDCallTimedOut;
1360
+ }, m2.AnalyticsIDCallTimedOut = function() {
1361
+ return V2.AnalyticsIDCallTimedOut;
1362
+ }, m2.AAMIDCallTimedOut = function() {
1363
+ return V2.AAMIDCallTimedOut;
1364
+ }, m2.idSyncGetOnPageSyncInfo = function() {
1365
+ return m2._readVisitor(), m2._getField("MCSYNCSOP");
1366
+ }, m2.idSyncByURL = function(e3) {
1367
+ if (!m2.isOptedOut()) {
1368
+ var t3 = l2(e3 || {});
1369
+ if (t3.error) return t3.error;
1370
+ var n3, i3, r3 = e3.url, a3 = encodeURIComponent, o3 = x2;
1371
+ return r3 = r3.replace(/^https:/, "").replace(/^http:/, ""), n3 = j.encodeAndBuildRequest(["", e3.dpid, e3.dpuuid || ""], ","), i3 = ["ibs", a3(e3.dpid), "img", a3(r3), t3.ttl, "", n3], o3.addMessage(i3.join("|")), o3.requestToProcess(), "Successfully queued";
1372
+ }
1373
+ }, m2.idSyncByDataSource = function(e3) {
1374
+ if (!m2.isOptedOut()) return e3 === Object(e3) && "string" == typeof e3.dpuuid && e3.dpuuid.length ? (e3.url = "//dpm.demdex.net/ibs:dpid=" + e3.dpid + "&dpuuid=" + e3.dpuuid, m2.idSyncByURL(e3)) : "Error: config or config.dpuuid is empty";
1375
+ }, Ue(m2, x2), m2._getCookieVersion = function(e3) {
1376
+ e3 = e3 || m2.cookieRead(m2.cookieName);
1377
+ var t3 = re.VERSION_REGEX.exec(e3);
1378
+ return t3 && t3.length > 1 ? t3[1] : null;
1379
+ }, m2._resetAmcvCookie = function(e3) {
1380
+ var t3 = m2._getCookieVersion();
1381
+ t3 && !Z.isLessThan(t3, e3) || N2.removeCookie(m2.cookieName);
1382
+ }, m2.setAsCoopSafe = function() {
1383
+ A2 = true;
1384
+ }, m2.setAsCoopUnsafe = function() {
1385
+ A2 = false;
1386
+ }, (function() {
1387
+ if (m2.configs = /* @__PURE__ */ Object.create(null), N2.isObject(n2)) for (var e3 in n2) L2(e3) && (m2[e3] = n2[e3], m2.configs[e3] = n2[e3]);
1388
+ })(), d2();
1389
+ var U2;
1390
+ m2.init = function() {
1391
+ c2() && (h2.optIn.fetchPermissions(p2, true), !h2.optIn.isApproved(h2.optIn.Categories.ECID)) || U2 || (U2 = true, (function() {
1392
+ if (N2.isObject(n2)) {
1393
+ m2.idSyncContainerID = m2.idSyncContainerID || 0, A2 = "boolean" == typeof m2.isCoopSafe ? m2.isCoopSafe : N2.parseBoolean(m2.isCoopSafe), m2.resetBeforeVersion && m2._resetAmcvCookie(m2.resetBeforeVersion), m2._attemptToPopulateIdsFromUrl(), m2._attemptToPopulateSdidFromUrl(), m2._readVisitor();
1394
+ var e3 = m2._getField(b2), t3 = Math.ceil((/* @__PURE__ */ new Date()).getTime() / re.MILLIS_PER_DAY);
1395
+ m2.idSyncDisableSyncs || m2.disableIdSyncs || !x2.canMakeSyncIDCall(e3, t3) || (m2._setFieldExpire(T2, -1), m2._setField(b2, t3)), m2.getMarketingCloudVisitorID(), m2.getAudienceManagerLocationHint(), m2.getAudienceManagerBlob(), m2._mergeServerState(m2.serverState);
1396
+ } else m2._attemptToPopulateIdsFromUrl(), m2._attemptToPopulateSdidFromUrl();
1397
+ })(), (function() {
1398
+ if (!m2.idSyncDisableSyncs && !m2.disableIdSyncs) {
1399
+ x2.checkDPIframeSrc();
1400
+ var e3 = function() {
1401
+ var e4 = x2;
1402
+ e4.readyToAttachIframe() && e4.attachIframe();
1403
+ };
1404
+ D2.addEventListener("load", function() {
1405
+ S2.windowLoaded = true, e3();
1406
+ });
1407
+ try {
1408
+ te.receiveMessage(function(e4) {
1409
+ x2.receiveMessage(e4.data);
1410
+ }, x2.iframeHost);
1411
+ } catch (e4) {
1412
+ }
1413
+ }
1414
+ })(), (function() {
1415
+ m2.whitelistIframeDomains && re.POST_MESSAGE_ENABLED && (m2.whitelistIframeDomains = m2.whitelistIframeDomains instanceof Array ? m2.whitelistIframeDomains : [m2.whitelistIframeDomains], m2.whitelistIframeDomains.forEach(function(e3) {
1416
+ var n3 = new B(t2, e3), i3 = K(m2, n3);
1417
+ te.receiveMessage(i3, e3);
1418
+ }));
1419
+ })());
1420
+ };
1421
+ };
1422
+ qe.config = se, _.Visitor = qe;
1423
+ var Xe = qe, We = function(e3) {
1424
+ if (j.isObject(e3)) return Object.keys(e3).filter(function(t2) {
1425
+ return "" !== e3[t2];
1426
+ }).reduce(function(t2, n2) {
1427
+ var i2 = se.normalizeConfig(e3[n2]), r2 = j.normalizeBoolean(i2);
1428
+ return t2[n2] = r2, t2;
1429
+ }, /* @__PURE__ */ Object.create(null));
1430
+ }, Je = Ve.OptIn, Ke = Ve.IabPlugin;
1431
+ return Xe.getInstance = function(e3, t2) {
1432
+ if (!e3) throw new Error("Visitor requires Adobe Marketing Cloud Org ID.");
1433
+ e3.indexOf("@") < 0 && (e3 += "@AdobeOrg");
1434
+ var n2 = (function() {
1435
+ var t3 = _.s_c_il;
1436
+ if (t3) for (var n3 = 0; n3 < t3.length; n3++) {
1437
+ var i3 = t3[n3];
1438
+ if (i3 && "Visitor" === i3._c && i3.marketingCloudOrgID === e3) return i3;
1439
+ }
1440
+ })();
1441
+ if (n2) return n2;
1442
+ var i2 = We(t2);
1443
+ !(function(e4) {
1444
+ _.adobe.optIn = _.adobe.optIn || (function() {
1445
+ var t3 = j.pluck(e4, ["doesOptInApply", "previousPermissions", "preOptInApprovals", "isOptInStorageEnabled", "optInStorageExpiry", "isIabContext"]), n3 = e4.optInCookieDomain || e4.cookieDomain;
1446
+ n3 = n3 || $(), n3 = n3 === window.location.hostname ? "" : n3, t3.optInCookieDomain = n3;
1447
+ var i3 = new Je(t3, { cookies: Q });
1448
+ if (t3.isIabContext && t3.doesOptInApply) {
1449
+ var r3 = new Ke(window.__cmp);
1450
+ i3.registerPlugin(r3);
1451
+ }
1452
+ return i3;
1453
+ })();
1454
+ })(i2 || {});
1455
+ var r2 = e3, a2 = r2.split("").reverse().join(""), o2 = new Xe(e3, null, a2);
1456
+ j.isObject(i2) && i2.cookieDomain && (o2.cookieDomain = i2.cookieDomain), (function() {
1457
+ _.s_c_il.splice(--_.s_c_in, 1);
1458
+ })();
1459
+ var s2 = j.getIeVersion();
1460
+ if ("number" == typeof s2 && s2 < 10) return o2._helpers.replaceMethodsWithFunction(o2, function() {
1461
+ });
1462
+ var l2 = (function() {
1463
+ try {
1464
+ return _.self !== _.parent;
1465
+ } catch (e4) {
1466
+ return true;
1467
+ }
1468
+ })() && !(function(e4) {
1469
+ return e4.cookieWrite("TEST_AMCV_COOKIE", "T", 1), "T" === e4.cookieRead("TEST_AMCV_COOKIE") && (e4._helpers.removeCookie("TEST_AMCV_COOKIE"), true);
1470
+ })(o2) && _.parent ? new Y(e3, i2, o2, _.parent) : new Xe(e3, i2, a2);
1471
+ return o2 = null, l2.init(), l2;
1472
+ }, (function() {
1473
+ function e3() {
1474
+ Xe.windowLoaded = true;
1475
+ }
1476
+ _.addEventListener ? _.addEventListener("load", e3) : _.attachEvent && _.attachEvent("onload", e3), Xe.codeLoadEnd = (/* @__PURE__ */ new Date()).getTime();
1477
+ })(), Xe;
1478
+ })();
1479
+ /**
1480
+ * @license
1481
+ * Adobe Visitor API for JavaScript version: 4.6.0
1482
+ * Copyright 2020 Adobe, Inc. All Rights Reserved
1483
+ * More info available at https://marketing.adobe.com/resources/help/en_US/mcvid/
1484
+ */