@coveo/relay 0.0.4 → 0.0.6

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.
File without changes
package/CHANGELOG.md ADDED
@@ -0,0 +1,4 @@
1
+ ## 0.0.6 (2023-08-08)
2
+
3
+
4
+
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/jest.config.js ADDED
@@ -0,0 +1,5 @@
1
+ /** @type {import('ts-jest').JestConfigWithTsJest} */
2
+ module.exports = {
3
+ preset: "ts-jest",
4
+ testEnvironment: "node",
5
+ };
package/package.json CHANGED
@@ -1,30 +1,7 @@
1
1
  {
2
2
  "name": "@coveo/relay",
3
- "version": "0.0.4",
4
- "description": "A library to send analytics events using QProtocol.",
5
- "main": "dist/relay.js",
6
- "files": [
7
- "dist/"
8
- ],
9
- "scripts": {
10
- "ci:setup": "npm ci",
11
- "ci:bump:version": "node ./scripts/bump-version.js",
12
- "ci:npm:login": "node ./scripts/npm-login.js",
13
- "setup": "npm i && husky install",
14
- "dev": "vite",
15
- "build": "tsc && vite build",
16
- "preview": "vite preview",
17
- "test": "jest",
18
- "test:watch": "jest --watch --no-cache",
19
- "lint": "prettier --ignore-path .gitignore --write .",
20
- "lint:check": "prettier --ignore-path .gitignore --check .",
21
- "qubit:login": "npx qubit-cli login",
22
- "version": "standard-version",
23
- "npm:publish:alpha": "npm publish --verbose --access public --tag alpha",
24
- "npm:tag:beta": "node ./scripts/update-npm-tag.js -- beta",
25
- "npm:tag:latest": "node ./scripts/update-npm-tag.js -- latest",
26
- "invalidate:cloudfront": "node ./scripts/invalidate-cloudfront.js"
27
- },
3
+ "version": "0.0.6",
4
+ "description": "A library for sending analytics events using Coveo's Event protocol.",
28
5
  "repository": {
29
6
  "type": "git",
30
7
  "url": "git+https://github.com/coveo/relay.git"
@@ -32,7 +9,7 @@
32
9
  "keywords": [
33
10
  "Coveo",
34
11
  "analytics",
35
- "qprotocol"
12
+ "event"
36
13
  ],
37
14
  "author": "Coveo",
38
15
  "license": "Apache-2.0",
@@ -41,28 +18,17 @@
41
18
  },
42
19
  "homepage": "https://github.com/coveo/relay#readme",
43
20
  "devDependencies": {
44
- "@types/jest": "^27.4.0",
45
- "aws-sdk": "^2.1066.0",
46
- "husky": "^7.0.0",
47
- "jest": "^27.4.7",
48
- "lint-staged": "^12.2.1",
49
- "prettier": "^2.5.1",
50
- "qubit-cli": "^1.77.9",
51
- "standard-version": "^9.3.2",
52
- "ts-jest": "^27.1.3",
53
- "typescript": "^4.5.4",
54
- "vite": "^2.7.12"
21
+ "@types/jest": "^29.5.3",
22
+ "jest": "^29.6.2",
23
+ "jest-environment-jsdom": "^29.6.2",
24
+ "ts-jest": "^29.1.1",
25
+ "typescript": "^5.1.6",
26
+ "eslint-config-custom": "0.0.6",
27
+ "tsconfig": "0.0.0"
55
28
  },
56
- "dependencies": {
57
- "@qubit/biscotti": "^5.19.1",
58
- "@qubit/jolt": "^7.68.2",
59
- "@qubit/payment-urls": "^1.8.1",
60
- "cookieman": "^1.3.0",
61
- "loglevel": "^1.8.0",
62
- "really-unique-id": "^1.2.2",
63
- "uv-api": "^4.3.0"
64
- },
65
- "lint-staged": {
66
- "*.{js,ts,html,md,json}": "prettier --write"
29
+ "scripts": {
30
+ "test": "jest",
31
+ "test:watch": "jest --watch",
32
+ "publish:npm": "node ./scripts/publish.mjs"
67
33
  }
68
- }
34
+ }
@@ -0,0 +1,28 @@
1
+ import {context} from '@actions/github';
2
+ import {
3
+ describeNpmTag,
4
+ getLastTag,
5
+ pnpmPublish,
6
+ } from "@coveo/semantic-monorepo-tools";
7
+
8
+ const VERSION_PREFIX = "@coveo/relay/v";
9
+
10
+ const publishNpm = async () => {
11
+ try {
12
+ const refBranchName = context.payload.pull_request.head.ref;
13
+ const lastTag = await getLastTag(VERSION_PREFIX);
14
+ const version = lastTag.replace(VERSION_PREFIX, "");
15
+ const currentAlphaVersion = await describeNpmTag("@coveo/relay", "alpha");
16
+ console.info("The current version of the package is %s", version);
17
+ console.info("the describe npm tag is %s", currentAlphaVersion);
18
+
19
+ if (version > currentAlphaVersion) {
20
+ console.info("needs to publish");
21
+ await pnpmPublish(undefined, "alpha", refBranchName);
22
+ }
23
+ } catch (e) {
24
+ console.log(e);
25
+ }
26
+ };
27
+
28
+ publishNpm();
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @jest-environment jsdom
3
+ */
4
+
5
+ import { buildBrowserEnvironment } from "./browser";
6
+
7
+ describe("buildBrowserEnvironment", () => {
8
+ it("retrieves the referrer", () => {
9
+ Object.defineProperty(window.document, "referrer", {
10
+ value: "https://www.coveo.com/",
11
+ });
12
+ expect(buildBrowserEnvironment().getReferrer()).toBe(
13
+ "https://www.coveo.com/"
14
+ );
15
+ });
16
+ });
@@ -0,0 +1,7 @@
1
+ import { Environment } from "../environment";
2
+
3
+ export function buildBrowserEnvironment(): Environment {
4
+ return {
5
+ getReferrer: () => document.referrer,
6
+ };
7
+ }
@@ -0,0 +1,3 @@
1
+ export interface Environment {
2
+ getReferrer: () => string | null;
3
+ }
@@ -0,0 +1,7 @@
1
+ import { buildNodeEnvironment } from "./node";
2
+
3
+ describe("buildNodeEnvironment", () => {
4
+ it("getReferrer returns null", () => {
5
+ expect(buildNodeEnvironment().getReferrer()).toBe(null);
6
+ });
7
+ });
@@ -0,0 +1,7 @@
1
+ import { Environment } from "../environment";
2
+
3
+ export function buildNodeEnvironment(): Environment {
4
+ return {
5
+ getReferrer: () => null,
6
+ };
7
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "extends": "tsconfig/base.json",
3
+ "include": ["**/*.ts"],
4
+ "exclude": ["node_modules"]
5
+ }
package/README.md DELETED
@@ -1,9 +0,0 @@
1
- # relay
2
-
3
- A library to send analytics events using QProtocol.
4
-
5
- ## Setup
6
-
7
- 1. Contact Alan Clarke for access to `@qubit` and `@qutics` registeries.
8
- 2. Run `npm run qubit:login`. The command will adjust your `.npmrc` to let you install packages hosted on Qubit's private registeries.
9
- 3. Run `npm run setup`.
@@ -1,8 +0,0 @@
1
- var pt=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function en(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var tn={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():t.log=n()})(pt,function(){var t=function(){},n="undefined",r=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),i=["trace","debug","info","warn","error"];function a(f,v){var h=f[v];if(typeof h.bind=="function")return h.bind(f);try{return Function.prototype.bind.call(h,f)}catch{return function(){return Function.prototype.apply.apply(h,[f,arguments])}}}function o(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function s(f){return f==="debug"&&(f="log"),typeof console===n?!1:f==="trace"&&r?o:console[f]!==void 0?a(console,f):console.log!==void 0?a(console,"log"):t}function u(f,v){for(var h=0;h<i.length;h++){var g=i[h];this[g]=h<f?t:this.methodFactory(g,f,v)}this.log=this.debug}function c(f,v,h){return function(){typeof console!==n&&(u.call(this,v,h),this[f].apply(this,arguments))}}function w(f,v,h){return s(f)||c.apply(this,arguments)}function y(f,v,h){var g=this,b;v=v==null?"WARN":v;var _="loglevel";typeof f=="string"?_+=":"+f:typeof f=="symbol"&&(_=void 0);function T(x){var R=(i[x]||"silent").toUpperCase();if(!(typeof window===n||!_)){try{window.localStorage[_]=R;return}catch{}try{window.document.cookie=encodeURIComponent(_)+"="+R+";"}catch{}}}function B(){var x;if(!(typeof window===n||!_)){try{x=window.localStorage[_]}catch{}if(typeof x===n)try{var R=window.document.cookie,H=R.indexOf(encodeURIComponent(_)+"=");H!==-1&&(x=/^([^;]+)/.exec(R.slice(H))[1])}catch{}return g.levels[x]===void 0&&(x=void 0),x}}function Z(){if(!(typeof window===n||!_)){try{window.localStorage.removeItem(_);return}catch{}try{window.document.cookie=encodeURIComponent(_)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}g.name=f,g.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},g.methodFactory=h||w,g.getLevel=function(){return b},g.setLevel=function(x,R){if(typeof x=="string"&&g.levels[x.toUpperCase()]!==void 0&&(x=g.levels[x.toUpperCase()]),typeof x=="number"&&x>=0&&x<=g.levels.SILENT){if(b=x,R!==!1&&T(x),u.call(g,x,f),typeof console===n&&x<g.levels.SILENT)return"No console available for logging"}else throw"log.setLevel() called with invalid level: "+x},g.setDefaultLevel=function(x){v=x,B()||g.setLevel(x,!1)},g.resetLevel=function(){g.setLevel(v,!1),Z()},g.enableAll=function(x){g.setLevel(g.levels.TRACE,x)},g.disableAll=function(x){g.setLevel(g.levels.SILENT,x)};var A=B();A==null&&(A=v),g.setLevel(A,!1)}var p=new y,l={};p.getLogger=function(v){if(typeof v!="symbol"&&typeof v!="string"||v==="")throw new TypeError("You must supply a name when creating a logger.");var h=l[v];return h||(h=l[v]=new y(v,p.getLevel(),p.methodFactory)),h};var d=typeof window!==n?window.log:void 0;return p.noConflict=function(){return typeof window!==n&&window.log===p&&(window.log=d),p},p.getLoggers=function(){return l},p.default=p,p})})(tn);var Al=tn.exports,rn=Function.prototype.toString,la=Object.prototype.hasOwnProperty,fa=/[\\^$.*+?()[\]{}|]/g,da=rn.call(la).replace(fa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?"),wa=RegExp("^"+da+"$");function pa(e){if(!e)return"";try{return rn.call(e)}catch{}try{return e+""}catch{}}var nn=Object.assign,an=Array.prototype.forEach,on=Array.prototype.every,sn=Array.prototype.filter,cn=Array.prototype.find,un=Array.prototype.indexOf,ln=Array.isArray,fn=Object.keys,dn=Array.prototype.map,wn=Array.prototype.reduce,pn=Array.prototype.slice,hn=Array.prototype.some,vn=Object.values;function le(e){return e&&typeof e=="function"&&wa.test(pa(e))}var se={assign:le(nn)?nn:function(t){for(var n=arguments.length,r=1;r<n;r++){var i=arguments[r];for(var a in i)i.hasOwnProperty(a)&&(t[a]=i[a])}return t},bind:function(t,n){var r=se.slice(arguments,2);return function(){return t.apply(n,r.concat(se.slice(arguments)))}},debounce:function(t,n,r){var i;return function(){var a=this,o=arguments,s=function(){i=null,r||t.apply(a,o)},u=r&&!i;clearTimeout(i),i=setTimeout(s,n),u&&t.apply(a,o)}},each:le(an)?function(t,n,r){return an.call(t,n,r)}:function(t,n,r){for(var i=t.length,a=0;a<i;a++)n.call(r,t[a],a,t)},every:le(on)?function(t,n,r){return on.call(t,n,r)}:function(t,n,r){if(!t||!n)throw new TypeError;for(var i=0;i<t.length;i++)if(!n.call(r,t[i],i,t))return!1;return!0},filter:le(sn)?function(t,n,r){return sn.call(t,n,r)}:function(t,n,r){for(var i=t.length,a=[],o=0;o<i;o++)n.call(r,t[o],o,t)&&a.push(t[o]);return a},find:le(cn)?function(t,n,r){return cn.call(t,n,r)}:function(t,n,r){for(var i=t.length,a=0;a<i;a++)if(n.call(r,t[a],a,t))return t[a]},get:function(t,n){return se.reduce(n.split("."),function(r,i){return typeof r!="undefined"&&r!==null?r[i]:void 0},t)},identity:function(t){return t},indexOf:le(un)?function(t,n){return un.call(t,n)}:function(t,n){for(var r=t.length,i=0;i<r;i++)if(t[i]===n)return i;return-1},invoke:function(t,n){var r=se.slice(arguments,2);return se.map(t,function(a){return a[n].apply(a,r)})},isArray:le(ln)?function(t){return ln(t)}:function(t){return Object.prototype.toString.call(t)==="[object Array]"},isMatch:function(t,n){for(var r in n)if(n.hasOwnProperty(r)&&t[r]!==n[r])return!1;return!0},isObject:function(t){var n=typeof t;return n==="function"||n==="object"&&!!t},keys:le(fn)?fn:function(t){var n=[];for(var r in t)t.hasOwnProperty(r)&&n.push(r);return n},map:le(dn)?function(t,n,r){return dn.call(t,n,r)}:function(t,n,r){for(var i=t.length,a=new Array(i),o=0;o<i;o++)a[o]=n.call(r,t[o],o,t);return a},matches:function(t){return function(n){return se.isMatch(n,t)}},not:function(t){return!t},objectEach:function(e,t,n){return se.each(se.keys(e),function(r){return t.call(n,e[r],r,e)},n)},objectMap:function(t,n,r){var i={};for(var a in t)t.hasOwnProperty(a)&&(i[a]=n.call(r,t[a],a,t));return i},objectReduce:function(t,n,r){var i=r;for(var a in t)t.hasOwnProperty(a)&&(i=n(i,t[a],a,t));return i},pick:function(t,n){var r={};return se.each(n,function(i){typeof t[i]!="undefined"&&(r[i]=t[i])}),r},pluck:function(t,n){for(var r=t.length,i=[],a=0;a<r;a++)t[a]&&(i[a]=t[a][n]);return i},reduce:le(wn)?function(t,n,r){return wn.call(t,n,r)}:function(t,n,r){for(var i=r,a=t.length,o=0;o<a;o++)i=n(i,t[o],o,t);return i},set:function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")return t;var i=n.split("."),a=t,o;do o=i.shift(),typeof a[o]!="object"&&(a[o]={}),i.length?a=a[o]:a[o]=r;while(i.length);return t},slice:le(pn)?function(t,n,r){return n=n||0,r=typeof r=="number"?r:t.length,pn.call(t,n,r)}:function(t,n,r){n=n||0,r=typeof r=="number"?r:t.length;var i=t==null?0:t.length;if(!i)return[];n<0&&(n=-n>i?0:i+n),r=r>i?i:r,r<0&&(r+=i),i=n>r?0:r-n>>>0,n>>>=0;for(var a=-1,o=new Array(i);++a<i;)o[a]=t[a+n];return o},some:le(hn)?function(t,n,r){return hn.call(t,n,r)}:function(t,n,r){if(!t||!n)throw new TypeError;for(var i=0;i<t.length;i++)if(n.call(r,t[i],i,t))return!0;return!1},unique:function(t){return se.reduce(t,function(n,r){return se.indexOf(n,r)===-1&&n.push(r),n},[])},values:le(vn)?vn:function(t){var n=[];for(var r in t)t.hasOwnProperty(r)&&n.push(t[r]);return n},name:"slapdash",version:"1.3.3"};se.objectMap.asArray=function(t,n,r){return se.map(se.keys(t),function(i){return n.call(r,t[i],i,t)},r)};var K=se,ha=function(t){for(var n=[null],r,i=t.split("."),a=0;a<i.length;a++)r=i.slice(a,i.length).join("."),n.push(r,"."+r);return n},va=function(t){t=t.replace(/\/$/,"").split("/");for(var n=[null],r=0;r<t.length;r++)n.push(t.slice(0,r+1).join("/")||"/");return n},ma="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s+|\s+$)/gi,"")},ga=ha,ba=va,mn=ma;function gn(e){return Lt(e)}function bn(e,t,n){var r=e+"="+t+";";n=n||{},n.expires&&(r+="Expires="+new Date(n.expires).toUTCString()+";"),n.path&&(r+="Path="+n.path+";"),n.domain&&(r+="Domain="+n.domain+";"),document.cookie=r}function _a(e){var t=e.indexOf("=");return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}function Lt(e){var t=document.cookie,n=[];if(!t)return n;for(var r,i=t.split(";"),a=0;a<i.length;a++){r=_a(i[a]);var o=mn(r[0]);(!e||o===e)&&n.push({name:o,value:mn(r[1])})}return n}function _n(e,t){var n=Lt().length;return t=t||{},t.expires=new Date(1),bn(e,"",t),Lt().length!==n}function ya(e){for(var t=[],n=ba(window.location.pathname),r=ga(window.location.hostname),i=0;i<r.length;i++)for(var a=0;a<n.length;a++)_n(e,{path:n[a],domain:r[i]})&&t.push({domain:r[i],path:n[a]});return t}function $a(e){var t=gn(e);return t.length?t[0].value:null}var dr={get:gn,set:bn,cookies:Lt,clear:_n,clearAll:ya,val:$a},Rt=ka;function ka(){var e={};return{on:t,emit:n,off:r};function t(s,u){return e[s]=e[s]||[],e[s].push(u),{dispose:c};function c(){e[s]=i(e[s],function(w){return u===w})}}function n(s,u){a(e[s]||[],u)}function r(){e={}}function i(s,u){var c=[];return o(s,function(w){u(w)||c.push(w)}),c}function a(s,u){o(s,function(c){c(u)})}function o(s,u){for(var c=0;c<s.length;c++)u(s[c])}}var Je={session:{type:"session",cookieName:"qb_session",expires:30*(1e3*60),exclude:[]},permanent:{type:"permanent",cookieName:"qb_permanent",expires:1*(1e3*60*60*24*365),exclude:[]},generic:{type:"generic",cookieName:"qb_generic",expires:1*(1e3*60*60*24*365),exclude:[]},topLevelSeperator:":",seperators:["&","="]},xa=K,Ea=Je,Sa={qb_permanent:[Ia,Na],qb_session:[]},Ta=function(t,n,r,i){var a=Sa[r];return a?xa.reduce(a,function(o,s){return s(o,n,r,i)},t):t},Aa=/^((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))$/;function Na(e,t,n,r){for(var i,a=0;a<t.length;a++)if(t[a].name==="ipAddress"){i=a;continue}var o=e.split(Ea.topLevelSeperator);if(o.length<=t.length)return e;for(var s=8;s>3;s--){var u=o.slice(i,i+s).join(":");if(Aa.test(u))return r.emit("debug",{type:"ipv6Fix",cookieName:n,value:e}),e.replace(u,encodeURIComponent(u))}return e}var Ca=new RegExp("migrated\\|("+new Date().toString().replace(/[a-z]/g,"[a-z]").replace(/[A-Z]/g,"[A-Z]").replace(/\d/g,"\\d").replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\+/g,"\\+")+"):");function Ia(e,t,n,r){return e.replace(Ca,function(i,a){return r.emit("debug",{type:"dateBugFix",cookieName:n,value:e}),"migrated|"+new Date(a).getTime()+":"})}var za=K,La=Je,Ra=Ta,Oa=function(t,n,r){return function(a){a=Ra(a,t,n,r);var o=a.split(La.topLevelSeperator);return za.reduce(t,function(s,u,c){var w=o[c]===""?void 0:o[c];if(u.getter)try{w=u.getter(w)}catch(y){throw r.emit("debug",{type:"getterError",cookieName:n+"."+u.name,value:a}),y}return s[u.name]=w,s},{})}},Be={exports:{}};(function(e){var t={stringify:function(){var o,s,u=n();try{s=JSON.stringify.apply(JSON,arguments)}catch(c){o=c}if(u.restore(),o)throw o;return s},parse:function(){return JSON.parse.apply(JSON,arguments)}};e.exports?e.exports=t:window.jsonBourne=t;function n(){var a=Array.prototype.toJSON,o=Date.prototype.toJSON;return delete Array.prototype.toJSON,Date.prototype.toJSON=function(){return r(this)},{restore:function(){a!==void 0&&(Array.prototype.toJSON=a),o!==void 0?Date.prototype.toJSON=o:delete Date.prototype.toJSON}}}function r(a){return isFinite(a.valueOf())?a.getUTCFullYear()+"-"+i(a.getUTCMonth()+1)+"-"+i(a.getUTCDate())+"T"+i(a.getUTCHours())+":"+i(a.getUTCMinutes())+":"+i(a.getUTCSeconds())+"."+i(a.getUTCMilliseconds())+"Z":null}function i(a){var o=String(a);return o.length===1&&(o="0"+o),o}})(Be);var Da=K,wr="qubit_logger",yn="__dwTest__",Ot="";function Dt(){try{return window.localStorage.setItem(yn,1),window.localStorage.removeItem(yn),!0}catch{return!1}}function Pa(e,t){t=Da.assign({persist:!1},t),t.persist&&Dt()?window.localStorage.setItem(wr,e):Ot=e}function Ma(){if(Ot||!Dt())return Ot;if(Dt())return window.localStorage.getItem(wr)||""}function Ba(){Dt()&&window.localStorage.removeItem(wr),Ot=""}var Ua={set:Pa,get:Ma,reset:Ba},Pt={exports:{}};(function(e){e.exports={DEFAULT:"info",NAMES:["trace","debug","info","warn","error"],INDEX:{}};for(var t=0;t<e.exports.NAMES.length;t++)e.exports.INDEX[e.exports.NAMES[t]]=t})(Pt);var $n=K,kn=Be.exports,xn=Ua,En=Pt.exports;function Fa(){try{var e=xn.get();return e&&kn.parse(e)||{}}catch{return{}}}function qa(e,t){try{var n=kn.stringify(e);xn.set(n,t)}catch{}}function Va(e,t){var n=$n.keys(t);return!!$n.find(n,function(r){return Sn(r,e)})}function ja(e,t){for(var n in t)if(Sn(n,e))return t[n]||En.DEFAULT;return En.DEFAULT}function Sn(e,t){var n=new RegExp("^"+e.replace(/\*/g,".*")+"$");return n.test(t)}var Qa={get:Fa,set:qa,match:Va,getLevel:ja},Ha=function(t){t=[].slice.apply(t);var n=t[t.length-1],r=n instanceof Error||Ga(n),i=!r&&n&&typeof n=="object",a=r||i?t.slice(0,-1):t,o=a.join(" ");i&&!o&&(o="metadata:"),r&&!o&&(o=n.message);var s={message:o};return r&&n&&(s.error=n),i&&n&&(s.metadata=n),s};function Ga(e){return e&&!!e.stack&&!!e.message}var Ka=function(t,n){var r=[t].concat(n);return function(a,o,s,u){for(var c=0;c<r.length;c++)r[c](a,o,s,u)}},Te=K,Ue=Qa,Mt=Pt.exports,Za=Ha,Xa=Ka;function pr(){}var Ya=function(t){var n={loggers:[],enabled:!1};return r.enable=function(a,o){n.enabled=!0,a&&Ue.set(a,o),Te.invoke(n.loggers,"enable",a)},r.disable=function(){n.enabled=!1,Ue.set({}),Ue.set({},{persist:!0}),Te.invoke(n.loggers,"disable")},r.destroy=function(){for(;n.loggers.length;)n.loggers.pop().destroy()},r.LEVELS=Mt,r;function r(i,a,o){if(!i)throw new Error("name required");var s=Ue.get(),u={enabled:n.enabled||Ue.match(i,s),level:Ue.getLevel(i,s),children:[]},c=a&&a.length>0?Xa(t,a):t,w=function(d,f,v){if(w.enable===pr)throw new Error(i+" was destroyed");var h=r(i+":"+d,(a||[]).concat(f||[]),(o||[]).concat(v||[]));return u.enabled&&h.enable(u.flags),u.children.push(h),h};return w.enable=function(d){u.enabled=!0,u.flags=d,d&&(u.level=Ue.getLevel(i,d)),p(),Te.invoke(u.children,"enable",d)},w.disable=function(){u.enabled=!1,p(),Te.invoke(u.children,"disable")},w.destroy=function(){for(w.enable=pr,w.disable(),n.loggers=Te.filter(n.loggers,function(d){return d!==w});u.children.length;)u.children.pop().destroy()},p(),n.loggers.push(w),w;function y(l){if(o&&o.length>0)for(var d=0;d<o.length;d++){var f=o[d].apply(void 0,l);Te.isArray(f)&&f.length===4?l=f:Te.isObject(f)?l[3]=f:typeof f=="string"&&(l[3].message=f)}return l}function p(){Te.each(Mt.NAMES,function(d){var f=Mt.INDEX[d];w[d]=u.enabled?function(){if(f>=Mt.INDEX[u.level]){var h=[i,d,new Date,Za(arguments)];h=y(h);try{c.apply(void 0,h)}catch{}}}:pr})}}},hr={exports:{}},Ja=function(t,n){for(var r=-1,i=n-t.length;++r<i;)t+=" ";return t},Tn=K,Wa=Pt.exports,An=Ja,W=window.console,eo={trace:"#6C7A89",debug:"#87D37C",info:"#446CB3",warn:"#E87E04",error:"#F22613"};function to(){var e=Math.floor(Math.random()*360),t=Math.floor(Math.random()*100)+"%",n=Math.floor(Math.random()*66)+"%";return["hsl(",e,",",t,",",n,")"].join("")}function ro(){return!Tn.find(Wa.NAMES,function(e){return!W[e]})}function no(){return W.groupCollapsed&&W.groupEnd}function io(){return W.timeline&&W.table&&!window.__karma__}hr.exports=function(){if(!W)return function(){};var t=ro(),n=no(),r=io(),i=to();return function(o,s,u,c){n&&c.metadata?(r?W.groupCollapsed.apply(W,y()):W.groupCollapsed(w()),Tn.objectEach(c.metadata,function(p,l){W.log(l,p)}),W.groupEnd()):c.message&&(t?r?W[s].apply(W,y()):W[s](w()):W.log(w())),c.error&&(t?W.error(c.error):W.log(c.error));function w(){return An(s.toUpperCase(),5)+" ["+o+"]: "+c.message}function y(){return["%c"+An(s.toUpperCase(),5)+"%c %c["+o+"]%c: "+c.message,"font-weight:bold;color:"+eo[s]+";","","font-weight:bold;color:"+i+";",""]}}};hr.exports.__stubConsole__=function(e){var t=W;return W=e,function(){W=t}};var vr=Ya(hr.exports()),ao=vr,Nn=ao("biscotti"),Cn=new Error("Error: recurses! infinite promise chain detected"),Fe=function e(t){var n={res:[],rej:[]},r={then:i,catch:function(u){return i(null,u)}};try{t(a,o)}catch(s){r.status=!1,r.value=s}return r;function i(s,u){return e(function(c,w){n.res.push(In(r,n,s,c,w,u)),n.rej.push(In(r,n,u,c,w,u)),typeof r.status!="undefined"&&mr(n,r)})}function a(s){if(typeof r.status=="undefined"){if(s===r)throw Cn;if(s)try{if(typeof s.then=="function")return s.then(a,o)}catch{}r.status=!0,r.value=s,mr(n,r)}}function o(s){if(typeof r.status=="undefined"){if(s===r)throw Cn;r.status=!1,r.value=s,mr(n,r)}}};function mr(e,t){for(var n=t.status?e.res:e.rej;n.length;)n.shift()(t.value)}function In(e,t,n,r,i,a){return function(s){try{return s=n?n(s):s,e.status||a?r(s):i(s)}catch(u){i(u)}}}var oo=Fe,so=function(t){return oo(function(n,r){var i,a=i=t&&t.length;if(!a)return n(t);for(;i--;)o(t[i],i);function o(s,u){if(s&&typeof s.then=="function")return s.then(function(w){t[u]=w,--a||n(t)},r);--a||n(t)}})},gr=Fe,co=function(t){function n(r){return gr(function(i,a){gr.resolve(r).then(a,i)})}return n(gr(function(r,i){var a,o=a=t&&t.length;if(!o)return i(t);for(var s=0;s<a;s++)u(t[s],s);function u(c,w){if(c&&typeof c.then=="function")return n(c.then(i,function(p){t[w]=p,--o||r(t)}));i(c)}}))},zn=Fe,uo=function(t){return zn(function(n,r){var i=t&&t.length;if(!!i)for(var a=0;a<i;a++)zn.resolve(t[a]).then(n,r)})},lo=Fe,Ln=function(t){return lo(function(n){n(t)})},fo=Fe,wo=function(t){return fo(function(n,r){r(t)})},po=Fe,br=function(){var t,n,r=po(function(i,a){t=i,n=a});return{promise:r,resolve:t,reject:n}},qe=Fe;qe.all=so;qe.any=co;qe.race=uo;qe.resolve=Ln;qe.reject=wo;qe.defer=br;var Rn=qe,ho=Nn("envoy"),Bt=K,We=Rn,vo=Rt,Ae=ho,mo=function(t,n){var r=[],i=!1,a=vo();return{connect:s,disconnect:u};function o(l){Ae.info("postmessage from iframe: "+(l.origin||l.originalEvent.origin)+":"+l.data);var d;try{d=JSON.parse(l.data.match(/^biscotti-iframe:(.*)/)[1])}catch{}!d||(d.type==="log"&&Ae("iframe")[d.level](d.body),d.type==="response"&&a.emit("response",d),d.type==="ready"&&a.emit("ready",{domain:d.domain}))}function s(){if(t.length===0)return We.resolve([]);if(i)throw new Error("Can't connect twice");return w(window,"message",o),i=!0,n=n||{},n.timeout=n.timeout||2e3,p().then(function(){return We.all(Bt.map(t,function(f){return d(f).then(function(v){return v.ready?l(v,"connected").then(function(h){return v.connected=h,v.getState=Bt.bind(l,null,v,"getState"),v.setState=Bt.bind(l,null,v,"setState"),Ae.info("iframe connected"),v},function(){return Ae.warn("iframe ready but not connected"),v}):v})})).then(function(f){return r=f,f})});function l(f,v,h){return new We(function(g,b){var _=c();Ae.info("calling method in iframe "+f.config.url+" with id "+_),Ae.info("method name: "+v),Ae.info("method data: "+JSON.stringify(h)),f.el.contentWindow.postMessage("biscotti:"+JSON.stringify({id:_,method:v,options:h}),f.config.url);var T=a.on("response",function(B){B.id===_&&(T.dispose(),g(B.value))});setTimeout(function(){T.dispose(),b(new Error("iframe did not respond in time"))},n.timeout)})}function d(f){return new We(function(v){var h=a.on("ready",function(_){_.domain===f.domain&&(Ae.info("iframe ready: "+f.url),g.ready=!0,b())});setTimeout(b,n.timeout);var g={config:f,connected:!1,ready:!1};g.el=document.createElement("iframe"),g.el.width="1px",g.el.height="1px",g.el.style.border="none",g.el.style.position="absolute",g.el.style.left="-100px",g.el.src=f.url+(/\?/.test(f.url)?"&":"?")+"cookieDomain="+f.domain,document.body.appendChild(g.el);function b(){h.dispose(),v(g)}})}}function u(){Bt.each(r,function(l){l.el.parentElement.removeChild(l.el)}),y(window,"message",o),i=!1,r=[]}function c(){return Math.round(Math.random()*1e16)}function w(l,d,f){l.attachEvent?(l["e"+d+f]=f,l[d+f]=function(){l["e"+d+f](window.event)},l.attachEvent("on"+d,l[d+f])):l.addEventListener(d,f,!1)}function y(l,d,f){l.detachEvent?(l.detachEvent("on"+d,l[d+f]),l[d+f]=null):l.removeEventListener(d,f,!1)}function p(){return document.body?We.resolve():new We(function(l){var d=setInterval(function(){document.body&&(l(),clearInterval(d))},200)})}},et=K,tt=Nn,go=mo,On=Rn,bo=function(t){var n=[];return r.disconnect=function(){et.each(n,function(i){i.disconnect()}),n=[]},r;function r(i){i.exclude=i.exclude||{},i.exclude.permanent=i.exclude.permanent||[],i.exclude.session=i.exclude.session||[],Ut(i.iframes instanceof Array,"options.iframes required to sync"),i.iframes=et.filter(i.iframes,function(o){Ut(o.domain,"each iframe requires a domain"),Ut(o.url,"each iframe requires a url");var s=window.location.hostname===o.domain.replace(/^\./,"");return s&&tt.warn("iframe from same domain as biscotti "+o.domain+" excluded from sync"),!s}),Ut(i.iframes.length,"more than one options.iframes on a different domain are required to sync");var a=go(i.iframes,{timeout:2e3});return n.push(a),a.connect().then(function(o){var s=et.filter(o,function(w){return w.connected});if(s.length===0)return tt.info("no cross domain iframes connected");var u=!t.session.get("iframesInSync")||i.thirdParty;return(u?c():On.resolve()).then(function(){tt.info("cross domain iframes synced"),i.write&&t.onWrite(function(y){y.exclude=i.exclude[y.type],tt.info("writing data to cross domain iframes"),et.each(s,function(p){p.setState(y)})})});function c(){return tt.info("syncing to cross domain iframes"),On.all(et.map(s,function(w){return w.getState().then(function(y){var p,l;try{p=t.session.parseCookieString(y.session),l=t.permanent.parseCookieString(y.permanent)}catch(d){tt.error(d)}return{iframe:w,values:{session:p,permanent:l},cookieStrings:y}})})).then(function(w){var y;et.each(w,function(p){p.values.session&&p.values.permanent&&(!y||p.values.permanent.updatedAt>y.values.permanent.updatedAt)&&(y=p)}),y&&y.values.permanent.updatedAt>t.permanent.get("updatedAt")&&(t.session.hydrate(y.cookieStrings.session,i.exclude.session),t.permanent.hydrate(y.cookieStrings.permanent,i.exclude.permanent)),t.session.set("iframesInSync",!0)})}})}};function Ut(e,t){if(!e)throw new Error(t);return e}var _r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yr={encode:function(t){return Dn(t)+Pn(yo(Math.abs(t),64),function(n){return _r.charAt(n)}).join("")||_r.charAt(0)},decode:function(t){return(Dn(t)?-1:1)*_o(Pn(t.replace(/^-/,"").split(""),function(n){return _r.indexOf(n)}),64)}};function _o(e,t){for(var n=0,r=0;r<e.length;r++)n+=Math.pow(t,e.length-1-r)*e[r];return n}function Dn(e){return String(e).charAt(0)==="-"?"-":""}function yo(e,t){for(var n=[];e>0;){var r=e%t;n.unshift(r),e=(e-r)/t}return n}function Pn(e,t){for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var Mn=K,rt=yr,Ft=Je,$o=[{name:"sessionViewNumber",getter:$r},{name:"visitorIsSynced",getter:function(e){return Boolean(Number(e))},setter:Number},{name:"eventNumber",getter:$r},{name:"experienceState",getter:nt(xo,void 0),setter:nt(ko,void 0)},{name:"iframesInSync",getter:function(e){return Boolean(Number(e))},setter:Number},{name:"sessionTs",getter:nt(rt.decode,void 0),setter:nt(rt.encode,void 0)},{name:"sessionConversionNumber",getter:$r},{name:"auraShowCount",getter:nt(Number,0)},{name:"auraViewCount",getter:nt(Number,0)},{name:"auraMyPicksNotificationSeen",getter:function(e){return Boolean(Number(e))},setter:Number},{name:"domain"}];function $r(e){return e?Number(e):0}function ko(e){return Mn.objectMap.asArray(e,function(t,n){return[rt.encode(n),rt.encode(t.timesActivated)].join(Ft.seperators[1])}).join(Ft.seperators[0])}function xo(e){return Mn.reduce(e.split(Ft.seperators[0]),function(t,n){n=n.split(Ft.seperators[1]);var r=rt.decode(n[0]);return t[r]={timesActivated:rt.decode(n[1])},t},{})}function nt(e,t){return function(n){return n===void 0?t:e(n)}}var Ne=K,ee=yr,ve=Je,Bn=(2010-1970)*(365*24*60*60*1e3),Eo=[{name:"visitorId"},{name:"viewNumber",getter:C(Number,0)},{name:"entranceViewNumber",getter:C(Number,0)},{name:"sessionNumber",getter:C(Number,0)},{name:"entranceNumber",getter:C(Number,0)},{name:"eventNumber",getter:C(Number,0)},{name:"deliverCloseTime",getter:C(So,[]),setter:C(To,void 0)},{name:"conversionNumber",getter:C(Number,0)},{name:"conversionCycleNumber",getter:C(Number,1)},{name:"lifetimeValue",getter:C(Number,0)},{name:"firstViewTs",getter:C(qt,void 0),setter:C(Vt,void 0)},{name:"lastViewTs",getter:C(qt,void 0),setter:C(Vt,void 0)},{name:"firstConversionTs",getter:C(qt,void 0),setter:C(Vt,void 0)},{name:"lastConversionTs",getter:C(qt,void 0),setter:C(Vt,void 0)},{name:"visitorHistory"},{name:"currency"},{name:"ipAddress",getter:C(decodeURIComponent,void 0),setter:C(encodeURIComponent,void 0)},{name:"city",getter:C(decodeURIComponent,void 0),setter:C(encodeURIComponent,void 0)},{name:"cityCode",getter:C(decodeURIComponent,void 0),setter:C(encodeURIComponent,void 0)},{name:"country",getter:C(decodeURIComponent,void 0),setter:C(encodeURIComponent,void 0)},{name:"countryCode",getter:C(decodeURIComponent,void 0),setter:C(encodeURIComponent,void 0)},{name:"latitude",getter:C(Number,void 0)},{name:"longitude",getter:C(Number,void 0)},{name:"area",getter:C(decodeURIComponent,void 0),setter:C(encodeURIComponent,void 0)},{name:"areaCode",getter:C(decodeURIComponent,void 0),setter:C(encodeURIComponent,void 0)},{name:"region",getter:C(decodeURIComponent,void 0),setter:C(encodeURIComponent,void 0)},{name:"regionCode",getter:C(decodeURIComponent,void 0),setter:C(encodeURIComponent,void 0)},{name:"visitorState"},{name:"experienceState",getter:C(Co,void 0),setter:C(Ao,void 0)},{name:"experienceSegmentations",getter:C(Lo,void 0),setter:C(zo,void 0)},{name:"updatedAt",getter:C(ee.decode,0),setter:C(ee.encode,void 0)},{name:"entranceTs",getter:C(ee.decode,void 0),setter:C(ee.encode,void 0)},{name:"auraViewCount",getter:C(Number,0)},{name:"auraShowCount",getter:C(Number,0)},{name:"auraPinCount",getter:C(Number,0)},{name:"auraPreferredCategory",getter:C(decodeURIComponent,void 0),setter:C(encodeURIComponent,void 0)},{name:"auraCookieMigrated",getter:function(e){return Boolean(Number(e))},setter:Number},{name:"auraHasUsedMyPicks",getter:function(e){return Boolean(Number(e))},setter:Number},{name:"domain"},{name:"auraFeedShown",getter:function(e){return Boolean(Number(e))},setter:Number}];function So(e){return Ne.map(e.split(ve.seperators[0]),function(t){var n=Ne.map(t.split(ve.seperators[1]),ee.decode),r=n[1],i=Oo(r,{level:"minute"});return{experimentId:n[0],expiration:i}})}function To(e){return Ne.map(e,t).join(ve.seperators[0]);function t(r){return Ne.map([r.experimentId,Ro(r.expiration,{level:"minute"})],n).join(ve.seperators[1])}function n(r){return ee.encode(Number(r))}}function Ao(e){return Ne.objectMap.asArray(e,function(t,n){var r=[ee.encode(n),No(t.probability),ee.encode(t.timesActivated),ee.encode(t.iterationId)];return t.pid&&r.push(ee.encode(t.pid*1e3)),r.join(ve.seperators[1])}).join(ve.seperators[0])}function No(e){return typeof e=="number"?ee.encode(e*1e3):""}function Co(e){return Ne.reduce(e.split(ve.seperators[0]),function(t,n){n=n.split(ve.seperators[1]);var r=ee.decode(n[0]);return t[r]={probability:Io(n[1]),timesActivated:ee.decode(n[2]),iterationId:ee.decode(n[3])},n[4]&&(t[r].pid=ee.decode(n[4])/1e3),t},{})}function Io(e){return e.length?ee.decode(e)/1e3:null}function zo(e){return Ne.map(e,function(t){return ee.encode(t)}).join(ve.seperators[0])}function Lo(e){return Ne.map(e.split(ve.seperators[0]),function(t){return ee.decode(t)})}function Ro(e,t){if(t.level==="minute")return n(r(Number(e)));function n(i){return Math.ceil(i/(1e3*60))}function r(i){return i-Bn}}function Oo(e,t){if(t.level==="minute")return n(r(e));function n(i){return i+Bn}function r(i){return i*1e3*60}}function C(e,t){return function(n){return n===void 0?t:e(n)}}function qt(e){return ee.decode(e)*1e3}function Vt(e){return ee.encode(Math.round(e/1e3))}var jt=K,Qt=yr,me=Je,Do=[{name:"keyValue",getter:kr(Bo,{}),setter:Po,validateSet:Mo},{name:"updatedAt",getter:kr(Qt.decode,0),setter:kr(Qt.encode,void 0)},{name:"domain"}];function kr(e,t){return function(n){return n===void 0?t:e(n)}}function Po(e){return typeof e=="undefined"?e:jt.objectMap.asArray(e,function(t,n){var r=t.value,i=Uo(t.expires);return[n,encodeURIComponent(r),i].join(me.seperators[1])}).join(me.seperators[0])}function Mo(e){if(typeof e!="object")throw new Error("Expected object for keyValues in generic cookie index");return jt.objectEach(e,function(t,n){var r=t.value;if(typeof r!="string")throw new Error("Value for "+n+" must be a string");if(n.indexOf(me.seperators[0])>-1)throw new Error("Generic cookie index key for "+n+' cannot contain "'+me.seperators[0]+'"');if(n.indexOf(me.seperators[1])>-1)throw new Error("Generic cookie index key for "+n+' cannot contain "'+me.seperators[1]+'"');if(n.indexOf(me.topLevelSeperator)>-1)throw new Error("Generic cookie index key for "+n+' cannot contain "'+me.topLevelSeperator+'"');var i=t.expires;if(i!==null&&typeof i!="number")throw new Error("Generic cookie index key for "+n+" had invalid expires, should be a number or null");if(typeof i=="number"&&isNaN(i))throw new Error("Generic cookie index key for "+n+" had invalid expires, value is NaN")})}function Bo(e){var t=jt.map(e.split(me.seperators[0]),function(n){var r=n.split(me.seperators[1]);return{key:r[0],value:decodeURIComponent(r[1]),expires:Fo(r[2])}});return jt.reduce(t,function(n,r){return n[r.key]={value:r.value,expires:r.expires},n},{})}function Uo(e){return e===null?"%":Qt.encode(e)}function Fo(e){return e==="%"?null:Qt.decode(e)}var oe=K,it=dr,qo=Rt,Vo=Oa,Ve=Je,jo=bo,Nl=function(t){typeof t=="string"&&(t={domain:t,onDebugEvent:arguments[1]});var n=t.domain||document.domain,r=qo();t.onDebugEvent&&s(t.onDebugEvent);var i=c(t),a=w(t),o=y(t);return{onWrite:oe.bind(r.on,r,"write"),onDebugEvent:s,session:i,generic:o,permanent:a,persists:u(),flush:function(){a.flush(),i.flush(),o.flush()},crossDomainSync:jo({session:i,permanent:a,onWrite:oe.bind(r.on,r,"write")}),destroy:function(){a.destroy(),i.destroy(),o.destroy()}};function s(l){return r.on("debug",l)}function u(){var l;it.set("qb_persist_test","123",{expires:Fn(24*60*60*1e3),domain:n,path:"/"});var d=it.get("qb_persist_test")[0];return l=(d&&d.value)==="123",it.clear("qb_persist_test",{domain:n,path:"/"}),l}function c(l){return p(l.domain,oe.assign({index:$o},Ve.session,l.session))}function w(l){return p(l.domain,oe.assign({index:Eo},Ve.permanent,l.permanent))}function y(l){return p(l.domain,oe.assign({index:Do},Ve.generic,l.generic))}function p(l,d){var f={},v=!0,h=!1,g,b=Vo(d.index,d.cookieName,r);f=b("");var _={set:A,get:x,flush:B,reset:H,getAll:R,hydrate:P,serialize:N,parseCookieString:b,serializeCookieHash:V,destroy:Z};function T(){clearTimeout(g),g=setTimeout(B,0)}return _;function B(){h&&Q(),v=!0}function Z(){clearTimeout(g),it.clear(d.cookieName,{domain:l,path:"/"})}function A(S,D){var z={};if(oe.isObject(S))z=Un(S,d.exclude||[]);else{if(d.exclude&&d.exclude.indexOf(S)>-1)return;z[S]=D}X(z),h=!0,z.updatedAt=Qo(),v&&L(U(d.cookieName)),oe.assign(f,z)}function x(S){var D=oe.find(d.index,function(z){return z.name===S},{});if(!D)throw new Error(S+" not found in the cookie index");return R()[S]}function R(){return T(),v&&L(U(d.cookieName)),oe.assign({},f)}function H(){L(b(""))}function U(S){for(var D=it.get(S),z,k=0;k<D.length;k++){var I;try{I=b(D[k].value)}catch{r.emit("debug",{type:"corruptCookieReset",cookieName:d.cookieName,value:D[k].value}),L(Y(D[k].value)),I=f}if(I.domain===l){z=I;break}else I.domain||(z=I)}return z}function Q(){var S;if(f.domain)S=N();else{var D=f;f=oe.assign({},f,{domain:l}),S=N(),f=D}try{b(S)}catch(z){throw r.emit("debug",{type:"badEncoding",cookieName:d.cookieName,value:f}),z}S.length>2e3&&r.emit("debug",{type:"longCookie",cookieName:d.cookieName,value:S.length}),it.set(d.cookieName,S,{expires:Fn(d.expires),domain:l,path:"/"}),h=!1,r.emit("write",{type:d.type,cookieString:S})}function X(S){oe.objectEach(S,function(D,z){var k=oe.find(d.index,function(I){return I.name===z},{});if(!k)throw new Error(z+" not found in the cookie index");k.validateSet&&k.validateSet(D)})}function N(){return R(),V(f)}function L(S,D){D=[].concat(D||[],d.exclude),S&&oe.assign(f,Un(S,D)),v=!1,T()}function P(S,D){S!==N()&&(L(b(S),D),h=!0)}function V(S){return oe.map(d.index,function(D){var z=S[D.name];if(D.setter&&(z=D.setter(z)),z=z===void 0?"":z,typeof z=="string"&&z.indexOf(Ve.topLevelSeperator)>-1){var k=d.cookieName+"."+D.name;throw r.emit("debug",{type:"valueContainsSeparator",cookieName:k,value:z}),new Error("Encountered top level separator in biscotti value: "+k)}return z}).join(Ve.topLevelSeperator)}function Y(S){for(var D=S.split(Ve.topLevelSeperator);D.length>1;)try{D.pop();var z=b(D.join(Ve.topLevelSeperator));return r.emit("debug",{type:"recoveredCorruptCookie",cookieName:d.cookieName,value:z}),z}catch{continue}return b("")}}};function Un(e,t){return oe.objectReduce(e,function(n,r,i){return oe.indexOf(t,i)===-1&&(n[i]=r),n},{})}function Fn(e){var t=new Date().getTime();return new Date(t+e).getTime()}function Qo(){return new Date().getTime()}var Ho=0,Go=Ko;function Ko(){return[qn(),Zo(),qn().slice(4)].join("-")}function qn(){var e=Math.round(1*1e17);return Vn(Math.round(Math.random()*1e17),e)}function Zo(){var e=new Date;return e.setFullYear("2239"),Vn(new Date().getTime()+Ho++%1e4,e.getTime())}function Vn(e,t){return Xo(e.toString(36),t.toString(36).length)}function Xo(e,t){return n(t-String(e).length)+e;function n(r){var i=Math.max(r+1,1),a=new Array(i);return a.join("0")}}var jn={exports:{}};(function(e){(function(){e.exports?e.exports=n:window&&window.uv===void 0&&(window.uv=n());function n(){var r=[],i=0,a={info:function(){a.level>s.INFO||console&&console.info&&console.info.apply(console,arguments)},error:function(){a.level>s.ERROR||console&&console.error&&console.error.apply(console,arguments)}};s.ALL=0,s.INFO=1,s.ERROR=2,s.OFF=3,s(s.ERROR);var o={on:c,emit:u,once:p,events:[],listeners:[],logLevel:s};return o;function s(h){a.level=h}function u(h,g){a.info(h,"event emitted"),g=d(g||{}),g.meta=g.meta||{},g.meta.type=h,r.push(g),y(),o.listeners=v(o.listeners,function(b){return!b.disposed})}function c(h,g,b){a.info("Attaching event handler for",h);var _={type:h,callback:g,disposed:!1,context:b||window};o.listeners.push(_);var T={replay:B,dispose:Z};return T;function B(){return a.info("Replaying events"),w(function(){l(o.events,function(A){_.disposed||!f(h,A.meta.type)||g.call(b,A)})}),T}function Z(){return a.info("Disposing event handler"),_.disposed=!0,T}}function w(h){a.info("Calling event handlers"),i++;try{h()}catch(g){a.error("UV API Error",g.stack)}i--,y()}function y(){if(r.length===0&&a.info("No more events to process"),r.length>0&&i>0&&a.info("Event will be processed later"),r.length>0&&i===0){a.info("Processing event");var h=r.shift();o.events.push(h),w(function(){l(o.listeners,function(g){if(!g.disposed&&!!f(g.type,h.meta.type))try{g.callback.call(g.context,h)}catch(b){a.error("Error emitting UV event",b.stack)}})})}}function p(h,g,b){var _=o.on(h,function(){g.apply(b||window,arguments),_.dispose()});return _}function l(h,g){for(var b=h.length,_=0;_<b;_++)g(h[_],_)}function d(h){var g={};for(var b in h)h.hasOwnProperty(b)&&(g[b]=h[b]);return g}function f(h,g){return typeof h=="string"?h===g:h.test(g)}function v(h,g){for(var b=h.length,_=[],T=0;T<b;T++)g(h[T])&&_.push(h[T]);return _}}})()})(jn);var Cl=jn.exports,Qn={exports:{}};(function(){function e(i,a,o,s){for(o=a=0;s=i.split(".")[a++];o+=s>>8|a>4?NaN:s*(1<<-8*a))s=parseInt(+s&&s);return o}function t(i){return 1<<-1<=i&&i<4294967296&&[i>>>24,255&i>>>16,255&i>>>8,255&i].join(".")}function n(i,a){if(a.indexOf("/")<0)return i==a;var o=a.split("/");if(o.length!=2)return console.log("Failed to match CIDR-range on '/'"),!1;for(;o[0].split(".").length<4;)o[0]+=".0";var s=0;s=32-parseInt(o[1],10),s=Math.pow(2,s);var u=e(o[0]),c=u+s,w=e(i);return w<c&&w>=u}var r={};r.cidr_match=n,r.long2ip=t,r.ip2long=e,Qn.exports=r})();const Yo="@qubit/jolt",Jo="7.68.2",Wo="",es="lib/createJolt.js",ts="types/jolt.d.ts",rs={test:"make test"},ns={type:"git",url:"https://github.com/qubitdigital/jolt.git"},is="",as="ISC",os={url:"https://github.com/qubitdigital/jolt/issues"},ss="https://github.com/qubitdigital/jolt",cs={"@qubit/biscotti":"^5.10.1","@qubit/uv-api":"^4.0.1","aws-sdk":"^2.92.0",colors:"^1.0.3",commander:"^2.11.0",cors:"^2.8.5",express:"^4.16.4","inject-loader":"^2.0.0",karma:"^6.0.0","karma-chrome-launcher":"^3.0.0","karma-expect":"^1.1.3","karma-mocha":"^2.0.0","karma-safari-private-launcher":"^1.0.0","karma-sauce-launcher":"^2.0.0","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.7","karma-spec-reporter":"0.0.31","karma-webpack":"^4.0.0",lodash:"^4.0.0",mocha:"^6.0.0","node-libs-browser":"^0.5.2",pako:"^1.0.10","raw-body":"^2.4.0",rewire:"^4.0.0",s3:"^4.0.0",say:"^0.16.0",semver:"^5.4.1",sinon:"1.17.3","socket.io":"^2.0.3","socket.io-client":"^2.0.3",standard:"^11.0.0",webpack:"^4.0.0"},us={"@qubit/funnelweb":"^1.0.0","@qubit/get-ga-client-id":"^1.0.0","@qubit/http-api-gong":"^1.1.0","@qubit/http-api-lookup":"^2.7.1","@qubit/ua-parser-js":"^0.7.13",cidr_match:"0.0.7",cookieman:"^1.0.4",driftwood:"^1.1.0","event-kitten":"^1.0.2","json-bourne":"^1.0.1","queue-that":"^2.9.0","really-unique-id":"^1.2.1",slapdash:"^1.3.0","sync-p":"^1.1.1"},ls={ignore:["dist/*"]};var fs={name:Yo,version:Jo,description:Wo,main:es,types:ts,scripts:rs,repository:ns,author:is,license:as,bugs:os,homepage:ss,devDependencies:cs,dependencies:us,standard:ls},ds=vr,Ht=ds("jolt"),xr={defaults:{trackingId:!1,domains:!1,uv:!1,prongEnv:"production",gongHost:null,lookupEnv:"production",deflate:!0,batchSize:15,biscotti:!1,maxQueueLength:100,eventsToKeep:[/qubit\.(session|entrance|debug|goalAchieved)/,/^([^.]+\.)?[a-z]{2}View$/,/transaction/i],ipBlacklist:[],disableTracking:!1,selfReferralPatterns:[],dataLocation:"EU",waitForLookup:!0,lite:!1,bundleId:!1,intercept:null,useQubitAPI:!1,collectProductListing:!1},patterns:{view:/^([^.]+\.)?[a-z]{2}View$/,transaction:/^([^.]+\.)?[a-z]{2}(Basket|Betslip|Package)TransactionSummary/,liteEvent:/^qubit.(experience|goalAchieved|session|entrance|surveyResponseItem|feedback)$/,ecProduct:/^(.)*ecProduct$/},maxUrlLength:2048,eventExpiration:24*7,gaTrackingId:null},ws=vr,ps=ws("queue-that"),Gt=Be.exports,hs="* - Queue",vs="* - Active Queue",ms="* - Backoff Time",gs="* - Error Count",bs="* - Queue Processing",Hn=_s;function _s(e){var t=hs.replace("*",e),n=vs.replace("*",e),r=ms.replace("*",e),i=gs.replace("*",e),a=bs.replace("*",e),o=!0,s=!1,u=[],c={getQueue:y,setQueue:p,getErrorCount:l,getBackoffTime:d,setErrorCount:f,setBackoffTime:v,getActiveQueue:h,setActiveQueue:g,clearActiveQueue:b,getQueueProcessing:_,setQueueProcessing:T,save:ys,load:$s,works:B,reset:Z,remove:ks,type:"localStorage",flush:w};return c;function w(){o=!0,s&&(c.save(t,Gt.stringify(u)),s=!1)}function y(){return o&&(u=Gt.parse(c.load(t)||"[]"),o=!1,setTimeout(w,0)),u}function p(A){u=A,o=!1,s=!0,setTimeout(w,0)}function l(){var A=c.load(i);return A===void 0?0:Number(A)}function d(){var A=c.load(r);return A===void 0?0:Number(A)}function f(A){c.save(i,A)}function v(A){c.save(r,A)}function h(){if(c.load(n)!==void 0)return Gt.parse(c.load(n))}function g(A){c.save(n,Gt.stringify({id:A,ts:xs()}))}function b(){c.remove(n)}function _(){return Boolean(Number(c.load(a)))}function T(A){c.save(a,Number(A))}function B(){var A=!1;try{c.save("queue-that-works","anything"),A=c.load("queue-that-works")==="anything",c.remove("queue-that-works")}catch{}return A}function Z(){c.remove(n),c.remove(r),c.remove(i),c.remove(t),c.remove(a)}}function ys(e,t){window.localStorage[e]=t}function $s(e){return window.localStorage[e]}function ks(e){window.localStorage.removeItem(e)}function xs(){return new Date().getTime()}var Es=Hn,Ss=Ts;function Ts(e){window.__queueThat__=window.__queueThat__||{};var t=Es(e);return t.save=n,t.load=r,t.remove=i,t.type="globalVariable",t;function n(a,o){window.__queueThat__[a]=String(o)}function r(a){return window.__queueThat__[a]}function i(a){delete window.__queueThat__[a]}}var pe=ps,As=Hn,Ns=Ss,Cs="Queue That",Is=1e3,zs=100,Ls=2e3,Rs=20,Er=2500,Os=Ds;function Ds(e){if(!e.process)throw new Error("a process function is required");if(e.batchSize=e.batchSize||Rs,e.label=e.label||Cs,e.trim=e.trim||Ps,e.queueGroupTime=e.queueGroupTime||zs,e.backoffTime=e.backoffTime||Is,e.processTimeout=e.processTimeout||Ls,e.activeQueueTimeout=e.activeQueueTimeout||Er,e.processTimeout>e.activeQueueTimeout)throw new Error("active queue timeout must be greater than process timeout");var t,n,r,i,a=!1,o=!1,s=Math.random()+h(),u=!1,c=!1,w=As(e.label);return w.works()||(w=Ns(e.label)),y.storageAdapter=w,y.options=e,y.flush=p,y.destroy=function(){c=!0,clearTimeout(t),clearTimeout(n),clearTimeout(r),clearTimeout(i)},y.flushQueueCache=y.storageAdapter.flush,g(s),pe.info("Initialized with queue ID "+s),l(),r=setTimeout(d,Er),y;function y(b){var _=w.getQueue();_.push(b),w.setQueue(e.trim(_)),pe.info("Item queued"),l()}function p(){u||(o=!0,u=!0,clearTimeout(t),i=setTimeout(function(){d(),o=!1,u=!1}))}function l(){o||(o=!0,t=setTimeout(function(){d(),o=!1},e.queueGroupTime))}function d(){if(pe.info("Checking queue"),!a){var b=w.getBackoffTime()-h();if(b>0){setTimeout(d,b);return}var _=v();if(!(_.active&&_.id!==s)){_.id!==s&&pe.info("Switching active queue to "+s),w.setActiveQueue(s);var T=w.getQueue().slice(0,e.batchSize);if(T.length!==0){pe.info("Processing queue batch of "+T.length+" items"),T.containsRepeatedItems=w.getQueueProcessing(),T.containsRepeatedItems?pe.info("Batch contains repeated items"):pe.info("Batch does not contain repeated items");var B=T.length,Z=!1,A=!1;e.process(T,function(x){if(!(Z||c)){if(a=!1,A=!0,x){f(x),l();return}w.setErrorCount(0);var R=Ms(w.getQueue(),B);w.setQueue(R),w.setQueueProcessing(!1),w.flush(),pe.info("Queue processed, "+R.length+" remaining items"),l()}}),n=setTimeout(function(){A||c||(Z=!0,a=!1,f(new Error("Task timeout")))},e.processTimeout),a=!0,w.setQueueProcessing(!0),w.flush()}}}}function f(b){pe.error("Process error, backing off ("+b.message+")");var _=w.getErrorCount()+1;w.setErrorCount(_),w.setBackoffTime(h()+e.backoffTime*Math.pow(2,_-1)),pe.warn("backoff time "+(w.getBackoffTime()-h())+"ms")}function v(){var b={},_=w.getActiveQueue();if(_===void 0)return b.active=!1,b;b.id=_.id;var T=h()-_.ts;return b.active=!(T>=Er),b}function h(){return new Date().getTime()}function g(b){window.addEventListener?window.addEventListener("beforeunload",_):window.attachEvent&&window.attachEvent("onbeforeunload",_);function _(){var T=w.getActiveQueue();T&&T.id===b&&(y.destroy(),w.clearActiveQueue(),pe.info("deactivated on page unload"))}}}function Ps(e){return e}function Ms(e,t){return Array.prototype.slice.call(e,t)}var Bs=function(t){var n="?";return t.indexOf("?")>-1&&(n="&"),t+n+"_="+Math.random()},Us=function(t,n,r){return new Error([t,n,"("+r+")"].join(" "))},Fs=Rt,qs=Bs,Sr=Us,Vs=2e3,js;Gn.headerSupport=Kn;var Qs=Gn;function Gn(e,t,n){n=n||{},n.headers=n.headers||{},n.headers["Content-Type"]=n.headers["Content-Type"]||"text/plain";var r,i,a=Fs(),o=new(window.XDomainRequest||window.XMLHttpRequest),s=n.timeout===js?Vs:n.timeout;return o.open(e,n.cacheBuster===!0?qs(t):t,!0),o.timeout=s,Kn()&&Gs(o,n.headers),o.onload=function(){if(!i){if(o.status>=300){a.emit("error",Sr(e,t,o.status));return}clearTimeout(r),a.emit("success",o.responseText)}},o.onerror=function(){i||(clearTimeout(r),a.emit("error",Sr(e,t,window.XDomainRequest?"invalid response":"network/CORS")))},o.onprogress=Zn,o.ontimeout=Zn,{on:a.on,send:u};function u(c){Hs(function(){e==="POST"?o.send(c):o.send(),s!==0&&(r=setTimeout(function(){i=!0,a.emit("error",Sr(e,t,"timeout"))},s))})}}function Hs(e){setTimeout(e,0)}function Gs(e,t){for(var n in t)!t.hasOwnProperty(n)||e.setRequestHeader(n,t[n])}function Kn(){var e=new(window.XDomainRequest||window.XMLHttpRequest);return Boolean(e.setRequestHeader)}function Zn(){}var Xn={exports:{}};/*!
2
- * @overview es6-promise - a tiny implementation of Promises/A+.
3
- * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
4
- * @license Licensed under MIT license
5
- * See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
6
- * @version 3.1.3
7
- */(function(e){(function(){function t(m){return typeof m=="function"||typeof m=="object"&&m!==null}function n(m){return typeof m=="function"}var r;Array.isArray?r=Array.isArray:r=function(m){return Object.prototype.toString.call(m)==="[object Array]"};var i=r,a=0,o,s,u=function($,E){T[a]=$,T[a+1]=E,a+=2,a===2&&(s?s(B):A())};function c(m){s=m}function w(m){u=m}var y=typeof window!="undefined"?window:void 0,p=y||{},l=p.MutationObserver||p.WebKitMutationObserver,d=typeof self=="undefined"&&typeof process!="undefined"&&{}.toString.call(process)==="[object process]",f=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function v(){return function(){process.nextTick(B)}}function h(){return function(){o(B)}}function g(){var m=0,$=new l(B),E=document.createTextNode("");return $.observe(E,{characterData:!0}),function(){E.data=m=++m%2}}function b(){var m=new MessageChannel;return m.port1.onmessage=B,function(){m.port2.postMessage(0)}}function _(){return function(){setTimeout(B,1)}}var T=new Array(1e3);function B(){for(var m=0;m<a;m+=2){var $=T[m],E=T[m+1];$(E),T[m]=void 0,T[m+1]=void 0}a=0}function Z(){try{var m=en,$=m("vertx");return o=$.runOnLoop||$.runOnContext,h()}catch{return _()}}var A;d?A=v():l?A=g():f?A=b():y===void 0&&typeof en=="function"?A=Z():A=_();function x(m,$){var E=this,O=E._state;if(O===N&&!m||O===L&&!$)return this;var q=new this.constructor(Q),j=E._result;if(O){var G=arguments[O-1];u(function(){Yr(O,q,G,j)})}else zt(E,q,m,$);return q}var R=x;function H(m){var $=this;if(m&&typeof m=="object"&&m.constructor===$)return m;var E=new $(Q);return J(E,m),E}var U=H;function Q(){}var X=void 0,N=1,L=2,P=new Xr;function V(){return new TypeError("You cannot resolve a promise with itself")}function Y(){return new TypeError("A promises callback cannot return that same promise.")}function S(m){try{return m.then}catch($){return P.error=$,P}}function D(m,$,E,O){try{m.call($,E,O)}catch(q){return q}}function z(m,$,E){u(function(O){var q=!1,j=D(E,$,function(G){q||(q=!0,$!==G?J(O,G):ne(O,G))},function(G){q||(q=!0,ae(O,G))},"Settle: "+(O._label||" unknown promise"));!q&&j&&(q=!0,ae(O,j))},m)}function k(m,$){$._state===N?ne(m,$._result):$._state===L?ae(m,$._result):zt($,void 0,function(E){J(m,E)},function(E){ae(m,E)})}function I(m,$,E){$.constructor===m.constructor&&E===R&&constructor.resolve===U?k(m,$):E===P?ae(m,P.error):E===void 0?ne(m,$):n(E)?z(m,$,E):ne(m,$)}function J(m,$){m===$?ae(m,V()):t($)?I(m,$,S($)):ne(m,$)}function It(m){m._onerror&&m._onerror(m._result),ur(m)}function ne(m,$){m._state===X&&(m._result=$,m._state=N,m._subscribers.length!==0&&u(ur,m))}function ae(m,$){m._state===X&&(m._state=L,m._result=$,u(It,m))}function zt(m,$,E,O){var q=m._subscribers,j=q.length;m._onerror=null,q[j]=$,q[j+N]=E,q[j+L]=O,j===0&&m._state&&u(ur,m)}function ur(m){var $=m._subscribers,E=m._state;if($.length!==0){for(var O,q,j=m._result,G=0;G<$.length;G+=3)O=$[G],q=$[G+E],O?Yr(E,O,q,j):q(j);m._subscribers.length=0}}function Xr(){this.error=null}var lr=new Xr;function Xi(m,$){try{return m($)}catch(E){return lr.error=E,lr}}function Yr(m,$,E,O){var q=n(E),j,G,Me,Wr;if(q){if(j=Xi(E,O),j===lr?(Wr=!0,G=j.error,j=null):Me=!0,$===j){ae($,Y());return}}else j=O,Me=!0;$._state!==X||(q&&Me?J($,j):Wr?ae($,G):m===N?ne($,j):m===L&&ae($,j))}function Yi(m,$){try{$(function(O){J(m,O)},function(O){ae(m,O)})}catch(E){ae(m,E)}}function Ji(m){return new sa(this,m).promise}var Wi=Ji;function ea(m){var $=this,E=new $(Q);if(!i(m))return ae(E,new TypeError("You must pass an array to race.")),E;var O=m.length;function q(Me){J(E,Me)}function j(Me){ae(E,Me)}for(var G=0;E._state===X&&G<O;G++)zt($.resolve(m[G]),void 0,q,j);return E}var ta=ea;function ra(m){var $=this,E=new $(Q);return ae(E,m),E}var na=ra,ia=0;function aa(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function oa(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var fr=we;function we(m){this._id=ia++,this._state=void 0,this._result=void 0,this._subscribers=[],Q!==m&&(typeof m!="function"&&aa(),this instanceof we?Yi(this,m):oa())}we.all=Wi,we.race=ta,we.resolve=U,we.reject=na,we._setScheduler=c,we._setAsap=w,we._asap=u,we.prototype={constructor:we,then:R,catch:function(m){return this.then(null,m)}};var sa=Ye;function Ye(m,$){this._instanceConstructor=m,this.promise=new m(Q),Array.isArray($)?(this._input=$,this.length=$.length,this._remaining=$.length,this._result=new Array(this.length),this.length===0?ne(this.promise,this._result):(this.length=this.length||0,this._enumerate(),this._remaining===0&&ne(this.promise,this._result))):ae(this.promise,this._validationError())}Ye.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},Ye.prototype._enumerate=function(){for(var m=this.length,$=this._input,E=0;this._state===X&&E<m;E++)this._eachEntry($[E],E)},Ye.prototype._eachEntry=function(m,$){var E=this._instanceConstructor,O=E.resolve;if(O===U){var q=S(m);if(q===R&&m._state!==X)this._settledAt(m._state,$,m._result);else if(typeof q!="function")this._remaining--,this._result[$]=m;else if(E===fr){var j=new E(Q);I(j,m,q),this._willSettleAt(j,$)}else this._willSettleAt(new E(function(G){G(m)}),$)}else this._willSettleAt(O(m),$)},Ye.prototype._settledAt=function(m,$,E){var O=this.promise;O._state===X&&(this._remaining--,m===L?ae(O,E):this._result[$]=E),this._remaining===0&&ne(O,this._result)},Ye.prototype._willSettleAt=function(m,$){var E=this;zt(m,void 0,function(O){E._settledAt(N,$,O)},function(O){E._settledAt(L,$,O)})};function ca(){var m;if(typeof pt!="undefined")m=pt;else if(typeof self!="undefined")m=self;else try{m=Function("return this")()}catch{throw new Error("polyfill failed because global object is unavailable in this environment")}var $=m.Promise;$&&Object.prototype.toString.call($.resolve())==="[object Promise]"&&!$.cast||(m.Promise=fr)}var ua=ca,Jr={Promise:fr,polyfill:ua};e.exports?e.exports=Jr:typeof this!="undefined"&&(this.ES6Promise=Jr)}).call(pt)})(Xn);var Tr=Qs,Yn=Xn.exports.Promise,Ks={get:Zs,post:Xs,headerSupport:Tr.headerSupport},Jn=Ks;function Zs(e,t,n){n=typeof t=="function"?t:n;var r=new Yn(function(i,a){var o=Tr("GET",e,t);o.on("success",function(u){n?n(null,u):i(u)}),o.on("error",n||a),o.send()});if(!n)return r}function Xs(e,t,n,r){r=typeof n=="function"?n:r;var i=new Yn(function(a,o){var s=Tr("POST",e,n);s.on("success",function(c){r?r(null,c):a(c)}),s.on("error",r||o),s.send(t)});if(!r)return i}var ht={},ge={},vt={};(function(e){var t=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";function n(a,o){return Object.prototype.hasOwnProperty.call(a,o)}e.assign=function(a){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var s=o.shift();if(!!s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var u in s)n(s,u)&&(a[u]=s[u])}}return a},e.shrinkBuf=function(a,o){return a.length===o?a:a.subarray?a.subarray(0,o):(a.length=o,a)};var r={arraySet:function(a,o,s,u,c){if(o.subarray&&a.subarray){a.set(o.subarray(s,s+u),c);return}for(var w=0;w<u;w++)a[c+w]=o[s+w]},flattenChunks:function(a){var o,s,u,c,w,y;for(u=0,o=0,s=a.length;o<s;o++)u+=a[o].length;for(y=new Uint8Array(u),c=0,o=0,s=a.length;o<s;o++)w=a[o],y.set(w,c),c+=w.length;return y}},i={arraySet:function(a,o,s,u,c){for(var w=0;w<u;w++)a[c+w]=o[s+w]},flattenChunks:function(a){return[].concat.apply([],a)}};e.setTyped=function(a){a?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,r)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,i))},e.setTyped(t)})(vt);var at={},Ys=vt,Js=4,Wn=0,ei=1,Ws=2;function ot(e){for(var t=e.length;--t>=0;)e[t]=0}var ec=0,ti=1,tc=2,rc=3,nc=258,Ar=29,mt=256,gt=mt+1+Ar,st=30,Nr=19,ri=2*gt+1,je=15,Cr=16,ic=7,Ir=256,ni=16,ii=17,ai=18,zr=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],Kt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ac=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],oi=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],oc=512,xe=new Array((gt+2)*2);ot(xe);var bt=new Array(st*2);ot(bt);var _t=new Array(oc);ot(_t);var yt=new Array(nc-rc+1);ot(yt);var Lr=new Array(Ar);ot(Lr);var Zt=new Array(st);ot(Zt);function Rr(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var si,ci,ui;function Or(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function li(e){return e<256?_t[e]:_t[256+(e>>>7)]}function $t(e,t){e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255}function ue(e,t,n){e.bi_valid>Cr-n?(e.bi_buf|=t<<e.bi_valid&65535,$t(e,e.bi_buf),e.bi_buf=t>>Cr-e.bi_valid,e.bi_valid+=n-Cr):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function be(e,t,n){ue(e,n[t*2],n[t*2+1])}function fi(e,t){var n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1}function sc(e){e.bi_valid===16?($t(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)}function cc(e,t){var n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,a=t.stat_desc.has_stree,o=t.stat_desc.extra_bits,s=t.stat_desc.extra_base,u=t.stat_desc.max_length,c,w,y,p,l,d,f=0;for(p=0;p<=je;p++)e.bl_count[p]=0;for(n[e.heap[e.heap_max]*2+1]=0,c=e.heap_max+1;c<ri;c++)w=e.heap[c],p=n[n[w*2+1]*2+1]+1,p>u&&(p=u,f++),n[w*2+1]=p,!(w>r)&&(e.bl_count[p]++,l=0,w>=s&&(l=o[w-s]),d=n[w*2],e.opt_len+=d*(p+l),a&&(e.static_len+=d*(i[w*2+1]+l)));if(f!==0){do{for(p=u-1;e.bl_count[p]===0;)p--;e.bl_count[p]--,e.bl_count[p+1]+=2,e.bl_count[u]--,f-=2}while(f>0);for(p=u;p!==0;p--)for(w=e.bl_count[p];w!==0;)y=e.heap[--c],!(y>r)&&(n[y*2+1]!==p&&(e.opt_len+=(p-n[y*2+1])*n[y*2],n[y*2+1]=p),w--)}}function di(e,t,n){var r=new Array(je+1),i=0,a,o;for(a=1;a<=je;a++)r[a]=i=i+n[a-1]<<1;for(o=0;o<=t;o++){var s=e[o*2+1];s!==0&&(e[o*2]=fi(r[s]++,s))}}function uc(){var e,t,n,r,i,a=new Array(je+1);for(n=0,r=0;r<Ar-1;r++)for(Lr[r]=n,e=0;e<1<<zr[r];e++)yt[n++]=r;for(yt[n-1]=r,i=0,r=0;r<16;r++)for(Zt[r]=i,e=0;e<1<<Kt[r];e++)_t[i++]=r;for(i>>=7;r<st;r++)for(Zt[r]=i<<7,e=0;e<1<<Kt[r]-7;e++)_t[256+i++]=r;for(t=0;t<=je;t++)a[t]=0;for(e=0;e<=143;)xe[e*2+1]=8,e++,a[8]++;for(;e<=255;)xe[e*2+1]=9,e++,a[9]++;for(;e<=279;)xe[e*2+1]=7,e++,a[7]++;for(;e<=287;)xe[e*2+1]=8,e++,a[8]++;for(di(xe,gt+1,a),e=0;e<st;e++)bt[e*2+1]=5,bt[e*2]=fi(e,5);si=new Rr(xe,zr,mt+1,gt,je),ci=new Rr(bt,Kt,0,st,je),ui=new Rr(new Array(0),ac,0,Nr,ic)}function wi(e){var t;for(t=0;t<gt;t++)e.dyn_ltree[t*2]=0;for(t=0;t<st;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Nr;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Ir*2]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function pi(e){e.bi_valid>8?$t(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function lc(e,t,n,r){pi(e),r&&($t(e,n),$t(e,~n)),Ys.arraySet(e.pending_buf,e.window,t,n,e.pending),e.pending+=n}function hi(e,t,n,r){var i=t*2,a=n*2;return e[i]<e[a]||e[i]===e[a]&&r[t]<=r[n]}function Dr(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&hi(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!hi(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function vi(e,t,n){var r,i,a=0,o,s;if(e.last_lit!==0)do r=e.pending_buf[e.d_buf+a*2]<<8|e.pending_buf[e.d_buf+a*2+1],i=e.pending_buf[e.l_buf+a],a++,r===0?be(e,i,t):(o=yt[i],be(e,o+mt+1,t),s=zr[o],s!==0&&(i-=Lr[o],ue(e,i,s)),r--,o=li(r),be(e,o,n),s=Kt[o],s!==0&&(r-=Zt[o],ue(e,r,s)));while(a<e.last_lit);be(e,Ir,t)}function Pr(e,t){var n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,a=t.stat_desc.elems,o,s,u=-1,c;for(e.heap_len=0,e.heap_max=ri,o=0;o<a;o++)n[o*2]!==0?(e.heap[++e.heap_len]=u=o,e.depth[o]=0):n[o*2+1]=0;for(;e.heap_len<2;)c=e.heap[++e.heap_len]=u<2?++u:0,n[c*2]=1,e.depth[c]=0,e.opt_len--,i&&(e.static_len-=r[c*2+1]);for(t.max_code=u,o=e.heap_len>>1;o>=1;o--)Dr(e,n,o);c=a;do o=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Dr(e,n,1),s=e.heap[1],e.heap[--e.heap_max]=o,e.heap[--e.heap_max]=s,n[c*2]=n[o*2]+n[s*2],e.depth[c]=(e.depth[o]>=e.depth[s]?e.depth[o]:e.depth[s])+1,n[o*2+1]=n[s*2+1]=c,e.heap[1]=c++,Dr(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],cc(e,t),di(n,u,e.bl_count)}function mi(e,t,n){var r,i=-1,a,o=t[0*2+1],s=0,u=7,c=4;for(o===0&&(u=138,c=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)a=o,o=t[(r+1)*2+1],!(++s<u&&a===o)&&(s<c?e.bl_tree[a*2]+=s:a!==0?(a!==i&&e.bl_tree[a*2]++,e.bl_tree[ni*2]++):s<=10?e.bl_tree[ii*2]++:e.bl_tree[ai*2]++,s=0,i=a,o===0?(u=138,c=3):a===o?(u=6,c=3):(u=7,c=4))}function gi(e,t,n){var r,i=-1,a,o=t[0*2+1],s=0,u=7,c=4;for(o===0&&(u=138,c=3),r=0;r<=n;r++)if(a=o,o=t[(r+1)*2+1],!(++s<u&&a===o)){if(s<c)do be(e,a,e.bl_tree);while(--s!=0);else a!==0?(a!==i&&(be(e,a,e.bl_tree),s--),be(e,ni,e.bl_tree),ue(e,s-3,2)):s<=10?(be(e,ii,e.bl_tree),ue(e,s-3,3)):(be(e,ai,e.bl_tree),ue(e,s-11,7));s=0,i=a,o===0?(u=138,c=3):a===o?(u=6,c=3):(u=7,c=4)}}function fc(e){var t;for(mi(e,e.dyn_ltree,e.l_desc.max_code),mi(e,e.dyn_dtree,e.d_desc.max_code),Pr(e,e.bl_desc),t=Nr-1;t>=3&&e.bl_tree[oi[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t}function dc(e,t,n,r){var i;for(ue(e,t-257,5),ue(e,n-1,5),ue(e,r-4,4),i=0;i<r;i++)ue(e,e.bl_tree[oi[i]*2+1],3);gi(e,e.dyn_ltree,t-1),gi(e,e.dyn_dtree,n-1)}function wc(e){var t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return Wn;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return ei;for(n=32;n<mt;n++)if(e.dyn_ltree[n*2]!==0)return ei;return Wn}var bi=!1;function pc(e){bi||(uc(),bi=!0),e.l_desc=new Or(e.dyn_ltree,si),e.d_desc=new Or(e.dyn_dtree,ci),e.bl_desc=new Or(e.bl_tree,ui),e.bi_buf=0,e.bi_valid=0,wi(e)}function _i(e,t,n,r){ue(e,(ec<<1)+(r?1:0),3),lc(e,t,n,!0)}function hc(e){ue(e,ti<<1,3),be(e,Ir,xe),sc(e)}function vc(e,t,n,r){var i,a,o=0;e.level>0?(e.strm.data_type===Ws&&(e.strm.data_type=wc(e)),Pr(e,e.l_desc),Pr(e,e.d_desc),o=fc(e),i=e.opt_len+3+7>>>3,a=e.static_len+3+7>>>3,a<=i&&(i=a)):i=a=n+5,n+4<=i&&t!==-1?_i(e,t,n,r):e.strategy===Js||a===i?(ue(e,(ti<<1)+(r?1:0),3),vi(e,xe,bt)):(ue(e,(tc<<1)+(r?1:0),3),dc(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),vi(e,e.dyn_ltree,e.dyn_dtree)),wi(e),r&&pi(e)}function mc(e,t,n){return e.pending_buf[e.d_buf+e.last_lit*2]=t>>>8&255,e.pending_buf[e.d_buf+e.last_lit*2+1]=t&255,e.pending_buf[e.l_buf+e.last_lit]=n&255,e.last_lit++,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(yt[n]+mt+1)*2]++,e.dyn_dtree[li(t)*2]++),e.last_lit===e.lit_bufsize-1}at._tr_init=pc;at._tr_stored_block=_i;at._tr_flush_block=vc;at._tr_tally=mc;at._tr_align=hc;function gc(e,t,n,r){for(var i=e&65535|0,a=e>>>16&65535|0,o=0;n!==0;){o=n>2e3?2e3:n,n-=o;do i=i+t[r++]|0,a=a+i|0;while(--o);i%=65521,a%=65521}return i|a<<16|0}var bc=gc;function _c(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t}var yc=_c();function $c(e,t,n,r){var i=yc,a=r+n;e^=-1;for(var o=r;o<a;o++)e=e>>>8^i[(e^t[o])&255];return e^-1}var kc=$c,yi={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ce=vt,fe=at,$i=bc,Ce=kc,xc=yi,Qe=0,Ec=1,Sc=3,Ie=4,ki=5,_e=0,xi=1,de=-2,Tc=-3,Mr=-5,Ac=-1,Nc=1,Xt=2,Cc=3,Ic=4,zc=0,Lc=2,Yt=8,Rc=9,Oc=15,Dc=8,Pc=29,Mc=256,Br=Mc+1+Pc,Bc=30,Uc=19,Fc=2*Br+1,qc=15,M=3,ze=258,he=ze+M+1,Vc=32,Jt=42,Ur=69,Wt=73,er=91,tr=103,He=113,kt=666,te=1,xt=2,Ge=3,ct=4,jc=3;function Le(e,t){return e.msg=xc[t],t}function Ei(e){return(e<<1)-(e>4?9:0)}function Re(e){for(var t=e.length;--t>=0;)e[t]=0}function Oe(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(ce.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))}function ie(e,t){fe._tr_flush_block(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Oe(e.strm)}function F(e,t){e.pending_buf[e.pending++]=t}function Et(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255}function Qc(e,t,n,r){var i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,ce.arraySet(t,e.input,e.next_in,i,n),e.state.wrap===1?e.adler=$i(e.adler,t,i,n):e.state.wrap===2&&(e.adler=Ce(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)}function Si(e,t){var n=e.max_chain_length,r=e.strstart,i,a,o=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-he?e.strstart-(e.w_size-he):0,c=e.window,w=e.w_mask,y=e.prev,p=e.strstart+ze,l=c[r+o-1],d=c[r+o];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do if(i=t,!(c[i+o]!==d||c[i+o-1]!==l||c[i]!==c[r]||c[++i]!==c[r+1])){r+=2,i++;do;while(c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&r<p);if(a=ze-(p-r),r=p-ze,a>o){if(e.match_start=t,o=a,a>=s)break;l=c[r+o-1],d=c[r+o]}}while((t=y[t&w])>u&&--n!=0);return o<=e.lookahead?o:e.lookahead}function Ke(e){var t=e.w_size,n,r,i,a,o;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-he)){ce.arraySet(e.window,e.window,t,t,0),e.match_start-=t,e.strstart-=t,e.block_start-=t,r=e.hash_size,n=r;do i=e.head[--n],e.head[n]=i>=t?i-t:0;while(--r);r=t,n=r;do i=e.prev[--n],e.prev[n]=i>=t?i-t:0;while(--r);a+=t}if(e.strm.avail_in===0)break;if(r=Qc(e.strm,e.window,e.strstart+e.lookahead,a),e.lookahead+=r,e.lookahead+e.insert>=M)for(o=e.strstart-e.insert,e.ins_h=e.window[o],e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[o+M-1])&e.hash_mask,e.prev[o&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=o,o++,e.insert--,!(e.lookahead+e.insert<M)););}while(e.lookahead<he&&e.strm.avail_in!==0)}function Hc(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(Ke(e),e.lookahead===0&&t===Qe)return te;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((e.strstart===0||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,ie(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-he&&(ie(e,!1),e.strm.avail_out===0))return te}return e.insert=0,t===Ie?(ie(e,!0),e.strm.avail_out===0?Ge:ct):(e.strstart>e.block_start&&(ie(e,!1),e.strm.avail_out===0),te)}function Fr(e,t){for(var n,r;;){if(e.lookahead<he){if(Ke(e),e.lookahead<he&&t===Qe)return te;if(e.lookahead===0)break}if(n=0,e.lookahead>=M&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+M-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-he&&(e.match_length=Si(e,n)),e.match_length>=M)if(r=fe._tr_tally(e,e.strstart-e.match_start,e.match_length-M),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=M){e.match_length--;do e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+M-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!=0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=fe._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(ie(e,!1),e.strm.avail_out===0))return te}return e.insert=e.strstart<M-1?e.strstart:M-1,t===Ie?(ie(e,!0),e.strm.avail_out===0?Ge:ct):e.last_lit&&(ie(e,!1),e.strm.avail_out===0)?te:xt}function ut(e,t){for(var n,r,i;;){if(e.lookahead<he){if(Ke(e),e.lookahead<he&&t===Qe)return te;if(e.lookahead===0)break}if(n=0,e.lookahead>=M&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+M-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=M-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-he&&(e.match_length=Si(e,n),e.match_length<=5&&(e.strategy===Nc||e.match_length===M&&e.strstart-e.match_start>4096)&&(e.match_length=M-1)),e.prev_length>=M&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-M,r=fe._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-M),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+M-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!=0);if(e.match_available=0,e.match_length=M-1,e.strstart++,r&&(ie(e,!1),e.strm.avail_out===0))return te}else if(e.match_available){if(r=fe._tr_tally(e,0,e.window[e.strstart-1]),r&&ie(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return te}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=fe._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<M-1?e.strstart:M-1,t===Ie?(ie(e,!0),e.strm.avail_out===0?Ge:ct):e.last_lit&&(ie(e,!1),e.strm.avail_out===0)?te:xt}function Gc(e,t){for(var n,r,i,a,o=e.window;;){if(e.lookahead<=ze){if(Ke(e),e.lookahead<=ze&&t===Qe)return te;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=M&&e.strstart>0&&(i=e.strstart-1,r=o[i],r===o[++i]&&r===o[++i]&&r===o[++i])){a=e.strstart+ze;do;while(r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&r===o[++i]&&i<a);e.match_length=ze-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=M?(n=fe._tr_tally(e,1,e.match_length-M),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=fe._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(ie(e,!1),e.strm.avail_out===0))return te}return e.insert=0,t===Ie?(ie(e,!0),e.strm.avail_out===0?Ge:ct):e.last_lit&&(ie(e,!1),e.strm.avail_out===0)?te:xt}function Kc(e,t){for(var n;;){if(e.lookahead===0&&(Ke(e),e.lookahead===0)){if(t===Qe)return te;break}if(e.match_length=0,n=fe._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(ie(e,!1),e.strm.avail_out===0))return te}return e.insert=0,t===Ie?(ie(e,!0),e.strm.avail_out===0?Ge:ct):e.last_lit&&(ie(e,!1),e.strm.avail_out===0)?te:xt}function ye(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var lt;lt=[new ye(0,0,0,0,Hc),new ye(4,4,8,4,Fr),new ye(4,5,16,8,Fr),new ye(4,6,32,32,Fr),new ye(4,4,16,16,ut),new ye(8,16,32,32,ut),new ye(8,16,128,128,ut),new ye(8,32,128,256,ut),new ye(32,128,258,1024,ut),new ye(32,258,258,4096,ut)];function Zc(e){e.window_size=2*e.w_size,Re(e.head),e.max_lazy_match=lt[e.level].max_lazy,e.good_match=lt[e.level].good_length,e.nice_match=lt[e.level].nice_length,e.max_chain_length=lt[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=M-1,e.match_available=0,e.ins_h=0}function Xc(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Yt,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new ce.Buf16(Fc*2),this.dyn_dtree=new ce.Buf16((2*Bc+1)*2),this.bl_tree=new ce.Buf16((2*Uc+1)*2),Re(this.dyn_ltree),Re(this.dyn_dtree),Re(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new ce.Buf16(qc+1),this.heap=new ce.Buf16(2*Br+1),Re(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new ce.Buf16(2*Br+1),Re(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ti(e){var t;return!e||!e.state?Le(e,de):(e.total_in=e.total_out=0,e.data_type=Lc,t=e.state,t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?Jt:He,e.adler=t.wrap===2?0:1,t.last_flush=Qe,fe._tr_init(t),_e)}function Ai(e){var t=Ti(e);return t===_e&&Zc(e.state),t}function Yc(e,t){return!e||!e.state||e.state.wrap!==2?de:(e.state.gzhead=t,_e)}function Ni(e,t,n,r,i,a){if(!e)return de;var o=1;if(t===Ac&&(t=6),r<0?(o=0,r=-r):r>15&&(o=2,r-=16),i<1||i>Rc||n!==Yt||r<8||r>15||t<0||t>9||a<0||a>Ic)return Le(e,de);r===8&&(r=9);var s=new Xc;return e.state=s,s.strm=e,s.wrap=o,s.gzhead=null,s.w_bits=r,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+M-1)/M),s.window=new ce.Buf8(s.w_size*2),s.head=new ce.Buf16(s.hash_size),s.prev=new ce.Buf16(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=s.lit_bufsize*4,s.pending_buf=new ce.Buf8(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=(1+2)*s.lit_bufsize,s.level=t,s.strategy=a,s.method=n,Ai(e)}function Jc(e,t){return Ni(e,t,Yt,Oc,Dc,zc)}function Wc(e,t){var n,r,i,a;if(!e||!e.state||t>ki||t<0)return e?Le(e,de):de;if(r=e.state,!e.output||!e.input&&e.avail_in!==0||r.status===kt&&t!==Ie)return Le(e,e.avail_out===0?Mr:de);if(r.strm=e,n=r.last_flush,r.last_flush=t,r.status===Jt)if(r.wrap===2)e.adler=0,F(r,31),F(r,139),F(r,8),r.gzhead?(F(r,(r.gzhead.text?1:0)+(r.gzhead.hcrc?2:0)+(r.gzhead.extra?4:0)+(r.gzhead.name?8:0)+(r.gzhead.comment?16:0)),F(r,r.gzhead.time&255),F(r,r.gzhead.time>>8&255),F(r,r.gzhead.time>>16&255),F(r,r.gzhead.time>>24&255),F(r,r.level===9?2:r.strategy>=Xt||r.level<2?4:0),F(r,r.gzhead.os&255),r.gzhead.extra&&r.gzhead.extra.length&&(F(r,r.gzhead.extra.length&255),F(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=Ce(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=Ur):(F(r,0),F(r,0),F(r,0),F(r,0),F(r,0),F(r,r.level===9?2:r.strategy>=Xt||r.level<2?4:0),F(r,jc),r.status=He);else{var o=Yt+(r.w_bits-8<<4)<<8,s=-1;r.strategy>=Xt||r.level<2?s=0:r.level<6?s=1:r.level===6?s=2:s=3,o|=s<<6,r.strstart!==0&&(o|=Vc),o+=31-o%31,r.status=He,Et(r,o),r.strstart!==0&&(Et(r,e.adler>>>16),Et(r,e.adler&65535)),e.adler=1}if(r.status===Ur)if(r.gzhead.extra){for(i=r.pending;r.gzindex<(r.gzhead.extra.length&65535)&&!(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=Ce(e.adler,r.pending_buf,r.pending-i,i)),Oe(e),i=r.pending,r.pending===r.pending_buf_size));)F(r,r.gzhead.extra[r.gzindex]&255),r.gzindex++;r.gzhead.hcrc&&r.pending>i&&(e.adler=Ce(e.adler,r.pending_buf,r.pending-i,i)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=Wt)}else r.status=Wt;if(r.status===Wt)if(r.gzhead.name){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=Ce(e.adler,r.pending_buf,r.pending-i,i)),Oe(e),i=r.pending,r.pending===r.pending_buf_size)){a=1;break}r.gzindex<r.gzhead.name.length?a=r.gzhead.name.charCodeAt(r.gzindex++)&255:a=0,F(r,a)}while(a!==0);r.gzhead.hcrc&&r.pending>i&&(e.adler=Ce(e.adler,r.pending_buf,r.pending-i,i)),a===0&&(r.gzindex=0,r.status=er)}else r.status=er;if(r.status===er)if(r.gzhead.comment){i=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>i&&(e.adler=Ce(e.adler,r.pending_buf,r.pending-i,i)),Oe(e),i=r.pending,r.pending===r.pending_buf_size)){a=1;break}r.gzindex<r.gzhead.comment.length?a=r.gzhead.comment.charCodeAt(r.gzindex++)&255:a=0,F(r,a)}while(a!==0);r.gzhead.hcrc&&r.pending>i&&(e.adler=Ce(e.adler,r.pending_buf,r.pending-i,i)),a===0&&(r.status=tr)}else r.status=tr;if(r.status===tr&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&Oe(e),r.pending+2<=r.pending_buf_size&&(F(r,e.adler&255),F(r,e.adler>>8&255),e.adler=0,r.status=He)):r.status=He),r.pending!==0){if(Oe(e),e.avail_out===0)return r.last_flush=-1,_e}else if(e.avail_in===0&&Ei(t)<=Ei(n)&&t!==Ie)return Le(e,Mr);if(r.status===kt&&e.avail_in!==0)return Le(e,Mr);if(e.avail_in!==0||r.lookahead!==0||t!==Qe&&r.status!==kt){var u=r.strategy===Xt?Kc(r,t):r.strategy===Cc?Gc(r,t):lt[r.level].func(r,t);if((u===Ge||u===ct)&&(r.status=kt),u===te||u===Ge)return e.avail_out===0&&(r.last_flush=-1),_e;if(u===xt&&(t===Ec?fe._tr_align(r):t!==ki&&(fe._tr_stored_block(r,0,0,!1),t===Sc&&(Re(r.head),r.lookahead===0&&(r.strstart=0,r.block_start=0,r.insert=0))),Oe(e),e.avail_out===0))return r.last_flush=-1,_e}return t!==Ie?_e:r.wrap<=0?xi:(r.wrap===2?(F(r,e.adler&255),F(r,e.adler>>8&255),F(r,e.adler>>16&255),F(r,e.adler>>24&255),F(r,e.total_in&255),F(r,e.total_in>>8&255),F(r,e.total_in>>16&255),F(r,e.total_in>>24&255)):(Et(r,e.adler>>>16),Et(r,e.adler&65535)),Oe(e),r.wrap>0&&(r.wrap=-r.wrap),r.pending!==0?_e:xi)}function eu(e){var t;return!e||!e.state?de:(t=e.state.status,t!==Jt&&t!==Ur&&t!==Wt&&t!==er&&t!==tr&&t!==He&&t!==kt?Le(e,de):(e.state=null,t===He?Le(e,Tc):_e))}function tu(e,t){var n=t.length,r,i,a,o,s,u,c,w;if(!e||!e.state||(r=e.state,o=r.wrap,o===2||o===1&&r.status!==Jt||r.lookahead))return de;for(o===1&&(e.adler=$i(e.adler,t,n,0)),r.wrap=0,n>=r.w_size&&(o===0&&(Re(r.head),r.strstart=0,r.block_start=0,r.insert=0),w=new ce.Buf8(r.w_size),ce.arraySet(w,t,n-r.w_size,r.w_size,0),t=w,n=r.w_size),s=e.avail_in,u=e.next_in,c=e.input,e.avail_in=n,e.next_in=0,e.input=t,Ke(r);r.lookahead>=M;){i=r.strstart,a=r.lookahead-(M-1);do r.ins_h=(r.ins_h<<r.hash_shift^r.window[i+M-1])&r.hash_mask,r.prev[i&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=i,i++;while(--a);r.strstart=i,r.lookahead=M-1,Ke(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=M-1,r.match_available=0,e.next_in=u,e.input=c,e.avail_in=s,r.wrap=o,_e}ge.deflateInit=Jc;ge.deflateInit2=Ni;ge.deflateReset=Ai;ge.deflateResetKeep=Ti;ge.deflateSetHeader=Yc;ge.deflate=Wc;ge.deflateEnd=eu;ge.deflateSetDictionary=tu;ge.deflateInfo="pako deflate (from Nodeca project)";var ft={},rr=vt,Ci=!0,Ii=!0;try{String.fromCharCode.apply(null,[0])}catch{Ci=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Ii=!1}var St=new rr.Buf8(256);for(var De=0;De<256;De++)St[De]=De>=252?6:De>=248?5:De>=240?4:De>=224?3:De>=192?2:1;St[254]=St[254]=1;ft.string2buf=function(e){var t,n,r,i,a,o=e.length,s=0;for(i=0;i<o;i++)n=e.charCodeAt(i),(n&64512)==55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)==56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),s+=n<128?1:n<2048?2:n<65536?3:4;for(t=new rr.Buf8(s),a=0,i=0;a<s;i++)n=e.charCodeAt(i),(n&64512)==55296&&i+1<o&&(r=e.charCodeAt(i+1),(r&64512)==56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[a++]=n:n<2048?(t[a++]=192|n>>>6,t[a++]=128|n&63):n<65536?(t[a++]=224|n>>>12,t[a++]=128|n>>>6&63,t[a++]=128|n&63):(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63,t[a++]=128|n>>>6&63,t[a++]=128|n&63);return t};function zi(e,t){if(t<65534&&(e.subarray&&Ii||!e.subarray&&Ci))return String.fromCharCode.apply(null,rr.shrinkBuf(e,t));for(var n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n}ft.buf2binstring=function(e){return zi(e,e.length)};ft.binstring2buf=function(e){for(var t=new rr.Buf8(e.length),n=0,r=t.length;n<r;n++)t[n]=e.charCodeAt(n);return t};ft.buf2string=function(e,t){var n,r,i,a,o=t||e.length,s=new Array(o*2);for(r=0,n=0;n<o;){if(i=e[n++],i<128){s[r++]=i;continue}if(a=St[i],a>4){s[r++]=65533,n+=a-1;continue}for(i&=a===2?31:a===3?15:7;a>1&&n<o;)i=i<<6|e[n++]&63,a--;if(a>1){s[r++]=65533;continue}i<65536?s[r++]=i:(i-=65536,s[r++]=55296|i>>10&1023,s[r++]=56320|i&1023)}return zi(s,r)};ft.utf8border=function(e,t){var n;for(t=t||e.length,t>e.length&&(t=e.length),n=t-1;n>=0&&(e[n]&192)==128;)n--;return n<0||n===0?t:n+St[e[n]]>t?n:t};function ru(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var nu=ru,Tt=ge,At=vt,qr=ft,Vr=yi,iu=nu,Li=Object.prototype.toString,au=0,jr=4,dt=0,Ri=1,Oi=2,ou=-1,su=0,cu=8;function Ze(e){if(!(this instanceof Ze))return new Ze(e);this.options=At.assign({level:ou,method:cu,chunkSize:16384,windowBits:15,memLevel:8,strategy:su,to:""},e||{});var t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new iu,this.strm.avail_out=0;var n=Tt.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==dt)throw new Error(Vr[n]);if(t.header&&Tt.deflateSetHeader(this.strm,t.header),t.dictionary){var r;if(typeof t.dictionary=="string"?r=qr.string2buf(t.dictionary):Li.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=Tt.deflateSetDictionary(this.strm,r),n!==dt)throw new Error(Vr[n]);this._dict_set=!0}}Ze.prototype.push=function(e,t){var n=this.strm,r=this.options.chunkSize,i,a;if(this.ended)return!1;a=t===~~t?t:t===!0?jr:au,typeof e=="string"?n.input=qr.string2buf(e):Li.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;do{if(n.avail_out===0&&(n.output=new At.Buf8(r),n.next_out=0,n.avail_out=r),i=Tt.deflate(n,a),i!==Ri&&i!==dt)return this.onEnd(i),this.ended=!0,!1;(n.avail_out===0||n.avail_in===0&&(a===jr||a===Oi))&&(this.options.to==="string"?this.onData(qr.buf2binstring(At.shrinkBuf(n.output,n.next_out))):this.onData(At.shrinkBuf(n.output,n.next_out)))}while((n.avail_in>0||n.avail_out===0)&&i!==Ri);return a===jr?(i=Tt.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===dt):(a===Oi&&(this.onEnd(dt),n.avail_out=0),!0)};Ze.prototype.onData=function(e){this.chunks.push(e)};Ze.prototype.onEnd=function(e){e===dt&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=At.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Qr(e,t){var n=new Ze(t);if(n.push(e,!0),n.err)throw n.msg||Vr[n.err];return n.result}function uu(e,t){return t=t||{},t.raw=!0,Qr(e,t)}function lu(e,t){return t=t||{},t.gzip=!0,Qr(e,t)}ht.Deflate=Ze;ht.deflate=Qr;ht.deflateRaw=uu;ht.gzip=lu;const fu=K,du=Be.exports,wu=ht.deflate;var pu=hu;function hu(e,t){Di(t,"defaultOptions are required"),Di(t.trackingId,"a trackingId is required"),t.dataLocation=t.dataLocation||"eu",t.dedupe=Boolean(t.dedupe),t.env=t.env||"production",t.deflate=t.deflate!==!1;const n=mu()||vu(),r=gu(t),i=bu(t);return{send:a};function a(o,s,u){u||(u=s,s={}),s=fu.assign({},t,s);let c=r+i+"/events",w=du.stringify(o);return!n&&s.deflate?(c+="/deflate",w=wu(w,{level:1})):c+="/raw",c+="/"+s.trackingId,s.dedupe&&(c+="?dedupe=true"),e(c,w,u)}}function vu(){return typeof navigator!="undefined"&&/Safari\/53|AppleWebKit\/53/.test(navigator.userAgent)&&navigator.userAgent.indexOf("Chrome")===-1}function mu(){return typeof navigator!="undefined"&&/MSIE [8,9,10]/.test(navigator.userAgent)}function gu(e){if(typeof window!="undefined"&&window.XDomainRequest)return"//";if(e.protocol)return e.protocol;switch(e.env.toLowerCase()){case"production":case"staging":return"https://";case"development":return"http://"}return"//"}function bu(e){if(e.host)return e.host;const t=e.dataLocation.toLowerCase()==="us"?"gc":"eb";switch(e.env.toLowerCase()){case"production":return"gong-"+t+".qubit.com";case"staging":return"gong-"+t+"-nt.qubit.com";case"dev":case"development":return"localhost:5300"}}function Di(e,t){if(!e)throw new Error(t);return e}const _u=Jn,yu=pu;var Pi=function(e){return yu(_u.post,e)},nr=K,$u=Os,ku=Pi,ir=Ht("qpApi");function xu(e){var t=nr.pick(e,["deflate","trackingId","dataLocation"]);t.env=e.prongEnv,t.host=e.gongHost;var n=ku(t),r=e.success||function(){},i=$u({backoffTime:e.gong===!0?2e3:3e4,process:function(o,s){ir.info("Sending queued items batch to the server"),n.send(o,{dedupe:o.containsRepeatedItems},function(c){s.apply(null,arguments),c?ir.error("Server error "+c.message,c):(ir.info("Queued items batch successfully received by the server"),r(o))})},batchSize:e.batchSize,trim:function(o){if(o.length>e.maxQueueLength){var s=nr.filter(o,function(c){return nr.find(e.eventsToKeep,function(y){return y.test(c.meta.type)})});return s.length>e.maxQueueLength&&(s=s.slice(s.length-Math.round(e.maxQueueLength/2))),ir.warn("Trimming queue from"+o.length+"to"+s.length+"items"),s}return nr.filter(o,function(c){return c.meta.ts>Su()-e.eventExpiration*60*60*1e3})}});return{sendEvent:i,destroy:i.destroy,flush:i.flush,flushQueueCache:i.flushQueueCache}}var Eu=xu;function Su(){return new Date().getTime()}var Tu=dr,Au=K,Nu=function(t){try{var n=window.ga.getAll();if(t){var r=Au.find(n,function(o){return o.get("trackingId")===t});if(r)return r.get("clientId")}return n[0].get("clientId")}catch{}var i=Tu.val("_ga");if(!i)return null;var a=i.match(/GA\d\.\d\.([^=]+)/);return a?a[1]:null},Cu=Nu,ar=K,Iu=Go,Mi=xr,Pe,Bi,zu=function(t,n,r,i){var a=r.time;return Pe||(Pe=a===Bi?a+1:a),Pe=Pe||a,setTimeout(function(){Pe&&(Bi=Pe),Pe=null},0),s([u,c],o(t));function o(w){return JSON.parse(JSON.stringify(w))}function s(w,y){return ar.each(w,function(p){p(y)}),y}function u(w){var y=r.referrerUrl.slice(0,Mi.maxUrlLength);y.length&&(w.meta.referrerUrl=y),ar.assign(w.meta,{id:Iu(),ts:a,seq:n.eventNumber,url:r.url.slice(0,Mi.maxUrlLength),batchTs:Pe})}function c(w){w.context=w.context||{};var y=ar.pick(n,["sample","viewNumber","sessionNumber","entranceNumber","sessionViewNumber","entranceViewNumber","conversionNumber","conversionCycleNumber","timezoneOffset","entranceTs","sessionTs","viewTs"]);ar.assign(w.context,y,{id:n.visitorId,lifetimeValue:{value:n.lifetimeValue},gaId:Cu(i.gaTrackingId)})}},Lu=function(t,n){if(!t)throw new Error(n||"Invariant failed");return t},Ru=["query ($trackingId: String!, $contextId: String!) {"," property(trackingId: $trackingId) {"," visitor(contextId: $contextId) {"," ipAddress"," ipLocation: location {"," city"," cityCode"," country"," countryCode"," latitude"," longitude"," area"," areaCode"," region"," regionCode"," }"," segment: segments {"," state"," }"," history {"," conversionCycleNumber: conversionCycle"," conversionNumber: conversions"," entranceNumber: entrances"," firstConversionTs: firstConversion"," firstViewTs: firstView"," lastConversionTs: lastConversion"," lastViewTs: lastView"," lifetimeValue"," sessionNumber: sessions"," viewNumber: views"," }"," }"," }","}"].join(`
8
- `),Ui=Be.exports,Fi=Jn,Hr=Lu,Ou=br,Du=Ru,Pu=Mu,Gr="visitorIsSynced";function Mu(e){e=e||{},e.env=e.env||"production",e.cache=typeof e.cache=="undefined"?!1:e.cache,Hr(e.biscotti,"`biscotti` required"),Hr(e.trackingId,"`trackingId` required");var t,n=e.biscotti.session,r=s(),i=Bu(e),a={get:u,inSync:s,for:o};return a;function o(y){var p=r;return{name:y,get:function(d){var f=a.get(d);return f.then(function(){p=!0}),f},inSync:function(){return p}}}function s(){return!!n.get(Gr)}function u(y){return Hr(typeof y=="string","`visitorId` is required"),e.cache&&t||(t=Ou(),e.useQubitAPI?c(e.trackingId,y,t):w(e.trackingId,y,t)),t.promise}function c(y,p,l){var d="https://"+i+"/graphql";Fi.post(d,JSON.stringify({query:Du,variables:{trackingId:y,contextId:p}}),{headers:{"Content-Type":"application/json"}},function(v,h){if(v)return l.reject(v);var g;try{var b=Ui.parse(h),_=b.data.property.visitor;g=_.history&&_.history.viewNumber!=null?_.history:{},g.segment={state:_.segment.state},g.ipAddress=_.ipAddress,g.ipLocation=_.ipLocation}catch{}if(!g)return l.reject(new Error(i+" response invalid"));try{l.resolve(g),n.set(Gr,!0)}catch(T){return l.reject(T)}})}function w(y,p,l){var d=["//"+i,y,p].join("/");Fi.get(d,function(v,h){if(v)return l.reject(v);var g;try{g=Ui.parse(h)}catch{}if(!g)return l.reject(new Error(i+" response invalid"));try{l.resolve(g),n.set(Gr,!0)}catch(b){return l.reject(b)}})}}function Bu(e){if(e.host)return e.host;if(e.useQubitAPI)switch(e.env.toLowerCase()){case"production":return"api.qubit.com";case"staging":return"api-dev.qubit.com";case"dev":return"localhost:8080"}switch(e.env.toLowerCase()){case"production":return"lookup.qubit.com";case"staging":return"lookup-staging.qubit.com";case"dev":return"localhost:6543"}}function Uu(e){return!(!e.isFirstPageView||e.isSelfReferral&&!e.isFirstView||e.isDirect&&!(e.isNewSession||e.hasUtm))}var Fu=Uu,qu=8,qi=13,Vu=1e5,ju=Qu;function Qu(e){if(e.length>=qi){var t=e.substring(qu,qi),n=Ku(t),r=n;if(!isNaN(r))return r}return String(Hu(e))}function Hu(e){var t=Gu(e);return t<0&&(t=0-t),t%Vu+1}function Gu(e){var t=0,n;if(e.length===0)return t;for(var r=0;r<e.length;r++)n=e.charCodeAt(r),t=(t<<5)-t+n,t=t&t;return t}function Ku(e){return e.split("").reverse().join("")}var Xe=K,Zu=Pu,Xu=Fu,Ee=Ht("visitor"),Yu=ju;function Ju(e){var t=e.biscotti.session,n=e.biscotti.permanent,r=Yu(e.visitorId),i=e.lookup||Zu({env:e.lookupEnv,biscotti:e.biscotti,trackingId:e.trackingId,useQubitAPI:e.useQubitAPI}),a=l(),o={newView:c,newEvent:w,newTransaction:y,sync:d,inSync:s,getState:u,pageViewNumber:0,viewNumber:n.get("viewNumber"),localViewNumbers:a};return o;function s(){return i.inSync()}function u(){var v=Xe.pick(n.getAll(),["conversionNumber","conversionCycleNumber","lifetimeValue","firstViewTs","firstConversionTs","lastConversionTs","sessionNumber","entranceNumber","ipAddress","city","cityCode","country","countryCode","latitude","longitude","area","areaCode","region","regionCode","entranceTs","viewNumber","entranceViewNumber"]),h=Xe.pick(t.getAll(),["eventNumber","sessionViewNumber","sessionTs"]),g=Xe.assign({sample:r,viewTs:o.viewTs||0,visitorId:e.visitorId,pageViewNumber:o.pageViewNumber,cookiePersists:f(),timezoneOffset:new Date().getTimezoneOffset()},v,h);return a.total!==void 0&&(g.viewNumber=a.total),a.session!==void 0&&(g.sessionViewNumber=a.session),a.entrance!==void 0&&(g.entranceViewNumber=a.entrance),g}function c(v){var h={newSession:t.get("sessionViewNumber")===0},g=n.get("sessionNumber");return(h.newSession||g===0)&&n.set("sessionNumber",g+1),o.viewTs=v.time,o.pageViewNumber++,n.set("viewNumber",n.get("viewNumber")+1),t.set("sessionViewNumber",t.get("sessionViewNumber")+1),n.set("entranceViewNumber",n.get("entranceViewNumber")+1),Xe.assign(a,l()),n.get("firstViewTs")||n.set("firstViewTs",v.time),h.newEntrance=Xu({isNewSession:h.newSession,isFirstPageView:o.pageViewNumber===1,isFirstView:o.viewNumber===0,isSelfReferral:e.referrer.isSelfReferral,isDirect:e.referrer.isDirect,hasUtm:e.browserState.hasUtm}),h.newEntrance&&(n.set("entranceTs",v.time),n.set("entranceNumber",n.get("entranceNumber")+1),n.set("entranceViewNumber",1),a.entrance=1,n.flush()),h.newSession&&(t.set("sessionTs",v.time),t.flush(),h.lastViewTs=n.get("lastViewTs")),n.set("lastViewTs",v.time),h}function w(){t.set("eventNumber",t.get("eventNumber")+1)}function y(v,h){Ee.info("Transaction emitted");var g=p();if(g[v]){Ee.info("Transaction is a duplicate");return}var b=Boolean(t.get("sessionConversionNumber"));b||(Ee.info("Incrementing conversionCycleNumber"),n.set("conversionCycleNumber",n.get("conversionCycleNumber")+1)),Ee.info("Incrementing sessionConversionNumber and conversionNumber"),t.set("sessionConversionNumber",t.get("sessionConversionNumber")+1),n.set("conversionNumber",n.get("conversionNumber")+1),Ee.info("Setting lastConversionTs"),n.set("lastConversionTs",h),n.get("firstConversionTs")||(Ee.info("Setting firstConversionTs"),n.set("firstConversionTs",h)),g[v]=!0;try{window.localStorage.setItem("__qubitTransactionIds",JSON.stringify(g))}catch{}}function p(){var v;try{v=JSON.parse(window.localStorage.getItem("__qubitTransactionIds"))}catch{}return v||{}}function l(){return{total:n.get("viewNumber"),entrance:n.get("entranceViewNumber"),session:t.get("sessionViewNumber")}}function d(v){Ee.info("Syncing visitor state"),i.get(e.visitorId).then(h).catch(g);function h(b){var _=!!b.force,T=n.getAll(),B={conversionNumber:Se(T.conversionNumber,b.conversionNumber,0),conversionCycleNumber:Se(T.conversionCycleNumber,b.conversionCycleNumber,0),lifetimeValue:Se(T.lifetimeValue,b.lifetimeValue,0),firstViewTs:T.firstViewTs||b.firstViewTs,lastViewTs:Se(T.lastViewTs,b.lastViewTs),firstConversionTs:T.firstConversionTs||b.firstConversionTs,lastConversionTs:Se(T.lastConversionTs,b.lastConversionTs),viewNumber:Se(T.viewNumber,b.viewNumber,0),entranceViewNumber:Se(T.entranceViewNumber,b.entranceViewNumber,0),sessionNumber:_?b.sessionNumber:Se(T.sessionNumber,b.sessionNumber,0),entranceNumber:_?b.entranceNumber:Se(T.entranceNumber,b.entranceNumber,0),ipAddress:b.ipAddress};b.ipLocation&&Xe.assign(B,Xe.pick(b.ipLocation,["city","cityCode","country","countryCode","latitude","longitude","area","areaCode","region","regionCode"])),n.set(Wu(B)),Ee.info("Visitor state synced",b),v()}function g(b){Ee.warn("Visitor state sync failed",b.message),v()}}function f(){return e.biscotti.persists===void 0?n.persists():e.biscotti.persists}}function Wu(e){var t={};return Xe.objectEach(e,function(n,r){n!==void 0&&(t[r]=n)}),t}function Se(e,t,n){return e&&t?Math.max(e,t):e||t||n}var el=Ju,tl=K;function rl(e,t){return{url:e,isDirect:!e,isSelfReferral:Boolean(e)&&il(t.selfReferralPatterns,function(n){return n.test(e)})}}var nl=rl;function il(e,t){return!!tl.find(e,t)}var Nt=K,al=Ht("joltBindEmitter"),Vi=xr;function ol(e,t,n){return n=n||{},function(r,i){var a,o,s,u,c=typeof r;return c==="function"?(o=r,u=w):(o=i,c==="string"?a=function(d){return d.meta&&d.meta.type===r}:a=function(d){return d.meta&&r.test(d.meta.type)},u=y.bind(null,a)),s=n.replayable&&n.getDispatchedEvents?p(u.bind(null,o)):e.on(t,u(o)),s;function w(l,d){return function(f){var v=l(f);return n.once&&(d||s).dispose(),v}}function y(l,d,f){return function(v){var h=Nt.isArray(v)?v:[v];if(n.once){var g=Nt.find(h,l);g&&(d(g),(f||s).dispose())}else h=Nt.filter(h,l),Nt.each(h,d)}}function p(l){var d=[],f=0,v=!1,h=e.on(t,b),g=l({dispose:Z});return{replay:T,dispose:Z};function b(x){v||(d.push(x),_())}function _(){var x;d.length>0&&f<=0&&!v&&(x=d.shift(),B(function(){g(x)}))}function T(){var x=n.getDispatchedEvents().slice();if(!!x.length){var R=A(x);B(function(){for(var H=0;H<R.length&&v===!1;H++)g(R[H])})}}function B(x){f++;try{x()}catch(R){al.error("Handling Event Error",R.stack)}f--,_()}function Z(){v=!0,h.dispose()}function A(x){var R,H,U,Q;if(Nt.isArray(x[0])){var X=[0,0];for(U=x.length-1;U>=0;U--){var N=x[U],L=!1;for(Q=N.length-1;Q>=0;Q--)if(H=N[Q],Vi.patterns.view.test(H.meta.type)){X=[U,Q],L=!0;break}if(L)break}R=x.slice(X[0]),R[0]=R[0].slice(X[1])}else{var P=0;for(U=x.length-1;U>=0;U--)if(H=x[U],Vi.patterns.view.test(H.meta.type)){P=U;break}R=x.slice(P)}return R}}}}var sl=ol,ji={exports:{}},cl=/anyapex|arachmo|B-l-i-t-z-B-O-T|boitho|Cerberian|Charlotte|cosmos|Covario|DataparkSearch|findlinks|holmes|htdig|ia_archiver|ichiro|l\.webis|^PycURL|^tineye|^VYU2|Larbin|LinkWalker|lwp-trivial|mabontland|Mnogosearch|updated\@updated\.com|Morning Paper|mvaclient|NetResearchServer|NewsGator|yahooseeker|NG-Search|NutchCVS|Nymesis|Orbiter|Qseero|Radian6_|ScoutJet|Teoma|Yahoo\! Slurp|yandex|(?:Peww|Pompos|PostPost|SBIder|Scrubby|SearchSight|semanticdiscovery|shopwiki|snappy|sqworm|StackRambler|truwoGPS|vagabondo|vortex|^voyager|webcollage|yeti|yoogliFetchAgent|zao|zyborg|WomlpeFactory|peew|mogimogi|Accoona-AI-Agent|Mediapartners-Google)\/\d|(?:ABACHO|Spider|Become|Beslist|Bim|Blitz|Diamond|Disco|Dot|Sheild\.com Web|Esperanza|Exa|FDSE ro|Furl|Gais|Galaxy|Genie|Giga|google|Girafa|Guruji|HappyFun|IRL|Jaxified |Jyxo|Koepa|Lapozz|lexxe|Linguee |MJ12|Mojeek|Moreover|msn|msr|mx|nice|noxstrum|\; o|omgili|OmniExplorer.?|OOZ|BitesHyper|poly|ps|RAMPy|Rufus|Seek|SEOChat..|Seznam|Shoula ro|site|suggy|survey|synoo|terrawiz|TheSu|\sro|Turnitin|TweetedTimes |Twenga|voila|yacy|Yasakli|You?dao|zeal|noxtrum|billybob|bt|bing|catch|emerald shield\.com web|)bot|(?:Baidu|\[ITS\]|Fyber|hl_ftien_|iask|igde|ld|Im|Nusearch |sogou |soso|speedy |_Web|z|^lm|igde)sp[iy]der|(?:Convera|Enter?prise |FAST-Web|g2|iC|issue|magpie-|NetSeer |sand|sensis web |Shim-)crawler|www\.almaden\.ibm\.com\/cs\/crawler|oegp v/gi;(function(e){var t=cl;e.exports=function(r){return typeof r=="object"?e.exports(r.headers["User-Agent"]||r.headers["user-agent"]):(r+="",!!r.match(t))},e.exports.regex=t})(ji);var Kr={exports:{}};(function(e,t){(function(n,r){var i="0.7.12",a="",o="?",s="function",u="undefined",c="object",w="string",y="major",p="model",l="name",d="type",f="vendor",v="version",h="architecture",g="console",b="mobile",_="tablet",T="smarttv",B="wearable",Z="embedded",A={extend:function(N,L){var P={};for(var V in N)L[V]&&L[V].length%2==0?P[V]=L[V].concat(N[V]):P[V]=N[V];return P},has:function(N,L){return typeof N=="string"?L.toLowerCase().indexOf(N.toLowerCase())!==-1:!1},lowerize:function(N){return N.toLowerCase()},major:function(N){return typeof N===w?N.replace(/[^\d\.]/g,"").split(".")[0]:r},trim:function(N){return N.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},x={rgx:function(){var N={},L=0,P,V,Y,S,D,z,k=arguments;for(Y=0;Y<k[1].length;Y++)S=k[1][Y],N[typeof S===c?S[0]:S]=r;for(;L<k.length&&!D;){var I=k[L],J=k[L+1];for(P=V=0;P<I.length&&!D;)if(D=I[P++].exec(this.getUA()),D)for(Y=0;Y<J.length;Y++)z=D[++V],S=J[Y],typeof S===c&&S.length>0?S.length==2?typeof S[1]==s?N[S[0]]=S[1].call(this,z):N[S[0]]=S[1]:S.length==3?typeof S[1]===s&&!(S[1].exec&&S[1].test)?N[S[0]]=z?S[1].call(this,z,S[2]):r:N[S[0]]=z?z.replace(S[1],S[2]):r:S.length==4&&(N[S[0]]=z?S[3].call(this,z.replace(S[1],S[2])):r):N[S]=z||r;L+=2}return N},str:function(N,L){for(var P in L)if(typeof L[P]===c&&L[P].length>0){for(var V=0;V<L[P].length;V++)if(A.has(L[P][V],N))return P===o?r:P}else if(A.has(L[P],N))return P===o?r:P;return N}},R={browser:{oldsafari:{version:{"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0","2000":"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0","7":"NT 6.1","8":"NT 6.2","8.1":"NT 6.3","10":["NT 6.4","NT 10.0"],RT:"ARM"}}}},H={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[l,v],[/(opios)[\/\s]+([\w\.]+)/i],[[l,"Opera Mini"],v],[/\s(opr)\/([\w\.]+)/i],[[l,"Opera"],v],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]+)*/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]+)*/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs)\/([\w\.-]+)/i],[l,v],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[l,"IE"],v],[/(edge)\/((\d+)?[\w\.]+)/i],[l,v],[/(yabrowser)\/([\w\.]+)/i],[[l,"Yandex"],v],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],v],[/(micromessenger)\/([\w\.]+)/i],[[l,"WeChat"],v],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[v,[l,"MIUI Browser"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[l,/(.+)/,"$1 WebView"],v],[/android.+samsungbrowser\/([\w\.]+)/i,/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[v,[l,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i,/(qqbrowser)[\/\s]?([\w\.]+)/i],[l,v],[/(uc\s?browser)[\/\s]?([\w\.]+)/i,/ucweb.+(ucbrowser)[\/\s]?([\w\.]+)/i,/juc.+(ucweb)[\/\s]?([\w\.]+)/i],[[l,"UCBrowser"],v],[/(dolfin)\/([\w\.]+)/i],[[l,"Dolphin"],v],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[l,"Chrome"],v],[/;fbav\/([\w\.]+);/i],[v,[l,"Facebook"]],[/fxios\/([\w\.-]+)/i],[v,[l,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[v,[l,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[v,l],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[l,[v,x.str,R.browser.oldsafari.version]],[/(konqueror)\/([\w\.]+)/i,/(webkit|khtml)\/([\w\.]+)/i],[l,v],[/(navigator|netscape)\/([\w\.-]+)/i],[[l,"Netscape"],v],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]+)*/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[l,v]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[h,"amd64"]],[/(ia32(?=;))/i],[[h,A.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[h,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[h,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[h,/ower/,"",A.lowerize]],[/(sun4\w)[;\)]/i],[[h,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+;))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[h,A.lowerize]]],device:[[/\((ipad|playbook);[\w\s\);-]+(rim|apple)/i],[p,f,[d,_]],[/applecoremedia\/[\w\.]+ \((ipad)/],[p,[f,"Apple"],[d,_]],[/(apple\s{0,1}tv)/i],[[p,"Apple TV"],[f,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[f,p,[d,_]],[/(kf[A-z]+)\sbuild\/[\w\.]+.*silk\//i],[p,[f,"Amazon"],[d,_]],[/(sd|kf)[0349hijorstuw]+\sbuild\/[\w\.]+.*silk\//i],[[p,x.str,R.device.amazon.model],[f,"Amazon"],[d,b]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[p,f,[d,b]],[/\((ip[honed|\s\w*]+);/i],[p,[f,"Apple"],[d,b]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|huawei|meizu|motorola|polytron)[\s_-]?([\w-]+)*/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[f,p,[d,b]],[/\(bb10;\s(\w+)/i],[p,[f,"BlackBerry"],[d,b]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone)/i],[p,[f,"Asus"],[d,_]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[f,"Sony"],[p,"Xperia Tablet"],[d,_]],[/(?:sony)?(?:(?:(?:c|d)\d{4})|(?:so[-l].+))\sbuild\//i],[[f,"Sony"],[p,"Xperia Phone"],[d,b]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[f,p,[d,g]],[/android.+;\s(shield)\sbuild/i],[p,[f,"Nvidia"],[d,g]],[/(playstation\s[34portablevi]+)/i],[p,[f,"Sony"],[d,g]],[/(sprint\s(\w+))/i],[[f,x.str,R.device.sprint.vendor],[p,x.str,R.device.sprint.model],[d,b]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[f,p,[d,_]],[/(htc)[;_\s-]+([\w\s]+(?=\))|\w+)*/i,/(zte)-(\w+)*/i,/(alcatel|geeksphone|huawei|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]+)*/i],[f,[p,/_/g," "],[d,b]],[/(nexus\s9)/i],[p,[f,"HTC"],[d,_]],[/(nexus\s6p)/i],[p,[f,"Huawei"],[d,b]],[/(microsoft);\s(lumia[\s\w]+)/i],[f,p,[d,b]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[p,[f,"Microsoft"],[d,g]],[/(kin\.[onetw]{3})/i],[[p,/\./g," "],[f,"Microsoft"],[d,b]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?(:?\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w+)*/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[p,[f,"Motorola"],[d,b]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[p,[f,"Motorola"],[d,_]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[f,A.trim],[p,A.trim],[d,T]],[/hbbtv.+maple;(\d+)/i],[[p,/^/,"SmartTV"],[f,"Samsung"],[d,T]],[/\(dtv[\);].+(aquos)/i],[p,[f,"Sharp"],[d,T]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[f,"Samsung"],p,[d,_]],[/smart-tv.+(samsung)/i],[f,[d,T],p],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)*/i,/sec-((sgh\w+))/i],[[f,"Samsung"],p,[d,b]],[/sie-(\w+)*/i],[p,[f,"Siemens"],[d,b]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]+)*/i],[[f,"Nokia"],p,[d,b]],[/android\s3\.[\s\w;-]{10}(a\d{3})/i],[p,[f,"Acer"],[d,_]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[f,"LG"],p,[d,_]],[/(lg) netcast\.tv/i],[f,p,[d,T]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w+)*/i],[p,[f,"LG"],[d,b]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[p,[f,"Lenovo"],[d,_]],[/linux;.+((jolla));/i],[f,p,[d,b]],[/((pebble))app\/[\d\.]+\s/i],[f,p,[d,B]],[/android.+;\s(glass)\s\d/i],[p,[f,"Google"],[d,B]],[/android.+;\s(pixel c)\s/i],[p,[f,"Google"],[d,_]],[/android.+;\s(pixel xl|pixel)\s/i],[p,[f,"Google"],[d,b]],[/android.+(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d\w)?)\s+build/i],[[p,/_/g," "],[f,"Xiaomi"],[d,b]],[/android.+a000(1)\s+build/i],[p,[f,"OnePlus"],[d,b]],[/\s(tablet)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[d,A.lowerize],f,p]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[v,[l,"EdgeHTML"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[l,v],[/rv\:([\w\.]+).*(gecko)/i],[v,l]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[l,v],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s]+\w)*/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[l,[v,x.str,R.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[l,"Windows"],[v,x.str,R.os.windows.version]],[/\((bb)(10);/i],[[l,"BlackBerry"],v],[/(blackberry)\w*\/?([\w\.]+)*/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]+)*/i,/linux;.+(sailfish);/i],[l,v],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]+)*/i],[[l,"Symbian"],v],[/\((series40);/i],[l],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[l,"Firefox OS"],v],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w+)*/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]+)*/i,/(hurd|linux)\s?([\w\.]+)*/i,/(gnu)\s?([\w\.]+)*/i],[l,v],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[l,"Chromium OS"],v],[/(sunos)\s?([\w\.]+\d)*/i],[[l,"Solaris"],v],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]+)*/i],[l,v],[/(haiku)\s(\w+)/i],[l,v],[/(ip[honead]+)(?:.*os\s([\w]+)*\slike\smac|;\sopera)/i],[[l,"iOS"],[v,/_/g,"."]],[/(mac\sos\sx)\s?([\w\s\.]+\w)*/i,/(macintosh|mac(?=_powerpc)\s)/i],[[l,"Mac OS"],[v,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]+)*/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.]*)*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms)/i,/(unix)\s?([\w\.]+)*/i],[l,v]]},U=function(N,L){if(!(this instanceof U))return new U(N,L).getResult();var P=N||(n&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:a),V=L?A.extend(H,L):H;return this.getBrowser=function(){var Y=x.rgx.apply(this,V.browser);return Y.major=A.major(Y.version),Y},this.getCPU=function(){return x.rgx.apply(this,V.cpu)},this.getDevice=function(){return x.rgx.apply(this,V.device)},this.getEngine=function(){return x.rgx.apply(this,V.engine)},this.getOS=function(){return x.rgx.apply(this,V.os)},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return P},this.setUA=function(Y){return P=Y,this},this};U.VERSION=i,U.BROWSER={NAME:l,MAJOR:y,VERSION:v},U.CPU={ARCHITECTURE:h},U.DEVICE={MODEL:p,VENDOR:f,TYPE:d,CONSOLE:g,MOBILE:b,SMARTTV:T,TABLET:_,WEARABLE:B,EMBEDDED:Z},U.ENGINE={NAME:l,VERSION:v},U.OS={NAME:l,VERSION:v},e.exports&&(t=e.exports=U),t.UAParser=U;var Q=n.jQuery||n.Zepto;if(typeof Q!==u){var X=new U;Q.ua=X.getResult(),Q.ua.get=function(){return X.getUA()},Q.ua.set=function(N){X.setUA(N);var L=X.getResult();for(var P in L)Q.ua[P]=L[P]}}})(typeof window=="object"?window:pt)})(Kr,Kr.exports);var ul=K,Qi=Be.exports,ll=ji.exports,fl=Kr.exports,Hi=window.localStorage,dl=wt;function wt(){var e=wt.getGlobals();return{url:e.url,host:e.host,hasUtm:/utm_(source|medium)=/.test(e.search),referrerUrl:e.referrerUrl,doNotTrack:wl(e.doNotTrack,e.userAgent),ua:hl(e.userAgent),isBot:vl(e.userAgent),time:gl(),screenWidth:e.screenWidth,screenHeight:e.screenHeight}}wt.getGlobals=function(){var t=window.devicePixelRatio||1;return{url:window.location.href,host:window.location.host,search:window.location.search,referrerUrl:document.referrer,doNotTrack:navigator.doNotTrack||navigator.msDoNotTrack||window.doNotTrack,userAgent:navigator.userAgent,screenWidth:window.screen.width*t,screenHeight:window.screen.height*t}};function wl(e,t){return/MSIE 10/.test(t)?!1:typeof e=="string"&&/^(yes|1|true)$/.test(e)}function pl(e){var t=new fl(e),n=t.getOS(),r=t.getBrowser(),i=t.getDevice(),a=[];return i.vendor&&a.push(i.vendor),i.model&&a.push(i.model),{deviceType:i.type||"computer",deviceName:a.join(" "),osName:n.name,osVersion:n.version,browserName:r.name,browserVersion:r.version,userAgent:e}}function hl(e){if(wt.uaCatL1)return wt.uaCatL1;var t;try{t=Qi.parse(Hi.getItem("__qubitUACategorisation"))}catch{}if(!t||t.userAgent!==e){t=pl(e);try{Hi.setItem("__qubitUACategorisation",Qi.stringify(t))}catch{}}return wt.uaCatL1=t,t}function vl(e){return ll(e)||ml(e)}function ml(e){return bl(["digext","sitecon","yottaa","webthumb","seznam","virtualwardrobe-bot","mozilla/4.0 compatible; msie 6.0; windows nt 5.1","Google Web Preview","SiteKiosk","Mozilla/5.0 (X11; Linux x86_64; rv:2.0b12pre) Gecko/ Firefox/4.0","BingPreview","PhantomJS","GomezAgent","google_partner_monitoring","BrowserMob","Stuart/1.0","trivago-AdvertiserQualityAgent/1.0"],function(t){return e.indexOf(t)>-1})}function gl(){return new Date().getTime()}function bl(e,t){return!!ul.find(e,t)}var $e=K,or=dr,sr=Be.exports,Gi=br,Ki=Ln,_l=Rt,yl=Qn.exports.cidr_match,$l=fs.version,re=Ht,ke=xr,kl=Eu,xl=zu,El=el,Sl=nl,cr=sl;Zr.getBrowserState=dl;function Zr(e){var t=$e.assign({},ke.defaults,e);Ct(t.visitorId,"visitorId is a required option"),Ct(t.domains,"domains is a required option"),Ct(t.trackingId,"trackingId is a required option"),Ct(t.uv,"uv is a required option"),Ct(t.biscotti,"biscotti is a required option");var n,r,i,a=!1,o=_l(),s=!1,u,c,w=t.selfReferralPatterns.concat($e.map(t.domains,function(k){var I=k.replace(/^\./,"");return new RegExp("^https?://([a-zA-Z0-9.-]*\\.)?"+I.replace(/\./g,"\\.")+"([/|?|#|:]|$)")})),y=N(),p=Sl(y.referrerUrl,{selfReferralPatterns:w});p.isDirect&&re.info("Direct referral detected"),p.isSelfReferral&&re.info("Self referral detected");var l=$e.pick(t,["env","deflate","batchSize","prongEnv","gongHost","maxQueueLength","eventsToKeep","trackingId","uv","dataLocation"]),d=[];l.eventExpiration=ke.eventExpiration,l.success=function(k){d.push(k),o.emit("success",k)};var f=kl(l),v=$e.assign({browserState:y,referrer:p,patterns:ke.patterns},$e.pick(t,["visitorId","domains","biscotti","lookup","lookupEnv","trackingId","uv","useQubitAPI"])),h=El(v),g={start:b,events:[],version:$l,onEnrichment:cr(o,"enrichment",{replayable:!0,getDispatchedEvents:S}),onceEnrichment:cr(o,"enrichment",{once:!0,replayable:!0,getDispatchedEvents:S}),getState:X,getBrowserState:L,getVisitorState:P,onSuccess:cr(o,"success",{replayable:!0,getDispatchedEvents:D}),onceSuccess:cr(o,"success",{once:!0,replayable:!0,getDispatchedEvents:D}),options:t,destroy:Q,flushQueueCache:f.flushQueueCache,flush:f.flush,inSync:h.inSync,referrer:p,createGong:Pi};return g;function b(){if(re.info("Starting"),h.inSync())return _();h.sync(function(){o.emit("visitorSync")}),t.waitForLookup?o.on("visitorSync",_):_()}function _(){if(!a){var k=h.getState().ipAddress;n=k&&Tl(t.ipBlacklist,function(I){return I instanceof RegExp?I.test(k):yl(k,I)}),i=Boolean(or.val("qb_dnt")),re.info("Replaying emitted UV events"),r=t.uv.on(/.*/,T).replay(),re.info("Finished replaying emitted UV events"),f.flushQueueCache(),u&&(u.resolve(h.getState()),u=null)}}function T(k){if(re.info(k.meta.type+" event emitted by UV"),t.intercept&&!B(k))try{t.intercept(k,Z)}catch(I){re.warn("intercept failed",I.stack),R("qubit.debug",{type:"jolt.interceptFailed",value:sr.stringify({message:I.message,stack:I.stack})})}else try{Z(k)}catch(I){throw k.meta.type!=="qubit.debug"&&R("qubit.debug",{type:"jolt.eventHandlerFailed",value:sr.stringify({message:I.message,stack:I.stack})}),I}}function B(k){return k.meta.type==="qubit.debug"&&k.type==="jolt.interceptFailed"}function Z(k){if(!k||typeof k!="object"||!k.meta||!k.meta.type){re.warn("next() must be called with the event object");return}var I=N();if(ke.patterns.view.test(k.meta.type)){t.dumpCookies&&R("qubit.debug",{type:"jolt.cookieDump",value:sr.stringify({cookieLength:document.cookie.length,_qubitTracker:or.get("_qubitTracker"),permanent:or.get("qb_permanent"),session:or.get("qb_session")})});var J=h.newView(I);J.newEntrance&&V(I),J.newSession&&Y(I,J.lastViewTs),f.flush()}var It=h.getState();if(It.pageViewNumber<1)return re.warn("Event emitted before view, this event will be ignored");var ne=xl(k,It,I,t);if(ne.meta.trackingId=t.trackingId,ne.meta.source="jolt@"+g.version,t.bundleId&&(ne.meta.bundleId=t.bundleId),g.events.push(ne),!t.waitForLookup&&k.meta.type==="qubit.session"?A(ne):o.emit("enrichment",ne),h.newEvent(),ke.patterns.transaction.test(k.meta.type)&&(H(k),h.newTransaction(k.transaction&&k.transaction.id,k.meta.ts)),I.isBot&&!U(k))return s||(s=!0,x("qubit.debug",{type:"jolt.detectedAsBot",value:JSON.stringify({userAgent:I.ua.userAgent})})),re.warn("Browser detected as bot, event not sent to server");if(n)return re.warn("IP address is blacklisted, event not sent to server");if(t.disableTracking)return re.warn("Tracking disabled through options, event not sent to server");if(i)return re.warn("Tracking disabled through cookie flag (qb_dnt), event not sent to server");if(t.lite&&!ke.patterns.liteEvent.test(k.meta.type))return re.warn("Lite mode on, "+k.meta.type+" not sent");if(!t.collectProductListing&&ke.patterns.ecProduct.test(k.meta.type)&&k.eventType==="listing")return re.warn("ecProduct listing event collection is disabled, event not sent to server");re.info("Queueing "+k.meta.type+" event to be sent to the server"),f.sendEvent(ne)}function A(k){h.inSync()?I():o.on("visitorSync",I);function I(){var J=h.getState();k.ipAddress=J.ipAddress,k.ipLocation=$e.pick(J,["city","cityCode","country","countryCode","latitude","longitude","area","areaCode","region","regionCode"]),o.emit("enrichment",k)}}function x(k,I){Math.random()<.1&&R(k,I)}function R(k,I){t.uv.once(ke.patterns.view,function(){t.uv.emit(k,I)}).replay()}function H(k){k.transaction&&k.transaction.id||R("qubit.debug",{type:"jolt.missingTransactionId",value:sr.stringify({event:k})})}function U(k){return k.meta.type==="qubit.debug"&&k.type==="jolt.detectedAsBot"}function Q(){re.info("destroy called"),r&&r.dispose(),f.destroy(),a=!0}function X(){var k=N();return{browser:k,session:Zi(h.getState(),k),visitor:h.getState()}}function N(){return Zr.getBrowserState()}function L(){return Ki(N())}function P(){return h.inSync()?t.waitForFirstView?z():Ki(h.getState()):(u||(u=Gi()),t.waitForFirstView?u.promise.then(z):u.promise)}function V(k){re.info("Emitting entrance event to UV API");var I=k.referrerUrl;I&&(I=I.slice(0,ke.maxUrlLength)),t.uv.emit("qubit.entrance",{referrer:{url:I}})}function Y(k,I){re.info("Emitting session event to UV API");var J=Zi(h.getState(),k);I&&(J.lastViewTs=I),t.uv.emit("qubit.session",J)}function S(){return g.events}function D(){return d}function z(){return c||(c=Gi(),t.uv.once(ke.patterns.view,function(){c.resolve()}).replay()),c.promise.then(function(){return h.getState()})}}function Zi(e,t){var n=$e.pick(e,["firstViewTs","firstConversionTs","lastConversionTs","ipAddress"]),r=$e.pick(e,["city","cityCode","country","countryCode","latitude","longitude","area","areaCode","region","regionCode"]),i=t.ua,a={deviceType:i.deviceType,osName:i.osName,osVersion:i.osVersion,appName:i.browserName,appVersion:i.browserVersion,userAgent:i.userAgent};return i.deviceName&&(a.deviceName=i.deviceName),$e.assign(n,a,{doNotTrack:t.doNotTrack,cookiePersists:e.cookiePersists,appType:"browser",ipLocation:r,screenWidth:t.screenWidth,screenHeight:t.screenHeight})}function Ct(e,t){if(!e)throw new Error(t);return e}function Tl(e,t){return!!$e.find(e,t)}var Il=Zr,zl=[/^https?:\/\/(www\.)?giropay\.[.-a-z]+\.de/,/^https?:\/\/(www\.)?(bay3ds|t)\.2c2p\.com/,/^https?:\/\/(www\.)?m?cashier(md)?\.95516\.com/,/^https?:\/\/(www\.)?easyabc\.95599\.cn/,/^https?:\/\/(www\.)?3d-secure-code\.de/,/^https?:\/\/(www\.)?acs\.3ds-hanseaticbank\.de/,/^https?:\/\/(www\.)?acs\.3dsecure\.az/,/^https?:\/\/(www\.)?3dsecure-cardprocess\.de/,/^https?:\/\/(www\.)?3dsecure-vrp\.de/,/^https?:\/\/(www\.)?acs\d\.3dsecure\.no/,/^https?:\/\/(www\.)?acs\.ababank\.com/,/^https?:\/\/(www\.)?3ds\.abanca\.com/,/^https?:\/\/(www\.)?abnamro\.nl/,/^https?:\/\/(www\.)?acs-(idcheck|visasecure)\.acdcproc\.com/,/^https?:\/\/(www\.)?pay\.activa-card\.com/,/^https?:\/\/(www\.)?(checkoutshopper-)?live\.adyen\.com/,/^https?:\/\/(www\.)?affirm\.com/,/^https?:\/\/(www\.)?portal\.afterpay\.com/,/^https?:\/\/(www\.)?acs\.airplus\.com/,/^https?:\/\/(www\.)?(mc|vs)consumer\.alahli\.com/,/^https?:\/\/(www\.)?acs\.alfabank\.ru/,/^https?:\/\/(www\.)?acs\.alfabank\.kiev\.ua/,/^https?:\/\/(www\.)?esecure\.alhilalbank\.ae/,/^https?:\/\/(www\.)?alignet-acs\.com/,/^https?:\/\/(www\.)?(system\.)?aliorbank\.pl/,/^https?:\/\/(www\.)?((forexprod|mclient|mobileclientgw|unitradeprod)\.)?alipay\.com/,/^https?:\/\/(www\.)?secure-gateway\.allopass\.com/,/^https?:\/\/(www\.)?production\.altpayfirstdata\.com/,/^https?:\/\/(www\.)?payments\.amazon\.co\.uk/,/^https?:\/\/(www\.)?payments-eu\.amazon\.com/,/^https?:\/\/(www\.)?((a?acs-)?safekey(-\d)?|online|www435)\.americanexpress\.com/,/^https?:\/\/(www\.)?aacs\.amexsafekey\.com/,/^https?:\/\/(www\.)?3dverify\.anb\.com\.sa/,/^https?:\/\/(www\.)?acs\.arca\.am/,/^https?:\/\/(www\.)?((attempts|secure\d|tsys)\.)?arcot\.com/,/^https?:\/\/(www\.)?diensten\.asnbank\.nl/,/^https?:\/\/(www\.)?trides-cld\.asseco-see\.hr/,/^https?:\/\/(www\.)?gateway\.atlaspay\.online/,/^https?:\/\/(www\.)?atds\.attijariwafa\.com/,/^https?:\/\/(www\.)?secure\.authorize\.net/,/^https?:\/\/(www\.)?secure\d?\.axisbank\.com/,/^https?:\/\/(www\.)?acs\.ayabank\.com/,/^https?:\/\/(www\.)?threed\.baj\.com\.sa/,/^https?:\/\/(www\.)?ipay\.bangkokbank\.com/,/^https?:\/\/(www\.)?3dauthentication\.bankcomm\.com/,/^https?:\/\/(www\.)?bankmillennium\.pl/,/^https?:\/\/(www\.)?secure\.bankofamerica\.com/,/^https?:\/\/(www\.)?secureshopping\.bankofmelbourne\.com\.au/,/^https?:\/\/(www\.)?secureshopping\.banksa\.com\.au/,/^https?:\/\/(www\.)?acs(absa|acssbafrica|investec|sb)\.bankserv\.co\.za/,/^https?:\/\/(www\.)?secure\.barclaycard\.co\.uk/,/^https?:\/\/(www\.)?live\.barclaycardsmartpay\.com/,/^https?:\/\/(www\.)?verifiedbyvisa\.barclays\.(co\.uk|com)/,/^https?:\/\/(www\.)?epayment\.bbs\.no/,/^https?:\/\/(www\.)?acs\.bccard\.com/,/^https?:\/\/(www\.)?acs\.bdo\.com\.ph/,/^https?:\/\/(www\.)?secure-magenta1\.be2bill\.com/,/^https?:\/\/(www\.)?bezpecneplatby\.rb\.cz/,/^https?:\/\/(www\.)?acs\.bkm\.com\.tr/,/^https?:\/\/(www\.)?3ds\.bnpparibas\.com/,/^https?:\/\/(www\.)?3ds\.borica\.bg/,/^https?:\/\/(www\.)?cardsecurity\.bnz\.co\.nz/,/^https?:\/\/(www\.)?3debspay\.boc\.cn/,/^https?:\/\/(www\.)?iservice\.boccc\.com\.hk/,/^https?:\/\/(www\.)?(secure.3ds|vbv)\.bonuscard\.ch/,/^https?:\/\/(www\.)?i3d\.borica\.bg/,/^https?:\/\/(www\.)?bosbank24\.pl/,/^https?:\/\/(www\.)?3ds\.bov\.com/,/^https?:\/\/(www\.)?acs1?\.bradescocartoes\.com\.br/,/^https?:\/\/(www\.)?acs\.bspb\.ru/,/^https?:\/\/(www\.)?ecclients\.btrl\.ro/,/^https?:\/\/(www\.)?(ideal\.)?bunq\.com/,/^https?:\/\/(www\.)?acs\.cafis-paynet\.jp/,/^https?:\/\/(www\.)?ecom\.campubank\.com\.kh/,/^https?:\/\/(www\.)?acs\.canadiabank\.com/,/^https?:\/\/(www\.)?3ds\.capitecbank\.co\.za/,/^https?:\/\/(www\.)?3ds(ec)?\.cardcenter\.ch/,/^https?:\/\/(www\.)?(ipg|3ds-secure)\.cardcomplete\.com/,/^https?:\/\/(www\.)?([a-z]+\.)?cardinalcommerce\.com/,/^https?:\/\/(www\.)?acs(sg)?\.cardnet-tds\.com/,/^https?:\/\/(www\.)?authenticationweb\.cartoes-itau\.com\.br/,/^https?:\/\/(www\.)?ibsbjstar\.ccb\.com\.cn/,/^https?:\/\/(www\.)?(acs[mv]\.)?centrum24\.pl/,/^https?:\/\/(www\.)?3ds2\.checkout\.com/,/^https?:\/\/(www\.)?payments\.chronopay\.com/,/^https?:\/\/(www\.)?acs[12]-3dsecure\.cic\.fr/,/^https?:\/\/(www\.)?acs\.cihanbank\.com/,/^https?:\/\/(www\.)?acsprod\.cihbank\.ma/,/^https?:\/\/(www\.)?cimb(debit)?-securee-pay\.cimb\.com/,/^https?:\/\/(www\.)?accesscontrol\.citibank\.co\.kr/,/^https?:\/\/(www\.)?citibank\.co\.in/,/^https?:\/\/(www\.)?secureauthentication(\d)?\.(apac\.)?citibank\.com/,/^https?:\/\/(www\.)?online\.citibank\.pl/,/^https?:\/\/(www\.)?citibankonline\.pl/,/^https?:\/\/(www\.)?portal\.clearpay\.co\.uk/,/^https?:\/\/(www\.)?ipay\.clictopay\.com/,/^https?:\/\/(www\.)?acs[12]-3dsecure\.cm-cic\.com/,/^https?:\/\/(www\.)?(mastercard\.|visa\.)?acs\.cmbchina\.com/,/^https?:\/\/(www\.)?3dsecure\.[-a-z]+(\.com)?\.[a-z]{2}/,/^https?:\/\/(www\.)?(verifiedbyvisa2?|visasecure2)\.comdirect\.de/,/^https?:\/\/(www\.)?geschuetzt(ein)?kaufen2?\.commerzbank\.de/,/^https?:\/\/(www\.)?computop-paygate\.com/,/^https?:\/\/(www\.)?ecst\.conexflow\.com/,/^https?:\/\/(www\.)?verifiedbyvisa\.consorsbank\.de/,/^https?:\/\/(www\.)?3ds\.consorsfinanz\.de/,/^https?:\/\/(www\.)?secure\.3ds\.cornercard\.ch/,/^https?:\/\/(www\.)?verifiedbyvisa\.cortalconsors\.de/,/^https?:\/\/(www\.)?acsclient\.credecard\.com/,/^https?:\/\/(www\.)?acs1\.crediteurope\.ro/,/^https?:\/\/(www\.)?acs[12]?-3dsecure\.creditmutuel\.fr/,/^https?:\/\/(www\.)?family\.ctbcbank\.com/,/^https?:\/\/(www\.)?acs\.cupdata\.com/,/^https?:\/\/(www\.)?pp2\.cxmlpg\.com/,/^https?:\/\/(www\.)?secureacceptance\.cybersource\.com/,/^https?:\/\/(www\.)?hps\.datacash\.com/,/^https?:\/\/(www\.)?3dsg\.dbs\.com/,/^https?:\/\/(www\.)?secure\.dkb\.de/,/^https?:\/\/(www\.)?ecomm\.dnb\.lv/,/^https?:\/\/(www\.)?acsweb(-pa)?\.dnp-cdms\.jp/,/^https?:\/\/(www\.)?ssl\.dotpay\.pl/,/^https?:\/\/(www\.)?acs(sv)?\.dskbank\.bg/,/^https?:\/\/(www\.)?3ds\.e-cartebleue\.com/,/^https?:\/\/(www\.)?vbv\.eahli\.com/,/^https?:\/\/(www\.)?3dspayment\.easybank\.at/,/^https?:\/\/(www\.)?eblik\.pl/,/^https?:\/\/(www\.)?acs\.creditcard\.ecitic\.com/,/^https?:\/\/(www\.)?ecocart\.io/,/^https?:\/\/(www\.)?acs[12]\.edb\.com/,/^https?:\/\/(www\.)?ecom\.eglobal\.com\.mx/,/^https?:\/\/(www\.)?corpbank\.electracard\.com/,/^https?:\/\/(www\.)?(vs)?3dverify(albilad|alinma|bsf)\.emcrey\.com/,/^https?:\/\/(www\.)?[a-z]+\.emergentpayments\.net/,/^https?:\/\/(www\.)?pagamentoseguro\.emis\.co\.ao/,/^https?:\/\/(www\.)?3ds-b\.live\.ext\.prod\.enfuce\.com/,/^https?:\/\/(www\.)?cardsecurity\.enstage\.com/,/^https?:\/\/(www\.)?(acs7(-sdc)?|csch|(b2-dw|b4)-pdc)\.enstage-sas\.com/,/^https?:\/\/(www\.)?p[ap]\.ephapay\.net/,/^https?:\/\/(www\.)?acs1\.estcard\.ee/,/^https?:\/\/(www\.)?online\.eurobank\.pl/,/^https?:\/\/(www\.)?ims\.euronet3dsecure\.com/,/^https?:\/\/(www\.)?(acs|pay)\.site1\.europsl\.eu/,/^https?:\/\/(www\.)?mdpay\.fibank\.bg/,/^https?:\/\/(www\.)?acs\.fio\.cz/,/^https?:\/\/(www\.)?mc-id-check\.firstdata\.de/,/^https?:\/\/(www\.)?acs\.firstdata\.lv/,/^https?:\/\/(www\.)?(test)?pg\.firstpay\.co\.kr/,/^https?:\/\/(www\.)?acs3d\.fisc\.com\.tw/,/^https?:\/\/(www\.)?3dsecureprd\.fnb\.co\.za/,/^https?:\/\/(www\.)?acs\.forabank\.ru/,/^https?:\/\/(www\.)?acs\.fssnet\.co\.in/,/^https?:\/\/(www\.)?checkout\.gateline\.net/,/^https?:\/\/(www\.)?acs\.gazprombank\.ru/,/^https?:\/\/(www\.)?gc3d\.georgiancard\.ge/,/^https?:\/\/(www\.)?r\.girogate\.de/,/^https?:\/\/(www\.)?webservices\.global-e\.com/,/^https?:\/\/(www\.)?acs\d?\.gpesecure\.com/,/^https?:\/\/(www\.)?mpi\.gpwebpay\.com/,/^https?:\/\/(www\.)?securecall\.gruppocariparma\.it/,/^https?:\/\/(www\.)?acs\.hanacard\.co\.kr/,/^https?:\/\/(www\.)?secure\.handelsbanken\.se/,/^https?:\/\/(www\.)?netsafe\.hdfcbank\.com/,/^https?:\/\/(www\.)?secure-gateway\.hipay-tpp\.com/,/^https?:\/\/(www\.)?(evgr-)?securepay\.hsbc\.com?\.[a-z]{2}/,/^https?:\/\/(www\.)?ansimclick\.hyundaicard\.com/,/^https?:\/\/(www\.)?orderpage\.ic3\.com/,/^https?:\/\/(www\.)?(hw)?acs(formaster)?\.icbc\.com\.cn/,/^https?:\/\/(www\.)?(acs1|3dsecure1)\.icicibank\.com/,/^https?:\/\/(www\.)?icscards\.nl/,/^https?:\/\/(www\.)?api\.id\.me/,/^https?:\/\/(www\.)?(bankieren\.)?(ideal\.)?ing\.nl/,/^https?:\/\/(www\.)?secureyou3d\.ing\.be/,/^https?:\/\/(www\.)?3ds\.(fr|pl)\.ing\.com/,/^https?:\/\/(www\.)?visa-secure(-bxl|-vdm)?\.ing\.de/,/^https?:\/\/(www\.)?verified-by-visa\.ing-diba\.de/,/^https?:\/\/(www\.)?(e|login|online)\.ingbank\.pl/,/^https?:\/\/(www\.)?((dr|fc|ks)mobile|stdpay)\.inicis\.com/,/^https?:\/\/(www\.)?inteligo\.pl/,/^https?:\/\/(www\.)?(payment\.)?ipay88\.com\.my/,/^https?:\/\/(www\.)?ipko\.pl/,/^https?:\/\/(www\.)?(bps|dbpolska)\.3dsecure\.itcard\.pl/,/^https?:\/\/(www\.)?3ds\.jccsecure\.com/,/^https?:\/\/(www\.)?((h5|we)pay|jdpaycert)\.jd\.com/,/^https?:\/\/(www\.)?rt03\.kasikornbank\.com/,/^https?:\/\/(www\.)?acs\.kbcard\.com/,/^https?:\/\/(www\.)?pay\.kcp\.co\.kr/,/^https?:\/\/(www\.)?(cards-eu|checkout|pay|payment-(eu|na))\.klarna\.com/,/^https?:\/\/(www\.)?ideal\.knab\.nl/,/^https?:\/\/(www\.)?vbv\.ktb\.co\.th/,/^https?:\/\/(www\.)?(3d|paiement\d?)\.secure\.lcl\.fr/,/^https?:\/\/(www\.)?leetchi\.com/,/^https?:\/\/(www\.)?payment\.limonetik\.com/,/^https?:\/\/(www\.)?web-pay\.line\.me/,/^https?:\/\/(www\.)?clicksafe\.lloydstsb\.com/,/^https?:\/\/(www\.)?lolli\.com/,/^https?:\/\/(www\.)?sps\.lottecard\.co\.kr/,/^https?:\/\/(www\.)?acs\.luminorgroup\.com/,/^https?:\/\/(www\.)?acs[12]\.luottokunta\.fi/,/^https?:\/\/(www\.)?lydia-app\.com/,/^https?:\/\/(www\.)?authentication-acs\.marqeta\.com/,/^https?:\/\/(www\.)?acs\.mashreq\.com/,/^https?:\/\/(www\.)?masterpass\.com/,/^https?:\/\/(www\.)?maybankard3dsecure\.maybank\.com\.my/,/^https?:\/\/(www\.)?(3dsecure|mtransfer|online)\.mbank\.pl/,/^https?:\/\/(www\.)?3dauth\.mbu\.hr/,/^https?:\/\/(www\.)?acs\.mepspay\.com/,/^https?:\/\/(www\.)?acs\.mercurypaymentservices\.it/,/^https?:\/\/(www\.)?secure\.metacharge\.com/,/^https?:\/\/(www\.)?securegw1\.micb\.md/,/^https?:\/\/(www\.)?3ds\.millikart\.az/,/^https?:\/\/(www\.)?acs[12]\.(3ds|valitor)\.modirum\.com/,/^https?:\/\/(www\.)?www\.mollie\.com/,/^https?:\/\/(www\.)?pay\.mollie\.nl/,/^https?:\/\/(www\.)?monetaonline\.it/,/^https?:\/\/(www\.)?3dsecure-prd2\.monext\.fr/,/^https?:\/\/(www\.)?dc2\.moneykit\.net/,/^https?:\/\/(www\.)?verify\.monzo\.com/,/^https?:\/\/(www\.)?debit-3d\.bk\.mufg\.jp/,/^https?:\/\/(www\.)?(pt?01\.)?mul-pay\.jp/,/^https?:\/\/(www\.)?acs\.multicarta\.ru/,/^https?:\/\/(www\.)?bsn3dssl\.mybsn\.com\.my/,/^https?:\/\/(www\.)?(aptopaysafe|foriseu)-vbv\.mycardplace\.com/,/^https?:\/\/(www\.)?mycardsecure\.com/,/^https?:\/\/(www\.)?(cardsecurity\.)?nab\.com\.au/,/^https?:\/\/(www\.)?gfs\.nb\.se/,/^https?:\/\/(www\.)?3ds-n[123]\.nbg\.gr/,/^https?:\/\/(www\.)?((emv3ds-)?acs|nccnet-ec)\.nccc\.com\.tw/,/^https?:\/\/(www\.)?(acs\.)?nedsecure\.co\.za/,/^https?:\/\/(www\.)?pay\.netbanx\.com/,/^https?:\/\/(www\.)?(ps4)?acs\.netcetera(-payment)?\.ch/,/^https?:\/\/(www\.)?acs\.netsgroup\.com/,/^https?:\/\/(www\.)?api\.neteller\.com/,/^https?:\/\/(www\.)?3dssg\.ocbc\.com/,/^https?:\/\/(www\.)?secure\.ogone\.com/,/^https?:\/\/(www\.)?secure\.oney\.fr/,/^https?:\/\/(www\.)?acs2\.onlinesbi\.com/,/^https?:\/\/(www\.)?acssv\.otpbank\.hu/,/^https?:\/\/(www\.)?sigurna-kupovina\.otpbanka\.hr/,/^https?:\/\/(www\.)?form\.pagamastarde\.com/,/^https?:\/\/(www\.)?tpeweb\d?\.paybox\.com/,/^https?:\/\/(www\.)?checkout\.paybreak\.com/,/^https?:\/\/(www\.)?secure\.payengine\.de/,/^https?:\/\/(www\.)?3dspayment\.paylife\.at/,/^https?:\/\/(www\.)?(homologation-)?webpayment\.payline\.com/,/^https?:\/\/(www\.)?(mobile\.|sandbox\.|securepayments\.)?paypal\.com/,/^https?:\/\/(www\.)?(customer\.cc\.at\.)?paysafecard\.com/,/^https?:\/\/(www\.)?secure\.payu\.in/,/^https?:\/\/(www\.)?txn\.apac\.paywithpoli\.com/,/^https?:\/\/(www\.)?secure\.payzen\.eu/,/^https?:\/\/(www\.)?ecom\.pbebank\.com/,/^https?:\/\/(www\.)?(platnosci\.)?pekao24\.pl/,/^https?:\/\/(www\.)?threedsecurepa\.petafuel\.net/,/^https?:\/\/(www\.)?netpay\.pingan\.com\.cn/,/^https?:\/\/(www\.)?playpennies\.com/,/^https?:\/\/(www\.)?3d-secure\.pluscard\.de/,/^https?:\/\/(www\.)?3d-secure\.postbank\.de/,/^https?:\/\/(www\.)?3dsec\.postfinance\.ch/,/^https?:\/\/(www\.)?ppipe\.net/,/^https?:\/\/(www\.)?acs\.privatbank\.ua/,/^https?:\/\/(www\.)?(go|secure)\.przelewy24\.pl/,/^https?:\/\/(www\.)?3dsclient\.qib\.com\.qa/,/^https?:\/\/(www\.)?3ds\.qnb\.com/,/^https?:\/\/(www\.)?(betalen\.)?rabobank\.nl/,/^https?:\/\/(www\.)?rba\.hr/,/^https?:\/\/(www\.)?acs\.rcbcy\.com/,/^https?:\/\/(www\.)?hpp\.realexpayments\.com/,/^https?:\/\/(www\.)?(sasw?|sis)\.redsys\.es/,/^https?:\/\/(www\.)?business\.revolut\.com/,/^https?:\/\/(www\.)?3ds\.rpc-raiffeisen\.com/,/^https?:\/\/(www\.)?biztonsagikod\.raiffeisen\.hu/,/^https?:\/\/(www\.)?acs\.raiffeisen\.ru/,/^https?:\/\/(www\.)?diensten\.regiobank\.nl/,/^https?:\/\/(www\.)?secure\.safebill\.ch/,/^https?:\/\/(www\.)?secure\.safecharge\.com/,/^https?:\/\/(www\.)?saferpay\.com/,/^https?:\/\/(www\.)?(checkout|live)\.sagepay\.com/,/^https?:\/\/(www\.)?vbv\.samsungcard\.co\.kr/,/^https?:\/\/(www\.)?santander\.cl/,/^https?:\/\/(www\.)?3d-secure\d\.sbanken\.no/,/^https?:\/\/(www\.)?acs\d\.sbrf\.ru/,/^https?:\/\/(www\.)?vbv\.scb\.co\.th/,/^https?:\/\/(www\.)?vpv\.scddesjardins\.com/,/^https?:\/\/(www\.)?(3d|ibanka)\.seb\.lv/,/^https?:\/\/(www\.)?dirbet\.seb\.se/,/^https?:\/\/(www\.)?secpay\.com/,/^https?:\/\/(www\.)?(e(test)?ws1|pa2?)\.secure-payment-processing\.com/,/^https?:\/\/(www\.)?mastercardsecurecode\.secureacs\.com/,/^https?:\/\/(www\.)?secure\d+gw\.ro/,/^https?:\/\/(www\.)?(cap(\.attempts)?\.)?securecode\.com/,/^https?:\/\/(www\.)?securesuite\.(co\.uk|net)/,/^https?:\/\/(www\.)?(payments\.)?securetrading\.net/,/^https?:\/\/(www\.)?sas\.sermepa\.es/,/^https?:\/\/(www\.)?channel\.shinhan\.com\.vn/,/^https?:\/\/(www\.)?vbv\.shinhancard\.com/,/^https?:\/\/(www\.)?(acs|esecure)\.sia\.eu/,/^https?:\/\/(www\.)?acs\.sibs\.pt/,/^https?:\/\/(www\.)?acs\d\.six-payment-services\.com/,/^https?:\/\/(www\.)?(pay\.)?skrill\.com/,/^https?:\/\/(www\.)?(diensten|ideal)\.snsbank\.nl/,/^https?:\/\/(www\.)?sofort\.com/,/^https?:\/\/(www\.)?acs\d\.sparebank1\.no/,/^https?:\/\/(www\.)?sicher-bezahlen\.sparkasse\.at/,/^https?:\/\/(www\.)?(mastercard(identitycheck|securecode)|verifiedbyvisa)\.sparkassen-kreditkarten\.de/,/^https?:\/\/(www\.)?acs\.spdb\.com\.cn/,/^https?:\/\/(www\.)?cardsecurity\.standardchartered\.com/,/^https?:\/\/(www\.)?(secureshopping\.)?stgeorge\.com\.au/,/^https?:\/\/(www\.)?((acs[12]|internetbank)\.)?swedbank\.se/,/^https?:\/\/(www\.)?swedbank\.se/,/^https?:\/\/(www\.)?acs\.swisscard\.ch/,/^https?:\/\/(www\.)?system\.t-mobilebankowe\.pl/,/^https?:\/\/(www\.)?emv3ds-acs\.taipeifubon\.com\.tw/,/^https?:\/\/(www\.)?acs[12]-3dsecure\.targobank\.de/,/^https?:\/\/(www\.)?acs\.tbcbank\.ge/,/^https?:\/\/(www\.)?acs\.techcombank\.com\.vn/,/^https?:\/\/(www\.)?secure\.telluspay\.com/,/^https?:\/\/(www\.)?tenpay\.com/,/^https?:\/\/(www\.)?thepaymentsplace\.com\.au/,/^https?:\/\/(www\.)?secure\.tinkoff\.ru/,/^https?:\/\/(www\.)?secure\.eu\.tnspayments\.com/,/^https?:\/\/(www\.)?(idcheck|verifiedbyvisa)\.acs\.touchtechpayments\.com/,/^https?:\/\/(www\.)?acs\.tpb\.vn/,/^https?:\/\/(www\.)?ideal\.triodos\.nl/,/^https?:\/\/(www\.)?trustly\.com/,/^https?:\/\/(www\.)?dsecure\.tymedigital\.com/,/^https?:\/\/(www\.)?acs1\.unicredit\.ru/,/^https?:\/\/(www\.)?fpay\.uniteller\.ru/,/^https?:\/\/(www\.)?uobm?3ds\.uobgroup\.com/,/^https?:\/\/(www\.)?pagseguro\.uol\.com\.br/,/^https?:\/\/(www\.)?acs\.upc\.ua/,/^https?:\/\/(www\.)?secureshopping\.usaa360\.com/,/^https?:\/\/(www\.)?(ideal\.)?vanlanschot\.com/,/^https?:\/\/(www\.)?(aacsw\.3ds\.)?verifiedbyvisa\.com/,/^https?:\/\/(www\.)?(checkout|vcas\d)\.visa\.com/,/^https?:\/\/(www\.)?vcas02\w\.visa3dsecure\.com/,/^https?:\/\/(www\.)?acs1\.viseca\.ch/,/^https?:\/\/(www\.)?3dsp\.vtb\.ru/,/^https?:\/\/(www\.)?(secureshopping\.)?westpac\.com\.au/,/^https?:\/\/(www\.)?secure-acs2ui-b1-ind(blr-blrtdc|mum-mumrdc)\.wibmo\.com/,/^https?:\/\/(www\.)?(3dsecure-\d|checkout)\.wirecard\.com/,/^https?:\/\/(www\.)?[-a-z0-9]+\.wlp-acs\.com/,/^https?:\/\/(www\.)?acs\.wooricard\.com/,/^https?:\/\/(www\.)?(hpp|payments|secure)\.worldpay\.com/,/^https?:\/\/(www\.)?xecure3d\.com/,/^https?:\/\/(www\.)?(m|(sandbox-)?secure)\.xsolla\.com/,/^https?:\/\/(www\.)?paymentcard\.yamoney\.ru/,/^https?:\/\/(www\.)?money\.yandex\.ru/,/^https?:\/\/(www\.)?paymentcard\.yoomoney\.ru/,/^https?:\/\/(www\.)?zaba\.hr/,/^https?:\/\/(www\.)?indusindbank-amx102-cipher2-mum\.gw\.zetapay\.in/];export{Cl as a,Nl as b,dr as c,Il as d,Al as l,zl as p,Go as r};
package/dist/index.html DELETED
@@ -1,50 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en" style="height: 100%">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>Relay</title>
7
-
8
- <style>
9
- code {
10
- background-color: antiquewhite;
11
- }
12
- </style>
13
- <script>
14
- function logEcView() {
15
- window.uv.emit("ecView");
16
- }
17
- </script>
18
- <script type="module" crossorigin src="/relay.js"></script>
19
- <link rel="modulepreload" href="/assets/vendor.1136e5fc.js">
20
- </head>
21
- <body style="height: inherit; margin: 0; position: relative">
22
- <div
23
- style="
24
- position: absolute;
25
- top: 50%;
26
- left: 50%;
27
- transform: translate(-50%, -50%);
28
- "
29
- >
30
- <header style="text-align: center">
31
- <h1>Relay</h1>
32
- <p>An analytics SDK to send q-protocol events.</p>
33
- </header>
34
- <br />
35
- <p>
36
- Try <code>window.uv.emit</code> and <code>window.relay</code> in the
37
- browser console.
38
- </p>
39
- <p>
40
- Note: the first event <em>must</em> be a view event. e.g.
41
- <code>window.uv.emit('ecView')</code>
42
- </p>
43
- <div>
44
- <button style="display: block; margin: 0 auto">
45
- log <span onclick="logEcView()">ecView</span>
46
- </button>
47
- </div>
48
- </div>
49
- </body>
50
- </html>
package/dist/relay.js DELETED
@@ -1 +0,0 @@
1
- var g=Object.defineProperty,v=Object.defineProperties;var b=Object.getOwnPropertyDescriptors;var d=Object.getOwnPropertySymbols;var p=Object.prototype.hasOwnProperty,y=Object.prototype.propertyIsEnumerable;var f=(t,e,o)=>e in t?g(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,a=(t,e)=>{for(var o in e||(e={}))p.call(e,o)&&f(t,o,e[o]);if(d)for(var o of d(e))y.call(e,o)&&f(t,o,e[o]);return t},c=(t,e)=>v(t,b(e));import{l as w,b as h,c as u,r as k,a as I,p as _,d as T}from"./assets/vendor.1136e5fc.js";const D=function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))i(n);new MutationObserver(n=>{for(const r of n)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function o(n){const r={};return n.integrity&&(r.integrity=n.integrity),n.referrerpolicy&&(r.referrerPolicy=n.referrerpolicy),n.crossorigin==="use-credentials"?r.credentials="include":n.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function i(n){if(n.ep)return;n.ep=!0;const r=o(n);fetch(n.href,r)}};D();function q(t,e){return t.find(i=>L(i).test(e))||""}function L(t){return new RegExp("(^|\\.)"+C(t).replace(/\./g,"\\.")+"$")}function C(t){return t.replace(/^\./,"")}function U(t,e){const{domains:o}=t,i=e.location.hostname,n=q(o,i);return c(a({disableTracking:N(e),host:"www.gong.cloud.coveo.com",intercept:(r,s)=>s(r)},t),{cookieDomain:n})}function N(t){return t.doNotTrack==="1"||t.navigator.doNotTrack==="1"}function P(){return{abort:!1,bundleId:"({}).bundleId",log:w,window:V()}}function V(){return globalThis.window!==void 0?window:{location:{hostname:""},navigator:{userAgent:""}}}function E(t,e){const o=!t.cookieDomain;return o&&e.log.error("No cookie domain in the config matches the current domain"),c(a({},e),{abort:o})}function O(t,e){const o=h({domain:t.cookieDomain}),i=!o.persists;return i&&e.log.error("Cookies cannot persist"),c(a({},e),{abort:i,biscotti:o})}function S(t,e){const o=e.biscotti.permanent;let i=o.get("visitorId")||A();return i||(e.log.info("Creating new visitor ID"),i=k(),o.set("visitorId",i),o.flush()),B(i,t.cookieDomain),o.set("visitorId",i),e.log.info("Visitor detected as "+i),c(a({},e),{visitorId:i})}function A(){return u.get("_qubitTracker")[0]&&u.get("_qubitTracker")[0].value}function B(t,e){u.set("_qubitTracker",t,{expires:M(1*(1e3*60*60*24*365)),domain:e,path:"/"})}function M(t){const e=new Date().getTime();return new Date(e+t)}function R(t,e){const o=$(e);J(o,e);const i=(n,r)=>{const s=/^([^.]+\.)?[a-z]{2}View$/,m=()=>o.emit(n,r);o.once(s,m).replay()};return c(a({},e),{uv:o,emitUvEvent:i})}function $(t){const{window:e}=t;return l(e)?e.uv:z(e)&&l(e.__qubit)?e.__qubit.uv:I()}function l(t){const e=t&&t.uv;return e&&"emit"in e}function z(t){return"__qubit"in t}function J(t,e){const{window:o}=e;l(o)||(o.uv=t);const i=o.__qubit;i&&!i.uv&&(i.uv=t)}function W(t,e){const o={biscotti:e.biscotti,bundleId:e.bundleId,disableTracking:t.disableTracking,domains:t.domains,gongHost:t.host,intercept:t.intercept,lookup:j(),selfReferralPatterns:_,trackingId:t.trackingId,uv:e.uv,visitorId:e.visitorId},i=T(o);return i.start(),c(a({},e),{jolt:i})}function j(){const t={firstConversionTs:0,firstViewTs:0,ipAddress:""};return{inSync:()=>!1,get:()=>Promise.resolve(t),for:()=>({get:()=>Promise.resolve(t),inSync:()=>!1,name:""})}}function F(t,e){return[E,R,O,S,W].reduce((n,r)=>n.abort?n:r(t,n),e)}function H(t){const e=P(),o=U(t,e.window);return F(o,e)}window.relay=H({domains:["localhost",".coveo.com"],trackingId:"relay-demo",host:"gong-eb.qubit.com"});