@saasquatch/squatch-js 2.6.0-7 → 2.6.0-9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/README.md +14 -5
  3. package/coverage/clover.xml +582 -566
  4. package/coverage/coverage-final.json +20 -19
  5. package/coverage/lcov.info +964 -930
  6. package/dist/async.d.ts +4 -2
  7. package/dist/globals.d.ts +4 -0
  8. package/dist/squatch.esm.js +59 -49
  9. package/dist/squatch.esm.js.map +1 -1
  10. package/dist/squatch.js +59 -49
  11. package/dist/squatch.js.map +1 -1
  12. package/dist/squatch.min.js +1 -1
  13. package/dist/utils/validate.d.ts +0 -2
  14. package/dist/widgets/PopupWidget.d.ts +2 -2
  15. package/dist/widgets/Widgets.d.ts +8 -8
  16. package/dist/widgets/declarative/DeclarativeWidget.d.ts +10 -5
  17. package/package.json +1 -1
  18. package/coverage/lcov-report/DeclarativeWidget.ts.html +0 -790
  19. package/coverage/lcov-report/WidgetApi.ts.html +0 -631
  20. package/coverage/lcov-report/Widgets.ts.html +0 -1105
  21. package/coverage/lcov-report/api/AnalyticsApi.ts.html +0 -304
  22. package/coverage/lcov-report/api/EventsApi.ts.html +0 -352
  23. package/coverage/lcov-report/api/WidgetApi.ts.html +0 -658
  24. package/coverage/lcov-report/api/graphql.ts.html +0 -130
  25. package/coverage/lcov-report/squatch.ts.html +0 -721
  26. package/coverage/lcov-report/utils/cookieUtils.ts.html +0 -415
  27. package/coverage/lcov-report/utils/decodeUserJwt.ts.html +0 -133
  28. package/coverage/lcov-report/utils/domready.ts.html +0 -160
  29. package/coverage/lcov-report/utils/io.ts.html +0 -400
  30. package/coverage/lcov-report/utils/utmUtils.ts.html +0 -277
  31. package/coverage/lcov-report/utils/validate.ts.html +0 -268
  32. package/coverage/lcov-report/validate.ts.html +0 -268
  33. package/coverage/lcov-report/widgets/EmbedWidget.ts.html +0 -481
  34. package/coverage/lcov-report/widgets/PopupWidget.ts.html +0 -685
  35. package/coverage/lcov-report/widgets/Widget.ts.html +0 -1159
  36. package/coverage/lcov-report/widgets/Widgets.ts.html +0 -1102
  37. package/coverage/lcov-report/widgets/declarative/DeclarativeWidget.ts.html +0 -790
  38. package/coverage/lcov-report/widgets/declarative/DeclarativeWidgets.ts.html +0 -388
  39. package/dist/squatch.min.js.map +0 -1
  40. package/dist/squatch.modern.js +0 -2
  41. package/dist/squatch.modern.js.map +0 -1
  42. package/dist/stats.html +0 -208
  43. package/dist/utils/domUtils.d.ts +0 -1
  44. package/dist/utils/loadEvent.d.ts +0 -2
  45. package/dist/widgets/CtaWidget.d.ts +0 -24
  46. package/dist/widgets/IREmbedWidget.d.ts +0 -29
  47. package/dist/widgets/IRPopupWidget.d.ts +0 -32
  48. package/dist/widgets/declarative/DeclarativeEmbedWidget.d.ts +0 -12
  49. package/stats.json +0 -1
package/dist/stats.html DELETED
@@ -1,208 +0,0 @@
1
- <!doctype html>
2
- <meta charset="UTF-8">
3
- <title>Webpack Visualizer</title>
4
- <style>html {
5
- background-color: #f7eedf;
6
- color: #333;
7
- }
8
-
9
- body {
10
- font-family: sans-serif;
11
- margin: 10px auto 0;
12
- width: 750px;
13
- padding: 0 10px;
14
- }
15
-
16
- a,
17
- .destyledButton {
18
- color: #347AB7;
19
- }
20
-
21
- p {
22
- margin-top: 0.5em;
23
- }
24
-
25
- svg {
26
- vertical-align: middle;
27
- }
28
-
29
- h1 {
30
- font-family: "Oswald", "HelveticaNeue-CondensedBold", "Arial Narrow", sans-serif;
31
- font-weight: bold;
32
- font-size: 70px;
33
- text-transform: uppercase;
34
- text-align: center;
35
- }
36
-
37
- hr {
38
- border: 0 none;
39
- border-top: 1px solid #aaa;
40
- }
41
-
42
- code {
43
- font-size: 16px;
44
- }
45
-
46
-
47
-
48
- .breadcrumbs {
49
- height: 1em;
50
- margin: 1em 0;
51
- }
52
-
53
- .uploadArea {
54
- position: relative;
55
- margin: 0 auto;
56
- min-height: 350px;
57
- }
58
- .uploadArea--needsUpload {
59
- border: 2px dashed #AC9062;
60
- border-radius: 10px;
61
- cursor: pointer;
62
- }
63
-
64
- .uploadArea--dragging {
65
- border-style: solid;
66
- background-color: #E6D4B6;
67
- }
68
-
69
- .uploadArea-uploadMessage {
70
- display: none;
71
- font-size: 1.9em;
72
- text-align: center;
73
- margin-top: 100px;
74
- pointer-events: none;
75
- }
76
- .uploadArea--needsUpload .uploadArea-uploadMessage {
77
- display: block;
78
- }
79
-
80
- .uploadArea-uploadMessage small {
81
- font-size: 0.5em;
82
- }
83
-
84
-
85
- .chart {
86
- position: relative;
87
- margin: 0 auto;
88
- min-height: 350px;
89
- }
90
- .chart--large {
91
- width: 950px;
92
- margin-left: -100px;
93
- }
94
-
95
-
96
-
97
- .hiddenFileInput {
98
- width: 0px;
99
- height: 0px;
100
- visibility: hidden;
101
- }
102
-
103
- .chart path {
104
- stroke: #fff;
105
- }
106
-
107
- .details {
108
- position: absolute;
109
- top: 325px;
110
- left: 50%;
111
- width: 170px;
112
- margin-left: -85px;
113
- font-size: 14px;
114
- text-align: center;
115
- color: #666;
116
- z-index: -1;
117
- overflow: hidden;
118
- text-overflow: ellipsis;
119
- }
120
-
121
- .chart--large .details {
122
- top: 425px;
123
- }
124
-
125
- .details-size {
126
- font-size: 0.9em;
127
- margin-top: 1em;
128
- }
129
-
130
- .details-name {
131
- font-weight: bold;
132
- }
133
-
134
- .details-subText {
135
- min-height: 1.2em;
136
- }
137
-
138
- .details-percentage {
139
- margin: 0.4em 0 0em;
140
- font-size: 2.4em;
141
- line-height: 1em;
142
- }
143
-
144
-
145
-
146
- .errorMessage {
147
- margin-top: 2em;
148
- padding: 0.8em 1em;
149
- border: 1px solid #ab2222;
150
- color: #ab2222;
151
- }
152
-
153
-
154
- footer {
155
- margin-top: 4em;
156
- }
157
-
158
- footer h2 {
159
- margin: 1.5em 0 0.5em;
160
- font-size: 1.3em;
161
- }
162
-
163
-
164
-
165
- .destyledButton {
166
- background: none;
167
- border: 0 none;
168
- cursor: pointer;
169
- font-size: inherit;
170
- padding: 0;
171
- text-decoration: underline;
172
- }
173
-
174
-
175
-
176
- @font-face {
177
- font-family: 'Oswald';
178
- src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABJsABMAAAAALIAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAABqAAAABwAAAAccclaRkdERUYAAAHEAAAAIgAAACYAJwBHR1BPUwAAAegAAAJTAAAVCp1yuQFHU1VCAAAEPAAAADIAAABAI5wkn09TLzIAAARwAAAAWAAAAGDCVrbVY21hcAAABMgAAACkAAABsoWZZThjdnQgAAAFbAAAAD4AAAA+GI4SvGZwZ20AAAWsAAABsQAAAmVTtC+nZ2FzcAAAB2AAAAAIAAAACAAAABBnbHlmAAAHaAAABp0AAAiw/4mcQWhlYWQAAA4IAAAAMQAAADYI/8NHaGhlYQAADjwAAAAeAAAAJA4yA65obXR4AAAOXAAAAGsAAACEaIUFlWxvY2EAAA7IAAAALAAAAEQvrDHqbWF4cAAADvQAAAAgAAAAIAE8AKduYW1lAAAPFAAAAjQAAAU6XvmydXBvc3QAABFIAAAAiAAAAOvdGs0GcHJlcAAAEdAAAACUAAAAy4m/FMN3ZWJmAAASZAAAAAYAAAAGC2lWEAAAAAEAAAAA0aD+SAAAAADN8qAVAAAAANI1u+h42mNgZGBg4AFiMQY5BiYGRiBUAGIWoAgTEDNCMAAKqgBvAAB42mNgZGBg4GJwYghgYHZx8wlhEEmuLMphUMhJLMlj0GFgAcoy/P/PAFKFi82YnVqUx8ABYoExCwMTmOZgYBKZAVIpEiFSATTLmmEAwf9/IAwmrwHxif+v/x+nirkP/z9B4v0B2/AHwh4Qf77GFPn/9f8rksx4Q1iEhj74RKw4csiTbdtmdNP/70eS/f7/GXLs4jHnK+3DBeRGEAlOY3/JD1fiQxgU86C4h5K3Qbnn/93/m8hy/08UrtT/6/8vM0ghxEH0/89g1koweQ/DhAdE2/X3fyNyGIFY/9NJDbP/P4Dm/CI9pEmy4xswFLCJPyPahEcwEpLLofxfSCpeYui5APTZX1RVYPHPRNv6GUb+/4JdJ6qtIJtA6QfM/o2m8gPRtv76/xTZ1WBTP6D49RcyDZZ/Smwph9PWJ6DcDSptIGaBWV//P0euBSClA3p40rxMING+/3cHpE56RWf7Tv2P/d8CpM/+f/7/EB3tnYxcd9DVx9MHtG31+f98MP1lwFzwk545Doz/QFt5X4FlEl1yPXJ5Qye/vv2/BlRXoInOpqsbLg9IejrHMKAAo17+jlPld/zyFLniBz3LkAEOcXx+Zfz/lmoWCULak/8PAwkOcK8ZFnseDO409eEXWEsY3HNngfXiBwugbn8ZkSNokzcGk19JGQOhs42/gf0Mmtj6/xtOKdDoEwc1y5P/H+ndSgH3hTHaFf/v0Dy+PgxAqvxOcn4FjTHyAkkmaBnGDixHORm4wHI8YBmIPCQtIAA7WBU3UIYTqIIVzudh4GcQAAA6aVraAHjaY2BkYGDgYrBhsGNgdnHzCWEQSa4symGQy0ksyWPQYGAByjL8/w8ksLGAAABeBAt8AAB42mNgYXZn2sPAysDCasw6k4GBUQ5CM19nSGMSYmBgYuBgZgCDBQxM7x0YFLwZoCAvtbyEoYGBV/UPW9q/NAYGjovMrAoMDNNBciwL2KqAlAIDEwCNYw6YeNpjYGBgZoBgGQZGBhBYA+QxgvksDBOAtAIQsgBpXiDtzODK4MngwxDAEMwQzhDFsECBS0FfIV71z///UBWOYBXeQBVBDKFgFQwwFf+//n/8//D/Q//3/9/3f/f/Xf93/t/+v+iB8P339w/cUoHajhcwsjHAlTEyAQkmdAUQr+AFLKxsDOxAmoOBkwtIcTPw8DLw8QswMAgy0BcIkaULAGbKKZ0AAASgBnoA+ADSANcA4wDrAP8BAwEPAU4BTgFuAXgA2QC0AK8BBgEaANQBFADFAUwBYgEwAPoBLQDLAEQFEQAAeNpdUbtOW0EQ3Q0PA4HE2CA52hSzmZDGe6EFCcTVjWJkO4XlCGk3cpGLcQEfQIFEDdqvGaChpEibBiEXSHxCPiESM2uIojQ7O7NzzpkzS8qRqnfpa89T5ySQwt0GzTb9Tki1swD3pOvrjYy0gwdabGb0ynX7/gsGm9GUO2oA5T1vKQ8ZTTuBWrSn/tH8Cob7/B/zOxi0NNP01DoJ6SEE5ptxS4PvGc26yw/6gtXhYjAwpJim4i4/plL+tzTnasuwtZHRvIMzEfnJNEBTa20Emv7UIdXzcRRLkMumsTaYmLL+JBPBhcl0VVO1zPjawV2ys+hggyrNgQfYw1Z5DB4ODyYU0rckyiwNEfZiq8QIEZMcCjnl3Mn+pED5SBLGvElKO+OGtQbGkdfAoDZPs/88m01tbx3C+FkcwXe/GUs6+MiG2hgRYjtiKYAJREJGVfmGGs+9LAbkUvvPQJSA5fGPf50ItO7YRDyXtXUOMVYIen7b3PLLirtWuc6LQndvqmqo0inN+17OvscDnh4Lw0FjwZvP+/5Kgfo8LK40aA4EQ3o3ev+iteqIq7wXPrIn07+xWgAAAAABAAH//wAPeNpdVW1sHMUZntmZ3b29z13fne07f9Trcy44697H3vljjXNJYxNDixXUJBYgnKA4JCSBOFYSSk4kQahJaUoahwKqUFVBELRVJTSzuJX6o6hNolaAUPsrrSpKpaq0rCACBQQJtje8s3fOj97p7uZG2nmf93mf5xkkoQmEpN3ydkSQigoco+KYq9KuqzZX5PfGXCLBEnEitmWx7apK9/KYi8V+xTCNNaZhTkg9fh/+qf+wvP2rX0/QdxEciSyE6O1KHU4No23IhT2LkQo8iKxFJYRwzIIKHmaRIkNXuBrxmKpzii1OIh6Pwq+KjBaGHUYNHtIch5EWJjmI4xBsh51SuYJNbJIcSVaIhUfxz/GI/7pzbeRefp9Sv3EaP+i/JN0uPQV1CaoDlkcBSzsyUT/aidx2QMMzIc+VAA7vJ95ir9kuAaReApDWBZAyMY/12iyj8y5Ak4J/+Z4rBo8BPAs2Yl2AIwGAes1gwfoNrkUcAcww7W6prTWdgrekduO2VFpRlRyp2EOD1byFB4OFheuYzZw/N9OZoZ+ce0HCJ576fGHqew/uqt+5+bHtfxtV6smRmXsmd1Ciqv77VvJtV5E/e+xxjI4cf+bItf2HL0NrCKPZmx61lfOohKaROyD66tI8t2sgbL2xsatPs1xFtJiCvZQi9lIxzcKsHLSYjXssq/MctljM5nloMWJzG5rLZY0Wrgw4DiqVk0a1JlWgoy5sDlYLpDdO0kaqtWLXyHpsplNxkustSLP2/KVnTv/+QNF/UYq2lSZKmQSp3mUW22MS3tM5fuC1R390ed6WUtKWH/z5+e9MfP+Xc8/+Yu1tG3oymdx6e83y0u59md5aIf/6ufsWTk6Xp164LHqDuZG9MLcImmwoiGvECyTEKcxMbshIDsHMokFDGrRAbVdDolONaBYL27BQNZgXtlAwm7TZ/NQlzz+FTf9f+KRS/8rfc9M3rjc4PQ5fH0FdAnoJ6gY1MaNBERLzgo+8eqJxHB8UmkNNzPRIgHm8qXq1oXpGK6swIwBTsllE5yEh9Lgn0HFVKJsKiYPyOdGaWjKwqYHQVaOOD+J2/JD/Lt7kn7nWp9RXdkgXVpLLh6UPnJVtq3zthtoyGmjyRZp8YaasYndJwA6RgRT1VgtABxz/BBBx4nrgX9EHOAnFURZtarIQuCUb8hYTMSTckhDMdwQHx6GlhM3iOk9CKzKYpBPO5tkE9CQ3TQGOiFMLZ3Cg/wLYti71v/cPc+O2Q0cnF47OfktO5moDQN4XH808t2fyNmOlRv740DFrdCzXegvTk4BJRxn0cJPdaKUBKwOCMBIBLIMCrGwASwdYhs10nacbIg9FPDeUFgSEoiCPtM6jQH8HYA6lAWoE6DcSwYJlDBZatTNJpxQ1CXHTBJ8X7r2878KPH6jee/g//qnf7t1x6IGte+aVevvYrhf3vvKn4eV/Sv9dyZLfHTl6eE7MZvqmRz4Anw6hR5BbFbOhYc9NCui5MOAdLjL9CkOBDTmGOMzrXAHMnTYvw04WGB0BlFgHbQxBznAlb7S8QcNWta/NYVmDD3wT7Mpz1Gj5DcJ6R2cZ9sG9a7oBMbCNi7hABqtDw3a33CYXZDWO06lu6Rs46C3Xm5/Go9Lk5Exp84afDG4e77n+928f27phTUYj/kVMQvG2XHup0ub0rTs7uu3utZ9e+vh/+MvSz84+Pj5/z9DJwt37npz6y79xT3XLltnvFvvXDdfyZhzjLeXi1J19+SeqO4+d37p4dQl4mIO8GocZdqBh5LYGntYaGmUJMEjnqkwZ0XkcGjageRHAcQJTaW0Ekmmkugnkz6BYxSXIHzKH99NEtjxRyiYoPlA8+Iez87+au6NTCtNDS/evHd7Y39HRv3EkT19bWjhzceGO4vQPX214vQCaigAeRfhVESoXlxdcVZipARYxC6xzAhgoDEE4VhiUKQ6EUKBuxJFiiNsJsJkd4loqYMd9FU/5f/UhWpYu0B0iHDByEJJ3Qq0o2o/cqFBvqBKU40SpQMHY/xVcpBGkU0iOQArikgwoCcpH4UY0hEypuA6ZYjDNYWoLSBbgRI0WV5LDjtOEVAFUxIxg08HDu05eO7UbV97yL5592n9TqS+vJ5eWN5E3b5wmHy63B5zUIEdqgFMDdho5okKOUKkRKJiFizwi3N28ohs8KMIrg3BHmGm4Fmr4Wf+EdNWfxS+9T1+58c7SXc1shRd9mb4M2bp2NVvxrWxdJHGkUqv500zYMkxZPLK0E30N+fZE2AAAAHjaY2BkYGBgZmCYz//wYjy/zVcGeQ4GELhkuvsFgv7/kjWebSKQy8HABBIFAFuLDGwAAAB42mNgZGDguPjnNwMD20QGIGCNZ2BkQAWKAGr1A+8AAHjaY3rD4MIABEyrgJiPgYElnUGbZQtDFUs9QzLzZIYqpnSGWpYOhirmLqAYCJ8AYhmGMJZNDPksZgx6rDMYLJlLGexAepk9GBjYJiJoJgMGBsYlQCwBwQyXgHQAkI6F0CA5loUMDAD+XxR1AHjaY2Bg0IHCIoYHjH6MXYwrGJ8x8TCFMW1htmBuYN7GwsVigRdGAACNIwruAAEAAAAhADcAAwAAAAAAAgABAAIAFgAAAQAAbAAAAAB42q1Ty27TQBQ9jg20ECoWVYRYIKsrqBKTNEQtZcND4lFFrUQR7JBax22sOrGx3Ud+gBVrViz5GChfwI4vYMmaM3duo1iiQpWQNTPnvs/cOwawiN9w4XjzADa4LHZQp2RxDXN4o9jFHbxT7KGBD4ov4QSfFV9Gw1lUfAUbzrLiOdx0SsXzxB8VX6XPF8XX0HZ+Ka6jXbut+LrzorapeAH33U+Kv6Lhnir+hrb7U/EpFrwbir+j7mmeHy5uect4ihQZJsgRYx9DlPB5rxB3ea6gjQ5Xi3uX8i79fN4/oveYcWNKjzHADkYosMV1TJxQ84RWc3YRMP4hPSPaSqJZL3/q93ftWbTPyBJ7tB/yTMkyZkbL9IgeAR6gJ4xbjPOxJijn3qPV4Od6GyudcLfomPsSrUsivZU9rLBpncMxpuRTMtxyngPecMQzxwF1Kdme36mL6v/fjEJqDNNgOpEJM6fMau6QMfeENuMVsNcHF/b/N9MumsRHFX47U352otZmrLvMk1B+xGymu0ay9UbM2SSjmDWGjHtFr0IiTbyZ0DPJbhhsSvaIaHaGAeXX8paKive2TK8Uv1yirEfCM6Q8ljqmwiHxQGr6wiKS6JfoS6VMfGcz9ysZmtM5FdTbTnTIyqyhvPgM67jHz8zNdDSjrqC10D6k1O7TvsUafb7eiP3am1bryN+zzVuUwieU05dXYuawTusq9x4nczadntzH/mmJcDAo5yoqHXpPTUy96U/yB4cAybh42m3IuQrCUABE0ZlEE/ftDwQVC9GX5cVEsAhKPsJaUEHExsKPF1zelN7mwIWHX68jDvjXGKBHHz4mmGKGORZYYoUEFhlyFNhgyxrrDBiywSZbbLPDLnvsc8AhR8Hp+ryfo/Bxuxhj9s7SfI0/Q0YylolMpZWZXMtcFrJ0xpXTOm21ewOsDSmueNrbwfi/dQNjL4P3Bo6AiI2MjH2RG93YtCMUNwhEem8QCQIyGiJlN7Bpx0QwbGBWcN3ArO2ygV3BdRNzOJM2mMMG5LCbQTmsQA6bGpTDAuSwykI5HCA9K6EcTiCHIx3K4QJyOE0hHMYN3FA7eBRcdzFw1/9nYNLeyOxWBhThBarj0YVz+YBcXkUYN3KDiDYA+l459gABVhALaAAA) format('woff');
179
- font-weight: bold;
180
- font-style: normal;
181
- }
182
- </style>
183
- <div id="App"></div>
184
- <script>window.stats = {"errors":[],"warnings":[],"version":"4.46.0","hash":"c99670124c9993cb4bd9","publicPath":"","outputPath":"/Users/Coleton/saasquatch/squatch-js/dist","assetsByChunkName":{"../demo/dist/squatchjs":"../demo/dist/squatchjs.min.js","squatch":"squatch.min.js"},"assets":[{"name":"../demo/dist/squatchjs.min.js","size":63333,"chunks":[0,1],"chunkNames":["../demo/dist/squatchjs"],"info":{},"emitted":false},{"name":"squatch.min.js","size":63333,"chunks":[1,0],"chunkNames":["squatch"],"info":{},"emitted":false}],"filteredAssets":0,"entrypoints":{"squatch":{"chunks":[1],"assets":["squatch.min.js"],"children":{},"childAssets":{}},"../demo/dist/squatchjs":{"chunks":[0],"assets":["../demo/dist/squatchjs.min.js"],"children":{},"childAssets":{}}},"namedChunkGroups":{"squatch":{"chunks":[1],"assets":["squatch.min.js"],"children":{},"childAssets":{}},"../demo/dist/squatchjs":{"chunks":[0],"assets":["../demo/dist/squatchjs.min.js"],"children":{},"childAssets":{}}},"chunks":[{"id":0,"rendered":true,"initial":true,"entry":true,"size":153809,"names":["../demo/dist/squatchjs"],"files":["../demo/dist/squatchjs.min.js"],"hash":"e3f4bac459a62184000f","siblings":[],"parents":[],"children":[],"childrenByOrder":{},"modules":[{"id":0,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/regenerator/index.js","name":"./node_modules/@babel/runtime/regenerator/index.js","index":11,"index2":9,"size":49,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","issuerId":26,"issuerName":"./src/widgets/Widgets.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"3:0-61"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"18:45-64"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"20:11-30"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"86:43-62"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"92:11-30"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"148:44-63"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"150:11-30"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"205:43-62"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"207:11-30"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"8:0-61"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"148:70-89"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"150:15-34"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"8:0-61"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"78:50-69"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"82:15-34"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"117:80-99"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"120:25-44"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"10:0-61"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"123:52-71"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"126:17-36"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"175:67-86"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"178:15-34"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"4:0-61"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"116:65-84"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"118:15-34"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"10:0-61"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"107:69-88"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"111:15-34"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"173:63-82"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"174:15-34"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"4:0-61"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"76:56-75"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"78:15-34"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"146:52-71"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"148:15-34"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"module.exports = require(\"regenerator-runtime\");\n"},{"id":1,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/validate.ts","name":"./src/utils/validate.ts","index":14,"index2":12,"size":2082,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"../utils/validate","loc":"13:0-117"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/validate","loc":"43:16-30"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/validate","loc":"68:18-38"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/validate","loc":"110:18-44"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/validate","loc":"119:105-119"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"../utils/validate","loc":"8:0-45"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"55:11-19"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony side effect evaluation","userRequest":"../utils/validate","loc":"5:0-45"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"27:8-16"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"../../utils/validate","loc":"20:0-71"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/validate","loc":"46:39-53"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/validate","loc":"47:16-31"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/validate","loc":"61:39-53"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/validate","loc":"62:16-31"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/validate","loc":"78:105-119"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/validate","loc":"81:105-119"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"../utils/validate","loc":"11:0-101"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"45:17-31"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"83:24-44"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"153:24-50"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./utils/validate","loc":"20:0-50"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./utils/validate","loc":"117:15-29"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony side effect evaluation","userRequest":"../utils/validate","loc":"4:0-73"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"33:16-30"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"73:7-17"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"80:7-15"}],"usedExports":["DEFAULT_DOMAIN","DEFAULT_NPM_CDN","assertProp","hasProps","isObject","validateConfig","validateLocale","validatePasswordlessConfig","validateWidgetConfig"],"providedExports":["DEFAULT_DOMAIN","DEFAULT_NPM_CDN","hasProps","isObject","assertProp","validateConfig","validateLocale","validateWidgetConfig","validatePasswordlessConfig"],"optimizationBailout":[],"depth":2,"source":"import _typeof from \"@babel/runtime/helpers/typeof\";\nexport var DEFAULT_DOMAIN = \"https://app.referralsaasquatch.com\";\nexport var DEFAULT_NPM_CDN = \"https://fast.ssqt.io/npm\";\nexport function hasProps(object, props) {\n if (!isObject(object)) return false;\n var keys = Object.keys(object);\n if (!Array.isArray(props)) return object.hasOwnProperty(props);\n var hasKeys = props.reduce(function (acc, cur) {\n return acc && keys.indexOf(cur) >= 0;\n }, true);\n return hasKeys;\n}\nexport function isObject(x) {\n return _typeof(x) === \"object\";\n}\nexport function assertProp(object) {\n for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key &lt; _len; _key++) {\n props[_key - 1] = arguments[_key];\n }\n\n props.forEach(function (p) {\n if (!hasProps(object, props)) throw new Error(p + \" is required\");\n });\n return true;\n}\nexport function validateConfig(raw) {\n if (!isObject(raw)) throw new Error(\"config must be an object\");\n if (!hasProps(raw, \"tenantAlias\") || typeof raw.tenantAlias !== \"string\") throw new Error(\"tenantAlias not provided\");\n var tenantAlias = raw.tenantAlias;\n var domain = hasProps(raw, \"domain\") && typeof raw.domain === \"string\" && raw.domain || DEFAULT_DOMAIN;\n var debug = hasProps(raw, \"debug\") && typeof raw.debug === \"boolean\" && raw.debug || false;\n var npmCdn = hasProps(raw, \"npmCdn\") && typeof raw.npmCdn === \"string\" && raw.npmCdn || DEFAULT_NPM_CDN;\n return {\n tenantAlias: tenantAlias,\n domain: domain,\n debug: debug,\n npmCdn: npmCdn\n };\n}\nexport function validateLocale(locale) {\n if (locale && /^[a-z]{2}_(?:[A-Z]{2}|[0-9]{3})$/.test(locale)) {\n return locale;\n }\n}\nexport function validateWidgetConfig(raw) {\n if (!isObject(raw)) throw new Error(\"Widget properties must be an object\");\n if (!assertProp(raw, \"user\")) throw new Error(\"Required properties missing.\"); // TODO: This should be better type checked\n\n return raw;\n}\nexport function validatePasswordlessConfig(raw) {\n if (!isObject(raw)) throw new Error(\"Widget properties must be an object\");\n return raw;\n}"},{"id":2,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/asyncToGenerator.js","name":"./node_modules/@babel/runtime/helpers/asyncToGenerator.js","index":8,"index2":5,"size":809,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","issuerId":26,"issuerName":"./src/widgets/Widgets.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"2:0-72"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"18:13-30"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"86:11-28"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"148:12-29"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"205:11-28"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"1:0-72"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"148:38-55"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"1:0-72"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"78:18-35"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"117:48-65"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"2:0-72"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"123:20-37"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"175:35-52"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"1:0-72"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"116:33-50"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"1:0-72"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"107:37-54"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"173:31-48"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"1:0-72"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"76:24-41"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"146:20-37"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;"},{"id":3,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/browser.js","name":"./node_modules/debug/src/browser.js","index":2,"index2":2,"size":6285,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"9:0-26"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"debug","loc":"11:11-16"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"21:0-26"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"debug","loc":"25:11-16"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"8:0-26"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony import specifier","userRequest":"debug","loc":"12:11-16"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"21:0-26"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"debug","loc":"25:11-16"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"6:0-26"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"debug","loc":"11:11-16"},{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"8:0-26"},{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony import specifier","userRequest":"debug","loc":"12:11-16"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"debug","loc":"1:0-26"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"debug","loc":"4:11-16"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"5:0-26"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"debug","loc":"13:11-16"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"11:0-26"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"debug","loc":"30:11-16"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"debug","loc":"120:4-9"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":2,"source":"\"use strict\";\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\n/**\n * Colors.\n */\n\nexports.colors = ['#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC', '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF', '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC', '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF', '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC', '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033', '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366', '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933', '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC', '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF', '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33'];\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n// eslint-disable-next-line complexity\n\nfunction useColors() {\n // NB: In an Electron preload script, document will be defined but not fully\n // initialized. Since we know we're in Chrome, we'll just detect this case\n // explicitly\n if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n return true;\n } // Internet Explorer and Edge do not support colors.\n\n\n if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n return false;\n } // Is webkit? http://stackoverflow.com/a/16459606/376773\n // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\n\n return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773\n typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?\n // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker\n typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/);\n}\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\n\nfunction formatArgs(args) {\n args[0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? ' %c' : ' ') + args[0] + (this.useColors ? '%c ' : ' ') + '+' + module.exports.humanize(this.diff);\n\n if (!this.useColors) {\n return;\n }\n\n var c = 'color: ' + this.color;\n args.splice(1, 0, c, 'color: inherit'); // The final \"%c\" is somewhat tricky, because there could be other\n // arguments passed either before or after the %c, so we need to\n // figure out the correct index to insert the CSS into\n\n var index = 0;\n var lastC = 0;\n args[0].replace(/%[a-zA-Z%]/g, function (match) {\n if (match === '%%') {\n return;\n }\n\n index++;\n\n if (match === '%c') {\n // We only are interested in the *last* %c\n // (the user may have provided their own)\n lastC = index;\n }\n });\n args.splice(lastC, 0, c);\n}\n/**\n * Invokes `console.log()` when available.\n * No-op when `console.log` is not a \"function\".\n *\n * @api public\n */\n\n\nfunction log() {\n var _console;\n\n // This hackery is required for IE8/9, where\n // the `console.log` function doesn't have 'apply'\n return (typeof console === \"undefined\" ? \"undefined\" : _typeof(console)) === 'object' && console.log && (_console = console).log.apply(_console, arguments);\n}\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\n\nfunction save(namespaces) {\n try {\n if (namespaces) {\n exports.storage.setItem('debug', namespaces);\n } else {\n exports.storage.removeItem('debug');\n }\n } catch (error) {// Swallow\n // XXX (@Qix-) should we be logging these?\n }\n}\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\n\nfunction load() {\n var r;\n\n try {\n r = exports.storage.getItem('debug');\n } catch (error) {} // Swallow\n // XXX (@Qix-) should we be logging these?\n // If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\n\n if (!r && typeof process !== 'undefined' && 'env' in process) {\n r = process.env.DEBUG;\n }\n\n return r;\n}\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\n\nfunction localstorage() {\n try {\n // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n // The Browser also has localStorage in the global context.\n return localStorage;\n } catch (error) {// Swallow\n // XXX (@Qix-) should we be logging these?\n }\n}\n\nmodule.exports = require('./common')(exports);\nvar formatters = module.exports.formatters;\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n try {\n return JSON.stringify(v);\n } catch (error) {\n return '[UnexpectedJSONParseError]: ' + error.message;\n }\n};\n\n"},{"id":4,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/classCallCheck.js","name":"./node_modules/@babel/runtime/helpers/classCallCheck.js","index":9,"index2":6,"size":196,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","issuerId":26,"issuerName":"./src/widgets/Widgets.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"2:0-68"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"46:4-19"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"2:0-68"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"40:4-19"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"3:0-68"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"39:4-19"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"2:0-68"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"23:4-19"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"1:0-68"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"23:4-19"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"1:0-68"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"2:0-68"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"20:4-19"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"31:4-19"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"68:4-19"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"2:0-68"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"42:4-19"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"1:0-68"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"29:4-19"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;"},{"id":5,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/createClass.js","name":"./node_modules/@babel/runtime/helpers/createClass.js","index":10,"index2":7,"size":596,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","issuerId":26,"issuerName":"./src/widgets/Widgets.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"3:0-62"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"63:2-14"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"3:0-62"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"45:2-14"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"4:0-62"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"64:2-14"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"3:0-62"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"38:2-14"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"2:0-62"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"34:2-14"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"2:0-62"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"3:0-62"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"28:2-14"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"73:2-14"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"75:2-14"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"3:0-62"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"73:2-14"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"2:0-62"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"47:2-14"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"function _defineProperties(target, props) {\n for (var i = 0; i &lt; props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;"},{"id":6,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/getPrototypeOf.js","name":"./node_modules/@babel/runtime/helpers/getPrototypeOf.js","index":24,"index2":18,"size":267,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","issuerId":16,"issuerName":"./src/widgets/EmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"7:0-68"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"16:147-162"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"16:230-245"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"244:18-33"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"7:0-68"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"16:147-162"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"16:230-245"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"241:18-33"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"5:0-68"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"7:0-68"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"7:147-162"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"7:230-245"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"12:147-162"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"12:230-245"},{"moduleId":30,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","module":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","moduleName":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","type":"cjs require","userRequest":"./getPrototypeOf","loc":"1:21-48"},{"moduleId":38,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/superPropBase.js","module":"./node_modules/@babel/runtime/helpers/superPropBase.js","moduleName":"./node_modules/@babel/runtime/helpers/superPropBase.js","type":"cjs require","userRequest":"./getPrototypeOf","loc":"1:21-48"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;"},{"id":7,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/defineProperty.js","name":"./node_modules/@babel/runtime/helpers/defineProperty.js","index":17,"index2":13,"size":289,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","issuerId":null,"issuerName":"./src/api/WidgetApi.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","name":"./src/api/WidgetApi.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/defineProperty","loc":"1:0-68"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"7:201-216"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/defineProperty","loc":"1:0-68"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"6:201-216"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"24:11-26"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/defineProperty","loc":"1:0-68"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"8:201-216"},{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/defineProperty","loc":"1:0-68"},{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"6:201-216"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/defineProperty","loc":"9:0-68"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"35:4-19"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"52:4-19"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;"},{"id":8,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/inherits.js","name":"./node_modules/@babel/runtime/helpers/inherits.js","index":25,"index2":22,"size":505,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","issuerId":16,"issuerName":"./src/widgets/EmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/inherits","loc":"5:0-56"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/inherits","loc":"37:2-11"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/inherits","loc":"5:0-56"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/inherits","loc":"35:2-11"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/inherits","loc":"3:0-56"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/inherits","loc":"5:0-56"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/inherits","loc":"13:2-11"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/inherits","loc":"23:2-11"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/inherits","loc":"61:2-11"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;"},{"id":9,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","name":"./src/utils/io.ts","index":19,"index2":15,"size":7779,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","issuerId":32,"issuerName":"./src/api/EventsApi.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":32,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","name":"./src/api/EventsApi.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"../utils/io","loc":"12:0-52"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/io","loc":"88:13-18"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/io","loc":"132:25-32"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/io","loc":"187:23-28"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony side effect evaluation","userRequest":"../utils/io","loc":"4:0-37"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony import specifier","userRequest":"../utils/io","loc":"45:13-19"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony import specifier","userRequest":"../utils/io","loc":"57:13-19"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony side effect evaluation","userRequest":"../utils/io","loc":"3:0-37"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony import specifier","userRequest":"../utils/io","loc":"63:13-19"}],"usedExports":["doGet","doPost","doPut","doQuery"],"providedExports":["doQuery","doGet","doPost","doPut"],"optimizationBailout":[],"depth":3,"source":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i &lt; arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport debug from \"debug\";\n\nvar _log = debug(\"squatch-js:io\");\n\nexport function doQuery(_x, _x2, _x3, _x4) {\n return _doQuery.apply(this, arguments);\n}\n\nfunction _doQuery() {\n _doQuery = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(url, query, variables, token) {\n var headers, res;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n headers = _objectSpread(_objectSpread({\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n }, token ? {\n Authorization: \"Bearer \".concat(token)\n } : {}), {}, {\n \"X-SaaSquatch-Referrer\": window ? window.location.href : \"\"\n });\n _context.prev = 1;\n _context.next = 4;\n return fetch(url, {\n method: \"POST\",\n body: JSON.stringify({\n query: query,\n variables: variables\n }),\n headers: headers\n });\n\n case 4:\n res = _context.sent;\n\n if (res.ok) {\n _context.next = 11;\n break;\n }\n\n _context.t0 = Error;\n _context.next = 9;\n return res.text();\n\n case 9:\n _context.t1 = _context.sent;\n throw new _context.t0(_context.t1);\n\n case 11:\n _context.next = 13;\n return res.json();\n\n case 13:\n return _context.abrupt(\"return\", _context.sent);\n\n case 16:\n _context.prev = 16;\n _context.t2 = _context[\"catch\"](1);\n throw _context.t2;\n\n case 19:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[1, 16]]);\n }));\n return _doQuery.apply(this, arguments);\n}\n\nexport function doGet(_x5) {\n return _doGet.apply(this, arguments);\n}\n\nfunction _doGet() {\n _doGet = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(url) {\n var jwt,\n headers,\n res,\n reply,\n _args2 = arguments;\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n jwt = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : \"\";\n headers = {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n };\n if (jwt) headers[\"X-SaaSquatch-User-Token\"] = jwt;\n _context2.prev = 3;\n _context2.next = 6;\n return fetch(url, {\n method: \"GET\",\n credentials: \"include\",\n headers: headers\n });\n\n case 6:\n res = _context2.sent;\n _context2.next = 9;\n return res.text();\n\n case 9:\n reply = _context2.sent;\n\n if (res.ok) {\n _context2.next = 12;\n break;\n }\n\n throw new Error(reply);\n\n case 12:\n return _context2.abrupt(\"return\", reply ? JSON.parse(reply) : reply);\n\n case 15:\n _context2.prev = 15;\n _context2.t0 = _context2[\"catch\"](3);\n throw _context2.t0;\n\n case 18:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[3, 15]]);\n }));\n return _doGet.apply(this, arguments);\n}\n\nexport function doPost(_x6, _x7, _x8) {\n return _doPost.apply(this, arguments);\n}\n\nfunction _doPost() {\n _doPost = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(url, data, jwt) {\n var headers, res, reply;\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n headers = {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n };\n if (jwt) headers[\"X-SaaSquatch-User-Token\"] = jwt;\n _context3.prev = 2;\n _context3.next = 5;\n return fetch(url, {\n method: \"POST\",\n body: data,\n headers: headers\n });\n\n case 5:\n res = _context3.sent;\n _context3.next = 8;\n return res.text();\n\n case 8:\n reply = _context3.sent;\n\n if (res.ok) {\n _context3.next = 11;\n break;\n }\n\n throw new Error(reply);\n\n case 11:\n return _context3.abrupt(\"return\", reply ? JSON.parse(reply) : reply);\n\n case 14:\n _context3.prev = 14;\n _context3.t0 = _context3[\"catch\"](2);\n throw _context3.t0;\n\n case 17:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, null, [[2, 14]]);\n }));\n return _doPost.apply(this, arguments);\n}\n\nexport function doPut(_x9, _x10, _x11) {\n return _doPut.apply(this, arguments);\n}\n\nfunction _doPut() {\n _doPut = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(url, data, jwt) {\n var headers, res, reply;\n return _regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n headers = {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\",\n \"X-SaaSquatch-Referrer\": window ? window.location.href : \"\"\n };\n if (jwt) headers[\"X-SaaSquatch-User-Token\"] = jwt;\n _context4.prev = 2;\n _context4.next = 5;\n return fetch(url, {\n headers: headers,\n method: \"PUT\",\n credentials: \"include\",\n body: data\n });\n\n case 5:\n res = _context4.sent;\n _context4.next = 8;\n return res.text();\n\n case 8:\n reply = _context4.sent;\n\n if (res.ok) {\n _context4.next = 11;\n break;\n }\n\n throw new Error(reply);\n\n case 11:\n return _context4.abrupt(\"return\", reply ? JSON.parse(reply) : reply);\n\n case 14:\n _context4.prev = 14;\n _context4.t0 = _context4[\"catch\"](2);\n throw _context4.t0;\n\n case 17:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, null, [[2, 14]]);\n }));\n return _doPut.apply(this, arguments);\n}"},{"id":10,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","name":"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","index":27,"index2":24,"size":343,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","issuerId":16,"issuerName":"./src/widgets/EmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"6:0-90"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"16:379-405"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"6:0-90"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"16:379-405"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"4:0-90"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"6:0-90"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"7:379-405"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"12:379-405"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"var _typeof = require(\"../helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;"},{"id":11,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","name":"./src/widgets/PopupWidget.ts","index":21,"index2":28,"size":10415,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"./PopupWidget","loc":"10:0-40"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"./PopupWidget","loc":"333:21-32"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"./PopupWidget","loc":"343:23-34"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"./PopupWidget","loc":"396:21-32"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./widgets/PopupWidget","loc":"14:0-48"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/PopupWidget","loc":"32:0-34:62"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","explanation":"(skipped side-effect-free modules)","userRequest":"../../squatch","loc":"37:58-69"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","explanation":"(skipped side-effect-free modules)","userRequest":"../../squatch","loc":"53:58-69"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":2,"source":"import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _get from \"@babel/runtime/helpers/get\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i &lt; len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n// @ts-check\nimport debug from \"debug\";\nimport Widget from \"./Widget\";\nimport { domready } from \"../utils/domready\";\n\nvar _log = debug(\"squatch-js:POPUPwidget\");\n\nvar popupId = 0;\n/**\n * The PopupWidget is used to display popups (also known as \"Modals\").\n * Popups widgets are rendered on top of other elements in a page.\n *\n * To create a PopupWidget use {@link Widgets}\n *\n */\n\nvar PopupWidget = /*#__PURE__*/function (_Widget) {\n _inherits(PopupWidget, _Widget);\n\n var _super = _createSuper(PopupWidget);\n\n function PopupWidget(params) {\n var _this;\n\n var trigger = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \".squatchpop\";\n\n _classCallCheck(this, PopupWidget);\n\n _this = _super.call(this, params);\n _this.trigger = trigger;\n _this.containerElement = _this.container && typeof _this.container !== \"string\" ? _this.container : document.body;\n\n if (_this.container) {\n _this.id = \"squatchModal\";\n } else {\n _this.id = popupId === 0 ? \"squatchModal\" : \"squatchModal__\".concat(popupId);\n popupId = popupId + 1;\n }\n\n document.head.insertAdjacentHTML(\"beforeend\", \"&lt;style>#\".concat(_this.id, \"::-webkit-scrollbar { display: none; }&lt;/style>\"));\n return _this;\n }\n\n _createClass(PopupWidget, [{\n key: \"_initialiseCTA\",\n value: function _initialiseCTA(frame) {\n var _this2 = this;\n\n var triggerElement;\n\n try {\n triggerElement\n /* HTMLButton */\n = document.querySelector(this.trigger);\n if (this.trigger && !triggerElement) _log(\"No element found with trigger selector\", this.trigger);\n } catch (_unused) {\n _log(\"Not a valid selector\", this.trigger);\n } // Trigger is optional\n\n\n if (triggerElement) {\n triggerElement.onclick = function () {\n _this2.open(frame);\n };\n } // If widget is loaded with CTA, look for a 'squatchpop' element to use\n // that element as a trigger as well.\n\n\n var triggerWhenCTA = document.querySelector(\".squatchpop\");\n\n if (this.trigger === \"#cta\" && triggerWhenCTA) {\n triggerWhenCTA.onclick = function () {\n _this2.open(frame);\n };\n }\n }\n }, {\n key: \"_createPopupDialog\",\n value: function _createPopupDialog() {\n var dialog = document.createElement(\"dialog\");\n dialog.id = this.id;\n dialog.setAttribute(\"style\", \"width: 100%; max-width: 500px; border: none; padding: 0;\");\n\n var onClick = function onClick(e) {\n if (e.target === dialog) dialog.close();\n };\n\n dialog.addEventListener(\"click\", onClick);\n return dialog;\n }\n }, {\n key: \"load\",\n value: function load(frame) {\n this._initialiseCTA(frame);\n\n var dialog = this._createPopupDialog();\n\n dialog.appendChild(frame);\n this.containerElement.appendChild(dialog);\n var contentWindow = frame.contentWindow;\n\n if (!contentWindow) {\n throw new Error(\"Frame needs a content window\");\n }\n\n var frameDoc = contentWindow.document;\n frameDoc.open();\n frameDoc.write(this.content);\n frameDoc.write(\"&lt;script src=\\\"\".concat(this.npmCdn, \"/resize-observer-polyfill@1.5.x\\\">&lt;/script>\"));\n frameDoc.close();\n\n _log(\"Popup template loaded into iframe\");\n\n this._setupResizeHandler(frame, dialog);\n }\n }, {\n key: \"_setupResizeHandler\",\n value: function _setupResizeHandler(frame, popupdiv) {\n var _this3 = this;\n\n var contentWindow = frame.contentWindow;\n\n if (!contentWindow) {\n throw new Error(\"Frame needs a content window\");\n }\n\n var frameDoc = contentWindow.document; // Adjust frame height when size of body changes\n\n domready(frameDoc, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var ro;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n frameDoc.body.style.overflowY = \"hidden\";\n frame.height = \"\".concat(frameDoc.body.offsetHeight, \"px\"); // Adjust frame height when size of body changes\n\n ro = new contentWindow[\"ResizeObserver\"](function (entries) {\n var _iterator = _createForOfIteratorHelper(entries),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var entry = _step.value;\n var _entry$contentRect = entry.contentRect,\n top = _entry$contentRect.top,\n bottom = _entry$contentRect.bottom;\n var computedHeight = bottom + top;\n frame.height = computedHeight + \"\"; // Don't let anything else set the height of this element\n\n entry.target.style = \"\";\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n });\n _context.t0 = ro;\n _context.next = 6;\n return _this3._findInnerContainer(frame);\n\n case 6:\n _context.t1 = _context.sent;\n\n _context.t0.observe.call(_context.t0, _context.t1);\n\n case 8:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n })));\n }\n }, {\n key: \"open\",\n value: function open(frame) {\n var _this4 = this;\n\n var dialog = this.containerElement.querySelector(\"#\".concat(this.id));\n if (!dialog) throw new Error(\"Could not determine container div\");\n dialog.showModal();\n var contentWindow = frame.contentWindow;\n if (!contentWindow) throw new Error(\"Squatch.js has an empty iframe\");\n var frameDoc = contentWindow.document; // Adjust frame height when size of body changes\n\n domready(frameDoc, function () {\n var _frame$contentDocumen;\n\n var _sqh = contentWindow.squatch || contentWindow.widgetIdent; // const ctaElement = frameDoc.getElementById(\"cta\");\n // if (ctaElement) {\n // //@ts-ignore -- will occasionally throw a null pointer exception at runtime\n // ctaElement.parentNode.removeChild(ctaElement);\n // }\n\n\n (_frame$contentDocumen = frame.contentDocument) === null || _frame$contentDocumen === void 0 ? void 0 : _frame$contentDocumen.dispatchEvent(new CustomEvent(\"sq:refresh\"));\n\n _this4._loadEvent(_sqh);\n\n _log(\"Popup opened\");\n });\n }\n }, {\n key: \"close\",\n value: function close() {\n var dialog = document.getElementById(this.id);\n if (!dialog) throw new Error(\"Could not determine container div\");\n dialog.close();\n\n _log(\"Popup closed\");\n }\n }, {\n key: \"_clickedOutside\",\n value: function _clickedOutside(_ref2) {\n var target = _ref2.target;\n }\n }, {\n key: \"_error\",\n value: function _error(rs) {\n var mode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"modal\";\n var style = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"\";\n var _style = \"body { margin: 0; } .modal { box-shadow: none; border: 0; }\";\n return _get(_getPrototypeOf(PopupWidget.prototype), \"_error\", this).call(this, rs, mode, style || _style);\n }\n }]);\n\n return PopupWidget;\n}(Widget);\n\nexport { PopupWidget as default };"},{"id":12,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","name":"./src/utils/cookieUtils.ts","index":42,"index2":37,"size":3982,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony side effect evaluation","userRequest":"./cookieUtils","loc":"9:0-42"},{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony import specifier","userRequest":"./cookieUtils","loc":"28:21-30"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"./cookieUtils","loc":"2:0-42"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"./cookieUtils","loc":"12:18-27"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./utils/cookieUtils","loc":"21:0-50"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./utils/cookieUtils","loc":"197:2-13"}],"usedExports":["_pushCookie","b64decode"],"providedExports":["b64decode","_pushCookie"],"optimizationBailout":[],"depth":2,"source":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _typeof from \"@babel/runtime/helpers/typeof\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i &lt; arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport debug from \"debug\";\nimport Cookies from \"js-cookie\";\n/** @hidden */\n\nvar _log = debug(\"squatch-js\");\n\nvar isObject = function isObject(item) {\n return _typeof(item) === \"object\" && !Array.isArray(item);\n};\n\nvar deepMerge = function deepMerge(target, source) {\n var isDeep = function isDeep(prop) {\n return isObject(source[prop]) && target.hasOwnProperty(prop) && isObject(target[prop]);\n };\n\n var replaced = Object.getOwnPropertyNames(source).map(function (prop) {\n return _defineProperty({}, prop, isDeep(prop) ? deepMerge(target[prop], source[prop]) : source[prop]);\n }).reduce(function (a, b) {\n return _objectSpread(_objectSpread({}, a), b);\n }, {});\n return _objectSpread(_objectSpread({}, target), replaced);\n};\n\nexport function b64decode(input) {\n return atob(input.replace(/_/g, \"/\").replace(/-/g, \"+\"));\n}\n\nfunction b64encode(input) {\n return btoa(input).replace(/=/g, \"\").replace(/\\+/g, \"-\").replace(/\\//g, \"_\");\n} // https://stackoverflow.com/a/11319865\n\n\nfunction getTopDomain() {\n var i,\n h,\n weird_cookie = \"weird_get_top_level_domain=cookie\",\n hostname = document.location.hostname.split(\".\");\n\n for (i = hostname.length - 1; i >= 0; i--) {\n h = hostname.slice(i).join(\".\");\n document.cookie = weird_cookie + \";domain=.\" + h + \";\";\n\n if (document.cookie.indexOf(weird_cookie) > -1) {\n // We were able to store a cookie! This must be it\n document.cookie = weird_cookie.split(\"=\")[0] + \"=;domain=.\" + h + \";expires=Thu, 01 Jan 1970 00:00:01 GMT;\";\n return h;\n }\n }\n}\n\nexport function _pushCookie() {\n var queryString = window.location.search;\n var urlParams = new URLSearchParams(queryString);\n var refParam = urlParams.get(\"_saasquatch\") || \"\"; // do nothing if no params\n\n if (refParam) {\n var paramsJSON = \"\",\n existingCookie = \"\",\n reEncodedCookie = \"\";\n\n try {\n paramsJSON = JSON.parse(b64decode(refParam));\n } catch (error) {\n _log(\"Unable to decode params\", error); // don't merge invalid params\n\n\n return;\n }\n\n try {\n existingCookie = JSON.parse(b64decode(Cookies.get(\"_saasquatch\")));\n\n _log(\"existing cookie\", existingCookie);\n } catch (error) {\n _log(\"Unable to retrieve cookie\", error);\n } // don't merge if there's no existing object\n\n\n try {\n var domain = getTopDomain();\n\n _log(\"domain retrieved:\", domain);\n\n if (existingCookie) {\n var newCookie = deepMerge(existingCookie, paramsJSON);\n reEncodedCookie = b64encode(JSON.stringify(newCookie));\n\n _log(\"cookie to store:\", newCookie);\n } else {\n reEncodedCookie = b64encode(JSON.stringify(paramsJSON));\n\n _log(\"cookie to store:\", paramsJSON);\n }\n\n Cookies.set(\"_saasquatch\", reEncodedCookie, {\n expires: 365,\n secure: false,\n sameSite: \"Lax\",\n domain: domain,\n path: \"/\"\n });\n } catch (error) {\n _log(\"Unable to set cookie\", error);\n }\n }\n}"},{"id":13,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/js-cookie/src/js.cookie.js","name":"./node_modules/js-cookie/src/js.cookie.js","index":18,"index2":14,"size":3883,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","issuerId":null,"issuerName":"./src/api/WidgetApi.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","name":"./src/api/WidgetApi.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony side effect evaluation","userRequest":"js-cookie","loc":"9:0-32"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony import specifier","userRequest":"js-cookie","loc":"78:44-51"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony import specifier","userRequest":"js-cookie","loc":"102:6-13"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"js-cookie","loc":"11:0-32"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"js-cookie","loc":"86:20-27"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"js-cookie","loc":"183:30-37"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"/*!\n * JavaScript Cookie v2.2.1\n * https://github.com/js-cookie/js-cookie\n *\n * Copyright 2006, 2015 Klaus Hartl & Fagner Brack\n * Released under the MIT license\n */\n;(function (factory) {\n\tvar registeredInModuleLoader;\n\tif (typeof define === 'function' && define.amd) {\n\t\tdefine(factory);\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (typeof exports === 'object') {\n\t\tmodule.exports = factory();\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (!registeredInModuleLoader) {\n\t\tvar OldCookies = window.Cookies;\n\t\tvar api = window.Cookies = factory();\n\t\tapi.noConflict = function () {\n\t\t\twindow.Cookies = OldCookies;\n\t\t\treturn api;\n\t\t};\n\t}\n}(function () {\n\tfunction extend () {\n\t\tvar i = 0;\n\t\tvar result = {};\n\t\tfor (; i &lt; arguments.length; i++) {\n\t\t\tvar attributes = arguments[ i ];\n\t\t\tfor (var key in attributes) {\n\t\t\t\tresult[key] = attributes[key];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n\tfunction decode (s) {\n\t\treturn s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);\n\t}\n\n\tfunction init (converter) {\n\t\tfunction api() {}\n\n\t\tfunction set (key, value, attributes) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tattributes = extend({\n\t\t\t\tpath: '/'\n\t\t\t}, api.defaults, attributes);\n\n\t\t\tif (typeof attributes.expires === 'number') {\n\t\t\t\tattributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);\n\t\t\t}\n\n\t\t\t// We're using \"expires\" because \"max-age\" is not supported by IE\n\t\t\tattributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';\n\n\t\t\ttry {\n\t\t\t\tvar result = JSON.stringify(value);\n\t\t\t\tif (/^[\\{\\[]/.test(result)) {\n\t\t\t\t\tvalue = result;\n\t\t\t\t}\n\t\t\t} catch (e) {}\n\n\t\t\tvalue = converter.write ?\n\t\t\t\tconverter.write(value, key) :\n\t\t\t\tencodeURIComponent(String(value))\n\t\t\t\t\t.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);\n\n\t\t\tkey = encodeURIComponent(String(key))\n\t\t\t\t.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)\n\t\t\t\t.replace(/[\\(\\)]/g, escape);\n\n\t\t\tvar stringifiedAttributes = '';\n\t\t\tfor (var attributeName in attributes) {\n\t\t\t\tif (!attributes[attributeName]) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tstringifiedAttributes += '; ' + attributeName;\n\t\t\t\tif (attributes[attributeName] === true) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Considers RFC 6265 section 5.2:\n\t\t\t\t// ...\n\t\t\t\t// 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n\t\t\t\t// character:\n\t\t\t\t// Consume the characters of the unparsed-attributes up to,\n\t\t\t\t// not including, the first %x3B (\";\") character.\n\t\t\t\t// ...\n\t\t\t\tstringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n\t\t\t}\n\n\t\t\treturn (document.cookie = key + '=' + value + stringifiedAttributes);\n\t\t}\n\n\t\tfunction get (key, json) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar jar = {};\n\t\t\t// To prevent the for loop in the first place assign an empty array\n\t\t\t// in case there are no cookies at all.\n\t\t\tvar cookies = document.cookie ? document.cookie.split('; ') : [];\n\t\t\tvar i = 0;\n\n\t\t\tfor (; i &lt; cookies.length; i++) {\n\t\t\t\tvar parts = cookies[i].split('=');\n\t\t\t\tvar cookie = parts.slice(1).join('=');\n\n\t\t\t\tif (!json && cookie.charAt(0) === '\"') {\n\t\t\t\t\tcookie = cookie.slice(1, -1);\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tvar name = decode(parts[0]);\n\t\t\t\t\tcookie = (converter.read || converter)(cookie, name) ||\n\t\t\t\t\t\tdecode(cookie);\n\n\t\t\t\t\tif (json) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcookie = JSON.parse(cookie);\n\t\t\t\t\t\t} catch (e) {}\n\t\t\t\t\t}\n\n\t\t\t\t\tjar[name] = cookie;\n\n\t\t\t\t\tif (key === name) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (e) {}\n\t\t\t}\n\n\t\t\treturn key ? jar[key] : jar;\n\t\t}\n\n\t\tapi.set = set;\n\t\tapi.get = function (key) {\n\t\t\treturn get(key, false /* read as raw */);\n\t\t};\n\t\tapi.getJSON = function (key) {\n\t\t\treturn get(key, true /* read as json */);\n\t\t};\n\t\tapi.remove = function (key, attributes) {\n\t\t\tset(key, '', extend(attributes, {\n\t\t\t\texpires: -1\n\t\t\t}));\n\t\t};\n\n\t\tapi.defaults = {};\n\n\t\tapi.withConverter = init;\n\n\t\treturn api;\n\t}\n\n\treturn init(function () {});\n}));\n"},{"id":14,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/assertThisInitialized.js","name":"./node_modules/@babel/runtime/helpers/assertThisInitialized.js","index":28,"index2":23,"size":219,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","issuerId":null,"issuerName":"./src/widgets/declarative/DeclarativeWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":10,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","module":"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","moduleName":"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","type":"cjs require","userRequest":"./assertThisInitialized","loc":"3:28-62"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/assertThisInitialized","loc":"4:0-82"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/assertThisInitialized","loc":"35:20-42"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/assertThisInitialized","loc":"48:38-60"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/assertThisInitialized","loc":"52:20-42"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/assertThisInitialized","loc":"63:38-60"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;"},{"id":15,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/typeof.js","name":"./node_modules/@babel/runtime/helpers/typeof.js","index":15,"index2":11,"size":479,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","issuerId":12,"issuerName":"./src/utils/cookieUtils.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":12,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","name":"./src/utils/cookieUtils.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":1,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/validate.ts","module":"./src/utils/validate.ts","moduleName":"./src/utils/validate.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/typeof","loc":"1:0-52"},{"moduleId":1,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/validate.ts","module":"./src/utils/validate.ts","moduleName":"./src/utils/validate.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/typeof","loc":"14:9-16"},{"moduleId":10,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","module":"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","moduleName":"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","type":"cjs require","userRequest":"../helpers/typeof","loc":"1:14-42"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/typeof","loc":"2:0-52"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/typeof","loc":"15:9-16"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts","index":32,"index2":29,"size":11142,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"./EmbedWidget","loc":"9:0-40"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"./EmbedWidget","loc":"353:23-34"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"./EmbedWidget","loc":"390:21-32"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./widgets/EmbedWidget","loc":"13:0-48"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/EmbedWidget","loc":"32:0-34:62"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","explanation":"(skipped side-effect-free modules)","userRequest":"../../squatch","loc":"37:44-55"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","explanation":"(skipped side-effect-free modules)","userRequest":"../../squatch","loc":"53:44-55"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":2,"source":"import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _get from \"@babel/runtime/helpers/get\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i &lt; len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n// @ts-check\nimport debug from \"debug\";\nimport Widget from \"./Widget\";\nimport { domready } from \"../utils/domready\";\n\nvar _log = debug(\"squatch-js:EMBEDwidget\");\n/**\n * An EmbedWidget is displayed inline in part of your page.\n *\n * To create an EmbedWidget use {@link Widgets}\n *\n */\n\n\nvar EmbedWidget = /*#__PURE__*/function (_Widget) {\n _inherits(EmbedWidget, _Widget);\n\n var _super = _createSuper(EmbedWidget);\n\n function EmbedWidget(params, container) {\n _classCallCheck(this, EmbedWidget);\n\n return _super.call(this, params);\n }\n\n _createClass(EmbedWidget, [{\n key: \"_findElement\",\n value: function _findElement() {\n var element;\n\n if (typeof this.container === \"string\") {\n // selector is a string\n element = document.querySelector(this.container);\n\n _log(\"loading widget with selector\", element); // selector is an HTML element\n\n } else if (this.container instanceof HTMLElement) {\n element = this.container;\n\n _log(\"loading widget with container\", element); // garbage container found\n\n } else if (this.container) {\n element = null;\n\n _log(\"container must be an HTMLElement or string\", this.container); // find element on page\n\n } else {\n element = document.querySelector(\"#squatchembed\") || document.querySelector(\".squatchembed\");\n\n _log(\"loading widget with default selector\", element);\n }\n\n if (!(element instanceof HTMLElement)) throw new Error(\"element with selector '\".concat(this.container, \"' not found.'\"));\n return element;\n }\n }, {\n key: \"load\",\n value: function () {\n var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(frame) {\n var _this = this;\n\n var element, contentWindow, frameDoc;\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n element = this._findElement();\n\n if (this.context.container) {\n element.style.visibility = \"hidden\";\n element.style.height = \"0\";\n element.style[\"overflow-y\"] = \"hidden\"; // Widget reloaded - replace existing element\n\n if (element.firstChild) {\n element.replaceChild(frame, element.firstChild); // Add iframe for the first time\n } else {\n element.appendChild(frame);\n }\n } else if (!element.firstChild || element.firstChild.nodeName === \"#text\") {\n element.appendChild(frame);\n }\n\n contentWindow = frame.contentWindow;\n\n if (contentWindow) {\n _context2.next = 5;\n break;\n }\n\n throw new Error(\"Frame needs a content window\");\n\n case 5:\n frameDoc = contentWindow.document;\n frameDoc.open();\n frameDoc.write(this.content);\n frameDoc.write(\"&lt;script src=\\\"\".concat(this.npmCdn, \"/resize-observer-polyfill@1.5.x\\\">&lt;/script>\"));\n frameDoc.close();\n domready(frameDoc, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var _sqh, ctaElement, ro;\n\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _sqh = contentWindow.squatch || contentWindow.widgetIdent;\n ctaElement = frameDoc.getElementById(\"cta\");\n\n if (!ctaElement) {\n _context.next = 6;\n break;\n }\n\n if (ctaElement.parentNode) {\n _context.next = 5;\n break;\n }\n\n throw new Error(\"ctaElement needs a parentNode\");\n\n case 5:\n ctaElement.parentNode.removeChild(ctaElement);\n\n case 6:\n // @ts-ignore -- number will be cast to string by browsers\n frame.height = frameDoc.body.scrollHeight; // Adjust frame height when size of body changes\n // @ts-ignore\n\n ro = new contentWindow[\"ResizeObserver\"](function (entries) {\n var _iterator = _createForOfIteratorHelper(entries),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var entry = _step.value;\n var height = entry.contentRect.height; // @ts-ignore -- number will be cast to string by browsers\n\n frame.height = height;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n });\n _context.t0 = ro;\n _context.next = 11;\n return _this._findInnerContainer(frame);\n\n case 11:\n _context.t1 = _context.sent;\n\n _context.t0.observe.call(_context.t0, _context.t1);\n\n // Regular load - trigger event\n if (!_this.context.container) {\n _this._loadEvent(_sqh);\n\n _log(\"loaded\");\n }\n\n case 14:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n })));\n\n case 11:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function load(_x) {\n return _load.apply(this, arguments);\n }\n\n return load;\n }() // Un-hide if element is available and refresh data\n\n }, {\n key: \"open\",\n value: function open(frame) {\n var _frame$contentDocumen, _frame$contentWindow, _frame$contentWindow2;\n\n if (!frame) return _log(\"no target element to open\");\n\n var element = this._findElement();\n\n element.style.visibility = \"unset\";\n element.style.height = \"auto\";\n element.style[\"overflow-y\"] = \"auto\";\n frame === null || frame === void 0 ? void 0 : (_frame$contentDocumen = frame.contentDocument) === null || _frame$contentDocumen === void 0 ? void 0 : _frame$contentDocumen.dispatchEvent(new CustomEvent(\"sq:refresh\"));\n\n var _sqh = (frame === null || frame === void 0 ? void 0 : (_frame$contentWindow = frame.contentWindow) === null || _frame$contentWindow === void 0 ? void 0 : _frame$contentWindow.squatch) || (frame === null || frame === void 0 ? void 0 : (_frame$contentWindow2 = frame.contentWindow) === null || _frame$contentWindow2 === void 0 ? void 0 : _frame$contentWindow2.widgetIdent);\n\n this._loadEvent(_sqh);\n\n _log(\"loaded\");\n }\n }, {\n key: \"close\",\n value: function close(frame) {\n if (!frame) return _log(\"no target element to close\");\n\n var element = this._findElement();\n\n element.style.visibility = \"hidden\";\n element.style.height = \"0\";\n element.style[\"overflow-y\"] = \"hidden\";\n\n _log(\"Embed widget closed\");\n }\n }, {\n key: \"_error\",\n value: function _error(rs) {\n var mode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"embed\";\n var style = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"\";\n return _get(_getPrototypeOf(EmbedWidget.prototype), \"_error\", this).call(this, rs, mode, style);\n }\n }]);\n\n return EmbedWidget;\n}(Widget);\n\nexport { EmbedWidget as default };"},{"id":17,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","name":"./src/api/WidgetApi.ts + 1 modules","index":16,"index2":17,"size":9894,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":null,"issuerId":null,"issuerName":null,"issuerPath":null,"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"../api/WidgetApi","loc":"8:0-41"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"../api/WidgetApi","loc":"51:19-28"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./api/WidgetApi","loc":"17:0-40"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./api/WidgetApi","loc":"32:0-34:62"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./api/WidgetApi","loc":"125:13-22"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","explanation":"(skipped side-effect-free modules)","userRequest":"../../squatch","loc":"76:27-36"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":["ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/asyncToGenerator.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/classCallCheck.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/createClass.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/defineProperty.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/regenerator/index.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./src/utils/io.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/utils/validate.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./node_modules/js-cookie/src/js.cookie.js (&lt;- Module is not an ECMAScript module)"],"depth":2,"modules":[{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","name":"./src/api/WidgetApi.ts","index":16,"index2":17,"size":9428,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"../api/WidgetApi","loc":"8:0-41"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"../api/WidgetApi","loc":"51:19-28"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./api/WidgetApi","loc":"17:0-40"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./api/WidgetApi","loc":"32:0-34:62"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./api/WidgetApi","loc":"125:13-22"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","explanation":"(skipped side-effect-free modules)","userRequest":"../../squatch","loc":"76:27-36"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":2,"source":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i &lt; arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport Cookies from \"js-cookie\";\nimport { doGet, doPut, doQuery } from \"../utils/io\";\nimport { validateConfig, validateLocale, validatePasswordlessConfig, validateWidgetConfig } from \"../utils/validate\";\nimport { RENDER_WIDGET_QUERY } from \"./graphql\";\n/**\n *\n * The WidgetApi class is a wrapper around the Widget Endpoints of the SaaSquatch REST API.\n *\n */\n\nvar WidgetApi = /*#__PURE__*/function () {\n /**\n * Initialize a new {@link WidgetApi} instance.\n *\n * @param {ConfigOptions} config Config details\n *\n * @example &lt;caption>Browser example&lt;/caption>\n * var squatchApi = new squatch.WidgetApi({tenantAlias:'test_12b5bo1b25125'});\n *\n * @example &lt;caption>Browserify/Webpack example&lt;/caption>\n * var WidgetApi = require('@saasquatch/squatch-js').WidgetApi;\n * var squatchApi = new WidgetApi({tenantAlias:'test_12b5bo1b25125'});\n *\n * @example &lt;caption>Babel+Browserify/Webpack example&lt;/caption>\n * import {WidgetApi} from '@saasquatch/squatch-js';\n * let squatchApi = new WidgetApi({tenantAlias:'test_12b5bo1b25125'});\n */\n function WidgetApi(config) {\n _classCallCheck(this, WidgetApi);\n\n var raw = config; // Flags that we need to validate anything we use from this type\n\n var clean = validateConfig(raw);\n this.tenantAlias = clean.tenantAlias;\n this.domain = clean.domain;\n this.npmCdn = clean.npmCdn;\n }\n /**\n * Creates/upserts user.\n *\n * @param {Object} params Parameters for request\n * @param {Object?} params.user The user details\n * @param {string} params.user.id The user id\n * @param {string} params.user.accountId The user account id\n * @param {WidgetType} params.widgetType The content of the widget.\n * @param {EngagementMedium?} params.engagementMedium How to display the widget.\n * @param {string?} params.jwt the JSON Web Token (JWT) that is used\n * to validate the data (can be disabled)\n *\n * @return {Promise} string if true, with the widget template, jsOptions and user details.\n */\n\n\n _createClass(WidgetApi, [{\n key: \"upsertUser\",\n value: function upsertUser(params) {\n var raw = params;\n var clean = validateWidgetConfig(raw);\n var _ref = clean,\n widgetType = _ref.widgetType,\n _ref$engagementMedium = _ref.engagementMedium,\n engagementMedium = _ref$engagementMedium === void 0 ? \"POPUP\" : _ref$engagementMedium,\n jwt = _ref.jwt,\n user = _ref.user;\n var tenantAlias = encodeURIComponent(this.tenantAlias);\n var accountId = encodeURIComponent(user.accountId);\n var userId = encodeURIComponent(user.id);\n\n var optionalParams = _buildParams({\n widgetType: widgetType,\n engagementMedium: engagementMedium\n });\n\n var path = \"/api/v1/\".concat(tenantAlias, \"/widget/account/\").concat(accountId, \"/user/\").concat(userId, \"/upsert\").concat(optionalParams);\n var url = this.domain + path;\n var cookies = Cookies.get(\"_saasquatch\");\n if (cookies) user[\"cookies\"] = cookies;\n return doPut(url, JSON.stringify(user), jwt);\n }\n /**\n * Description here.\n *\n * @param {Object} params Parameters for request\n * @param {Object} params.user The user details\n * @param {string} params.user.id The user id\n * @param {string} params.user.accountId The user account id\n * @param {WidgetType} params.widgetType The content of the widget.\n * @param {EngagementMedium} params.engagementMedium How to display the widget.\n * @param {string} params.jwt the JSON Web Token (JWT) that is used\n * to validate the data (can be disabled)\n * @return {Promise} template html if true.\n */\n\n }, {\n key: \"render\",\n value: function render(params) {\n var _clean$locale;\n\n var raw = params;\n var clean = validatePasswordlessConfig(raw);\n var widgetType = clean.widgetType,\n _clean$engagementMedi = clean.engagementMedium,\n engagementMedium = _clean$engagementMedi === void 0 ? \"POPUP\" : _clean$engagementMedi,\n jwt = clean.jwt,\n user = clean.user;\n var tenantAlias = encodeURIComponent(this.tenantAlias);\n var accountId = user ? encodeURIComponent(user.accountId) : null;\n var userId = user ? encodeURIComponent(user.id) : null;\n var locale = (_clean$locale = clean.locale) !== null && _clean$locale !== void 0 ? _clean$locale : validateLocale(navigator.language.replace(/\\-/g, \"_\"));\n var path = \"/api/v1/\".concat(tenantAlias, \"/graphql\");\n var url = this.domain + path;\n return new Promise( /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(resolve, reject) {\n var _res$data, res;\n\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return doQuery(url, RENDER_WIDGET_QUERY, {\n user: userId && accountId ? {\n id: userId,\n accountId: accountId\n } : null,\n engagementMedium: engagementMedium,\n widgetType: widgetType,\n locale: locale\n }, jwt);\n\n case 3:\n res = _context.sent;\n resolve(res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.renderWidget);\n _context.next = 10;\n break;\n\n case 7:\n _context.prev = 7;\n _context.t0 = _context[\"catch\"](0);\n reject(_context.t0);\n\n case 10:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 7]]);\n }));\n\n return function (_x, _x2) {\n return _ref2.apply(this, arguments);\n };\n }());\n }\n /**\n * Looks up the referral code of the current user, if there is any.\n *\n * @return {Promise&lt;ReferralCookie>} code referral code if true.\n */\n\n }, {\n key: \"squatchReferralCookie\",\n value: function () {\n var _squatchReferralCookie = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var tenantAlias, _saasquatch, cookie, url, response;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n tenantAlias = encodeURIComponent(this.tenantAlias);\n _saasquatch = Cookies.get(\"_saasquatch\") || \"\";\n cookie = _saasquatch ? \"?cookies=\".concat(encodeURIComponent(_saasquatch)) : \"\";\n url = \"\".concat(this.domain, \"/a/\").concat(tenantAlias, \"/widgets/squatchcookiejson\").concat(cookie);\n _context2.next = 6;\n return doGet(url);\n\n case 6:\n response = _context2.sent;\n return _context2.abrupt(\"return\", Promise.resolve(_objectSpread(_objectSpread({}, response), {}, {\n encodedCookie: _saasquatch\n })));\n\n case 8:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function squatchReferralCookie() {\n return _squatchReferralCookie.apply(this, arguments);\n }\n\n return squatchReferralCookie;\n }()\n }]);\n\n return WidgetApi;\n}(); // builds a param string for widgets\n\n\nexport { WidgetApi as default };\n\nfunction _buildParams(_ref3) {\n var widgetType = _ref3.widgetType,\n engagementMedium = _ref3.engagementMedium;\n var widgetTypeP = widgetType ? \"?widgetType=\".concat(encodeURIComponent(widgetType)) : \"\";\n var engagementMediumP = \"\".concat(widgetType ? \"&\" : \"?\", \"engagementMedium=\").concat(encodeURIComponent(engagementMedium));\n var optionalParams = widgetTypeP + engagementMediumP;\n return optionalParams;\n}"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/graphql.ts","name":"./src/api/graphql.ts","index":20,"index2":16,"size":426,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","issuerId":null,"issuerName":"./src/api/WidgetApi.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","name":"./src/api/WidgetApi.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","module":"./src/api/WidgetApi.ts","moduleName":"./src/api/WidgetApi.ts","type":"harmony side effect evaluation","userRequest":"./graphql","loc":"14:0-48"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","module":"./src/api/WidgetApi.ts","moduleName":"./src/api/WidgetApi.ts","type":"harmony import specifier","userRequest":"./graphql","loc":"132:38-57"}],"usedExports":["RENDER_WIDGET_QUERY"],"providedExports":["RENDER_WIDGET_QUERY"],"optimizationBailout":[],"depth":3,"source":"export var RENDER_WIDGET_QUERY = \"\\n query renderWidget ($user: UserIdInput, $engagementMedium: UserEngagementMedium, $widgetType: WidgetType, $locale: RSLocale) {\\n renderWidget(user: $user, engagementMedium: $engagementMedium, widgetType: $widgetType, locale: $locale) {\\n template\\n user {\\n id\\n accountId\\n }\\n jsOptions\\n widgetConfig {\\n values\\n }\\n }\\n }\\n\";"}],"filteredModules":0},{"id":18,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/domready.ts","name":"./src/utils/domready.ts","index":29,"index2":25,"size":626,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","issuerId":16,"issuerName":"./src/widgets/EmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"../utils/domready","loc":"23:0-45"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"../utils/domready","loc":"148:6-14"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"../utils/domready","loc":"207:6-14"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"../utils/domready","loc":"23:0-45"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"../utils/domready","loc":"117:16-24"}],"usedExports":["domready"],"providedExports":["domready"],"optimizationBailout":[],"depth":3,"source":"/*!\n * domready (c) Dustin Diaz 2014 - License MIT\n *\n */\nexport function domready(targetDoc, fn) {\n var fns = [];\n\n var _listener;\n\n var doc = targetDoc;\n var hack = doc.documentElement.doScroll;\n var domContentLoaded = \"DOMContentLoaded\";\n var loaded = (hack ? /^loaded|^c/ : /^loaded|^i|^c/).test(doc.readyState);\n if (!loaded) doc.addEventListener(domContentLoaded, _listener = function listener() {\n doc.removeEventListener(domContentLoaded, _listener);\n loaded = true;\n\n while (_listener = fns.shift()) {\n _listener();\n }\n }); // @ts-ignore\n\n return loaded ? setTimeout(fn, 0) : fns.push(fn);\n}"},{"id":19,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/eventbusjs/lib/eventbus.min.js","name":"./node_modules/eventbusjs/lib/eventbus.min.js","index":13,"index2":10,"size":2399,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","issuerId":26,"issuerName":"./src/widgets/Widgets.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"eventbusjs","loc":"7:0-39"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"eventbusjs","loc":"50:20-28"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"eventbusjs","loc":"53:4-29"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"eventbusjs","loc":"248:6-34"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"eventbusjs","loc":"249:6-31"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"(function(root,factory){if(typeof exports===\"object\"&&typeof module===\"object\")module.exports=factory();else if(typeof define===\"function\"&&define.amd)define(\"EventBus\",[],factory);else if(typeof exports===\"object\")exports[\"EventBus\"]=factory();else root[\"EventBus\"]=factory()})(this,function(){var EventBusClass={};EventBusClass=function(){this.listeners={}};EventBusClass.prototype={addEventListener:function(type,callback,scope){var args=[];var numOfArgs=arguments.length;for(var i=0;i&lt;numOfArgs;i++){args.push(arguments[i])}args=args.length>3?args.splice(3,args.length-1):[];if(typeof this.listeners[type]!=\"undefined\"){this.listeners[type].push({scope:scope,callback:callback,args:args})}else{this.listeners[type]=[{scope:scope,callback:callback,args:args}]}},removeEventListener:function(type,callback,scope){if(typeof this.listeners[type]!=\"undefined\"){var numOfCallbacks=this.listeners[type].length;var newArray=[];for(var i=0;i&lt;numOfCallbacks;i++){var listener=this.listeners[type][i];if(listener.scope==scope&&listener.callback==callback){}else{newArray.push(listener)}}this.listeners[type]=newArray}},hasEventListener:function(type,callback,scope){if(typeof this.listeners[type]!=\"undefined\"){var numOfCallbacks=this.listeners[type].length;if(callback===undefined&&scope===undefined){return numOfCallbacks>0}for(var i=0;i&lt;numOfCallbacks;i++){var listener=this.listeners[type][i];if((scope?listener.scope==scope:true)&&listener.callback==callback){return true}}}return false},dispatch:function(type,target){var event={type:type,target:target};var args=[];var numOfArgs=arguments.length;for(var i=0;i&lt;numOfArgs;i++){args.push(arguments[i])}args=args.length>2?args.splice(2,args.length-1):[];args=[event].concat(args);if(typeof this.listeners[type]!=\"undefined\"){var listeners=this.listeners[type].slice();var numOfCallbacks=listeners.length;for(var i=0;i&lt;numOfCallbacks;i++){var listener=listeners[i];if(listener&&listener.callback){var concatArgs=args.concat(listener.args);listener.callback.apply(listener.scope,concatArgs)}}}},getEvents:function(){var str=\"\";for(var type in this.listeners){var numOfCallbacks=this.listeners[type].length;for(var i=0;i&lt;numOfCallbacks;i++){var listener=this.listeners[type][i];str+=listener.scope&&listener.scope.className?listener.scope.className:\"anonymous\";str+=\" listen for '\"+type+\"'\\n\"}}return str}};var EventBus=new EventBusClass;return EventBus});"},{"id":20,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/get.js","name":"./node_modules/@babel/runtime/helpers/get.js","index":22,"index2":20,"size":600,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","issuerId":16,"issuerName":"./src/widgets/EmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/get","loc":"4:0-46"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/get","loc":"244:13-17"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/get","loc":"4:0-46"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/get","loc":"241:13-17"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"var superPropBase = require(\"./superPropBase\");\n\nfunction _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n module.exports = _get = Reflect.get;\n } else {\n module.exports = _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n}\n\nmodule.exports = _get;"},{"id":21,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","name":"./src/widgets/Widget.ts","index":30,"index2":27,"size":11147,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","issuerId":16,"issuerName":"./src/widgets/EmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"./Widget","loc":"22:0-30"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"./Widget","loc":"249:2-8"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"./Widget","loc":"22:0-30"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"./Widget","loc":"246:2-8"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":3,"source":"import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n// @ts-check\nimport debug from \"debug\";\nimport AnalyticsApi from \"../api/AnalyticsApi\";\nimport { isObject } from \"../utils/validate\";\n/** @hidden */\n\nvar _log = debug(\"squatch-js:widget\");\n\n/*\n * The Widget class is the base class for the different widget types available\n *\n * Creates an `iframe` in which the html content of the widget gets embedded.\n * Uses element-resize-detector (https://github.com/wnr/element-resize-detector)\n * for listening to the height of the widget content and make the iframe responsive.\n *\n */\nvar Widget = /*#__PURE__*/function () {\n function Widget(params) {\n _classCallCheck(this, Widget);\n\n _log(\"widget initializing ...\");\n\n this.content = params.content === \"error\" ? this._error(params.rsCode) : params.content;\n this.type = params.type;\n this.widgetApi = params.api;\n this.npmCdn = params.npmCdn;\n this.analyticsApi = new AnalyticsApi({\n domain: params.domain\n });\n this.context = params.context;\n this.container = params.container;\n }\n\n _createClass(Widget, [{\n key: \"_createFrame\",\n value: function _createFrame() {\n var frame = document.createElement(\"iframe\");\n frame[\"squatchJsApi\"] = this;\n frame.width = \"100%\";\n frame.scrolling = \"no\";\n frame.setAttribute(\"style\", \"border: 0; background-color: none; width: 1px; min-width: 100%;\");\n return frame;\n }\n }, {\n key: \"_loadEvent\",\n value: function _loadEvent(sqh) {\n var _this$analyticsApi$pu;\n\n if (!sqh) return; // No non-truthy value\n\n if (!isObject(sqh)) {\n throw new Error(\"Widget Load event identity property is not an object\");\n }\n\n var params;\n\n if (\"programId\" in sqh) {\n if (!sqh.tenantAlias || !sqh.accountId || !sqh.userId || !sqh.engagementMedium) throw new Error(\"Widget Load event missing required properties\");\n params = {\n tenantAlias: sqh.tenantAlias,\n externalAccountId: sqh.accountId,\n externalUserId: sqh.userId,\n engagementMedium: sqh.engagementMedium,\n programId: sqh.programId\n };\n } else {\n var analytics = sqh.analytics,\n mode = sqh.mode;\n params = {\n tenantAlias: analytics.attributes.tenant,\n externalAccountId: analytics.attributes.accountId,\n externalUserId: analytics.attributes.userId,\n engagementMedium: mode.widgetMode\n };\n }\n\n (_this$analyticsApi$pu = this.analyticsApi.pushAnalyticsLoadEvent(params)) === null || _this$analyticsApi$pu === void 0 ? void 0 : _this$analyticsApi$pu.then(function (response) {\n _log(\"\".concat(params.engagementMedium, \" loaded event recorded.\"));\n }).catch(function (ex) {\n _log(new Error(\"pushAnalyticsLoadEvent() \".concat(ex)));\n });\n }\n }, {\n key: \"_shareEvent\",\n value: function _shareEvent(sqh, medium) {\n if (sqh) {\n this.analyticsApi.pushAnalyticsShareClickedEvent({\n tenantAlias: sqh.analytics.attributes.tenant,\n externalAccountId: sqh.analytics.attributes.accountId,\n externalUserId: sqh.analytics.attributes.userId,\n engagementMedium: sqh.mode.widgetMode,\n shareMedium: medium\n }).then(function (response) {\n _log(\"\".concat(sqh.mode.widgetMode, \" share \").concat(medium, \" event recorded. \").concat(response));\n }).catch(function (ex) {\n _log(new Error(\"pushAnalyticsLoadEvent() \".concat(ex)));\n });\n }\n } // TODO: CA: Refactor how error templates are shown\n\n }, {\n key: \"_error\",\n value: function _error(rs) {\n var mode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"modal\";\n var style = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"\";\n var errorTemplate = \"&lt;!DOCTYPE html>\\n &lt;!--[if IE 7]>&lt;html class=\\\"ie7 oldie\\\" lang=\\\"en\\\">&lt;![endif]-->\\n &lt;!--[if IE 8]>&lt;html class=\\\"ie8 oldie\\\" lang=\\\"en\\\">&lt;![endif]-->\\n &lt;!--[if gt IE 8]>&lt;!-->&lt;html lang=\\\"en\\\">&lt;!--&lt;![endif]-->\\n &lt;head>\\n &lt;link rel=\\\"stylesheet\\\" media=\\\"all\\\" href=\\\"https://fast.ssqt.io/assets/css/widget/errorpage.css\\\">\\n &lt;style>\\n \".concat(style, \"\\n &lt;/style>\\n &lt;/head>\\n &lt;body>\\n\\n &lt;div class=\\\"squatch-container \").concat(mode, \"\\\" style=\\\"width:100%\\\">\\n &lt;div class=\\\"errorheader\\\">\\n &lt;button type=\\\"button\\\" class=\\\"close\\\" onclick=\\\"window.frameElement.squatchJsApi.close();\\\">&times;&lt;/button>\\n &lt;p class=\\\"errortitle\\\">Error&lt;/p>\\n &lt;/div>\\n &lt;div class=\\\"errorbody\\\">\\n &lt;div class=\\\"sadface\\\">&lt;img src=\\\"https://fast.ssqt.io/assets/images/face.png\\\">&lt;/div>\\n &lt;h4>Our referral program is temporarily unavailable.&lt;/h4>&lt;br>\\n &lt;p>Please reload the page or check back later.&lt;/p>\\n &lt;p>If the persists please contact our support team.&lt;/p>\\n &lt;br>\\n &lt;br>\\n &lt;div class=\\\"right-align errtxt\\\">\\n Error Code: \").concat(rs, \"\\n &lt;/div>\\n &lt;/div>\\n &lt;/div>\\n &lt;/body>\\n &lt;/html>\");\n return errorTemplate;\n }\n }, {\n key: \"_findInnerContainer\",\n value: function () {\n var _findInnerContainer2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(frame) {\n var contentWindow, frameDoc, search, found, i;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n search = function _search() {\n var containers = frameDoc.getElementsByTagName(\"sqh-global-container\");\n var legacyContainers = frameDoc.getElementsByClassName(\"squatch-container\");\n var fallback = containers.length > 0 ? containers[0] : legacyContainers.length > 0 ? legacyContainers[0] : null;\n return fallback;\n };\n\n contentWindow = frame.contentWindow;\n\n if (contentWindow) {\n _context.next = 4;\n break;\n }\n\n throw new Error(\"Squatch.js frame inner frame is empty\");\n\n case 4:\n frameDoc = contentWindow.document;\n found = null;\n i = 0;\n\n case 7:\n if (!(i &lt; 5)) {\n _context.next = 16;\n break;\n }\n\n found = search();\n\n if (!found) {\n _context.next = 11;\n break;\n }\n\n return _context.abrupt(\"break\", 16);\n\n case 11:\n _context.next = 13;\n return delay(100);\n\n case 13:\n i++;\n _context.next = 7;\n break;\n\n case 16:\n if (found) {\n _context.next = 18;\n break;\n }\n\n return _context.abrupt(\"return\", frameDoc.body);\n\n case 18:\n return _context.abrupt(\"return\", found);\n\n case 19:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n function _findInnerContainer(_x) {\n return _findInnerContainer2.apply(this, arguments);\n }\n\n return _findInnerContainer;\n }() // TODO: CA: Refactor reload\n\n /**\n * Reloads the current widget, makes updated request to API and renders result.\n * Primarily for Classic widgets with registration\n * @param param0 Form field values\n * @param jwt JWT for API authentication\n */\n\n }, {\n key: \"reload\",\n value: function reload(frame, _ref, jwt) {\n var _this = this;\n\n var email = _ref.email,\n firstName = _ref.firstName,\n lastName = _ref.lastName;\n var frameWindow = frame.contentWindow;\n var engagementMedium = this.context.engagementMedium || \"POPUP\";\n\n if (!frameWindow) {\n throw new Error(\"Frame needs a content window\");\n }\n\n var response;\n\n if (this.context.type === \"upsert\") {\n var userObj = {\n email: email || null,\n firstName: firstName || null,\n lastName: lastName || null,\n id: this.context.user.id,\n accountId: this.context.user.accountId\n };\n response = this.widgetApi.upsertUser({\n user: userObj,\n engagementMedium: engagementMedium,\n widgetType: this.type,\n jwt: jwt\n });\n } else if (this.context.type === \"passwordless\") {\n response = this.widgetApi.render({\n user: undefined,\n engagementMedium: engagementMedium,\n widgetType: this.type,\n jwt: undefined\n });\n } else {\n throw new Error(\"can't reload an error widget\");\n }\n\n response.then(function (_ref2) {\n var template = _ref2.template;\n\n if (template) {\n _this.content = template; // Support for classic widget registration forms\n\n _this.__deprecated__register(frame, {\n email: email,\n engagementMedium: engagementMedium\n }, function () {\n _this.load(frame); // @ts-ignore -- open exists in the PopupWidget, so this call will always exist when it's called.\n\n\n engagementMedium === \"POPUP\" && _this.open(frame);\n });\n }\n }).catch(function (_ref3) {\n var message = _ref3.message;\n\n _log(\"\".concat(message));\n });\n }\n }, {\n key: \"__deprecated__register\",\n value: function __deprecated__register(frame, params, onClick) {\n var frameWindow = frame.contentWindow;\n var frameDoc = frameWindow.document;\n var showStatsBtn = frameDoc.createElement(\"button\");\n var registerForm = frameDoc.getElementsByClassName(\"squatch-register\")[0];\n\n if (registerForm) {\n showStatsBtn.className = \"btn btn-primary\";\n showStatsBtn.id = \"show-stats-btn\";\n showStatsBtn.textContent = this.type === \"REFERRER_WIDGET\" ? \"Show Stats\" : \"Show Reward\";\n var widgetStyle = params.engagementMedium === \"POPUP\" ? \"margin-top: 10px; max-width: 130px; width: 100%;\" : \"margin-top: 10px;\";\n showStatsBtn.setAttribute(\"style\", widgetStyle);\n showStatsBtn.onclick = onClick; // @ts-ignore -- expect register form to be a stylable element\n\n registerForm.style.paddingTop = \"30px\";\n registerForm.innerHTML = \"&lt;p>&lt;strong>\".concat(params.email, \"&lt;/strong>&lt;br>Has been successfully registered&lt;/p>\");\n registerForm.appendChild(showStatsBtn);\n }\n }\n }]);\n\n return Widget;\n}();\n\nexport { Widget as default };\n\nfunction delay(duration) {\n return new Promise(function (resolve, reject) {\n setTimeout(function () {\n resolve(function () {});\n }, duration);\n });\n}"},{"id":22,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","name":"./src/api/AnalyticsApi.ts","index":31,"index2":26,"size":2620,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","issuerId":21,"issuerName":"./src/widgets/Widget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"},{"id":21,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","name":"./src/widgets/Widget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"../api/AnalyticsApi","loc":"7:0-47"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"../api/AnalyticsApi","loc":"31:28-40"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"../../api/AnalyticsApi","loc":"16:0-50"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../api/AnalyticsApi","loc":"80:30-42"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":4,"source":"import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\n// @ts-check\nimport { doPost } from \"../utils/io\";\nimport { hasProps } from \"../utils/validate\";\n/**\n *\n * The AnalyticsApi class is a wrapper around the Analytics Endpoints of\n * the SaaSquatch REST API. Used to record Widget events.\n *\n * @hidden\n */\n\nvar AnalyticsApi = /*#__PURE__*/function () {\n /**\n * Initialize a new {@link AnalyticsApi} instance.\n *\n * @param {Object} config Config details\n * @param {string} [config.domain='https://app.referralsaasquatch.com'] The server domain.\n *\n */\n function AnalyticsApi(config) {\n _classCallCheck(this, AnalyticsApi);\n\n var raw = config;\n\n if (hasProps(raw, \"domain\") && typeof raw.domain === \"string\") {\n this.domain = raw.domain;\n } else {\n this.domain = \"https://app.referralsaasquatch.com\";\n }\n }\n\n _createClass(AnalyticsApi, [{\n key: \"pushAnalyticsLoadEvent\",\n value: function pushAnalyticsLoadEvent(params) {\n if (!params.externalUserId || !params.externalAccountId) return;\n var tenantAlias = encodeURIComponent(params.tenantAlias);\n var accountId = encodeURIComponent(params.externalAccountId);\n var userId = encodeURIComponent(params.externalUserId);\n var engagementMedium = encodeURIComponent(params.engagementMedium);\n var programId = params.programId ? \"&programId=\".concat(encodeURIComponent(params.programId)) : \"\";\n var path = \"/a/\".concat(tenantAlias, \"/widgets/analytics/loaded?externalAccountId=\").concat(accountId, \"&externalUserId=\").concat(userId, \"&engagementMedium=\").concat(engagementMedium).concat(programId);\n var url = this.domain + path;\n return doPost(url, JSON.stringify({}));\n }\n }, {\n key: \"pushAnalyticsShareClickedEvent\",\n value: function pushAnalyticsShareClickedEvent(params) {\n var tenantAlias = encodeURIComponent(params.tenantAlias);\n var accountId = encodeURIComponent(params.externalAccountId);\n var userId = encodeURIComponent(params.externalUserId);\n var engagementMedium = encodeURIComponent(params.engagementMedium);\n var shareMedium = encodeURIComponent(params.shareMedium);\n var path = \"/a/\".concat(tenantAlias, \"/widgets/analytics/shared?externalAccountId=\").concat(accountId, \"&externalUserId=\").concat(userId, \"&engagementMedium=\").concat(engagementMedium, \"&shareMedium=\").concat(shareMedium);\n var url = this.domain + path;\n return doPost(url, JSON.stringify({}));\n }\n }]);\n\n return AnalyticsApi;\n}();\n\nexport { AnalyticsApi as default };"},{"id":23,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","name":"./src/utils/utmUtils.ts","index":39,"index2":38,"size":3216,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"../../utils/utmUtils","loc":"19:0-54"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/utmUtils","loc":"91:20-34"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./utils/utmUtils","loc":"22:0-50"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./utils/utmUtils","loc":"91:16-30"}],"usedExports":["_getAutoConfig"],"providedExports":["_getAutoConfig","convertExtraToConfig"],"optimizationBailout":[],"depth":2,"source":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i &lt; arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport debug from \"debug\";\nimport { b64decode } from \"./cookieUtils\";\n\n/** @hidden */\nvar _log = debug(\"squatch-js\");\n\nexport function _getAutoConfig(configIn) {\n var queryString = window.location.search;\n var urlParams = new URLSearchParams(queryString);\n var refParam = urlParams.get(\"_saasquatchExtra\") || \"\";\n\n if (!refParam) {\n _log(\"No _saasquatchExtra param\");\n\n return;\n }\n\n var raw;\n\n try {\n raw = JSON.parse(b64decode(refParam));\n } catch (e) {\n _log(\"Unable to decode _saasquatchExtra config\");\n\n return;\n }\n\n var _convertExtraToConfig = convertExtraToConfig(raw),\n domain = _convertExtraToConfig.domain,\n tenantAlias = _convertExtraToConfig.tenantAlias,\n widgetConfig = _convertExtraToConfig.widgetConfig;\n\n if (!domain || !tenantAlias || !widgetConfig) {\n _log(\"_saasquatchExtra did not have an expected structure\");\n\n return undefined;\n }\n\n var autoPopupWidgetType = widgetConfig.autoPopupWidgetType,\n rest = _objectWithoutProperties(widgetConfig, [\"autoPopupWidgetType\"]);\n\n return {\n widgetConfig: _objectSpread({\n widgetType: autoPopupWidgetType,\n displayOnLoad: true\n }, rest),\n squatchConfig: _objectSpread(_objectSpread({}, configIn ? {\n configIn: configIn\n } : {}), {}, {\n domain: domain,\n tenantAlias: tenantAlias\n })\n };\n}\n/**\n * Deconstructs _saasquatchExtra into domain, tenantAlias, and widgetConfig\n * @param obj {Record&lt;string, any>} Expected to be of the form `{ [appDomain]: { [tenantAlias]: { autoPopupWidgetType: [widgetType], [rest]?: ... } } }`\n */\n\nexport function convertExtraToConfig(obj) {\n var _obj$_domain;\n\n var _domain = Object.keys(obj || {})[0];\n var tenantAlias = Object.keys((obj === null || obj === void 0 ? void 0 : obj[_domain]) || {})[0];\n var widgetConfig = obj === null || obj === void 0 ? void 0 : (_obj$_domain = obj[_domain]) === null || _obj$_domain === void 0 ? void 0 : _obj$_domain[tenantAlias]; // domain in _saasquatchExtra doesn't contain \"https://\"\n\n var domain = _domain ? \"https://\".concat(_domain) : undefined;\n return {\n domain: domain,\n tenantAlias: tenantAlias,\n widgetConfig: widgetConfig\n };\n}"},{"id":24,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/setPrototypeOf.js","name":"./node_modules/@babel/runtime/helpers/setPrototypeOf.js","index":26,"index2":21,"size":237,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/inherits.js","issuerId":8,"issuerName":"./node_modules/@babel/runtime/helpers/inherits.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"},{"id":8,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/inherits.js","name":"./node_modules/@babel/runtime/helpers/inherits.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":8,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/inherits.js","module":"./node_modules/@babel/runtime/helpers/inherits.js","moduleName":"./node_modules/@babel/runtime/helpers/inherits.js","type":"cjs require","userRequest":"./setPrototypeOf","loc":"1:21-48"},{"moduleId":30,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","module":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","moduleName":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","type":"cjs require","userRequest":"./setPrototypeOf","loc":"3:21-48"},{"moduleId":40,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/construct.js","module":"./node_modules/@babel/runtime/helpers/construct.js","moduleName":"./node_modules/@babel/runtime/helpers/construct.js","type":"cjs require","userRequest":"./setPrototypeOf","loc":"1:21-48"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;"},{"id":25,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","index":33,"index2":41,"size":13102,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":null,"issuerId":null,"issuerName":null,"issuerPath":null,"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./widgets/declarative/DeclarativeEmbedWidget","loc":"23:0-110"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/declarative/DeclarativeEmbedWidget","loc":"32:0-34:62"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/declarative/DeclarativeEmbedWidget","loc":"32:0-34:62"}],"usedExports":["DeclarativeEmbedWidget","DeclarativePopupWidget"],"providedExports":["DeclarativeEmbedWidget","DeclarativePopupWidget"],"optimizationBailout":["ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/assertThisInitialized.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/asyncToGenerator.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/classCallCheck.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/createClass.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/defineProperty.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/getPrototypeOf.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/inherits.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/wrapNativeSuper.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/regenerator/index.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./src/api/AnalyticsApi.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/api/WidgetApi.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/utils/cookieUtils.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/utils/utmUtils.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/utils/validate.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/widgets/EmbedWidget.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/widgets/PopupWidget.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./node_modules/debug/src/browser.js (&lt;- Module is not an ECMAScript module)"],"depth":2,"modules":[{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","index":33,"index2":41,"size":3462,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./widgets/declarative/DeclarativeEmbedWidget","loc":"23:0-110"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/declarative/DeclarativeEmbedWidget","loc":"32:0-34:62"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/declarative/DeclarativeEmbedWidget","loc":"32:0-34:62"}],"usedExports":["DeclarativeEmbedWidget","DeclarativePopupWidget"],"providedExports":["DeclarativeEmbedWidget","DeclarativePopupWidget"],"optimizationBailout":[],"depth":2,"source":"import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nimport DeclarativeWidget from \"./DeclarativeWidget\";\nexport var DeclarativeEmbedWidget = /*#__PURE__*/function (_DeclarativeWidget) {\n _inherits(DeclarativeEmbedWidget, _DeclarativeWidget);\n\n var _super = _createSuper(DeclarativeEmbedWidget);\n\n function DeclarativeEmbedWidget() {\n var _this;\n\n _classCallCheck(this, DeclarativeEmbedWidget);\n\n _this = _super.call(this);\n _this.type = \"EMBED\";\n _this.container = _this.getAttribute(\"container\") || undefined;\n return _this;\n }\n\n _createClass(DeclarativeEmbedWidget, [{\n key: \"attributeChangedCallback\",\n value: function attributeChangedCallback(attr, oldVal, newVal) {\n if (oldVal === newVal || !oldVal) return; // nothing to do\n\n switch (attr) {\n case \"widget\":\n this.connectedCallback();\n break;\n // Specific to embed widgets\n\n case \"container\":\n if (this.element) this.close();\n this.connectedCallback();\n break;\n }\n }\n }, {\n key: \"renderWidget\",\n value: function renderWidget() {\n this.element = this.widgetInstance._findElement();\n this.widgetInstance.load(this.frame);\n }\n }], [{\n key: \"observedAttributes\",\n get: function get() {\n return [\"widget\", \"container\"];\n }\n }]);\n\n return DeclarativeEmbedWidget;\n}(DeclarativeWidget);\nexport var DeclarativePopupWidget = /*#__PURE__*/function (_DeclarativeWidget2) {\n _inherits(DeclarativePopupWidget, _DeclarativeWidget2);\n\n var _super2 = _createSuper(DeclarativePopupWidget);\n\n function DeclarativePopupWidget() {\n var _this2;\n\n _classCallCheck(this, DeclarativePopupWidget);\n\n _this2 = _super2.call(this);\n _this2.type = \"POPUP\";\n return _this2;\n }\n\n _createClass(DeclarativePopupWidget, [{\n key: \"attributeChangedCallback\",\n value: function attributeChangedCallback(attr, oldVal, newVal) {\n if (oldVal === newVal || !oldVal) return; // nothing to do\n\n switch (attr) {\n case \"widget\":\n this.connectedCallback();\n break;\n }\n }\n }], [{\n key: \"observedAttributes\",\n get: function get() {\n return [\"widget\", \"id\"];\n }\n }]);\n\n return DeclarativePopupWidget;\n}(DeclarativeWidget);\nwindow.customElements.define(\"squatch-embed\", DeclarativeEmbedWidget);\nwindow.customElements.define(\"squatch-popup\", DeclarativePopupWidget);"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts","index":34,"index2":40,"size":9071,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","issuerId":null,"issuerName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"./DeclarativeWidget","loc":"11:0-52"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","type":"harmony import specifier","userRequest":"./DeclarativeWidget","loc":"59:2-19"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","type":"harmony import specifier","userRequest":"./DeclarativeWidget","loc":"94:2-19"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":3,"source":"import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _wrapNativeSuper from \"@babel/runtime/helpers/wrapNativeSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nimport AnalyticsApi from \"../../api/AnalyticsApi\";\nimport { EmbedWidget, PopupWidget, WidgetApi } from \"../../squatch\";\nimport { decodeUserJwt } from \"../../utils/decodeUserJwt\";\nimport { _getAutoConfig } from \"../../utils/utmUtils\";\nimport { DEFAULT_DOMAIN, DEFAULT_NPM_CDN } from \"../../utils/validate\";\n\nvar DeclarativeWidget = /*#__PURE__*/function (_HTMLElement) {\n _inherits(DeclarativeWidget, _HTMLElement);\n\n var _super = _createSuper(DeclarativeWidget);\n\n // Embed specific:\n function DeclarativeWidget() {\n var _this;\n\n _classCallCheck(this, DeclarativeWidget);\n\n _this = _super.call(this);\n\n _defineProperty(_assertThisInitialized(_this), \"_setWidget\", function (res, config) {\n if (!_this.widgetType) throw new Error(\"Widget was no specified\");\n var Widget = _this.type === \"EMBED\" ? EmbedWidget : PopupWidget;\n return new Widget({\n api: _this.widgetApi,\n content: res.template,\n context: {\n type: config.type,\n engagementMedium: _this.type\n },\n type: _this.widgetType,\n domain: _this.config.domain || DEFAULT_DOMAIN,\n npmCdn: DEFAULT_NPM_CDN,\n container: _this.container || _assertThisInitialized(_this)\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_setErrorWidget\", function (e) {\n var Widget = _this.type === \"EMBED\" ? EmbedWidget : PopupWidget;\n return new Widget({\n api: _this.widgetApi,\n content: \"error\",\n context: {\n type: \"error\"\n },\n type: \"ERROR_WIDGET\",\n domain: _this.config.domain || DEFAULT_DOMAIN,\n npmCdn: DEFAULT_NPM_CDN,\n container: _this.container || _assertThisInitialized(_this)\n });\n });\n\n _this.config = window.squatchConfig;\n _this.token = window.squatchToken;\n _this.tenant = window.squatchTenant;\n return _this;\n }\n\n _createClass(DeclarativeWidget, [{\n key: \"_setupApis\",\n value: function _setupApis(config) {\n this.widgetApi = new WidgetApi({\n tenantAlias: (config === null || config === void 0 ? void 0 : config.tenantAlias) || this.tenant,\n domain: (config === null || config === void 0 ? void 0 : config.domain) || this.config.domain || DEFAULT_DOMAIN\n });\n this.analyticsApi = new AnalyticsApi({\n domain: (config === null || config === void 0 ? void 0 : config.domain) || this.config.domain || DEFAULT_DOMAIN\n });\n }\n }, {\n key: \"renderPasswordlessVariant\",\n value: function renderPasswordlessVariant() {\n var _configs$widgetConfig,\n _configs$widgetConfig2,\n _this2 = this;\n\n var configs = _getAutoConfig();\n\n this._setupApis(configs === null || configs === void 0 ? void 0 : configs.squatchConfig);\n\n return this.widgetApi.render({\n engagementMedium: (configs === null || configs === void 0 ? void 0 : (_configs$widgetConfig = configs.widgetConfig) === null || _configs$widgetConfig === void 0 ? void 0 : _configs$widgetConfig.engagementMedium) || this.type,\n widgetType: (configs === null || configs === void 0 ? void 0 : (_configs$widgetConfig2 = configs.widgetConfig) === null || _configs$widgetConfig2 === void 0 ? void 0 : _configs$widgetConfig2.widgetType) || this.widgetType\n }).then(function (res) {\n return _this2._setWidget(res, {\n type: \"passwordless\"\n });\n }).catch(this._setErrorWidget);\n }\n }, {\n key: \"renderUserUpsertVariant\",\n value: function () {\n var _renderUserUpsertVariant = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var _this3 = this;\n\n var userObj, widgetInstance;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (this.widgetType) {\n _context.next = 2;\n break;\n }\n\n throw new Error(\"Widget must be specified\");\n\n case 2:\n this._setupApis();\n\n userObj = decodeUserJwt(this.token);\n\n if (userObj) {\n _context.next = 6;\n break;\n }\n\n throw new Error(\"Could not load user information from jwt\");\n\n case 6:\n _context.next = 8;\n return this.widgetApi.upsertUser({\n user: userObj,\n engagementMedium: this.type,\n widgetType: this.widgetType,\n jwt: this.token\n }).then(function (res) {\n return _this3._setWidget(res, {\n type: \"upsert\"\n });\n }).catch(this._setErrorWidget);\n\n case 8:\n widgetInstance = _context.sent;\n return _context.abrupt(\"return\", widgetInstance);\n\n case 10:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function renderUserUpsertVariant() {\n return _renderUserUpsertVariant.apply(this, arguments);\n }\n\n return renderUserUpsertVariant;\n }()\n }, {\n key: \"renderWidget\",\n value: function renderWidget() {\n this.widgetInstance.load(this.frame);\n }\n }, {\n key: \"connectedCallback\",\n value: function () {\n var _connectedCallback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n this.widgetType = this.getAttribute(\"widget\") || undefined;\n console.log({\n widget: this.getAttribute(\"widget\")\n });\n\n if (this.widgetType) {\n _context2.next = 4;\n break;\n }\n\n throw new Error(\"No widget has been specified\");\n\n case 4:\n if (this.token) {\n _context2.next = 10;\n break;\n }\n\n _context2.next = 7;\n return this.renderPasswordlessVariant();\n\n case 7:\n this.widgetInstance = _context2.sent;\n _context2.next = 13;\n break;\n\n case 10:\n _context2.next = 12;\n return this.renderUserUpsertVariant();\n\n case 12:\n this.widgetInstance = _context2.sent;\n\n case 13:\n if (this.widgetInstance) {\n _context2.next = 15;\n break;\n }\n\n throw new Error(\"Could not create widget.\");\n\n case 15:\n this.frame = this.widgetInstance._createFrame();\n this.renderWidget();\n\n case 17:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function connectedCallback() {\n return _connectedCallback.apply(this, arguments);\n }\n\n return connectedCallback;\n }()\n }, {\n key: \"open\",\n value: function open() {\n this.widgetInstance.open(this.frame);\n }\n }, {\n key: \"close\",\n value: function close() {\n this.widgetInstance.close(this.frame);\n }\n }]);\n\n return DeclarativeWidget;\n}( /*#__PURE__*/_wrapNativeSuper(HTMLElement));\n\nexport { DeclarativeWidget as default };"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/decodeUserJwt.ts","name":"./src/utils/decodeUserJwt.ts","index":43,"index2":39,"size":479,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","issuerId":null,"issuerName":"./src/widgets/declarative/DeclarativeWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony side effect evaluation","userRequest":"../../utils/decodeUserJwt","loc":"18:0-58"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","userRequest":"../../utils/decodeUserJwt","loc":"125:26-39"}],"usedExports":["decodeUserJwt"],"providedExports":["decodeUserJwt"],"optimizationBailout":[],"depth":4,"source":"import debug from \"debug\";\nimport { b64decode } from \"./cookieUtils\";\n\nvar _log = debug(\"squatch-js:decodeJwt\");\n\nexport function decodeUserJwt(tokenStr) {\n try {\n var _JSON$parse;\n\n var base64Url = tokenStr.split(\".\")[1];\n if (base64Url === undefined) return null;\n var jsonStr = b64decode(base64Url);\n return (_JSON$parse = JSON.parse(jsonStr)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.user;\n } catch (e) {\n _log(e);\n\n return null;\n }\n}"}],"filteredModules":0},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts","index":7,"index2":30,"size":14577,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./widgets/Widgets","loc":"12:0-40"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/Widgets","loc":"32:0-34:62"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./widgets/Widgets","loc":"126:17-24"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":2,"source":"import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport debug from \"debug\"; //@ts-ignore\n\nimport * as EventBus from \"eventbusjs\";\nimport WidgetApi from \"../api/WidgetApi\";\nimport EmbedWidget from \"./EmbedWidget\";\nimport PopupWidget from \"./PopupWidget\";\nimport { validateConfig, validatePasswordlessConfig, validateWidgetConfig } from \"../utils/validate\";\n\nvar _log = debug(\"squatch-js:widgets\");\n/**\n *\n * `Widgets` is a factory for creating widgets. It's possible to build your own widgets using the\n * {@link WidgetApi} but most people will prefer to use these easy methods.\n *\n */\n\n\nvar Widgets = /*#__PURE__*/function () {\n // for with locals custom theme, can be removed once with locals isnt' using eventBus anymore.\n\n /**\n * Initialize a new {@link Widgets} instance.\n *\n * @param {ConfigOptions} config Config details\n *\n * @example &lt;caption>Browser example&lt;/caption>\n * var widgets = new squatch.Widgets({tenantAlias:'test_12b5bo1b25125'});\n *\n * @example &lt;caption>Browserify/Webpack example&lt;/caption>\n * var Widgets = require('@saasquatch/squatch-js').Widgets;\n * var widgets = new Widgets({tenantAlias:'test_12b5bo1b25125'});\n *\n * @example &lt;caption>Babel+Browserify/Webpack example&lt;/caption>\n * import {Widgets} from '@saasquatch/squatch-js';\n * let widgets = new Widgets({tenantAlias:'test_12b5bo1b25125'});\n */\n function Widgets(configin) {\n _classCallCheck(this, Widgets);\n\n var raw = configin;\n var config = validateConfig(raw);\n this.tenantAlias = config.tenantAlias;\n this.domain = config.domain;\n this.npmCdn = config.npmCdn; // for with locals custom theme, can be removed once with locals isnt' using eventBus anymore.\n\n this.eventBus = EventBus;\n this.api = new WidgetApi(config); // listens to a 'submit_email' event in the theme.\n\n EventBus.addEventListener(\"submit_email\", Widgets._cb);\n }\n /**\n * This function calls the {@link WidgetApi.upsertUser} method, and it renders\n * the widget if it is successful. Otherwise it shows the \"error\" widget.\n *\n * @param {Object} config Config details\n * @param {Object} config.user The user details\n * @param {string} config.user.id The user id\n * @param {string} config.user.accountId The user account id\n * @param {WidgetType} config.widgetType The content of the widget.\n * @param {EngagementMedium} config.engagementMedium How to display the widget.\n * @param {string} config.jwt the JSON Web Token (JWT) that is used to validate the data (can be disabled)\n * @param {HTMLElement | string | undefined} config.container Element to load the widget into\n * @param {string | undefined} config.trigger Trigger element for opening the popup widget\n *\n * @return {Promise&lt;WidgetResult>} json object if true, with a Widget and user details.\n */\n\n\n _createClass(Widgets, [{\n key: \"upsertUser\",\n value: function () {\n var _upsertUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(config) {\n var raw, clean, response;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n raw = config;\n clean = validateWidgetConfig(raw);\n _context.prev = 2;\n _context.next = 5;\n return this.api.upsertUser(clean);\n\n case 5:\n response = _context.sent;\n return _context.abrupt(\"return\", {\n widget: this._renderWidget(response, clean, {\n type: \"upsert\",\n user: clean.user || null,\n engagementMedium: config.engagementMedium,\n container: config.container,\n trigger: config.trigger\n }),\n user: response.user\n });\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context[\"catch\"](2);\n\n _log(_context.t0);\n\n if (_context.t0.apiErrorCode) {\n this._renderErrorWidget(_context.t0, config.engagementMedium);\n }\n\n throw _context.t0;\n\n case 14:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[2, 9]]);\n }));\n\n function upsertUser(_x) {\n return _upsertUser.apply(this, arguments);\n }\n\n return upsertUser;\n }()\n /**\n * This function calls the {@link WidgetApi.render} method, and it renders\n * the widget if it is successful. Otherwise it shows the \"error\" widget.\n *\n * @param {Object} config Config details\n * @param {Object} config.user The user details\n * @param {string} config.user.id The user id\n * @param {string} config.user.accountId The user account id\n * @param {WidgetType} config.widgetType The content of the widget.\n * @param {EngagementMedium} config.engagementMedium How to display the widget.\n * @param {string} config.jwt the JSON Web Token (JWT) that is used\n * to validate the data (can be disabled)\n *\n * @return {Promise&lt;WidgetResult>} json object if true, with a Widget and user details.\n */\n\n }, {\n key: \"render\",\n value: function () {\n var _render = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(config) {\n var raw, clean, response;\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n raw = config;\n clean = validatePasswordlessConfig(raw);\n _context2.prev = 2;\n _context2.next = 5;\n return this.api.render(clean);\n\n case 5:\n response = _context2.sent;\n return _context2.abrupt(\"return\", {\n widget: this._renderWidget(response, clean, {\n type: \"passwordless\",\n engagementMedium: clean.engagementMedium\n }),\n user: response.user\n });\n\n case 9:\n _context2.prev = 9;\n _context2.t0 = _context2[\"catch\"](2);\n\n if (_context2.t0.apiErrorCode) {\n this._renderErrorWidget(_context2.t0, clean.engagementMedium);\n }\n\n throw _context2.t0;\n\n case 13:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this, [[2, 9]]);\n }));\n\n function render(_x2) {\n return _render.apply(this, arguments);\n }\n\n return render;\n }()\n /**\n * Autofills a referral code into an element when someone has been referred.\n * Uses {@link WidgetApi.squatchReferralCookie} behind the scenes.\n *\n * @param selector Element class/id selector, or a callback function\n * @returns\n */\n\n }, {\n key: \"autofill\",\n value: function autofill(selector) {\n var input = selector;\n\n if (typeof input === \"function\") {\n this.api.squatchReferralCookie().then(function () {\n return input.apply(void 0, arguments);\n }).catch(function (ex) {\n _log(\"Autofill error\", ex);\n\n throw ex;\n });\n return;\n }\n\n if (typeof input !== \"string\") throw new Error(\"Autofill accepts a string or function\");\n var elems = document.querySelectorAll(input);\n var elem;\n\n if (elems.length > 0) {\n // Only use the first element found\n elem = elems[0];\n } else {\n _log(\"Element id/class or function missing\");\n\n throw new Error(\"Element id/class or function missing\");\n }\n\n this.api.squatchReferralCookie() //@ts-ignore\n .then(function (_ref) {\n var codes = _ref.codes;\n elem.value = codes[0];\n }).catch(function (ex) {\n throw ex;\n });\n }\n /**\n * Overrides the default function that submits the user email. If you have\n * Security enabled, the email needs to be signed before it's submitted.\n *\n * @param {function} fn Callback function for the 'submit_email' event.\n * @returns {void}\n */\n\n }, {\n key: \"submitEmail\",\n value: function submitEmail(fn) {\n EventBus.removeEventListener(\"submit_email\", Widgets._cb);\n EventBus.addEventListener(\"submit_email\", fn);\n }\n /**\n * @hidden\n * @param {Object} response The json object return from the WidgetApi\n * @param {Object} config Config details\n * @param {string} config.widgetType The widget type (REFERRER_WIDGET, CONVERSION_WIDGET)\n * @param {string} config.engagementMedium (POPUP, EMBED)\n * @returns {Widget} widget (PopupWidget or EmbedWidget)\n */\n\n }, {\n key: \"_renderWidget\",\n value: function _renderWidget(response, config, context) {\n _log(\"Rendering Widget...\");\n\n if (!response) throw new Error(\"Unable to get a response\");\n var widget;\n var displayOnLoad = !!config.displayOnLoad;\n var displayCTA = false;\n var opts = response.jsOptions || \"\";\n var params = {\n content: response.template,\n type: config.widgetType || opts.widget.defaultWidgetType,\n api: this.api,\n domain: this.domain,\n npmCdn: this.npmCdn,\n context: context\n };\n\n if (opts.widgetUrlMappings) {\n opts.widgetUrlMappings.forEach(function (rule) {\n if (Widgets._matchesUrl(rule.url)) {\n if (rule.widgetType !== \"CONVERSION_WIDGET\" || response.user.referredBy && response.user.referredBy.code) {\n displayOnLoad = rule.displayOnLoad;\n displayCTA = rule.showAsCTA;\n\n _log(\"Display \".concat(rule.widgetType, \" on \").concat(rule.url));\n } else {\n _log(\"Don't display \".concat(rule.widgetType, \" when no referral on widget rule match \").concat(rule.url));\n }\n }\n });\n }\n\n if (opts.conversionUrls) {\n opts.conversionUrls.forEach(function (rule) {\n if (response.user.referredBy && Widgets._matchesUrl(rule)) {\n _log(\"This is a conversion URL\", rule);\n }\n });\n }\n\n if (opts.fuelTankAutofillUrls) {\n _log(\"We found a fuel tank autofill!\");\n\n opts.fuelTankAutofillUrls.forEach(function (_ref2) {\n var url = _ref2.url,\n formSelector = _ref2.formSelector;\n\n if (Widgets._matchesUrl(url)) {\n _log(\"Fuel Tank URL matches\");\n\n if (response.user.referredBy && response.user.referredBy.code) {\n var formAutofill = document.querySelector(formSelector);\n\n if (formAutofill) {\n formAutofill.value = response.user.referredBy.referredReward.fuelTankCode || \"\";\n } else {\n _log(new Error(\"Element with id/class \".concat(formSelector, \" was not found.\")));\n }\n }\n }\n });\n }\n\n if (config.engagementMedium === \"EMBED\") {\n this._renderEmbedWidget(params, params.context.container);\n } else if (config.engagementMedium === \"POPUP\") {\n widget = this._renderPopupWidget(params);\n if (displayOnLoad) widget.open();\n } else {\n _log(\"display popup on load\");\n\n widget = new PopupWidget(params);\n widget.load();\n if (displayOnLoad) widget.open();\n }\n\n return widget;\n }\n }, {\n key: \"_renderPopupWidget\",\n value: function _renderPopupWidget(params) {\n var widget = new PopupWidget(params, params.context.trigger);\n\n var frame = widget._createFrame();\n\n widget.load(frame);\n return widget;\n }\n }, {\n key: \"_renderEmbedWidget\",\n value: function _renderEmbedWidget(params, container) {\n var widget = new EmbedWidget(params);\n\n var frame = widget._createFrame();\n\n widget.load(frame);\n }\n /**\n * @hidden\n * @param {Object} error The json object containing the error details\n * @param {string} em The engagementMedium\n * @returns {void}\n */\n\n }, {\n key: \"_renderErrorWidget\",\n value: function _renderErrorWidget(props) {\n var em = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"POPUP\";\n var apiErrorCode = props.apiErrorCode,\n rsCode = props.rsCode,\n message = props.message;\n\n _log(new Error(\"\".concat(apiErrorCode, \" (\").concat(rsCode, \") \").concat(message)));\n\n var params = {\n content: \"error\",\n rsCode: rsCode,\n api: this.api,\n domain: this.domain,\n npmCdn: this.npmCdn,\n type: \"ERROR_WIDGET\",\n context: {\n type: \"error\"\n }\n };\n var widget;\n\n if (em === \"EMBED\") {\n widget = new EmbedWidget(params);\n\n var frame = widget._createFrame();\n\n widget.load(frame);\n } else if (em === \"POPUP\") {\n widget = new PopupWidget(params);\n\n var _frame = widget._createFrame();\n\n widget.load(_frame);\n }\n }\n /**\n * @hidden\n * @param {string} rule A regular expression\n * @returns {boolean} true if rule matches Url, false otherwise\n */\n\n }], [{\n key: \"_matchesUrl\",\n value: function _matchesUrl(rule) {\n // If there were no matches, null is returned.\n return window.location.href.match(new RegExp(rule)) ? true : false;\n }\n /**\n * @hidden\n * @param {Object} target Object containing the target DOM element\n * @param {Widget} widget A widget (EmbedWidget, PopupWidget)\n * @param {Object} params An object with valid parameters\n * (e.g) {email:'email', firstName:'firstName'}\n * @returns {void}\n */\n\n }, {\n key: \"_cb\",\n value: function _cb(target, widget, params) {\n var paramsObj; // If params is a string, then it should be an email\n\n if (typeof params === \"string\" || params instanceof String) {\n paramsObj = {\n email: params\n };\n } else {\n paramsObj = params;\n } // TODO: Reload doesn't exist on all widget types\n\n\n widget.reload(paramsObj);\n }\n }]);\n\n return Widgets;\n}();\n\nexport { Widgets as default };"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts","index":1,"index2":44,"size":5772,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"multi ./src/squatch.ts","issuerId":34,"issuerName":"multi ./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"../../squatch","loc":"17:0-68"},{"moduleId":34,"moduleIdentifier":"multi ./src/squatch.ts","module":"multi ./src/squatch.ts","moduleName":"multi ./src/squatch.ts","type":"single entry","userRequest":"./src/squatch.ts","loc":"squatch[0]"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module exports are unknown"],"depth":1,"source":"// @ts-check\n\n/**\n * Squatch.js is the Referral SaaSquatch javascript SDK and a one-stop shop to\n * integrate a referral program into your website or web app.\n * It can show referral widgets on any website, track users, generate unique\n * referral short links and referral codes, and more.\n *\n * @module squatch\n */\nimport debug from \"debug\";\nimport Widgets from \"./widgets/Widgets\";\nimport EmbedWidget from \"./widgets/EmbedWidget\";\nimport PopupWidget from \"./widgets/PopupWidget\"; // import IREmbedWidget from \"./widgets/IREmbedWidget\";\n// import IRPopupWidget from \"./widgets/IRPopupWidget\";\n\nimport WidgetApi from \"./api/WidgetApi\";\nimport EventsApi from \"./api/EventsApi\";\nimport asyncLoad from \"./async\";\nimport { validateConfig } from \"./utils/validate\";\nimport { _pushCookie } from \"./utils/cookieUtils\";\nimport { _getAutoConfig } from \"./utils/utmUtils\";\nimport { DeclarativeEmbedWidget, DeclarativePopupWidget } from \"./widgets/declarative/DeclarativeEmbedWidget\";\nexport * from \"./types\";\nexport * from \"./docs\"; // @ts-ignore\n// debug.disable(\"squatch-js*\");\n\n/** @hidden */\n\nvar _log = debug(\"squatch-js\");\n\nexport { Widgets, EmbedWidget, PopupWidget // IREmbedWidget,\n// IRPopupWidget,\n, DeclarativeEmbedWidget, DeclarativePopupWidget, WidgetApi };\n/** @hidden */\n\nvar _api = null;\n/** @hidden */\n\nvar _widgets = null;\n/** @hidden */\n\nvar _events = null;\n/**\n * A static instance of the {@link WidgetApi} created when you call {@link #init init}.\n *\n * Read the {@link WidgetApi} docs.\n *\n * @returns WidgetApi static instance\n */\n\nexport function api() {\n return _api;\n}\n/**\n * A static instance of the {@link Widgets} created when you call {@link #init init}.\n *\n * Read the {@link Widgets} docs.\n *\n * @returns static instance\n */\n\nexport function widgets() {\n return _widgets;\n}\n/**\n * A static instance of the {@link EventsApi} created when you call {@link #init init}.\n *\n * Read the {@link EventsApi} docs.\n *\n * @returns EventsApi static instance\n */\n\nexport function events() {\n return _events;\n}\n/**\n * Entry-point for high level API to render a widget using the instance of {@link Widgets} created when you call {@link #init init}.\n */\n\nexport function widget(widgetConfig) {\n var _widgets2;\n\n return (_widgets2 = widgets()) === null || _widgets2 === void 0 ? void 0 : _widgets2.render(widgetConfig);\n}\n/**\n * Extracts widget configuration from `_saasquatchExtra` UTM parameter. Initialises `squatch` and renders the widget as a {@link PopupWidget} via static instanct of {@link Widgets}.\n */\n\nexport function _auto(configIn) {\n var configs = _getAutoConfig(configIn);\n\n if (configs) {\n var _widgets3;\n\n var squatchConfig = configs.squatchConfig,\n widgetConfig = configs.widgetConfig;\n init(squatchConfig);\n return (_widgets3 = widgets()) === null || _widgets3 === void 0 ? void 0 : _widgets3.render(widgetConfig);\n }\n}\n/**\n * Initializes the static `squatch` global. This sets up:\n *\n * - `squatch.api()` a static instance of the {@link WidgetApi}\n * - `squatch.widgets()` a static instance of {@link Widgets}\n * - `squatch.events()` a static instance of {@link EventsApi}\n *\n * @param config Configuration details\n *\n * @example\n * squatch.init({tenantAlias:'test_basbtabstq51v'});\n */\n\nexport function init(configIn) {\n var raw = configIn;\n var config = validateConfig(raw);\n\n if (config.tenantAlias.match(\"^test\") || config.debug) {\n debug.enable(\"squatch-js*\");\n }\n\n _log(\"initializing ...\");\n\n _api = new WidgetApi(config);\n _widgets = new Widgets(config);\n _events = new EventsApi(config);\n\n _log(\"Widget API instance\", _api);\n\n _log(\"Widgets instance\", _widgets);\n\n _log(\"Events API instance\", _events);\n}\n/**\n * Squatch.js can't start safely making operations until it's \"ready\". This\n * function detects that state.\n *\n * @param fn A callback once Squatch.js is ready.\n *\n * @example\n * squatch.ready(function() {\n * console.log(\"ready!\");\n * squatch.api().upsertUser();\n * });\n */\n\nexport function ready(fn) {\n fn();\n}\n/**\n * Autofills a referral code into an element when someone has been referred.\n * Uses {@link WidgetApi.squatchReferralCookie} behind the scenes.\n *\n * @param {string} selector Element class/id\n * @returns {void}\n */\n\nexport function autofill(selector) {\n // @ts-ignore -- will throw occasionally throw a null pointer exception at runtime\n widgets().autofill(selector);\n}\n/**\n * Overrides the default function that submits the user email. If you have\n * Security enabled, the email needs to be signed before it's submitted.\n *\n * @param {function} fn Callback function for the 'submit_email' event.\n * @returns {void}\n *\n * @example\n * squatch.submitEmail(function(target, widget, email) {\n * // Sign email and generate jwt token\n * var jwt = 'token';\n * widget.reload(email, jwt);\n * });\n */\n\nexport function submitEmail(fn) {\n // @ts-ignore -- will throw occasionally throw a null pointer exception at runtime\n widgets().submitEmail(fn);\n}\n/**\n * Manually set the _saasquatch cookie as a 1st party cookie if available as a URL parameter on the current page.\n * This runs automatically immediately when squatch-js is loaded, except when window.SaaSquatchDoNotAutoDrop is true.\n * Use this function manually if you have a single page application or custom routing that causes the `_saasquatch` URL parameter to not be set when Squatch.js loads.\n \n * It is safe to run this function multiple times. If the `_saasquatch` URL parameter is invalid or missing it will not clear the 1st party cookie.\n \n *\n * @returns {void}\n *\n * @example\n * squatch.pushCookie();\n */\n\nexport function pushCookie() {\n _pushCookie();\n}\n\nif (typeof document !== \"undefined\" && !window.SaaSquatchDoNotAutoDrop) {\n pushCookie();\n}\n\nif (typeof document !== \"undefined\") asyncLoad();"},{"id":28,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/types.ts","name":"./src/types.ts","index":5,"index2":3,"size":0,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./types","loc":"24:0-24"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./types","loc":"24:0-24"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":2,"source":""},{"id":29,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/docs.ts","name":"./src/docs.ts","index":6,"index2":4,"size":186,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./docs","loc":"25:0-23"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./docs","loc":"25:0-23"}],"usedExports":["help"],"providedExports":["help"],"optimizationBailout":[],"depth":2,"source":"// @ts-check\nexport function help() {\n console.log(\"Having trouble using Squatch.js? Go to https://docs.referralsaasquatch.com/developer/ for tutorials, references and error codes.\");\n}"},{"id":30,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","name":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","index":35,"index2":34,"size":1129,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","issuerId":null,"issuerName":"./src/widgets/declarative/DeclarativeWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/wrapNativeSuper","loc":"8:0-70"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/wrapNativeSuper","loc":"250:16-32"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"var getPrototypeOf = require(\"./getPrototypeOf\");\n\nvar setPrototypeOf = require(\"./setPrototypeOf\");\n\nvar isNativeFunction = require(\"./isNativeFunction\");\n\nvar construct = require(\"./construct\");\n\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n\n return _wrapNativeSuper(Class);\n}\n\nmodule.exports = _wrapNativeSuper;"},{"id":31,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/objectWithoutProperties.js","name":"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js","index":40,"index2":36,"size":665,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","issuerId":23,"issuerName":"./src/utils/utmUtils.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":23,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","name":"./src/utils/utmUtils.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/objectWithoutProperties","loc":"2:0-86"},{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/objectWithoutProperties","loc":"47:13-37"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose\");\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i &lt; sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutProperties;"},{"id":32,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","name":"./src/api/EventsApi.ts","index":44,"index2":42,"size":2704,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./api/EventsApi","loc":"18:0-40"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./api/EventsApi","loc":"127:16-25"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":2,"source":"import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport { doPost } from \"../utils/io\";\nimport { isObject, assertProp, validateConfig } from \"../utils/validate\";\n\n/**\n *\n * The EventsApi class is a wrapper around the open endpoints of the SaaSquatch REST API.\n *\n */\nvar EventsApi = /*#__PURE__*/function () {\n /**\n * Initialize a new {@link EventsApi} instance.\n *\n * @param {ConfigOptions} config Config details\n *\n * @example &lt;caption>Browser example&lt;/caption>\n * var squatchApi = new squatch.EventsApi({tenantAlias:'test_12b5bo1b25125'});\n *\n * @example &lt;caption>Browserify/Webpack example&lt;/caption>\n * var EventsApi = require('@saasquatch/squatch-js').EventsApi;\n * var squatchApi = new EventsApi({tenantAlias:'test_12b5bo1b25125'});\n *\n * @example &lt;caption>Babel+Browserify/Webpack example&lt;/caption>\n * import {EventsApi} from '@saasquatch/squatch-js';\n * let squatchApi = new EventsApi({tenantAlias:'test_12b5bo1b25125'});\n */\n function EventsApi(config) {\n _classCallCheck(this, EventsApi);\n\n var raw = config; // Flags that we need to validate anything we use from this type\n\n var clean = validateConfig(raw);\n this.tenantAlias = clean.tenantAlias;\n this.domain = clean.domain;\n }\n /**\n * Track an event for a user\n *\n * @param params Parameters for request\n * @param options.jwt the JSON Web Token (JWT) that is used to authenticate the user\n *\n * @return An ID to confirm the event has been accepted for asynchronous processing\n */\n\n\n _createClass(EventsApi, [{\n key: \"track\",\n value: function track(params, options) {\n var raw = params;\n var rawOpts = options;\n\n var body = _validateEvent(raw);\n\n var _validateTrackOptions2 = _validateTrackOptions(rawOpts),\n jwt = _validateTrackOptions2.jwt;\n\n var ta = encodeURIComponent(this.tenantAlias);\n var userId = encodeURIComponent(body.userId);\n var accountId = encodeURIComponent(body.accountId);\n var path = \"/api/v1/\".concat(ta, \"/open/account/\").concat(accountId, \"/user/\").concat(userId, \"/events\");\n var url = this.domain + path;\n return doPost(url, JSON.stringify(body), jwt);\n }\n }]);\n\n return EventsApi;\n}();\n\nexport { EventsApi as default };\n\nfunction _validateEvent(raw) {\n if (!assertProp(raw, \"accountId\", \"events\", \"userId\")) throw new Error(\"Fields required\");\n if (!Array.isArray(raw.events)) throw new Error(\"'events' should be an array\"); // TODO: Better type checking\n\n return raw;\n}\n\nfunction _validateTrackOptions(raw) {\n if (!isObject(raw)) throw new Error(\"'options' should be an object\");\n return raw;\n}"},{"id":33,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/async.ts","name":"./src/async.ts","index":45,"index2":43,"size":580,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./async","loc":"19:0-32"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./async","loc":"204:37-46"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":2,"source":"/** @hidden */\nexport default function asyncLoad() {\n var loaded = window.squatch || null;\n var cached = window._squatch || null;\n\n if (loaded && cached) {\n var ready = cached.ready || [];\n ready.forEach(function (cb) {\n return setTimeout(function () {\n return cb();\n }, 0);\n });\n setTimeout(function () {\n return window.squatch._auto();\n }, 0); // @ts-ignore -- intetionally deletes `_squatch` to cleanup initialization\n\n window._squatch = undefined;\n\n try {\n delete window._squatch;\n } catch (e) {\n throw e;\n }\n }\n}"},{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts","index":0,"index2":45,"size":28,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":null,"issuerId":null,"issuerName":null,"issuerPath":null,"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":null,"moduleIdentifier":null,"module":null,"moduleName":null,"type":"multi entry"},{"moduleId":null,"moduleIdentifier":null,"module":null,"moduleName":null,"type":"multi entry"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":0},{"id":35,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/common.js","name":"./node_modules/debug/src/common.js","index":3,"index2":1,"size":5929,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/browser.js","issuerId":3,"issuerName":"./node_modules/debug/src/browser.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":3,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/browser.js","name":"./node_modules/debug/src/browser.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":3,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/browser.js","module":"./node_modules/debug/src/browser.js","moduleName":"./node_modules/debug/src/browser.js","type":"cjs require","userRequest":"./common","loc":"167:17-36"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"\"use strict\";\n\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\nfunction setup(env) {\n createDebug.debug = createDebug;\n createDebug.default = createDebug;\n createDebug.coerce = coerce;\n createDebug.disable = disable;\n createDebug.enable = enable;\n createDebug.enabled = enabled;\n createDebug.humanize = require('ms');\n Object.keys(env).forEach(function (key) {\n createDebug[key] = env[key];\n });\n /**\n * Active `debug` instances.\n */\n\n createDebug.instances = [];\n /**\n * The currently active debug mode names, and names to skip.\n */\n\n createDebug.names = [];\n createDebug.skips = [];\n /**\n * Map of special \"%n\" handling functions, for the debug \"format\" argument.\n *\n * Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n */\n\n createDebug.formatters = {};\n /**\n * Selects a color for a debug namespace\n * @param {String} namespace The namespace string for the for the debug instance to be colored\n * @return {Number|String} An ANSI color code for the given namespace\n * @api private\n */\n\n function selectColor(namespace) {\n var hash = 0;\n\n for (var i = 0; i &lt; namespace.length; i++) {\n hash = (hash &lt;&lt; 5) - hash + namespace.charCodeAt(i);\n hash |= 0; // Convert to 32bit integer\n }\n\n return createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n }\n\n createDebug.selectColor = selectColor;\n /**\n * Create a debugger with the given `namespace`.\n *\n * @param {String} namespace\n * @return {Function}\n * @api public\n */\n\n function createDebug(namespace) {\n var prevTime;\n\n function debug() {\n // Disabled?\n if (!debug.enabled) {\n return;\n }\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key &lt; _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var self = debug; // Set `diff` timestamp\n\n var curr = Number(new Date());\n var ms = curr - (prevTime || curr);\n self.diff = ms;\n self.prev = prevTime;\n self.curr = curr;\n prevTime = curr;\n args[0] = createDebug.coerce(args[0]);\n\n if (typeof args[0] !== 'string') {\n // Anything else let's inspect with %O\n args.unshift('%O');\n } // Apply any `formatters` transformations\n\n\n var index = 0;\n args[0] = args[0].replace(/%([a-zA-Z%])/g, function (match, format) {\n // If we encounter an escaped % then don't increase the array index\n if (match === '%%') {\n return match;\n }\n\n index++;\n var formatter = createDebug.formatters[format];\n\n if (typeof formatter === 'function') {\n var val = args[index];\n match = formatter.call(self, val); // Now we need to remove `args[index]` since it's inlined in the `format`\n\n args.splice(index, 1);\n index--;\n }\n\n return match;\n }); // Apply env-specific formatting (colors, etc.)\n\n createDebug.formatArgs.call(self, args);\n var logFn = self.log || createDebug.log;\n logFn.apply(self, args);\n }\n\n debug.namespace = namespace;\n debug.enabled = createDebug.enabled(namespace);\n debug.useColors = createDebug.useColors();\n debug.color = selectColor(namespace);\n debug.destroy = destroy;\n debug.extend = extend; // Debug.formatArgs = formatArgs;\n // debug.rawLog = rawLog;\n // env-specific initialization logic for debug instances\n\n if (typeof createDebug.init === 'function') {\n createDebug.init(debug);\n }\n\n createDebug.instances.push(debug);\n return debug;\n }\n\n function destroy() {\n var index = createDebug.instances.indexOf(this);\n\n if (index !== -1) {\n createDebug.instances.splice(index, 1);\n return true;\n }\n\n return false;\n }\n\n function extend(namespace, delimiter) {\n return createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n }\n /**\n * Enables a debug mode by namespaces. This can include modes\n * separated by a colon and wildcards.\n *\n * @param {String} namespaces\n * @api public\n */\n\n\n function enable(namespaces) {\n createDebug.save(namespaces);\n createDebug.names = [];\n createDebug.skips = [];\n var i;\n var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n var len = split.length;\n\n for (i = 0; i &lt; len; i++) {\n if (!split[i]) {\n // ignore empty strings\n continue;\n }\n\n namespaces = split[i].replace(/\\*/g, '.*?');\n\n if (namespaces[0] === '-') {\n createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n } else {\n createDebug.names.push(new RegExp('^' + namespaces + '$'));\n }\n }\n\n for (i = 0; i &lt; createDebug.instances.length; i++) {\n var instance = createDebug.instances[i];\n instance.enabled = createDebug.enabled(instance.namespace);\n }\n }\n /**\n * Disable debug output.\n *\n * @api public\n */\n\n\n function disable() {\n createDebug.enable('');\n }\n /**\n * Returns true if the given mode name is enabled, false otherwise.\n *\n * @param {String} name\n * @return {Boolean}\n * @api public\n */\n\n\n function enabled(name) {\n if (name[name.length - 1] === '*') {\n return true;\n }\n\n var i;\n var len;\n\n for (i = 0, len = createDebug.skips.length; i &lt; len; i++) {\n if (createDebug.skips[i].test(name)) {\n return false;\n }\n }\n\n for (i = 0, len = createDebug.names.length; i &lt; len; i++) {\n if (createDebug.names[i].test(name)) {\n return true;\n }\n }\n\n return false;\n }\n /**\n * Coerce `val`.\n *\n * @param {Mixed} val\n * @return {Mixed}\n * @api private\n */\n\n\n function coerce(val) {\n if (val instanceof Error) {\n return val.stack || val.message;\n }\n\n return val;\n }\n\n createDebug.enable(createDebug.load());\n return createDebug;\n}\n\nmodule.exports = setup;\n\n"},{"id":36,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/ms/index.js","name":"./node_modules/ms/index.js","index":4,"index2":0,"size":3023,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/common.js","issuerId":35,"issuerName":"./node_modules/debug/src/common.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":3,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/browser.js","name":"./node_modules/debug/src/browser.js"},{"id":35,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/common.js","name":"./node_modules/debug/src/common.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":35,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/common.js","module":"./node_modules/debug/src/common.js","moduleName":"./node_modules/debug/src/common.js","type":"cjs require","userRequest":"ms","loc":"14:25-38"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n"},{"id":37,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/regenerator-runtime/runtime.js","name":"./node_modules/regenerator-runtime/runtime.js","index":12,"index2":8,"size":24189,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/regenerator/index.js","issuerId":0,"issuerName":"./node_modules/@babel/runtime/regenerator/index.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts"},{"id":0,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/regenerator/index.js","name":"./node_modules/@babel/runtime/regenerator/index.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":0,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/regenerator/index.js","module":"./node_modules/@babel/runtime/regenerator/index.js","moduleName":"./node_modules/@babel/runtime/regenerator/index.js","type":"cjs require","userRequest":"regenerator-runtime","loc":"1:17-47"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] =\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return PromiseImpl.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise&lt;{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList),\n PromiseImpl\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i &lt; iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc &lt;= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev &lt; entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev &lt; entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev &lt; entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev &lt; entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc &lt;= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev &lt; entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc &lt;= arg &&\n arg &lt;= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n"},{"id":38,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/superPropBase.js","name":"./node_modules/@babel/runtime/helpers/superPropBase.js","index":23,"index2":19,"size":289,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/get.js","issuerId":20,"issuerName":"./node_modules/@babel/runtime/helpers/get.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"},{"id":20,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/get.js","name":"./node_modules/@babel/runtime/helpers/get.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":20,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/get.js","module":"./node_modules/@babel/runtime/helpers/get.js","moduleName":"./node_modules/@babel/runtime/helpers/get.js","type":"cjs require","userRequest":"./superPropBase","loc":"1:20-46"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"var getPrototypeOf = require(\"./getPrototypeOf\");\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}\n\nmodule.exports = _superPropBase;"},{"id":39,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/isNativeFunction.js","name":"./node_modules/@babel/runtime/helpers/isNativeFunction.js","index":36,"index2":31,"size":140,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","issuerId":30,"issuerName":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts"},{"id":30,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","name":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":30,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","module":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","moduleName":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","type":"cjs require","userRequest":"./isNativeFunction","loc":"5:23-52"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":5,"source":"function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\n\nmodule.exports = _isNativeFunction;"},{"id":40,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/construct.js","name":"./node_modules/@babel/runtime/helpers/construct.js","index":37,"index2":33,"size":659,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","issuerId":30,"issuerName":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts"},{"id":30,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","name":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":30,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","module":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","moduleName":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","type":"cjs require","userRequest":"./construct","loc":"7:16-38"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":5,"source":"var setPrototypeOf = require(\"./setPrototypeOf\");\n\nvar isNativeReflectConstruct = require(\"./isNativeReflectConstruct\");\n\nfunction _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n module.exports = _construct = Reflect.construct;\n } else {\n module.exports = _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n}\n\nmodule.exports = _construct;"},{"id":41,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js","name":"./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js","index":38,"index2":32,"size":394,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/construct.js","issuerId":40,"issuerName":"./node_modules/@babel/runtime/helpers/construct.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts"},{"id":30,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","name":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js"},{"id":40,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/construct.js","name":"./node_modules/@babel/runtime/helpers/construct.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":40,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/construct.js","module":"./node_modules/@babel/runtime/helpers/construct.js","moduleName":"./node_modules/@babel/runtime/helpers/construct.js","type":"cjs require","userRequest":"./isNativeReflectConstruct","loc":"3:31-68"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":6,"source":"function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nmodule.exports = _isNativeReflectConstruct;"},{"id":42,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","name":"./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","index":41,"index2":35,"size":384,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/objectWithoutProperties.js","issuerId":31,"issuerName":"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":23,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","name":"./src/utils/utmUtils.ts"},{"id":31,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/objectWithoutProperties.js","name":"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":31,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/objectWithoutProperties.js","module":"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js","moduleName":"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js","type":"cjs require","userRequest":"./objectWithoutPropertiesLoose","loc":"1:35-76"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i &lt; sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutPropertiesLoose;"}],"filteredModules":0,"origins":[{"module":"","moduleIdentifier":"","moduleName":"","loc":"../demo/dist/squatchjs","request":null,"reasons":[]}]},{"id":1,"rendered":true,"initial":true,"entry":true,"size":153809,"names":["squatch"],"files":["squatch.min.js"],"hash":"eac50f57cf3dd19c0e0e","siblings":[],"parents":[],"children":[],"childrenByOrder":{},"modules":[{"id":0,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/regenerator/index.js","name":"./node_modules/@babel/runtime/regenerator/index.js","index":11,"index2":9,"size":49,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","issuerId":26,"issuerName":"./src/widgets/Widgets.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"3:0-61"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"18:45-64"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"20:11-30"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"86:43-62"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"92:11-30"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"148:44-63"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"150:11-30"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"205:43-62"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"207:11-30"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"8:0-61"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"148:70-89"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"150:15-34"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"8:0-61"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"78:50-69"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"82:15-34"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"117:80-99"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"120:25-44"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"10:0-61"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"123:52-71"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"126:17-36"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"175:67-86"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"178:15-34"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"4:0-61"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"116:65-84"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"118:15-34"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"10:0-61"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"107:69-88"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"111:15-34"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"173:63-82"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"174:15-34"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"4:0-61"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"76:56-75"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"78:15-34"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"146:52-71"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"148:15-34"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"module.exports = require(\"regenerator-runtime\");\n"},{"id":1,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/validate.ts","name":"./src/utils/validate.ts","index":14,"index2":12,"size":2082,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"../utils/validate","loc":"13:0-117"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/validate","loc":"43:16-30"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/validate","loc":"68:18-38"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/validate","loc":"110:18-44"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/validate","loc":"119:105-119"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"../utils/validate","loc":"8:0-45"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"55:11-19"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony side effect evaluation","userRequest":"../utils/validate","loc":"5:0-45"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"27:8-16"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"../../utils/validate","loc":"20:0-71"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/validate","loc":"46:39-53"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/validate","loc":"47:16-31"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/validate","loc":"61:39-53"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/validate","loc":"62:16-31"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/validate","loc":"78:105-119"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/validate","loc":"81:105-119"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"../utils/validate","loc":"11:0-101"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"45:17-31"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"83:24-44"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"153:24-50"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./utils/validate","loc":"20:0-50"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./utils/validate","loc":"117:15-29"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony side effect evaluation","userRequest":"../utils/validate","loc":"4:0-73"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"33:16-30"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"73:7-17"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"80:7-15"}],"usedExports":["DEFAULT_DOMAIN","DEFAULT_NPM_CDN","assertProp","hasProps","isObject","validateConfig","validateLocale","validatePasswordlessConfig","validateWidgetConfig"],"providedExports":["DEFAULT_DOMAIN","DEFAULT_NPM_CDN","hasProps","isObject","assertProp","validateConfig","validateLocale","validateWidgetConfig","validatePasswordlessConfig"],"optimizationBailout":[],"depth":2,"source":"import _typeof from \"@babel/runtime/helpers/typeof\";\nexport var DEFAULT_DOMAIN = \"https://app.referralsaasquatch.com\";\nexport var DEFAULT_NPM_CDN = \"https://fast.ssqt.io/npm\";\nexport function hasProps(object, props) {\n if (!isObject(object)) return false;\n var keys = Object.keys(object);\n if (!Array.isArray(props)) return object.hasOwnProperty(props);\n var hasKeys = props.reduce(function (acc, cur) {\n return acc && keys.indexOf(cur) >= 0;\n }, true);\n return hasKeys;\n}\nexport function isObject(x) {\n return _typeof(x) === \"object\";\n}\nexport function assertProp(object) {\n for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key &lt; _len; _key++) {\n props[_key - 1] = arguments[_key];\n }\n\n props.forEach(function (p) {\n if (!hasProps(object, props)) throw new Error(p + \" is required\");\n });\n return true;\n}\nexport function validateConfig(raw) {\n if (!isObject(raw)) throw new Error(\"config must be an object\");\n if (!hasProps(raw, \"tenantAlias\") || typeof raw.tenantAlias !== \"string\") throw new Error(\"tenantAlias not provided\");\n var tenantAlias = raw.tenantAlias;\n var domain = hasProps(raw, \"domain\") && typeof raw.domain === \"string\" && raw.domain || DEFAULT_DOMAIN;\n var debug = hasProps(raw, \"debug\") && typeof raw.debug === \"boolean\" && raw.debug || false;\n var npmCdn = hasProps(raw, \"npmCdn\") && typeof raw.npmCdn === \"string\" && raw.npmCdn || DEFAULT_NPM_CDN;\n return {\n tenantAlias: tenantAlias,\n domain: domain,\n debug: debug,\n npmCdn: npmCdn\n };\n}\nexport function validateLocale(locale) {\n if (locale && /^[a-z]{2}_(?:[A-Z]{2}|[0-9]{3})$/.test(locale)) {\n return locale;\n }\n}\nexport function validateWidgetConfig(raw) {\n if (!isObject(raw)) throw new Error(\"Widget properties must be an object\");\n if (!assertProp(raw, \"user\")) throw new Error(\"Required properties missing.\"); // TODO: This should be better type checked\n\n return raw;\n}\nexport function validatePasswordlessConfig(raw) {\n if (!isObject(raw)) throw new Error(\"Widget properties must be an object\");\n return raw;\n}"},{"id":2,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/asyncToGenerator.js","name":"./node_modules/@babel/runtime/helpers/asyncToGenerator.js","index":8,"index2":5,"size":809,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","issuerId":26,"issuerName":"./src/widgets/Widgets.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"2:0-72"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"18:13-30"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"86:11-28"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"148:12-29"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"205:11-28"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"1:0-72"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"148:38-55"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"1:0-72"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"78:18-35"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"117:48-65"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"2:0-72"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"123:20-37"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"175:35-52"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"1:0-72"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"116:33-50"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"1:0-72"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"107:37-54"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"173:31-48"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"1:0-72"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"76:24-41"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"146:20-37"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;"},{"id":3,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/browser.js","name":"./node_modules/debug/src/browser.js","index":2,"index2":2,"size":6285,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"9:0-26"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"debug","loc":"11:11-16"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"21:0-26"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"debug","loc":"25:11-16"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"8:0-26"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony import specifier","userRequest":"debug","loc":"12:11-16"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"21:0-26"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"debug","loc":"25:11-16"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"6:0-26"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"debug","loc":"11:11-16"},{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"8:0-26"},{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony import specifier","userRequest":"debug","loc":"12:11-16"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"debug","loc":"1:0-26"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"debug","loc":"4:11-16"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"5:0-26"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"debug","loc":"13:11-16"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"11:0-26"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"debug","loc":"30:11-16"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"debug","loc":"120:4-9"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":2,"source":"\"use strict\";\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\n/**\n * Colors.\n */\n\nexports.colors = ['#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC', '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF', '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC', '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF', '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC', '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033', '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366', '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933', '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC', '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF', '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33'];\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n// eslint-disable-next-line complexity\n\nfunction useColors() {\n // NB: In an Electron preload script, document will be defined but not fully\n // initialized. Since we know we're in Chrome, we'll just detect this case\n // explicitly\n if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n return true;\n } // Internet Explorer and Edge do not support colors.\n\n\n if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n return false;\n } // Is webkit? http://stackoverflow.com/a/16459606/376773\n // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\n\n return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773\n typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?\n // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker\n typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/);\n}\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\n\nfunction formatArgs(args) {\n args[0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? ' %c' : ' ') + args[0] + (this.useColors ? '%c ' : ' ') + '+' + module.exports.humanize(this.diff);\n\n if (!this.useColors) {\n return;\n }\n\n var c = 'color: ' + this.color;\n args.splice(1, 0, c, 'color: inherit'); // The final \"%c\" is somewhat tricky, because there could be other\n // arguments passed either before or after the %c, so we need to\n // figure out the correct index to insert the CSS into\n\n var index = 0;\n var lastC = 0;\n args[0].replace(/%[a-zA-Z%]/g, function (match) {\n if (match === '%%') {\n return;\n }\n\n index++;\n\n if (match === '%c') {\n // We only are interested in the *last* %c\n // (the user may have provided their own)\n lastC = index;\n }\n });\n args.splice(lastC, 0, c);\n}\n/**\n * Invokes `console.log()` when available.\n * No-op when `console.log` is not a \"function\".\n *\n * @api public\n */\n\n\nfunction log() {\n var _console;\n\n // This hackery is required for IE8/9, where\n // the `console.log` function doesn't have 'apply'\n return (typeof console === \"undefined\" ? \"undefined\" : _typeof(console)) === 'object' && console.log && (_console = console).log.apply(_console, arguments);\n}\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\n\nfunction save(namespaces) {\n try {\n if (namespaces) {\n exports.storage.setItem('debug', namespaces);\n } else {\n exports.storage.removeItem('debug');\n }\n } catch (error) {// Swallow\n // XXX (@Qix-) should we be logging these?\n }\n}\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\n\nfunction load() {\n var r;\n\n try {\n r = exports.storage.getItem('debug');\n } catch (error) {} // Swallow\n // XXX (@Qix-) should we be logging these?\n // If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\n\n if (!r && typeof process !== 'undefined' && 'env' in process) {\n r = process.env.DEBUG;\n }\n\n return r;\n}\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\n\nfunction localstorage() {\n try {\n // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n // The Browser also has localStorage in the global context.\n return localStorage;\n } catch (error) {// Swallow\n // XXX (@Qix-) should we be logging these?\n }\n}\n\nmodule.exports = require('./common')(exports);\nvar formatters = module.exports.formatters;\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n try {\n return JSON.stringify(v);\n } catch (error) {\n return '[UnexpectedJSONParseError]: ' + error.message;\n }\n};\n\n"},{"id":4,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/classCallCheck.js","name":"./node_modules/@babel/runtime/helpers/classCallCheck.js","index":9,"index2":6,"size":196,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","issuerId":26,"issuerName":"./src/widgets/Widgets.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"2:0-68"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"46:4-19"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"2:0-68"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"40:4-19"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"3:0-68"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"39:4-19"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"2:0-68"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"23:4-19"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"1:0-68"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"23:4-19"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"1:0-68"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"2:0-68"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"20:4-19"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"31:4-19"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"68:4-19"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"2:0-68"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"42:4-19"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"1:0-68"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"29:4-19"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;"},{"id":5,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/createClass.js","name":"./node_modules/@babel/runtime/helpers/createClass.js","index":10,"index2":7,"size":596,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","issuerId":26,"issuerName":"./src/widgets/Widgets.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"3:0-62"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"63:2-14"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"3:0-62"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"45:2-14"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"4:0-62"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"64:2-14"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"3:0-62"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"38:2-14"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"2:0-62"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"34:2-14"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"2:0-62"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"3:0-62"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"28:2-14"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"73:2-14"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"75:2-14"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"3:0-62"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"73:2-14"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"2:0-62"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"47:2-14"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"function _defineProperties(target, props) {\n for (var i = 0; i &lt; props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;"},{"id":6,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/getPrototypeOf.js","name":"./node_modules/@babel/runtime/helpers/getPrototypeOf.js","index":24,"index2":18,"size":267,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","issuerId":16,"issuerName":"./src/widgets/EmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"7:0-68"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"16:147-162"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"16:230-245"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"244:18-33"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"7:0-68"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"16:147-162"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"16:230-245"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"241:18-33"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"5:0-68"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"7:0-68"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"7:147-162"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"7:230-245"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"12:147-162"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"12:230-245"},{"moduleId":30,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","module":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","moduleName":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","type":"cjs require","userRequest":"./getPrototypeOf","loc":"1:21-48"},{"moduleId":38,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/superPropBase.js","module":"./node_modules/@babel/runtime/helpers/superPropBase.js","moduleName":"./node_modules/@babel/runtime/helpers/superPropBase.js","type":"cjs require","userRequest":"./getPrototypeOf","loc":"1:21-48"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;"},{"id":7,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/defineProperty.js","name":"./node_modules/@babel/runtime/helpers/defineProperty.js","index":17,"index2":13,"size":289,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","issuerId":null,"issuerName":"./src/api/WidgetApi.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","name":"./src/api/WidgetApi.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/defineProperty","loc":"1:0-68"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"7:201-216"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/defineProperty","loc":"1:0-68"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"6:201-216"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"24:11-26"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/defineProperty","loc":"1:0-68"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"8:201-216"},{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/defineProperty","loc":"1:0-68"},{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"6:201-216"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/defineProperty","loc":"9:0-68"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"35:4-19"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"52:4-19"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;"},{"id":8,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/inherits.js","name":"./node_modules/@babel/runtime/helpers/inherits.js","index":25,"index2":22,"size":505,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","issuerId":16,"issuerName":"./src/widgets/EmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/inherits","loc":"5:0-56"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/inherits","loc":"37:2-11"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/inherits","loc":"5:0-56"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/inherits","loc":"35:2-11"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/inherits","loc":"3:0-56"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/inherits","loc":"5:0-56"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/inherits","loc":"13:2-11"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/inherits","loc":"23:2-11"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/inherits","loc":"61:2-11"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;"},{"id":9,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","name":"./src/utils/io.ts","index":19,"index2":15,"size":7779,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","issuerId":32,"issuerName":"./src/api/EventsApi.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":32,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","name":"./src/api/EventsApi.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"../utils/io","loc":"12:0-52"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/io","loc":"88:13-18"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/io","loc":"132:25-32"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/io","loc":"187:23-28"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony side effect evaluation","userRequest":"../utils/io","loc":"4:0-37"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony import specifier","userRequest":"../utils/io","loc":"45:13-19"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony import specifier","userRequest":"../utils/io","loc":"57:13-19"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony side effect evaluation","userRequest":"../utils/io","loc":"3:0-37"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony import specifier","userRequest":"../utils/io","loc":"63:13-19"}],"usedExports":["doGet","doPost","doPut","doQuery"],"providedExports":["doQuery","doGet","doPost","doPut"],"optimizationBailout":[],"depth":3,"source":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i &lt; arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport debug from \"debug\";\n\nvar _log = debug(\"squatch-js:io\");\n\nexport function doQuery(_x, _x2, _x3, _x4) {\n return _doQuery.apply(this, arguments);\n}\n\nfunction _doQuery() {\n _doQuery = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(url, query, variables, token) {\n var headers, res;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n headers = _objectSpread(_objectSpread({\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n }, token ? {\n Authorization: \"Bearer \".concat(token)\n } : {}), {}, {\n \"X-SaaSquatch-Referrer\": window ? window.location.href : \"\"\n });\n _context.prev = 1;\n _context.next = 4;\n return fetch(url, {\n method: \"POST\",\n body: JSON.stringify({\n query: query,\n variables: variables\n }),\n headers: headers\n });\n\n case 4:\n res = _context.sent;\n\n if (res.ok) {\n _context.next = 11;\n break;\n }\n\n _context.t0 = Error;\n _context.next = 9;\n return res.text();\n\n case 9:\n _context.t1 = _context.sent;\n throw new _context.t0(_context.t1);\n\n case 11:\n _context.next = 13;\n return res.json();\n\n case 13:\n return _context.abrupt(\"return\", _context.sent);\n\n case 16:\n _context.prev = 16;\n _context.t2 = _context[\"catch\"](1);\n throw _context.t2;\n\n case 19:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[1, 16]]);\n }));\n return _doQuery.apply(this, arguments);\n}\n\nexport function doGet(_x5) {\n return _doGet.apply(this, arguments);\n}\n\nfunction _doGet() {\n _doGet = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(url) {\n var jwt,\n headers,\n res,\n reply,\n _args2 = arguments;\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n jwt = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : \"\";\n headers = {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n };\n if (jwt) headers[\"X-SaaSquatch-User-Token\"] = jwt;\n _context2.prev = 3;\n _context2.next = 6;\n return fetch(url, {\n method: \"GET\",\n credentials: \"include\",\n headers: headers\n });\n\n case 6:\n res = _context2.sent;\n _context2.next = 9;\n return res.text();\n\n case 9:\n reply = _context2.sent;\n\n if (res.ok) {\n _context2.next = 12;\n break;\n }\n\n throw new Error(reply);\n\n case 12:\n return _context2.abrupt(\"return\", reply ? JSON.parse(reply) : reply);\n\n case 15:\n _context2.prev = 15;\n _context2.t0 = _context2[\"catch\"](3);\n throw _context2.t0;\n\n case 18:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[3, 15]]);\n }));\n return _doGet.apply(this, arguments);\n}\n\nexport function doPost(_x6, _x7, _x8) {\n return _doPost.apply(this, arguments);\n}\n\nfunction _doPost() {\n _doPost = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(url, data, jwt) {\n var headers, res, reply;\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n headers = {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n };\n if (jwt) headers[\"X-SaaSquatch-User-Token\"] = jwt;\n _context3.prev = 2;\n _context3.next = 5;\n return fetch(url, {\n method: \"POST\",\n body: data,\n headers: headers\n });\n\n case 5:\n res = _context3.sent;\n _context3.next = 8;\n return res.text();\n\n case 8:\n reply = _context3.sent;\n\n if (res.ok) {\n _context3.next = 11;\n break;\n }\n\n throw new Error(reply);\n\n case 11:\n return _context3.abrupt(\"return\", reply ? JSON.parse(reply) : reply);\n\n case 14:\n _context3.prev = 14;\n _context3.t0 = _context3[\"catch\"](2);\n throw _context3.t0;\n\n case 17:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, null, [[2, 14]]);\n }));\n return _doPost.apply(this, arguments);\n}\n\nexport function doPut(_x9, _x10, _x11) {\n return _doPut.apply(this, arguments);\n}\n\nfunction _doPut() {\n _doPut = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(url, data, jwt) {\n var headers, res, reply;\n return _regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n headers = {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\",\n \"X-SaaSquatch-Referrer\": window ? window.location.href : \"\"\n };\n if (jwt) headers[\"X-SaaSquatch-User-Token\"] = jwt;\n _context4.prev = 2;\n _context4.next = 5;\n return fetch(url, {\n headers: headers,\n method: \"PUT\",\n credentials: \"include\",\n body: data\n });\n\n case 5:\n res = _context4.sent;\n _context4.next = 8;\n return res.text();\n\n case 8:\n reply = _context4.sent;\n\n if (res.ok) {\n _context4.next = 11;\n break;\n }\n\n throw new Error(reply);\n\n case 11:\n return _context4.abrupt(\"return\", reply ? JSON.parse(reply) : reply);\n\n case 14:\n _context4.prev = 14;\n _context4.t0 = _context4[\"catch\"](2);\n throw _context4.t0;\n\n case 17:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, null, [[2, 14]]);\n }));\n return _doPut.apply(this, arguments);\n}"},{"id":10,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","name":"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","index":27,"index2":24,"size":343,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","issuerId":16,"issuerName":"./src/widgets/EmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"6:0-90"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"16:379-405"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"6:0-90"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"16:379-405"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"4:0-90"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"6:0-90"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"7:379-405"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"12:379-405"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"var _typeof = require(\"../helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;"},{"id":11,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","name":"./src/widgets/PopupWidget.ts","index":21,"index2":28,"size":10415,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"./PopupWidget","loc":"10:0-40"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"./PopupWidget","loc":"333:21-32"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"./PopupWidget","loc":"343:23-34"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"./PopupWidget","loc":"396:21-32"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./widgets/PopupWidget","loc":"14:0-48"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/PopupWidget","loc":"32:0-34:62"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","explanation":"(skipped side-effect-free modules)","userRequest":"../../squatch","loc":"37:58-69"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","explanation":"(skipped side-effect-free modules)","userRequest":"../../squatch","loc":"53:58-69"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":2,"source":"import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _get from \"@babel/runtime/helpers/get\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i &lt; len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n// @ts-check\nimport debug from \"debug\";\nimport Widget from \"./Widget\";\nimport { domready } from \"../utils/domready\";\n\nvar _log = debug(\"squatch-js:POPUPwidget\");\n\nvar popupId = 0;\n/**\n * The PopupWidget is used to display popups (also known as \"Modals\").\n * Popups widgets are rendered on top of other elements in a page.\n *\n * To create a PopupWidget use {@link Widgets}\n *\n */\n\nvar PopupWidget = /*#__PURE__*/function (_Widget) {\n _inherits(PopupWidget, _Widget);\n\n var _super = _createSuper(PopupWidget);\n\n function PopupWidget(params) {\n var _this;\n\n var trigger = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \".squatchpop\";\n\n _classCallCheck(this, PopupWidget);\n\n _this = _super.call(this, params);\n _this.trigger = trigger;\n _this.containerElement = _this.container && typeof _this.container !== \"string\" ? _this.container : document.body;\n\n if (_this.container) {\n _this.id = \"squatchModal\";\n } else {\n _this.id = popupId === 0 ? \"squatchModal\" : \"squatchModal__\".concat(popupId);\n popupId = popupId + 1;\n }\n\n document.head.insertAdjacentHTML(\"beforeend\", \"&lt;style>#\".concat(_this.id, \"::-webkit-scrollbar { display: none; }&lt;/style>\"));\n return _this;\n }\n\n _createClass(PopupWidget, [{\n key: \"_initialiseCTA\",\n value: function _initialiseCTA(frame) {\n var _this2 = this;\n\n var triggerElement;\n\n try {\n triggerElement\n /* HTMLButton */\n = document.querySelector(this.trigger);\n if (this.trigger && !triggerElement) _log(\"No element found with trigger selector\", this.trigger);\n } catch (_unused) {\n _log(\"Not a valid selector\", this.trigger);\n } // Trigger is optional\n\n\n if (triggerElement) {\n triggerElement.onclick = function () {\n _this2.open(frame);\n };\n } // If widget is loaded with CTA, look for a 'squatchpop' element to use\n // that element as a trigger as well.\n\n\n var triggerWhenCTA = document.querySelector(\".squatchpop\");\n\n if (this.trigger === \"#cta\" && triggerWhenCTA) {\n triggerWhenCTA.onclick = function () {\n _this2.open(frame);\n };\n }\n }\n }, {\n key: \"_createPopupDialog\",\n value: function _createPopupDialog() {\n var dialog = document.createElement(\"dialog\");\n dialog.id = this.id;\n dialog.setAttribute(\"style\", \"width: 100%; max-width: 500px; border: none; padding: 0;\");\n\n var onClick = function onClick(e) {\n if (e.target === dialog) dialog.close();\n };\n\n dialog.addEventListener(\"click\", onClick);\n return dialog;\n }\n }, {\n key: \"load\",\n value: function load(frame) {\n this._initialiseCTA(frame);\n\n var dialog = this._createPopupDialog();\n\n dialog.appendChild(frame);\n this.containerElement.appendChild(dialog);\n var contentWindow = frame.contentWindow;\n\n if (!contentWindow) {\n throw new Error(\"Frame needs a content window\");\n }\n\n var frameDoc = contentWindow.document;\n frameDoc.open();\n frameDoc.write(this.content);\n frameDoc.write(\"&lt;script src=\\\"\".concat(this.npmCdn, \"/resize-observer-polyfill@1.5.x\\\">&lt;/script>\"));\n frameDoc.close();\n\n _log(\"Popup template loaded into iframe\");\n\n this._setupResizeHandler(frame, dialog);\n }\n }, {\n key: \"_setupResizeHandler\",\n value: function _setupResizeHandler(frame, popupdiv) {\n var _this3 = this;\n\n var contentWindow = frame.contentWindow;\n\n if (!contentWindow) {\n throw new Error(\"Frame needs a content window\");\n }\n\n var frameDoc = contentWindow.document; // Adjust frame height when size of body changes\n\n domready(frameDoc, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var ro;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n frameDoc.body.style.overflowY = \"hidden\";\n frame.height = \"\".concat(frameDoc.body.offsetHeight, \"px\"); // Adjust frame height when size of body changes\n\n ro = new contentWindow[\"ResizeObserver\"](function (entries) {\n var _iterator = _createForOfIteratorHelper(entries),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var entry = _step.value;\n var _entry$contentRect = entry.contentRect,\n top = _entry$contentRect.top,\n bottom = _entry$contentRect.bottom;\n var computedHeight = bottom + top;\n frame.height = computedHeight + \"\"; // Don't let anything else set the height of this element\n\n entry.target.style = \"\";\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n });\n _context.t0 = ro;\n _context.next = 6;\n return _this3._findInnerContainer(frame);\n\n case 6:\n _context.t1 = _context.sent;\n\n _context.t0.observe.call(_context.t0, _context.t1);\n\n case 8:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n })));\n }\n }, {\n key: \"open\",\n value: function open(frame) {\n var _this4 = this;\n\n var dialog = this.containerElement.querySelector(\"#\".concat(this.id));\n if (!dialog) throw new Error(\"Could not determine container div\");\n dialog.showModal();\n var contentWindow = frame.contentWindow;\n if (!contentWindow) throw new Error(\"Squatch.js has an empty iframe\");\n var frameDoc = contentWindow.document; // Adjust frame height when size of body changes\n\n domready(frameDoc, function () {\n var _frame$contentDocumen;\n\n var _sqh = contentWindow.squatch || contentWindow.widgetIdent; // const ctaElement = frameDoc.getElementById(\"cta\");\n // if (ctaElement) {\n // //@ts-ignore -- will occasionally throw a null pointer exception at runtime\n // ctaElement.parentNode.removeChild(ctaElement);\n // }\n\n\n (_frame$contentDocumen = frame.contentDocument) === null || _frame$contentDocumen === void 0 ? void 0 : _frame$contentDocumen.dispatchEvent(new CustomEvent(\"sq:refresh\"));\n\n _this4._loadEvent(_sqh);\n\n _log(\"Popup opened\");\n });\n }\n }, {\n key: \"close\",\n value: function close() {\n var dialog = document.getElementById(this.id);\n if (!dialog) throw new Error(\"Could not determine container div\");\n dialog.close();\n\n _log(\"Popup closed\");\n }\n }, {\n key: \"_clickedOutside\",\n value: function _clickedOutside(_ref2) {\n var target = _ref2.target;\n }\n }, {\n key: \"_error\",\n value: function _error(rs) {\n var mode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"modal\";\n var style = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"\";\n var _style = \"body { margin: 0; } .modal { box-shadow: none; border: 0; }\";\n return _get(_getPrototypeOf(PopupWidget.prototype), \"_error\", this).call(this, rs, mode, style || _style);\n }\n }]);\n\n return PopupWidget;\n}(Widget);\n\nexport { PopupWidget as default };"},{"id":12,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","name":"./src/utils/cookieUtils.ts","index":42,"index2":37,"size":3982,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony side effect evaluation","userRequest":"./cookieUtils","loc":"9:0-42"},{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony import specifier","userRequest":"./cookieUtils","loc":"28:21-30"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"./cookieUtils","loc":"2:0-42"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"./cookieUtils","loc":"12:18-27"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./utils/cookieUtils","loc":"21:0-50"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./utils/cookieUtils","loc":"197:2-13"}],"usedExports":["_pushCookie","b64decode"],"providedExports":["b64decode","_pushCookie"],"optimizationBailout":[],"depth":2,"source":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _typeof from \"@babel/runtime/helpers/typeof\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i &lt; arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport debug from \"debug\";\nimport Cookies from \"js-cookie\";\n/** @hidden */\n\nvar _log = debug(\"squatch-js\");\n\nvar isObject = function isObject(item) {\n return _typeof(item) === \"object\" && !Array.isArray(item);\n};\n\nvar deepMerge = function deepMerge(target, source) {\n var isDeep = function isDeep(prop) {\n return isObject(source[prop]) && target.hasOwnProperty(prop) && isObject(target[prop]);\n };\n\n var replaced = Object.getOwnPropertyNames(source).map(function (prop) {\n return _defineProperty({}, prop, isDeep(prop) ? deepMerge(target[prop], source[prop]) : source[prop]);\n }).reduce(function (a, b) {\n return _objectSpread(_objectSpread({}, a), b);\n }, {});\n return _objectSpread(_objectSpread({}, target), replaced);\n};\n\nexport function b64decode(input) {\n return atob(input.replace(/_/g, \"/\").replace(/-/g, \"+\"));\n}\n\nfunction b64encode(input) {\n return btoa(input).replace(/=/g, \"\").replace(/\\+/g, \"-\").replace(/\\//g, \"_\");\n} // https://stackoverflow.com/a/11319865\n\n\nfunction getTopDomain() {\n var i,\n h,\n weird_cookie = \"weird_get_top_level_domain=cookie\",\n hostname = document.location.hostname.split(\".\");\n\n for (i = hostname.length - 1; i >= 0; i--) {\n h = hostname.slice(i).join(\".\");\n document.cookie = weird_cookie + \";domain=.\" + h + \";\";\n\n if (document.cookie.indexOf(weird_cookie) > -1) {\n // We were able to store a cookie! This must be it\n document.cookie = weird_cookie.split(\"=\")[0] + \"=;domain=.\" + h + \";expires=Thu, 01 Jan 1970 00:00:01 GMT;\";\n return h;\n }\n }\n}\n\nexport function _pushCookie() {\n var queryString = window.location.search;\n var urlParams = new URLSearchParams(queryString);\n var refParam = urlParams.get(\"_saasquatch\") || \"\"; // do nothing if no params\n\n if (refParam) {\n var paramsJSON = \"\",\n existingCookie = \"\",\n reEncodedCookie = \"\";\n\n try {\n paramsJSON = JSON.parse(b64decode(refParam));\n } catch (error) {\n _log(\"Unable to decode params\", error); // don't merge invalid params\n\n\n return;\n }\n\n try {\n existingCookie = JSON.parse(b64decode(Cookies.get(\"_saasquatch\")));\n\n _log(\"existing cookie\", existingCookie);\n } catch (error) {\n _log(\"Unable to retrieve cookie\", error);\n } // don't merge if there's no existing object\n\n\n try {\n var domain = getTopDomain();\n\n _log(\"domain retrieved:\", domain);\n\n if (existingCookie) {\n var newCookie = deepMerge(existingCookie, paramsJSON);\n reEncodedCookie = b64encode(JSON.stringify(newCookie));\n\n _log(\"cookie to store:\", newCookie);\n } else {\n reEncodedCookie = b64encode(JSON.stringify(paramsJSON));\n\n _log(\"cookie to store:\", paramsJSON);\n }\n\n Cookies.set(\"_saasquatch\", reEncodedCookie, {\n expires: 365,\n secure: false,\n sameSite: \"Lax\",\n domain: domain,\n path: \"/\"\n });\n } catch (error) {\n _log(\"Unable to set cookie\", error);\n }\n }\n}"},{"id":13,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/js-cookie/src/js.cookie.js","name":"./node_modules/js-cookie/src/js.cookie.js","index":18,"index2":14,"size":3883,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","issuerId":null,"issuerName":"./src/api/WidgetApi.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","name":"./src/api/WidgetApi.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony side effect evaluation","userRequest":"js-cookie","loc":"9:0-32"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony import specifier","userRequest":"js-cookie","loc":"78:44-51"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony import specifier","userRequest":"js-cookie","loc":"102:6-13"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"js-cookie","loc":"11:0-32"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"js-cookie","loc":"86:20-27"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"js-cookie","loc":"183:30-37"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"/*!\n * JavaScript Cookie v2.2.1\n * https://github.com/js-cookie/js-cookie\n *\n * Copyright 2006, 2015 Klaus Hartl & Fagner Brack\n * Released under the MIT license\n */\n;(function (factory) {\n\tvar registeredInModuleLoader;\n\tif (typeof define === 'function' && define.amd) {\n\t\tdefine(factory);\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (typeof exports === 'object') {\n\t\tmodule.exports = factory();\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (!registeredInModuleLoader) {\n\t\tvar OldCookies = window.Cookies;\n\t\tvar api = window.Cookies = factory();\n\t\tapi.noConflict = function () {\n\t\t\twindow.Cookies = OldCookies;\n\t\t\treturn api;\n\t\t};\n\t}\n}(function () {\n\tfunction extend () {\n\t\tvar i = 0;\n\t\tvar result = {};\n\t\tfor (; i &lt; arguments.length; i++) {\n\t\t\tvar attributes = arguments[ i ];\n\t\t\tfor (var key in attributes) {\n\t\t\t\tresult[key] = attributes[key];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n\tfunction decode (s) {\n\t\treturn s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);\n\t}\n\n\tfunction init (converter) {\n\t\tfunction api() {}\n\n\t\tfunction set (key, value, attributes) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tattributes = extend({\n\t\t\t\tpath: '/'\n\t\t\t}, api.defaults, attributes);\n\n\t\t\tif (typeof attributes.expires === 'number') {\n\t\t\t\tattributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);\n\t\t\t}\n\n\t\t\t// We're using \"expires\" because \"max-age\" is not supported by IE\n\t\t\tattributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';\n\n\t\t\ttry {\n\t\t\t\tvar result = JSON.stringify(value);\n\t\t\t\tif (/^[\\{\\[]/.test(result)) {\n\t\t\t\t\tvalue = result;\n\t\t\t\t}\n\t\t\t} catch (e) {}\n\n\t\t\tvalue = converter.write ?\n\t\t\t\tconverter.write(value, key) :\n\t\t\t\tencodeURIComponent(String(value))\n\t\t\t\t\t.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);\n\n\t\t\tkey = encodeURIComponent(String(key))\n\t\t\t\t.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)\n\t\t\t\t.replace(/[\\(\\)]/g, escape);\n\n\t\t\tvar stringifiedAttributes = '';\n\t\t\tfor (var attributeName in attributes) {\n\t\t\t\tif (!attributes[attributeName]) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tstringifiedAttributes += '; ' + attributeName;\n\t\t\t\tif (attributes[attributeName] === true) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Considers RFC 6265 section 5.2:\n\t\t\t\t// ...\n\t\t\t\t// 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n\t\t\t\t// character:\n\t\t\t\t// Consume the characters of the unparsed-attributes up to,\n\t\t\t\t// not including, the first %x3B (\";\") character.\n\t\t\t\t// ...\n\t\t\t\tstringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n\t\t\t}\n\n\t\t\treturn (document.cookie = key + '=' + value + stringifiedAttributes);\n\t\t}\n\n\t\tfunction get (key, json) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar jar = {};\n\t\t\t// To prevent the for loop in the first place assign an empty array\n\t\t\t// in case there are no cookies at all.\n\t\t\tvar cookies = document.cookie ? document.cookie.split('; ') : [];\n\t\t\tvar i = 0;\n\n\t\t\tfor (; i &lt; cookies.length; i++) {\n\t\t\t\tvar parts = cookies[i].split('=');\n\t\t\t\tvar cookie = parts.slice(1).join('=');\n\n\t\t\t\tif (!json && cookie.charAt(0) === '\"') {\n\t\t\t\t\tcookie = cookie.slice(1, -1);\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tvar name = decode(parts[0]);\n\t\t\t\t\tcookie = (converter.read || converter)(cookie, name) ||\n\t\t\t\t\t\tdecode(cookie);\n\n\t\t\t\t\tif (json) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcookie = JSON.parse(cookie);\n\t\t\t\t\t\t} catch (e) {}\n\t\t\t\t\t}\n\n\t\t\t\t\tjar[name] = cookie;\n\n\t\t\t\t\tif (key === name) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (e) {}\n\t\t\t}\n\n\t\t\treturn key ? jar[key] : jar;\n\t\t}\n\n\t\tapi.set = set;\n\t\tapi.get = function (key) {\n\t\t\treturn get(key, false /* read as raw */);\n\t\t};\n\t\tapi.getJSON = function (key) {\n\t\t\treturn get(key, true /* read as json */);\n\t\t};\n\t\tapi.remove = function (key, attributes) {\n\t\t\tset(key, '', extend(attributes, {\n\t\t\t\texpires: -1\n\t\t\t}));\n\t\t};\n\n\t\tapi.defaults = {};\n\n\t\tapi.withConverter = init;\n\n\t\treturn api;\n\t}\n\n\treturn init(function () {});\n}));\n"},{"id":14,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/assertThisInitialized.js","name":"./node_modules/@babel/runtime/helpers/assertThisInitialized.js","index":28,"index2":23,"size":219,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","issuerId":null,"issuerName":"./src/widgets/declarative/DeclarativeWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":10,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","module":"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","moduleName":"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","type":"cjs require","userRequest":"./assertThisInitialized","loc":"3:28-62"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/assertThisInitialized","loc":"4:0-82"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/assertThisInitialized","loc":"35:20-42"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/assertThisInitialized","loc":"48:38-60"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/assertThisInitialized","loc":"52:20-42"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/assertThisInitialized","loc":"63:38-60"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;"},{"id":15,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/typeof.js","name":"./node_modules/@babel/runtime/helpers/typeof.js","index":15,"index2":11,"size":479,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","issuerId":12,"issuerName":"./src/utils/cookieUtils.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":12,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","name":"./src/utils/cookieUtils.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":1,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/validate.ts","module":"./src/utils/validate.ts","moduleName":"./src/utils/validate.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/typeof","loc":"1:0-52"},{"moduleId":1,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/validate.ts","module":"./src/utils/validate.ts","moduleName":"./src/utils/validate.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/typeof","loc":"14:9-16"},{"moduleId":10,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","module":"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","moduleName":"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","type":"cjs require","userRequest":"../helpers/typeof","loc":"1:14-42"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/typeof","loc":"2:0-52"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/typeof","loc":"15:9-16"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts","index":32,"index2":29,"size":11142,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"./EmbedWidget","loc":"9:0-40"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"./EmbedWidget","loc":"353:23-34"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"./EmbedWidget","loc":"390:21-32"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./widgets/EmbedWidget","loc":"13:0-48"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/EmbedWidget","loc":"32:0-34:62"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","explanation":"(skipped side-effect-free modules)","userRequest":"../../squatch","loc":"37:44-55"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","explanation":"(skipped side-effect-free modules)","userRequest":"../../squatch","loc":"53:44-55"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":2,"source":"import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _get from \"@babel/runtime/helpers/get\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i &lt; len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n// @ts-check\nimport debug from \"debug\";\nimport Widget from \"./Widget\";\nimport { domready } from \"../utils/domready\";\n\nvar _log = debug(\"squatch-js:EMBEDwidget\");\n/**\n * An EmbedWidget is displayed inline in part of your page.\n *\n * To create an EmbedWidget use {@link Widgets}\n *\n */\n\n\nvar EmbedWidget = /*#__PURE__*/function (_Widget) {\n _inherits(EmbedWidget, _Widget);\n\n var _super = _createSuper(EmbedWidget);\n\n function EmbedWidget(params, container) {\n _classCallCheck(this, EmbedWidget);\n\n return _super.call(this, params);\n }\n\n _createClass(EmbedWidget, [{\n key: \"_findElement\",\n value: function _findElement() {\n var element;\n\n if (typeof this.container === \"string\") {\n // selector is a string\n element = document.querySelector(this.container);\n\n _log(\"loading widget with selector\", element); // selector is an HTML element\n\n } else if (this.container instanceof HTMLElement) {\n element = this.container;\n\n _log(\"loading widget with container\", element); // garbage container found\n\n } else if (this.container) {\n element = null;\n\n _log(\"container must be an HTMLElement or string\", this.container); // find element on page\n\n } else {\n element = document.querySelector(\"#squatchembed\") || document.querySelector(\".squatchembed\");\n\n _log(\"loading widget with default selector\", element);\n }\n\n if (!(element instanceof HTMLElement)) throw new Error(\"element with selector '\".concat(this.container, \"' not found.'\"));\n return element;\n }\n }, {\n key: \"load\",\n value: function () {\n var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(frame) {\n var _this = this;\n\n var element, contentWindow, frameDoc;\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n element = this._findElement();\n\n if (this.context.container) {\n element.style.visibility = \"hidden\";\n element.style.height = \"0\";\n element.style[\"overflow-y\"] = \"hidden\"; // Widget reloaded - replace existing element\n\n if (element.firstChild) {\n element.replaceChild(frame, element.firstChild); // Add iframe for the first time\n } else {\n element.appendChild(frame);\n }\n } else if (!element.firstChild || element.firstChild.nodeName === \"#text\") {\n element.appendChild(frame);\n }\n\n contentWindow = frame.contentWindow;\n\n if (contentWindow) {\n _context2.next = 5;\n break;\n }\n\n throw new Error(\"Frame needs a content window\");\n\n case 5:\n frameDoc = contentWindow.document;\n frameDoc.open();\n frameDoc.write(this.content);\n frameDoc.write(\"&lt;script src=\\\"\".concat(this.npmCdn, \"/resize-observer-polyfill@1.5.x\\\">&lt;/script>\"));\n frameDoc.close();\n domready(frameDoc, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var _sqh, ctaElement, ro;\n\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _sqh = contentWindow.squatch || contentWindow.widgetIdent;\n ctaElement = frameDoc.getElementById(\"cta\");\n\n if (!ctaElement) {\n _context.next = 6;\n break;\n }\n\n if (ctaElement.parentNode) {\n _context.next = 5;\n break;\n }\n\n throw new Error(\"ctaElement needs a parentNode\");\n\n case 5:\n ctaElement.parentNode.removeChild(ctaElement);\n\n case 6:\n // @ts-ignore -- number will be cast to string by browsers\n frame.height = frameDoc.body.scrollHeight; // Adjust frame height when size of body changes\n // @ts-ignore\n\n ro = new contentWindow[\"ResizeObserver\"](function (entries) {\n var _iterator = _createForOfIteratorHelper(entries),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var entry = _step.value;\n var height = entry.contentRect.height; // @ts-ignore -- number will be cast to string by browsers\n\n frame.height = height;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n });\n _context.t0 = ro;\n _context.next = 11;\n return _this._findInnerContainer(frame);\n\n case 11:\n _context.t1 = _context.sent;\n\n _context.t0.observe.call(_context.t0, _context.t1);\n\n // Regular load - trigger event\n if (!_this.context.container) {\n _this._loadEvent(_sqh);\n\n _log(\"loaded\");\n }\n\n case 14:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n })));\n\n case 11:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function load(_x) {\n return _load.apply(this, arguments);\n }\n\n return load;\n }() // Un-hide if element is available and refresh data\n\n }, {\n key: \"open\",\n value: function open(frame) {\n var _frame$contentDocumen, _frame$contentWindow, _frame$contentWindow2;\n\n if (!frame) return _log(\"no target element to open\");\n\n var element = this._findElement();\n\n element.style.visibility = \"unset\";\n element.style.height = \"auto\";\n element.style[\"overflow-y\"] = \"auto\";\n frame === null || frame === void 0 ? void 0 : (_frame$contentDocumen = frame.contentDocument) === null || _frame$contentDocumen === void 0 ? void 0 : _frame$contentDocumen.dispatchEvent(new CustomEvent(\"sq:refresh\"));\n\n var _sqh = (frame === null || frame === void 0 ? void 0 : (_frame$contentWindow = frame.contentWindow) === null || _frame$contentWindow === void 0 ? void 0 : _frame$contentWindow.squatch) || (frame === null || frame === void 0 ? void 0 : (_frame$contentWindow2 = frame.contentWindow) === null || _frame$contentWindow2 === void 0 ? void 0 : _frame$contentWindow2.widgetIdent);\n\n this._loadEvent(_sqh);\n\n _log(\"loaded\");\n }\n }, {\n key: \"close\",\n value: function close(frame) {\n if (!frame) return _log(\"no target element to close\");\n\n var element = this._findElement();\n\n element.style.visibility = \"hidden\";\n element.style.height = \"0\";\n element.style[\"overflow-y\"] = \"hidden\";\n\n _log(\"Embed widget closed\");\n }\n }, {\n key: \"_error\",\n value: function _error(rs) {\n var mode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"embed\";\n var style = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"\";\n return _get(_getPrototypeOf(EmbedWidget.prototype), \"_error\", this).call(this, rs, mode, style);\n }\n }]);\n\n return EmbedWidget;\n}(Widget);\n\nexport { EmbedWidget as default };"},{"id":17,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","name":"./src/api/WidgetApi.ts + 1 modules","index":16,"index2":17,"size":9894,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":null,"issuerId":null,"issuerName":null,"issuerPath":null,"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"../api/WidgetApi","loc":"8:0-41"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"../api/WidgetApi","loc":"51:19-28"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./api/WidgetApi","loc":"17:0-40"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./api/WidgetApi","loc":"32:0-34:62"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./api/WidgetApi","loc":"125:13-22"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","explanation":"(skipped side-effect-free modules)","userRequest":"../../squatch","loc":"76:27-36"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":["ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/asyncToGenerator.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/classCallCheck.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/createClass.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/defineProperty.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/regenerator/index.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./src/utils/io.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/utils/validate.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./node_modules/js-cookie/src/js.cookie.js (&lt;- Module is not an ECMAScript module)"],"depth":2,"modules":[{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","name":"./src/api/WidgetApi.ts","index":16,"index2":17,"size":9428,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"../api/WidgetApi","loc":"8:0-41"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"../api/WidgetApi","loc":"51:19-28"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./api/WidgetApi","loc":"17:0-40"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./api/WidgetApi","loc":"32:0-34:62"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./api/WidgetApi","loc":"125:13-22"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","explanation":"(skipped side-effect-free modules)","userRequest":"../../squatch","loc":"76:27-36"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":2,"source":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i &lt; arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport Cookies from \"js-cookie\";\nimport { doGet, doPut, doQuery } from \"../utils/io\";\nimport { validateConfig, validateLocale, validatePasswordlessConfig, validateWidgetConfig } from \"../utils/validate\";\nimport { RENDER_WIDGET_QUERY } from \"./graphql\";\n/**\n *\n * The WidgetApi class is a wrapper around the Widget Endpoints of the SaaSquatch REST API.\n *\n */\n\nvar WidgetApi = /*#__PURE__*/function () {\n /**\n * Initialize a new {@link WidgetApi} instance.\n *\n * @param {ConfigOptions} config Config details\n *\n * @example &lt;caption>Browser example&lt;/caption>\n * var squatchApi = new squatch.WidgetApi({tenantAlias:'test_12b5bo1b25125'});\n *\n * @example &lt;caption>Browserify/Webpack example&lt;/caption>\n * var WidgetApi = require('@saasquatch/squatch-js').WidgetApi;\n * var squatchApi = new WidgetApi({tenantAlias:'test_12b5bo1b25125'});\n *\n * @example &lt;caption>Babel+Browserify/Webpack example&lt;/caption>\n * import {WidgetApi} from '@saasquatch/squatch-js';\n * let squatchApi = new WidgetApi({tenantAlias:'test_12b5bo1b25125'});\n */\n function WidgetApi(config) {\n _classCallCheck(this, WidgetApi);\n\n var raw = config; // Flags that we need to validate anything we use from this type\n\n var clean = validateConfig(raw);\n this.tenantAlias = clean.tenantAlias;\n this.domain = clean.domain;\n this.npmCdn = clean.npmCdn;\n }\n /**\n * Creates/upserts user.\n *\n * @param {Object} params Parameters for request\n * @param {Object?} params.user The user details\n * @param {string} params.user.id The user id\n * @param {string} params.user.accountId The user account id\n * @param {WidgetType} params.widgetType The content of the widget.\n * @param {EngagementMedium?} params.engagementMedium How to display the widget.\n * @param {string?} params.jwt the JSON Web Token (JWT) that is used\n * to validate the data (can be disabled)\n *\n * @return {Promise} string if true, with the widget template, jsOptions and user details.\n */\n\n\n _createClass(WidgetApi, [{\n key: \"upsertUser\",\n value: function upsertUser(params) {\n var raw = params;\n var clean = validateWidgetConfig(raw);\n var _ref = clean,\n widgetType = _ref.widgetType,\n _ref$engagementMedium = _ref.engagementMedium,\n engagementMedium = _ref$engagementMedium === void 0 ? \"POPUP\" : _ref$engagementMedium,\n jwt = _ref.jwt,\n user = _ref.user;\n var tenantAlias = encodeURIComponent(this.tenantAlias);\n var accountId = encodeURIComponent(user.accountId);\n var userId = encodeURIComponent(user.id);\n\n var optionalParams = _buildParams({\n widgetType: widgetType,\n engagementMedium: engagementMedium\n });\n\n var path = \"/api/v1/\".concat(tenantAlias, \"/widget/account/\").concat(accountId, \"/user/\").concat(userId, \"/upsert\").concat(optionalParams);\n var url = this.domain + path;\n var cookies = Cookies.get(\"_saasquatch\");\n if (cookies) user[\"cookies\"] = cookies;\n return doPut(url, JSON.stringify(user), jwt);\n }\n /**\n * Description here.\n *\n * @param {Object} params Parameters for request\n * @param {Object} params.user The user details\n * @param {string} params.user.id The user id\n * @param {string} params.user.accountId The user account id\n * @param {WidgetType} params.widgetType The content of the widget.\n * @param {EngagementMedium} params.engagementMedium How to display the widget.\n * @param {string} params.jwt the JSON Web Token (JWT) that is used\n * to validate the data (can be disabled)\n * @return {Promise} template html if true.\n */\n\n }, {\n key: \"render\",\n value: function render(params) {\n var _clean$locale;\n\n var raw = params;\n var clean = validatePasswordlessConfig(raw);\n var widgetType = clean.widgetType,\n _clean$engagementMedi = clean.engagementMedium,\n engagementMedium = _clean$engagementMedi === void 0 ? \"POPUP\" : _clean$engagementMedi,\n jwt = clean.jwt,\n user = clean.user;\n var tenantAlias = encodeURIComponent(this.tenantAlias);\n var accountId = user ? encodeURIComponent(user.accountId) : null;\n var userId = user ? encodeURIComponent(user.id) : null;\n var locale = (_clean$locale = clean.locale) !== null && _clean$locale !== void 0 ? _clean$locale : validateLocale(navigator.language.replace(/\\-/g, \"_\"));\n var path = \"/api/v1/\".concat(tenantAlias, \"/graphql\");\n var url = this.domain + path;\n return new Promise( /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(resolve, reject) {\n var _res$data, res;\n\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return doQuery(url, RENDER_WIDGET_QUERY, {\n user: userId && accountId ? {\n id: userId,\n accountId: accountId\n } : null,\n engagementMedium: engagementMedium,\n widgetType: widgetType,\n locale: locale\n }, jwt);\n\n case 3:\n res = _context.sent;\n resolve(res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.renderWidget);\n _context.next = 10;\n break;\n\n case 7:\n _context.prev = 7;\n _context.t0 = _context[\"catch\"](0);\n reject(_context.t0);\n\n case 10:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 7]]);\n }));\n\n return function (_x, _x2) {\n return _ref2.apply(this, arguments);\n };\n }());\n }\n /**\n * Looks up the referral code of the current user, if there is any.\n *\n * @return {Promise&lt;ReferralCookie>} code referral code if true.\n */\n\n }, {\n key: \"squatchReferralCookie\",\n value: function () {\n var _squatchReferralCookie = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var tenantAlias, _saasquatch, cookie, url, response;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n tenantAlias = encodeURIComponent(this.tenantAlias);\n _saasquatch = Cookies.get(\"_saasquatch\") || \"\";\n cookie = _saasquatch ? \"?cookies=\".concat(encodeURIComponent(_saasquatch)) : \"\";\n url = \"\".concat(this.domain, \"/a/\").concat(tenantAlias, \"/widgets/squatchcookiejson\").concat(cookie);\n _context2.next = 6;\n return doGet(url);\n\n case 6:\n response = _context2.sent;\n return _context2.abrupt(\"return\", Promise.resolve(_objectSpread(_objectSpread({}, response), {}, {\n encodedCookie: _saasquatch\n })));\n\n case 8:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function squatchReferralCookie() {\n return _squatchReferralCookie.apply(this, arguments);\n }\n\n return squatchReferralCookie;\n }()\n }]);\n\n return WidgetApi;\n}(); // builds a param string for widgets\n\n\nexport { WidgetApi as default };\n\nfunction _buildParams(_ref3) {\n var widgetType = _ref3.widgetType,\n engagementMedium = _ref3.engagementMedium;\n var widgetTypeP = widgetType ? \"?widgetType=\".concat(encodeURIComponent(widgetType)) : \"\";\n var engagementMediumP = \"\".concat(widgetType ? \"&\" : \"?\", \"engagementMedium=\").concat(encodeURIComponent(engagementMedium));\n var optionalParams = widgetTypeP + engagementMediumP;\n return optionalParams;\n}"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/graphql.ts","name":"./src/api/graphql.ts","index":20,"index2":16,"size":426,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","issuerId":null,"issuerName":"./src/api/WidgetApi.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","name":"./src/api/WidgetApi.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","module":"./src/api/WidgetApi.ts","moduleName":"./src/api/WidgetApi.ts","type":"harmony side effect evaluation","userRequest":"./graphql","loc":"14:0-48"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","module":"./src/api/WidgetApi.ts","moduleName":"./src/api/WidgetApi.ts","type":"harmony import specifier","userRequest":"./graphql","loc":"132:38-57"}],"usedExports":["RENDER_WIDGET_QUERY"],"providedExports":["RENDER_WIDGET_QUERY"],"optimizationBailout":[],"depth":3,"source":"export var RENDER_WIDGET_QUERY = \"\\n query renderWidget ($user: UserIdInput, $engagementMedium: UserEngagementMedium, $widgetType: WidgetType, $locale: RSLocale) {\\n renderWidget(user: $user, engagementMedium: $engagementMedium, widgetType: $widgetType, locale: $locale) {\\n template\\n user {\\n id\\n accountId\\n }\\n jsOptions\\n widgetConfig {\\n values\\n }\\n }\\n }\\n\";"}],"filteredModules":0},{"id":18,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/domready.ts","name":"./src/utils/domready.ts","index":29,"index2":25,"size":626,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","issuerId":16,"issuerName":"./src/widgets/EmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"../utils/domready","loc":"23:0-45"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"../utils/domready","loc":"148:6-14"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"../utils/domready","loc":"207:6-14"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"../utils/domready","loc":"23:0-45"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"../utils/domready","loc":"117:16-24"}],"usedExports":["domready"],"providedExports":["domready"],"optimizationBailout":[],"depth":3,"source":"/*!\n * domready (c) Dustin Diaz 2014 - License MIT\n *\n */\nexport function domready(targetDoc, fn) {\n var fns = [];\n\n var _listener;\n\n var doc = targetDoc;\n var hack = doc.documentElement.doScroll;\n var domContentLoaded = \"DOMContentLoaded\";\n var loaded = (hack ? /^loaded|^c/ : /^loaded|^i|^c/).test(doc.readyState);\n if (!loaded) doc.addEventListener(domContentLoaded, _listener = function listener() {\n doc.removeEventListener(domContentLoaded, _listener);\n loaded = true;\n\n while (_listener = fns.shift()) {\n _listener();\n }\n }); // @ts-ignore\n\n return loaded ? setTimeout(fn, 0) : fns.push(fn);\n}"},{"id":19,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/eventbusjs/lib/eventbus.min.js","name":"./node_modules/eventbusjs/lib/eventbus.min.js","index":13,"index2":10,"size":2399,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","issuerId":26,"issuerName":"./src/widgets/Widgets.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"eventbusjs","loc":"7:0-39"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"eventbusjs","loc":"50:20-28"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"eventbusjs","loc":"53:4-29"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"eventbusjs","loc":"248:6-34"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"eventbusjs","loc":"249:6-31"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"(function(root,factory){if(typeof exports===\"object\"&&typeof module===\"object\")module.exports=factory();else if(typeof define===\"function\"&&define.amd)define(\"EventBus\",[],factory);else if(typeof exports===\"object\")exports[\"EventBus\"]=factory();else root[\"EventBus\"]=factory()})(this,function(){var EventBusClass={};EventBusClass=function(){this.listeners={}};EventBusClass.prototype={addEventListener:function(type,callback,scope){var args=[];var numOfArgs=arguments.length;for(var i=0;i&lt;numOfArgs;i++){args.push(arguments[i])}args=args.length>3?args.splice(3,args.length-1):[];if(typeof this.listeners[type]!=\"undefined\"){this.listeners[type].push({scope:scope,callback:callback,args:args})}else{this.listeners[type]=[{scope:scope,callback:callback,args:args}]}},removeEventListener:function(type,callback,scope){if(typeof this.listeners[type]!=\"undefined\"){var numOfCallbacks=this.listeners[type].length;var newArray=[];for(var i=0;i&lt;numOfCallbacks;i++){var listener=this.listeners[type][i];if(listener.scope==scope&&listener.callback==callback){}else{newArray.push(listener)}}this.listeners[type]=newArray}},hasEventListener:function(type,callback,scope){if(typeof this.listeners[type]!=\"undefined\"){var numOfCallbacks=this.listeners[type].length;if(callback===undefined&&scope===undefined){return numOfCallbacks>0}for(var i=0;i&lt;numOfCallbacks;i++){var listener=this.listeners[type][i];if((scope?listener.scope==scope:true)&&listener.callback==callback){return true}}}return false},dispatch:function(type,target){var event={type:type,target:target};var args=[];var numOfArgs=arguments.length;for(var i=0;i&lt;numOfArgs;i++){args.push(arguments[i])}args=args.length>2?args.splice(2,args.length-1):[];args=[event].concat(args);if(typeof this.listeners[type]!=\"undefined\"){var listeners=this.listeners[type].slice();var numOfCallbacks=listeners.length;for(var i=0;i&lt;numOfCallbacks;i++){var listener=listeners[i];if(listener&&listener.callback){var concatArgs=args.concat(listener.args);listener.callback.apply(listener.scope,concatArgs)}}}},getEvents:function(){var str=\"\";for(var type in this.listeners){var numOfCallbacks=this.listeners[type].length;for(var i=0;i&lt;numOfCallbacks;i++){var listener=this.listeners[type][i];str+=listener.scope&&listener.scope.className?listener.scope.className:\"anonymous\";str+=\" listen for '\"+type+\"'\\n\"}}return str}};var EventBus=new EventBusClass;return EventBus});"},{"id":20,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/get.js","name":"./node_modules/@babel/runtime/helpers/get.js","index":22,"index2":20,"size":600,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","issuerId":16,"issuerName":"./src/widgets/EmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/get","loc":"4:0-46"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/get","loc":"244:13-17"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/get","loc":"4:0-46"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/get","loc":"241:13-17"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"var superPropBase = require(\"./superPropBase\");\n\nfunction _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n module.exports = _get = Reflect.get;\n } else {\n module.exports = _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n}\n\nmodule.exports = _get;"},{"id":21,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","name":"./src/widgets/Widget.ts","index":30,"index2":27,"size":11147,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","issuerId":16,"issuerName":"./src/widgets/EmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"./Widget","loc":"22:0-30"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"./Widget","loc":"249:2-8"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"./Widget","loc":"22:0-30"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"./Widget","loc":"246:2-8"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":3,"source":"import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n// @ts-check\nimport debug from \"debug\";\nimport AnalyticsApi from \"../api/AnalyticsApi\";\nimport { isObject } from \"../utils/validate\";\n/** @hidden */\n\nvar _log = debug(\"squatch-js:widget\");\n\n/*\n * The Widget class is the base class for the different widget types available\n *\n * Creates an `iframe` in which the html content of the widget gets embedded.\n * Uses element-resize-detector (https://github.com/wnr/element-resize-detector)\n * for listening to the height of the widget content and make the iframe responsive.\n *\n */\nvar Widget = /*#__PURE__*/function () {\n function Widget(params) {\n _classCallCheck(this, Widget);\n\n _log(\"widget initializing ...\");\n\n this.content = params.content === \"error\" ? this._error(params.rsCode) : params.content;\n this.type = params.type;\n this.widgetApi = params.api;\n this.npmCdn = params.npmCdn;\n this.analyticsApi = new AnalyticsApi({\n domain: params.domain\n });\n this.context = params.context;\n this.container = params.container;\n }\n\n _createClass(Widget, [{\n key: \"_createFrame\",\n value: function _createFrame() {\n var frame = document.createElement(\"iframe\");\n frame[\"squatchJsApi\"] = this;\n frame.width = \"100%\";\n frame.scrolling = \"no\";\n frame.setAttribute(\"style\", \"border: 0; background-color: none; width: 1px; min-width: 100%;\");\n return frame;\n }\n }, {\n key: \"_loadEvent\",\n value: function _loadEvent(sqh) {\n var _this$analyticsApi$pu;\n\n if (!sqh) return; // No non-truthy value\n\n if (!isObject(sqh)) {\n throw new Error(\"Widget Load event identity property is not an object\");\n }\n\n var params;\n\n if (\"programId\" in sqh) {\n if (!sqh.tenantAlias || !sqh.accountId || !sqh.userId || !sqh.engagementMedium) throw new Error(\"Widget Load event missing required properties\");\n params = {\n tenantAlias: sqh.tenantAlias,\n externalAccountId: sqh.accountId,\n externalUserId: sqh.userId,\n engagementMedium: sqh.engagementMedium,\n programId: sqh.programId\n };\n } else {\n var analytics = sqh.analytics,\n mode = sqh.mode;\n params = {\n tenantAlias: analytics.attributes.tenant,\n externalAccountId: analytics.attributes.accountId,\n externalUserId: analytics.attributes.userId,\n engagementMedium: mode.widgetMode\n };\n }\n\n (_this$analyticsApi$pu = this.analyticsApi.pushAnalyticsLoadEvent(params)) === null || _this$analyticsApi$pu === void 0 ? void 0 : _this$analyticsApi$pu.then(function (response) {\n _log(\"\".concat(params.engagementMedium, \" loaded event recorded.\"));\n }).catch(function (ex) {\n _log(new Error(\"pushAnalyticsLoadEvent() \".concat(ex)));\n });\n }\n }, {\n key: \"_shareEvent\",\n value: function _shareEvent(sqh, medium) {\n if (sqh) {\n this.analyticsApi.pushAnalyticsShareClickedEvent({\n tenantAlias: sqh.analytics.attributes.tenant,\n externalAccountId: sqh.analytics.attributes.accountId,\n externalUserId: sqh.analytics.attributes.userId,\n engagementMedium: sqh.mode.widgetMode,\n shareMedium: medium\n }).then(function (response) {\n _log(\"\".concat(sqh.mode.widgetMode, \" share \").concat(medium, \" event recorded. \").concat(response));\n }).catch(function (ex) {\n _log(new Error(\"pushAnalyticsLoadEvent() \".concat(ex)));\n });\n }\n } // TODO: CA: Refactor how error templates are shown\n\n }, {\n key: \"_error\",\n value: function _error(rs) {\n var mode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"modal\";\n var style = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"\";\n var errorTemplate = \"&lt;!DOCTYPE html>\\n &lt;!--[if IE 7]>&lt;html class=\\\"ie7 oldie\\\" lang=\\\"en\\\">&lt;![endif]-->\\n &lt;!--[if IE 8]>&lt;html class=\\\"ie8 oldie\\\" lang=\\\"en\\\">&lt;![endif]-->\\n &lt;!--[if gt IE 8]>&lt;!-->&lt;html lang=\\\"en\\\">&lt;!--&lt;![endif]-->\\n &lt;head>\\n &lt;link rel=\\\"stylesheet\\\" media=\\\"all\\\" href=\\\"https://fast.ssqt.io/assets/css/widget/errorpage.css\\\">\\n &lt;style>\\n \".concat(style, \"\\n &lt;/style>\\n &lt;/head>\\n &lt;body>\\n\\n &lt;div class=\\\"squatch-container \").concat(mode, \"\\\" style=\\\"width:100%\\\">\\n &lt;div class=\\\"errorheader\\\">\\n &lt;button type=\\\"button\\\" class=\\\"close\\\" onclick=\\\"window.frameElement.squatchJsApi.close();\\\">&times;&lt;/button>\\n &lt;p class=\\\"errortitle\\\">Error&lt;/p>\\n &lt;/div>\\n &lt;div class=\\\"errorbody\\\">\\n &lt;div class=\\\"sadface\\\">&lt;img src=\\\"https://fast.ssqt.io/assets/images/face.png\\\">&lt;/div>\\n &lt;h4>Our referral program is temporarily unavailable.&lt;/h4>&lt;br>\\n &lt;p>Please reload the page or check back later.&lt;/p>\\n &lt;p>If the persists please contact our support team.&lt;/p>\\n &lt;br>\\n &lt;br>\\n &lt;div class=\\\"right-align errtxt\\\">\\n Error Code: \").concat(rs, \"\\n &lt;/div>\\n &lt;/div>\\n &lt;/div>\\n &lt;/body>\\n &lt;/html>\");\n return errorTemplate;\n }\n }, {\n key: \"_findInnerContainer\",\n value: function () {\n var _findInnerContainer2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(frame) {\n var contentWindow, frameDoc, search, found, i;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n search = function _search() {\n var containers = frameDoc.getElementsByTagName(\"sqh-global-container\");\n var legacyContainers = frameDoc.getElementsByClassName(\"squatch-container\");\n var fallback = containers.length > 0 ? containers[0] : legacyContainers.length > 0 ? legacyContainers[0] : null;\n return fallback;\n };\n\n contentWindow = frame.contentWindow;\n\n if (contentWindow) {\n _context.next = 4;\n break;\n }\n\n throw new Error(\"Squatch.js frame inner frame is empty\");\n\n case 4:\n frameDoc = contentWindow.document;\n found = null;\n i = 0;\n\n case 7:\n if (!(i &lt; 5)) {\n _context.next = 16;\n break;\n }\n\n found = search();\n\n if (!found) {\n _context.next = 11;\n break;\n }\n\n return _context.abrupt(\"break\", 16);\n\n case 11:\n _context.next = 13;\n return delay(100);\n\n case 13:\n i++;\n _context.next = 7;\n break;\n\n case 16:\n if (found) {\n _context.next = 18;\n break;\n }\n\n return _context.abrupt(\"return\", frameDoc.body);\n\n case 18:\n return _context.abrupt(\"return\", found);\n\n case 19:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n function _findInnerContainer(_x) {\n return _findInnerContainer2.apply(this, arguments);\n }\n\n return _findInnerContainer;\n }() // TODO: CA: Refactor reload\n\n /**\n * Reloads the current widget, makes updated request to API and renders result.\n * Primarily for Classic widgets with registration\n * @param param0 Form field values\n * @param jwt JWT for API authentication\n */\n\n }, {\n key: \"reload\",\n value: function reload(frame, _ref, jwt) {\n var _this = this;\n\n var email = _ref.email,\n firstName = _ref.firstName,\n lastName = _ref.lastName;\n var frameWindow = frame.contentWindow;\n var engagementMedium = this.context.engagementMedium || \"POPUP\";\n\n if (!frameWindow) {\n throw new Error(\"Frame needs a content window\");\n }\n\n var response;\n\n if (this.context.type === \"upsert\") {\n var userObj = {\n email: email || null,\n firstName: firstName || null,\n lastName: lastName || null,\n id: this.context.user.id,\n accountId: this.context.user.accountId\n };\n response = this.widgetApi.upsertUser({\n user: userObj,\n engagementMedium: engagementMedium,\n widgetType: this.type,\n jwt: jwt\n });\n } else if (this.context.type === \"passwordless\") {\n response = this.widgetApi.render({\n user: undefined,\n engagementMedium: engagementMedium,\n widgetType: this.type,\n jwt: undefined\n });\n } else {\n throw new Error(\"can't reload an error widget\");\n }\n\n response.then(function (_ref2) {\n var template = _ref2.template;\n\n if (template) {\n _this.content = template; // Support for classic widget registration forms\n\n _this.__deprecated__register(frame, {\n email: email,\n engagementMedium: engagementMedium\n }, function () {\n _this.load(frame); // @ts-ignore -- open exists in the PopupWidget, so this call will always exist when it's called.\n\n\n engagementMedium === \"POPUP\" && _this.open(frame);\n });\n }\n }).catch(function (_ref3) {\n var message = _ref3.message;\n\n _log(\"\".concat(message));\n });\n }\n }, {\n key: \"__deprecated__register\",\n value: function __deprecated__register(frame, params, onClick) {\n var frameWindow = frame.contentWindow;\n var frameDoc = frameWindow.document;\n var showStatsBtn = frameDoc.createElement(\"button\");\n var registerForm = frameDoc.getElementsByClassName(\"squatch-register\")[0];\n\n if (registerForm) {\n showStatsBtn.className = \"btn btn-primary\";\n showStatsBtn.id = \"show-stats-btn\";\n showStatsBtn.textContent = this.type === \"REFERRER_WIDGET\" ? \"Show Stats\" : \"Show Reward\";\n var widgetStyle = params.engagementMedium === \"POPUP\" ? \"margin-top: 10px; max-width: 130px; width: 100%;\" : \"margin-top: 10px;\";\n showStatsBtn.setAttribute(\"style\", widgetStyle);\n showStatsBtn.onclick = onClick; // @ts-ignore -- expect register form to be a stylable element\n\n registerForm.style.paddingTop = \"30px\";\n registerForm.innerHTML = \"&lt;p>&lt;strong>\".concat(params.email, \"&lt;/strong>&lt;br>Has been successfully registered&lt;/p>\");\n registerForm.appendChild(showStatsBtn);\n }\n }\n }]);\n\n return Widget;\n}();\n\nexport { Widget as default };\n\nfunction delay(duration) {\n return new Promise(function (resolve, reject) {\n setTimeout(function () {\n resolve(function () {});\n }, duration);\n });\n}"},{"id":22,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","name":"./src/api/AnalyticsApi.ts","index":31,"index2":26,"size":2620,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","issuerId":21,"issuerName":"./src/widgets/Widget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"},{"id":21,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","name":"./src/widgets/Widget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"../api/AnalyticsApi","loc":"7:0-47"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"../api/AnalyticsApi","loc":"31:28-40"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"../../api/AnalyticsApi","loc":"16:0-50"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../api/AnalyticsApi","loc":"80:30-42"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":4,"source":"import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\n// @ts-check\nimport { doPost } from \"../utils/io\";\nimport { hasProps } from \"../utils/validate\";\n/**\n *\n * The AnalyticsApi class is a wrapper around the Analytics Endpoints of\n * the SaaSquatch REST API. Used to record Widget events.\n *\n * @hidden\n */\n\nvar AnalyticsApi = /*#__PURE__*/function () {\n /**\n * Initialize a new {@link AnalyticsApi} instance.\n *\n * @param {Object} config Config details\n * @param {string} [config.domain='https://app.referralsaasquatch.com'] The server domain.\n *\n */\n function AnalyticsApi(config) {\n _classCallCheck(this, AnalyticsApi);\n\n var raw = config;\n\n if (hasProps(raw, \"domain\") && typeof raw.domain === \"string\") {\n this.domain = raw.domain;\n } else {\n this.domain = \"https://app.referralsaasquatch.com\";\n }\n }\n\n _createClass(AnalyticsApi, [{\n key: \"pushAnalyticsLoadEvent\",\n value: function pushAnalyticsLoadEvent(params) {\n if (!params.externalUserId || !params.externalAccountId) return;\n var tenantAlias = encodeURIComponent(params.tenantAlias);\n var accountId = encodeURIComponent(params.externalAccountId);\n var userId = encodeURIComponent(params.externalUserId);\n var engagementMedium = encodeURIComponent(params.engagementMedium);\n var programId = params.programId ? \"&programId=\".concat(encodeURIComponent(params.programId)) : \"\";\n var path = \"/a/\".concat(tenantAlias, \"/widgets/analytics/loaded?externalAccountId=\").concat(accountId, \"&externalUserId=\").concat(userId, \"&engagementMedium=\").concat(engagementMedium).concat(programId);\n var url = this.domain + path;\n return doPost(url, JSON.stringify({}));\n }\n }, {\n key: \"pushAnalyticsShareClickedEvent\",\n value: function pushAnalyticsShareClickedEvent(params) {\n var tenantAlias = encodeURIComponent(params.tenantAlias);\n var accountId = encodeURIComponent(params.externalAccountId);\n var userId = encodeURIComponent(params.externalUserId);\n var engagementMedium = encodeURIComponent(params.engagementMedium);\n var shareMedium = encodeURIComponent(params.shareMedium);\n var path = \"/a/\".concat(tenantAlias, \"/widgets/analytics/shared?externalAccountId=\").concat(accountId, \"&externalUserId=\").concat(userId, \"&engagementMedium=\").concat(engagementMedium, \"&shareMedium=\").concat(shareMedium);\n var url = this.domain + path;\n return doPost(url, JSON.stringify({}));\n }\n }]);\n\n return AnalyticsApi;\n}();\n\nexport { AnalyticsApi as default };"},{"id":23,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","name":"./src/utils/utmUtils.ts","index":39,"index2":38,"size":3216,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"../../utils/utmUtils","loc":"19:0-54"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/utmUtils","loc":"91:20-34"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./utils/utmUtils","loc":"22:0-50"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./utils/utmUtils","loc":"91:16-30"}],"usedExports":["_getAutoConfig"],"providedExports":["_getAutoConfig","convertExtraToConfig"],"optimizationBailout":[],"depth":2,"source":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i &lt; arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport debug from \"debug\";\nimport { b64decode } from \"./cookieUtils\";\n\n/** @hidden */\nvar _log = debug(\"squatch-js\");\n\nexport function _getAutoConfig(configIn) {\n var queryString = window.location.search;\n var urlParams = new URLSearchParams(queryString);\n var refParam = urlParams.get(\"_saasquatchExtra\") || \"\";\n\n if (!refParam) {\n _log(\"No _saasquatchExtra param\");\n\n return;\n }\n\n var raw;\n\n try {\n raw = JSON.parse(b64decode(refParam));\n } catch (e) {\n _log(\"Unable to decode _saasquatchExtra config\");\n\n return;\n }\n\n var _convertExtraToConfig = convertExtraToConfig(raw),\n domain = _convertExtraToConfig.domain,\n tenantAlias = _convertExtraToConfig.tenantAlias,\n widgetConfig = _convertExtraToConfig.widgetConfig;\n\n if (!domain || !tenantAlias || !widgetConfig) {\n _log(\"_saasquatchExtra did not have an expected structure\");\n\n return undefined;\n }\n\n var autoPopupWidgetType = widgetConfig.autoPopupWidgetType,\n rest = _objectWithoutProperties(widgetConfig, [\"autoPopupWidgetType\"]);\n\n return {\n widgetConfig: _objectSpread({\n widgetType: autoPopupWidgetType,\n displayOnLoad: true\n }, rest),\n squatchConfig: _objectSpread(_objectSpread({}, configIn ? {\n configIn: configIn\n } : {}), {}, {\n domain: domain,\n tenantAlias: tenantAlias\n })\n };\n}\n/**\n * Deconstructs _saasquatchExtra into domain, tenantAlias, and widgetConfig\n * @param obj {Record&lt;string, any>} Expected to be of the form `{ [appDomain]: { [tenantAlias]: { autoPopupWidgetType: [widgetType], [rest]?: ... } } }`\n */\n\nexport function convertExtraToConfig(obj) {\n var _obj$_domain;\n\n var _domain = Object.keys(obj || {})[0];\n var tenantAlias = Object.keys((obj === null || obj === void 0 ? void 0 : obj[_domain]) || {})[0];\n var widgetConfig = obj === null || obj === void 0 ? void 0 : (_obj$_domain = obj[_domain]) === null || _obj$_domain === void 0 ? void 0 : _obj$_domain[tenantAlias]; // domain in _saasquatchExtra doesn't contain \"https://\"\n\n var domain = _domain ? \"https://\".concat(_domain) : undefined;\n return {\n domain: domain,\n tenantAlias: tenantAlias,\n widgetConfig: widgetConfig\n };\n}"},{"id":24,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/setPrototypeOf.js","name":"./node_modules/@babel/runtime/helpers/setPrototypeOf.js","index":26,"index2":21,"size":237,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/inherits.js","issuerId":8,"issuerName":"./node_modules/@babel/runtime/helpers/inherits.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"},{"id":8,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/inherits.js","name":"./node_modules/@babel/runtime/helpers/inherits.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":8,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/inherits.js","module":"./node_modules/@babel/runtime/helpers/inherits.js","moduleName":"./node_modules/@babel/runtime/helpers/inherits.js","type":"cjs require","userRequest":"./setPrototypeOf","loc":"1:21-48"},{"moduleId":30,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","module":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","moduleName":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","type":"cjs require","userRequest":"./setPrototypeOf","loc":"3:21-48"},{"moduleId":40,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/construct.js","module":"./node_modules/@babel/runtime/helpers/construct.js","moduleName":"./node_modules/@babel/runtime/helpers/construct.js","type":"cjs require","userRequest":"./setPrototypeOf","loc":"1:21-48"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;"},{"id":25,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","index":33,"index2":41,"size":13102,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":null,"issuerId":null,"issuerName":null,"issuerPath":null,"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./widgets/declarative/DeclarativeEmbedWidget","loc":"23:0-110"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/declarative/DeclarativeEmbedWidget","loc":"32:0-34:62"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/declarative/DeclarativeEmbedWidget","loc":"32:0-34:62"}],"usedExports":["DeclarativeEmbedWidget","DeclarativePopupWidget"],"providedExports":["DeclarativeEmbedWidget","DeclarativePopupWidget"],"optimizationBailout":["ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/assertThisInitialized.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/asyncToGenerator.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/classCallCheck.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/createClass.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/defineProperty.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/getPrototypeOf.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/inherits.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/wrapNativeSuper.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/regenerator/index.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./src/api/AnalyticsApi.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/api/WidgetApi.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/utils/cookieUtils.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/utils/utmUtils.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/utils/validate.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/widgets/EmbedWidget.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/widgets/PopupWidget.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./node_modules/debug/src/browser.js (&lt;- Module is not an ECMAScript module)"],"depth":2,"modules":[{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","index":33,"index2":41,"size":3462,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./widgets/declarative/DeclarativeEmbedWidget","loc":"23:0-110"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/declarative/DeclarativeEmbedWidget","loc":"32:0-34:62"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/declarative/DeclarativeEmbedWidget","loc":"32:0-34:62"}],"usedExports":["DeclarativeEmbedWidget","DeclarativePopupWidget"],"providedExports":["DeclarativeEmbedWidget","DeclarativePopupWidget"],"optimizationBailout":[],"depth":2,"source":"import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nimport DeclarativeWidget from \"./DeclarativeWidget\";\nexport var DeclarativeEmbedWidget = /*#__PURE__*/function (_DeclarativeWidget) {\n _inherits(DeclarativeEmbedWidget, _DeclarativeWidget);\n\n var _super = _createSuper(DeclarativeEmbedWidget);\n\n function DeclarativeEmbedWidget() {\n var _this;\n\n _classCallCheck(this, DeclarativeEmbedWidget);\n\n _this = _super.call(this);\n _this.type = \"EMBED\";\n _this.container = _this.getAttribute(\"container\") || undefined;\n return _this;\n }\n\n _createClass(DeclarativeEmbedWidget, [{\n key: \"attributeChangedCallback\",\n value: function attributeChangedCallback(attr, oldVal, newVal) {\n if (oldVal === newVal || !oldVal) return; // nothing to do\n\n switch (attr) {\n case \"widget\":\n this.connectedCallback();\n break;\n // Specific to embed widgets\n\n case \"container\":\n if (this.element) this.close();\n this.connectedCallback();\n break;\n }\n }\n }, {\n key: \"renderWidget\",\n value: function renderWidget() {\n this.element = this.widgetInstance._findElement();\n this.widgetInstance.load(this.frame);\n }\n }], [{\n key: \"observedAttributes\",\n get: function get() {\n return [\"widget\", \"container\"];\n }\n }]);\n\n return DeclarativeEmbedWidget;\n}(DeclarativeWidget);\nexport var DeclarativePopupWidget = /*#__PURE__*/function (_DeclarativeWidget2) {\n _inherits(DeclarativePopupWidget, _DeclarativeWidget2);\n\n var _super2 = _createSuper(DeclarativePopupWidget);\n\n function DeclarativePopupWidget() {\n var _this2;\n\n _classCallCheck(this, DeclarativePopupWidget);\n\n _this2 = _super2.call(this);\n _this2.type = \"POPUP\";\n return _this2;\n }\n\n _createClass(DeclarativePopupWidget, [{\n key: \"attributeChangedCallback\",\n value: function attributeChangedCallback(attr, oldVal, newVal) {\n if (oldVal === newVal || !oldVal) return; // nothing to do\n\n switch (attr) {\n case \"widget\":\n this.connectedCallback();\n break;\n }\n }\n }], [{\n key: \"observedAttributes\",\n get: function get() {\n return [\"widget\", \"id\"];\n }\n }]);\n\n return DeclarativePopupWidget;\n}(DeclarativeWidget);\nwindow.customElements.define(\"squatch-embed\", DeclarativeEmbedWidget);\nwindow.customElements.define(\"squatch-popup\", DeclarativePopupWidget);"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts","index":34,"index2":40,"size":9071,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","issuerId":null,"issuerName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"./DeclarativeWidget","loc":"11:0-52"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","type":"harmony import specifier","userRequest":"./DeclarativeWidget","loc":"59:2-19"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","type":"harmony import specifier","userRequest":"./DeclarativeWidget","loc":"94:2-19"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":3,"source":"import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _wrapNativeSuper from \"@babel/runtime/helpers/wrapNativeSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nimport AnalyticsApi from \"../../api/AnalyticsApi\";\nimport { EmbedWidget, PopupWidget, WidgetApi } from \"../../squatch\";\nimport { decodeUserJwt } from \"../../utils/decodeUserJwt\";\nimport { _getAutoConfig } from \"../../utils/utmUtils\";\nimport { DEFAULT_DOMAIN, DEFAULT_NPM_CDN } from \"../../utils/validate\";\n\nvar DeclarativeWidget = /*#__PURE__*/function (_HTMLElement) {\n _inherits(DeclarativeWidget, _HTMLElement);\n\n var _super = _createSuper(DeclarativeWidget);\n\n // Embed specific:\n function DeclarativeWidget() {\n var _this;\n\n _classCallCheck(this, DeclarativeWidget);\n\n _this = _super.call(this);\n\n _defineProperty(_assertThisInitialized(_this), \"_setWidget\", function (res, config) {\n if (!_this.widgetType) throw new Error(\"Widget was no specified\");\n var Widget = _this.type === \"EMBED\" ? EmbedWidget : PopupWidget;\n return new Widget({\n api: _this.widgetApi,\n content: res.template,\n context: {\n type: config.type,\n engagementMedium: _this.type\n },\n type: _this.widgetType,\n domain: _this.config.domain || DEFAULT_DOMAIN,\n npmCdn: DEFAULT_NPM_CDN,\n container: _this.container || _assertThisInitialized(_this)\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_setErrorWidget\", function (e) {\n var Widget = _this.type === \"EMBED\" ? EmbedWidget : PopupWidget;\n return new Widget({\n api: _this.widgetApi,\n content: \"error\",\n context: {\n type: \"error\"\n },\n type: \"ERROR_WIDGET\",\n domain: _this.config.domain || DEFAULT_DOMAIN,\n npmCdn: DEFAULT_NPM_CDN,\n container: _this.container || _assertThisInitialized(_this)\n });\n });\n\n _this.config = window.squatchConfig;\n _this.token = window.squatchToken;\n _this.tenant = window.squatchTenant;\n return _this;\n }\n\n _createClass(DeclarativeWidget, [{\n key: \"_setupApis\",\n value: function _setupApis(config) {\n this.widgetApi = new WidgetApi({\n tenantAlias: (config === null || config === void 0 ? void 0 : config.tenantAlias) || this.tenant,\n domain: (config === null || config === void 0 ? void 0 : config.domain) || this.config.domain || DEFAULT_DOMAIN\n });\n this.analyticsApi = new AnalyticsApi({\n domain: (config === null || config === void 0 ? void 0 : config.domain) || this.config.domain || DEFAULT_DOMAIN\n });\n }\n }, {\n key: \"renderPasswordlessVariant\",\n value: function renderPasswordlessVariant() {\n var _configs$widgetConfig,\n _configs$widgetConfig2,\n _this2 = this;\n\n var configs = _getAutoConfig();\n\n this._setupApis(configs === null || configs === void 0 ? void 0 : configs.squatchConfig);\n\n return this.widgetApi.render({\n engagementMedium: (configs === null || configs === void 0 ? void 0 : (_configs$widgetConfig = configs.widgetConfig) === null || _configs$widgetConfig === void 0 ? void 0 : _configs$widgetConfig.engagementMedium) || this.type,\n widgetType: (configs === null || configs === void 0 ? void 0 : (_configs$widgetConfig2 = configs.widgetConfig) === null || _configs$widgetConfig2 === void 0 ? void 0 : _configs$widgetConfig2.widgetType) || this.widgetType\n }).then(function (res) {\n return _this2._setWidget(res, {\n type: \"passwordless\"\n });\n }).catch(this._setErrorWidget);\n }\n }, {\n key: \"renderUserUpsertVariant\",\n value: function () {\n var _renderUserUpsertVariant = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var _this3 = this;\n\n var userObj, widgetInstance;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (this.widgetType) {\n _context.next = 2;\n break;\n }\n\n throw new Error(\"Widget must be specified\");\n\n case 2:\n this._setupApis();\n\n userObj = decodeUserJwt(this.token);\n\n if (userObj) {\n _context.next = 6;\n break;\n }\n\n throw new Error(\"Could not load user information from jwt\");\n\n case 6:\n _context.next = 8;\n return this.widgetApi.upsertUser({\n user: userObj,\n engagementMedium: this.type,\n widgetType: this.widgetType,\n jwt: this.token\n }).then(function (res) {\n return _this3._setWidget(res, {\n type: \"upsert\"\n });\n }).catch(this._setErrorWidget);\n\n case 8:\n widgetInstance = _context.sent;\n return _context.abrupt(\"return\", widgetInstance);\n\n case 10:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function renderUserUpsertVariant() {\n return _renderUserUpsertVariant.apply(this, arguments);\n }\n\n return renderUserUpsertVariant;\n }()\n }, {\n key: \"renderWidget\",\n value: function renderWidget() {\n this.widgetInstance.load(this.frame);\n }\n }, {\n key: \"connectedCallback\",\n value: function () {\n var _connectedCallback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n this.widgetType = this.getAttribute(\"widget\") || undefined;\n console.log({\n widget: this.getAttribute(\"widget\")\n });\n\n if (this.widgetType) {\n _context2.next = 4;\n break;\n }\n\n throw new Error(\"No widget has been specified\");\n\n case 4:\n if (this.token) {\n _context2.next = 10;\n break;\n }\n\n _context2.next = 7;\n return this.renderPasswordlessVariant();\n\n case 7:\n this.widgetInstance = _context2.sent;\n _context2.next = 13;\n break;\n\n case 10:\n _context2.next = 12;\n return this.renderUserUpsertVariant();\n\n case 12:\n this.widgetInstance = _context2.sent;\n\n case 13:\n if (this.widgetInstance) {\n _context2.next = 15;\n break;\n }\n\n throw new Error(\"Could not create widget.\");\n\n case 15:\n this.frame = this.widgetInstance._createFrame();\n this.renderWidget();\n\n case 17:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function connectedCallback() {\n return _connectedCallback.apply(this, arguments);\n }\n\n return connectedCallback;\n }()\n }, {\n key: \"open\",\n value: function open() {\n this.widgetInstance.open(this.frame);\n }\n }, {\n key: \"close\",\n value: function close() {\n this.widgetInstance.close(this.frame);\n }\n }]);\n\n return DeclarativeWidget;\n}( /*#__PURE__*/_wrapNativeSuper(HTMLElement));\n\nexport { DeclarativeWidget as default };"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/decodeUserJwt.ts","name":"./src/utils/decodeUserJwt.ts","index":43,"index2":39,"size":479,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","issuerId":null,"issuerName":"./src/widgets/declarative/DeclarativeWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony side effect evaluation","userRequest":"../../utils/decodeUserJwt","loc":"18:0-58"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","userRequest":"../../utils/decodeUserJwt","loc":"125:26-39"}],"usedExports":["decodeUserJwt"],"providedExports":["decodeUserJwt"],"optimizationBailout":[],"depth":4,"source":"import debug from \"debug\";\nimport { b64decode } from \"./cookieUtils\";\n\nvar _log = debug(\"squatch-js:decodeJwt\");\n\nexport function decodeUserJwt(tokenStr) {\n try {\n var _JSON$parse;\n\n var base64Url = tokenStr.split(\".\")[1];\n if (base64Url === undefined) return null;\n var jsonStr = b64decode(base64Url);\n return (_JSON$parse = JSON.parse(jsonStr)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.user;\n } catch (e) {\n _log(e);\n\n return null;\n }\n}"}],"filteredModules":0},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts","index":7,"index2":30,"size":14577,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./widgets/Widgets","loc":"12:0-40"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/Widgets","loc":"32:0-34:62"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./widgets/Widgets","loc":"126:17-24"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":2,"source":"import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport debug from \"debug\"; //@ts-ignore\n\nimport * as EventBus from \"eventbusjs\";\nimport WidgetApi from \"../api/WidgetApi\";\nimport EmbedWidget from \"./EmbedWidget\";\nimport PopupWidget from \"./PopupWidget\";\nimport { validateConfig, validatePasswordlessConfig, validateWidgetConfig } from \"../utils/validate\";\n\nvar _log = debug(\"squatch-js:widgets\");\n/**\n *\n * `Widgets` is a factory for creating widgets. It's possible to build your own widgets using the\n * {@link WidgetApi} but most people will prefer to use these easy methods.\n *\n */\n\n\nvar Widgets = /*#__PURE__*/function () {\n // for with locals custom theme, can be removed once with locals isnt' using eventBus anymore.\n\n /**\n * Initialize a new {@link Widgets} instance.\n *\n * @param {ConfigOptions} config Config details\n *\n * @example &lt;caption>Browser example&lt;/caption>\n * var widgets = new squatch.Widgets({tenantAlias:'test_12b5bo1b25125'});\n *\n * @example &lt;caption>Browserify/Webpack example&lt;/caption>\n * var Widgets = require('@saasquatch/squatch-js').Widgets;\n * var widgets = new Widgets({tenantAlias:'test_12b5bo1b25125'});\n *\n * @example &lt;caption>Babel+Browserify/Webpack example&lt;/caption>\n * import {Widgets} from '@saasquatch/squatch-js';\n * let widgets = new Widgets({tenantAlias:'test_12b5bo1b25125'});\n */\n function Widgets(configin) {\n _classCallCheck(this, Widgets);\n\n var raw = configin;\n var config = validateConfig(raw);\n this.tenantAlias = config.tenantAlias;\n this.domain = config.domain;\n this.npmCdn = config.npmCdn; // for with locals custom theme, can be removed once with locals isnt' using eventBus anymore.\n\n this.eventBus = EventBus;\n this.api = new WidgetApi(config); // listens to a 'submit_email' event in the theme.\n\n EventBus.addEventListener(\"submit_email\", Widgets._cb);\n }\n /**\n * This function calls the {@link WidgetApi.upsertUser} method, and it renders\n * the widget if it is successful. Otherwise it shows the \"error\" widget.\n *\n * @param {Object} config Config details\n * @param {Object} config.user The user details\n * @param {string} config.user.id The user id\n * @param {string} config.user.accountId The user account id\n * @param {WidgetType} config.widgetType The content of the widget.\n * @param {EngagementMedium} config.engagementMedium How to display the widget.\n * @param {string} config.jwt the JSON Web Token (JWT) that is used to validate the data (can be disabled)\n * @param {HTMLElement | string | undefined} config.container Element to load the widget into\n * @param {string | undefined} config.trigger Trigger element for opening the popup widget\n *\n * @return {Promise&lt;WidgetResult>} json object if true, with a Widget and user details.\n */\n\n\n _createClass(Widgets, [{\n key: \"upsertUser\",\n value: function () {\n var _upsertUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(config) {\n var raw, clean, response;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n raw = config;\n clean = validateWidgetConfig(raw);\n _context.prev = 2;\n _context.next = 5;\n return this.api.upsertUser(clean);\n\n case 5:\n response = _context.sent;\n return _context.abrupt(\"return\", {\n widget: this._renderWidget(response, clean, {\n type: \"upsert\",\n user: clean.user || null,\n engagementMedium: config.engagementMedium,\n container: config.container,\n trigger: config.trigger\n }),\n user: response.user\n });\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context[\"catch\"](2);\n\n _log(_context.t0);\n\n if (_context.t0.apiErrorCode) {\n this._renderErrorWidget(_context.t0, config.engagementMedium);\n }\n\n throw _context.t0;\n\n case 14:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[2, 9]]);\n }));\n\n function upsertUser(_x) {\n return _upsertUser.apply(this, arguments);\n }\n\n return upsertUser;\n }()\n /**\n * This function calls the {@link WidgetApi.render} method, and it renders\n * the widget if it is successful. Otherwise it shows the \"error\" widget.\n *\n * @param {Object} config Config details\n * @param {Object} config.user The user details\n * @param {string} config.user.id The user id\n * @param {string} config.user.accountId The user account id\n * @param {WidgetType} config.widgetType The content of the widget.\n * @param {EngagementMedium} config.engagementMedium How to display the widget.\n * @param {string} config.jwt the JSON Web Token (JWT) that is used\n * to validate the data (can be disabled)\n *\n * @return {Promise&lt;WidgetResult>} json object if true, with a Widget and user details.\n */\n\n }, {\n key: \"render\",\n value: function () {\n var _render = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(config) {\n var raw, clean, response;\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n raw = config;\n clean = validatePasswordlessConfig(raw);\n _context2.prev = 2;\n _context2.next = 5;\n return this.api.render(clean);\n\n case 5:\n response = _context2.sent;\n return _context2.abrupt(\"return\", {\n widget: this._renderWidget(response, clean, {\n type: \"passwordless\",\n engagementMedium: clean.engagementMedium\n }),\n user: response.user\n });\n\n case 9:\n _context2.prev = 9;\n _context2.t0 = _context2[\"catch\"](2);\n\n if (_context2.t0.apiErrorCode) {\n this._renderErrorWidget(_context2.t0, clean.engagementMedium);\n }\n\n throw _context2.t0;\n\n case 13:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this, [[2, 9]]);\n }));\n\n function render(_x2) {\n return _render.apply(this, arguments);\n }\n\n return render;\n }()\n /**\n * Autofills a referral code into an element when someone has been referred.\n * Uses {@link WidgetApi.squatchReferralCookie} behind the scenes.\n *\n * @param selector Element class/id selector, or a callback function\n * @returns\n */\n\n }, {\n key: \"autofill\",\n value: function autofill(selector) {\n var input = selector;\n\n if (typeof input === \"function\") {\n this.api.squatchReferralCookie().then(function () {\n return input.apply(void 0, arguments);\n }).catch(function (ex) {\n _log(\"Autofill error\", ex);\n\n throw ex;\n });\n return;\n }\n\n if (typeof input !== \"string\") throw new Error(\"Autofill accepts a string or function\");\n var elems = document.querySelectorAll(input);\n var elem;\n\n if (elems.length > 0) {\n // Only use the first element found\n elem = elems[0];\n } else {\n _log(\"Element id/class or function missing\");\n\n throw new Error(\"Element id/class or function missing\");\n }\n\n this.api.squatchReferralCookie() //@ts-ignore\n .then(function (_ref) {\n var codes = _ref.codes;\n elem.value = codes[0];\n }).catch(function (ex) {\n throw ex;\n });\n }\n /**\n * Overrides the default function that submits the user email. If you have\n * Security enabled, the email needs to be signed before it's submitted.\n *\n * @param {function} fn Callback function for the 'submit_email' event.\n * @returns {void}\n */\n\n }, {\n key: \"submitEmail\",\n value: function submitEmail(fn) {\n EventBus.removeEventListener(\"submit_email\", Widgets._cb);\n EventBus.addEventListener(\"submit_email\", fn);\n }\n /**\n * @hidden\n * @param {Object} response The json object return from the WidgetApi\n * @param {Object} config Config details\n * @param {string} config.widgetType The widget type (REFERRER_WIDGET, CONVERSION_WIDGET)\n * @param {string} config.engagementMedium (POPUP, EMBED)\n * @returns {Widget} widget (PopupWidget or EmbedWidget)\n */\n\n }, {\n key: \"_renderWidget\",\n value: function _renderWidget(response, config, context) {\n _log(\"Rendering Widget...\");\n\n if (!response) throw new Error(\"Unable to get a response\");\n var widget;\n var displayOnLoad = !!config.displayOnLoad;\n var displayCTA = false;\n var opts = response.jsOptions || \"\";\n var params = {\n content: response.template,\n type: config.widgetType || opts.widget.defaultWidgetType,\n api: this.api,\n domain: this.domain,\n npmCdn: this.npmCdn,\n context: context\n };\n\n if (opts.widgetUrlMappings) {\n opts.widgetUrlMappings.forEach(function (rule) {\n if (Widgets._matchesUrl(rule.url)) {\n if (rule.widgetType !== \"CONVERSION_WIDGET\" || response.user.referredBy && response.user.referredBy.code) {\n displayOnLoad = rule.displayOnLoad;\n displayCTA = rule.showAsCTA;\n\n _log(\"Display \".concat(rule.widgetType, \" on \").concat(rule.url));\n } else {\n _log(\"Don't display \".concat(rule.widgetType, \" when no referral on widget rule match \").concat(rule.url));\n }\n }\n });\n }\n\n if (opts.conversionUrls) {\n opts.conversionUrls.forEach(function (rule) {\n if (response.user.referredBy && Widgets._matchesUrl(rule)) {\n _log(\"This is a conversion URL\", rule);\n }\n });\n }\n\n if (opts.fuelTankAutofillUrls) {\n _log(\"We found a fuel tank autofill!\");\n\n opts.fuelTankAutofillUrls.forEach(function (_ref2) {\n var url = _ref2.url,\n formSelector = _ref2.formSelector;\n\n if (Widgets._matchesUrl(url)) {\n _log(\"Fuel Tank URL matches\");\n\n if (response.user.referredBy && response.user.referredBy.code) {\n var formAutofill = document.querySelector(formSelector);\n\n if (formAutofill) {\n formAutofill.value = response.user.referredBy.referredReward.fuelTankCode || \"\";\n } else {\n _log(new Error(\"Element with id/class \".concat(formSelector, \" was not found.\")));\n }\n }\n }\n });\n }\n\n if (config.engagementMedium === \"EMBED\") {\n this._renderEmbedWidget(params, params.context.container);\n } else if (config.engagementMedium === \"POPUP\") {\n widget = this._renderPopupWidget(params);\n if (displayOnLoad) widget.open();\n } else {\n _log(\"display popup on load\");\n\n widget = new PopupWidget(params);\n widget.load();\n if (displayOnLoad) widget.open();\n }\n\n return widget;\n }\n }, {\n key: \"_renderPopupWidget\",\n value: function _renderPopupWidget(params) {\n var widget = new PopupWidget(params, params.context.trigger);\n\n var frame = widget._createFrame();\n\n widget.load(frame);\n return widget;\n }\n }, {\n key: \"_renderEmbedWidget\",\n value: function _renderEmbedWidget(params, container) {\n var widget = new EmbedWidget(params);\n\n var frame = widget._createFrame();\n\n widget.load(frame);\n }\n /**\n * @hidden\n * @param {Object} error The json object containing the error details\n * @param {string} em The engagementMedium\n * @returns {void}\n */\n\n }, {\n key: \"_renderErrorWidget\",\n value: function _renderErrorWidget(props) {\n var em = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"POPUP\";\n var apiErrorCode = props.apiErrorCode,\n rsCode = props.rsCode,\n message = props.message;\n\n _log(new Error(\"\".concat(apiErrorCode, \" (\").concat(rsCode, \") \").concat(message)));\n\n var params = {\n content: \"error\",\n rsCode: rsCode,\n api: this.api,\n domain: this.domain,\n npmCdn: this.npmCdn,\n type: \"ERROR_WIDGET\",\n context: {\n type: \"error\"\n }\n };\n var widget;\n\n if (em === \"EMBED\") {\n widget = new EmbedWidget(params);\n\n var frame = widget._createFrame();\n\n widget.load(frame);\n } else if (em === \"POPUP\") {\n widget = new PopupWidget(params);\n\n var _frame = widget._createFrame();\n\n widget.load(_frame);\n }\n }\n /**\n * @hidden\n * @param {string} rule A regular expression\n * @returns {boolean} true if rule matches Url, false otherwise\n */\n\n }], [{\n key: \"_matchesUrl\",\n value: function _matchesUrl(rule) {\n // If there were no matches, null is returned.\n return window.location.href.match(new RegExp(rule)) ? true : false;\n }\n /**\n * @hidden\n * @param {Object} target Object containing the target DOM element\n * @param {Widget} widget A widget (EmbedWidget, PopupWidget)\n * @param {Object} params An object with valid parameters\n * (e.g) {email:'email', firstName:'firstName'}\n * @returns {void}\n */\n\n }, {\n key: \"_cb\",\n value: function _cb(target, widget, params) {\n var paramsObj; // If params is a string, then it should be an email\n\n if (typeof params === \"string\" || params instanceof String) {\n paramsObj = {\n email: params\n };\n } else {\n paramsObj = params;\n } // TODO: Reload doesn't exist on all widget types\n\n\n widget.reload(paramsObj);\n }\n }]);\n\n return Widgets;\n}();\n\nexport { Widgets as default };"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts","index":1,"index2":44,"size":5772,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"multi ./src/squatch.ts","issuerId":34,"issuerName":"multi ./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"../../squatch","loc":"17:0-68"},{"moduleId":34,"moduleIdentifier":"multi ./src/squatch.ts","module":"multi ./src/squatch.ts","moduleName":"multi ./src/squatch.ts","type":"single entry","userRequest":"./src/squatch.ts","loc":"squatch[0]"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module exports are unknown"],"depth":1,"source":"// @ts-check\n\n/**\n * Squatch.js is the Referral SaaSquatch javascript SDK and a one-stop shop to\n * integrate a referral program into your website or web app.\n * It can show referral widgets on any website, track users, generate unique\n * referral short links and referral codes, and more.\n *\n * @module squatch\n */\nimport debug from \"debug\";\nimport Widgets from \"./widgets/Widgets\";\nimport EmbedWidget from \"./widgets/EmbedWidget\";\nimport PopupWidget from \"./widgets/PopupWidget\"; // import IREmbedWidget from \"./widgets/IREmbedWidget\";\n// import IRPopupWidget from \"./widgets/IRPopupWidget\";\n\nimport WidgetApi from \"./api/WidgetApi\";\nimport EventsApi from \"./api/EventsApi\";\nimport asyncLoad from \"./async\";\nimport { validateConfig } from \"./utils/validate\";\nimport { _pushCookie } from \"./utils/cookieUtils\";\nimport { _getAutoConfig } from \"./utils/utmUtils\";\nimport { DeclarativeEmbedWidget, DeclarativePopupWidget } from \"./widgets/declarative/DeclarativeEmbedWidget\";\nexport * from \"./types\";\nexport * from \"./docs\"; // @ts-ignore\n// debug.disable(\"squatch-js*\");\n\n/** @hidden */\n\nvar _log = debug(\"squatch-js\");\n\nexport { Widgets, EmbedWidget, PopupWidget // IREmbedWidget,\n// IRPopupWidget,\n, DeclarativeEmbedWidget, DeclarativePopupWidget, WidgetApi };\n/** @hidden */\n\nvar _api = null;\n/** @hidden */\n\nvar _widgets = null;\n/** @hidden */\n\nvar _events = null;\n/**\n * A static instance of the {@link WidgetApi} created when you call {@link #init init}.\n *\n * Read the {@link WidgetApi} docs.\n *\n * @returns WidgetApi static instance\n */\n\nexport function api() {\n return _api;\n}\n/**\n * A static instance of the {@link Widgets} created when you call {@link #init init}.\n *\n * Read the {@link Widgets} docs.\n *\n * @returns static instance\n */\n\nexport function widgets() {\n return _widgets;\n}\n/**\n * A static instance of the {@link EventsApi} created when you call {@link #init init}.\n *\n * Read the {@link EventsApi} docs.\n *\n * @returns EventsApi static instance\n */\n\nexport function events() {\n return _events;\n}\n/**\n * Entry-point for high level API to render a widget using the instance of {@link Widgets} created when you call {@link #init init}.\n */\n\nexport function widget(widgetConfig) {\n var _widgets2;\n\n return (_widgets2 = widgets()) === null || _widgets2 === void 0 ? void 0 : _widgets2.render(widgetConfig);\n}\n/**\n * Extracts widget configuration from `_saasquatchExtra` UTM parameter. Initialises `squatch` and renders the widget as a {@link PopupWidget} via static instanct of {@link Widgets}.\n */\n\nexport function _auto(configIn) {\n var configs = _getAutoConfig(configIn);\n\n if (configs) {\n var _widgets3;\n\n var squatchConfig = configs.squatchConfig,\n widgetConfig = configs.widgetConfig;\n init(squatchConfig);\n return (_widgets3 = widgets()) === null || _widgets3 === void 0 ? void 0 : _widgets3.render(widgetConfig);\n }\n}\n/**\n * Initializes the static `squatch` global. This sets up:\n *\n * - `squatch.api()` a static instance of the {@link WidgetApi}\n * - `squatch.widgets()` a static instance of {@link Widgets}\n * - `squatch.events()` a static instance of {@link EventsApi}\n *\n * @param config Configuration details\n *\n * @example\n * squatch.init({tenantAlias:'test_basbtabstq51v'});\n */\n\nexport function init(configIn) {\n var raw = configIn;\n var config = validateConfig(raw);\n\n if (config.tenantAlias.match(\"^test\") || config.debug) {\n debug.enable(\"squatch-js*\");\n }\n\n _log(\"initializing ...\");\n\n _api = new WidgetApi(config);\n _widgets = new Widgets(config);\n _events = new EventsApi(config);\n\n _log(\"Widget API instance\", _api);\n\n _log(\"Widgets instance\", _widgets);\n\n _log(\"Events API instance\", _events);\n}\n/**\n * Squatch.js can't start safely making operations until it's \"ready\". This\n * function detects that state.\n *\n * @param fn A callback once Squatch.js is ready.\n *\n * @example\n * squatch.ready(function() {\n * console.log(\"ready!\");\n * squatch.api().upsertUser();\n * });\n */\n\nexport function ready(fn) {\n fn();\n}\n/**\n * Autofills a referral code into an element when someone has been referred.\n * Uses {@link WidgetApi.squatchReferralCookie} behind the scenes.\n *\n * @param {string} selector Element class/id\n * @returns {void}\n */\n\nexport function autofill(selector) {\n // @ts-ignore -- will throw occasionally throw a null pointer exception at runtime\n widgets().autofill(selector);\n}\n/**\n * Overrides the default function that submits the user email. If you have\n * Security enabled, the email needs to be signed before it's submitted.\n *\n * @param {function} fn Callback function for the 'submit_email' event.\n * @returns {void}\n *\n * @example\n * squatch.submitEmail(function(target, widget, email) {\n * // Sign email and generate jwt token\n * var jwt = 'token';\n * widget.reload(email, jwt);\n * });\n */\n\nexport function submitEmail(fn) {\n // @ts-ignore -- will throw occasionally throw a null pointer exception at runtime\n widgets().submitEmail(fn);\n}\n/**\n * Manually set the _saasquatch cookie as a 1st party cookie if available as a URL parameter on the current page.\n * This runs automatically immediately when squatch-js is loaded, except when window.SaaSquatchDoNotAutoDrop is true.\n * Use this function manually if you have a single page application or custom routing that causes the `_saasquatch` URL parameter to not be set when Squatch.js loads.\n \n * It is safe to run this function multiple times. If the `_saasquatch` URL parameter is invalid or missing it will not clear the 1st party cookie.\n \n *\n * @returns {void}\n *\n * @example\n * squatch.pushCookie();\n */\n\nexport function pushCookie() {\n _pushCookie();\n}\n\nif (typeof document !== \"undefined\" && !window.SaaSquatchDoNotAutoDrop) {\n pushCookie();\n}\n\nif (typeof document !== \"undefined\") asyncLoad();"},{"id":28,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/types.ts","name":"./src/types.ts","index":5,"index2":3,"size":0,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./types","loc":"24:0-24"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./types","loc":"24:0-24"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":2,"source":""},{"id":29,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/docs.ts","name":"./src/docs.ts","index":6,"index2":4,"size":186,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./docs","loc":"25:0-23"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./docs","loc":"25:0-23"}],"usedExports":["help"],"providedExports":["help"],"optimizationBailout":[],"depth":2,"source":"// @ts-check\nexport function help() {\n console.log(\"Having trouble using Squatch.js? Go to https://docs.referralsaasquatch.com/developer/ for tutorials, references and error codes.\");\n}"},{"id":30,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","name":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","index":35,"index2":34,"size":1129,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","issuerId":null,"issuerName":"./src/widgets/declarative/DeclarativeWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/wrapNativeSuper","loc":"8:0-70"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/wrapNativeSuper","loc":"250:16-32"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"var getPrototypeOf = require(\"./getPrototypeOf\");\n\nvar setPrototypeOf = require(\"./setPrototypeOf\");\n\nvar isNativeFunction = require(\"./isNativeFunction\");\n\nvar construct = require(\"./construct\");\n\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n\n return _wrapNativeSuper(Class);\n}\n\nmodule.exports = _wrapNativeSuper;"},{"id":31,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/objectWithoutProperties.js","name":"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js","index":40,"index2":36,"size":665,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","issuerId":23,"issuerName":"./src/utils/utmUtils.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":23,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","name":"./src/utils/utmUtils.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/objectWithoutProperties","loc":"2:0-86"},{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/objectWithoutProperties","loc":"47:13-37"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose\");\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i &lt; sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutProperties;"},{"id":32,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","name":"./src/api/EventsApi.ts","index":44,"index2":42,"size":2704,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./api/EventsApi","loc":"18:0-40"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./api/EventsApi","loc":"127:16-25"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":2,"source":"import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport { doPost } from \"../utils/io\";\nimport { isObject, assertProp, validateConfig } from \"../utils/validate\";\n\n/**\n *\n * The EventsApi class is a wrapper around the open endpoints of the SaaSquatch REST API.\n *\n */\nvar EventsApi = /*#__PURE__*/function () {\n /**\n * Initialize a new {@link EventsApi} instance.\n *\n * @param {ConfigOptions} config Config details\n *\n * @example &lt;caption>Browser example&lt;/caption>\n * var squatchApi = new squatch.EventsApi({tenantAlias:'test_12b5bo1b25125'});\n *\n * @example &lt;caption>Browserify/Webpack example&lt;/caption>\n * var EventsApi = require('@saasquatch/squatch-js').EventsApi;\n * var squatchApi = new EventsApi({tenantAlias:'test_12b5bo1b25125'});\n *\n * @example &lt;caption>Babel+Browserify/Webpack example&lt;/caption>\n * import {EventsApi} from '@saasquatch/squatch-js';\n * let squatchApi = new EventsApi({tenantAlias:'test_12b5bo1b25125'});\n */\n function EventsApi(config) {\n _classCallCheck(this, EventsApi);\n\n var raw = config; // Flags that we need to validate anything we use from this type\n\n var clean = validateConfig(raw);\n this.tenantAlias = clean.tenantAlias;\n this.domain = clean.domain;\n }\n /**\n * Track an event for a user\n *\n * @param params Parameters for request\n * @param options.jwt the JSON Web Token (JWT) that is used to authenticate the user\n *\n * @return An ID to confirm the event has been accepted for asynchronous processing\n */\n\n\n _createClass(EventsApi, [{\n key: \"track\",\n value: function track(params, options) {\n var raw = params;\n var rawOpts = options;\n\n var body = _validateEvent(raw);\n\n var _validateTrackOptions2 = _validateTrackOptions(rawOpts),\n jwt = _validateTrackOptions2.jwt;\n\n var ta = encodeURIComponent(this.tenantAlias);\n var userId = encodeURIComponent(body.userId);\n var accountId = encodeURIComponent(body.accountId);\n var path = \"/api/v1/\".concat(ta, \"/open/account/\").concat(accountId, \"/user/\").concat(userId, \"/events\");\n var url = this.domain + path;\n return doPost(url, JSON.stringify(body), jwt);\n }\n }]);\n\n return EventsApi;\n}();\n\nexport { EventsApi as default };\n\nfunction _validateEvent(raw) {\n if (!assertProp(raw, \"accountId\", \"events\", \"userId\")) throw new Error(\"Fields required\");\n if (!Array.isArray(raw.events)) throw new Error(\"'events' should be an array\"); // TODO: Better type checking\n\n return raw;\n}\n\nfunction _validateTrackOptions(raw) {\n if (!isObject(raw)) throw new Error(\"'options' should be an object\");\n return raw;\n}"},{"id":33,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/async.ts","name":"./src/async.ts","index":45,"index2":43,"size":580,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./async","loc":"19:0-32"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./async","loc":"204:37-46"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":2,"source":"/** @hidden */\nexport default function asyncLoad() {\n var loaded = window.squatch || null;\n var cached = window._squatch || null;\n\n if (loaded && cached) {\n var ready = cached.ready || [];\n ready.forEach(function (cb) {\n return setTimeout(function () {\n return cb();\n }, 0);\n });\n setTimeout(function () {\n return window.squatch._auto();\n }, 0); // @ts-ignore -- intetionally deletes `_squatch` to cleanup initialization\n\n window._squatch = undefined;\n\n try {\n delete window._squatch;\n } catch (e) {\n throw e;\n }\n }\n}"},{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts","index":0,"index2":45,"size":28,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":null,"issuerId":null,"issuerName":null,"issuerPath":null,"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":null,"moduleIdentifier":null,"module":null,"moduleName":null,"type":"multi entry"},{"moduleId":null,"moduleIdentifier":null,"module":null,"moduleName":null,"type":"multi entry"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":0},{"id":35,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/common.js","name":"./node_modules/debug/src/common.js","index":3,"index2":1,"size":5929,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/browser.js","issuerId":3,"issuerName":"./node_modules/debug/src/browser.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":3,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/browser.js","name":"./node_modules/debug/src/browser.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":3,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/browser.js","module":"./node_modules/debug/src/browser.js","moduleName":"./node_modules/debug/src/browser.js","type":"cjs require","userRequest":"./common","loc":"167:17-36"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"\"use strict\";\n\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\nfunction setup(env) {\n createDebug.debug = createDebug;\n createDebug.default = createDebug;\n createDebug.coerce = coerce;\n createDebug.disable = disable;\n createDebug.enable = enable;\n createDebug.enabled = enabled;\n createDebug.humanize = require('ms');\n Object.keys(env).forEach(function (key) {\n createDebug[key] = env[key];\n });\n /**\n * Active `debug` instances.\n */\n\n createDebug.instances = [];\n /**\n * The currently active debug mode names, and names to skip.\n */\n\n createDebug.names = [];\n createDebug.skips = [];\n /**\n * Map of special \"%n\" handling functions, for the debug \"format\" argument.\n *\n * Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n */\n\n createDebug.formatters = {};\n /**\n * Selects a color for a debug namespace\n * @param {String} namespace The namespace string for the for the debug instance to be colored\n * @return {Number|String} An ANSI color code for the given namespace\n * @api private\n */\n\n function selectColor(namespace) {\n var hash = 0;\n\n for (var i = 0; i &lt; namespace.length; i++) {\n hash = (hash &lt;&lt; 5) - hash + namespace.charCodeAt(i);\n hash |= 0; // Convert to 32bit integer\n }\n\n return createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n }\n\n createDebug.selectColor = selectColor;\n /**\n * Create a debugger with the given `namespace`.\n *\n * @param {String} namespace\n * @return {Function}\n * @api public\n */\n\n function createDebug(namespace) {\n var prevTime;\n\n function debug() {\n // Disabled?\n if (!debug.enabled) {\n return;\n }\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key &lt; _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var self = debug; // Set `diff` timestamp\n\n var curr = Number(new Date());\n var ms = curr - (prevTime || curr);\n self.diff = ms;\n self.prev = prevTime;\n self.curr = curr;\n prevTime = curr;\n args[0] = createDebug.coerce(args[0]);\n\n if (typeof args[0] !== 'string') {\n // Anything else let's inspect with %O\n args.unshift('%O');\n } // Apply any `formatters` transformations\n\n\n var index = 0;\n args[0] = args[0].replace(/%([a-zA-Z%])/g, function (match, format) {\n // If we encounter an escaped % then don't increase the array index\n if (match === '%%') {\n return match;\n }\n\n index++;\n var formatter = createDebug.formatters[format];\n\n if (typeof formatter === 'function') {\n var val = args[index];\n match = formatter.call(self, val); // Now we need to remove `args[index]` since it's inlined in the `format`\n\n args.splice(index, 1);\n index--;\n }\n\n return match;\n }); // Apply env-specific formatting (colors, etc.)\n\n createDebug.formatArgs.call(self, args);\n var logFn = self.log || createDebug.log;\n logFn.apply(self, args);\n }\n\n debug.namespace = namespace;\n debug.enabled = createDebug.enabled(namespace);\n debug.useColors = createDebug.useColors();\n debug.color = selectColor(namespace);\n debug.destroy = destroy;\n debug.extend = extend; // Debug.formatArgs = formatArgs;\n // debug.rawLog = rawLog;\n // env-specific initialization logic for debug instances\n\n if (typeof createDebug.init === 'function') {\n createDebug.init(debug);\n }\n\n createDebug.instances.push(debug);\n return debug;\n }\n\n function destroy() {\n var index = createDebug.instances.indexOf(this);\n\n if (index !== -1) {\n createDebug.instances.splice(index, 1);\n return true;\n }\n\n return false;\n }\n\n function extend(namespace, delimiter) {\n return createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n }\n /**\n * Enables a debug mode by namespaces. This can include modes\n * separated by a colon and wildcards.\n *\n * @param {String} namespaces\n * @api public\n */\n\n\n function enable(namespaces) {\n createDebug.save(namespaces);\n createDebug.names = [];\n createDebug.skips = [];\n var i;\n var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n var len = split.length;\n\n for (i = 0; i &lt; len; i++) {\n if (!split[i]) {\n // ignore empty strings\n continue;\n }\n\n namespaces = split[i].replace(/\\*/g, '.*?');\n\n if (namespaces[0] === '-') {\n createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n } else {\n createDebug.names.push(new RegExp('^' + namespaces + '$'));\n }\n }\n\n for (i = 0; i &lt; createDebug.instances.length; i++) {\n var instance = createDebug.instances[i];\n instance.enabled = createDebug.enabled(instance.namespace);\n }\n }\n /**\n * Disable debug output.\n *\n * @api public\n */\n\n\n function disable() {\n createDebug.enable('');\n }\n /**\n * Returns true if the given mode name is enabled, false otherwise.\n *\n * @param {String} name\n * @return {Boolean}\n * @api public\n */\n\n\n function enabled(name) {\n if (name[name.length - 1] === '*') {\n return true;\n }\n\n var i;\n var len;\n\n for (i = 0, len = createDebug.skips.length; i &lt; len; i++) {\n if (createDebug.skips[i].test(name)) {\n return false;\n }\n }\n\n for (i = 0, len = createDebug.names.length; i &lt; len; i++) {\n if (createDebug.names[i].test(name)) {\n return true;\n }\n }\n\n return false;\n }\n /**\n * Coerce `val`.\n *\n * @param {Mixed} val\n * @return {Mixed}\n * @api private\n */\n\n\n function coerce(val) {\n if (val instanceof Error) {\n return val.stack || val.message;\n }\n\n return val;\n }\n\n createDebug.enable(createDebug.load());\n return createDebug;\n}\n\nmodule.exports = setup;\n\n"},{"id":36,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/ms/index.js","name":"./node_modules/ms/index.js","index":4,"index2":0,"size":3023,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/common.js","issuerId":35,"issuerName":"./node_modules/debug/src/common.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":3,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/browser.js","name":"./node_modules/debug/src/browser.js"},{"id":35,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/common.js","name":"./node_modules/debug/src/common.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":35,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/common.js","module":"./node_modules/debug/src/common.js","moduleName":"./node_modules/debug/src/common.js","type":"cjs require","userRequest":"ms","loc":"14:25-38"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n"},{"id":37,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/regenerator-runtime/runtime.js","name":"./node_modules/regenerator-runtime/runtime.js","index":12,"index2":8,"size":24189,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/regenerator/index.js","issuerId":0,"issuerName":"./node_modules/@babel/runtime/regenerator/index.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts"},{"id":0,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/regenerator/index.js","name":"./node_modules/@babel/runtime/regenerator/index.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":0,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/regenerator/index.js","module":"./node_modules/@babel/runtime/regenerator/index.js","moduleName":"./node_modules/@babel/runtime/regenerator/index.js","type":"cjs require","userRequest":"regenerator-runtime","loc":"1:17-47"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] =\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return PromiseImpl.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise&lt;{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList),\n PromiseImpl\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i &lt; iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc &lt;= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev &lt; entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev &lt; entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev &lt; entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev &lt; entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc &lt;= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev &lt; entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc &lt;= arg &&\n arg &lt;= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n"},{"id":38,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/superPropBase.js","name":"./node_modules/@babel/runtime/helpers/superPropBase.js","index":23,"index2":19,"size":289,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/get.js","issuerId":20,"issuerName":"./node_modules/@babel/runtime/helpers/get.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"},{"id":20,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/get.js","name":"./node_modules/@babel/runtime/helpers/get.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":20,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/get.js","module":"./node_modules/@babel/runtime/helpers/get.js","moduleName":"./node_modules/@babel/runtime/helpers/get.js","type":"cjs require","userRequest":"./superPropBase","loc":"1:20-46"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"var getPrototypeOf = require(\"./getPrototypeOf\");\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}\n\nmodule.exports = _superPropBase;"},{"id":39,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/isNativeFunction.js","name":"./node_modules/@babel/runtime/helpers/isNativeFunction.js","index":36,"index2":31,"size":140,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","issuerId":30,"issuerName":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts"},{"id":30,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","name":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":30,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","module":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","moduleName":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","type":"cjs require","userRequest":"./isNativeFunction","loc":"5:23-52"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":5,"source":"function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\n\nmodule.exports = _isNativeFunction;"},{"id":40,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/construct.js","name":"./node_modules/@babel/runtime/helpers/construct.js","index":37,"index2":33,"size":659,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","issuerId":30,"issuerName":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts"},{"id":30,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","name":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":30,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","module":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","moduleName":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","type":"cjs require","userRequest":"./construct","loc":"7:16-38"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":5,"source":"var setPrototypeOf = require(\"./setPrototypeOf\");\n\nvar isNativeReflectConstruct = require(\"./isNativeReflectConstruct\");\n\nfunction _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n module.exports = _construct = Reflect.construct;\n } else {\n module.exports = _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n}\n\nmodule.exports = _construct;"},{"id":41,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js","name":"./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js","index":38,"index2":32,"size":394,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/construct.js","issuerId":40,"issuerName":"./node_modules/@babel/runtime/helpers/construct.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts"},{"id":30,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","name":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js"},{"id":40,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/construct.js","name":"./node_modules/@babel/runtime/helpers/construct.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":40,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/construct.js","module":"./node_modules/@babel/runtime/helpers/construct.js","moduleName":"./node_modules/@babel/runtime/helpers/construct.js","type":"cjs require","userRequest":"./isNativeReflectConstruct","loc":"3:31-68"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":6,"source":"function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nmodule.exports = _isNativeReflectConstruct;"},{"id":42,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","name":"./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","index":41,"index2":35,"size":384,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/objectWithoutProperties.js","issuerId":31,"issuerName":"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":23,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","name":"./src/utils/utmUtils.ts"},{"id":31,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/objectWithoutProperties.js","name":"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":31,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/objectWithoutProperties.js","module":"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js","moduleName":"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js","type":"cjs require","userRequest":"./objectWithoutPropertiesLoose","loc":"1:35-76"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i &lt; sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutPropertiesLoose;"}],"filteredModules":0,"origins":[{"module":"","moduleIdentifier":"","moduleName":"","loc":"squatch","request":null,"reasons":[]}]}],"modules":[{"id":0,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/regenerator/index.js","name":"./node_modules/@babel/runtime/regenerator/index.js","index":11,"index2":9,"size":49,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","issuerId":26,"issuerName":"./src/widgets/Widgets.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"3:0-61"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"18:45-64"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"20:11-30"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"86:43-62"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"92:11-30"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"148:44-63"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"150:11-30"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"205:43-62"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"207:11-30"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"8:0-61"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"148:70-89"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"150:15-34"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"8:0-61"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"78:50-69"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"82:15-34"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"117:80-99"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"120:25-44"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"10:0-61"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"123:52-71"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"126:17-36"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"175:67-86"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"178:15-34"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"4:0-61"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"116:65-84"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"118:15-34"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"10:0-61"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"107:69-88"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"111:15-34"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"173:63-82"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"174:15-34"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/regenerator","loc":"4:0-61"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"76:56-75"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"78:15-34"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"146:52-71"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/regenerator","loc":"148:15-34"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"module.exports = require(\"regenerator-runtime\");\n"},{"id":1,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/validate.ts","name":"./src/utils/validate.ts","index":14,"index2":12,"size":2082,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"../utils/validate","loc":"13:0-117"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/validate","loc":"43:16-30"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/validate","loc":"68:18-38"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/validate","loc":"110:18-44"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/validate","loc":"119:105-119"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"../utils/validate","loc":"8:0-45"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"55:11-19"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony side effect evaluation","userRequest":"../utils/validate","loc":"5:0-45"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"27:8-16"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"../../utils/validate","loc":"20:0-71"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/validate","loc":"46:39-53"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/validate","loc":"47:16-31"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/validate","loc":"61:39-53"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/validate","loc":"62:16-31"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/validate","loc":"78:105-119"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/validate","loc":"81:105-119"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"../utils/validate","loc":"11:0-101"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"45:17-31"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"83:24-44"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"153:24-50"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./utils/validate","loc":"20:0-50"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./utils/validate","loc":"117:15-29"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony side effect evaluation","userRequest":"../utils/validate","loc":"4:0-73"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"33:16-30"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"73:7-17"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony import specifier","userRequest":"../utils/validate","loc":"80:7-15"}],"usedExports":["DEFAULT_DOMAIN","DEFAULT_NPM_CDN","assertProp","hasProps","isObject","validateConfig","validateLocale","validatePasswordlessConfig","validateWidgetConfig"],"providedExports":["DEFAULT_DOMAIN","DEFAULT_NPM_CDN","hasProps","isObject","assertProp","validateConfig","validateLocale","validateWidgetConfig","validatePasswordlessConfig"],"optimizationBailout":[],"depth":2,"source":"import _typeof from \"@babel/runtime/helpers/typeof\";\nexport var DEFAULT_DOMAIN = \"https://app.referralsaasquatch.com\";\nexport var DEFAULT_NPM_CDN = \"https://fast.ssqt.io/npm\";\nexport function hasProps(object, props) {\n if (!isObject(object)) return false;\n var keys = Object.keys(object);\n if (!Array.isArray(props)) return object.hasOwnProperty(props);\n var hasKeys = props.reduce(function (acc, cur) {\n return acc && keys.indexOf(cur) >= 0;\n }, true);\n return hasKeys;\n}\nexport function isObject(x) {\n return _typeof(x) === \"object\";\n}\nexport function assertProp(object) {\n for (var _len = arguments.length, props = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key &lt; _len; _key++) {\n props[_key - 1] = arguments[_key];\n }\n\n props.forEach(function (p) {\n if (!hasProps(object, props)) throw new Error(p + \" is required\");\n });\n return true;\n}\nexport function validateConfig(raw) {\n if (!isObject(raw)) throw new Error(\"config must be an object\");\n if (!hasProps(raw, \"tenantAlias\") || typeof raw.tenantAlias !== \"string\") throw new Error(\"tenantAlias not provided\");\n var tenantAlias = raw.tenantAlias;\n var domain = hasProps(raw, \"domain\") && typeof raw.domain === \"string\" && raw.domain || DEFAULT_DOMAIN;\n var debug = hasProps(raw, \"debug\") && typeof raw.debug === \"boolean\" && raw.debug || false;\n var npmCdn = hasProps(raw, \"npmCdn\") && typeof raw.npmCdn === \"string\" && raw.npmCdn || DEFAULT_NPM_CDN;\n return {\n tenantAlias: tenantAlias,\n domain: domain,\n debug: debug,\n npmCdn: npmCdn\n };\n}\nexport function validateLocale(locale) {\n if (locale && /^[a-z]{2}_(?:[A-Z]{2}|[0-9]{3})$/.test(locale)) {\n return locale;\n }\n}\nexport function validateWidgetConfig(raw) {\n if (!isObject(raw)) throw new Error(\"Widget properties must be an object\");\n if (!assertProp(raw, \"user\")) throw new Error(\"Required properties missing.\"); // TODO: This should be better type checked\n\n return raw;\n}\nexport function validatePasswordlessConfig(raw) {\n if (!isObject(raw)) throw new Error(\"Widget properties must be an object\");\n return raw;\n}"},{"id":2,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/asyncToGenerator.js","name":"./node_modules/@babel/runtime/helpers/asyncToGenerator.js","index":8,"index2":5,"size":809,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","issuerId":26,"issuerName":"./src/widgets/Widgets.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"2:0-72"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"18:13-30"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"86:11-28"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"148:12-29"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"205:11-28"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"1:0-72"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"148:38-55"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"1:0-72"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"78:18-35"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"117:48-65"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"2:0-72"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"123:20-37"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"175:35-52"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"1:0-72"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"116:33-50"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"1:0-72"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"107:37-54"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"173:31-48"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"1:0-72"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"76:24-41"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/asyncToGenerator","loc":"146:20-37"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {\n try {\n var info = gen[key](arg);\n var value = info.value;\n } catch (error) {\n reject(error);\n return;\n }\n\n if (info.done) {\n resolve(value);\n } else {\n Promise.resolve(value).then(_next, _throw);\n }\n}\n\nfunction _asyncToGenerator(fn) {\n return function () {\n var self = this,\n args = arguments;\n return new Promise(function (resolve, reject) {\n var gen = fn.apply(self, args);\n\n function _next(value) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value);\n }\n\n function _throw(err) {\n asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err);\n }\n\n _next(undefined);\n });\n };\n}\n\nmodule.exports = _asyncToGenerator;"},{"id":3,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/browser.js","name":"./node_modules/debug/src/browser.js","index":2,"index2":2,"size":6285,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"9:0-26"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"debug","loc":"11:11-16"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"21:0-26"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"debug","loc":"25:11-16"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"8:0-26"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony import specifier","userRequest":"debug","loc":"12:11-16"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"21:0-26"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"debug","loc":"25:11-16"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"6:0-26"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"debug","loc":"11:11-16"},{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"8:0-26"},{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony import specifier","userRequest":"debug","loc":"12:11-16"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"debug","loc":"1:0-26"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"debug","loc":"4:11-16"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"5:0-26"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"debug","loc":"13:11-16"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"debug","loc":"11:0-26"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"debug","loc":"30:11-16"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"debug","loc":"120:4-9"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":2,"source":"\"use strict\";\n\nfunction _typeof(obj) { if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\n/* eslint-env browser */\n\n/**\n * This is the web browser implementation of `debug()`.\n */\nexports.log = log;\nexports.formatArgs = formatArgs;\nexports.save = save;\nexports.load = load;\nexports.useColors = useColors;\nexports.storage = localstorage();\n/**\n * Colors.\n */\n\nexports.colors = ['#0000CC', '#0000FF', '#0033CC', '#0033FF', '#0066CC', '#0066FF', '#0099CC', '#0099FF', '#00CC00', '#00CC33', '#00CC66', '#00CC99', '#00CCCC', '#00CCFF', '#3300CC', '#3300FF', '#3333CC', '#3333FF', '#3366CC', '#3366FF', '#3399CC', '#3399FF', '#33CC00', '#33CC33', '#33CC66', '#33CC99', '#33CCCC', '#33CCFF', '#6600CC', '#6600FF', '#6633CC', '#6633FF', '#66CC00', '#66CC33', '#9900CC', '#9900FF', '#9933CC', '#9933FF', '#99CC00', '#99CC33', '#CC0000', '#CC0033', '#CC0066', '#CC0099', '#CC00CC', '#CC00FF', '#CC3300', '#CC3333', '#CC3366', '#CC3399', '#CC33CC', '#CC33FF', '#CC6600', '#CC6633', '#CC9900', '#CC9933', '#CCCC00', '#CCCC33', '#FF0000', '#FF0033', '#FF0066', '#FF0099', '#FF00CC', '#FF00FF', '#FF3300', '#FF3333', '#FF3366', '#FF3399', '#FF33CC', '#FF33FF', '#FF6600', '#FF6633', '#FF9900', '#FF9933', '#FFCC00', '#FFCC33'];\n/**\n * Currently only WebKit-based Web Inspectors, Firefox >= v31,\n * and the Firebug extension (any Firefox version) are known\n * to support \"%c\" CSS customizations.\n *\n * TODO: add a `localStorage` variable to explicitly enable/disable colors\n */\n// eslint-disable-next-line complexity\n\nfunction useColors() {\n // NB: In an Electron preload script, document will be defined but not fully\n // initialized. Since we know we're in Chrome, we'll just detect this case\n // explicitly\n if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) {\n return true;\n } // Internet Explorer and Edge do not support colors.\n\n\n if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\\/(\\d+)/)) {\n return false;\n } // Is webkit? http://stackoverflow.com/a/16459606/376773\n // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632\n\n\n return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance || // Is firebug? http://stackoverflow.com/a/398120/376773\n typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) || // Is firefox >= v31?\n // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages\n typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\\/(\\d+)/) && parseInt(RegExp.$1, 10) >= 31 || // Double check webkit in userAgent just in case we are in a worker\n typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\\/(\\d+)/);\n}\n/**\n * Colorize log arguments if enabled.\n *\n * @api public\n */\n\n\nfunction formatArgs(args) {\n args[0] = (this.useColors ? '%c' : '') + this.namespace + (this.useColors ? ' %c' : ' ') + args[0] + (this.useColors ? '%c ' : ' ') + '+' + module.exports.humanize(this.diff);\n\n if (!this.useColors) {\n return;\n }\n\n var c = 'color: ' + this.color;\n args.splice(1, 0, c, 'color: inherit'); // The final \"%c\" is somewhat tricky, because there could be other\n // arguments passed either before or after the %c, so we need to\n // figure out the correct index to insert the CSS into\n\n var index = 0;\n var lastC = 0;\n args[0].replace(/%[a-zA-Z%]/g, function (match) {\n if (match === '%%') {\n return;\n }\n\n index++;\n\n if (match === '%c') {\n // We only are interested in the *last* %c\n // (the user may have provided their own)\n lastC = index;\n }\n });\n args.splice(lastC, 0, c);\n}\n/**\n * Invokes `console.log()` when available.\n * No-op when `console.log` is not a \"function\".\n *\n * @api public\n */\n\n\nfunction log() {\n var _console;\n\n // This hackery is required for IE8/9, where\n // the `console.log` function doesn't have 'apply'\n return (typeof console === \"undefined\" ? \"undefined\" : _typeof(console)) === 'object' && console.log && (_console = console).log.apply(_console, arguments);\n}\n/**\n * Save `namespaces`.\n *\n * @param {String} namespaces\n * @api private\n */\n\n\nfunction save(namespaces) {\n try {\n if (namespaces) {\n exports.storage.setItem('debug', namespaces);\n } else {\n exports.storage.removeItem('debug');\n }\n } catch (error) {// Swallow\n // XXX (@Qix-) should we be logging these?\n }\n}\n/**\n * Load `namespaces`.\n *\n * @return {String} returns the previously persisted debug modes\n * @api private\n */\n\n\nfunction load() {\n var r;\n\n try {\n r = exports.storage.getItem('debug');\n } catch (error) {} // Swallow\n // XXX (@Qix-) should we be logging these?\n // If debug isn't set in LS, and we're in Electron, try to load $DEBUG\n\n\n if (!r && typeof process !== 'undefined' && 'env' in process) {\n r = process.env.DEBUG;\n }\n\n return r;\n}\n/**\n * Localstorage attempts to return the localstorage.\n *\n * This is necessary because safari throws\n * when a user disables cookies/localstorage\n * and you attempt to access it.\n *\n * @return {LocalStorage}\n * @api private\n */\n\n\nfunction localstorage() {\n try {\n // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context\n // The Browser also has localStorage in the global context.\n return localStorage;\n } catch (error) {// Swallow\n // XXX (@Qix-) should we be logging these?\n }\n}\n\nmodule.exports = require('./common')(exports);\nvar formatters = module.exports.formatters;\n/**\n * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default.\n */\n\nformatters.j = function (v) {\n try {\n return JSON.stringify(v);\n } catch (error) {\n return '[UnexpectedJSONParseError]: ' + error.message;\n }\n};\n\n"},{"id":4,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/classCallCheck.js","name":"./node_modules/@babel/runtime/helpers/classCallCheck.js","index":9,"index2":6,"size":196,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","issuerId":26,"issuerName":"./src/widgets/Widgets.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"2:0-68"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"46:4-19"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"2:0-68"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"40:4-19"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"3:0-68"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"39:4-19"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"2:0-68"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"23:4-19"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"1:0-68"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"23:4-19"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"1:0-68"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"2:0-68"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"20:4-19"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"31:4-19"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"68:4-19"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"2:0-68"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"42:4-19"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"1:0-68"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/classCallCheck","loc":"29:4-19"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nmodule.exports = _classCallCheck;"},{"id":5,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/createClass.js","name":"./node_modules/@babel/runtime/helpers/createClass.js","index":10,"index2":7,"size":596,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","issuerId":26,"issuerName":"./src/widgets/Widgets.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"3:0-62"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"63:2-14"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"3:0-62"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"45:2-14"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"4:0-62"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"64:2-14"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"3:0-62"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"38:2-14"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"2:0-62"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"34:2-14"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"2:0-62"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"3:0-62"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"28:2-14"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"73:2-14"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"75:2-14"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"3:0-62"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"73:2-14"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/createClass","loc":"2:0-62"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/createClass","loc":"47:2-14"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"function _defineProperties(target, props) {\n for (var i = 0; i &lt; props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nfunction _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}\n\nmodule.exports = _createClass;"},{"id":6,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/getPrototypeOf.js","name":"./node_modules/@babel/runtime/helpers/getPrototypeOf.js","index":24,"index2":18,"size":267,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","issuerId":16,"issuerName":"./src/widgets/EmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"7:0-68"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"16:147-162"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"16:230-245"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"244:18-33"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"7:0-68"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"16:147-162"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"16:230-245"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"241:18-33"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"5:0-68"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"7:0-68"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"7:147-162"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"7:230-245"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"12:147-162"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/getPrototypeOf","loc":"12:230-245"},{"moduleId":30,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","module":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","moduleName":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","type":"cjs require","userRequest":"./getPrototypeOf","loc":"1:21-48"},{"moduleId":38,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/superPropBase.js","module":"./node_modules/@babel/runtime/helpers/superPropBase.js","moduleName":"./node_modules/@babel/runtime/helpers/superPropBase.js","type":"cjs require","userRequest":"./getPrototypeOf","loc":"1:21-48"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"function _getPrototypeOf(o) {\n module.exports = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {\n return o.__proto__ || Object.getPrototypeOf(o);\n };\n return _getPrototypeOf(o);\n}\n\nmodule.exports = _getPrototypeOf;"},{"id":7,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/defineProperty.js","name":"./node_modules/@babel/runtime/helpers/defineProperty.js","index":17,"index2":13,"size":289,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","issuerId":null,"issuerName":"./src/api/WidgetApi.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","name":"./src/api/WidgetApi.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/defineProperty","loc":"1:0-68"},{"moduleId":9,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","module":"./src/utils/io.ts","moduleName":"./src/utils/io.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"7:201-216"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/defineProperty","loc":"1:0-68"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"6:201-216"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"24:11-26"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/defineProperty","loc":"1:0-68"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"8:201-216"},{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/defineProperty","loc":"1:0-68"},{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"6:201-216"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/defineProperty","loc":"9:0-68"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"35:4-19"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/defineProperty","loc":"52:4-19"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"function _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nmodule.exports = _defineProperty;"},{"id":8,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/inherits.js","name":"./node_modules/@babel/runtime/helpers/inherits.js","index":25,"index2":22,"size":505,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","issuerId":16,"issuerName":"./src/widgets/EmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/inherits","loc":"5:0-56"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/inherits","loc":"37:2-11"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/inherits","loc":"5:0-56"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/inherits","loc":"35:2-11"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/inherits","loc":"3:0-56"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/inherits","loc":"5:0-56"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/inherits","loc":"13:2-11"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/inherits","loc":"23:2-11"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/inherits","loc":"61:2-11"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"var setPrototypeOf = require(\"./setPrototypeOf\");\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n writable: true,\n configurable: true\n }\n });\n if (superClass) setPrototypeOf(subClass, superClass);\n}\n\nmodule.exports = _inherits;"},{"id":9,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/io.ts","name":"./src/utils/io.ts","index":19,"index2":15,"size":7779,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","issuerId":32,"issuerName":"./src/api/EventsApi.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":32,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","name":"./src/api/EventsApi.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"../utils/io","loc":"12:0-52"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/io","loc":"88:13-18"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/io","loc":"132:25-32"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"../utils/io","loc":"187:23-28"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony side effect evaluation","userRequest":"../utils/io","loc":"4:0-37"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony import specifier","userRequest":"../utils/io","loc":"45:13-19"},{"moduleId":22,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","module":"./src/api/AnalyticsApi.ts","moduleName":"./src/api/AnalyticsApi.ts","type":"harmony import specifier","userRequest":"../utils/io","loc":"57:13-19"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony side effect evaluation","userRequest":"../utils/io","loc":"3:0-37"},{"moduleId":32,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","module":"./src/api/EventsApi.ts","moduleName":"./src/api/EventsApi.ts","type":"harmony import specifier","userRequest":"../utils/io","loc":"63:13-19"}],"usedExports":["doGet","doPost","doPut","doQuery"],"providedExports":["doQuery","doGet","doPost","doPut"],"optimizationBailout":[],"depth":3,"source":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i &lt; arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport debug from \"debug\";\n\nvar _log = debug(\"squatch-js:io\");\n\nexport function doQuery(_x, _x2, _x3, _x4) {\n return _doQuery.apply(this, arguments);\n}\n\nfunction _doQuery() {\n _doQuery = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(url, query, variables, token) {\n var headers, res;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n headers = _objectSpread(_objectSpread({\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n }, token ? {\n Authorization: \"Bearer \".concat(token)\n } : {}), {}, {\n \"X-SaaSquatch-Referrer\": window ? window.location.href : \"\"\n });\n _context.prev = 1;\n _context.next = 4;\n return fetch(url, {\n method: \"POST\",\n body: JSON.stringify({\n query: query,\n variables: variables\n }),\n headers: headers\n });\n\n case 4:\n res = _context.sent;\n\n if (res.ok) {\n _context.next = 11;\n break;\n }\n\n _context.t0 = Error;\n _context.next = 9;\n return res.text();\n\n case 9:\n _context.t1 = _context.sent;\n throw new _context.t0(_context.t1);\n\n case 11:\n _context.next = 13;\n return res.json();\n\n case 13:\n return _context.abrupt(\"return\", _context.sent);\n\n case 16:\n _context.prev = 16;\n _context.t2 = _context[\"catch\"](1);\n throw _context.t2;\n\n case 19:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[1, 16]]);\n }));\n return _doQuery.apply(this, arguments);\n}\n\nexport function doGet(_x5) {\n return _doGet.apply(this, arguments);\n}\n\nfunction _doGet() {\n _doGet = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(url) {\n var jwt,\n headers,\n res,\n reply,\n _args2 = arguments;\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n jwt = _args2.length > 1 && _args2[1] !== undefined ? _args2[1] : \"\";\n headers = {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n };\n if (jwt) headers[\"X-SaaSquatch-User-Token\"] = jwt;\n _context2.prev = 3;\n _context2.next = 6;\n return fetch(url, {\n method: \"GET\",\n credentials: \"include\",\n headers: headers\n });\n\n case 6:\n res = _context2.sent;\n _context2.next = 9;\n return res.text();\n\n case 9:\n reply = _context2.sent;\n\n if (res.ok) {\n _context2.next = 12;\n break;\n }\n\n throw new Error(reply);\n\n case 12:\n return _context2.abrupt(\"return\", reply ? JSON.parse(reply) : reply);\n\n case 15:\n _context2.prev = 15;\n _context2.t0 = _context2[\"catch\"](3);\n throw _context2.t0;\n\n case 18:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, null, [[3, 15]]);\n }));\n return _doGet.apply(this, arguments);\n}\n\nexport function doPost(_x6, _x7, _x8) {\n return _doPost.apply(this, arguments);\n}\n\nfunction _doPost() {\n _doPost = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee3(url, data, jwt) {\n var headers, res, reply;\n return _regeneratorRuntime.wrap(function _callee3$(_context3) {\n while (1) {\n switch (_context3.prev = _context3.next) {\n case 0:\n headers = {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\"\n };\n if (jwt) headers[\"X-SaaSquatch-User-Token\"] = jwt;\n _context3.prev = 2;\n _context3.next = 5;\n return fetch(url, {\n method: \"POST\",\n body: data,\n headers: headers\n });\n\n case 5:\n res = _context3.sent;\n _context3.next = 8;\n return res.text();\n\n case 8:\n reply = _context3.sent;\n\n if (res.ok) {\n _context3.next = 11;\n break;\n }\n\n throw new Error(reply);\n\n case 11:\n return _context3.abrupt(\"return\", reply ? JSON.parse(reply) : reply);\n\n case 14:\n _context3.prev = 14;\n _context3.t0 = _context3[\"catch\"](2);\n throw _context3.t0;\n\n case 17:\n case \"end\":\n return _context3.stop();\n }\n }\n }, _callee3, null, [[2, 14]]);\n }));\n return _doPost.apply(this, arguments);\n}\n\nexport function doPut(_x9, _x10, _x11) {\n return _doPut.apply(this, arguments);\n}\n\nfunction _doPut() {\n _doPut = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee4(url, data, jwt) {\n var headers, res, reply;\n return _regeneratorRuntime.wrap(function _callee4$(_context4) {\n while (1) {\n switch (_context4.prev = _context4.next) {\n case 0:\n headers = {\n Accept: \"application/json\",\n \"Content-Type\": \"application/json\",\n \"X-SaaSquatch-Referrer\": window ? window.location.href : \"\"\n };\n if (jwt) headers[\"X-SaaSquatch-User-Token\"] = jwt;\n _context4.prev = 2;\n _context4.next = 5;\n return fetch(url, {\n headers: headers,\n method: \"PUT\",\n credentials: \"include\",\n body: data\n });\n\n case 5:\n res = _context4.sent;\n _context4.next = 8;\n return res.text();\n\n case 8:\n reply = _context4.sent;\n\n if (res.ok) {\n _context4.next = 11;\n break;\n }\n\n throw new Error(reply);\n\n case 11:\n return _context4.abrupt(\"return\", reply ? JSON.parse(reply) : reply);\n\n case 14:\n _context4.prev = 14;\n _context4.t0 = _context4[\"catch\"](2);\n throw _context4.t0;\n\n case 17:\n case \"end\":\n return _context4.stop();\n }\n }\n }, _callee4, null, [[2, 14]]);\n }));\n return _doPut.apply(this, arguments);\n}"},{"id":10,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","name":"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","index":27,"index2":24,"size":343,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","issuerId":16,"issuerName":"./src/widgets/EmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"6:0-90"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"16:379-405"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"6:0-90"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"16:379-405"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"4:0-90"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"6:0-90"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"7:379-405"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/possibleConstructorReturn","loc":"12:379-405"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"var _typeof = require(\"../helpers/typeof\");\n\nvar assertThisInitialized = require(\"./assertThisInitialized\");\n\nfunction _possibleConstructorReturn(self, call) {\n if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) {\n return call;\n }\n\n return assertThisInitialized(self);\n}\n\nmodule.exports = _possibleConstructorReturn;"},{"id":11,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","name":"./src/widgets/PopupWidget.ts","index":21,"index2":28,"size":10415,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"./PopupWidget","loc":"10:0-40"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"./PopupWidget","loc":"333:21-32"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"./PopupWidget","loc":"343:23-34"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"./PopupWidget","loc":"396:21-32"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./widgets/PopupWidget","loc":"14:0-48"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/PopupWidget","loc":"32:0-34:62"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","explanation":"(skipped side-effect-free modules)","userRequest":"../../squatch","loc":"37:58-69"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","explanation":"(skipped side-effect-free modules)","userRequest":"../../squatch","loc":"53:58-69"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":2,"source":"import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _get from \"@babel/runtime/helpers/get\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i &lt; len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n// @ts-check\nimport debug from \"debug\";\nimport Widget from \"./Widget\";\nimport { domready } from \"../utils/domready\";\n\nvar _log = debug(\"squatch-js:POPUPwidget\");\n\nvar popupId = 0;\n/**\n * The PopupWidget is used to display popups (also known as \"Modals\").\n * Popups widgets are rendered on top of other elements in a page.\n *\n * To create a PopupWidget use {@link Widgets}\n *\n */\n\nvar PopupWidget = /*#__PURE__*/function (_Widget) {\n _inherits(PopupWidget, _Widget);\n\n var _super = _createSuper(PopupWidget);\n\n function PopupWidget(params) {\n var _this;\n\n var trigger = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \".squatchpop\";\n\n _classCallCheck(this, PopupWidget);\n\n _this = _super.call(this, params);\n _this.trigger = trigger;\n _this.containerElement = _this.container && typeof _this.container !== \"string\" ? _this.container : document.body;\n\n if (_this.container) {\n _this.id = \"squatchModal\";\n } else {\n _this.id = popupId === 0 ? \"squatchModal\" : \"squatchModal__\".concat(popupId);\n popupId = popupId + 1;\n }\n\n document.head.insertAdjacentHTML(\"beforeend\", \"&lt;style>#\".concat(_this.id, \"::-webkit-scrollbar { display: none; }&lt;/style>\"));\n return _this;\n }\n\n _createClass(PopupWidget, [{\n key: \"_initialiseCTA\",\n value: function _initialiseCTA(frame) {\n var _this2 = this;\n\n var triggerElement;\n\n try {\n triggerElement\n /* HTMLButton */\n = document.querySelector(this.trigger);\n if (this.trigger && !triggerElement) _log(\"No element found with trigger selector\", this.trigger);\n } catch (_unused) {\n _log(\"Not a valid selector\", this.trigger);\n } // Trigger is optional\n\n\n if (triggerElement) {\n triggerElement.onclick = function () {\n _this2.open(frame);\n };\n } // If widget is loaded with CTA, look for a 'squatchpop' element to use\n // that element as a trigger as well.\n\n\n var triggerWhenCTA = document.querySelector(\".squatchpop\");\n\n if (this.trigger === \"#cta\" && triggerWhenCTA) {\n triggerWhenCTA.onclick = function () {\n _this2.open(frame);\n };\n }\n }\n }, {\n key: \"_createPopupDialog\",\n value: function _createPopupDialog() {\n var dialog = document.createElement(\"dialog\");\n dialog.id = this.id;\n dialog.setAttribute(\"style\", \"width: 100%; max-width: 500px; border: none; padding: 0;\");\n\n var onClick = function onClick(e) {\n if (e.target === dialog) dialog.close();\n };\n\n dialog.addEventListener(\"click\", onClick);\n return dialog;\n }\n }, {\n key: \"load\",\n value: function load(frame) {\n this._initialiseCTA(frame);\n\n var dialog = this._createPopupDialog();\n\n dialog.appendChild(frame);\n this.containerElement.appendChild(dialog);\n var contentWindow = frame.contentWindow;\n\n if (!contentWindow) {\n throw new Error(\"Frame needs a content window\");\n }\n\n var frameDoc = contentWindow.document;\n frameDoc.open();\n frameDoc.write(this.content);\n frameDoc.write(\"&lt;script src=\\\"\".concat(this.npmCdn, \"/resize-observer-polyfill@1.5.x\\\">&lt;/script>\"));\n frameDoc.close();\n\n _log(\"Popup template loaded into iframe\");\n\n this._setupResizeHandler(frame, dialog);\n }\n }, {\n key: \"_setupResizeHandler\",\n value: function _setupResizeHandler(frame, popupdiv) {\n var _this3 = this;\n\n var contentWindow = frame.contentWindow;\n\n if (!contentWindow) {\n throw new Error(\"Frame needs a content window\");\n }\n\n var frameDoc = contentWindow.document; // Adjust frame height when size of body changes\n\n domready(frameDoc, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var ro;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n frameDoc.body.style.overflowY = \"hidden\";\n frame.height = \"\".concat(frameDoc.body.offsetHeight, \"px\"); // Adjust frame height when size of body changes\n\n ro = new contentWindow[\"ResizeObserver\"](function (entries) {\n var _iterator = _createForOfIteratorHelper(entries),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var entry = _step.value;\n var _entry$contentRect = entry.contentRect,\n top = _entry$contentRect.top,\n bottom = _entry$contentRect.bottom;\n var computedHeight = bottom + top;\n frame.height = computedHeight + \"\"; // Don't let anything else set the height of this element\n\n entry.target.style = \"\";\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n });\n _context.t0 = ro;\n _context.next = 6;\n return _this3._findInnerContainer(frame);\n\n case 6:\n _context.t1 = _context.sent;\n\n _context.t0.observe.call(_context.t0, _context.t1);\n\n case 8:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n })));\n }\n }, {\n key: \"open\",\n value: function open(frame) {\n var _this4 = this;\n\n var dialog = this.containerElement.querySelector(\"#\".concat(this.id));\n if (!dialog) throw new Error(\"Could not determine container div\");\n dialog.showModal();\n var contentWindow = frame.contentWindow;\n if (!contentWindow) throw new Error(\"Squatch.js has an empty iframe\");\n var frameDoc = contentWindow.document; // Adjust frame height when size of body changes\n\n domready(frameDoc, function () {\n var _frame$contentDocumen;\n\n var _sqh = contentWindow.squatch || contentWindow.widgetIdent; // const ctaElement = frameDoc.getElementById(\"cta\");\n // if (ctaElement) {\n // //@ts-ignore -- will occasionally throw a null pointer exception at runtime\n // ctaElement.parentNode.removeChild(ctaElement);\n // }\n\n\n (_frame$contentDocumen = frame.contentDocument) === null || _frame$contentDocumen === void 0 ? void 0 : _frame$contentDocumen.dispatchEvent(new CustomEvent(\"sq:refresh\"));\n\n _this4._loadEvent(_sqh);\n\n _log(\"Popup opened\");\n });\n }\n }, {\n key: \"close\",\n value: function close() {\n var dialog = document.getElementById(this.id);\n if (!dialog) throw new Error(\"Could not determine container div\");\n dialog.close();\n\n _log(\"Popup closed\");\n }\n }, {\n key: \"_clickedOutside\",\n value: function _clickedOutside(_ref2) {\n var target = _ref2.target;\n }\n }, {\n key: \"_error\",\n value: function _error(rs) {\n var mode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"modal\";\n var style = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"\";\n var _style = \"body { margin: 0; } .modal { box-shadow: none; border: 0; }\";\n return _get(_getPrototypeOf(PopupWidget.prototype), \"_error\", this).call(this, rs, mode, style || _style);\n }\n }]);\n\n return PopupWidget;\n}(Widget);\n\nexport { PopupWidget as default };"},{"id":12,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","name":"./src/utils/cookieUtils.ts","index":42,"index2":37,"size":3982,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony side effect evaluation","userRequest":"./cookieUtils","loc":"9:0-42"},{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony import specifier","userRequest":"./cookieUtils","loc":"28:21-30"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"./cookieUtils","loc":"2:0-42"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"./cookieUtils","loc":"12:18-27"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./utils/cookieUtils","loc":"21:0-50"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./utils/cookieUtils","loc":"197:2-13"}],"usedExports":["_pushCookie","b64decode"],"providedExports":["b64decode","_pushCookie"],"optimizationBailout":[],"depth":2,"source":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _typeof from \"@babel/runtime/helpers/typeof\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i &lt; arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport debug from \"debug\";\nimport Cookies from \"js-cookie\";\n/** @hidden */\n\nvar _log = debug(\"squatch-js\");\n\nvar isObject = function isObject(item) {\n return _typeof(item) === \"object\" && !Array.isArray(item);\n};\n\nvar deepMerge = function deepMerge(target, source) {\n var isDeep = function isDeep(prop) {\n return isObject(source[prop]) && target.hasOwnProperty(prop) && isObject(target[prop]);\n };\n\n var replaced = Object.getOwnPropertyNames(source).map(function (prop) {\n return _defineProperty({}, prop, isDeep(prop) ? deepMerge(target[prop], source[prop]) : source[prop]);\n }).reduce(function (a, b) {\n return _objectSpread(_objectSpread({}, a), b);\n }, {});\n return _objectSpread(_objectSpread({}, target), replaced);\n};\n\nexport function b64decode(input) {\n return atob(input.replace(/_/g, \"/\").replace(/-/g, \"+\"));\n}\n\nfunction b64encode(input) {\n return btoa(input).replace(/=/g, \"\").replace(/\\+/g, \"-\").replace(/\\//g, \"_\");\n} // https://stackoverflow.com/a/11319865\n\n\nfunction getTopDomain() {\n var i,\n h,\n weird_cookie = \"weird_get_top_level_domain=cookie\",\n hostname = document.location.hostname.split(\".\");\n\n for (i = hostname.length - 1; i >= 0; i--) {\n h = hostname.slice(i).join(\".\");\n document.cookie = weird_cookie + \";domain=.\" + h + \";\";\n\n if (document.cookie.indexOf(weird_cookie) > -1) {\n // We were able to store a cookie! This must be it\n document.cookie = weird_cookie.split(\"=\")[0] + \"=;domain=.\" + h + \";expires=Thu, 01 Jan 1970 00:00:01 GMT;\";\n return h;\n }\n }\n}\n\nexport function _pushCookie() {\n var queryString = window.location.search;\n var urlParams = new URLSearchParams(queryString);\n var refParam = urlParams.get(\"_saasquatch\") || \"\"; // do nothing if no params\n\n if (refParam) {\n var paramsJSON = \"\",\n existingCookie = \"\",\n reEncodedCookie = \"\";\n\n try {\n paramsJSON = JSON.parse(b64decode(refParam));\n } catch (error) {\n _log(\"Unable to decode params\", error); // don't merge invalid params\n\n\n return;\n }\n\n try {\n existingCookie = JSON.parse(b64decode(Cookies.get(\"_saasquatch\")));\n\n _log(\"existing cookie\", existingCookie);\n } catch (error) {\n _log(\"Unable to retrieve cookie\", error);\n } // don't merge if there's no existing object\n\n\n try {\n var domain = getTopDomain();\n\n _log(\"domain retrieved:\", domain);\n\n if (existingCookie) {\n var newCookie = deepMerge(existingCookie, paramsJSON);\n reEncodedCookie = b64encode(JSON.stringify(newCookie));\n\n _log(\"cookie to store:\", newCookie);\n } else {\n reEncodedCookie = b64encode(JSON.stringify(paramsJSON));\n\n _log(\"cookie to store:\", paramsJSON);\n }\n\n Cookies.set(\"_saasquatch\", reEncodedCookie, {\n expires: 365,\n secure: false,\n sameSite: \"Lax\",\n domain: domain,\n path: \"/\"\n });\n } catch (error) {\n _log(\"Unable to set cookie\", error);\n }\n }\n}"},{"id":13,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/js-cookie/src/js.cookie.js","name":"./node_modules/js-cookie/src/js.cookie.js","index":18,"index2":14,"size":3883,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","issuerId":null,"issuerName":"./src/api/WidgetApi.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","name":"./src/api/WidgetApi.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony side effect evaluation","userRequest":"js-cookie","loc":"9:0-32"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony import specifier","userRequest":"js-cookie","loc":"78:44-51"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony import specifier","userRequest":"js-cookie","loc":"102:6-13"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony side effect evaluation","userRequest":"js-cookie","loc":"11:0-32"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"js-cookie","loc":"86:20-27"},{"moduleId":17,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","module":"./src/api/WidgetApi.ts + 1 modules","moduleName":"./src/api/WidgetApi.ts + 1 modules","type":"harmony import specifier","userRequest":"js-cookie","loc":"183:30-37"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"/*!\n * JavaScript Cookie v2.2.1\n * https://github.com/js-cookie/js-cookie\n *\n * Copyright 2006, 2015 Klaus Hartl & Fagner Brack\n * Released under the MIT license\n */\n;(function (factory) {\n\tvar registeredInModuleLoader;\n\tif (typeof define === 'function' && define.amd) {\n\t\tdefine(factory);\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (typeof exports === 'object') {\n\t\tmodule.exports = factory();\n\t\tregisteredInModuleLoader = true;\n\t}\n\tif (!registeredInModuleLoader) {\n\t\tvar OldCookies = window.Cookies;\n\t\tvar api = window.Cookies = factory();\n\t\tapi.noConflict = function () {\n\t\t\twindow.Cookies = OldCookies;\n\t\t\treturn api;\n\t\t};\n\t}\n}(function () {\n\tfunction extend () {\n\t\tvar i = 0;\n\t\tvar result = {};\n\t\tfor (; i &lt; arguments.length; i++) {\n\t\t\tvar attributes = arguments[ i ];\n\t\t\tfor (var key in attributes) {\n\t\t\t\tresult[key] = attributes[key];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}\n\n\tfunction decode (s) {\n\t\treturn s.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);\n\t}\n\n\tfunction init (converter) {\n\t\tfunction api() {}\n\n\t\tfunction set (key, value, attributes) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tattributes = extend({\n\t\t\t\tpath: '/'\n\t\t\t}, api.defaults, attributes);\n\n\t\t\tif (typeof attributes.expires === 'number') {\n\t\t\t\tattributes.expires = new Date(new Date() * 1 + attributes.expires * 864e+5);\n\t\t\t}\n\n\t\t\t// We're using \"expires\" because \"max-age\" is not supported by IE\n\t\t\tattributes.expires = attributes.expires ? attributes.expires.toUTCString() : '';\n\n\t\t\ttry {\n\t\t\t\tvar result = JSON.stringify(value);\n\t\t\t\tif (/^[\\{\\[]/.test(result)) {\n\t\t\t\t\tvalue = result;\n\t\t\t\t}\n\t\t\t} catch (e) {}\n\n\t\t\tvalue = converter.write ?\n\t\t\t\tconverter.write(value, key) :\n\t\t\t\tencodeURIComponent(String(value))\n\t\t\t\t\t.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g, decodeURIComponent);\n\n\t\t\tkey = encodeURIComponent(String(key))\n\t\t\t\t.replace(/%(23|24|26|2B|5E|60|7C)/g, decodeURIComponent)\n\t\t\t\t.replace(/[\\(\\)]/g, escape);\n\n\t\t\tvar stringifiedAttributes = '';\n\t\t\tfor (var attributeName in attributes) {\n\t\t\t\tif (!attributes[attributeName]) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tstringifiedAttributes += '; ' + attributeName;\n\t\t\t\tif (attributes[attributeName] === true) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Considers RFC 6265 section 5.2:\n\t\t\t\t// ...\n\t\t\t\t// 3. If the remaining unparsed-attributes contains a %x3B (\";\")\n\t\t\t\t// character:\n\t\t\t\t// Consume the characters of the unparsed-attributes up to,\n\t\t\t\t// not including, the first %x3B (\";\") character.\n\t\t\t\t// ...\n\t\t\t\tstringifiedAttributes += '=' + attributes[attributeName].split(';')[0];\n\t\t\t}\n\n\t\t\treturn (document.cookie = key + '=' + value + stringifiedAttributes);\n\t\t}\n\n\t\tfunction get (key, json) {\n\t\t\tif (typeof document === 'undefined') {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar jar = {};\n\t\t\t// To prevent the for loop in the first place assign an empty array\n\t\t\t// in case there are no cookies at all.\n\t\t\tvar cookies = document.cookie ? document.cookie.split('; ') : [];\n\t\t\tvar i = 0;\n\n\t\t\tfor (; i &lt; cookies.length; i++) {\n\t\t\t\tvar parts = cookies[i].split('=');\n\t\t\t\tvar cookie = parts.slice(1).join('=');\n\n\t\t\t\tif (!json && cookie.charAt(0) === '\"') {\n\t\t\t\t\tcookie = cookie.slice(1, -1);\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tvar name = decode(parts[0]);\n\t\t\t\t\tcookie = (converter.read || converter)(cookie, name) ||\n\t\t\t\t\t\tdecode(cookie);\n\n\t\t\t\t\tif (json) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcookie = JSON.parse(cookie);\n\t\t\t\t\t\t} catch (e) {}\n\t\t\t\t\t}\n\n\t\t\t\t\tjar[name] = cookie;\n\n\t\t\t\t\tif (key === name) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} catch (e) {}\n\t\t\t}\n\n\t\t\treturn key ? jar[key] : jar;\n\t\t}\n\n\t\tapi.set = set;\n\t\tapi.get = function (key) {\n\t\t\treturn get(key, false /* read as raw */);\n\t\t};\n\t\tapi.getJSON = function (key) {\n\t\t\treturn get(key, true /* read as json */);\n\t\t};\n\t\tapi.remove = function (key, attributes) {\n\t\t\tset(key, '', extend(attributes, {\n\t\t\t\texpires: -1\n\t\t\t}));\n\t\t};\n\n\t\tapi.defaults = {};\n\n\t\tapi.withConverter = init;\n\n\t\treturn api;\n\t}\n\n\treturn init(function () {});\n}));\n"},{"id":14,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/assertThisInitialized.js","name":"./node_modules/@babel/runtime/helpers/assertThisInitialized.js","index":28,"index2":23,"size":219,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","issuerId":null,"issuerName":"./src/widgets/declarative/DeclarativeWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":10,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","module":"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","moduleName":"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","type":"cjs require","userRequest":"./assertThisInitialized","loc":"3:28-62"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/assertThisInitialized","loc":"4:0-82"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/assertThisInitialized","loc":"35:20-42"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/assertThisInitialized","loc":"48:38-60"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/assertThisInitialized","loc":"52:20-42"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/assertThisInitialized","loc":"63:38-60"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"function _assertThisInitialized(self) {\n if (self === void 0) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return self;\n}\n\nmodule.exports = _assertThisInitialized;"},{"id":15,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/typeof.js","name":"./node_modules/@babel/runtime/helpers/typeof.js","index":15,"index2":11,"size":479,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","issuerId":12,"issuerName":"./src/utils/cookieUtils.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":12,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","name":"./src/utils/cookieUtils.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":1,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/validate.ts","module":"./src/utils/validate.ts","moduleName":"./src/utils/validate.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/typeof","loc":"1:0-52"},{"moduleId":1,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/validate.ts","module":"./src/utils/validate.ts","moduleName":"./src/utils/validate.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/typeof","loc":"14:9-16"},{"moduleId":10,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","module":"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","moduleName":"./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js","type":"cjs require","userRequest":"../helpers/typeof","loc":"1:14-42"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/typeof","loc":"2:0-52"},{"moduleId":12,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/cookieUtils.ts","module":"./src/utils/cookieUtils.ts","moduleName":"./src/utils/cookieUtils.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/typeof","loc":"15:9-16"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n module.exports = _typeof = function _typeof(obj) {\n return typeof obj;\n };\n } else {\n module.exports = _typeof = function _typeof(obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nmodule.exports = _typeof;"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts","index":32,"index2":29,"size":11142,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"./EmbedWidget","loc":"9:0-40"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"./EmbedWidget","loc":"353:23-34"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"./EmbedWidget","loc":"390:21-32"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./widgets/EmbedWidget","loc":"13:0-48"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/EmbedWidget","loc":"32:0-34:62"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","explanation":"(skipped side-effect-free modules)","userRequest":"../../squatch","loc":"37:44-55"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","explanation":"(skipped side-effect-free modules)","userRequest":"../../squatch","loc":"53:44-55"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":2,"source":"import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _get from \"@babel/runtime/helpers/get\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i &lt; len; i++) { arr2[i] = arr[i]; } return arr2; }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n// @ts-check\nimport debug from \"debug\";\nimport Widget from \"./Widget\";\nimport { domready } from \"../utils/domready\";\n\nvar _log = debug(\"squatch-js:EMBEDwidget\");\n/**\n * An EmbedWidget is displayed inline in part of your page.\n *\n * To create an EmbedWidget use {@link Widgets}\n *\n */\n\n\nvar EmbedWidget = /*#__PURE__*/function (_Widget) {\n _inherits(EmbedWidget, _Widget);\n\n var _super = _createSuper(EmbedWidget);\n\n function EmbedWidget(params, container) {\n _classCallCheck(this, EmbedWidget);\n\n return _super.call(this, params);\n }\n\n _createClass(EmbedWidget, [{\n key: \"_findElement\",\n value: function _findElement() {\n var element;\n\n if (typeof this.container === \"string\") {\n // selector is a string\n element = document.querySelector(this.container);\n\n _log(\"loading widget with selector\", element); // selector is an HTML element\n\n } else if (this.container instanceof HTMLElement) {\n element = this.container;\n\n _log(\"loading widget with container\", element); // garbage container found\n\n } else if (this.container) {\n element = null;\n\n _log(\"container must be an HTMLElement or string\", this.container); // find element on page\n\n } else {\n element = document.querySelector(\"#squatchembed\") || document.querySelector(\".squatchembed\");\n\n _log(\"loading widget with default selector\", element);\n }\n\n if (!(element instanceof HTMLElement)) throw new Error(\"element with selector '\".concat(this.container, \"' not found.'\"));\n return element;\n }\n }, {\n key: \"load\",\n value: function () {\n var _load = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(frame) {\n var _this = this;\n\n var element, contentWindow, frameDoc;\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n element = this._findElement();\n\n if (this.context.container) {\n element.style.visibility = \"hidden\";\n element.style.height = \"0\";\n element.style[\"overflow-y\"] = \"hidden\"; // Widget reloaded - replace existing element\n\n if (element.firstChild) {\n element.replaceChild(frame, element.firstChild); // Add iframe for the first time\n } else {\n element.appendChild(frame);\n }\n } else if (!element.firstChild || element.firstChild.nodeName === \"#text\") {\n element.appendChild(frame);\n }\n\n contentWindow = frame.contentWindow;\n\n if (contentWindow) {\n _context2.next = 5;\n break;\n }\n\n throw new Error(\"Frame needs a content window\");\n\n case 5:\n frameDoc = contentWindow.document;\n frameDoc.open();\n frameDoc.write(this.content);\n frameDoc.write(\"&lt;script src=\\\"\".concat(this.npmCdn, \"/resize-observer-polyfill@1.5.x\\\">&lt;/script>\"));\n frameDoc.close();\n domready(frameDoc, /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var _sqh, ctaElement, ro;\n\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _sqh = contentWindow.squatch || contentWindow.widgetIdent;\n ctaElement = frameDoc.getElementById(\"cta\");\n\n if (!ctaElement) {\n _context.next = 6;\n break;\n }\n\n if (ctaElement.parentNode) {\n _context.next = 5;\n break;\n }\n\n throw new Error(\"ctaElement needs a parentNode\");\n\n case 5:\n ctaElement.parentNode.removeChild(ctaElement);\n\n case 6:\n // @ts-ignore -- number will be cast to string by browsers\n frame.height = frameDoc.body.scrollHeight; // Adjust frame height when size of body changes\n // @ts-ignore\n\n ro = new contentWindow[\"ResizeObserver\"](function (entries) {\n var _iterator = _createForOfIteratorHelper(entries),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var entry = _step.value;\n var height = entry.contentRect.height; // @ts-ignore -- number will be cast to string by browsers\n\n frame.height = height;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n });\n _context.t0 = ro;\n _context.next = 11;\n return _this._findInnerContainer(frame);\n\n case 11:\n _context.t1 = _context.sent;\n\n _context.t0.observe.call(_context.t0, _context.t1);\n\n // Regular load - trigger event\n if (!_this.context.container) {\n _this._loadEvent(_sqh);\n\n _log(\"loaded\");\n }\n\n case 14:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n })));\n\n case 11:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function load(_x) {\n return _load.apply(this, arguments);\n }\n\n return load;\n }() // Un-hide if element is available and refresh data\n\n }, {\n key: \"open\",\n value: function open(frame) {\n var _frame$contentDocumen, _frame$contentWindow, _frame$contentWindow2;\n\n if (!frame) return _log(\"no target element to open\");\n\n var element = this._findElement();\n\n element.style.visibility = \"unset\";\n element.style.height = \"auto\";\n element.style[\"overflow-y\"] = \"auto\";\n frame === null || frame === void 0 ? void 0 : (_frame$contentDocumen = frame.contentDocument) === null || _frame$contentDocumen === void 0 ? void 0 : _frame$contentDocumen.dispatchEvent(new CustomEvent(\"sq:refresh\"));\n\n var _sqh = (frame === null || frame === void 0 ? void 0 : (_frame$contentWindow = frame.contentWindow) === null || _frame$contentWindow === void 0 ? void 0 : _frame$contentWindow.squatch) || (frame === null || frame === void 0 ? void 0 : (_frame$contentWindow2 = frame.contentWindow) === null || _frame$contentWindow2 === void 0 ? void 0 : _frame$contentWindow2.widgetIdent);\n\n this._loadEvent(_sqh);\n\n _log(\"loaded\");\n }\n }, {\n key: \"close\",\n value: function close(frame) {\n if (!frame) return _log(\"no target element to close\");\n\n var element = this._findElement();\n\n element.style.visibility = \"hidden\";\n element.style.height = \"0\";\n element.style[\"overflow-y\"] = \"hidden\";\n\n _log(\"Embed widget closed\");\n }\n }, {\n key: \"_error\",\n value: function _error(rs) {\n var mode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"embed\";\n var style = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"\";\n return _get(_getPrototypeOf(EmbedWidget.prototype), \"_error\", this).call(this, rs, mode, style);\n }\n }]);\n\n return EmbedWidget;\n}(Widget);\n\nexport { EmbedWidget as default };"},{"id":17,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts 13002b5fdd2c8dc5429b2445ab5eceb0","name":"./src/api/WidgetApi.ts + 1 modules","index":16,"index2":17,"size":9894,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":null,"issuerId":null,"issuerName":null,"issuerPath":null,"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"../api/WidgetApi","loc":"8:0-41"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"../api/WidgetApi","loc":"51:19-28"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./api/WidgetApi","loc":"17:0-40"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./api/WidgetApi","loc":"32:0-34:62"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./api/WidgetApi","loc":"125:13-22"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","explanation":"(skipped side-effect-free modules)","userRequest":"../../squatch","loc":"76:27-36"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":["ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/asyncToGenerator.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/classCallCheck.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/createClass.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/defineProperty.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/regenerator/index.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./src/utils/io.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/utils/validate.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./node_modules/js-cookie/src/js.cookie.js (&lt;- Module is not an ECMAScript module)"],"depth":2,"modules":[{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","name":"./src/api/WidgetApi.ts","index":16,"index2":17,"size":9428,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"../api/WidgetApi","loc":"8:0-41"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"../api/WidgetApi","loc":"51:19-28"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./api/WidgetApi","loc":"17:0-40"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./api/WidgetApi","loc":"32:0-34:62"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./api/WidgetApi","loc":"125:13-22"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","explanation":"(skipped side-effect-free modules)","userRequest":"../../squatch","loc":"76:27-36"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":2,"source":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i &lt; arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport Cookies from \"js-cookie\";\nimport { doGet, doPut, doQuery } from \"../utils/io\";\nimport { validateConfig, validateLocale, validatePasswordlessConfig, validateWidgetConfig } from \"../utils/validate\";\nimport { RENDER_WIDGET_QUERY } from \"./graphql\";\n/**\n *\n * The WidgetApi class is a wrapper around the Widget Endpoints of the SaaSquatch REST API.\n *\n */\n\nvar WidgetApi = /*#__PURE__*/function () {\n /**\n * Initialize a new {@link WidgetApi} instance.\n *\n * @param {ConfigOptions} config Config details\n *\n * @example &lt;caption>Browser example&lt;/caption>\n * var squatchApi = new squatch.WidgetApi({tenantAlias:'test_12b5bo1b25125'});\n *\n * @example &lt;caption>Browserify/Webpack example&lt;/caption>\n * var WidgetApi = require('@saasquatch/squatch-js').WidgetApi;\n * var squatchApi = new WidgetApi({tenantAlias:'test_12b5bo1b25125'});\n *\n * @example &lt;caption>Babel+Browserify/Webpack example&lt;/caption>\n * import {WidgetApi} from '@saasquatch/squatch-js';\n * let squatchApi = new WidgetApi({tenantAlias:'test_12b5bo1b25125'});\n */\n function WidgetApi(config) {\n _classCallCheck(this, WidgetApi);\n\n var raw = config; // Flags that we need to validate anything we use from this type\n\n var clean = validateConfig(raw);\n this.tenantAlias = clean.tenantAlias;\n this.domain = clean.domain;\n this.npmCdn = clean.npmCdn;\n }\n /**\n * Creates/upserts user.\n *\n * @param {Object} params Parameters for request\n * @param {Object?} params.user The user details\n * @param {string} params.user.id The user id\n * @param {string} params.user.accountId The user account id\n * @param {WidgetType} params.widgetType The content of the widget.\n * @param {EngagementMedium?} params.engagementMedium How to display the widget.\n * @param {string?} params.jwt the JSON Web Token (JWT) that is used\n * to validate the data (can be disabled)\n *\n * @return {Promise} string if true, with the widget template, jsOptions and user details.\n */\n\n\n _createClass(WidgetApi, [{\n key: \"upsertUser\",\n value: function upsertUser(params) {\n var raw = params;\n var clean = validateWidgetConfig(raw);\n var _ref = clean,\n widgetType = _ref.widgetType,\n _ref$engagementMedium = _ref.engagementMedium,\n engagementMedium = _ref$engagementMedium === void 0 ? \"POPUP\" : _ref$engagementMedium,\n jwt = _ref.jwt,\n user = _ref.user;\n var tenantAlias = encodeURIComponent(this.tenantAlias);\n var accountId = encodeURIComponent(user.accountId);\n var userId = encodeURIComponent(user.id);\n\n var optionalParams = _buildParams({\n widgetType: widgetType,\n engagementMedium: engagementMedium\n });\n\n var path = \"/api/v1/\".concat(tenantAlias, \"/widget/account/\").concat(accountId, \"/user/\").concat(userId, \"/upsert\").concat(optionalParams);\n var url = this.domain + path;\n var cookies = Cookies.get(\"_saasquatch\");\n if (cookies) user[\"cookies\"] = cookies;\n return doPut(url, JSON.stringify(user), jwt);\n }\n /**\n * Description here.\n *\n * @param {Object} params Parameters for request\n * @param {Object} params.user The user details\n * @param {string} params.user.id The user id\n * @param {string} params.user.accountId The user account id\n * @param {WidgetType} params.widgetType The content of the widget.\n * @param {EngagementMedium} params.engagementMedium How to display the widget.\n * @param {string} params.jwt the JSON Web Token (JWT) that is used\n * to validate the data (can be disabled)\n * @return {Promise} template html if true.\n */\n\n }, {\n key: \"render\",\n value: function render(params) {\n var _clean$locale;\n\n var raw = params;\n var clean = validatePasswordlessConfig(raw);\n var widgetType = clean.widgetType,\n _clean$engagementMedi = clean.engagementMedium,\n engagementMedium = _clean$engagementMedi === void 0 ? \"POPUP\" : _clean$engagementMedi,\n jwt = clean.jwt,\n user = clean.user;\n var tenantAlias = encodeURIComponent(this.tenantAlias);\n var accountId = user ? encodeURIComponent(user.accountId) : null;\n var userId = user ? encodeURIComponent(user.id) : null;\n var locale = (_clean$locale = clean.locale) !== null && _clean$locale !== void 0 ? _clean$locale : validateLocale(navigator.language.replace(/\\-/g, \"_\"));\n var path = \"/api/v1/\".concat(tenantAlias, \"/graphql\");\n var url = this.domain + path;\n return new Promise( /*#__PURE__*/function () {\n var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(resolve, reject) {\n var _res$data, res;\n\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n _context.prev = 0;\n _context.next = 3;\n return doQuery(url, RENDER_WIDGET_QUERY, {\n user: userId && accountId ? {\n id: userId,\n accountId: accountId\n } : null,\n engagementMedium: engagementMedium,\n widgetType: widgetType,\n locale: locale\n }, jwt);\n\n case 3:\n res = _context.sent;\n resolve(res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.renderWidget);\n _context.next = 10;\n break;\n\n case 7:\n _context.prev = 7;\n _context.t0 = _context[\"catch\"](0);\n reject(_context.t0);\n\n case 10:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, null, [[0, 7]]);\n }));\n\n return function (_x, _x2) {\n return _ref2.apply(this, arguments);\n };\n }());\n }\n /**\n * Looks up the referral code of the current user, if there is any.\n *\n * @return {Promise&lt;ReferralCookie>} code referral code if true.\n */\n\n }, {\n key: \"squatchReferralCookie\",\n value: function () {\n var _squatchReferralCookie = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n var tenantAlias, _saasquatch, cookie, url, response;\n\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n tenantAlias = encodeURIComponent(this.tenantAlias);\n _saasquatch = Cookies.get(\"_saasquatch\") || \"\";\n cookie = _saasquatch ? \"?cookies=\".concat(encodeURIComponent(_saasquatch)) : \"\";\n url = \"\".concat(this.domain, \"/a/\").concat(tenantAlias, \"/widgets/squatchcookiejson\").concat(cookie);\n _context2.next = 6;\n return doGet(url);\n\n case 6:\n response = _context2.sent;\n return _context2.abrupt(\"return\", Promise.resolve(_objectSpread(_objectSpread({}, response), {}, {\n encodedCookie: _saasquatch\n })));\n\n case 8:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function squatchReferralCookie() {\n return _squatchReferralCookie.apply(this, arguments);\n }\n\n return squatchReferralCookie;\n }()\n }]);\n\n return WidgetApi;\n}(); // builds a param string for widgets\n\n\nexport { WidgetApi as default };\n\nfunction _buildParams(_ref3) {\n var widgetType = _ref3.widgetType,\n engagementMedium = _ref3.engagementMedium;\n var widgetTypeP = widgetType ? \"?widgetType=\".concat(encodeURIComponent(widgetType)) : \"\";\n var engagementMediumP = \"\".concat(widgetType ? \"&\" : \"?\", \"engagementMedium=\").concat(encodeURIComponent(engagementMedium));\n var optionalParams = widgetTypeP + engagementMediumP;\n return optionalParams;\n}"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/graphql.ts","name":"./src/api/graphql.ts","index":20,"index2":16,"size":426,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","issuerId":null,"issuerName":"./src/api/WidgetApi.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","name":"./src/api/WidgetApi.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","module":"./src/api/WidgetApi.ts","moduleName":"./src/api/WidgetApi.ts","type":"harmony side effect evaluation","userRequest":"./graphql","loc":"14:0-48"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/WidgetApi.ts","module":"./src/api/WidgetApi.ts","moduleName":"./src/api/WidgetApi.ts","type":"harmony import specifier","userRequest":"./graphql","loc":"132:38-57"}],"usedExports":["RENDER_WIDGET_QUERY"],"providedExports":["RENDER_WIDGET_QUERY"],"optimizationBailout":[],"depth":3,"source":"export var RENDER_WIDGET_QUERY = \"\\n query renderWidget ($user: UserIdInput, $engagementMedium: UserEngagementMedium, $widgetType: WidgetType, $locale: RSLocale) {\\n renderWidget(user: $user, engagementMedium: $engagementMedium, widgetType: $widgetType, locale: $locale) {\\n template\\n user {\\n id\\n accountId\\n }\\n jsOptions\\n widgetConfig {\\n values\\n }\\n }\\n }\\n\";"}],"filteredModules":0},{"id":18,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/domready.ts","name":"./src/utils/domready.ts","index":29,"index2":25,"size":626,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","issuerId":16,"issuerName":"./src/widgets/EmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"../utils/domready","loc":"23:0-45"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"../utils/domready","loc":"148:6-14"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"../utils/domready","loc":"207:6-14"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"../utils/domready","loc":"23:0-45"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"../utils/domready","loc":"117:16-24"}],"usedExports":["domready"],"providedExports":["domready"],"optimizationBailout":[],"depth":3,"source":"/*!\n * domready (c) Dustin Diaz 2014 - License MIT\n *\n */\nexport function domready(targetDoc, fn) {\n var fns = [];\n\n var _listener;\n\n var doc = targetDoc;\n var hack = doc.documentElement.doScroll;\n var domContentLoaded = \"DOMContentLoaded\";\n var loaded = (hack ? /^loaded|^c/ : /^loaded|^i|^c/).test(doc.readyState);\n if (!loaded) doc.addEventListener(domContentLoaded, _listener = function listener() {\n doc.removeEventListener(domContentLoaded, _listener);\n loaded = true;\n\n while (_listener = fns.shift()) {\n _listener();\n }\n }); // @ts-ignore\n\n return loaded ? setTimeout(fn, 0) : fns.push(fn);\n}"},{"id":19,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/eventbusjs/lib/eventbus.min.js","name":"./node_modules/eventbusjs/lib/eventbus.min.js","index":13,"index2":10,"size":2399,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","issuerId":26,"issuerName":"./src/widgets/Widgets.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony side effect evaluation","userRequest":"eventbusjs","loc":"7:0-39"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"eventbusjs","loc":"50:20-28"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"eventbusjs","loc":"53:4-29"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"eventbusjs","loc":"248:6-34"},{"moduleId":26,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","module":"./src/widgets/Widgets.ts","moduleName":"./src/widgets/Widgets.ts","type":"harmony import specifier","userRequest":"eventbusjs","loc":"249:6-31"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"(function(root,factory){if(typeof exports===\"object\"&&typeof module===\"object\")module.exports=factory();else if(typeof define===\"function\"&&define.amd)define(\"EventBus\",[],factory);else if(typeof exports===\"object\")exports[\"EventBus\"]=factory();else root[\"EventBus\"]=factory()})(this,function(){var EventBusClass={};EventBusClass=function(){this.listeners={}};EventBusClass.prototype={addEventListener:function(type,callback,scope){var args=[];var numOfArgs=arguments.length;for(var i=0;i&lt;numOfArgs;i++){args.push(arguments[i])}args=args.length>3?args.splice(3,args.length-1):[];if(typeof this.listeners[type]!=\"undefined\"){this.listeners[type].push({scope:scope,callback:callback,args:args})}else{this.listeners[type]=[{scope:scope,callback:callback,args:args}]}},removeEventListener:function(type,callback,scope){if(typeof this.listeners[type]!=\"undefined\"){var numOfCallbacks=this.listeners[type].length;var newArray=[];for(var i=0;i&lt;numOfCallbacks;i++){var listener=this.listeners[type][i];if(listener.scope==scope&&listener.callback==callback){}else{newArray.push(listener)}}this.listeners[type]=newArray}},hasEventListener:function(type,callback,scope){if(typeof this.listeners[type]!=\"undefined\"){var numOfCallbacks=this.listeners[type].length;if(callback===undefined&&scope===undefined){return numOfCallbacks>0}for(var i=0;i&lt;numOfCallbacks;i++){var listener=this.listeners[type][i];if((scope?listener.scope==scope:true)&&listener.callback==callback){return true}}}return false},dispatch:function(type,target){var event={type:type,target:target};var args=[];var numOfArgs=arguments.length;for(var i=0;i&lt;numOfArgs;i++){args.push(arguments[i])}args=args.length>2?args.splice(2,args.length-1):[];args=[event].concat(args);if(typeof this.listeners[type]!=\"undefined\"){var listeners=this.listeners[type].slice();var numOfCallbacks=listeners.length;for(var i=0;i&lt;numOfCallbacks;i++){var listener=listeners[i];if(listener&&listener.callback){var concatArgs=args.concat(listener.args);listener.callback.apply(listener.scope,concatArgs)}}}},getEvents:function(){var str=\"\";for(var type in this.listeners){var numOfCallbacks=this.listeners[type].length;for(var i=0;i&lt;numOfCallbacks;i++){var listener=this.listeners[type][i];str+=listener.scope&&listener.scope.className?listener.scope.className:\"anonymous\";str+=\" listen for '\"+type+\"'\\n\"}}return str}};var EventBus=new EventBusClass;return EventBus});"},{"id":20,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/get.js","name":"./node_modules/@babel/runtime/helpers/get.js","index":22,"index2":20,"size":600,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","issuerId":16,"issuerName":"./src/widgets/EmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/get","loc":"4:0-46"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/get","loc":"244:13-17"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/get","loc":"4:0-46"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/get","loc":"241:13-17"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"var superPropBase = require(\"./superPropBase\");\n\nfunction _get(target, property, receiver) {\n if (typeof Reflect !== \"undefined\" && Reflect.get) {\n module.exports = _get = Reflect.get;\n } else {\n module.exports = _get = function _get(target, property, receiver) {\n var base = superPropBase(target, property);\n if (!base) return;\n var desc = Object.getOwnPropertyDescriptor(base, property);\n\n if (desc.get) {\n return desc.get.call(receiver);\n }\n\n return desc.value;\n };\n }\n\n return _get(target, property, receiver || target);\n}\n\nmodule.exports = _get;"},{"id":21,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","name":"./src/widgets/Widget.ts","index":30,"index2":27,"size":11147,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","issuerId":16,"issuerName":"./src/widgets/EmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony side effect evaluation","userRequest":"./Widget","loc":"22:0-30"},{"moduleId":11,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/PopupWidget.ts","module":"./src/widgets/PopupWidget.ts","moduleName":"./src/widgets/PopupWidget.ts","type":"harmony import specifier","userRequest":"./Widget","loc":"249:2-8"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"./Widget","loc":"22:0-30"},{"moduleId":16,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","module":"./src/widgets/EmbedWidget.ts","moduleName":"./src/widgets/EmbedWidget.ts","type":"harmony import specifier","userRequest":"./Widget","loc":"246:2-8"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":3,"source":"import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n// @ts-check\nimport debug from \"debug\";\nimport AnalyticsApi from \"../api/AnalyticsApi\";\nimport { isObject } from \"../utils/validate\";\n/** @hidden */\n\nvar _log = debug(\"squatch-js:widget\");\n\n/*\n * The Widget class is the base class for the different widget types available\n *\n * Creates an `iframe` in which the html content of the widget gets embedded.\n * Uses element-resize-detector (https://github.com/wnr/element-resize-detector)\n * for listening to the height of the widget content and make the iframe responsive.\n *\n */\nvar Widget = /*#__PURE__*/function () {\n function Widget(params) {\n _classCallCheck(this, Widget);\n\n _log(\"widget initializing ...\");\n\n this.content = params.content === \"error\" ? this._error(params.rsCode) : params.content;\n this.type = params.type;\n this.widgetApi = params.api;\n this.npmCdn = params.npmCdn;\n this.analyticsApi = new AnalyticsApi({\n domain: params.domain\n });\n this.context = params.context;\n this.container = params.container;\n }\n\n _createClass(Widget, [{\n key: \"_createFrame\",\n value: function _createFrame() {\n var frame = document.createElement(\"iframe\");\n frame[\"squatchJsApi\"] = this;\n frame.width = \"100%\";\n frame.scrolling = \"no\";\n frame.setAttribute(\"style\", \"border: 0; background-color: none; width: 1px; min-width: 100%;\");\n return frame;\n }\n }, {\n key: \"_loadEvent\",\n value: function _loadEvent(sqh) {\n var _this$analyticsApi$pu;\n\n if (!sqh) return; // No non-truthy value\n\n if (!isObject(sqh)) {\n throw new Error(\"Widget Load event identity property is not an object\");\n }\n\n var params;\n\n if (\"programId\" in sqh) {\n if (!sqh.tenantAlias || !sqh.accountId || !sqh.userId || !sqh.engagementMedium) throw new Error(\"Widget Load event missing required properties\");\n params = {\n tenantAlias: sqh.tenantAlias,\n externalAccountId: sqh.accountId,\n externalUserId: sqh.userId,\n engagementMedium: sqh.engagementMedium,\n programId: sqh.programId\n };\n } else {\n var analytics = sqh.analytics,\n mode = sqh.mode;\n params = {\n tenantAlias: analytics.attributes.tenant,\n externalAccountId: analytics.attributes.accountId,\n externalUserId: analytics.attributes.userId,\n engagementMedium: mode.widgetMode\n };\n }\n\n (_this$analyticsApi$pu = this.analyticsApi.pushAnalyticsLoadEvent(params)) === null || _this$analyticsApi$pu === void 0 ? void 0 : _this$analyticsApi$pu.then(function (response) {\n _log(\"\".concat(params.engagementMedium, \" loaded event recorded.\"));\n }).catch(function (ex) {\n _log(new Error(\"pushAnalyticsLoadEvent() \".concat(ex)));\n });\n }\n }, {\n key: \"_shareEvent\",\n value: function _shareEvent(sqh, medium) {\n if (sqh) {\n this.analyticsApi.pushAnalyticsShareClickedEvent({\n tenantAlias: sqh.analytics.attributes.tenant,\n externalAccountId: sqh.analytics.attributes.accountId,\n externalUserId: sqh.analytics.attributes.userId,\n engagementMedium: sqh.mode.widgetMode,\n shareMedium: medium\n }).then(function (response) {\n _log(\"\".concat(sqh.mode.widgetMode, \" share \").concat(medium, \" event recorded. \").concat(response));\n }).catch(function (ex) {\n _log(new Error(\"pushAnalyticsLoadEvent() \".concat(ex)));\n });\n }\n } // TODO: CA: Refactor how error templates are shown\n\n }, {\n key: \"_error\",\n value: function _error(rs) {\n var mode = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"modal\";\n var style = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : \"\";\n var errorTemplate = \"&lt;!DOCTYPE html>\\n &lt;!--[if IE 7]>&lt;html class=\\\"ie7 oldie\\\" lang=\\\"en\\\">&lt;![endif]-->\\n &lt;!--[if IE 8]>&lt;html class=\\\"ie8 oldie\\\" lang=\\\"en\\\">&lt;![endif]-->\\n &lt;!--[if gt IE 8]>&lt;!-->&lt;html lang=\\\"en\\\">&lt;!--&lt;![endif]-->\\n &lt;head>\\n &lt;link rel=\\\"stylesheet\\\" media=\\\"all\\\" href=\\\"https://fast.ssqt.io/assets/css/widget/errorpage.css\\\">\\n &lt;style>\\n \".concat(style, \"\\n &lt;/style>\\n &lt;/head>\\n &lt;body>\\n\\n &lt;div class=\\\"squatch-container \").concat(mode, \"\\\" style=\\\"width:100%\\\">\\n &lt;div class=\\\"errorheader\\\">\\n &lt;button type=\\\"button\\\" class=\\\"close\\\" onclick=\\\"window.frameElement.squatchJsApi.close();\\\">&times;&lt;/button>\\n &lt;p class=\\\"errortitle\\\">Error&lt;/p>\\n &lt;/div>\\n &lt;div class=\\\"errorbody\\\">\\n &lt;div class=\\\"sadface\\\">&lt;img src=\\\"https://fast.ssqt.io/assets/images/face.png\\\">&lt;/div>\\n &lt;h4>Our referral program is temporarily unavailable.&lt;/h4>&lt;br>\\n &lt;p>Please reload the page or check back later.&lt;/p>\\n &lt;p>If the persists please contact our support team.&lt;/p>\\n &lt;br>\\n &lt;br>\\n &lt;div class=\\\"right-align errtxt\\\">\\n Error Code: \").concat(rs, \"\\n &lt;/div>\\n &lt;/div>\\n &lt;/div>\\n &lt;/body>\\n &lt;/html>\");\n return errorTemplate;\n }\n }, {\n key: \"_findInnerContainer\",\n value: function () {\n var _findInnerContainer2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(frame) {\n var contentWindow, frameDoc, search, found, i;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n search = function _search() {\n var containers = frameDoc.getElementsByTagName(\"sqh-global-container\");\n var legacyContainers = frameDoc.getElementsByClassName(\"squatch-container\");\n var fallback = containers.length > 0 ? containers[0] : legacyContainers.length > 0 ? legacyContainers[0] : null;\n return fallback;\n };\n\n contentWindow = frame.contentWindow;\n\n if (contentWindow) {\n _context.next = 4;\n break;\n }\n\n throw new Error(\"Squatch.js frame inner frame is empty\");\n\n case 4:\n frameDoc = contentWindow.document;\n found = null;\n i = 0;\n\n case 7:\n if (!(i &lt; 5)) {\n _context.next = 16;\n break;\n }\n\n found = search();\n\n if (!found) {\n _context.next = 11;\n break;\n }\n\n return _context.abrupt(\"break\", 16);\n\n case 11:\n _context.next = 13;\n return delay(100);\n\n case 13:\n i++;\n _context.next = 7;\n break;\n\n case 16:\n if (found) {\n _context.next = 18;\n break;\n }\n\n return _context.abrupt(\"return\", frameDoc.body);\n\n case 18:\n return _context.abrupt(\"return\", found);\n\n case 19:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n }));\n\n function _findInnerContainer(_x) {\n return _findInnerContainer2.apply(this, arguments);\n }\n\n return _findInnerContainer;\n }() // TODO: CA: Refactor reload\n\n /**\n * Reloads the current widget, makes updated request to API and renders result.\n * Primarily for Classic widgets with registration\n * @param param0 Form field values\n * @param jwt JWT for API authentication\n */\n\n }, {\n key: \"reload\",\n value: function reload(frame, _ref, jwt) {\n var _this = this;\n\n var email = _ref.email,\n firstName = _ref.firstName,\n lastName = _ref.lastName;\n var frameWindow = frame.contentWindow;\n var engagementMedium = this.context.engagementMedium || \"POPUP\";\n\n if (!frameWindow) {\n throw new Error(\"Frame needs a content window\");\n }\n\n var response;\n\n if (this.context.type === \"upsert\") {\n var userObj = {\n email: email || null,\n firstName: firstName || null,\n lastName: lastName || null,\n id: this.context.user.id,\n accountId: this.context.user.accountId\n };\n response = this.widgetApi.upsertUser({\n user: userObj,\n engagementMedium: engagementMedium,\n widgetType: this.type,\n jwt: jwt\n });\n } else if (this.context.type === \"passwordless\") {\n response = this.widgetApi.render({\n user: undefined,\n engagementMedium: engagementMedium,\n widgetType: this.type,\n jwt: undefined\n });\n } else {\n throw new Error(\"can't reload an error widget\");\n }\n\n response.then(function (_ref2) {\n var template = _ref2.template;\n\n if (template) {\n _this.content = template; // Support for classic widget registration forms\n\n _this.__deprecated__register(frame, {\n email: email,\n engagementMedium: engagementMedium\n }, function () {\n _this.load(frame); // @ts-ignore -- open exists in the PopupWidget, so this call will always exist when it's called.\n\n\n engagementMedium === \"POPUP\" && _this.open(frame);\n });\n }\n }).catch(function (_ref3) {\n var message = _ref3.message;\n\n _log(\"\".concat(message));\n });\n }\n }, {\n key: \"__deprecated__register\",\n value: function __deprecated__register(frame, params, onClick) {\n var frameWindow = frame.contentWindow;\n var frameDoc = frameWindow.document;\n var showStatsBtn = frameDoc.createElement(\"button\");\n var registerForm = frameDoc.getElementsByClassName(\"squatch-register\")[0];\n\n if (registerForm) {\n showStatsBtn.className = \"btn btn-primary\";\n showStatsBtn.id = \"show-stats-btn\";\n showStatsBtn.textContent = this.type === \"REFERRER_WIDGET\" ? \"Show Stats\" : \"Show Reward\";\n var widgetStyle = params.engagementMedium === \"POPUP\" ? \"margin-top: 10px; max-width: 130px; width: 100%;\" : \"margin-top: 10px;\";\n showStatsBtn.setAttribute(\"style\", widgetStyle);\n showStatsBtn.onclick = onClick; // @ts-ignore -- expect register form to be a stylable element\n\n registerForm.style.paddingTop = \"30px\";\n registerForm.innerHTML = \"&lt;p>&lt;strong>\".concat(params.email, \"&lt;/strong>&lt;br>Has been successfully registered&lt;/p>\");\n registerForm.appendChild(showStatsBtn);\n }\n }\n }]);\n\n return Widget;\n}();\n\nexport { Widget as default };\n\nfunction delay(duration) {\n return new Promise(function (resolve, reject) {\n setTimeout(function () {\n resolve(function () {});\n }, duration);\n });\n}"},{"id":22,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/AnalyticsApi.ts","name":"./src/api/AnalyticsApi.ts","index":31,"index2":26,"size":2620,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","issuerId":21,"issuerName":"./src/widgets/Widget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"},{"id":21,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","name":"./src/widgets/Widget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony side effect evaluation","userRequest":"../api/AnalyticsApi","loc":"7:0-47"},{"moduleId":21,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widget.ts","module":"./src/widgets/Widget.ts","moduleName":"./src/widgets/Widget.ts","type":"harmony import specifier","userRequest":"../api/AnalyticsApi","loc":"31:28-40"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"../../api/AnalyticsApi","loc":"16:0-50"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../api/AnalyticsApi","loc":"80:30-42"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":4,"source":"import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\n// @ts-check\nimport { doPost } from \"../utils/io\";\nimport { hasProps } from \"../utils/validate\";\n/**\n *\n * The AnalyticsApi class is a wrapper around the Analytics Endpoints of\n * the SaaSquatch REST API. Used to record Widget events.\n *\n * @hidden\n */\n\nvar AnalyticsApi = /*#__PURE__*/function () {\n /**\n * Initialize a new {@link AnalyticsApi} instance.\n *\n * @param {Object} config Config details\n * @param {string} [config.domain='https://app.referralsaasquatch.com'] The server domain.\n *\n */\n function AnalyticsApi(config) {\n _classCallCheck(this, AnalyticsApi);\n\n var raw = config;\n\n if (hasProps(raw, \"domain\") && typeof raw.domain === \"string\") {\n this.domain = raw.domain;\n } else {\n this.domain = \"https://app.referralsaasquatch.com\";\n }\n }\n\n _createClass(AnalyticsApi, [{\n key: \"pushAnalyticsLoadEvent\",\n value: function pushAnalyticsLoadEvent(params) {\n if (!params.externalUserId || !params.externalAccountId) return;\n var tenantAlias = encodeURIComponent(params.tenantAlias);\n var accountId = encodeURIComponent(params.externalAccountId);\n var userId = encodeURIComponent(params.externalUserId);\n var engagementMedium = encodeURIComponent(params.engagementMedium);\n var programId = params.programId ? \"&programId=\".concat(encodeURIComponent(params.programId)) : \"\";\n var path = \"/a/\".concat(tenantAlias, \"/widgets/analytics/loaded?externalAccountId=\").concat(accountId, \"&externalUserId=\").concat(userId, \"&engagementMedium=\").concat(engagementMedium).concat(programId);\n var url = this.domain + path;\n return doPost(url, JSON.stringify({}));\n }\n }, {\n key: \"pushAnalyticsShareClickedEvent\",\n value: function pushAnalyticsShareClickedEvent(params) {\n var tenantAlias = encodeURIComponent(params.tenantAlias);\n var accountId = encodeURIComponent(params.externalAccountId);\n var userId = encodeURIComponent(params.externalUserId);\n var engagementMedium = encodeURIComponent(params.engagementMedium);\n var shareMedium = encodeURIComponent(params.shareMedium);\n var path = \"/a/\".concat(tenantAlias, \"/widgets/analytics/shared?externalAccountId=\").concat(accountId, \"&externalUserId=\").concat(userId, \"&engagementMedium=\").concat(engagementMedium, \"&shareMedium=\").concat(shareMedium);\n var url = this.domain + path;\n return doPost(url, JSON.stringify({}));\n }\n }]);\n\n return AnalyticsApi;\n}();\n\nexport { AnalyticsApi as default };"},{"id":23,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","name":"./src/utils/utmUtils.ts","index":39,"index2":38,"size":3216,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"../../utils/utmUtils","loc":"19:0-54"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"../../utils/utmUtils","loc":"91:20-34"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./utils/utmUtils","loc":"22:0-50"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./utils/utmUtils","loc":"91:16-30"}],"usedExports":["_getAutoConfig"],"providedExports":["_getAutoConfig","convertExtraToConfig"],"optimizationBailout":[],"depth":2,"source":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i &lt; arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nimport debug from \"debug\";\nimport { b64decode } from \"./cookieUtils\";\n\n/** @hidden */\nvar _log = debug(\"squatch-js\");\n\nexport function _getAutoConfig(configIn) {\n var queryString = window.location.search;\n var urlParams = new URLSearchParams(queryString);\n var refParam = urlParams.get(\"_saasquatchExtra\") || \"\";\n\n if (!refParam) {\n _log(\"No _saasquatchExtra param\");\n\n return;\n }\n\n var raw;\n\n try {\n raw = JSON.parse(b64decode(refParam));\n } catch (e) {\n _log(\"Unable to decode _saasquatchExtra config\");\n\n return;\n }\n\n var _convertExtraToConfig = convertExtraToConfig(raw),\n domain = _convertExtraToConfig.domain,\n tenantAlias = _convertExtraToConfig.tenantAlias,\n widgetConfig = _convertExtraToConfig.widgetConfig;\n\n if (!domain || !tenantAlias || !widgetConfig) {\n _log(\"_saasquatchExtra did not have an expected structure\");\n\n return undefined;\n }\n\n var autoPopupWidgetType = widgetConfig.autoPopupWidgetType,\n rest = _objectWithoutProperties(widgetConfig, [\"autoPopupWidgetType\"]);\n\n return {\n widgetConfig: _objectSpread({\n widgetType: autoPopupWidgetType,\n displayOnLoad: true\n }, rest),\n squatchConfig: _objectSpread(_objectSpread({}, configIn ? {\n configIn: configIn\n } : {}), {}, {\n domain: domain,\n tenantAlias: tenantAlias\n })\n };\n}\n/**\n * Deconstructs _saasquatchExtra into domain, tenantAlias, and widgetConfig\n * @param obj {Record&lt;string, any>} Expected to be of the form `{ [appDomain]: { [tenantAlias]: { autoPopupWidgetType: [widgetType], [rest]?: ... } } }`\n */\n\nexport function convertExtraToConfig(obj) {\n var _obj$_domain;\n\n var _domain = Object.keys(obj || {})[0];\n var tenantAlias = Object.keys((obj === null || obj === void 0 ? void 0 : obj[_domain]) || {})[0];\n var widgetConfig = obj === null || obj === void 0 ? void 0 : (_obj$_domain = obj[_domain]) === null || _obj$_domain === void 0 ? void 0 : _obj$_domain[tenantAlias]; // domain in _saasquatchExtra doesn't contain \"https://\"\n\n var domain = _domain ? \"https://\".concat(_domain) : undefined;\n return {\n domain: domain,\n tenantAlias: tenantAlias,\n widgetConfig: widgetConfig\n };\n}"},{"id":24,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/setPrototypeOf.js","name":"./node_modules/@babel/runtime/helpers/setPrototypeOf.js","index":26,"index2":21,"size":237,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/inherits.js","issuerId":8,"issuerName":"./node_modules/@babel/runtime/helpers/inherits.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"},{"id":8,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/inherits.js","name":"./node_modules/@babel/runtime/helpers/inherits.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":8,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/inherits.js","module":"./node_modules/@babel/runtime/helpers/inherits.js","moduleName":"./node_modules/@babel/runtime/helpers/inherits.js","type":"cjs require","userRequest":"./setPrototypeOf","loc":"1:21-48"},{"moduleId":30,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","module":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","moduleName":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","type":"cjs require","userRequest":"./setPrototypeOf","loc":"3:21-48"},{"moduleId":40,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/construct.js","module":"./node_modules/@babel/runtime/helpers/construct.js","moduleName":"./node_modules/@babel/runtime/helpers/construct.js","type":"cjs require","userRequest":"./setPrototypeOf","loc":"1:21-48"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"function _setPrototypeOf(o, p) {\n module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {\n o.__proto__ = p;\n return o;\n };\n\n return _setPrototypeOf(o, p);\n}\n\nmodule.exports = _setPrototypeOf;"},{"id":25,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","index":33,"index2":41,"size":13102,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":null,"issuerId":null,"issuerName":null,"issuerPath":null,"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./widgets/declarative/DeclarativeEmbedWidget","loc":"23:0-110"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/declarative/DeclarativeEmbedWidget","loc":"32:0-34:62"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/declarative/DeclarativeEmbedWidget","loc":"32:0-34:62"}],"usedExports":["DeclarativeEmbedWidget","DeclarativePopupWidget"],"providedExports":["DeclarativeEmbedWidget","DeclarativePopupWidget"],"optimizationBailout":["ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/assertThisInitialized.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/asyncToGenerator.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/classCallCheck.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/createClass.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/defineProperty.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/getPrototypeOf.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/inherits.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/possibleConstructorReturn.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/wrapNativeSuper.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/regenerator/index.js (&lt;- Module is not an ECMAScript module)","ModuleConcatenation bailout: Cannot concat with ./src/api/AnalyticsApi.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/api/WidgetApi.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/utils/cookieUtils.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/utils/utmUtils.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/utils/validate.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/widgets/EmbedWidget.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./src/widgets/PopupWidget.ts because of ./src/squatch.ts","ModuleConcatenation bailout: Cannot concat with ./node_modules/debug/src/browser.js (&lt;- Module is not an ECMAScript module)"],"depth":2,"modules":[{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","index":33,"index2":41,"size":3462,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./widgets/declarative/DeclarativeEmbedWidget","loc":"23:0-110"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/declarative/DeclarativeEmbedWidget","loc":"32:0-34:62"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/declarative/DeclarativeEmbedWidget","loc":"32:0-34:62"}],"usedExports":["DeclarativeEmbedWidget","DeclarativePopupWidget"],"providedExports":["DeclarativeEmbedWidget","DeclarativePopupWidget"],"optimizationBailout":[],"depth":2,"source":"import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nimport DeclarativeWidget from \"./DeclarativeWidget\";\nexport var DeclarativeEmbedWidget = /*#__PURE__*/function (_DeclarativeWidget) {\n _inherits(DeclarativeEmbedWidget, _DeclarativeWidget);\n\n var _super = _createSuper(DeclarativeEmbedWidget);\n\n function DeclarativeEmbedWidget() {\n var _this;\n\n _classCallCheck(this, DeclarativeEmbedWidget);\n\n _this = _super.call(this);\n _this.type = \"EMBED\";\n _this.container = _this.getAttribute(\"container\") || undefined;\n return _this;\n }\n\n _createClass(DeclarativeEmbedWidget, [{\n key: \"attributeChangedCallback\",\n value: function attributeChangedCallback(attr, oldVal, newVal) {\n if (oldVal === newVal || !oldVal) return; // nothing to do\n\n switch (attr) {\n case \"widget\":\n this.connectedCallback();\n break;\n // Specific to embed widgets\n\n case \"container\":\n if (this.element) this.close();\n this.connectedCallback();\n break;\n }\n }\n }, {\n key: \"renderWidget\",\n value: function renderWidget() {\n this.element = this.widgetInstance._findElement();\n this.widgetInstance.load(this.frame);\n }\n }], [{\n key: \"observedAttributes\",\n get: function get() {\n return [\"widget\", \"container\"];\n }\n }]);\n\n return DeclarativeEmbedWidget;\n}(DeclarativeWidget);\nexport var DeclarativePopupWidget = /*#__PURE__*/function (_DeclarativeWidget2) {\n _inherits(DeclarativePopupWidget, _DeclarativeWidget2);\n\n var _super2 = _createSuper(DeclarativePopupWidget);\n\n function DeclarativePopupWidget() {\n var _this2;\n\n _classCallCheck(this, DeclarativePopupWidget);\n\n _this2 = _super2.call(this);\n _this2.type = \"POPUP\";\n return _this2;\n }\n\n _createClass(DeclarativePopupWidget, [{\n key: \"attributeChangedCallback\",\n value: function attributeChangedCallback(attr, oldVal, newVal) {\n if (oldVal === newVal || !oldVal) return; // nothing to do\n\n switch (attr) {\n case \"widget\":\n this.connectedCallback();\n break;\n }\n }\n }], [{\n key: \"observedAttributes\",\n get: function get() {\n return [\"widget\", \"id\"];\n }\n }]);\n\n return DeclarativePopupWidget;\n}(DeclarativeWidget);\nwindow.customElements.define(\"squatch-embed\", DeclarativeEmbedWidget);\nwindow.customElements.define(\"squatch-popup\", DeclarativePopupWidget);"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts","index":34,"index2":40,"size":9071,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","issuerId":null,"issuerName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","type":"harmony side effect evaluation","userRequest":"./DeclarativeWidget","loc":"11:0-52"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","type":"harmony import specifier","userRequest":"./DeclarativeWidget","loc":"59:2-19"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts","type":"harmony import specifier","userRequest":"./DeclarativeWidget","loc":"94:2-19"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":3,"source":"import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _assertThisInitialized from \"@babel/runtime/helpers/assertThisInitialized\";\nimport _inherits from \"@babel/runtime/helpers/inherits\";\nimport _possibleConstructorReturn from \"@babel/runtime/helpers/possibleConstructorReturn\";\nimport _getPrototypeOf from \"@babel/runtime/helpers/getPrototypeOf\";\nimport _wrapNativeSuper from \"@babel/runtime/helpers/wrapNativeSuper\";\nimport _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nimport AnalyticsApi from \"../../api/AnalyticsApi\";\nimport { EmbedWidget, PopupWidget, WidgetApi } from \"../../squatch\";\nimport { decodeUserJwt } from \"../../utils/decodeUserJwt\";\nimport { _getAutoConfig } from \"../../utils/utmUtils\";\nimport { DEFAULT_DOMAIN, DEFAULT_NPM_CDN } from \"../../utils/validate\";\n\nvar DeclarativeWidget = /*#__PURE__*/function (_HTMLElement) {\n _inherits(DeclarativeWidget, _HTMLElement);\n\n var _super = _createSuper(DeclarativeWidget);\n\n // Embed specific:\n function DeclarativeWidget() {\n var _this;\n\n _classCallCheck(this, DeclarativeWidget);\n\n _this = _super.call(this);\n\n _defineProperty(_assertThisInitialized(_this), \"_setWidget\", function (res, config) {\n if (!_this.widgetType) throw new Error(\"Widget was no specified\");\n var Widget = _this.type === \"EMBED\" ? EmbedWidget : PopupWidget;\n return new Widget({\n api: _this.widgetApi,\n content: res.template,\n context: {\n type: config.type,\n engagementMedium: _this.type\n },\n type: _this.widgetType,\n domain: _this.config.domain || DEFAULT_DOMAIN,\n npmCdn: DEFAULT_NPM_CDN,\n container: _this.container || _assertThisInitialized(_this)\n });\n });\n\n _defineProperty(_assertThisInitialized(_this), \"_setErrorWidget\", function (e) {\n var Widget = _this.type === \"EMBED\" ? EmbedWidget : PopupWidget;\n return new Widget({\n api: _this.widgetApi,\n content: \"error\",\n context: {\n type: \"error\"\n },\n type: \"ERROR_WIDGET\",\n domain: _this.config.domain || DEFAULT_DOMAIN,\n npmCdn: DEFAULT_NPM_CDN,\n container: _this.container || _assertThisInitialized(_this)\n });\n });\n\n _this.config = window.squatchConfig;\n _this.token = window.squatchToken;\n _this.tenant = window.squatchTenant;\n return _this;\n }\n\n _createClass(DeclarativeWidget, [{\n key: \"_setupApis\",\n value: function _setupApis(config) {\n this.widgetApi = new WidgetApi({\n tenantAlias: (config === null || config === void 0 ? void 0 : config.tenantAlias) || this.tenant,\n domain: (config === null || config === void 0 ? void 0 : config.domain) || this.config.domain || DEFAULT_DOMAIN\n });\n this.analyticsApi = new AnalyticsApi({\n domain: (config === null || config === void 0 ? void 0 : config.domain) || this.config.domain || DEFAULT_DOMAIN\n });\n }\n }, {\n key: \"renderPasswordlessVariant\",\n value: function renderPasswordlessVariant() {\n var _configs$widgetConfig,\n _configs$widgetConfig2,\n _this2 = this;\n\n var configs = _getAutoConfig();\n\n this._setupApis(configs === null || configs === void 0 ? void 0 : configs.squatchConfig);\n\n return this.widgetApi.render({\n engagementMedium: (configs === null || configs === void 0 ? void 0 : (_configs$widgetConfig = configs.widgetConfig) === null || _configs$widgetConfig === void 0 ? void 0 : _configs$widgetConfig.engagementMedium) || this.type,\n widgetType: (configs === null || configs === void 0 ? void 0 : (_configs$widgetConfig2 = configs.widgetConfig) === null || _configs$widgetConfig2 === void 0 ? void 0 : _configs$widgetConfig2.widgetType) || this.widgetType\n }).then(function (res) {\n return _this2._setWidget(res, {\n type: \"passwordless\"\n });\n }).catch(this._setErrorWidget);\n }\n }, {\n key: \"renderUserUpsertVariant\",\n value: function () {\n var _renderUserUpsertVariant = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {\n var _this3 = this;\n\n var userObj, widgetInstance;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n if (this.widgetType) {\n _context.next = 2;\n break;\n }\n\n throw new Error(\"Widget must be specified\");\n\n case 2:\n this._setupApis();\n\n userObj = decodeUserJwt(this.token);\n\n if (userObj) {\n _context.next = 6;\n break;\n }\n\n throw new Error(\"Could not load user information from jwt\");\n\n case 6:\n _context.next = 8;\n return this.widgetApi.upsertUser({\n user: userObj,\n engagementMedium: this.type,\n widgetType: this.widgetType,\n jwt: this.token\n }).then(function (res) {\n return _this3._setWidget(res, {\n type: \"upsert\"\n });\n }).catch(this._setErrorWidget);\n\n case 8:\n widgetInstance = _context.sent;\n return _context.abrupt(\"return\", widgetInstance);\n\n case 10:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this);\n }));\n\n function renderUserUpsertVariant() {\n return _renderUserUpsertVariant.apply(this, arguments);\n }\n\n return renderUserUpsertVariant;\n }()\n }, {\n key: \"renderWidget\",\n value: function renderWidget() {\n this.widgetInstance.load(this.frame);\n }\n }, {\n key: \"connectedCallback\",\n value: function () {\n var _connectedCallback = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n this.widgetType = this.getAttribute(\"widget\") || undefined;\n console.log({\n widget: this.getAttribute(\"widget\")\n });\n\n if (this.widgetType) {\n _context2.next = 4;\n break;\n }\n\n throw new Error(\"No widget has been specified\");\n\n case 4:\n if (this.token) {\n _context2.next = 10;\n break;\n }\n\n _context2.next = 7;\n return this.renderPasswordlessVariant();\n\n case 7:\n this.widgetInstance = _context2.sent;\n _context2.next = 13;\n break;\n\n case 10:\n _context2.next = 12;\n return this.renderUserUpsertVariant();\n\n case 12:\n this.widgetInstance = _context2.sent;\n\n case 13:\n if (this.widgetInstance) {\n _context2.next = 15;\n break;\n }\n\n throw new Error(\"Could not create widget.\");\n\n case 15:\n this.frame = this.widgetInstance._createFrame();\n this.renderWidget();\n\n case 17:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this);\n }));\n\n function connectedCallback() {\n return _connectedCallback.apply(this, arguments);\n }\n\n return connectedCallback;\n }()\n }, {\n key: \"open\",\n value: function open() {\n this.widgetInstance.open(this.frame);\n }\n }, {\n key: \"close\",\n value: function close() {\n this.widgetInstance.close(this.frame);\n }\n }]);\n\n return DeclarativeWidget;\n}( /*#__PURE__*/_wrapNativeSuper(HTMLElement));\n\nexport { DeclarativeWidget as default };"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/decodeUserJwt.ts","name":"./src/utils/decodeUserJwt.ts","index":43,"index2":39,"size":479,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","issuerId":null,"issuerName":"./src/widgets/declarative/DeclarativeWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony side effect evaluation","userRequest":"../../utils/decodeUserJwt","loc":"18:0-58"},{"moduleId":null,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","module":"./src/widgets/declarative/DeclarativeWidget.ts","moduleName":"./src/widgets/declarative/DeclarativeWidget.ts","type":"harmony import specifier","userRequest":"../../utils/decodeUserJwt","loc":"125:26-39"}],"usedExports":["decodeUserJwt"],"providedExports":["decodeUserJwt"],"optimizationBailout":[],"depth":4,"source":"import debug from \"debug\";\nimport { b64decode } from \"./cookieUtils\";\n\nvar _log = debug(\"squatch-js:decodeJwt\");\n\nexport function decodeUserJwt(tokenStr) {\n try {\n var _JSON$parse;\n\n var base64Url = tokenStr.split(\".\")[1];\n if (base64Url === undefined) return null;\n var jsonStr = b64decode(base64Url);\n return (_JSON$parse = JSON.parse(jsonStr)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.user;\n } catch (e) {\n _log(e);\n\n return null;\n }\n}"}],"filteredModules":0},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts","index":7,"index2":30,"size":14577,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./widgets/Widgets","loc":"12:0-40"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./widgets/Widgets","loc":"32:0-34:62"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./widgets/Widgets","loc":"126:17-24"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":2,"source":"import _asyncToGenerator from \"@babel/runtime/helpers/asyncToGenerator\";\nimport _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport _regeneratorRuntime from \"@babel/runtime/regenerator\";\nimport debug from \"debug\"; //@ts-ignore\n\nimport * as EventBus from \"eventbusjs\";\nimport WidgetApi from \"../api/WidgetApi\";\nimport EmbedWidget from \"./EmbedWidget\";\nimport PopupWidget from \"./PopupWidget\";\nimport { validateConfig, validatePasswordlessConfig, validateWidgetConfig } from \"../utils/validate\";\n\nvar _log = debug(\"squatch-js:widgets\");\n/**\n *\n * `Widgets` is a factory for creating widgets. It's possible to build your own widgets using the\n * {@link WidgetApi} but most people will prefer to use these easy methods.\n *\n */\n\n\nvar Widgets = /*#__PURE__*/function () {\n // for with locals custom theme, can be removed once with locals isnt' using eventBus anymore.\n\n /**\n * Initialize a new {@link Widgets} instance.\n *\n * @param {ConfigOptions} config Config details\n *\n * @example &lt;caption>Browser example&lt;/caption>\n * var widgets = new squatch.Widgets({tenantAlias:'test_12b5bo1b25125'});\n *\n * @example &lt;caption>Browserify/Webpack example&lt;/caption>\n * var Widgets = require('@saasquatch/squatch-js').Widgets;\n * var widgets = new Widgets({tenantAlias:'test_12b5bo1b25125'});\n *\n * @example &lt;caption>Babel+Browserify/Webpack example&lt;/caption>\n * import {Widgets} from '@saasquatch/squatch-js';\n * let widgets = new Widgets({tenantAlias:'test_12b5bo1b25125'});\n */\n function Widgets(configin) {\n _classCallCheck(this, Widgets);\n\n var raw = configin;\n var config = validateConfig(raw);\n this.tenantAlias = config.tenantAlias;\n this.domain = config.domain;\n this.npmCdn = config.npmCdn; // for with locals custom theme, can be removed once with locals isnt' using eventBus anymore.\n\n this.eventBus = EventBus;\n this.api = new WidgetApi(config); // listens to a 'submit_email' event in the theme.\n\n EventBus.addEventListener(\"submit_email\", Widgets._cb);\n }\n /**\n * This function calls the {@link WidgetApi.upsertUser} method, and it renders\n * the widget if it is successful. Otherwise it shows the \"error\" widget.\n *\n * @param {Object} config Config details\n * @param {Object} config.user The user details\n * @param {string} config.user.id The user id\n * @param {string} config.user.accountId The user account id\n * @param {WidgetType} config.widgetType The content of the widget.\n * @param {EngagementMedium} config.engagementMedium How to display the widget.\n * @param {string} config.jwt the JSON Web Token (JWT) that is used to validate the data (can be disabled)\n * @param {HTMLElement | string | undefined} config.container Element to load the widget into\n * @param {string | undefined} config.trigger Trigger element for opening the popup widget\n *\n * @return {Promise&lt;WidgetResult>} json object if true, with a Widget and user details.\n */\n\n\n _createClass(Widgets, [{\n key: \"upsertUser\",\n value: function () {\n var _upsertUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(config) {\n var raw, clean, response;\n return _regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n raw = config;\n clean = validateWidgetConfig(raw);\n _context.prev = 2;\n _context.next = 5;\n return this.api.upsertUser(clean);\n\n case 5:\n response = _context.sent;\n return _context.abrupt(\"return\", {\n widget: this._renderWidget(response, clean, {\n type: \"upsert\",\n user: clean.user || null,\n engagementMedium: config.engagementMedium,\n container: config.container,\n trigger: config.trigger\n }),\n user: response.user\n });\n\n case 9:\n _context.prev = 9;\n _context.t0 = _context[\"catch\"](2);\n\n _log(_context.t0);\n\n if (_context.t0.apiErrorCode) {\n this._renderErrorWidget(_context.t0, config.engagementMedium);\n }\n\n throw _context.t0;\n\n case 14:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee, this, [[2, 9]]);\n }));\n\n function upsertUser(_x) {\n return _upsertUser.apply(this, arguments);\n }\n\n return upsertUser;\n }()\n /**\n * This function calls the {@link WidgetApi.render} method, and it renders\n * the widget if it is successful. Otherwise it shows the \"error\" widget.\n *\n * @param {Object} config Config details\n * @param {Object} config.user The user details\n * @param {string} config.user.id The user id\n * @param {string} config.user.accountId The user account id\n * @param {WidgetType} config.widgetType The content of the widget.\n * @param {EngagementMedium} config.engagementMedium How to display the widget.\n * @param {string} config.jwt the JSON Web Token (JWT) that is used\n * to validate the data (can be disabled)\n *\n * @return {Promise&lt;WidgetResult>} json object if true, with a Widget and user details.\n */\n\n }, {\n key: \"render\",\n value: function () {\n var _render = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(config) {\n var raw, clean, response;\n return _regeneratorRuntime.wrap(function _callee2$(_context2) {\n while (1) {\n switch (_context2.prev = _context2.next) {\n case 0:\n raw = config;\n clean = validatePasswordlessConfig(raw);\n _context2.prev = 2;\n _context2.next = 5;\n return this.api.render(clean);\n\n case 5:\n response = _context2.sent;\n return _context2.abrupt(\"return\", {\n widget: this._renderWidget(response, clean, {\n type: \"passwordless\",\n engagementMedium: clean.engagementMedium\n }),\n user: response.user\n });\n\n case 9:\n _context2.prev = 9;\n _context2.t0 = _context2[\"catch\"](2);\n\n if (_context2.t0.apiErrorCode) {\n this._renderErrorWidget(_context2.t0, clean.engagementMedium);\n }\n\n throw _context2.t0;\n\n case 13:\n case \"end\":\n return _context2.stop();\n }\n }\n }, _callee2, this, [[2, 9]]);\n }));\n\n function render(_x2) {\n return _render.apply(this, arguments);\n }\n\n return render;\n }()\n /**\n * Autofills a referral code into an element when someone has been referred.\n * Uses {@link WidgetApi.squatchReferralCookie} behind the scenes.\n *\n * @param selector Element class/id selector, or a callback function\n * @returns\n */\n\n }, {\n key: \"autofill\",\n value: function autofill(selector) {\n var input = selector;\n\n if (typeof input === \"function\") {\n this.api.squatchReferralCookie().then(function () {\n return input.apply(void 0, arguments);\n }).catch(function (ex) {\n _log(\"Autofill error\", ex);\n\n throw ex;\n });\n return;\n }\n\n if (typeof input !== \"string\") throw new Error(\"Autofill accepts a string or function\");\n var elems = document.querySelectorAll(input);\n var elem;\n\n if (elems.length > 0) {\n // Only use the first element found\n elem = elems[0];\n } else {\n _log(\"Element id/class or function missing\");\n\n throw new Error(\"Element id/class or function missing\");\n }\n\n this.api.squatchReferralCookie() //@ts-ignore\n .then(function (_ref) {\n var codes = _ref.codes;\n elem.value = codes[0];\n }).catch(function (ex) {\n throw ex;\n });\n }\n /**\n * Overrides the default function that submits the user email. If you have\n * Security enabled, the email needs to be signed before it's submitted.\n *\n * @param {function} fn Callback function for the 'submit_email' event.\n * @returns {void}\n */\n\n }, {\n key: \"submitEmail\",\n value: function submitEmail(fn) {\n EventBus.removeEventListener(\"submit_email\", Widgets._cb);\n EventBus.addEventListener(\"submit_email\", fn);\n }\n /**\n * @hidden\n * @param {Object} response The json object return from the WidgetApi\n * @param {Object} config Config details\n * @param {string} config.widgetType The widget type (REFERRER_WIDGET, CONVERSION_WIDGET)\n * @param {string} config.engagementMedium (POPUP, EMBED)\n * @returns {Widget} widget (PopupWidget or EmbedWidget)\n */\n\n }, {\n key: \"_renderWidget\",\n value: function _renderWidget(response, config, context) {\n _log(\"Rendering Widget...\");\n\n if (!response) throw new Error(\"Unable to get a response\");\n var widget;\n var displayOnLoad = !!config.displayOnLoad;\n var displayCTA = false;\n var opts = response.jsOptions || \"\";\n var params = {\n content: response.template,\n type: config.widgetType || opts.widget.defaultWidgetType,\n api: this.api,\n domain: this.domain,\n npmCdn: this.npmCdn,\n context: context\n };\n\n if (opts.widgetUrlMappings) {\n opts.widgetUrlMappings.forEach(function (rule) {\n if (Widgets._matchesUrl(rule.url)) {\n if (rule.widgetType !== \"CONVERSION_WIDGET\" || response.user.referredBy && response.user.referredBy.code) {\n displayOnLoad = rule.displayOnLoad;\n displayCTA = rule.showAsCTA;\n\n _log(\"Display \".concat(rule.widgetType, \" on \").concat(rule.url));\n } else {\n _log(\"Don't display \".concat(rule.widgetType, \" when no referral on widget rule match \").concat(rule.url));\n }\n }\n });\n }\n\n if (opts.conversionUrls) {\n opts.conversionUrls.forEach(function (rule) {\n if (response.user.referredBy && Widgets._matchesUrl(rule)) {\n _log(\"This is a conversion URL\", rule);\n }\n });\n }\n\n if (opts.fuelTankAutofillUrls) {\n _log(\"We found a fuel tank autofill!\");\n\n opts.fuelTankAutofillUrls.forEach(function (_ref2) {\n var url = _ref2.url,\n formSelector = _ref2.formSelector;\n\n if (Widgets._matchesUrl(url)) {\n _log(\"Fuel Tank URL matches\");\n\n if (response.user.referredBy && response.user.referredBy.code) {\n var formAutofill = document.querySelector(formSelector);\n\n if (formAutofill) {\n formAutofill.value = response.user.referredBy.referredReward.fuelTankCode || \"\";\n } else {\n _log(new Error(\"Element with id/class \".concat(formSelector, \" was not found.\")));\n }\n }\n }\n });\n }\n\n if (config.engagementMedium === \"EMBED\") {\n this._renderEmbedWidget(params, params.context.container);\n } else if (config.engagementMedium === \"POPUP\") {\n widget = this._renderPopupWidget(params);\n if (displayOnLoad) widget.open();\n } else {\n _log(\"display popup on load\");\n\n widget = new PopupWidget(params);\n widget.load();\n if (displayOnLoad) widget.open();\n }\n\n return widget;\n }\n }, {\n key: \"_renderPopupWidget\",\n value: function _renderPopupWidget(params) {\n var widget = new PopupWidget(params, params.context.trigger);\n\n var frame = widget._createFrame();\n\n widget.load(frame);\n return widget;\n }\n }, {\n key: \"_renderEmbedWidget\",\n value: function _renderEmbedWidget(params, container) {\n var widget = new EmbedWidget(params);\n\n var frame = widget._createFrame();\n\n widget.load(frame);\n }\n /**\n * @hidden\n * @param {Object} error The json object containing the error details\n * @param {string} em The engagementMedium\n * @returns {void}\n */\n\n }, {\n key: \"_renderErrorWidget\",\n value: function _renderErrorWidget(props) {\n var em = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : \"POPUP\";\n var apiErrorCode = props.apiErrorCode,\n rsCode = props.rsCode,\n message = props.message;\n\n _log(new Error(\"\".concat(apiErrorCode, \" (\").concat(rsCode, \") \").concat(message)));\n\n var params = {\n content: \"error\",\n rsCode: rsCode,\n api: this.api,\n domain: this.domain,\n npmCdn: this.npmCdn,\n type: \"ERROR_WIDGET\",\n context: {\n type: \"error\"\n }\n };\n var widget;\n\n if (em === \"EMBED\") {\n widget = new EmbedWidget(params);\n\n var frame = widget._createFrame();\n\n widget.load(frame);\n } else if (em === \"POPUP\") {\n widget = new PopupWidget(params);\n\n var _frame = widget._createFrame();\n\n widget.load(_frame);\n }\n }\n /**\n * @hidden\n * @param {string} rule A regular expression\n * @returns {boolean} true if rule matches Url, false otherwise\n */\n\n }], [{\n key: \"_matchesUrl\",\n value: function _matchesUrl(rule) {\n // If there were no matches, null is returned.\n return window.location.href.match(new RegExp(rule)) ? true : false;\n }\n /**\n * @hidden\n * @param {Object} target Object containing the target DOM element\n * @param {Widget} widget A widget (EmbedWidget, PopupWidget)\n * @param {Object} params An object with valid parameters\n * (e.g) {email:'email', firstName:'firstName'}\n * @returns {void}\n */\n\n }, {\n key: \"_cb\",\n value: function _cb(target, widget, params) {\n var paramsObj; // If params is a string, then it should be an email\n\n if (typeof params === \"string\" || params instanceof String) {\n paramsObj = {\n email: params\n };\n } else {\n paramsObj = params;\n } // TODO: Reload doesn't exist on all widget types\n\n\n widget.reload(paramsObj);\n }\n }]);\n\n return Widgets;\n}();\n\nexport { Widgets as default };"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts","index":1,"index2":44,"size":5772,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"multi ./src/squatch.ts","issuerId":34,"issuerName":"multi ./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"../../squatch","loc":"17:0-68"},{"moduleId":34,"moduleIdentifier":"multi ./src/squatch.ts","module":"multi ./src/squatch.ts","moduleName":"multi ./src/squatch.ts","type":"single entry","userRequest":"./src/squatch.ts","loc":"squatch[0]"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module exports are unknown"],"depth":1,"source":"// @ts-check\n\n/**\n * Squatch.js is the Referral SaaSquatch javascript SDK and a one-stop shop to\n * integrate a referral program into your website or web app.\n * It can show referral widgets on any website, track users, generate unique\n * referral short links and referral codes, and more.\n *\n * @module squatch\n */\nimport debug from \"debug\";\nimport Widgets from \"./widgets/Widgets\";\nimport EmbedWidget from \"./widgets/EmbedWidget\";\nimport PopupWidget from \"./widgets/PopupWidget\"; // import IREmbedWidget from \"./widgets/IREmbedWidget\";\n// import IRPopupWidget from \"./widgets/IRPopupWidget\";\n\nimport WidgetApi from \"./api/WidgetApi\";\nimport EventsApi from \"./api/EventsApi\";\nimport asyncLoad from \"./async\";\nimport { validateConfig } from \"./utils/validate\";\nimport { _pushCookie } from \"./utils/cookieUtils\";\nimport { _getAutoConfig } from \"./utils/utmUtils\";\nimport { DeclarativeEmbedWidget, DeclarativePopupWidget } from \"./widgets/declarative/DeclarativeEmbedWidget\";\nexport * from \"./types\";\nexport * from \"./docs\"; // @ts-ignore\n// debug.disable(\"squatch-js*\");\n\n/** @hidden */\n\nvar _log = debug(\"squatch-js\");\n\nexport { Widgets, EmbedWidget, PopupWidget // IREmbedWidget,\n// IRPopupWidget,\n, DeclarativeEmbedWidget, DeclarativePopupWidget, WidgetApi };\n/** @hidden */\n\nvar _api = null;\n/** @hidden */\n\nvar _widgets = null;\n/** @hidden */\n\nvar _events = null;\n/**\n * A static instance of the {@link WidgetApi} created when you call {@link #init init}.\n *\n * Read the {@link WidgetApi} docs.\n *\n * @returns WidgetApi static instance\n */\n\nexport function api() {\n return _api;\n}\n/**\n * A static instance of the {@link Widgets} created when you call {@link #init init}.\n *\n * Read the {@link Widgets} docs.\n *\n * @returns static instance\n */\n\nexport function widgets() {\n return _widgets;\n}\n/**\n * A static instance of the {@link EventsApi} created when you call {@link #init init}.\n *\n * Read the {@link EventsApi} docs.\n *\n * @returns EventsApi static instance\n */\n\nexport function events() {\n return _events;\n}\n/**\n * Entry-point for high level API to render a widget using the instance of {@link Widgets} created when you call {@link #init init}.\n */\n\nexport function widget(widgetConfig) {\n var _widgets2;\n\n return (_widgets2 = widgets()) === null || _widgets2 === void 0 ? void 0 : _widgets2.render(widgetConfig);\n}\n/**\n * Extracts widget configuration from `_saasquatchExtra` UTM parameter. Initialises `squatch` and renders the widget as a {@link PopupWidget} via static instanct of {@link Widgets}.\n */\n\nexport function _auto(configIn) {\n var configs = _getAutoConfig(configIn);\n\n if (configs) {\n var _widgets3;\n\n var squatchConfig = configs.squatchConfig,\n widgetConfig = configs.widgetConfig;\n init(squatchConfig);\n return (_widgets3 = widgets()) === null || _widgets3 === void 0 ? void 0 : _widgets3.render(widgetConfig);\n }\n}\n/**\n * Initializes the static `squatch` global. This sets up:\n *\n * - `squatch.api()` a static instance of the {@link WidgetApi}\n * - `squatch.widgets()` a static instance of {@link Widgets}\n * - `squatch.events()` a static instance of {@link EventsApi}\n *\n * @param config Configuration details\n *\n * @example\n * squatch.init({tenantAlias:'test_basbtabstq51v'});\n */\n\nexport function init(configIn) {\n var raw = configIn;\n var config = validateConfig(raw);\n\n if (config.tenantAlias.match(\"^test\") || config.debug) {\n debug.enable(\"squatch-js*\");\n }\n\n _log(\"initializing ...\");\n\n _api = new WidgetApi(config);\n _widgets = new Widgets(config);\n _events = new EventsApi(config);\n\n _log(\"Widget API instance\", _api);\n\n _log(\"Widgets instance\", _widgets);\n\n _log(\"Events API instance\", _events);\n}\n/**\n * Squatch.js can't start safely making operations until it's \"ready\". This\n * function detects that state.\n *\n * @param fn A callback once Squatch.js is ready.\n *\n * @example\n * squatch.ready(function() {\n * console.log(\"ready!\");\n * squatch.api().upsertUser();\n * });\n */\n\nexport function ready(fn) {\n fn();\n}\n/**\n * Autofills a referral code into an element when someone has been referred.\n * Uses {@link WidgetApi.squatchReferralCookie} behind the scenes.\n *\n * @param {string} selector Element class/id\n * @returns {void}\n */\n\nexport function autofill(selector) {\n // @ts-ignore -- will throw occasionally throw a null pointer exception at runtime\n widgets().autofill(selector);\n}\n/**\n * Overrides the default function that submits the user email. If you have\n * Security enabled, the email needs to be signed before it's submitted.\n *\n * @param {function} fn Callback function for the 'submit_email' event.\n * @returns {void}\n *\n * @example\n * squatch.submitEmail(function(target, widget, email) {\n * // Sign email and generate jwt token\n * var jwt = 'token';\n * widget.reload(email, jwt);\n * });\n */\n\nexport function submitEmail(fn) {\n // @ts-ignore -- will throw occasionally throw a null pointer exception at runtime\n widgets().submitEmail(fn);\n}\n/**\n * Manually set the _saasquatch cookie as a 1st party cookie if available as a URL parameter on the current page.\n * This runs automatically immediately when squatch-js is loaded, except when window.SaaSquatchDoNotAutoDrop is true.\n * Use this function manually if you have a single page application or custom routing that causes the `_saasquatch` URL parameter to not be set when Squatch.js loads.\n \n * It is safe to run this function multiple times. If the `_saasquatch` URL parameter is invalid or missing it will not clear the 1st party cookie.\n \n *\n * @returns {void}\n *\n * @example\n * squatch.pushCookie();\n */\n\nexport function pushCookie() {\n _pushCookie();\n}\n\nif (typeof document !== \"undefined\" && !window.SaaSquatchDoNotAutoDrop) {\n pushCookie();\n}\n\nif (typeof document !== \"undefined\") asyncLoad();"},{"id":28,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/types.ts","name":"./src/types.ts","index":5,"index2":3,"size":0,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./types","loc":"24:0-24"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./types","loc":"24:0-24"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":2,"source":""},{"id":29,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/docs.ts","name":"./src/docs.ts","index":6,"index2":4,"size":186,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./docs","loc":"25:0-23"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony export imported specifier","userRequest":"./docs","loc":"25:0-23"}],"usedExports":["help"],"providedExports":["help"],"optimizationBailout":[],"depth":2,"source":"// @ts-check\nexport function help() {\n console.log(\"Having trouble using Squatch.js? Go to https://docs.referralsaasquatch.com/developer/ for tutorials, references and error codes.\");\n}"},{"id":30,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","name":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","index":35,"index2":34,"size":1129,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","issuerId":null,"issuerName":"./src/widgets/declarative/DeclarativeWidget.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/wrapNativeSuper","loc":"8:0-70"},{"moduleId":25,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts c6d3dc303505ea7de6a9a623446078d2","module":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","moduleName":"./src/widgets/declarative/DeclarativeEmbedWidget.ts + 2 modules","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/wrapNativeSuper","loc":"250:16-32"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"var getPrototypeOf = require(\"./getPrototypeOf\");\n\nvar setPrototypeOf = require(\"./setPrototypeOf\");\n\nvar isNativeFunction = require(\"./isNativeFunction\");\n\nvar construct = require(\"./construct\");\n\nfunction _wrapNativeSuper(Class) {\n var _cache = typeof Map === \"function\" ? new Map() : undefined;\n\n module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) {\n if (Class === null || !isNativeFunction(Class)) return Class;\n\n if (typeof Class !== \"function\") {\n throw new TypeError(\"Super expression must either be null or a function\");\n }\n\n if (typeof _cache !== \"undefined\") {\n if (_cache.has(Class)) return _cache.get(Class);\n\n _cache.set(Class, Wrapper);\n }\n\n function Wrapper() {\n return construct(Class, arguments, getPrototypeOf(this).constructor);\n }\n\n Wrapper.prototype = Object.create(Class.prototype, {\n constructor: {\n value: Wrapper,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n return setPrototypeOf(Wrapper, Class);\n };\n\n return _wrapNativeSuper(Class);\n}\n\nmodule.exports = _wrapNativeSuper;"},{"id":31,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/objectWithoutProperties.js","name":"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js","index":40,"index2":36,"size":665,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","issuerId":23,"issuerName":"./src/utils/utmUtils.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":23,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","name":"./src/utils/utmUtils.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony side effect evaluation","userRequest":"@babel/runtime/helpers/objectWithoutProperties","loc":"2:0-86"},{"moduleId":23,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","module":"./src/utils/utmUtils.ts","moduleName":"./src/utils/utmUtils.ts","type":"harmony import specifier","userRequest":"@babel/runtime/helpers/objectWithoutProperties","loc":"47:13-37"}],"usedExports":["default"],"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"var objectWithoutPropertiesLoose = require(\"./objectWithoutPropertiesLoose\");\n\nfunction _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n\n for (i = 0; i &lt; sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutProperties;"},{"id":32,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/api/EventsApi.ts","name":"./src/api/EventsApi.ts","index":44,"index2":42,"size":2704,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./api/EventsApi","loc":"18:0-40"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./api/EventsApi","loc":"127:16-25"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":2,"source":"import _classCallCheck from \"@babel/runtime/helpers/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/createClass\";\nimport { doPost } from \"../utils/io\";\nimport { isObject, assertProp, validateConfig } from \"../utils/validate\";\n\n/**\n *\n * The EventsApi class is a wrapper around the open endpoints of the SaaSquatch REST API.\n *\n */\nvar EventsApi = /*#__PURE__*/function () {\n /**\n * Initialize a new {@link EventsApi} instance.\n *\n * @param {ConfigOptions} config Config details\n *\n * @example &lt;caption>Browser example&lt;/caption>\n * var squatchApi = new squatch.EventsApi({tenantAlias:'test_12b5bo1b25125'});\n *\n * @example &lt;caption>Browserify/Webpack example&lt;/caption>\n * var EventsApi = require('@saasquatch/squatch-js').EventsApi;\n * var squatchApi = new EventsApi({tenantAlias:'test_12b5bo1b25125'});\n *\n * @example &lt;caption>Babel+Browserify/Webpack example&lt;/caption>\n * import {EventsApi} from '@saasquatch/squatch-js';\n * let squatchApi = new EventsApi({tenantAlias:'test_12b5bo1b25125'});\n */\n function EventsApi(config) {\n _classCallCheck(this, EventsApi);\n\n var raw = config; // Flags that we need to validate anything we use from this type\n\n var clean = validateConfig(raw);\n this.tenantAlias = clean.tenantAlias;\n this.domain = clean.domain;\n }\n /**\n * Track an event for a user\n *\n * @param params Parameters for request\n * @param options.jwt the JSON Web Token (JWT) that is used to authenticate the user\n *\n * @return An ID to confirm the event has been accepted for asynchronous processing\n */\n\n\n _createClass(EventsApi, [{\n key: \"track\",\n value: function track(params, options) {\n var raw = params;\n var rawOpts = options;\n\n var body = _validateEvent(raw);\n\n var _validateTrackOptions2 = _validateTrackOptions(rawOpts),\n jwt = _validateTrackOptions2.jwt;\n\n var ta = encodeURIComponent(this.tenantAlias);\n var userId = encodeURIComponent(body.userId);\n var accountId = encodeURIComponent(body.accountId);\n var path = \"/api/v1/\".concat(ta, \"/open/account/\").concat(accountId, \"/user/\").concat(userId, \"/events\");\n var url = this.domain + path;\n return doPost(url, JSON.stringify(body), jwt);\n }\n }]);\n\n return EventsApi;\n}();\n\nexport { EventsApi as default };\n\nfunction _validateEvent(raw) {\n if (!assertProp(raw, \"accountId\", \"events\", \"userId\")) throw new Error(\"Fields required\");\n if (!Array.isArray(raw.events)) throw new Error(\"'events' should be an array\"); // TODO: Better type checking\n\n return raw;\n}\n\nfunction _validateTrackOptions(raw) {\n if (!isObject(raw)) throw new Error(\"'options' should be an object\");\n return raw;\n}"},{"id":33,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/async.ts","name":"./src/async.ts","index":45,"index2":43,"size":580,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","issuerId":27,"issuerName":"./src/squatch.ts","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony side effect evaluation","userRequest":"./async","loc":"19:0-32"},{"moduleId":27,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","module":"./src/squatch.ts","moduleName":"./src/squatch.ts","type":"harmony import specifier","userRequest":"./async","loc":"204:37-46"}],"usedExports":["default"],"providedExports":["default"],"optimizationBailout":[],"depth":2,"source":"/** @hidden */\nexport default function asyncLoad() {\n var loaded = window.squatch || null;\n var cached = window._squatch || null;\n\n if (loaded && cached) {\n var ready = cached.ready || [];\n ready.forEach(function (cb) {\n return setTimeout(function () {\n return cb();\n }, 0);\n });\n setTimeout(function () {\n return window.squatch._auto();\n }, 0); // @ts-ignore -- intetionally deletes `_squatch` to cleanup initialization\n\n window._squatch = undefined;\n\n try {\n delete window._squatch;\n } catch (e) {\n throw e;\n }\n }\n}"},{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts","index":0,"index2":45,"size":28,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":null,"issuerId":null,"issuerName":null,"issuerPath":null,"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":null,"moduleIdentifier":null,"module":null,"moduleName":null,"type":"multi entry"},{"moduleId":null,"moduleIdentifier":null,"module":null,"moduleName":null,"type":"multi entry"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":0},{"id":35,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/common.js","name":"./node_modules/debug/src/common.js","index":3,"index2":1,"size":5929,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/browser.js","issuerId":3,"issuerName":"./node_modules/debug/src/browser.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":3,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/browser.js","name":"./node_modules/debug/src/browser.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":3,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/browser.js","module":"./node_modules/debug/src/browser.js","moduleName":"./node_modules/debug/src/browser.js","type":"cjs require","userRequest":"./common","loc":"167:17-36"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":3,"source":"\"use strict\";\n\n/**\n * This is the common logic for both the Node.js and web browser\n * implementations of `debug()`.\n */\nfunction setup(env) {\n createDebug.debug = createDebug;\n createDebug.default = createDebug;\n createDebug.coerce = coerce;\n createDebug.disable = disable;\n createDebug.enable = enable;\n createDebug.enabled = enabled;\n createDebug.humanize = require('ms');\n Object.keys(env).forEach(function (key) {\n createDebug[key] = env[key];\n });\n /**\n * Active `debug` instances.\n */\n\n createDebug.instances = [];\n /**\n * The currently active debug mode names, and names to skip.\n */\n\n createDebug.names = [];\n createDebug.skips = [];\n /**\n * Map of special \"%n\" handling functions, for the debug \"format\" argument.\n *\n * Valid key names are a single, lower or upper-case letter, i.e. \"n\" and \"N\".\n */\n\n createDebug.formatters = {};\n /**\n * Selects a color for a debug namespace\n * @param {String} namespace The namespace string for the for the debug instance to be colored\n * @return {Number|String} An ANSI color code for the given namespace\n * @api private\n */\n\n function selectColor(namespace) {\n var hash = 0;\n\n for (var i = 0; i &lt; namespace.length; i++) {\n hash = (hash &lt;&lt; 5) - hash + namespace.charCodeAt(i);\n hash |= 0; // Convert to 32bit integer\n }\n\n return createDebug.colors[Math.abs(hash) % createDebug.colors.length];\n }\n\n createDebug.selectColor = selectColor;\n /**\n * Create a debugger with the given `namespace`.\n *\n * @param {String} namespace\n * @return {Function}\n * @api public\n */\n\n function createDebug(namespace) {\n var prevTime;\n\n function debug() {\n // Disabled?\n if (!debug.enabled) {\n return;\n }\n\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key &lt; _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var self = debug; // Set `diff` timestamp\n\n var curr = Number(new Date());\n var ms = curr - (prevTime || curr);\n self.diff = ms;\n self.prev = prevTime;\n self.curr = curr;\n prevTime = curr;\n args[0] = createDebug.coerce(args[0]);\n\n if (typeof args[0] !== 'string') {\n // Anything else let's inspect with %O\n args.unshift('%O');\n } // Apply any `formatters` transformations\n\n\n var index = 0;\n args[0] = args[0].replace(/%([a-zA-Z%])/g, function (match, format) {\n // If we encounter an escaped % then don't increase the array index\n if (match === '%%') {\n return match;\n }\n\n index++;\n var formatter = createDebug.formatters[format];\n\n if (typeof formatter === 'function') {\n var val = args[index];\n match = formatter.call(self, val); // Now we need to remove `args[index]` since it's inlined in the `format`\n\n args.splice(index, 1);\n index--;\n }\n\n return match;\n }); // Apply env-specific formatting (colors, etc.)\n\n createDebug.formatArgs.call(self, args);\n var logFn = self.log || createDebug.log;\n logFn.apply(self, args);\n }\n\n debug.namespace = namespace;\n debug.enabled = createDebug.enabled(namespace);\n debug.useColors = createDebug.useColors();\n debug.color = selectColor(namespace);\n debug.destroy = destroy;\n debug.extend = extend; // Debug.formatArgs = formatArgs;\n // debug.rawLog = rawLog;\n // env-specific initialization logic for debug instances\n\n if (typeof createDebug.init === 'function') {\n createDebug.init(debug);\n }\n\n createDebug.instances.push(debug);\n return debug;\n }\n\n function destroy() {\n var index = createDebug.instances.indexOf(this);\n\n if (index !== -1) {\n createDebug.instances.splice(index, 1);\n return true;\n }\n\n return false;\n }\n\n function extend(namespace, delimiter) {\n return createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace);\n }\n /**\n * Enables a debug mode by namespaces. This can include modes\n * separated by a colon and wildcards.\n *\n * @param {String} namespaces\n * @api public\n */\n\n\n function enable(namespaces) {\n createDebug.save(namespaces);\n createDebug.names = [];\n createDebug.skips = [];\n var i;\n var split = (typeof namespaces === 'string' ? namespaces : '').split(/[\\s,]+/);\n var len = split.length;\n\n for (i = 0; i &lt; len; i++) {\n if (!split[i]) {\n // ignore empty strings\n continue;\n }\n\n namespaces = split[i].replace(/\\*/g, '.*?');\n\n if (namespaces[0] === '-') {\n createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));\n } else {\n createDebug.names.push(new RegExp('^' + namespaces + '$'));\n }\n }\n\n for (i = 0; i &lt; createDebug.instances.length; i++) {\n var instance = createDebug.instances[i];\n instance.enabled = createDebug.enabled(instance.namespace);\n }\n }\n /**\n * Disable debug output.\n *\n * @api public\n */\n\n\n function disable() {\n createDebug.enable('');\n }\n /**\n * Returns true if the given mode name is enabled, false otherwise.\n *\n * @param {String} name\n * @return {Boolean}\n * @api public\n */\n\n\n function enabled(name) {\n if (name[name.length - 1] === '*') {\n return true;\n }\n\n var i;\n var len;\n\n for (i = 0, len = createDebug.skips.length; i &lt; len; i++) {\n if (createDebug.skips[i].test(name)) {\n return false;\n }\n }\n\n for (i = 0, len = createDebug.names.length; i &lt; len; i++) {\n if (createDebug.names[i].test(name)) {\n return true;\n }\n }\n\n return false;\n }\n /**\n * Coerce `val`.\n *\n * @param {Mixed} val\n * @return {Mixed}\n * @api private\n */\n\n\n function coerce(val) {\n if (val instanceof Error) {\n return val.stack || val.message;\n }\n\n return val;\n }\n\n createDebug.enable(createDebug.load());\n return createDebug;\n}\n\nmodule.exports = setup;\n\n"},{"id":36,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/ms/index.js","name":"./node_modules/ms/index.js","index":4,"index2":0,"size":3023,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/common.js","issuerId":35,"issuerName":"./node_modules/debug/src/common.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":3,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/browser.js","name":"./node_modules/debug/src/browser.js"},{"id":35,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/common.js","name":"./node_modules/debug/src/common.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":35,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/debug/src/common.js","module":"./node_modules/debug/src/common.js","moduleName":"./node_modules/debug/src/common.js","type":"cjs require","userRequest":"ms","loc":"14:25-38"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"/**\n * Helpers.\n */\n\nvar s = 1000;\nvar m = s * 60;\nvar h = m * 60;\nvar d = h * 24;\nvar w = d * 7;\nvar y = d * 365.25;\n\n/**\n * Parse or format the given `val`.\n *\n * Options:\n *\n * - `long` verbose formatting [false]\n *\n * @param {String|Number} val\n * @param {Object} [options]\n * @throws {Error} throw an error if val is not a non-empty string or a number\n * @return {String|Number}\n * @api public\n */\n\nmodule.exports = function(val, options) {\n options = options || {};\n var type = typeof val;\n if (type === 'string' && val.length > 0) {\n return parse(val);\n } else if (type === 'number' && isFinite(val)) {\n return options.long ? fmtLong(val) : fmtShort(val);\n }\n throw new Error(\n 'val is not a non-empty string or a valid number. val=' +\n JSON.stringify(val)\n );\n};\n\n/**\n * Parse the given `str` and return milliseconds.\n *\n * @param {String} str\n * @return {Number}\n * @api private\n */\n\nfunction parse(str) {\n str = String(str);\n if (str.length > 100) {\n return;\n }\n var match = /^(-?(?:\\d+)?\\.?\\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(\n str\n );\n if (!match) {\n return;\n }\n var n = parseFloat(match[1]);\n var type = (match[2] || 'ms').toLowerCase();\n switch (type) {\n case 'years':\n case 'year':\n case 'yrs':\n case 'yr':\n case 'y':\n return n * y;\n case 'weeks':\n case 'week':\n case 'w':\n return n * w;\n case 'days':\n case 'day':\n case 'd':\n return n * d;\n case 'hours':\n case 'hour':\n case 'hrs':\n case 'hr':\n case 'h':\n return n * h;\n case 'minutes':\n case 'minute':\n case 'mins':\n case 'min':\n case 'm':\n return n * m;\n case 'seconds':\n case 'second':\n case 'secs':\n case 'sec':\n case 's':\n return n * s;\n case 'milliseconds':\n case 'millisecond':\n case 'msecs':\n case 'msec':\n case 'ms':\n return n;\n default:\n return undefined;\n }\n}\n\n/**\n * Short format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtShort(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return Math.round(ms / d) + 'd';\n }\n if (msAbs >= h) {\n return Math.round(ms / h) + 'h';\n }\n if (msAbs >= m) {\n return Math.round(ms / m) + 'm';\n }\n if (msAbs >= s) {\n return Math.round(ms / s) + 's';\n }\n return ms + 'ms';\n}\n\n/**\n * Long format for `ms`.\n *\n * @param {Number} ms\n * @return {String}\n * @api private\n */\n\nfunction fmtLong(ms) {\n var msAbs = Math.abs(ms);\n if (msAbs >= d) {\n return plural(ms, msAbs, d, 'day');\n }\n if (msAbs >= h) {\n return plural(ms, msAbs, h, 'hour');\n }\n if (msAbs >= m) {\n return plural(ms, msAbs, m, 'minute');\n }\n if (msAbs >= s) {\n return plural(ms, msAbs, s, 'second');\n }\n return ms + ' ms';\n}\n\n/**\n * Pluralization helper.\n */\n\nfunction plural(ms, msAbs, n, name) {\n var isPlural = msAbs >= n * 1.5;\n return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');\n}\n"},{"id":37,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/regenerator-runtime/runtime.js","name":"./node_modules/regenerator-runtime/runtime.js","index":12,"index2":8,"size":24189,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/regenerator/index.js","issuerId":0,"issuerName":"./node_modules/@babel/runtime/regenerator/index.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":26,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/Widgets.ts","name":"./src/widgets/Widgets.ts"},{"id":0,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/regenerator/index.js","name":"./node_modules/@babel/runtime/regenerator/index.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":0,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/regenerator/index.js","module":"./node_modules/@babel/runtime/regenerator/index.js","moduleName":"./node_modules/@babel/runtime/regenerator/index.js","type":"cjs require","userRequest":"regenerator-runtime","loc":"1:17-47"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"/**\n * Copyright (c) 2014-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nvar runtime = (function (exports) {\n \"use strict\";\n\n var Op = Object.prototype;\n var hasOwn = Op.hasOwnProperty;\n var undefined; // More compressible than void 0.\n var $Symbol = typeof Symbol === \"function\" ? Symbol : {};\n var iteratorSymbol = $Symbol.iterator || \"@@iterator\";\n var asyncIteratorSymbol = $Symbol.asyncIterator || \"@@asyncIterator\";\n var toStringTagSymbol = $Symbol.toStringTag || \"@@toStringTag\";\n\n function wrap(innerFn, outerFn, self, tryLocsList) {\n // If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.\n var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;\n var generator = Object.create(protoGenerator.prototype);\n var context = new Context(tryLocsList || []);\n\n // The ._invoke method unifies the implementations of the .next,\n // .throw, and .return methods.\n generator._invoke = makeInvokeMethod(innerFn, self, context);\n\n return generator;\n }\n exports.wrap = wrap;\n\n // Try/catch helper to minimize deoptimizations. Returns a completion\n // record like context.tryEntries[i].completion. This interface could\n // have been (and was previously) designed to take a closure to be\n // invoked without arguments, but in all the cases we care about we\n // already have an existing method we want to call, so there's no need\n // to create a new function object. We can even get away with assuming\n // the method takes exactly one argument, since that happens to be true\n // in every case, so we don't have to touch the arguments object. The\n // only additional allocation required is the completion record, which\n // has a stable shape and so hopefully should be cheap to allocate.\n function tryCatch(fn, obj, arg) {\n try {\n return { type: \"normal\", arg: fn.call(obj, arg) };\n } catch (err) {\n return { type: \"throw\", arg: err };\n }\n }\n\n var GenStateSuspendedStart = \"suspendedStart\";\n var GenStateSuspendedYield = \"suspendedYield\";\n var GenStateExecuting = \"executing\";\n var GenStateCompleted = \"completed\";\n\n // Returning this object from the innerFn has the same effect as\n // breaking out of the dispatch switch statement.\n var ContinueSentinel = {};\n\n // Dummy constructor functions that we use as the .constructor and\n // .constructor.prototype properties for functions that return Generator\n // objects. For full spec compliance, you may wish to configure your\n // minifier not to mangle the names of these two functions.\n function Generator() {}\n function GeneratorFunction() {}\n function GeneratorFunctionPrototype() {}\n\n // This is a polyfill for %IteratorPrototype% for environments that\n // don't natively support it.\n var IteratorPrototype = {};\n IteratorPrototype[iteratorSymbol] = function () {\n return this;\n };\n\n var getProto = Object.getPrototypeOf;\n var NativeIteratorPrototype = getProto && getProto(getProto(values([])));\n if (NativeIteratorPrototype &&\n NativeIteratorPrototype !== Op &&\n hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {\n // This environment has a native %IteratorPrototype%; use it instead\n // of the polyfill.\n IteratorPrototype = NativeIteratorPrototype;\n }\n\n var Gp = GeneratorFunctionPrototype.prototype =\n Generator.prototype = Object.create(IteratorPrototype);\n GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;\n GeneratorFunctionPrototype.constructor = GeneratorFunction;\n GeneratorFunctionPrototype[toStringTagSymbol] =\n GeneratorFunction.displayName = \"GeneratorFunction\";\n\n // Helper for defining the .next, .throw, and .return methods of the\n // Iterator interface in terms of a single ._invoke method.\n function defineIteratorMethods(prototype) {\n [\"next\", \"throw\", \"return\"].forEach(function(method) {\n prototype[method] = function(arg) {\n return this._invoke(method, arg);\n };\n });\n }\n\n exports.isGeneratorFunction = function(genFun) {\n var ctor = typeof genFun === \"function\" && genFun.constructor;\n return ctor\n ? ctor === GeneratorFunction ||\n // For the native GeneratorFunction constructor, the best we can\n // do is to check its .name property.\n (ctor.displayName || ctor.name) === \"GeneratorFunction\"\n : false;\n };\n\n exports.mark = function(genFun) {\n if (Object.setPrototypeOf) {\n Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);\n } else {\n genFun.__proto__ = GeneratorFunctionPrototype;\n if (!(toStringTagSymbol in genFun)) {\n genFun[toStringTagSymbol] = \"GeneratorFunction\";\n }\n }\n genFun.prototype = Object.create(Gp);\n return genFun;\n };\n\n // Within the body of any async function, `await x` is transformed to\n // `yield regeneratorRuntime.awrap(x)`, so that the runtime can test\n // `hasOwn.call(value, \"__await\")` to determine if the yielded value is\n // meant to be awaited.\n exports.awrap = function(arg) {\n return { __await: arg };\n };\n\n function AsyncIterator(generator, PromiseImpl) {\n function invoke(method, arg, resolve, reject) {\n var record = tryCatch(generator[method], generator, arg);\n if (record.type === \"throw\") {\n reject(record.arg);\n } else {\n var result = record.arg;\n var value = result.value;\n if (value &&\n typeof value === \"object\" &&\n hasOwn.call(value, \"__await\")) {\n return PromiseImpl.resolve(value.__await).then(function(value) {\n invoke(\"next\", value, resolve, reject);\n }, function(err) {\n invoke(\"throw\", err, resolve, reject);\n });\n }\n\n return PromiseImpl.resolve(value).then(function(unwrapped) {\n // When a yielded Promise is resolved, its final value becomes\n // the .value of the Promise&lt;{value,done}> result for the\n // current iteration.\n result.value = unwrapped;\n resolve(result);\n }, function(error) {\n // If a rejected Promise was yielded, throw the rejection back\n // into the async generator function so it can be handled there.\n return invoke(\"throw\", error, resolve, reject);\n });\n }\n }\n\n var previousPromise;\n\n function enqueue(method, arg) {\n function callInvokeWithMethodAndArg() {\n return new PromiseImpl(function(resolve, reject) {\n invoke(method, arg, resolve, reject);\n });\n }\n\n return previousPromise =\n // If enqueue has been called before, then we want to wait until\n // all previous Promises have been resolved before calling invoke,\n // so that results are always delivered in the correct order. If\n // enqueue has not been called before, then it is important to\n // call invoke immediately, without waiting on a callback to fire,\n // so that the async generator function has the opportunity to do\n // any necessary setup in a predictable way. This predictability\n // is why the Promise constructor synchronously invokes its\n // executor callback, and why async functions synchronously\n // execute code before the first await. Since we implement simple\n // async functions in terms of async generators, it is especially\n // important to get this right, even though it requires care.\n previousPromise ? previousPromise.then(\n callInvokeWithMethodAndArg,\n // Avoid propagating failures to Promises returned by later\n // invocations of the iterator.\n callInvokeWithMethodAndArg\n ) : callInvokeWithMethodAndArg();\n }\n\n // Define the unified helper method that is used to implement .next,\n // .throw, and .return (see defineIteratorMethods).\n this._invoke = enqueue;\n }\n\n defineIteratorMethods(AsyncIterator.prototype);\n AsyncIterator.prototype[asyncIteratorSymbol] = function () {\n return this;\n };\n exports.AsyncIterator = AsyncIterator;\n\n // Note that simple async functions are implemented on top of\n // AsyncIterator objects; they just return a Promise for the value of\n // the final result produced by the iterator.\n exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {\n if (PromiseImpl === void 0) PromiseImpl = Promise;\n\n var iter = new AsyncIterator(\n wrap(innerFn, outerFn, self, tryLocsList),\n PromiseImpl\n );\n\n return exports.isGeneratorFunction(outerFn)\n ? iter // If outerFn is a generator, return the full iterator.\n : iter.next().then(function(result) {\n return result.done ? result.value : iter.next();\n });\n };\n\n function makeInvokeMethod(innerFn, self, context) {\n var state = GenStateSuspendedStart;\n\n return function invoke(method, arg) {\n if (state === GenStateExecuting) {\n throw new Error(\"Generator is already running\");\n }\n\n if (state === GenStateCompleted) {\n if (method === \"throw\") {\n throw arg;\n }\n\n // Be forgiving, per 25.3.3.3.3 of the spec:\n // https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume\n return doneResult();\n }\n\n context.method = method;\n context.arg = arg;\n\n while (true) {\n var delegate = context.delegate;\n if (delegate) {\n var delegateResult = maybeInvokeDelegate(delegate, context);\n if (delegateResult) {\n if (delegateResult === ContinueSentinel) continue;\n return delegateResult;\n }\n }\n\n if (context.method === \"next\") {\n // Setting context._sent for legacy support of Babel's\n // function.sent implementation.\n context.sent = context._sent = context.arg;\n\n } else if (context.method === \"throw\") {\n if (state === GenStateSuspendedStart) {\n state = GenStateCompleted;\n throw context.arg;\n }\n\n context.dispatchException(context.arg);\n\n } else if (context.method === \"return\") {\n context.abrupt(\"return\", context.arg);\n }\n\n state = GenStateExecuting;\n\n var record = tryCatch(innerFn, self, context);\n if (record.type === \"normal\") {\n // If an exception is thrown from innerFn, we leave state ===\n // GenStateExecuting and loop back for another invocation.\n state = context.done\n ? GenStateCompleted\n : GenStateSuspendedYield;\n\n if (record.arg === ContinueSentinel) {\n continue;\n }\n\n return {\n value: record.arg,\n done: context.done\n };\n\n } else if (record.type === \"throw\") {\n state = GenStateCompleted;\n // Dispatch the exception by looping back around to the\n // context.dispatchException(context.arg) call above.\n context.method = \"throw\";\n context.arg = record.arg;\n }\n }\n };\n }\n\n // Call delegate.iterator[context.method](context.arg) and handle the\n // result, either by returning a { value, done } result from the\n // delegate iterator, or by modifying context.method and context.arg,\n // setting context.delegate to null, and returning the ContinueSentinel.\n function maybeInvokeDelegate(delegate, context) {\n var method = delegate.iterator[context.method];\n if (method === undefined) {\n // A .throw or .return when the delegate iterator has no .throw\n // method always terminates the yield* loop.\n context.delegate = null;\n\n if (context.method === \"throw\") {\n // Note: [\"return\"] must be used for ES3 parsing compatibility.\n if (delegate.iterator[\"return\"]) {\n // If the delegate iterator has a return method, give it a\n // chance to clean up.\n context.method = \"return\";\n context.arg = undefined;\n maybeInvokeDelegate(delegate, context);\n\n if (context.method === \"throw\") {\n // If maybeInvokeDelegate(context) changed context.method from\n // \"return\" to \"throw\", let that override the TypeError below.\n return ContinueSentinel;\n }\n }\n\n context.method = \"throw\";\n context.arg = new TypeError(\n \"The iterator does not provide a 'throw' method\");\n }\n\n return ContinueSentinel;\n }\n\n var record = tryCatch(method, delegate.iterator, context.arg);\n\n if (record.type === \"throw\") {\n context.method = \"throw\";\n context.arg = record.arg;\n context.delegate = null;\n return ContinueSentinel;\n }\n\n var info = record.arg;\n\n if (! info) {\n context.method = \"throw\";\n context.arg = new TypeError(\"iterator result is not an object\");\n context.delegate = null;\n return ContinueSentinel;\n }\n\n if (info.done) {\n // Assign the result of the finished delegate to the temporary\n // variable specified by delegate.resultName (see delegateYield).\n context[delegate.resultName] = info.value;\n\n // Resume execution at the desired location (see delegateYield).\n context.next = delegate.nextLoc;\n\n // If context.method was \"throw\" but the delegate handled the\n // exception, let the outer generator proceed normally. If\n // context.method was \"next\", forget context.arg since it has been\n // \"consumed\" by the delegate iterator. If context.method was\n // \"return\", allow the original .return call to continue in the\n // outer generator.\n if (context.method !== \"return\") {\n context.method = \"next\";\n context.arg = undefined;\n }\n\n } else {\n // Re-yield the result returned by the delegate method.\n return info;\n }\n\n // The delegate iterator is finished, so forget it and continue with\n // the outer generator.\n context.delegate = null;\n return ContinueSentinel;\n }\n\n // Define Generator.prototype.{next,throw,return} in terms of the\n // unified ._invoke helper method.\n defineIteratorMethods(Gp);\n\n Gp[toStringTagSymbol] = \"Generator\";\n\n // A Generator should always return itself as the iterator object when the\n // @@iterator function is called on it. Some browsers' implementations of the\n // iterator prototype chain incorrectly implement this, causing the Generator\n // object to not be returned from this call. This ensures that doesn't happen.\n // See https://github.com/facebook/regenerator/issues/274 for more details.\n Gp[iteratorSymbol] = function() {\n return this;\n };\n\n Gp.toString = function() {\n return \"[object Generator]\";\n };\n\n function pushTryEntry(locs) {\n var entry = { tryLoc: locs[0] };\n\n if (1 in locs) {\n entry.catchLoc = locs[1];\n }\n\n if (2 in locs) {\n entry.finallyLoc = locs[2];\n entry.afterLoc = locs[3];\n }\n\n this.tryEntries.push(entry);\n }\n\n function resetTryEntry(entry) {\n var record = entry.completion || {};\n record.type = \"normal\";\n delete record.arg;\n entry.completion = record;\n }\n\n function Context(tryLocsList) {\n // The root entry object (effectively a try statement without a catch\n // or a finally block) gives us a place to store values thrown from\n // locations where there is no enclosing try statement.\n this.tryEntries = [{ tryLoc: \"root\" }];\n tryLocsList.forEach(pushTryEntry, this);\n this.reset(true);\n }\n\n exports.keys = function(object) {\n var keys = [];\n for (var key in object) {\n keys.push(key);\n }\n keys.reverse();\n\n // Rather than returning an object with a next method, we keep\n // things simple and return the next function itself.\n return function next() {\n while (keys.length) {\n var key = keys.pop();\n if (key in object) {\n next.value = key;\n next.done = false;\n return next;\n }\n }\n\n // To avoid creating an additional object, we just hang the .value\n // and .done properties off the next function object itself. This\n // also ensures that the minifier will not anonymize the function.\n next.done = true;\n return next;\n };\n };\n\n function values(iterable) {\n if (iterable) {\n var iteratorMethod = iterable[iteratorSymbol];\n if (iteratorMethod) {\n return iteratorMethod.call(iterable);\n }\n\n if (typeof iterable.next === \"function\") {\n return iterable;\n }\n\n if (!isNaN(iterable.length)) {\n var i = -1, next = function next() {\n while (++i &lt; iterable.length) {\n if (hasOwn.call(iterable, i)) {\n next.value = iterable[i];\n next.done = false;\n return next;\n }\n }\n\n next.value = undefined;\n next.done = true;\n\n return next;\n };\n\n return next.next = next;\n }\n }\n\n // Return an iterator with no values.\n return { next: doneResult };\n }\n exports.values = values;\n\n function doneResult() {\n return { value: undefined, done: true };\n }\n\n Context.prototype = {\n constructor: Context,\n\n reset: function(skipTempReset) {\n this.prev = 0;\n this.next = 0;\n // Resetting context._sent for legacy support of Babel's\n // function.sent implementation.\n this.sent = this._sent = undefined;\n this.done = false;\n this.delegate = null;\n\n this.method = \"next\";\n this.arg = undefined;\n\n this.tryEntries.forEach(resetTryEntry);\n\n if (!skipTempReset) {\n for (var name in this) {\n // Not sure about the optimal order of these conditions:\n if (name.charAt(0) === \"t\" &&\n hasOwn.call(this, name) &&\n !isNaN(+name.slice(1))) {\n this[name] = undefined;\n }\n }\n }\n },\n\n stop: function() {\n this.done = true;\n\n var rootEntry = this.tryEntries[0];\n var rootRecord = rootEntry.completion;\n if (rootRecord.type === \"throw\") {\n throw rootRecord.arg;\n }\n\n return this.rval;\n },\n\n dispatchException: function(exception) {\n if (this.done) {\n throw exception;\n }\n\n var context = this;\n function handle(loc, caught) {\n record.type = \"throw\";\n record.arg = exception;\n context.next = loc;\n\n if (caught) {\n // If the dispatched exception was caught by a catch block,\n // then let that catch block handle the exception normally.\n context.method = \"next\";\n context.arg = undefined;\n }\n\n return !! caught;\n }\n\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n var record = entry.completion;\n\n if (entry.tryLoc === \"root\") {\n // Exception thrown outside of any try block that could handle\n // it, so set the completion value of the entire function to\n // throw the exception.\n return handle(\"end\");\n }\n\n if (entry.tryLoc &lt;= this.prev) {\n var hasCatch = hasOwn.call(entry, \"catchLoc\");\n var hasFinally = hasOwn.call(entry, \"finallyLoc\");\n\n if (hasCatch && hasFinally) {\n if (this.prev &lt; entry.catchLoc) {\n return handle(entry.catchLoc, true);\n } else if (this.prev &lt; entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else if (hasCatch) {\n if (this.prev &lt; entry.catchLoc) {\n return handle(entry.catchLoc, true);\n }\n\n } else if (hasFinally) {\n if (this.prev &lt; entry.finallyLoc) {\n return handle(entry.finallyLoc);\n }\n\n } else {\n throw new Error(\"try statement without catch or finally\");\n }\n }\n }\n },\n\n abrupt: function(type, arg) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc &lt;= this.prev &&\n hasOwn.call(entry, \"finallyLoc\") &&\n this.prev &lt; entry.finallyLoc) {\n var finallyEntry = entry;\n break;\n }\n }\n\n if (finallyEntry &&\n (type === \"break\" ||\n type === \"continue\") &&\n finallyEntry.tryLoc &lt;= arg &&\n arg &lt;= finallyEntry.finallyLoc) {\n // Ignore the finally entry if control is not jumping to a\n // location outside the try/catch block.\n finallyEntry = null;\n }\n\n var record = finallyEntry ? finallyEntry.completion : {};\n record.type = type;\n record.arg = arg;\n\n if (finallyEntry) {\n this.method = \"next\";\n this.next = finallyEntry.finallyLoc;\n return ContinueSentinel;\n }\n\n return this.complete(record);\n },\n\n complete: function(record, afterLoc) {\n if (record.type === \"throw\") {\n throw record.arg;\n }\n\n if (record.type === \"break\" ||\n record.type === \"continue\") {\n this.next = record.arg;\n } else if (record.type === \"return\") {\n this.rval = this.arg = record.arg;\n this.method = \"return\";\n this.next = \"end\";\n } else if (record.type === \"normal\" && afterLoc) {\n this.next = afterLoc;\n }\n\n return ContinueSentinel;\n },\n\n finish: function(finallyLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.finallyLoc === finallyLoc) {\n this.complete(entry.completion, entry.afterLoc);\n resetTryEntry(entry);\n return ContinueSentinel;\n }\n }\n },\n\n \"catch\": function(tryLoc) {\n for (var i = this.tryEntries.length - 1; i >= 0; --i) {\n var entry = this.tryEntries[i];\n if (entry.tryLoc === tryLoc) {\n var record = entry.completion;\n if (record.type === \"throw\") {\n var thrown = record.arg;\n resetTryEntry(entry);\n }\n return thrown;\n }\n }\n\n // The context.catch method must only be called with a location\n // argument that corresponds to a known catch block.\n throw new Error(\"illegal catch attempt\");\n },\n\n delegateYield: function(iterable, resultName, nextLoc) {\n this.delegate = {\n iterator: values(iterable),\n resultName: resultName,\n nextLoc: nextLoc\n };\n\n if (this.method === \"next\") {\n // Deliberately forget the last sent value so that we don't\n // accidentally pass it on to the delegate.\n this.arg = undefined;\n }\n\n return ContinueSentinel;\n }\n };\n\n // Regardless of whether this script is executing as a CommonJS module\n // or not, return the runtime object so that we can declare the variable\n // regeneratorRuntime in the outer scope, which allows this module to be\n // injected easily by `bin/regenerator --include-runtime script.js`.\n return exports;\n\n}(\n // If this script is executing as a CommonJS module, use module.exports\n // as the regeneratorRuntime namespace. Otherwise create a new empty\n // object. Either way, the resulting object will be used to initialize\n // the regeneratorRuntime variable at the top of this file.\n typeof module === \"object\" ? module.exports : {}\n));\n\ntry {\n regeneratorRuntime = runtime;\n} catch (accidentalStrictMode) {\n // This module should not be running in strict mode, so the above\n // assignment should always work unless something is misconfigured. Just\n // in case runtime.js accidentally runs in strict mode, we can escape\n // strict mode using a global Function call. This could conceivably fail\n // if a Content Security Policy forbids using Function, but in that case\n // the proper solution is to fix the accidental strict mode problem. If\n // you've misconfigured your bundler to force strict mode and applied a\n // CSP to forbid Function, and you're not willing to fix either of those\n // problems, please detail your unique predicament in a GitHub issue.\n Function(\"r\", \"regeneratorRuntime = r\")(runtime);\n}\n"},{"id":38,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/superPropBase.js","name":"./node_modules/@babel/runtime/helpers/superPropBase.js","index":23,"index2":19,"size":289,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/get.js","issuerId":20,"issuerName":"./node_modules/@babel/runtime/helpers/get.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":16,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/EmbedWidget.ts","name":"./src/widgets/EmbedWidget.ts"},{"id":20,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/get.js","name":"./node_modules/@babel/runtime/helpers/get.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":20,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/get.js","module":"./node_modules/@babel/runtime/helpers/get.js","moduleName":"./node_modules/@babel/runtime/helpers/get.js","type":"cjs require","userRequest":"./superPropBase","loc":"1:20-46"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"var getPrototypeOf = require(\"./getPrototypeOf\");\n\nfunction _superPropBase(object, property) {\n while (!Object.prototype.hasOwnProperty.call(object, property)) {\n object = getPrototypeOf(object);\n if (object === null) break;\n }\n\n return object;\n}\n\nmodule.exports = _superPropBase;"},{"id":39,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/isNativeFunction.js","name":"./node_modules/@babel/runtime/helpers/isNativeFunction.js","index":36,"index2":31,"size":140,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","issuerId":30,"issuerName":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts"},{"id":30,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","name":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":30,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","module":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","moduleName":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","type":"cjs require","userRequest":"./isNativeFunction","loc":"5:23-52"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":5,"source":"function _isNativeFunction(fn) {\n return Function.toString.call(fn).indexOf(\"[native code]\") !== -1;\n}\n\nmodule.exports = _isNativeFunction;"},{"id":40,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/construct.js","name":"./node_modules/@babel/runtime/helpers/construct.js","index":37,"index2":33,"size":659,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","issuerId":30,"issuerName":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts"},{"id":30,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","name":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":30,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","module":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","moduleName":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js","type":"cjs require","userRequest":"./construct","loc":"7:16-38"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":5,"source":"var setPrototypeOf = require(\"./setPrototypeOf\");\n\nvar isNativeReflectConstruct = require(\"./isNativeReflectConstruct\");\n\nfunction _construct(Parent, args, Class) {\n if (isNativeReflectConstruct()) {\n module.exports = _construct = Reflect.construct;\n } else {\n module.exports = _construct = function _construct(Parent, args, Class) {\n var a = [null];\n a.push.apply(a, args);\n var Constructor = Function.bind.apply(Parent, a);\n var instance = new Constructor();\n if (Class) setPrototypeOf(instance, Class.prototype);\n return instance;\n };\n }\n\n return _construct.apply(null, arguments);\n}\n\nmodule.exports = _construct;"},{"id":41,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js","name":"./node_modules/@babel/runtime/helpers/isNativeReflectConstruct.js","index":38,"index2":32,"size":394,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/construct.js","issuerId":40,"issuerName":"./node_modules/@babel/runtime/helpers/construct.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeEmbedWidget.ts","name":"./src/widgets/declarative/DeclarativeEmbedWidget.ts"},{"id":null,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/widgets/declarative/DeclarativeWidget.ts","name":"./src/widgets/declarative/DeclarativeWidget.ts"},{"id":30,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/wrapNativeSuper.js","name":"./node_modules/@babel/runtime/helpers/wrapNativeSuper.js"},{"id":40,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/construct.js","name":"./node_modules/@babel/runtime/helpers/construct.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":40,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/construct.js","module":"./node_modules/@babel/runtime/helpers/construct.js","moduleName":"./node_modules/@babel/runtime/helpers/construct.js","type":"cjs require","userRequest":"./isNativeReflectConstruct","loc":"3:31-68"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":6,"source":"function _isNativeReflectConstruct() {\n if (typeof Reflect === \"undefined\" || !Reflect.construct) return false;\n if (Reflect.construct.sham) return false;\n if (typeof Proxy === \"function\") return true;\n\n try {\n Date.prototype.toString.call(Reflect.construct(Date, [], function () {}));\n return true;\n } catch (e) {\n return false;\n }\n}\n\nmodule.exports = _isNativeReflectConstruct;"},{"id":42,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","name":"./node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js","index":41,"index2":35,"size":384,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"issuer":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/objectWithoutProperties.js","issuerId":31,"issuerName":"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js","issuerPath":[{"id":34,"identifier":"multi ./src/squatch.ts","name":"multi ./src/squatch.ts"},{"id":27,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/squatch.ts","name":"./src/squatch.ts"},{"id":23,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/babel-loader/lib/index.js??ref--4-0!/Users/Coleton/saasquatch/squatch-js/src/utils/utmUtils.ts","name":"./src/utils/utmUtils.ts"},{"id":31,"identifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/objectWithoutProperties.js","name":"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js"}],"failed":false,"errors":0,"warnings":0,"assets":[],"reasons":[{"moduleId":31,"moduleIdentifier":"/Users/Coleton/saasquatch/squatch-js/node_modules/@babel/runtime/helpers/objectWithoutProperties.js","module":"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js","moduleName":"./node_modules/@babel/runtime/helpers/objectWithoutProperties.js","type":"cjs require","userRequest":"./objectWithoutPropertiesLoose","loc":"1:35-76"}],"usedExports":true,"providedExports":null,"optimizationBailout":["ModuleConcatenation bailout: Module is not an ECMAScript module"],"depth":4,"source":"function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i &lt; sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nmodule.exports = _objectWithoutPropertiesLoose;"}],"filteredModules":0,"logging":{"webpack.buildChunkGraph.visitModules":{"entries":[],"filteredEntries":2,"debug":false}},"children":[]};</script>
185
- <script>!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(1),i=r(o),a=n(153),u=r(a),l=n(154),s=r(l);u.default.render(i.default.createElement(s.default,{stats:window.stats}),document.getElementById("App"))},function(t,e,n){"use strict";t.exports=n(2)},function(t,e,n){"use strict";var r=n(3),o=n(143),i=n(147),a=n(38),u=n(152),l={};a(l,i),a(l,{findDOMNode:u("findDOMNode","ReactDOM","react-dom",r,r.findDOMNode),render:u("render","ReactDOM","react-dom",r,r.render),unmountComponentAtNode:u("unmountComponentAtNode","ReactDOM","react-dom",r,r.unmountComponentAtNode),renderToString:u("renderToString","ReactDOMServer","react-dom/server",o,o.renderToString),renderToStaticMarkup:u("renderToStaticMarkup","ReactDOMServer","react-dom/server",o,o.renderToStaticMarkup)}),l.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r,l.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=o,t.exports=l},function(t,e,n){"use strict";var r=n(4),o=n(5),i=n(70),a=n(44),u=n(27),l=n(17),s=n(49),c=n(53),f=n(141),p=n(90),h=n(142);n(24);i.inject();var d=l.measure("React","render",u.render),v={findDOMNode:p,render:d,unmountComponentAtNode:u.unmountComponentAtNode,version:f,unstable_batchedUpdates:c.batchedUpdates,unstable_renderSubtreeIntoContainer:h};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:r,InstanceHandles:a,Mount:u,Reconciler:s,TextComponent:o});t.exports=v},function(t,e){"use strict";var n={current:null};t.exports=n},function(t,e,n){"use strict";var r=n(6),o=n(21),i=n(25),a=n(27),u=n(38),l=n(20),s=n(19),c=(n(69),function(t){});u(c.prototype,{construct:function(t){this._currentElement=t,this._stringText=""+t,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(t,e,n){if(this._rootNodeID=t,e.useCreateElement){var r=n[a.ownerDocumentContextKey],i=r.createElement("span");return o.setAttributeForID(i,t),a.getID(i),s(i,this._stringText),i}var u=l(this._stringText);return e.renderToStaticMarkup?u:"<span "+o.createMarkupForID(t)+">"+u+"</span>"},receiveComponent:function(t,e){if(t!==this._currentElement){this._currentElement=t;var n=""+t;if(n!==this._stringText){this._stringText=n;var o=a.getNode(this._rootNodeID);r.updateTextContent(o,n)}}},unmountComponent:function(){i.unmountIDFromEnvironment(this._rootNodeID)}}),t.exports=c},function(t,e,n){"use strict";function r(t,e,n){var r=n>=t.childNodes.length?null:t.childNodes.item(n);t.insertBefore(e,r)}var o=n(7),i=n(15),a=n(17),u=n(18),l=n(19),s=n(12),c={dangerouslyReplaceNodeWithMarkup:o.dangerouslyReplaceNodeWithMarkup,updateTextContent:l,processUpdates:function(t,e){for(var n,a=null,c=null,f=0;f<t.length;f++)if(n=t[f],n.type===i.MOVE_EXISTING||n.type===i.REMOVE_NODE){var p=n.fromIndex,h=n.parentNode.childNodes[p],d=n.parentID;h?void 0:s(!1),a=a||{},a[d]=a[d]||[],a[d][p]=h,c=c||[],c.push(h)}var v;if(v=e.length&&"string"==typeof e[0]?o.dangerouslyRenderMarkup(e):e,c)for(var g=0;g<c.length;g++)c[g].parentNode.removeChild(c[g]);for(var m=0;m<t.length;m++)switch(n=t[m],n.type){case i.INSERT_MARKUP:r(n.parentNode,v[n.markupIndex],n.toIndex);break;case i.MOVE_EXISTING:r(n.parentNode,a[n.parentID][n.fromIndex],n.toIndex);break;case i.SET_MARKUP:u(n.parentNode,n.content);break;case i.TEXT_CONTENT:l(n.parentNode,n.content);break;case i.REMOVE_NODE:}}};a.measureMethods(c,"DOMChildrenOperations",{updateTextContent:"updateTextContent"}),t.exports=c},function(t,e,n){"use strict";function r(t){return t.substring(1,t.indexOf(" "))}var o=n(8),i=n(9),a=n(14),u=n(13),l=n(12),s=/^(<[^ \/>]+)/,c="data-danger-index",f={dangerouslyRenderMarkup:function(t){o.canUseDOM?void 0:l(!1);for(var e,n={},f=0;f<t.length;f++)t[f]?void 0:l(!1),e=r(t[f]),e=u(e)?e:"*",n[e]=n[e]||[],n[e][f]=t[f];var p=[],h=0;for(e in n)if(n.hasOwnProperty(e)){var d,v=n[e];for(d in v)if(v.hasOwnProperty(d)){var g=v[d];v[d]=g.replace(s,"$1 "+c+'="'+d+'" ')}for(var m=i(v.join(""),a),y=0;y<m.length;++y){var b=m[y];b.hasAttribute&&b.hasAttribute(c)&&(d=+b.getAttribute(c),b.removeAttribute(c),p.hasOwnProperty(d)?l(!1):void 0,p[d]=b,h+=1)}}return h!==p.length?l(!1):void 0,p.length!==t.length?l(!1):void 0,p},dangerouslyReplaceNodeWithMarkup:function(t,e){o.canUseDOM?void 0:l(!1),e?void 0:l(!1),"html"===t.tagName.toLowerCase()?l(!1):void 0;var n;n="string"==typeof e?i(e,a)[0]:e,t.parentNode.replaceChild(n,t)}};t.exports=f},function(t,e){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};t.exports=r},function(t,e,n){"use strict";function r(t){var e=t.match(c);return e&&e[1].toLowerCase()}function o(t,e){var n=s;s?void 0:l(!1);var o=r(t),i=o&&u(o);if(i){n.innerHTML=i[1]+t+i[2];for(var c=i[0];c--;)n=n.lastChild}else n.innerHTML=t;var f=n.getElementsByTagName("script");f.length&&(e?void 0:l(!1),a(f).forEach(e));for(var p=a(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return p}var i=n(8),a=n(10),u=n(13),l=n(12),s=i.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;t.exports=o},function(t,e,n){"use strict";function r(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}function o(t){return r(t)?Array.isArray(t)?t.slice():i(t):[t]}var i=n(11);t.exports=o},function(t,e,n){"use strict";function r(t){var e=t.length;if(Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t?o(!1):void 0,"number"!=typeof e?o(!1):void 0,0===e||e-1 in t?void 0:o(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var n=Array(e),r=0;r<e;r++)n[r]=t[r];return n}var o=n(12);t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,u){if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var s=[n,r,o,i,a,u],c=0;l=new Error(e.replace(/%s/g,function(){return s[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}}t.exports=r},function(t,e,n){"use strict";function r(t){return a?void 0:i(!1),p.hasOwnProperty(t)||(t="*"),u.hasOwnProperty(t)||("*"===t?a.innerHTML="<link />":a.innerHTML="<"+t+"></"+t+">",u[t]=!a.firstChild),u[t]?p[t]:null}var o=n(8),i=n(12),a=o.canUseDOM?document.createElement("div"):null,u={},l=[1,'<select multiple="true">',"</select>"],s=[1,"<table>","</table>"],c=[3,"<table><tbody><tr>","</tr></tbody></table>"],f=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],p={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:l,option:l,caption:s,colgroup:s,tbody:s,tfoot:s,thead:s,td:c,th:c},h=["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"];h.forEach(function(t){p[t]=f,u[t]=!0}),t.exports=r},function(t,e){"use strict";function n(t){return function(){return t}}function r(){}r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(t){return t},t.exports=r},function(t,e,n){"use strict";var r=n(16),o=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,SET_MARKUP:null,TEXT_CONTENT:null});t.exports=o},function(t,e,n){"use strict";var r=n(12),o=function(t){var e,n={};t instanceof Object&&!Array.isArray(t)?void 0:r(!1);for(e in t)t.hasOwnProperty(e)&&(n[e]=e);return n};t.exports=o},function(t,e,n){"use strict";function r(t,e,n){return n}var o={enableMeasure:!1,storedMeasure:r,measureMethods:function(t,e,n){},measure:function(t,e,n){return n},injection:{injectMeasure:function(t){o.storedMeasure=t}}};t.exports=o},function(t,e,n){"use strict";var r=n(8),o=/^[ \r\n\t\f]/,i=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,a=function(t,e){t.innerHTML=e};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(a=function(t,e){MSApp.execUnsafeLocalFunction(function(){t.innerHTML=e})}),r.canUseDOM){var u=document.createElement("div");u.innerHTML=" ",""===u.innerHTML&&(a=function(t,e){if(t.parentNode&&t.parentNode.replaceChild(t,t),o.test(e)||"<"===e[0]&&i.test(e)){t.innerHTML=String.fromCharCode(65279)+e;var n=t.firstChild;1===n.data.length?t.removeChild(n):n.deleteData(0,1)}else t.innerHTML=e})}t.exports=a},function(t,e,n){"use strict";var r=n(8),o=n(20),i=n(18),a=function(t,e){t.textContent=e};r.canUseDOM&&("textContent"in document.documentElement||(a=function(t,e){i(t,o(e))})),t.exports=a},function(t,e){"use strict";function n(t){return o[t]}function r(t){return(""+t).replace(i,n)}var o={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},i=/[&><"']/g;t.exports=r},function(t,e,n){"use strict";function r(t){return!!c.hasOwnProperty(t)||!s.hasOwnProperty(t)&&(l.test(t)?(c[t]=!0,!0):(s[t]=!0,!1))}function o(t,e){return null==e||t.hasBooleanValue&&!e||t.hasNumericValue&&isNaN(e)||t.hasPositiveNumericValue&&e<1||t.hasOverloadedBooleanValue&&e===!1}var i=n(22),a=n(17),u=n(23),l=(n(24),/^[a-zA-Z_][\w\.\-]*$/),s={},c={},f={createMarkupForID:function(t){return i.ID_ATTRIBUTE_NAME+"="+u(t)},setAttributeForID:function(t,e){t.setAttribute(i.ID_ATTRIBUTE_NAME,e)},createMarkupForProperty:function(t,e){var n=i.properties.hasOwnProperty(t)?i.properties[t]:null;if(n){if(o(n,e))return"";var r=n.attributeName;return n.hasBooleanValue||n.hasOverloadedBooleanValue&&e===!0?r+'=""':r+"="+u(e)}return i.isCustomAttribute(t)?null==e?"":t+"="+u(e):null},createMarkupForCustomAttribute:function(t,e){return r(t)&&null!=e?t+"="+u(e):""},setValueForProperty:function(t,e,n){var r=i.properties.hasOwnProperty(e)?i.properties[e]:null;if(r){var a=r.mutationMethod;if(a)a(t,n);else if(o(r,n))this.deleteValueForProperty(t,e);else if(r.mustUseAttribute){var u=r.attributeName,l=r.attributeNamespace;l?t.setAttributeNS(l,u,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&n===!0?t.setAttribute(u,""):t.setAttribute(u,""+n)}else{var s=r.propertyName;r.hasSideEffects&&""+t[s]==""+n||(t[s]=n)}}else i.isCustomAttribute(e)&&f.setValueForAttribute(t,e,n)},setValueForAttribute:function(t,e,n){r(e)&&(null==n?t.removeAttribute(e):t.setAttribute(e,""+n))},deleteValueForProperty:function(t,e){var n=i.properties.hasOwnProperty(e)?i.properties[e]:null;if(n){var r=n.mutationMethod;if(r)r(t,void 0);else if(n.mustUseAttribute)t.removeAttribute(n.attributeName);else{var o=n.propertyName,a=i.getDefaultValueForProperty(t.nodeName,o);n.hasSideEffects&&""+t[o]===a||(t[o]=a)}}else i.isCustomAttribute(e)&&t.removeAttribute(e)}};a.measureMethods(f,"DOMPropertyOperations",{setValueForProperty:"setValueForProperty",setValueForAttribute:"setValueForAttribute",deleteValueForProperty:"deleteValueForProperty"}),t.exports=f},function(t,e,n){"use strict";function r(t,e){return(t&e)===e}var o=n(12),i={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(t){var e=i,n=t.Properties||{},a=t.DOMAttributeNamespaces||{},l=t.DOMAttributeNames||{},s=t.DOMPropertyNames||{},c=t.DOMMutationMethods||{};t.isCustomAttribute&&u._isCustomAttributeFunctions.push(t.isCustomAttribute);for(var f in n){u.properties.hasOwnProperty(f)?o(!1):void 0;var p=f.toLowerCase(),h=n[f],d={attributeName:p,attributeNamespace:null,propertyName:f,mutationMethod:null,mustUseAttribute:r(h,e.MUST_USE_ATTRIBUTE),mustUseProperty:r(h,e.MUST_USE_PROPERTY),hasSideEffects:r(h,e.HAS_SIDE_EFFECTS),hasBooleanValue:r(h,e.HAS_BOOLEAN_VALUE),hasNumericValue:r(h,e.HAS_NUMERIC_VALUE),hasPositiveNumericValue:r(h,e.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:r(h,e.HAS_OVERLOADED_BOOLEAN_VALUE)};if(d.mustUseAttribute&&d.mustUseProperty?o(!1):void 0,!d.mustUseProperty&&d.hasSideEffects?o(!1):void 0,d.hasBooleanValue+d.hasNumericValue+d.hasOverloadedBooleanValue<=1?void 0:o(!1),l.hasOwnProperty(f)){var v=l[f];d.attributeName=v}a.hasOwnProperty(f)&&(d.attributeNamespace=a[f]),s.hasOwnProperty(f)&&(d.propertyName=s[f]),c.hasOwnProperty(f)&&(d.mutationMethod=c[f]),u.properties[f]=d}}},a={},u={ID_ATTRIBUTE_NAME:"data-reactid",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(t){for(var e=0;e<u._isCustomAttributeFunctions.length;e++){var n=u._isCustomAttributeFunctions[e];if(n(t))return!0}return!1},getDefaultValueForProperty:function(t,e){var n,r=a[t];return r||(a[t]=r={}),e in r||(n=document.createElement(t),r[e]=n[e]),r[e]},injection:i};t.exports=u},function(t,e,n){"use strict";function r(t){return'"'+o(t)+'"'}var o=n(20);t.exports=r},function(t,e,n){"use strict";var r=n(14),o=r;t.exports=o},function(t,e,n){"use strict";var r=n(26),o=n(27),i={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:r.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(t){o.purgeID(t)}};t.exports=i},function(t,e,n){"use strict";var r=n(6),o=n(21),i=n(27),a=n(17),u=n(12),l={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},s={updatePropertyByID:function(t,e,n){var r=i.getNode(t);l.hasOwnProperty(e)?u(!1):void 0,null!=n?o.setValueForProperty(r,e,n):o.deleteValueForProperty(r,e)},dangerouslyReplaceNodeWithMarkupByID:function(t,e){var n=i.getNode(t);r.dangerouslyReplaceNodeWithMarkup(n,e)},dangerouslyProcessChildrenUpdates:function(t,e){for(var n=0;n<t.length;n++)t[n].parentNode=i.getNode(t[n].parentID);r.processUpdates(t,e)}};a.measureMethods(s,"ReactDOMIDOperations",{dangerouslyReplaceNodeWithMarkupByID:"dangerouslyReplaceNodeWithMarkupByID",dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),t.exports=s},function(t,e,n){"use strict";function r(t,e){for(var n=Math.min(t.length,e.length),r=0;r<n;r++)if(t.charAt(r)!==e.charAt(r))return r;return t.length===e.length?-1:n}function o(t){return t?t.nodeType===V?t.documentElement:t.firstChild:null}function i(t){var e=o(t);return e&&Z.getID(e)}function a(t){var e=u(t);if(e)if(B.hasOwnProperty(e)){var n=B[e];n!==t&&(f(n,e)?L(!1):void 0,B[e]=t)}else B[e]=t;return e}function u(t){return t&&t.getAttribute&&t.getAttribute(F)||""}function l(t,e){var n=u(t);n!==e&&delete B[n],t.setAttribute(F,e),B[e]=t}function s(t){return B.hasOwnProperty(t)&&f(B[t],t)||(B[t]=Z.findReactNodeByID(t)),B[t]}function c(t){var e=N.get(t)._rootNodeID;return E.isNullComponentID(e)?null:(B.hasOwnProperty(e)&&f(B[e],e)||(B[e]=Z.findReactNodeByID(e)),B[e])}function f(t,e){if(t){u(t)!==e?L(!1):void 0;var n=Z.findReactContainerForID(e);if(n&&I(n,t))return!0}return!1}function p(t){delete B[t]}function h(t){var e=B[t];return!(!e||!f(e,t))&&void(G=e)}function d(t){G=null,w.traverseAncestors(t,h);var e=G;return G=null,e}function v(t,e,n,r,o,i){M.useCreateElement&&(i=T({},i),n.nodeType===V?i[W]=n:i[W]=n.ownerDocument);var a=D.mountComponent(t,e,r,i);t._renderedComponent._topLevelWrapper=t,Z._mountImageIntoNode(a,n,o,r)}function g(t,e,n,r,o){var i=R.ReactReconcileTransaction.getPooled(r);i.perform(v,null,t,e,n,i,r,o),R.ReactReconcileTransaction.release(i)}function m(t,e){for(D.unmountComponent(t),e.nodeType===V&&(e=e.documentElement);e.lastChild;)e.removeChild(e.lastChild)}function y(t){var e=i(t);return!!e&&e!==w.getReactRootIDFromNodeID(e)}function b(t){for(;t&&t.parentNode!==t;t=t.parentNode)if(1===t.nodeType){var e=u(t);if(e){var n,r=w.getReactRootIDFromNodeID(e),o=t;do if(n=u(o),o=o.parentNode,null==o)return null;while(n!==r);if(o===K[r])return t}}return null}var x=n(22),_=n(28),M=(n(4),n(40)),C=n(41),E=n(43),w=n(44),N=n(46),S=n(47),k=n(17),D=n(49),P=n(52),R=n(53),T=n(38),A=n(57),I=n(58),O=n(61),L=n(12),U=n(18),j=n(66),F=(n(69),n(24),x.ID_ATTRIBUTE_NAME),B={},q=1,V=9,z=11,W="__ReactMount_ownerDocument$"+Math.random().toString(36).slice(2),H={},K={},Y=[],G=null,X=function(){};X.prototype.isReactComponent={},X.prototype.render=function(){return this.props};var Z={TopLevelWrapper:X,_instancesByReactRootID:H,scrollMonitor:function(t,e){e()},_updateRootComponent:function(t,e,n,r){return Z.scrollMonitor(n,function(){P.enqueueElementInternal(t,e),r&&P.enqueueCallbackInternal(t,r)}),t},_registerComponent:function(t,e){!e||e.nodeType!==q&&e.nodeType!==V&&e.nodeType!==z?L(!1):void 0,_.ensureScrollValueMonitoring();var n=Z.registerContainer(e);return H[n]=t,n},_renderNewRootComponent:function(t,e,n,r){var o=O(t,null),i=Z._registerComponent(o,e);return R.batchedUpdates(g,o,i,e,n,r),o},renderSubtreeIntoContainer:function(t,e,n,r){return null==t||null==t._reactInternalInstance?L(!1):void 0,Z._renderSubtreeIntoContainer(t,e,n,r)},_renderSubtreeIntoContainer:function(t,e,n,r){C.isValidElement(e)?void 0:L(!1);var a=new C(X,null,null,null,null,null,e),l=H[i(n)];if(l){var s=l._currentElement,c=s.props;if(j(c,e)){var f=l._renderedComponent.getPublicInstance(),p=r&&function(){r.call(f)};return Z._updateRootComponent(l,a,n,p),f}Z.unmountComponentAtNode(n)}var h=o(n),d=h&&!!u(h),v=y(n),g=d&&!l&&!v,m=Z._renderNewRootComponent(a,n,g,null!=t?t._reactInternalInstance._processChildContext(t._reactInternalInstance._context):A)._renderedComponent.getPublicInstance();return r&&r.call(m),m},render:function(t,e,n){return Z._renderSubtreeIntoContainer(null,t,e,n)},registerContainer:function(t){var e=i(t);return e&&(e=w.getReactRootIDFromNodeID(e)),e||(e=w.createReactRootID()),K[e]=t,e},unmountComponentAtNode:function(t){!t||t.nodeType!==q&&t.nodeType!==V&&t.nodeType!==z?L(!1):void 0;var e=i(t),n=H[e];if(!n){var r=(y(t),u(t));r&&r===w.getReactRootIDFromNodeID(r);return!1}return R.batchedUpdates(m,n,t),delete H[e],delete K[e],!0},findReactContainerForID:function(t){var e=w.getReactRootIDFromNodeID(t),n=K[e];return n},findReactNodeByID:function(t){var e=Z.findReactContainerForID(t);return Z.findComponentRoot(e,t)},getFirstReactDOM:function(t){return b(t)},findComponentRoot:function(t,e){var n=Y,r=0,o=d(e)||t;for(n[0]=o.firstChild,n.length=1;r<n.length;){for(var i,a=n[r++];a;){var u=Z.getID(a);u?e===u?i=a:w.isAncestorIDOf(u,e)&&(n.length=r=0,n.push(a.firstChild)):n.push(a.firstChild),a=a.nextSibling}if(i)return n.length=0,i}n.length=0,L(!1)},_mountImageIntoNode:function(t,e,n,i){if(!e||e.nodeType!==q&&e.nodeType!==V&&e.nodeType!==z?L(!1):void 0,n){var a=o(e);if(S.canReuseMarkup(t,a))return;var u=a.getAttribute(S.CHECKSUM_ATTR_NAME);a.removeAttribute(S.CHECKSUM_ATTR_NAME);var l=a.outerHTML;a.setAttribute(S.CHECKSUM_ATTR_NAME,u);var s=t,c=r(s,l);" (client) "+s.substring(c-20,c+20)+"\n (server) "+l.substring(c-20,c+20);e.nodeType===V?L(!1):void 0}if(e.nodeType===V?L(!1):void 0,i.useCreateElement){for(;e.lastChild;)e.removeChild(e.lastChild);e.appendChild(t)}else U(e,t)},ownerDocumentContextKey:W,getReactRootID:i,getID:a,setID:l,getNode:s,getNodeFromInstance:c,isValid:f,purgeID:p};k.measureMethods(Z,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),t.exports=Z},function(t,e,n){"use strict";function r(t){return Object.prototype.hasOwnProperty.call(t,g)||(t[g]=d++,p[t[g]]={}),p[t[g]]}var o=n(29),i=n(30),a=n(31),u=n(36),l=n(17),s=n(37),c=n(38),f=n(39),p={},h=!1,d=0,v={topAbort:"abort",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},g="_reactListenersID"+String(Math.random()).slice(2),m=c({},u,{ReactEventListener:null,injection:{injectReactEventListener:function(t){t.setHandleTopLevel(m.handleTopLevel),m.ReactEventListener=t}},setEnabled:function(t){m.ReactEventListener&&m.ReactEventListener.setEnabled(t)},isEnabled:function(){return!(!m.ReactEventListener||!m.ReactEventListener.isEnabled())},listenTo:function(t,e){for(var n=e,i=r(n),u=a.registrationNameDependencies[t],l=o.topLevelTypes,s=0;s<u.length;s++){var c=u[s];i.hasOwnProperty(c)&&i[c]||(c===l.topWheel?f("wheel")?m.ReactEventListener.trapBubbledEvent(l.topWheel,"wheel",n):f("mousewheel")?m.ReactEventListener.trapBubbledEvent(l.topWheel,"mousewheel",n):m.ReactEventListener.trapBubbledEvent(l.topWheel,"DOMMouseScroll",n):c===l.topScroll?f("scroll",!0)?m.ReactEventListener.trapCapturedEvent(l.topScroll,"scroll",n):m.ReactEventListener.trapBubbledEvent(l.topScroll,"scroll",m.ReactEventListener.WINDOW_HANDLE):c===l.topFocus||c===l.topBlur?(f("focus",!0)?(m.ReactEventListener.trapCapturedEvent(l.topFocus,"focus",n),m.ReactEventListener.trapCapturedEvent(l.topBlur,"blur",n)):f("focusin")&&(m.ReactEventListener.trapBubbledEvent(l.topFocus,"focusin",n),m.ReactEventListener.trapBubbledEvent(l.topBlur,"focusout",n)),i[l.topBlur]=!0,i[l.topFocus]=!0):v.hasOwnProperty(c)&&m.ReactEventListener.trapBubbledEvent(c,v[c],n),i[c]=!0)}},trapBubbledEvent:function(t,e,n){return m.ReactEventListener.trapBubbledEvent(t,e,n)},trapCapturedEvent:function(t,e,n){return m.ReactEventListener.trapCapturedEvent(t,e,n)},ensureScrollValueMonitoring:function(){if(!h){var t=s.refreshScrollValues;m.ReactEventListener.monitorScrollValue(t),h=!0}},eventNameDispatchConfigs:i.eventNameDispatchConfigs,registrationNameModules:i.registrationNameModules,putListener:i.putListener,getListener:i.getListener,deleteListener:i.deleteListener,deleteAllListeners:i.deleteAllListeners});l.measureMethods(m,"ReactBrowserEventEmitter",{putListener:"putListener",deleteListener:"deleteListener"}),t.exports=m},function(t,e,n){"use strict";var r=n(16),o=r({bubbled:null,captured:null}),i=r({topAbort:null,topBlur:null,topCanPlay:null,topCanPlayThrough:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topDurationChange:null,topEmptied:null,topEncrypted:null,topEnded:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topLoadedData:null,topLoadedMetadata:null,topLoadStart:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topPause:null,topPlay:null,topPlaying:null,topProgress:null,topRateChange:null,topReset:null,topScroll:null,topSeeked:null,topSeeking:null,topSelectionChange:null,topStalled:null,topSubmit:null,topSuspend:null,topTextInput:null,topTimeUpdate:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topVolumeChange:null,topWaiting:null,topWheel:null}),a={topLevelTypes:i,PropagationPhases:o};t.exports=a},function(t,e,n){"use strict";var r=n(31),o=n(32),i=n(33),a=n(34),u=n(35),l=n(12),s=(n(24),{}),c=null,f=function(t,e){t&&(o.executeDispatchesInOrder(t,e),t.isPersistent()||t.constructor.release(t))},p=function(t){return f(t,!0)},h=function(t){return f(t,!1)},d=null,v={injection:{injectMount:o.injection.injectMount,injectInstanceHandle:function(t){d=t},getInstanceHandle:function(){return d},injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},eventNameDispatchConfigs:r.eventNameDispatchConfigs,registrationNameModules:r.registrationNameModules,putListener:function(t,e,n){"function"!=typeof n?l(!1):void 0;var o=s[e]||(s[e]={});o[t]=n;var i=r.registrationNameModules[e];i&&i.didPutListener&&i.didPutListener(t,e,n)},getListener:function(t,e){var n=s[e];return n&&n[t]},deleteListener:function(t,e){var n=r.registrationNameModules[e];n&&n.willDeleteListener&&n.willDeleteListener(t,e);var o=s[e];o&&delete o[t]},deleteAllListeners:function(t){for(var e in s)if(s[e][t]){var n=r.registrationNameModules[e];n&&n.willDeleteListener&&n.willDeleteListener(t,e),delete s[e][t]}},extractEvents:function(t,e,n,o,i){for(var u,l=r.plugins,s=0;s<l.length;s++){var c=l[s];if(c){var f=c.extractEvents(t,e,n,o,i);f&&(u=a(u,f))}}return u},enqueueEvents:function(t){t&&(c=a(c,t))},processEventQueue:function(t){var e=c;c=null,t?u(e,p):u(e,h),c?l(!1):void 0,i.rethrowCaughtError()},__purge:function(){s={}},__getListenerBank:function(){return s}};t.exports=v},function(t,e,n){"use strict";function r(){if(u)for(var t in l){var e=l[t],n=u.indexOf(t);if(n>-1?void 0:a(!1),!s.plugins[n]){e.extractEvents?void 0:a(!1),s.plugins[n]=e;var r=e.eventTypes;for(var i in r)o(r[i],e,i)?void 0:a(!1)}}}function o(t,e,n){s.eventNameDispatchConfigs.hasOwnProperty(n)?a(!1):void 0,s.eventNameDispatchConfigs[n]=t;var r=t.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var u=r[o];i(u,e,n)}return!0}return!!t.registrationName&&(i(t.registrationName,e,n),!0)}function i(t,e,n){s.registrationNameModules[t]?a(!1):void 0,s.registrationNameModules[t]=e,s.registrationNameDependencies[t]=e.eventTypes[n].dependencies}var a=n(12),u=null,l={},s={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(t){u?a(!1):void 0,u=Array.prototype.slice.call(t),r()},injectEventPluginsByName:function(t){var e=!1;for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];l.hasOwnProperty(n)&&l[n]===o||(l[n]?a(!1):void 0,l[n]=o,e=!0)}e&&r()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return s.registrationNameModules[e.registrationName]||null;for(var n in e.phasedRegistrationNames)if(e.phasedRegistrationNames.hasOwnProperty(n)){var r=s.registrationNameModules[e.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){u=null;for(var t in l)l.hasOwnProperty(t)&&delete l[t];s.plugins.length=0;var e=s.eventNameDispatchConfigs;for(var n in e)e.hasOwnProperty(n)&&delete e[n];var r=s.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};t.exports=s},function(t,e,n){"use strict";function r(t){return t===g.topMouseUp||t===g.topTouchEnd||t===g.topTouchCancel}function o(t){return t===g.topMouseMove||t===g.topTouchMove}function i(t){return t===g.topMouseDown||t===g.topTouchStart}function a(t,e,n,r){var o=t.type||"unknown-event";t.currentTarget=v.Mount.getNode(r),e?h.invokeGuardedCallbackWithCatch(o,n,t,r):h.invokeGuardedCallback(o,n,t,r),t.currentTarget=null}function u(t,e){var n=t._dispatchListeners,r=t._dispatchIDs;if(Array.isArray(n))for(var o=0;o<n.length&&!t.isPropagationStopped();o++)a(t,e,n[o],r[o]);else n&&a(t,e,n,r);t._dispatchListeners=null,t._dispatchIDs=null}function l(t){var e=t._dispatchListeners,n=t._dispatchIDs;if(Array.isArray(e)){for(var r=0;r<e.length&&!t.isPropagationStopped();r++)if(e[r](t,n[r]))return n[r]}else if(e&&e(t,n))return n;return null}function s(t){var e=l(t);return t._dispatchIDs=null,t._dispatchListeners=null,e}function c(t){var e=t._dispatchListeners,n=t._dispatchIDs;Array.isArray(e)?d(!1):void 0;var r=e?e(t,n):null;return t._dispatchListeners=null,t._dispatchIDs=null,r}function f(t){return!!t._dispatchListeners}var p=n(29),h=n(33),d=n(12),v=(n(24),{Mount:null,injectMount:function(t){v.Mount=t}}),g=p.topLevelTypes,m={isEndish:r,isMoveish:o,isStartish:i,executeDirectDispatch:c,executeDispatchesInOrder:u,executeDispatchesInOrderStopAtTrue:s,hasDispatches:f,getNode:function(t){return v.Mount.getNode(t)},getID:function(t){return v.Mount.getID(t)},injection:v};t.exports=m},function(t,e,n){"use strict";function r(t,e,n,r){try{return e(n,r)}catch(t){return void(null===o&&(o=t))}}var o=null,i={invokeGuardedCallback:r,invokeGuardedCallbackWithCatch:r,rethrowCaughtError:function(){if(o){var t=o;throw o=null,t}}};t.exports=i},function(t,e,n){"use strict";function r(t,e){if(null==e?o(!1):void 0,null==t)return e;var n=Array.isArray(t),r=Array.isArray(e);return n&&r?(t.push.apply(t,e),t):n?(t.push(e),t):r?[t].concat(e):[t,e]}var o=n(12);t.exports=r},function(t,e){"use strict";var n=function(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)};t.exports=n},function(t,e,n){"use strict";function r(t){o.enqueueEvents(t),o.processEventQueue(!1)}var o=n(30),i={handleTopLevel:function(t,e,n,i,a){var u=o.extractEvents(t,e,n,i,a);r(u)}};t.exports=i},function(t,e){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(t){n.currentScrollLeft=t.x,n.currentScrollTop=t.y}};t.exports=n},function(t,e){"use strict";function n(t,e){if(null==t)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(t),r=Object.prototype.hasOwnProperty,o=1;o<arguments.length;o++){var i=arguments[o];if(null!=i){var a=Object(i);for(var u in a)r.call(a,u)&&(n[u]=a[u])}}return n}t.exports=n},function(t,e,n){"use strict";/**
186
- * Checks if an event is supported in the current execution environment.
187
- *
188
- * NOTE: This will not work correctly for non-generic events such as `change`,
189
- * `reset`, `load`, `error`, and `select`.
190
- *
191
- * Borrows from Modernizr.
192
- *
193
- * @param {string} eventNameSuffix Event name, e.g. "click".
194
- * @param {?boolean} capture Check if the capture phase is supported.
195
- * @return {boolean} True if the event is supported.
196
- * @internal
197
- * @license Modernizr 3.0.0pre (Custom Build) | MIT
198
- */
199
- function r(t,e){if(!i.canUseDOM||e&&!("addEventListener"in document))return!1;var n="on"+t,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&o&&"wheel"===t&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var o,i=n(8);i.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),t.exports=r},function(t,e){"use strict";var n={useCreateElement:!1};t.exports=n},function(t,e,n){"use strict";var r=n(4),o=n(38),i=(n(42),"function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103),a={key:!0,ref:!0,__self:!0,__source:!0},u=function(t,e,n,r,o,a,u){var l={$$typeof:i,type:t,key:e,ref:n,props:u,_owner:a};return l};u.createElement=function(t,e,n){var o,i={},l=null,s=null,c=null,f=null;if(null!=e){s=void 0===e.ref?null:e.ref,l=void 0===e.key?null:""+e.key,c=void 0===e.__self?null:e.__self,f=void 0===e.__source?null:e.__source;for(o in e)e.hasOwnProperty(o)&&!a.hasOwnProperty(o)&&(i[o]=e[o])}var p=arguments.length-2;if(1===p)i.children=n;else if(p>1){for(var h=Array(p),d=0;d<p;d++)h[d]=arguments[d+2];i.children=h}if(t&&t.defaultProps){var v=t.defaultProps;for(o in v)"undefined"==typeof i[o]&&(i[o]=v[o])}return u(t,l,s,c,f,r.current,i)},u.createFactory=function(t){var e=u.createElement.bind(null,t);return e.type=t,e},u.cloneAndReplaceKey=function(t,e){var n=u(t.type,e,t.ref,t._self,t._source,t._owner,t.props);return n},u.cloneAndReplaceProps=function(t,e){var n=u(t.type,t.key,t.ref,t._self,t._source,t._owner,e);return n},u.cloneElement=function(t,e,n){var i,l=o({},t.props),s=t.key,c=t.ref,f=t._self,p=t._source,h=t._owner;if(null!=e){void 0!==e.ref&&(c=e.ref,h=r.current),void 0!==e.key&&(s=""+e.key);for(i in e)e.hasOwnProperty(i)&&!a.hasOwnProperty(i)&&(l[i]=e[i])}var d=arguments.length-2;if(1===d)l.children=n;else if(d>1){for(var v=Array(d),g=0;g<d;g++)v[g]=arguments[g+2];l.children=v}return u(t.type,s,c,f,p,h,l)},u.isValidElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===i},t.exports=u},function(t,e,n){"use strict";var r=!1;t.exports=r},function(t,e){"use strict";function n(t){return!!i[t]}function r(t){i[t]=!0}function o(t){delete i[t]}var i={},a={isNullComponentID:n,registerNullComponentID:r,deregisterNullComponentID:o};t.exports=a},function(t,e,n){"use strict";function r(t){return h+t.toString(36)}function o(t,e){return t.charAt(e)===h||e===t.length}function i(t){return""===t||t.charAt(0)===h&&t.charAt(t.length-1)!==h}function a(t,e){return 0===e.indexOf(t)&&o(e,t.length)}function u(t){return t?t.substr(0,t.lastIndexOf(h)):""}function l(t,e){if(i(t)&&i(e)?void 0:p(!1),a(t,e)?void 0:p(!1),t===e)return t;var n,r=t.length+d;for(n=r;n<e.length&&!o(e,n);n++);return e.substr(0,n)}function s(t,e){var n=Math.min(t.length,e.length);if(0===n)return"";for(var r=0,a=0;a<=n;a++)if(o(t,a)&&o(e,a))r=a;else if(t.charAt(a)!==e.charAt(a))break;var u=t.substr(0,r);return i(u)?void 0:p(!1),u}function c(t,e,n,r,o,i){t=t||"",e=e||"",t===e?p(!1):void 0;var s=a(e,t);s||a(t,e)?void 0:p(!1);for(var c=0,f=s?u:l,h=t;;h=f(h,e)){var d;if(o&&h===t||i&&h===e||(d=n(h,s,r)),d===!1||h===e)break;c++<v?void 0:p(!1)}}var f=n(45),p=n(12),h=".",d=h.length,v=1e4,g={createReactRootID:function(){return r(f.createReactRootIndex())},createReactID:function(t,e){return t+e},getReactRootIDFromNodeID:function(t){if(t&&t.charAt(0)===h&&t.length>1){var e=t.indexOf(h,1);return e>-1?t.substr(0,e):t}return null},traverseEnterLeave:function(t,e,n,r,o){var i=s(t,e);i!==t&&c(t,i,n,r,!1,!0),i!==e&&c(i,e,n,o,!0,!1)},traverseTwoPhase:function(t,e,n){t&&(c("",t,e,n,!0,!1),c(t,"",e,n,!1,!0))},traverseTwoPhaseSkipTarget:function(t,e,n){t&&(c("",t,e,n,!0,!0),c(t,"",e,n,!0,!0))},traverseAncestors:function(t,e,n){c("",t,e,n,!0,!1)},getFirstCommonAncestorID:s,_getNextDescendantID:l,isAncestorIDOf:a,SEPARATOR:h};t.exports=g},function(t,e){"use strict";var n={injectCreateReactRootIndex:function(t){r.createReactRootIndex=t}},r={createReactRootIndex:null,injection:n};t.exports=r},function(t,e){"use strict";var n={remove:function(t){t._reactInternalInstance=void 0},get:function(t){return t._reactInternalInstance},has:function(t){return void 0!==t._reactInternalInstance},set:function(t,e){t._reactInternalInstance=e}};t.exports=n},function(t,e,n){"use strict";var r=n(48),o=/\/?>/,i={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(t){var e=r(t);return t.replace(o," "+i.CHECKSUM_ATTR_NAME+'="'+e+'"$&')},canReuseMarkup:function(t,e){var n=e.getAttribute(i.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(t);return o===n}};t.exports=i},function(t,e){"use strict";function n(t){for(var e=1,n=0,o=0,i=t.length,a=i&-4;o<a;){for(;o<Math.min(o+4096,a);o+=4)n+=(e+=t.charCodeAt(o))+(e+=t.charCodeAt(o+1))+(e+=t.charCodeAt(o+2))+(e+=t.charCodeAt(o+3));e%=r,n%=r}for(;o<i;o++)n+=e+=t.charCodeAt(o);return e%=r,n%=r,e|n<<16}var r=65521;t.exports=n},function(t,e,n){"use strict";function r(){o.attachRefs(this,this._currentElement)}var o=n(50),i={mountComponent:function(t,e,n,o){var i=t.mountComponent(e,n,o);return t._currentElement&&null!=t._currentElement.ref&&n.getReactMountReady().enqueue(r,t),i},unmountComponent:function(t){o.detachRefs(t,t._currentElement),t.unmountComponent()},receiveComponent:function(t,e,n,i){var a=t._currentElement;if(e!==a||i!==t._context){var u=o.shouldUpdateRefs(a,e);u&&o.detachRefs(t,a),t.receiveComponent(e,n,i),u&&t._currentElement&&null!=t._currentElement.ref&&n.getReactMountReady().enqueue(r,t)}},performUpdateIfNecessary:function(t,e){t.performUpdateIfNecessary(e)}};t.exports=i},function(t,e,n){"use strict";function r(t,e,n){"function"==typeof t?t(e.getPublicInstance()):i.addComponentAsRefTo(e,t,n)}function o(t,e,n){"function"==typeof t?t(null):i.removeComponentAsRefFrom(e,t,n)}var i=n(51),a={};a.attachRefs=function(t,e){if(null!==e&&e!==!1){var n=e.ref;null!=n&&r(n,t,e._owner)}},a.shouldUpdateRefs=function(t,e){var n=null===t||t===!1,r=null===e||e===!1;return n||r||e._owner!==t._owner||e.ref!==t.ref},a.detachRefs=function(t,e){if(null!==e&&e!==!1){var n=e.ref;null!=n&&o(n,t,e._owner)}},t.exports=a},function(t,e,n){"use strict";var r=n(12),o={isValidOwner:function(t){return!(!t||"function"!=typeof t.attachRef||"function"!=typeof t.detachRef)},addComponentAsRefTo:function(t,e,n){o.isValidOwner(n)?void 0:r(!1),n.attachRef(e,t)},removeComponentAsRefFrom:function(t,e,n){o.isValidOwner(n)?void 0:r(!1),n.getPublicInstance().refs[e]===t.getPublicInstance()&&n.detachRef(e)}};t.exports=o},function(t,e,n){"use strict";function r(t){u.enqueueUpdate(t)}function o(t,e){var n=a.get(t);return n?n:null}var i=(n(4),n(41)),a=n(46),u=n(53),l=n(38),s=n(12),c=(n(24),{isMounted:function(t){var e=a.get(t);return!!e&&!!e._renderedComponent},enqueueCallback:function(t,e){"function"!=typeof e?s(!1):void 0;var n=o(t);return n?(n._pendingCallbacks?n._pendingCallbacks.push(e):n._pendingCallbacks=[e],void r(n)):null},enqueueCallbackInternal:function(t,e){"function"!=typeof e?s(!1):void 0,t._pendingCallbacks?t._pendingCallbacks.push(e):t._pendingCallbacks=[e],r(t)},enqueueForceUpdate:function(t){var e=o(t,"forceUpdate");e&&(e._pendingForceUpdate=!0,r(e))},enqueueReplaceState:function(t,e){var n=o(t,"replaceState");n&&(n._pendingStateQueue=[e],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(t,e){var n=o(t,"setState");if(n){var i=n._pendingStateQueue||(n._pendingStateQueue=[]);i.push(e),r(n)}},enqueueSetProps:function(t,e){var n=o(t,"setProps");n&&c.enqueueSetPropsInternal(n,e)},enqueueSetPropsInternal:function(t,e){var n=t._topLevelWrapper;n?void 0:s(!1);var o=n._pendingElement||n._currentElement,a=o.props,u=l({},a.props,e);n._pendingElement=i.cloneAndReplaceProps(o,i.cloneAndReplaceProps(a,u)),r(n)},enqueueReplaceProps:function(t,e){var n=o(t,"replaceProps");n&&c.enqueueReplacePropsInternal(n,e)},enqueueReplacePropsInternal:function(t,e){var n=t._topLevelWrapper;n?void 0:s(!1);var o=n._pendingElement||n._currentElement,a=o.props;n._pendingElement=i.cloneAndReplaceProps(o,i.cloneAndReplaceProps(a,e)),r(n)},enqueueElementInternal:function(t,e){t._pendingElement=e,r(t)}});t.exports=c},function(t,e,n){"use strict";function r(){N.ReactReconcileTransaction&&x?void 0:g(!1)}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=c.getPooled(),this.reconcileTransaction=N.ReactReconcileTransaction.getPooled(!1)}function i(t,e,n,o,i,a){r(),x.batchedUpdates(t,e,n,o,i,a)}function a(t,e){return t._mountOrder-e._mountOrder}function u(t){var e=t.dirtyComponentsLength;e!==m.length?g(!1):void 0,m.sort(a);for(var n=0;n<e;n++){var r=m[n],o=r._pendingCallbacks;if(r._pendingCallbacks=null,h.performUpdateIfNecessary(r,t.reconcileTransaction),o)for(var i=0;i<o.length;i++)t.callbackQueue.enqueue(o[i],r.getPublicInstance())}}function l(t){return r(),x.isBatchingUpdates?void m.push(t):void x.batchedUpdates(l,t)}function s(t,e){x.isBatchingUpdates?void 0:g(!1),y.enqueue(t,e),b=!0}var c=n(54),f=n(55),p=n(17),h=n(49),d=n(56),v=n(38),g=n(12),m=[],y=c.getPooled(),b=!1,x=null,_={initialize:function(){this.dirtyComponentsLength=m.length},close:function(){this.dirtyComponentsLength!==m.length?(m.splice(0,this.dirtyComponentsLength),E()):m.length=0}},M={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},C=[_,M];v(o.prototype,d.Mixin,{getTransactionWrappers:function(){return C},destructor:function(){this.dirtyComponentsLength=null,c.release(this.callbackQueue),this.callbackQueue=null,N.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(t,e,n){return d.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,t,e,n)}}),f.addPoolingTo(o);var E=function(){for(;m.length||b;){if(m.length){var t=o.getPooled();t.perform(u,null,t),o.release(t)}if(b){b=!1;var e=y;y=c.getPooled(),e.notifyAll(),c.release(e)}}};E=p.measure("ReactUpdates","flushBatchedUpdates",E);var w={injectReconcileTransaction:function(t){t?void 0:g(!1),N.ReactReconcileTransaction=t},injectBatchingStrategy:function(t){t?void 0:g(!1),"function"!=typeof t.batchedUpdates?g(!1):void 0,"boolean"!=typeof t.isBatchingUpdates?g(!1):void 0,x=t}},N={ReactReconcileTransaction:null,batchedUpdates:i,enqueueUpdate:l,flushBatchedUpdates:E,injection:w,asap:s};t.exports=N},function(t,e,n){"use strict";function r(){this._callbacks=null,this._contexts=null}var o=n(55),i=n(38),a=n(12);i(r.prototype,{enqueue:function(t,e){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(t),this._contexts.push(e)},notifyAll:function(){var t=this._callbacks,e=this._contexts;if(t){t.length!==e.length?a(!1):void 0,this._callbacks=null,this._contexts=null;for(var n=0;n<t.length;n++)t[n].call(e[n]);t.length=0,e.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),o.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";var r=n(12),o=function(t){var e=this;if(e.instancePool.length){var n=e.instancePool.pop();return e.call(n,t),n}return new e(t)},i=function(t,e){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,t,e),r}return new n(t,e)},a=function(t,e,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,t,e,n),o}return new r(t,e,n)},u=function(t,e,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,t,e,n,r),i}return new o(t,e,n,r)},l=function(t,e,n,r,o){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,t,e,n,r,o),a}return new i(t,e,n,r,o)},s=function(t){var e=this;t instanceof e?void 0:r(!1),t.destructor(),e.instancePool.length<e.poolSize&&e.instancePool.push(t)},c=10,f=o,p=function(t,e){var n=t;return n.instancePool=[],n.getPooled=e||f,n.poolSize||(n.poolSize=c),n.release=s,n},h={addPoolingTo:p,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:u,fiveArgumentPooler:l};t.exports=h},function(t,e,n){"use strict";var r=n(12),o={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(t,e,n,o,i,a,u,l){this.isInTransaction()?r(!1):void 0;var s,c;try{this._isInTransaction=!0,s=!0,this.initializeAll(0),c=t.call(e,n,o,i,a,u,l),s=!1}finally{try{if(s)try{this.closeAll(0)}catch(t){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c},initializeAll:function(t){for(var e=this.transactionWrappers,n=t;n<e.length;n++){var r=e[n];try{this.wrapperInitData[n]=i.OBSERVED_ERROR,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===i.OBSERVED_ERROR)try{this.initializeAll(n+1)}catch(t){}}}},closeAll:function(t){this.isInTransaction()?void 0:r(!1);for(var e=this.transactionWrappers,n=t;n<e.length;n++){var o,a=e[n],u=this.wrapperInitData[n];try{o=!0,u!==i.OBSERVED_ERROR&&a.close&&a.close.call(this,u),o=!1}finally{if(o)try{this.closeAll(n+1)}catch(t){}}}this.wrapperInitData.length=0}},i={Mixin:o,OBSERVED_ERROR:{}};t.exports=i},function(t,e,n){"use strict";var r={};t.exports=r},function(t,e,n){"use strict";function r(t,e){var n=!0;t:for(;n;){var r=t,i=e;if(n=!1,r&&i){if(r===i)return!0;if(o(r))return!1;if(o(i)){t=r,e=i.parentNode,n=!0;continue t}return r.contains?r.contains(i):!!r.compareDocumentPosition&&!!(16&r.compareDocumentPosition(i))}return!1}}var o=n(59);t.exports=r},function(t,e,n){"use strict";function r(t){return o(t)&&3==t.nodeType}var o=n(60);t.exports=r},function(t,e){"use strict";function n(t){return!(!t||!("function"==typeof Node?t instanceof Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=n},function(t,e,n){"use strict";function r(t){return"function"==typeof t&&"undefined"!=typeof t.prototype&&"function"==typeof t.prototype.mountComponent&&"function"==typeof t.prototype.receiveComponent}function o(t){var e;if(null===t||t===!1)e=new a(o);else if("object"==typeof t){var n=t;!n||"function"!=typeof n.type&&"string"!=typeof n.type?s(!1):void 0,e="string"==typeof n.type?u.createInternalComponent(n):r(n.type)?new n.type(n):new c}else"string"==typeof t||"number"==typeof t?e=u.createInstanceForText(t):s(!1);return e.construct(t),e._mountIndex=0,e._mountImage=null,e}var i=n(62),a=n(67),u=n(68),l=n(38),s=n(12),c=(n(24),function(){});l(c.prototype,i.Mixin,{_instantiateReactComponent:o}),t.exports=o},function(t,e,n){"use strict";function r(t){var e=t._currentElement._owner||null;if(e){var n=e.getName();if(n)return" Check the render method of `"+n+"`."}return""}function o(t){}var i=n(63),a=n(4),u=n(41),l=n(46),s=n(17),c=n(64),f=(n(65),n(49)),p=n(52),h=n(38),d=n(57),v=n(12),g=n(66);n(24);o.prototype.render=function(){var t=l.get(this)._currentElement.type;return t(this.props,this.context,this.updater)};var m=1,y={construct:function(t){this._currentElement=t,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null},mountComponent:function(t,e,n){this._context=n,this._mountOrder=m++,this._rootNodeID=t;var r,i,a=this._processProps(this._currentElement.props),s=this._processContext(n),c=this._currentElement.type,h="prototype"in c;h&&(r=new c(a,s,p)),h&&null!==r&&r!==!1&&!u.isValidElement(r)||(i=r,r=new o(c)),r.props=a,r.context=s,r.refs=d,r.updater=p,this._instance=r,l.set(r,this);var g=r.state;void 0===g&&(r.state=g=null),"object"!=typeof g||Array.isArray(g)?v(!1):void 0,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,r.componentWillMount&&(r.componentWillMount(),this._pendingStateQueue&&(r.state=this._processPendingState(r.props,r.context))),void 0===i&&(i=this._renderValidatedComponent()),this._renderedComponent=this._instantiateReactComponent(i);var y=f.mountComponent(this._renderedComponent,t,e,this._processChildContext(n));return r.componentDidMount&&e.getReactMountReady().enqueue(r.componentDidMount,r),y},unmountComponent:function(){var t=this._instance;t.componentWillUnmount&&t.componentWillUnmount(),f.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._instance=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,this._topLevelWrapper=null,l.remove(t)},_maskContext:function(t){var e=null,n=this._currentElement.type,r=n.contextTypes;if(!r)return d;e={};for(var o in r)e[o]=t[o];return e},_processContext:function(t){var e=this._maskContext(t);return e},_processChildContext:function(t){var e=this._currentElement.type,n=this._instance,r=n.getChildContext&&n.getChildContext();if(r){"object"!=typeof e.childContextTypes?v(!1):void 0;for(var o in r)o in e.childContextTypes?void 0:v(!1);return h({},t,r)}return t},_processProps:function(t){return t},_checkPropTypes:function(t,e,n){var o=this.getName();for(var i in t)if(t.hasOwnProperty(i)){var a;try{"function"!=typeof t[i]?v(!1):void 0,a=t[i](e,i,o,n)}catch(t){a=t}if(a instanceof Error){r(this);n===c.prop}}},receiveComponent:function(t,e,n){var r=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(e,r,t,o,n)},performUpdateIfNecessary:function(t){null!=this._pendingElement&&f.receiveComponent(this,this._pendingElement||this._currentElement,t,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(t,this._currentElement,this._currentElement,this._context,this._context)},updateComponent:function(t,e,n,r,o){var i,a=this._instance,u=this._context===o?a.context:this._processContext(o);e===n?i=n.props:(i=this._processProps(n.props),a.componentWillReceiveProps&&a.componentWillReceiveProps(i,u));var l=this._processPendingState(i,u),s=this._pendingForceUpdate||!a.shouldComponentUpdate||a.shouldComponentUpdate(i,l,u);s?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,i,l,u,t,o)):(this._currentElement=n,this._context=o,a.props=i,a.state=l,a.context=u)},_processPendingState:function(t,e){var n=this._instance,r=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(o&&1===r.length)return r[0];for(var i=h({},o?r[0]:n.state),a=o?1:0;a<r.length;a++){var u=r[a];h(i,"function"==typeof u?u.call(n,i,t,e):u)}return i},_performComponentUpdate:function(t,e,n,r,o,i){var a,u,l,s=this._instance,c=Boolean(s.componentDidUpdate);c&&(a=s.props,u=s.state,l=s.context),s.componentWillUpdate&&s.componentWillUpdate(e,n,r),this._currentElement=t,this._context=i,s.props=e,s.state=n,s.context=r,this._updateRenderedComponent(o,i),c&&o.getReactMountReady().enqueue(s.componentDidUpdate.bind(s,a,u,l),s)},_updateRenderedComponent:function(t,e){var n=this._renderedComponent,r=n._currentElement,o=this._renderValidatedComponent();if(g(r,o))f.receiveComponent(n,o,t,this._processChildContext(e));else{var i=this._rootNodeID,a=n._rootNodeID;f.unmountComponent(n),this._renderedComponent=this._instantiateReactComponent(o);var u=f.mountComponent(this._renderedComponent,i,t,this._processChildContext(e));this._replaceNodeWithMarkupByID(a,u)}},_replaceNodeWithMarkupByID:function(t,e){i.replaceNodeWithMarkupByID(t,e)},_renderValidatedComponentWithoutOwnerOrContext:function(){var t=this._instance,e=t.render();return e},_renderValidatedComponent:function(){var t;a.current=this;try{t=this._renderValidatedComponentWithoutOwnerOrContext()}finally{a.current=null}return null===t||t===!1||u.isValidElement(t)?void 0:v(!1),t},attachRef:function(t,e){var n=this.getPublicInstance();null==n?v(!1):void 0;var r=e.getPublicInstance(),o=n.refs===d?n.refs={}:n.refs;o[t]=r},detachRef:function(t){var e=this.getPublicInstance().refs;delete e[t]},getName:function(){var t=this._currentElement.type,e=this._instance&&this._instance.constructor;return t.displayName||e&&e.displayName||t.name||e&&e.name||null},getPublicInstance:function(){var t=this._instance;return t instanceof o?null:t},_instantiateReactComponent:null};s.measureMethods(y,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var b={Mixin:y};t.exports=b},function(t,e,n){"use strict";var r=n(12),o=!1,i={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(t){o?r(!1):void 0,i.unmountIDFromEnvironment=t.unmountIDFromEnvironment,i.replaceNodeWithMarkupByID=t.replaceNodeWithMarkupByID,i.processChildrenUpdates=t.processChildrenUpdates,o=!0}}};t.exports=i},function(t,e,n){"use strict";var r=n(16),o=r({prop:null,context:null,childContext:null});t.exports=o},function(t,e,n){"use strict";var r={};t.exports=r},function(t,e){"use strict";function n(t,e){var n=null===t||t===!1,r=null===e||e===!1;if(n||r)return n===r;var o=typeof t,i=typeof e;return"string"===o||"number"===o?"string"===i||"number"===i:"object"===i&&t.type===e.type&&t.key===e.key}t.exports=n},function(t,e,n){"use strict";function r(){a.registerNullComponentID(this._rootNodeID)}var o,i=n(41),a=n(43),u=n(49),l=n(38),s={injectEmptyComponent:function(t){o=i.createElement(t)}},c=function(t){this._currentElement=null,this._rootNodeID=null,this._renderedComponent=t(o)};l(c.prototype,{construct:function(t){},mountComponent:function(t,e,n){return e.getReactMountReady().enqueue(r,this),this._rootNodeID=t,u.mountComponent(this._renderedComponent,t,e,n)},receiveComponent:function(){},unmountComponent:function(t,e,n){u.unmountComponent(this._renderedComponent),a.deregisterNullComponentID(this._rootNodeID),this._rootNodeID=null,this._renderedComponent=null}}),c.injection=s,t.exports=c},function(t,e,n){"use strict";function r(t){if("function"==typeof t.type)return t.type;var e=t.type,n=f[e];return null==n&&(f[e]=n=s(e)),n}function o(t){return c?void 0:l(!1),new c(t.type,t.props)}function i(t){return new p(t)}function a(t){return t instanceof p}var u=n(38),l=n(12),s=null,c=null,f={},p=null,h={injectGenericComponentClass:function(t){c=t},injectTextComponentClass:function(t){p=t},injectComponentClasses:function(t){u(f,t)}},d={getComponentClassForElement:r,createInternalComponent:o,createInstanceForText:i,isTextComponent:a,injection:h};t.exports=d},function(t,e,n){"use strict";var r=(n(38),n(14)),o=(n(24),r);t.exports=o},function(t,e,n){"use strict";function r(){if(!w){w=!0,m.EventEmitter.injectReactEventListener(g),m.EventPluginHub.injectEventPluginOrder(u),m.EventPluginHub.injectInstanceHandle(y),m.EventPluginHub.injectMount(b),m.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:C,EnterLeaveEventPlugin:l,ChangeEventPlugin:i,SelectEventPlugin:_,BeforeInputEventPlugin:o}),m.NativeComponent.injectGenericComponentClass(d),m.NativeComponent.injectTextComponentClass(v),m.Class.injectMixin(f),m.DOMProperty.injectDOMPropertyConfig(c),m.DOMProperty.injectDOMPropertyConfig(E),m.EmptyComponent.injectEmptyComponent("noscript"),m.Updates.injectReconcileTransaction(x),m.Updates.injectBatchingStrategy(h),m.RootIndex.injectCreateReactRootIndex(s.canUseDOM?a.createReactRootIndex:M.createReactRootIndex),m.Component.injectEnvironment(p)}}var o=n(71),i=n(79),a=n(82),u=n(83),l=n(84),s=n(8),c=n(88),f=n(89),p=n(25),h=n(91),d=n(92),v=n(5),g=n(117),m=n(120),y=n(44),b=n(27),x=n(124),_=n(129),M=n(130),C=n(131),E=n(140),w=!1;t.exports={inject:r}},function(t,e,n){"use strict";function r(){var t=window.opera;return"object"==typeof t&&"function"==typeof t.version&&parseInt(t.version(),10)<=12}function o(t){return(t.ctrlKey||t.altKey||t.metaKey)&&!(t.ctrlKey&&t.altKey)}function i(t){switch(t){case k.topCompositionStart:return D.compositionStart;case k.topCompositionEnd:return D.compositionEnd;case k.topCompositionUpdate:return D.compositionUpdate}}function a(t,e){return t===k.topKeyDown&&e.keyCode===_}function u(t,e){switch(t){case k.topKeyUp:return x.indexOf(e.keyCode)!==-1;case k.topKeyDown:return e.keyCode!==_;case k.topKeyPress:case k.topMouseDown:case k.topBlur:return!0;default:return!1}}function l(t){var e=t.detail;return"object"==typeof e&&"data"in e?e.data:null}function s(t,e,n,r,o){var s,c;if(M?s=i(t):R?u(t,r)&&(s=D.compositionEnd):a(t,r)&&(s=D.compositionStart),!s)return null;w&&(R||s!==D.compositionStart?s===D.compositionEnd&&R&&(c=R.getData()):R=g.getPooled(e));var f=m.getPooled(s,n,r,o);if(c)f.data=c;else{var p=l(r);null!==p&&(f.data=p)}return d.accumulateTwoPhaseDispatches(f),f}function c(t,e){switch(t){case k.topCompositionEnd:return l(e);case k.topKeyPress:var n=e.which;return n!==N?null:(P=!0,S);case k.topTextInput:var r=e.data;return r===S&&P?null:r;default:return null}}function f(t,e){if(R){if(t===k.topCompositionEnd||u(t,e)){var n=R.getData();return g.release(R),R=null,n}return null}switch(t){case k.topPaste:return null;case k.topKeyPress:return e.which&&!o(e)?String.fromCharCode(e.which):null;case k.topCompositionEnd:return w?null:e.data;default:return null}}function p(t,e,n,r,o){var i;if(i=E?c(t,r):f(t,r),!i)return null;var a=y.getPooled(D.beforeInput,n,r,o);return a.data=i,d.accumulateTwoPhaseDispatches(a),a}var h=n(29),d=n(72),v=n(8),g=n(73),m=n(75),y=n(77),b=n(78),x=[9,13,27,32],_=229,M=v.canUseDOM&&"CompositionEvent"in window,C=null;v.canUseDOM&&"documentMode"in document&&(C=document.documentMode);var E=v.canUseDOM&&"TextEvent"in window&&!C&&!r(),w=v.canUseDOM&&(!M||C&&C>8&&C<=11),N=32,S=String.fromCharCode(N),k=h.topLevelTypes,D={beforeInput:{phasedRegistrationNames:{bubbled:b({onBeforeInput:null}),captured:b({onBeforeInputCapture:null})},dependencies:[k.topCompositionEnd,k.topKeyPress,k.topTextInput,k.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:b({onCompositionEnd:null}),captured:b({onCompositionEndCapture:null})},dependencies:[k.topBlur,k.topCompositionEnd,k.topKeyDown,k.topKeyPress,k.topKeyUp,k.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:b({onCompositionStart:null}),captured:b({onCompositionStartCapture:null})},dependencies:[k.topBlur,k.topCompositionStart,k.topKeyDown,k.topKeyPress,k.topKeyUp,k.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:b({onCompositionUpdate:null}),captured:b({onCompositionUpdateCapture:null})},dependencies:[k.topBlur,k.topCompositionUpdate,k.topKeyDown,k.topKeyPress,k.topKeyUp,k.topMouseDown]}},P=!1,R=null,T={eventTypes:D,extractEvents:function(t,e,n,r,o){return[s(t,e,n,r,o),p(t,e,n,r,o)]}};t.exports=T},function(t,e,n){"use strict";function r(t,e,n){var r=e.dispatchConfig.phasedRegistrationNames[n];return y(t,r)}function o(t,e,n){var o=e?m.bubbled:m.captured,i=r(t,n,o);i&&(n._dispatchListeners=v(n._dispatchListeners,i),n._dispatchIDs=v(n._dispatchIDs,t))}function i(t){t&&t.dispatchConfig.phasedRegistrationNames&&d.injection.getInstanceHandle().traverseTwoPhase(t.dispatchMarker,o,t)}function a(t){t&&t.dispatchConfig.phasedRegistrationNames&&d.injection.getInstanceHandle().traverseTwoPhaseSkipTarget(t.dispatchMarker,o,t)}function u(t,e,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,o=y(t,r);o&&(n._dispatchListeners=v(n._dispatchListeners,o),n._dispatchIDs=v(n._dispatchIDs,t))}}function l(t){t&&t.dispatchConfig.registrationName&&u(t.dispatchMarker,null,t)}function s(t){g(t,i)}function c(t){g(t,a)}function f(t,e,n,r){d.injection.getInstanceHandle().traverseEnterLeave(n,r,u,t,e)}function p(t){g(t,l)}var h=n(29),d=n(30),v=(n(24),n(34)),g=n(35),m=h.PropagationPhases,y=d.getListener,b={accumulateTwoPhaseDispatches:s,accumulateTwoPhaseDispatchesSkipTarget:c,accumulateDirectDispatches:p,accumulateEnterLeaveDispatches:f};t.exports=b},function(t,e,n){"use strict";function r(t){this._root=t,this._startText=this.getText(),this._fallbackText=null}var o=n(55),i=n(38),a=n(74);i(r.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var t,e,n=this._startText,r=n.length,o=this.getText(),i=o.length;for(t=0;t<r&&n[t]===o[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===o[i-e];e++);var u=e>1?1-e:void 0;return this._fallbackText=o.slice(t,u),this._fallbackText}}),o.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";function r(){return!i&&o.canUseDOM&&(i="textContent"in document.documentElement?"textContent":"innerText"),i}var o=n(8),i=null;t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(76),i={data:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){this.dispatchConfig=t,this.dispatchMarker=e,this.nativeEvent=n;var o=this.constructor.Interface;for(var i in o)if(o.hasOwnProperty(i)){var u=o[i];u?this[i]=u(n):"target"===i?this.target=r:this[i]=n[i]}var l=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;l?this.isDefaultPrevented=a.thatReturnsTrue:this.isDefaultPrevented=a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse}var o=n(55),i=n(38),a=n(14),u=(n(24),{type:null,target:null,currentTarget:a.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null});i(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():t.returnValue=!1,this.isDefaultPrevented=a.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,this.isPropagationStopped=a.thatReturnsTrue)},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var t=this.constructor.Interface;for(var e in t)this[e]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),r.Interface=u,r.augmentClass=function(t,e){var n=this,r=Object.create(n.prototype);i(r,t.prototype),t.prototype=r,t.prototype.constructor=t,t.Interface=i({},n.Interface,e),t.augmentClass=n.augmentClass,o.addPoolingTo(t,o.fourArgumentPooler)},o.addPoolingTo(r,o.fourArgumentPooler),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(76),i={data:null};o.augmentClass(r,i),t.exports=r},function(t,e){"use strict";var n=function(t){var e;for(e in t)if(t.hasOwnProperty(e))return e;return null};t.exports=n},function(t,e,n){"use strict";function r(t){var e=t.nodeName&&t.nodeName.toLowerCase();return"select"===e||"input"===e&&"file"===t.type}function o(t){var e=C.getPooled(D.change,R,t,E(t));x.accumulateTwoPhaseDispatches(e),M.batchedUpdates(i,e)}function i(t){b.enqueueEvents(t),b.processEventQueue(!1)}function a(t,e){P=t,R=e,P.attachEvent("onchange",o)}function u(){P&&(P.detachEvent("onchange",o),P=null,R=null)}function l(t,e,n){if(t===k.topChange)return n}function s(t,e,n){t===k.topFocus?(u(),a(e,n)):t===k.topBlur&&u()}function c(t,e){P=t,R=e,T=t.value,A=Object.getOwnPropertyDescriptor(t.constructor.prototype,"value"),Object.defineProperty(P,"value",L),P.attachEvent("onpropertychange",p)}function f(){P&&(delete P.value,P.detachEvent("onpropertychange",p),P=null,R=null,T=null,A=null)}function p(t){if("value"===t.propertyName){var e=t.srcElement.value;e!==T&&(T=e,o(t))}}function h(t,e,n){if(t===k.topInput)return n}function d(t,e,n){t===k.topFocus?(f(),c(e,n)):t===k.topBlur&&f()}function v(t,e,n){if((t===k.topSelectionChange||t===k.topKeyUp||t===k.topKeyDown)&&P&&P.value!==T)return T=P.value,R}function g(t){return t.nodeName&&"input"===t.nodeName.toLowerCase()&&("checkbox"===t.type||"radio"===t.type)}function m(t,e,n){if(t===k.topClick)return n}var y=n(29),b=n(30),x=n(72),_=n(8),M=n(53),C=n(76),E=n(80),w=n(39),N=n(81),S=n(78),k=y.topLevelTypes,D={
200
- change:{phasedRegistrationNames:{bubbled:S({onChange:null}),captured:S({onChangeCapture:null})},dependencies:[k.topBlur,k.topChange,k.topClick,k.topFocus,k.topInput,k.topKeyDown,k.topKeyUp,k.topSelectionChange]}},P=null,R=null,T=null,A=null,I=!1;_.canUseDOM&&(I=w("change")&&(!("documentMode"in document)||document.documentMode>8));var O=!1;_.canUseDOM&&(O=w("input")&&(!("documentMode"in document)||document.documentMode>9));var L={get:function(){return A.get.call(this)},set:function(t){T=""+t,A.set.call(this,t)}},U={eventTypes:D,extractEvents:function(t,e,n,o,i){var a,u;if(r(e)?I?a=l:u=s:N(e)?O?a=h:(a=v,u=d):g(e)&&(a=m),a){var c=a(t,e,n);if(c){var f=C.getPooled(D.change,c,o,i);return f.type="change",x.accumulateTwoPhaseDispatches(f),f}}u&&u(t,e,n)}};t.exports=U},function(t,e){"use strict";function n(t){var e=t.target||t.srcElement||window;return 3===e.nodeType?e.parentNode:e}t.exports=n},function(t,e){"use strict";function n(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&r[t.type]||"textarea"===e)}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=n},function(t,e){"use strict";var n=0,r={createReactRootIndex:function(){return n++}};t.exports=r},function(t,e,n){"use strict";var r=n(78),o=[r({ResponderEventPlugin:null}),r({SimpleEventPlugin:null}),r({TapEventPlugin:null}),r({EnterLeaveEventPlugin:null}),r({ChangeEventPlugin:null}),r({SelectEventPlugin:null}),r({BeforeInputEventPlugin:null})];t.exports=o},function(t,e,n){"use strict";var r=n(29),o=n(72),i=n(85),a=n(27),u=n(78),l=r.topLevelTypes,s=a.getFirstReactDOM,c={mouseEnter:{registrationName:u({onMouseEnter:null}),dependencies:[l.topMouseOut,l.topMouseOver]},mouseLeave:{registrationName:u({onMouseLeave:null}),dependencies:[l.topMouseOut,l.topMouseOver]}},f=[null,null],p={eventTypes:c,extractEvents:function(t,e,n,r,u){if(t===l.topMouseOver&&(r.relatedTarget||r.fromElement))return null;if(t!==l.topMouseOut&&t!==l.topMouseOver)return null;var p;if(e.window===e)p=e;else{var h=e.ownerDocument;p=h?h.defaultView||h.parentWindow:window}var d,v,g="",m="";if(t===l.topMouseOut?(d=e,g=n,v=s(r.relatedTarget||r.toElement),v?m=a.getID(v):v=p,v=v||p):(d=p,v=e,m=n),d===v)return null;var y=i.getPooled(c.mouseLeave,g,r,u);y.type="mouseleave",y.target=d,y.relatedTarget=v;var b=i.getPooled(c.mouseEnter,m,r,u);return b.type="mouseenter",b.target=v,b.relatedTarget=d,o.accumulateEnterLeaveDispatches(y,b,g,m),f[0]=y,f[1]=b,f}};t.exports=p},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(86),i=n(37),a=n(87),u={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:a,button:function(t){var e=t.button;return"which"in t?e:2===e?2:4===e?1:0},buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},pageX:function(t){return"pageX"in t?t.pageX:t.clientX+i.currentScrollLeft},pageY:function(t){return"pageY"in t?t.pageY:t.clientY+i.currentScrollTop}};o.augmentClass(r,u),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(76),i=n(80),a={view:function(t){if(t.view)return t.view;var e=i(t);if(null!=e&&e.window===e)return e;var n=e.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(t){return t.detail||0}};o.augmentClass(r,a),t.exports=r},function(t,e){"use strict";function n(t){var e=this,n=e.nativeEvent;if(n.getModifierState)return n.getModifierState(t);var r=o[t];return!!r&&!!n[r]}function r(t){return n}var o={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=r},function(t,e,n){"use strict";var r,o=n(22),i=n(8),a=o.injection.MUST_USE_ATTRIBUTE,u=o.injection.MUST_USE_PROPERTY,l=o.injection.HAS_BOOLEAN_VALUE,s=o.injection.HAS_SIDE_EFFECTS,c=o.injection.HAS_NUMERIC_VALUE,f=o.injection.HAS_POSITIVE_NUMERIC_VALUE,p=o.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(i.canUseDOM){var h=document.implementation;r=h&&h.hasFeature&&h.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var d={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:a|l,allowTransparency:a,alt:null,async:l,autoComplete:null,autoPlay:l,capture:a|l,cellPadding:null,cellSpacing:null,charSet:a,challenge:a,checked:u|l,classID:a,className:r?a:u,cols:a|f,colSpan:null,content:null,contentEditable:null,contextMenu:a,controls:u|l,coords:null,crossOrigin:null,data:null,dateTime:a,default:l,defer:l,dir:null,disabled:a|l,download:p,draggable:null,encType:null,form:a,formAction:a,formEncType:a,formMethod:a,formNoValidate:l,formTarget:a,frameBorder:a,headers:null,height:a,hidden:a|l,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:u,inputMode:a,integrity:null,is:a,keyParams:a,keyType:a,kind:null,label:null,lang:null,list:a,loop:u|l,low:null,manifest:a,marginHeight:null,marginWidth:null,max:null,maxLength:a,media:a,mediaGroup:null,method:null,min:null,minLength:a,multiple:u|l,muted:u|l,name:null,nonce:a,noValidate:l,open:l,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:u|l,rel:null,required:l,reversed:l,role:a,rows:a|f,rowSpan:null,sandbox:null,scope:null,scoped:l,scrolling:null,seamless:a|l,selected:u|l,shape:null,size:a|f,sizes:a,span:f,spellCheck:null,src:null,srcDoc:u,srcLang:null,srcSet:a,start:c,step:null,style:null,summary:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:u|s,width:a,wmode:a,wrap:null,about:a,datatype:a,inlist:a,prefix:a,property:a,resource:a,typeof:a,vocab:a,autoCapitalize:a,autoCorrect:a,autoSave:null,color:null,itemProp:a,itemScope:a|l,itemType:a,itemID:a,itemRef:a,results:null,security:a,unselectable:a},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoComplete:"autocomplete",autoFocus:"autofocus",autoPlay:"autoplay",autoSave:"autosave",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};t.exports=d},function(t,e,n){"use strict";var r=(n(46),n(90)),o=(n(24),"_getDOMNodeDidWarn"),i={getDOMNode:function(){return this.constructor[o]=!0,r(this)}};t.exports=i},function(t,e,n){"use strict";function r(t){return null==t?null:1===t.nodeType?t:o.has(t)?i.getNodeFromInstance(t):(null!=t.render&&"function"==typeof t.render?a(!1):void 0,void a(!1))}var o=(n(4),n(46)),i=n(27),a=n(12);n(24);t.exports=r},function(t,e,n){"use strict";function r(){this.reinitializeTransaction()}var o=n(53),i=n(56),a=n(38),u=n(14),l={initialize:u,close:function(){p.isBatchingUpdates=!1}},s={initialize:u,close:o.flushBatchedUpdates.bind(o)},c=[s,l];a(r.prototype,i.Mixin,{getTransactionWrappers:function(){return c}});var f=new r,p={isBatchingUpdates:!1,batchedUpdates:function(t,e,n,r,o,i){var a=p.isBatchingUpdates;p.isBatchingUpdates=!0,a?t(e,n,r,o,i):f.perform(t,null,e,n,r,o,i)}};t.exports=p},function(t,e,n){"use strict";function r(){return this}function o(){var t=this._reactInternalComponent;return!!t}function i(){}function a(t,e){var n=this._reactInternalComponent;n&&(T.enqueueSetPropsInternal(n,t),e&&T.enqueueCallbackInternal(n,e))}function u(t,e){var n=this._reactInternalComponent;n&&(T.enqueueReplacePropsInternal(n,t),e&&T.enqueueCallbackInternal(n,e))}function l(t,e){e&&(null!=e.dangerouslySetInnerHTML&&(null!=e.children?L(!1):void 0,"object"==typeof e.dangerouslySetInnerHTML&&K in e.dangerouslySetInnerHTML?void 0:L(!1)),null!=e.style&&"object"!=typeof e.style?L(!1):void 0)}function s(t,e,n,r){var o=D.findReactContainerForID(t);if(o){var i=o.nodeType===Y?o.ownerDocument:o;q(e,i)}r.getReactMountReady().enqueue(c,{id:t,registrationName:e,listener:n})}function c(){var t=this;M.putListener(t.id,t.registrationName,t.listener)}function f(){var t=this;t._rootNodeID?void 0:L(!1);var e=D.getNode(t._rootNodeID);switch(e?void 0:L(!1),t._tag){case"iframe":t._wrapperState.listeners=[M.trapBubbledEvent(_.topLevelTypes.topLoad,"load",e)];break;case"video":case"audio":t._wrapperState.listeners=[];for(var n in G)G.hasOwnProperty(n)&&t._wrapperState.listeners.push(M.trapBubbledEvent(_.topLevelTypes[n],G[n],e));break;case"img":t._wrapperState.listeners=[M.trapBubbledEvent(_.topLevelTypes.topError,"error",e),M.trapBubbledEvent(_.topLevelTypes.topLoad,"load",e)];break;case"form":t._wrapperState.listeners=[M.trapBubbledEvent(_.topLevelTypes.topReset,"reset",e),M.trapBubbledEvent(_.topLevelTypes.topSubmit,"submit",e)]}}function p(){w.mountReadyWrapper(this)}function h(){S.postUpdateWrapper(this)}function d(t){J.call(Q,t)||($.test(t)?void 0:L(!1),Q[t]=!0)}function v(t,e){return t.indexOf("-")>=0||null!=e.is}function g(t){d(t),this._tag=t.toLowerCase(),this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._rootNodeID=null,this._wrapperState=null,this._topLevelWrapper=null,this._nodeWithLegacyProperties=null}var m=n(93),y=n(95),b=n(22),x=n(21),_=n(29),M=n(28),C=n(25),E=n(103),w=n(104),N=n(108),S=n(111),k=n(112),D=n(27),P=n(113),R=n(17),T=n(52),A=n(38),I=n(42),O=n(20),L=n(12),U=(n(39),n(78)),j=n(18),F=n(19),B=(n(116),n(69),n(24),M.deleteListener),q=M.listenTo,V=M.registrationNameModules,z={string:!0,number:!0},W=U({children:null}),H=U({style:null}),K=U({__html:null}),Y=1,G={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},X={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},Z={listing:!0,pre:!0,textarea:!0},$=(A({menuitem:!0},X),/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/),Q={},J={}.hasOwnProperty;g.displayName="ReactDOMComponent",g.Mixin={construct:function(t){this._currentElement=t},mountComponent:function(t,e,n){this._rootNodeID=t;var r=this._currentElement.props;switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":this._wrapperState={listeners:null},e.getReactMountReady().enqueue(f,this);break;case"button":r=E.getNativeProps(this,r,n);break;case"input":w.mountWrapper(this,r,n),r=w.getNativeProps(this,r,n);break;case"option":N.mountWrapper(this,r,n),r=N.getNativeProps(this,r,n);break;case"select":S.mountWrapper(this,r,n),r=S.getNativeProps(this,r,n),n=S.processChildContext(this,r,n);break;case"textarea":k.mountWrapper(this,r,n),r=k.getNativeProps(this,r,n)}l(this,r);var o;if(e.useCreateElement){var i=n[D.ownerDocumentContextKey],a=i.createElement(this._currentElement.type);x.setAttributeForID(a,this._rootNodeID),D.getID(a),this._updateDOMProperties({},r,e,a),this._createInitialChildren(e,r,n,a),o=a}else{var u=this._createOpenTagMarkupAndPutListeners(e,r),s=this._createContentMarkup(e,r,n);o=!s&&X[this._tag]?u+"/>":u+">"+s+"</"+this._currentElement.type+">"}switch(this._tag){case"input":e.getReactMountReady().enqueue(p,this);case"button":case"select":case"textarea":r.autoFocus&&e.getReactMountReady().enqueue(m.focusDOMComponent,this)}return o},_createOpenTagMarkupAndPutListeners:function(t,e){var n="<"+this._currentElement.type;for(var r in e)if(e.hasOwnProperty(r)){var o=e[r];if(null!=o)if(V.hasOwnProperty(r))o&&s(this._rootNodeID,r,o,t);else{r===H&&(o&&(o=this._previousStyleCopy=A({},e.style)),o=y.createMarkupForStyles(o));var i=null;null!=this._tag&&v(this._tag,e)?r!==W&&(i=x.createMarkupForCustomAttribute(r,o)):i=x.createMarkupForProperty(r,o),i&&(n+=" "+i)}}if(t.renderToStaticMarkup)return n;var a=x.createMarkupForID(this._rootNodeID);return n+" "+a},_createContentMarkup:function(t,e,n){var r="",o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(r=o.__html);else{var i=z[typeof e.children]?e.children:null,a=null!=i?null:e.children;if(null!=i)r=O(i);else if(null!=a){var u=this.mountChildren(a,t,n);r=u.join("")}}return Z[this._tag]&&"\n"===r.charAt(0)?"\n"+r:r},_createInitialChildren:function(t,e,n,r){var o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&j(r,o.__html);else{var i=z[typeof e.children]?e.children:null,a=null!=i?null:e.children;if(null!=i)F(r,i);else if(null!=a)for(var u=this.mountChildren(a,t,n),l=0;l<u.length;l++)r.appendChild(u[l])}},receiveComponent:function(t,e,n){var r=this._currentElement;this._currentElement=t,this.updateComponent(e,r,t,n)},updateComponent:function(t,e,n,r){var o=e.props,i=this._currentElement.props;switch(this._tag){case"button":o=E.getNativeProps(this,o),i=E.getNativeProps(this,i);break;case"input":w.updateWrapper(this),o=w.getNativeProps(this,o),i=w.getNativeProps(this,i);break;case"option":o=N.getNativeProps(this,o),i=N.getNativeProps(this,i);break;case"select":o=S.getNativeProps(this,o),i=S.getNativeProps(this,i);break;case"textarea":k.updateWrapper(this),o=k.getNativeProps(this,o),i=k.getNativeProps(this,i)}l(this,i),this._updateDOMProperties(o,i,t,null),this._updateDOMChildren(o,i,t,r),!I&&this._nodeWithLegacyProperties&&(this._nodeWithLegacyProperties.props=i),"select"===this._tag&&t.getReactMountReady().enqueue(h,this)},_updateDOMProperties:function(t,e,n,r){var o,i,a;for(o in t)if(!e.hasOwnProperty(o)&&t.hasOwnProperty(o))if(o===H){var u=this._previousStyleCopy;for(i in u)u.hasOwnProperty(i)&&(a=a||{},a[i]="");this._previousStyleCopy=null}else V.hasOwnProperty(o)?t[o]&&B(this._rootNodeID,o):(b.properties[o]||b.isCustomAttribute(o))&&(r||(r=D.getNode(this._rootNodeID)),x.deleteValueForProperty(r,o));for(o in e){var l=e[o],c=o===H?this._previousStyleCopy:t[o];if(e.hasOwnProperty(o)&&l!==c)if(o===H)if(l?l=this._previousStyleCopy=A({},l):this._previousStyleCopy=null,c){for(i in c)!c.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(a=a||{},a[i]="");for(i in l)l.hasOwnProperty(i)&&c[i]!==l[i]&&(a=a||{},a[i]=l[i])}else a=l;else V.hasOwnProperty(o)?l?s(this._rootNodeID,o,l,n):c&&B(this._rootNodeID,o):v(this._tag,e)?(r||(r=D.getNode(this._rootNodeID)),o===W&&(l=null),x.setValueForAttribute(r,o,l)):(b.properties[o]||b.isCustomAttribute(o))&&(r||(r=D.getNode(this._rootNodeID)),null!=l?x.setValueForProperty(r,o,l):x.deleteValueForProperty(r,o))}a&&(r||(r=D.getNode(this._rootNodeID)),y.setValueForStyles(r,a))},_updateDOMChildren:function(t,e,n,r){var o=z[typeof t.children]?t.children:null,i=z[typeof e.children]?e.children:null,a=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,u=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,l=null!=o?null:t.children,s=null!=i?null:e.children,c=null!=o||null!=a,f=null!=i||null!=u;null!=l&&null==s?this.updateChildren(null,n,r):c&&!f&&this.updateTextContent(""),null!=i?o!==i&&this.updateTextContent(""+i):null!=u?a!==u&&this.updateMarkup(""+u):null!=s&&this.updateChildren(s,n,r)},unmountComponent:function(){switch(this._tag){case"iframe":case"img":case"form":case"video":case"audio":var t=this._wrapperState.listeners;if(t)for(var e=0;e<t.length;e++)t[e].remove();break;case"input":w.unmountWrapper(this);break;case"html":case"head":case"body":L(!1)}if(this.unmountChildren(),M.deleteAllListeners(this._rootNodeID),C.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null,this._wrapperState=null,this._nodeWithLegacyProperties){var n=this._nodeWithLegacyProperties;n._reactInternalComponent=null,this._nodeWithLegacyProperties=null}},getPublicInstance:function(){if(!this._nodeWithLegacyProperties){var t=D.getNode(this._rootNodeID);t._reactInternalComponent=this,t.getDOMNode=r,t.isMounted=o,t.setState=i,t.replaceState=i,t.forceUpdate=i,t.setProps=a,t.replaceProps=u,t.props=this._currentElement.props,this._nodeWithLegacyProperties=t}return this._nodeWithLegacyProperties}},R.measureMethods(g,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"}),A(g.prototype,g.Mixin,P.Mixin),t.exports=g},function(t,e,n){"use strict";var r=n(27),o=n(90),i=n(94),a={componentDidMount:function(){this.props.autoFocus&&i(o(this))}},u={Mixin:a,focusDOMComponent:function(){i(r.getNode(this._rootNodeID))}};t.exports=u},function(t,e){"use strict";function n(t){try{t.focus()}catch(t){}}t.exports=n},function(t,e,n){"use strict";var r=n(96),o=n(8),i=n(17),a=(n(97),n(99)),u=n(100),l=n(102),s=(n(24),l(function(t){return u(t)})),c=!1,f="cssFloat";if(o.canUseDOM){var p=document.createElement("div").style;try{p.font=""}catch(t){c=!0}void 0===document.documentElement.style.cssFloat&&(f="styleFloat")}var h={createMarkupForStyles:function(t){var e="";for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];null!=r&&(e+=s(n)+":",e+=a(n,r)+";")}return e||null},setValueForStyles:function(t,e){var n=t.style;for(var o in e)if(e.hasOwnProperty(o)){var i=a(o,e[o]);if("float"===o&&(o=f),i)n[o]=i;else{var u=c&&r.shorthandPropertyExpansions[o];if(u)for(var l in u)n[l]="";else n[o]=""}}}};i.measureMethods(h,"CSSPropertyOperations",{setValueForStyles:"setValueForStyles"}),t.exports=h},function(t,e){"use strict";function n(t,e){return t+e.charAt(0).toUpperCase()+e.substring(1)}var r={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},o=["Webkit","ms","Moz","O"];Object.keys(r).forEach(function(t){o.forEach(function(e){r[n(e,t)]=r[t]})});var i={background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}},a={isUnitlessNumber:r,shorthandPropertyExpansions:i};t.exports=a},function(t,e,n){"use strict";function r(t){return o(t.replace(i,"ms-"))}var o=n(98),i=/^-ms-/;t.exports=r},function(t,e){"use strict";function n(t){return t.replace(r,function(t,e){return e.toUpperCase()})}var r=/-(.)/g;t.exports=n},function(t,e,n){"use strict";function r(t,e){var n=null==e||"boolean"==typeof e||""===e;if(n)return"";var r=isNaN(e);return r||0===e||i.hasOwnProperty(t)&&i[t]?""+e:("string"==typeof e&&(e=e.trim()),e+"px")}var o=n(96),i=o.isUnitlessNumber;t.exports=r},function(t,e,n){"use strict";function r(t){return o(t).replace(i,"-ms-")}var o=n(101),i=/^ms-/;t.exports=r},function(t,e){"use strict";function n(t){return t.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;t.exports=n},function(t,e){"use strict";function n(t){var e={};return function(n){return e.hasOwnProperty(n)||(e[n]=t.call(this,n)),e[n]}}t.exports=n},function(t,e){"use strict";var n={onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0},r={getNativeProps:function(t,e,r){if(!e.disabled)return e;var o={};for(var i in e)e.hasOwnProperty(i)&&!n[i]&&(o[i]=e[i]);return o}};t.exports=r},function(t,e,n){"use strict";function r(){this._rootNodeID&&p.updateWrapper(this)}function o(t){var e=this._currentElement.props,n=a.executeOnChange(e,t);l.asap(r,this);var o=e.name;if("radio"===e.type&&null!=o){for(var i=u.getNode(this._rootNodeID),s=i;s.parentNode;)s=s.parentNode;for(var p=s.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),h=0;h<p.length;h++){var d=p[h];if(d!==i&&d.form===i.form){var v=u.getID(d);v?void 0:c(!1);var g=f[v];g?void 0:c(!1),l.asap(r,g)}}}return n}var i=n(26),a=n(105),u=n(27),l=n(53),s=n(38),c=n(12),f={},p={getNativeProps:function(t,e,n){var r=a.getValue(e),o=a.getChecked(e),i=s({},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=r?r:t._wrapperState.initialValue,checked:null!=o?o:t._wrapperState.initialChecked,onChange:t._wrapperState.onChange});return i},mountWrapper:function(t,e){var n=e.defaultValue;t._wrapperState={initialChecked:e.defaultChecked||!1,initialValue:null!=n?n:null,onChange:o.bind(t)}},mountReadyWrapper:function(t){f[t._rootNodeID]=t},unmountWrapper:function(t){delete f[t._rootNodeID]},updateWrapper:function(t){var e=t._currentElement.props,n=e.checked;null!=n&&i.updatePropertyByID(t._rootNodeID,"checked",n||!1);var r=a.getValue(e);null!=r&&i.updatePropertyByID(t._rootNodeID,"value",""+r)}};t.exports=p},function(t,e,n){"use strict";function r(t){null!=t.checkedLink&&null!=t.valueLink?s(!1):void 0}function o(t){r(t),null!=t.value||null!=t.onChange?s(!1):void 0}function i(t){r(t),null!=t.checked||null!=t.onChange?s(!1):void 0}function a(t){if(t){var e=t.getName();if(e)return" Check the render method of `"+e+"`."}return""}var u=n(106),l=n(64),s=n(12),c=(n(24),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),f={value:function(t,e,n){return!t[e]||c[t.type]||t.onChange||t.readOnly||t.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(t,e,n){return!t[e]||t.onChange||t.readOnly||t.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:u.func},p={},h={checkPropTypes:function(t,e,n){for(var r in f){if(f.hasOwnProperty(r))var o=f[r](e,r,t,l.prop);if(o instanceof Error&&!(o.message in p)){p[o.message]=!0;a(n)}}},getValue:function(t){return t.valueLink?(o(t),t.valueLink.value):t.value},getChecked:function(t){return t.checkedLink?(i(t),t.checkedLink.value):t.checked},executeOnChange:function(t,e){return t.valueLink?(o(t),t.valueLink.requestChange(e.target.value)):t.checkedLink?(i(t),t.checkedLink.requestChange(e.target.checked)):t.onChange?t.onChange.call(void 0,e):void 0}};t.exports=h},function(t,e,n){"use strict";function r(t){function e(e,n,r,o,i,a){if(o=o||M,a=a||r,null==n[r]){var u=b[i];return e?new Error("Required "+u+" `"+a+"` was not specified in "+("`"+o+"`.")):null}return t(n,r,o,i,a)}var n=e.bind(null,!1);return n.isRequired=e.bind(null,!0),n}function o(t){function e(e,n,r,o,i){var a=e[n],u=v(a);if(u!==t){var l=b[o],s=g(a);return new Error("Invalid "+l+" `"+i+"` of type "+("`"+s+"` supplied to `"+r+"`, expected ")+("`"+t+"`."))}return null}return r(e)}function i(){return r(x.thatReturns(null))}function a(t){function e(e,n,r,o,i){var a=e[n];if(!Array.isArray(a)){var u=b[o],l=v(a);return new Error("Invalid "+u+" `"+i+"` of type "+("`"+l+"` supplied to `"+r+"`, expected an array."))}for(var s=0;s<a.length;s++){var c=t(a,s,r,o,i+"["+s+"]");if(c instanceof Error)return c}return null}return r(e)}function u(){function t(t,e,n,r,o){if(!y.isValidElement(t[e])){var i=b[r];return new Error("Invalid "+i+" `"+o+"` supplied to "+("`"+n+"`, expected a single ReactElement."))}return null}return r(t)}function l(t){function e(e,n,r,o,i){if(!(e[n]instanceof t)){var a=b[o],u=t.name||M,l=m(e[n]);return new Error("Invalid "+a+" `"+i+"` of type "+("`"+l+"` supplied to `"+r+"`, expected ")+("instance of `"+u+"`."))}return null}return r(e)}function s(t){function e(e,n,r,o,i){for(var a=e[n],u=0;u<t.length;u++)if(a===t[u])return null;var l=b[o],s=JSON.stringify(t);return new Error("Invalid "+l+" `"+i+"` of value `"+a+"` "+("supplied to `"+r+"`, expected one of "+s+"."))}return r(Array.isArray(t)?e:function(){return new Error("Invalid argument supplied to oneOf, expected an instance of array.")})}function c(t){function e(e,n,r,o,i){var a=e[n],u=v(a);if("object"!==u){var l=b[o];return new Error("Invalid "+l+" `"+i+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an object."))}for(var s in a)if(a.hasOwnProperty(s)){var c=t(a,s,r,o,i+"."+s);if(c instanceof Error)return c}return null}return r(e)}function f(t){function e(e,n,r,o,i){for(var a=0;a<t.length;a++){var u=t[a];if(null==u(e,n,r,o,i))return null}var l=b[o];return new Error("Invalid "+l+" `"+i+"` supplied to "+("`"+r+"`."))}return r(Array.isArray(t)?e:function(){return new Error("Invalid argument supplied to oneOfType, expected an instance of array.")})}function p(){function t(t,e,n,r,o){if(!d(t[e])){var i=b[r];return new Error("Invalid "+i+" `"+o+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return r(t)}function h(t){function e(e,n,r,o,i){var a=e[n],u=v(a);if("object"!==u){var l=b[o];return new Error("Invalid "+l+" `"+i+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `object`."))}for(var s in t){var c=t[s];if(c){var f=c(a,s,r,o,i+"."+s);if(f)return f}}return null}return r(e)}function d(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(d);if(null===t||y.isValidElement(t))return!0;var e=_(t);if(!e)return!1;var n,r=e.call(t);if(e!==t.entries){for(;!(n=r.next()).done;)if(!d(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!d(o[1]))return!1}return!0;default:return!1}}function v(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":e}function g(t){var e=v(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function m(t){return t.constructor&&t.constructor.name?t.constructor.name:"<<anonymous>>"}var y=n(41),b=n(65),x=n(14),_=n(107),M="<<anonymous>>",C={array:o("array"),bool:o("boolean"),func:o("function"),number:o("number"),object:o("object"),string:o("string"),any:i(),arrayOf:a,element:u(),instanceOf:l,node:p(),objectOf:c,oneOf:s,oneOfType:f,shape:h};t.exports=C},function(t,e){"use strict";function n(t){var e=t&&(r&&t[r]||t[o]);if("function"==typeof e)return e}var r="function"==typeof Symbol&&Symbol.iterator,o="@@iterator";t.exports=n},function(t,e,n){"use strict";var r=n(109),o=n(111),i=n(38),a=(n(24),o.valueContextKey),u={mountWrapper:function(t,e,n){var r=n[a],o=null;if(null!=r)if(o=!1,Array.isArray(r)){for(var i=0;i<r.length;i++)if(""+r[i]==""+e.value){o=!0;break}}else o=""+r==""+e.value;t._wrapperState={selected:o}},getNativeProps:function(t,e,n){var o=i({selected:void 0,children:void 0},e);null!=t._wrapperState.selected&&(o.selected=t._wrapperState.selected);var a="";return r.forEach(e.children,function(t){null!=t&&("string"!=typeof t&&"number"!=typeof t||(a+=t))}),a&&(o.children=a),o}};t.exports=u},function(t,e,n){"use strict";function r(t){return(""+t).replace(x,"//")}function o(t,e){this.func=t,this.context=e,this.count=0}function i(t,e,n){var r=t.func,o=t.context;r.call(o,e,t.count++)}function a(t,e,n){if(null==t)return t;var r=o.getPooled(e,n);m(t,i,r),o.release(r)}function u(t,e,n,r){this.result=t,this.keyPrefix=e,this.func=n,this.context=r,this.count=0}function l(t,e,n){var o=t.result,i=t.keyPrefix,a=t.func,u=t.context,l=a.call(u,e,t.count++);Array.isArray(l)?s(l,o,n,g.thatReturnsArgument):null!=l&&(v.isValidElement(l)&&(l=v.cloneAndReplaceKey(l,i+(l!==e?r(l.key||"")+"/":"")+n)),o.push(l))}function s(t,e,n,o,i){var a="";null!=n&&(a=r(n)+"/");var s=u.getPooled(e,a,o,i);m(t,l,s),u.release(s)}function c(t,e,n){if(null==t)return t;var r=[];return s(t,r,null,e,n),r}function f(t,e,n){return null}function p(t,e){return m(t,f,null)}function h(t){var e=[];return s(t,e,null,g.thatReturnsArgument),e}var d=n(55),v=n(41),g=n(14),m=n(110),y=d.twoArgumentPooler,b=d.fourArgumentPooler,x=/\/(?!\/)/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},d.addPoolingTo(o,y),u.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},d.addPoolingTo(u,b);var _={forEach:a,map:c,mapIntoWithKeyPrefixInternal:s,count:p,toArray:h};t.exports=_},function(t,e,n){"use strict";function r(t){return v[t]}function o(t,e){return t&&null!=t.key?a(t.key):e.toString(36)}function i(t){return(""+t).replace(g,r)}function a(t){return"$"+i(t)}function u(t,e,n,r){var i=typeof t;if("undefined"!==i&&"boolean"!==i||(t=null),null===t||"string"===i||"number"===i||s.isValidElement(t))return n(r,t,""===e?h+o(t,0):e),1;var l,c,v=0,g=""===e?h:e+d;if(Array.isArray(t))for(var m=0;m<t.length;m++)l=t[m],c=g+o(l,m),v+=u(l,c,n,r);else{var y=f(t);if(y){var b,x=y.call(t);if(y!==t.entries)for(var _=0;!(b=x.next()).done;)l=b.value,c=g+o(l,_++),v+=u(l,c,n,r);else for(;!(b=x.next()).done;){var M=b.value;M&&(l=M[1],c=g+a(M[0])+d+o(l,0),v+=u(l,c,n,r))}}else if("object"===i){String(t);p(!1)}}return v}function l(t,e,n){return null==t?0:u(t,"",e,n)}var s=(n(4),n(41)),c=n(44),f=n(107),p=n(12),h=(n(24),c.SEPARATOR),d=":",v={"=":"=0",".":"=1",":":"=2"},g=/[=.:]/g;t.exports=l},function(t,e,n){"use strict";function r(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var t=this._currentElement.props,e=a.getValue(t);null!=e&&o(this,Boolean(t.multiple),e)}}function o(t,e,n){var r,o,i=u.getNode(t._rootNodeID).options;if(e){for(r={},o=0;o<n.length;o++)r[""+n[o]]=!0;for(o=0;o<i.length;o++){var a=r.hasOwnProperty(i[o].value);i[o].selected!==a&&(i[o].selected=a)}}else{for(r=""+n,o=0;o<i.length;o++)if(i[o].value===r)return void(i[o].selected=!0);i.length&&(i[0].selected=!0)}}function i(t){var e=this._currentElement.props,n=a.executeOnChange(e,t);return this._wrapperState.pendingUpdate=!0,l.asap(r,this),n}var a=n(105),u=n(27),l=n(53),s=n(38),c=(n(24),"__ReactDOMSelect_value$"+Math.random().toString(36).slice(2)),f={valueContextKey:c,getNativeProps:function(t,e,n){return s({},e,{onChange:t._wrapperState.onChange,value:void 0})},mountWrapper:function(t,e){var n=a.getValue(e);t._wrapperState={pendingUpdate:!1,initialValue:null!=n?n:e.defaultValue,onChange:i.bind(t),wasMultiple:Boolean(e.multiple)}},processChildContext:function(t,e,n){var r=s({},n);return r[c]=t._wrapperState.initialValue,r},postUpdateWrapper:function(t){var e=t._currentElement.props;t._wrapperState.initialValue=void 0;var n=t._wrapperState.wasMultiple;t._wrapperState.wasMultiple=Boolean(e.multiple);var r=a.getValue(e);null!=r?(t._wrapperState.pendingUpdate=!1,o(t,Boolean(e.multiple),r)):n!==Boolean(e.multiple)&&(null!=e.defaultValue?o(t,Boolean(e.multiple),e.defaultValue):o(t,Boolean(e.multiple),e.multiple?[]:""))}};t.exports=f},function(t,e,n){"use strict";function r(){this._rootNodeID&&c.updateWrapper(this)}function o(t){var e=this._currentElement.props,n=i.executeOnChange(e,t);return u.asap(r,this),n}var i=n(105),a=n(26),u=n(53),l=n(38),s=n(12),c=(n(24),{getNativeProps:function(t,e,n){null!=e.dangerouslySetInnerHTML?s(!1):void 0;var r=l({},e,{defaultValue:void 0,value:void 0,children:t._wrapperState.initialValue,onChange:t._wrapperState.onChange});return r},mountWrapper:function(t,e){var n=e.defaultValue,r=e.children;null!=r&&(null!=n?s(!1):void 0,Array.isArray(r)&&(r.length<=1?void 0:s(!1),r=r[0]),n=""+r),null==n&&(n="");var a=i.getValue(e);t._wrapperState={initialValue:""+(null!=a?a:n),onChange:o.bind(t)}},updateWrapper:function(t){var e=t._currentElement.props,n=i.getValue(e);null!=n&&a.updatePropertyByID(t._rootNodeID,"value",""+n)}});t.exports=c},function(t,e,n){"use strict";function r(t,e,n){g.push({parentID:t,parentNode:null,type:f.INSERT_MARKUP,markupIndex:m.push(e)-1,content:null,fromIndex:null,toIndex:n})}function o(t,e,n){g.push({
201
- parentID:t,parentNode:null,type:f.MOVE_EXISTING,markupIndex:null,content:null,fromIndex:e,toIndex:n})}function i(t,e){g.push({parentID:t,parentNode:null,type:f.REMOVE_NODE,markupIndex:null,content:null,fromIndex:e,toIndex:null})}function a(t,e){g.push({parentID:t,parentNode:null,type:f.SET_MARKUP,markupIndex:null,content:e,fromIndex:null,toIndex:null})}function u(t,e){g.push({parentID:t,parentNode:null,type:f.TEXT_CONTENT,markupIndex:null,content:e,fromIndex:null,toIndex:null})}function l(){g.length&&(c.processChildrenUpdates(g,m),s())}function s(){g.length=0,m.length=0}var c=n(63),f=n(15),p=(n(4),n(49)),h=n(114),d=n(115),v=0,g=[],m=[],y={Mixin:{_reconcilerInstantiateChildren:function(t,e,n){return h.instantiateChildren(t,e,n)},_reconcilerUpdateChildren:function(t,e,n,r){var o;return o=d(e),h.updateChildren(t,o,n,r)},mountChildren:function(t,e,n){var r=this._reconcilerInstantiateChildren(t,e,n);this._renderedChildren=r;var o=[],i=0;for(var a in r)if(r.hasOwnProperty(a)){var u=r[a],l=this._rootNodeID+a,s=p.mountComponent(u,l,e,n);u._mountIndex=i++,o.push(s)}return o},updateTextContent:function(t){v++;var e=!0;try{var n=this._renderedChildren;h.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChild(n[r]);this.setTextContent(t),e=!1}finally{v--,v||(e?s():l())}},updateMarkup:function(t){v++;var e=!0;try{var n=this._renderedChildren;h.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChildByName(n[r],r);this.setMarkup(t),e=!1}finally{v--,v||(e?s():l())}},updateChildren:function(t,e,n){v++;var r=!0;try{this._updateChildren(t,e,n),r=!1}finally{v--,v||(r?s():l())}},_updateChildren:function(t,e,n){var r=this._renderedChildren,o=this._reconcilerUpdateChildren(r,t,e,n);if(this._renderedChildren=o,o||r){var i,a=0,u=0;for(i in o)if(o.hasOwnProperty(i)){var l=r&&r[i],s=o[i];l===s?(this.moveChild(l,u,a),a=Math.max(l._mountIndex,a),l._mountIndex=u):(l&&(a=Math.max(l._mountIndex,a),this._unmountChild(l)),this._mountChildByNameAtIndex(s,i,u,e,n)),u++}for(i in r)!r.hasOwnProperty(i)||o&&o.hasOwnProperty(i)||this._unmountChild(r[i])}},unmountChildren:function(){var t=this._renderedChildren;h.unmountChildren(t),this._renderedChildren=null},moveChild:function(t,e,n){t._mountIndex<n&&o(this._rootNodeID,t._mountIndex,e)},createChild:function(t,e){r(this._rootNodeID,e,t._mountIndex)},removeChild:function(t){i(this._rootNodeID,t._mountIndex)},setTextContent:function(t){u(this._rootNodeID,t)},setMarkup:function(t){a(this._rootNodeID,t)},_mountChildByNameAtIndex:function(t,e,n,r,o){var i=this._rootNodeID+e,a=p.mountComponent(t,i,r,o);t._mountIndex=n,this.createChild(t,a)},_unmountChild:function(t){this.removeChild(t),t._mountIndex=null}}};t.exports=y},function(t,e,n){"use strict";function r(t,e,n){var r=void 0===t[n];null!=e&&r&&(t[n]=i(e,null))}var o=n(49),i=n(61),a=n(66),u=n(110),l=(n(24),{instantiateChildren:function(t,e,n){if(null==t)return null;var o={};return u(t,r,o),o},updateChildren:function(t,e,n,r){if(!e&&!t)return null;var u;for(u in e)if(e.hasOwnProperty(u)){var l=t&&t[u],s=l&&l._currentElement,c=e[u];if(null!=l&&a(s,c))o.receiveComponent(l,c,n,r),e[u]=l;else{l&&o.unmountComponent(l,u);var f=i(c,null);e[u]=f}}for(u in t)!t.hasOwnProperty(u)||e&&e.hasOwnProperty(u)||o.unmountComponent(t[u]);return e},unmountChildren:function(t){for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];o.unmountComponent(n)}}});t.exports=l},function(t,e,n){"use strict";function r(t,e,n){var r=t,o=void 0===r[n];o&&null!=e&&(r[n]=e)}function o(t){if(null==t)return t;var e={};return i(t,r,e),e}var i=n(110);n(24);t.exports=o},function(t,e){"use strict";function n(t,e){if(t===e)return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),o=Object.keys(e);if(n.length!==o.length)return!1;for(var i=r.bind(e),a=0;a<n.length;a++)if(!i(n[a])||t[n[a]]!==e[n[a]])return!1;return!0}var r=Object.prototype.hasOwnProperty;t.exports=n},function(t,e,n){"use strict";function r(t){var e=p.getID(t),n=f.getReactRootIDFromNodeID(e),r=p.findReactContainerForID(n),o=p.getFirstReactDOM(r);return o}function o(t,e){this.topLevelType=t,this.nativeEvent=e,this.ancestors=[]}function i(t){a(t)}function a(t){for(var e=p.getFirstReactDOM(v(t.nativeEvent))||window,n=e;n;)t.ancestors.push(n),n=r(n);for(var o=0;o<t.ancestors.length;o++){e=t.ancestors[o];var i=p.getID(e)||"";m._handleTopLevel(t.topLevelType,e,i,t.nativeEvent,v(t.nativeEvent))}}function u(t){var e=g(window);t(e)}var l=n(118),s=n(8),c=n(55),f=n(44),p=n(27),h=n(53),d=n(38),v=n(80),g=n(119);d(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),c.addPoolingTo(o,c.twoArgumentPooler);var m={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:s.canUseDOM?window:null,setHandleTopLevel:function(t){m._handleTopLevel=t},setEnabled:function(t){m._enabled=!!t},isEnabled:function(){return m._enabled},trapBubbledEvent:function(t,e,n){var r=n;return r?l.listen(r,e,m.dispatchEvent.bind(null,t)):null},trapCapturedEvent:function(t,e,n){var r=n;return r?l.capture(r,e,m.dispatchEvent.bind(null,t)):null},monitorScrollValue:function(t){var e=u.bind(null,t);l.listen(window,"scroll",e)},dispatchEvent:function(t,e){if(m._enabled){var n=o.getPooled(t,e);try{h.batchedUpdates(i,n)}finally{o.release(n)}}}};t.exports=m},function(t,e,n){"use strict";var r=n(14),o={listen:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}}):t.attachEvent?(t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}):void 0},capture:function(t,e,n){return t.addEventListener?(t.addEventListener(e,n,!0),{remove:function(){t.removeEventListener(e,n,!0)}}):{remove:r}},registerDefault:function(){}};t.exports=o},function(t,e){"use strict";function n(t){return t===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}t.exports=n},function(t,e,n){"use strict";var r=n(22),o=n(30),i=n(63),a=n(121),u=n(67),l=n(28),s=n(68),c=n(17),f=n(45),p=n(53),h={Component:i.injection,Class:a.injection,DOMProperty:r.injection,EmptyComponent:u.injection,EventPluginHub:o.injection,EventEmitter:l.injection,NativeComponent:s.injection,Perf:c.injection,RootIndex:f.injection,Updates:p.injection};t.exports=h},function(t,e,n){"use strict";function r(t,e){var n=M.hasOwnProperty(e)?M[e]:null;E.hasOwnProperty(e)&&(n!==x.OVERRIDE_BASE?g(!1):void 0),t.hasOwnProperty(e)&&(n!==x.DEFINE_MANY&&n!==x.DEFINE_MANY_MERGED?g(!1):void 0)}function o(t,e){if(e){"function"==typeof e?g(!1):void 0,p.isValidElement(e)?g(!1):void 0;var n=t.prototype;e.hasOwnProperty(b)&&C.mixins(t,e.mixins);for(var o in e)if(e.hasOwnProperty(o)&&o!==b){var i=e[o];if(r(n,o),C.hasOwnProperty(o))C[o](t,i);else{var a=M.hasOwnProperty(o),s=n.hasOwnProperty(o),c="function"==typeof i,f=c&&!a&&!s&&e.autobind!==!1;if(f)n.__reactAutoBindMap||(n.__reactAutoBindMap={}),n.__reactAutoBindMap[o]=i,n[o]=i;else if(s){var h=M[o];!a||h!==x.DEFINE_MANY_MERGED&&h!==x.DEFINE_MANY?g(!1):void 0,h===x.DEFINE_MANY_MERGED?n[o]=u(n[o],i):h===x.DEFINE_MANY&&(n[o]=l(n[o],i))}else n[o]=i}}}}function i(t,e){if(e)for(var n in e){var r=e[n];if(e.hasOwnProperty(n)){var o=n in C;o?g(!1):void 0;var i=n in t;i?g(!1):void 0,t[n]=r}}}function a(t,e){t&&e&&"object"==typeof t&&"object"==typeof e?void 0:g(!1);for(var n in e)e.hasOwnProperty(n)&&(void 0!==t[n]?g(!1):void 0,t[n]=e[n]);return t}function u(t,e){return function(){var n=t.apply(this,arguments),r=e.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return a(o,n),a(o,r),o}}function l(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function s(t,e){var n=e.bind(t);return n}function c(t){for(var e in t.__reactAutoBindMap)if(t.__reactAutoBindMap.hasOwnProperty(e)){var n=t.__reactAutoBindMap[e];t[e]=s(t,n)}}var f=n(122),p=n(41),h=(n(64),n(65),n(123)),d=n(38),v=n(57),g=n(12),m=n(16),y=n(78),b=(n(24),y({mixins:null})),x=m({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),_=[],M={mixins:x.DEFINE_MANY,statics:x.DEFINE_MANY,propTypes:x.DEFINE_MANY,contextTypes:x.DEFINE_MANY,childContextTypes:x.DEFINE_MANY,getDefaultProps:x.DEFINE_MANY_MERGED,getInitialState:x.DEFINE_MANY_MERGED,getChildContext:x.DEFINE_MANY_MERGED,render:x.DEFINE_ONCE,componentWillMount:x.DEFINE_MANY,componentDidMount:x.DEFINE_MANY,componentWillReceiveProps:x.DEFINE_MANY,shouldComponentUpdate:x.DEFINE_ONCE,componentWillUpdate:x.DEFINE_MANY,componentDidUpdate:x.DEFINE_MANY,componentWillUnmount:x.DEFINE_MANY,updateComponent:x.OVERRIDE_BASE},C={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var n=0;n<e.length;n++)o(t,e[n])},childContextTypes:function(t,e){t.childContextTypes=d({},t.childContextTypes,e)},contextTypes:function(t,e){t.contextTypes=d({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=u(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,e){t.propTypes=d({},t.propTypes,e)},statics:function(t,e){i(t,e)},autobind:function(){}},E={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t),e&&this.updater.enqueueCallback(this,e)},isMounted:function(){return this.updater.isMounted(this)},setProps:function(t,e){this.updater.enqueueSetProps(this,t),e&&this.updater.enqueueCallback(this,e)},replaceProps:function(t,e){this.updater.enqueueReplaceProps(this,t),e&&this.updater.enqueueCallback(this,e)}},w=function(){};d(w.prototype,f.prototype,E);var N={createClass:function(t){var e=function(t,e,n){this.__reactAutoBindMap&&c(this),this.props=t,this.context=e,this.refs=v,this.updater=n||h,this.state=null;var r=this.getInitialState?this.getInitialState():null;"object"!=typeof r||Array.isArray(r)?g(!1):void 0,this.state=r};e.prototype=new w,e.prototype.constructor=e,_.forEach(o.bind(null,e)),o(e,t),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),e.prototype.render?void 0:g(!1);for(var n in M)e.prototype[n]||(e.prototype[n]=null);return e},injection:{injectMixin:function(t){_.push(t)}}};t.exports=N},function(t,e,n){"use strict";function r(t,e,n){this.props=t,this.context=e,this.refs=i,this.updater=n||o}var o=n(123),i=(n(42),n(57)),a=n(12);n(24);r.prototype.isReactComponent={},r.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t?a(!1):void 0,this.updater.enqueueSetState(this,t),e&&this.updater.enqueueCallback(this,e)},r.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this),t&&this.updater.enqueueCallback(this,t)};t.exports=r},function(t,e,n){"use strict";function r(t,e){}var o=(n(24),{isMounted:function(t){return!1},enqueueCallback:function(t,e){},enqueueForceUpdate:function(t){r(t,"forceUpdate")},enqueueReplaceState:function(t,e){r(t,"replaceState")},enqueueSetState:function(t,e){r(t,"setState")},enqueueSetProps:function(t,e){r(t,"setProps")},enqueueReplaceProps:function(t,e){r(t,"replaceProps")}});t.exports=o},function(t,e,n){"use strict";function r(t){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=o.getPooled(null),this.useCreateElement=!t&&u.useCreateElement}var o=n(54),i=n(55),a=n(28),u=n(40),l=n(125),s=n(56),c=n(38),f={initialize:l.getSelectionInformation,close:l.restoreSelection},p={initialize:function(){var t=a.isEnabled();return a.setEnabled(!1),t},close:function(t){a.setEnabled(t)}},h={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},d=[f,p,h],v={getTransactionWrappers:function(){return d},getReactMountReady:function(){return this.reactMountReady},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null}};c(r.prototype,s.Mixin,v),i.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";function r(t){return i(document.documentElement,t)}var o=n(126),i=n(58),a=n(94),u=n(128),l={hasSelectionCapabilities:function(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&"text"===t.type||"textarea"===e||"true"===t.contentEditable)},getSelectionInformation:function(){var t=u();return{focusedElem:t,selectionRange:l.hasSelectionCapabilities(t)?l.getSelection(t):null}},restoreSelection:function(t){var e=u(),n=t.focusedElem,o=t.selectionRange;e!==n&&r(n)&&(l.hasSelectionCapabilities(n)&&l.setSelection(n,o),a(n))},getSelection:function(t){var e;if("selectionStart"in t)e={start:t.selectionStart,end:t.selectionEnd};else if(document.selection&&t.nodeName&&"input"===t.nodeName.toLowerCase()){var n=document.selection.createRange();n.parentElement()===t&&(e={start:-n.moveStart("character",-t.value.length),end:-n.moveEnd("character",-t.value.length)})}else e=o.getOffsets(t);return e||{start:0,end:0}},setSelection:function(t,e){var n=e.start,r=e.end;if("undefined"==typeof r&&(r=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(r,t.value.length);else if(document.selection&&t.nodeName&&"input"===t.nodeName.toLowerCase()){var i=t.createTextRange();i.collapse(!0),i.moveStart("character",n),i.moveEnd("character",r-n),i.select()}else o.setOffsets(t,e)}};t.exports=l},function(t,e,n){"use strict";function r(t,e,n,r){return t===n&&e===r}function o(t){var e=document.selection,n=e.createRange(),r=n.text.length,o=n.duplicate();o.moveToElementText(t),o.setEndPoint("EndToStart",n);var i=o.text.length,a=i+r;return{start:i,end:a}}function i(t){var e=window.getSelection&&window.getSelection();if(!e||0===e.rangeCount)return null;var n=e.anchorNode,o=e.anchorOffset,i=e.focusNode,a=e.focusOffset,u=e.getRangeAt(0);try{u.startContainer.nodeType,u.endContainer.nodeType}catch(t){return null}var l=r(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset),s=l?0:u.toString().length,c=u.cloneRange();c.selectNodeContents(t),c.setEnd(u.startContainer,u.startOffset);var f=r(c.startContainer,c.startOffset,c.endContainer,c.endOffset),p=f?0:c.toString().length,h=p+s,d=document.createRange();d.setStart(n,o),d.setEnd(i,a);var v=d.collapsed;return{start:v?h:p,end:v?p:h}}function a(t,e){var n,r,o=document.selection.createRange().duplicate();"undefined"==typeof e.end?(n=e.start,r=n):e.start>e.end?(n=e.end,r=e.start):(n=e.start,r=e.end),o.moveToElementText(t),o.moveStart("character",n),o.setEndPoint("EndToStart",o),o.moveEnd("character",r-n),o.select()}function u(t,e){if(window.getSelection){var n=window.getSelection(),r=t[c()].length,o=Math.min(e.start,r),i="undefined"==typeof e.end?o:Math.min(e.end,r);if(!n.extend&&o>i){var a=i;i=o,o=a}var u=s(t,o),l=s(t,i);if(u&&l){var f=document.createRange();f.setStart(u.node,u.offset),n.removeAllRanges(),o>i?(n.addRange(f),n.extend(l.node,l.offset)):(f.setEnd(l.node,l.offset),n.addRange(f))}}}var l=n(8),s=n(127),c=n(74),f=l.canUseDOM&&"selection"in document&&!("getSelection"in window),p={getOffsets:f?o:i,setOffsets:f?a:u};t.exports=p},function(t,e){"use strict";function n(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function r(t){for(;t;){if(t.nextSibling)return t.nextSibling;t=t.parentNode}}function o(t,e){for(var o=n(t),i=0,a=0;o;){if(3===o.nodeType){if(a=i+o.textContent.length,i<=e&&a>=e)return{node:o,offset:e-i};i=a}o=n(r(o))}}t.exports=o},function(t,e){"use strict";function n(){if("undefined"==typeof document)return null;try{return document.activeElement||document.body}catch(t){return document.body}}t.exports=n},function(t,e,n){"use strict";function r(t){if("selectionStart"in t&&l.hasSelectionCapabilities(t))return{start:t.selectionStart,end:t.selectionEnd};if(window.getSelection){var e=window.getSelection();return{anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function o(t,e){if(x||null==m||m!==c())return null;var n=r(m);if(!b||!h(b,n)){b=n;var o=s.getPooled(g.select,y,t,e);return o.type="select",o.target=m,a.accumulateTwoPhaseDispatches(o),o}return null}var i=n(29),a=n(72),u=n(8),l=n(125),s=n(76),c=n(128),f=n(81),p=n(78),h=n(116),d=i.topLevelTypes,v=u.canUseDOM&&"documentMode"in document&&document.documentMode<=11,g={select:{phasedRegistrationNames:{bubbled:p({onSelect:null}),captured:p({onSelectCapture:null})},dependencies:[d.topBlur,d.topContextMenu,d.topFocus,d.topKeyDown,d.topMouseDown,d.topMouseUp,d.topSelectionChange]}},m=null,y=null,b=null,x=!1,_=!1,M=p({onSelect:null}),C={eventTypes:g,extractEvents:function(t,e,n,r,i){if(!_)return null;switch(t){case d.topFocus:(f(e)||"true"===e.contentEditable)&&(m=e,y=n,b=null);break;case d.topBlur:m=null,y=null,b=null;break;case d.topMouseDown:x=!0;break;case d.topContextMenu:case d.topMouseUp:return x=!1,o(r,i);case d.topSelectionChange:if(v)break;case d.topKeyDown:case d.topKeyUp:return o(r,i)}return null},didPutListener:function(t,e,n){e===M&&(_=!0)}};t.exports=C},function(t,e){"use strict";var n=Math.pow(2,53),r={createReactRootIndex:function(){return Math.ceil(Math.random()*n)}};t.exports=r},function(t,e,n){"use strict";var r=n(29),o=n(118),i=n(72),a=n(27),u=n(132),l=n(76),s=n(133),c=n(134),f=n(85),p=n(137),h=n(138),d=n(86),v=n(139),g=n(14),m=n(135),y=n(12),b=n(78),x=r.topLevelTypes,_={abort:{phasedRegistrationNames:{bubbled:b({onAbort:!0}),captured:b({onAbortCapture:!0})}},blur:{phasedRegistrationNames:{bubbled:b({onBlur:!0}),captured:b({onBlurCapture:!0})}},canPlay:{phasedRegistrationNames:{bubbled:b({onCanPlay:!0}),captured:b({onCanPlayCapture:!0})}},canPlayThrough:{phasedRegistrationNames:{bubbled:b({onCanPlayThrough:!0}),captured:b({onCanPlayThroughCapture:!0})}},click:{phasedRegistrationNames:{bubbled:b({onClick:!0}),captured:b({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:b({onContextMenu:!0}),captured:b({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:b({onCopy:!0}),captured:b({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:b({onCut:!0}),captured:b({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:b({onDoubleClick:!0}),captured:b({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:b({onDrag:!0}),captured:b({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:b({onDragEnd:!0}),captured:b({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:b({onDragEnter:!0}),captured:b({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:b({onDragExit:!0}),captured:b({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:b({onDragLeave:!0}),captured:b({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:b({onDragOver:!0}),captured:b({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:b({onDragStart:!0}),captured:b({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:b({onDrop:!0}),captured:b({onDropCapture:!0})}},durationChange:{phasedRegistrationNames:{bubbled:b({onDurationChange:!0}),captured:b({onDurationChangeCapture:!0})}},emptied:{phasedRegistrationNames:{bubbled:b({onEmptied:!0}),captured:b({onEmptiedCapture:!0})}},encrypted:{phasedRegistrationNames:{bubbled:b({onEncrypted:!0}),captured:b({onEncryptedCapture:!0})}},ended:{phasedRegistrationNames:{bubbled:b({onEnded:!0}),captured:b({onEndedCapture:!0})}},error:{phasedRegistrationNames:{bubbled:b({onError:!0}),captured:b({onErrorCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:b({onFocus:!0}),captured:b({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:b({onInput:!0}),captured:b({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:b({onKeyDown:!0}),captured:b({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:b({onKeyPress:!0}),captured:b({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:b({onKeyUp:!0}),captured:b({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:b({onLoad:!0}),captured:b({onLoadCapture:!0})}},loadedData:{phasedRegistrationNames:{bubbled:b({onLoadedData:!0}),captured:b({onLoadedDataCapture:!0})}},loadedMetadata:{phasedRegistrationNames:{bubbled:b({onLoadedMetadata:!0}),captured:b({onLoadedMetadataCapture:!0})}},loadStart:{phasedRegistrationNames:{bubbled:b({onLoadStart:!0}),captured:b({onLoadStartCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:b({onMouseDown:!0}),captured:b({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:b({onMouseMove:!0}),captured:b({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:b({onMouseOut:!0}),captured:b({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:b({onMouseOver:!0}),captured:b({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:b({onMouseUp:!0}),captured:b({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:b({onPaste:!0}),captured:b({onPasteCapture:!0})}},pause:{phasedRegistrationNames:{bubbled:b({onPause:!0}),captured:b({onPauseCapture:!0})}},play:{phasedRegistrationNames:{bubbled:b({onPlay:!0}),captured:b({onPlayCapture:!0})}},playing:{phasedRegistrationNames:{bubbled:b({onPlaying:!0}),captured:b({onPlayingCapture:!0})}},progress:{phasedRegistrationNames:{bubbled:b({onProgress:!0}),captured:b({onProgressCapture:!0})}},rateChange:{phasedRegistrationNames:{bubbled:b({onRateChange:!0}),captured:b({onRateChangeCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:b({onReset:!0}),captured:b({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:b({onScroll:!0}),captured:b({onScrollCapture:!0})}},seeked:{phasedRegistrationNames:{bubbled:b({onSeeked:!0}),captured:b({onSeekedCapture:!0})}},seeking:{phasedRegistrationNames:{bubbled:b({onSeeking:!0}),captured:b({onSeekingCapture:!0})}},stalled:{phasedRegistrationNames:{bubbled:b({onStalled:!0}),captured:b({onStalledCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:b({onSubmit:!0}),captured:b({onSubmitCapture:!0})}},suspend:{phasedRegistrationNames:{bubbled:b({onSuspend:!0}),captured:b({onSuspendCapture:!0})}},timeUpdate:{phasedRegistrationNames:{bubbled:b({onTimeUpdate:!0}),captured:b({onTimeUpdateCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:b({onTouchCancel:!0}),captured:b({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:b({onTouchEnd:!0}),captured:b({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:b({onTouchMove:!0}),captured:b({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:b({onTouchStart:!0}),captured:b({onTouchStartCapture:!0})}},volumeChange:{phasedRegistrationNames:{bubbled:b({onVolumeChange:!0}),captured:b({onVolumeChangeCapture:!0})}},waiting:{phasedRegistrationNames:{bubbled:b({onWaiting:!0}),captured:b({onWaitingCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:b({onWheel:!0}),captured:b({onWheelCapture:!0})}}},M={topAbort:_.abort,topBlur:_.blur,topCanPlay:_.canPlay,topCanPlayThrough:_.canPlayThrough,topClick:_.click,topContextMenu:_.contextMenu,topCopy:_.copy,topCut:_.cut,topDoubleClick:_.doubleClick,topDrag:_.drag,topDragEnd:_.dragEnd,topDragEnter:_.dragEnter,topDragExit:_.dragExit,topDragLeave:_.dragLeave,topDragOver:_.dragOver,topDragStart:_.dragStart,topDrop:_.drop,topDurationChange:_.durationChange,topEmptied:_.emptied,topEncrypted:_.encrypted,topEnded:_.ended,topError:_.error,topFocus:_.focus,topInput:_.input,topKeyDown:_.keyDown,topKeyPress:_.keyPress,topKeyUp:_.keyUp,topLoad:_.load,topLoadedData:_.loadedData,topLoadedMetadata:_.loadedMetadata,topLoadStart:_.loadStart,topMouseDown:_.mouseDown,topMouseMove:_.mouseMove,topMouseOut:_.mouseOut,topMouseOver:_.mouseOver,topMouseUp:_.mouseUp,topPaste:_.paste,topPause:_.pause,topPlay:_.play,topPlaying:_.playing,topProgress:_.progress,topRateChange:_.rateChange,topReset:_.reset,topScroll:_.scroll,topSeeked:_.seeked,topSeeking:_.seeking,topStalled:_.stalled,topSubmit:_.submit,topSuspend:_.suspend,topTimeUpdate:_.timeUpdate,topTouchCancel:_.touchCancel,topTouchEnd:_.touchEnd,topTouchMove:_.touchMove,topTouchStart:_.touchStart,topVolumeChange:_.volumeChange,topWaiting:_.waiting,topWheel:_.wheel};for(var C in M)M[C].dependencies=[C];var E=b({onClick:null}),w={},N={eventTypes:_,extractEvents:function(t,e,n,r,o){var a=M[t];if(!a)return null;var g;switch(t){case x.topAbort:case x.topCanPlay:case x.topCanPlayThrough:case x.topDurationChange:case x.topEmptied:case x.topEncrypted:case x.topEnded:case x.topError:case x.topInput:case x.topLoad:case x.topLoadedData:case x.topLoadedMetadata:case x.topLoadStart:case x.topPause:case x.topPlay:case x.topPlaying:case x.topProgress:case x.topRateChange:case x.topReset:case x.topSeeked:case x.topSeeking:case x.topStalled:case x.topSubmit:case x.topSuspend:case x.topTimeUpdate:case x.topVolumeChange:case x.topWaiting:g=l;break;case x.topKeyPress:if(0===m(r))return null;case x.topKeyDown:case x.topKeyUp:g=c;break;case x.topBlur:case x.topFocus:g=s;break;case x.topClick:if(2===r.button)return null;case x.topContextMenu:case x.topDoubleClick:case x.topMouseDown:case x.topMouseMove:case x.topMouseOut:case x.topMouseOver:case x.topMouseUp:g=f;break;case x.topDrag:case x.topDragEnd:case x.topDragEnter:case x.topDragExit:case x.topDragLeave:case x.topDragOver:case x.topDragStart:case x.topDrop:g=p;break;case x.topTouchCancel:case x.topTouchEnd:case x.topTouchMove:case x.topTouchStart:g=h;break;case x.topScroll:g=d;break;case x.topWheel:g=v;break;case x.topCopy:case x.topCut:case x.topPaste:g=u}g?void 0:y(!1);var b=g.getPooled(a,n,r,o);return i.accumulateTwoPhaseDispatches(b),b},didPutListener:function(t,e,n){if(e===E){var r=a.getNode(t);w[t]||(w[t]=o.listen(r,"click",g))}},willDeleteListener:function(t,e){e===E&&(w[t].remove(),delete w[t])}};t.exports=N},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(76),i={clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(86),i={relatedTarget:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(86),i=n(135),a=n(136),u=n(87),l={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:u,charCode:function(t){return"keypress"===t.type?i(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?i(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}};o.augmentClass(r,l),t.exports=r},function(t,e){"use strict";function n(t){var e,n=t.keyCode;return"charCode"in t?(e=t.charCode,0===e&&13===n&&(e=13)):e=n,e>=32||13===e?e:0}t.exports=n},function(t,e,n){"use strict";function r(t){if(t.key){var e=i[t.key]||t.key;if("Unidentified"!==e)return e}if("keypress"===t.type){var n=o(t);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===t.type||"keyup"===t.type?a[t.keyCode]||"Unidentified":""}var o=n(135),i={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(85),i={dataTransfer:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(86),i=n(87),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i};o.augmentClass(r,a),t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r){o.call(this,t,e,n,r)}var o=n(85),i={deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(r,i),t.exports=r},function(t,e,n){"use strict";var r=n(22),o=r.injection.MUST_USE_ATTRIBUTE,i={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},a={Properties:{clipPath:o,cx:o,cy:o,d:o,dx:o,dy:o,fill:o,fillOpacity:o,fontFamily:o,fontSize:o,fx:o,fy:o,gradientTransform:o,gradientUnits:o,markerEnd:o,markerMid:o,markerStart:o,offset:o,opacity:o,patternContentUnits:o,patternUnits:o,points:o,preserveAspectRatio:o,r:o,rx:o,ry:o,spreadMethod:o,stopColor:o,stopOpacity:o,stroke:o,strokeDasharray:o,strokeLinecap:o,strokeOpacity:o,strokeWidth:o,textAnchor:o,transform:o,version:o,viewBox:o,x1:o,x2:o,x:o,xlinkActuate:o,xlinkArcrole:o,xlinkHref:o,xlinkRole:o,xlinkShow:o,xlinkTitle:o,xlinkType:o,xmlBase:o,xmlLang:o,xmlSpace:o,y1:o,y2:o,y:o},DOMAttributeNamespaces:{xlinkActuate:i.xlink,xlinkArcrole:i.xlink,xlinkHref:i.xlink,xlinkRole:i.xlink,xlinkShow:i.xlink,xlinkTitle:i.xlink,xlinkType:i.xlink,xmlBase:i.xml,xmlLang:i.xml,xmlSpace:i.xml},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space"}};t.exports=a},function(t,e){"use strict";t.exports="0.14.8"},function(t,e,n){"use strict";var r=n(27);t.exports=r.renderSubtreeIntoContainer},function(t,e,n){"use strict";var r=n(70),o=n(144),i=n(141);r.inject();var a={renderToString:o.renderToString,renderToStaticMarkup:o.renderToStaticMarkup,version:i};t.exports=a},function(t,e,n){"use strict";function r(t){a.isValidElement(t)?void 0:d(!1);var e;try{f.injection.injectBatchingStrategy(s);var n=u.createReactRootID();return e=c.getPooled(!1),e.perform(function(){var r=h(t,null),o=r.mountComponent(n,e,p);return l.addChecksumToMarkup(o)},null)}finally{c.release(e),f.injection.injectBatchingStrategy(i)}}function o(t){a.isValidElement(t)?void 0:d(!1);var e;try{f.injection.injectBatchingStrategy(s);var n=u.createReactRootID();return e=c.getPooled(!0),e.perform(function(){var r=h(t,null);return r.mountComponent(n,e,p)},null)}finally{c.release(e),f.injection.injectBatchingStrategy(i)}}var i=n(91),a=n(41),u=n(44),l=n(47),s=n(145),c=n(146),f=n(53),p=n(57),h=n(61),d=n(12);t.exports={renderToString:r,renderToStaticMarkup:o}},function(t,e){"use strict";var n={isBatchingUpdates:!1,batchedUpdates:function(t){}};t.exports=n},function(t,e,n){"use strict";function r(t){this.reinitializeTransaction(),this.renderToStaticMarkup=t,this.reactMountReady=i.getPooled(null),this.useCreateElement=!1}var o=n(55),i=n(54),a=n(56),u=n(38),l=n(14),s={initialize:function(){this.reactMountReady.reset()},close:l},c=[s],f={getTransactionWrappers:function(){return c},getReactMountReady:function(){return this.reactMountReady},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null}};u(r.prototype,a.Mixin,f),o.addPoolingTo(r),t.exports=r},function(t,e,n){"use strict";var r=n(109),o=n(122),i=n(121),a=n(148),u=n(41),l=(n(149),n(106)),s=n(141),c=n(38),f=n(151),p=u.createElement,h=u.createFactory,d=u.cloneElement,v={Children:{map:r.map,forEach:r.forEach,count:r.count,toArray:r.toArray,only:f},Component:o,createElement:p,cloneElement:d,isValidElement:u.isValidElement,
202
- PropTypes:l,createClass:i.createClass,createFactory:h,createMixin:function(t){return t},DOM:a,version:s,__spread:c};t.exports=v},function(t,e,n){"use strict";function r(t){return o.createFactory(t)}var o=n(41),i=(n(149),n(150)),a=i({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hgroup:"hgroup",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul",var:"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",image:"image",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},r);t.exports=a},function(t,e,n){"use strict";function r(){if(f.current){var t=f.current.getName();if(t)return" Check the render method of `"+t+"`."}return""}function o(t,e){if(t._store&&!t._store.validated&&null==t.key){t._store.validated=!0;i("uniqueKey",t,e)}}function i(t,e,n){var o=r();if(!o){var i="string"==typeof n?n:n.displayName||n.name;i&&(o=" Check the top-level render call using <"+i+">.")}var a=d[t]||(d[t]={});if(a[o])return null;a[o]=!0;var u={parentOrOwner:o,url:" See https://fb.me/react-warning-keys for more information.",childOwner:null};return e&&e._owner&&e._owner!==f.current&&(u.childOwner=" It was passed a child from "+e._owner.getName()+"."),u}function a(t,e){if("object"==typeof t)if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];s.isValidElement(r)&&o(r,e)}else if(s.isValidElement(t))t._store&&(t._store.validated=!0);else if(t){var i=p(t);if(i&&i!==t.entries)for(var a,u=i.call(t);!(a=u.next()).done;)s.isValidElement(a.value)&&o(a.value,e)}}function u(t,e,n,o){for(var i in e)if(e.hasOwnProperty(i)){var a;try{"function"!=typeof e[i]?h(!1):void 0,a=e[i](n,i,t,o)}catch(t){a=t}if(a instanceof Error&&!(a.message in v)){v[a.message]=!0;r()}}}function l(t){var e=t.type;if("function"==typeof e){var n=e.displayName||e.name;e.propTypes&&u(n,e.propTypes,t.props,c.prop),"function"==typeof e.getDefaultProps}}var s=n(41),c=n(64),f=(n(65),n(4)),p=(n(42),n(107)),h=n(12),d=(n(24),{}),v={},g={createElement:function(t,e,n){var r="string"==typeof t||"function"==typeof t,o=s.createElement.apply(this,arguments);if(null==o)return o;if(r)for(var i=2;i<arguments.length;i++)a(arguments[i],t);return l(o),o},createFactory:function(t){var e=g.createElement.bind(null,t);return e.type=t,e},cloneElement:function(t,e,n){for(var r=s.cloneElement.apply(this,arguments),o=2;o<arguments.length;o++)a(arguments[o],r.type);return l(r),r}};t.exports=g},function(t,e){"use strict";function n(t,e,n){if(!t)return null;var o={};for(var i in t)r.call(t,i)&&(o[i]=e.call(n,t[i],i,t));return o}var r=Object.prototype.hasOwnProperty;t.exports=n},function(t,e,n){"use strict";function r(t){return o.isValidElement(t)?void 0:i(!1),t}var o=n(41),i=n(12);t.exports=r},function(t,e,n){"use strict";function r(t,e,n,r,o){return o}n(38),n(24);t.exports=r},function(t,e,n){"use strict";t.exports=n(3)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=r(o),a=n(155),u=r(a),l=n(164),s=r(l),c=n(165),f=r(c),p=n(166);e.default=i.default.createClass({displayName:"plugin-app",propTypes:{stats:i.default.PropTypes.object},getInitialState:function(){return{assets:[],chartData:null,selectedAssetIndex:0}},componentWillMount:function(){var t=this.props.stats,e=(0,p.getAssetsData)(t.assets,t.chunks);this.setState({assets:e,chartData:(0,f.default)(t.modules),selectedAssetIndex:0,stats:t})},onAssetChange:function(t){var e=Number(t.target.value),n=void 0,r=void 0,o=void 0;if(0===e)n=this.state.stats.modules;else{var i=this.state.assets[e-1];n=i.chunk.modules}n?r=(0,f.default)(n):o=p.ERROR_CHUNK_MODULES,this.setState({chartData:r,error:o,selectedAssetIndex:e})},render:function(){var t=void 0,e={};return this.state.stats&&(e=(0,p.getBundleDetails)({assets:this.state.assets,selectedAssetIndex:this.state.selectedAssetIndex})),this.state.assets.length>1&&(t=i.default.createElement("div",null,i.default.createElement("select",{onChange:this.onAssetChange,value:this.state.selectedAssetIndex},i.default.createElement("option",{value:0},"All Chunks"),this.state.assets.map(function(t,e){return i.default.createElement("option",{key:e,value:e+1},t.name)})))),i.default.createElement("div",null,i.default.createElement("h1",null,"Webpack Visualizer"),t,i.default.createElement(u.default,{chartData:this.state.chartData,bundleDetails:e}),this.state.error&&i.default.createElement("div",{className:"errorMessage"},this.state.error),i.default.createElement(s.default,null))}}),t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function(t,e,n){for(var r=!0;r;){var o=t,i=e,a=n;r=!1,null===o&&(o=Function.prototype);var u=Object.getOwnPropertyDescriptor(o,i);if(void 0!==u){if("value"in u)return u.value;var l=u.get;if(void 0===l)return;return l.call(a)}var s=Object.getPrototypeOf(o);if(null===s)return;t=s,e=i,n=a,r=!0,u=s=void 0}},l=n(1),s=r(l),c=n(156),f=r(c),p=n(161),h=r(p),d=n(163),v=r(d),g=function(t){function e(t){o(this,e),u(Object.getPrototypeOf(e.prototype),"constructor",this).call(this,t),this.state={breadcrumbNodes:[],hoverDetails:null,paddingDiff:0},this.onChartHover=this.onChartHover.bind(this),this.onChartUnhover=this.onChartUnhover.bind(this),this.onChartRender=this.onChartRender.bind(this)}return i(e,t),a(e,[{key:"onChartHover",value:function(t){this.setState({hoverDetails:t,breadcrumbNodes:t.ancestorArray})}},{key:"onChartUnhover",value:function(){this.setState({hoverDetails:null,breadcrumbNodes:[]})}},{key:"onChartRender",value:function(t){this.setState({paddingDiff:t.removedTopPadding})}},{key:"render",value:function(){var t="chart";return this.props.chartData&&this.props.chartData.maxDepth>9&&(t+=" chart--large"),this.props.bundleDetails&&0!==Object.keys(this.props.bundleDetails).length?s.default.createElement("div",{className:t},s.default.createElement(h.default,{bundleDetails:this.props.bundleDetails,details:this.state.hoverDetails,topMargin:0}),s.default.createElement(f.default,{data:this.props.chartData,onHover:this.onChartHover,onUnhover:this.onChartUnhover,onRender:this.onChartRender}),s.default.createElement(v.default,{nodes:this.state.breadcrumbNodes})):null}}]),e}(s.default.Component);e.default=g,g.propTypes={breadcrumbNodes:l.PropTypes.array,bundleDetails:l.PropTypes.object,chartData:l.PropTypes.object},t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=r(o),a=n(157),u=r(a);e.default=i.default.createClass({displayName:"chart",propTypes:{data:o.PropTypes.object,onHover:o.PropTypes.func,onRender:o.PropTypes.func,onUnhover:o.PropTypes.func},componentDidMount:function(){this.props.data&&this.createChart(this.props.data)},componentDidUpdate:function(t){this.props.data&&this.props.data!==t.data&&this.createChart(this.props.data)},createChart:function(t){var e=(0,u.default)({svgElement:this.refs.svg,root:t,onHover:this.props.onHover,onUnhover:this.props.onUnhover});this.props.onRender&&this.props.onRender(e)},render:function(){return this.props.data?i.default.createElement("svg",{ref:"svg"}):null}}),t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){var e=t.svgElement,n=t.root,r=t.onHover,o=t.onUnhover,u=n.maxDepth>9?950:750,f=Math.min(u,u)/2,v=l.default.layout.partition().size([2*Math.PI,f*f]).value(function(t){return t.size}),g=l.default.svg.arc().startAngle(function(t){return t.x}).endAngle(function(t){return t.x+t.dx}).innerRadius(function(t){return Math.sqrt(t.y)}).outerRadius(function(t){return Math.sqrt(t.y+t.dy)});h&&(e.innerHTML="");var m=v.nodes(n).filter(function(t){return t.dx>.005});(0,c.markDuplicates)(m),h=l.default.select(e).attr("width",u).attr("height",u).append("svg:g").attr("id","svgWrapper").attr("transform","translate("+u/2+", "+u/2+")"),p=h.data([n]).selectAll("path").data(m).enter().append("svg:path").attr("display",function(t){return t.depth?null:"none"}).attr("d",g).attr("fill-rule","evenodd").style("stroke",function(t){return t.duplicate?"#000":""}).style("fill",function(t){return(0,s.getColor)(t)}).style("opacity",1).on("mouseover",function(t){i(t,r)}),d=p.node().__data__.value;var y=h[0][0],b=e.parentNode,x=y.getBoundingClientRect().height,_=y.getBoundingClientRect().top+window.scrollY-(l.default.select(b)[0][0].getBoundingClientRect().top+window.scrollY);return l.default.select(e).attr("height",x),h.attr("transform","translate("+u/2+", "+(u/2-_)+")"),l.default.select(b.querySelector(".details")).style("margin-top",-_+"px"),l.default.select(y).on("mouseleave",function(t){a(t,o)}),{removedTopPadding:_,vis:h}}function i(t,e){var n=(0,c.getAllChildren)(t),r=(0,c.getAncestors)(t);p.style({opacity:f,"stroke-width":f}),p.filter(function(t){return n.indexOf(t)>=0}).style({"stroke-width":2,opacity:1});var o=(100*t.value/d).toFixed(1),i=o+"%";o<.1&&(i="< 0.1%"),e({ancestorArray:r,name:t.name,size:t.value,percentage:i})}function a(t,e){p.style({opacity:1,"stroke-width":1}),e()}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var u=n(158),l=r(u),s=n(159),c=n(160),f=.5,p=void 0,h=void 0,d=void 0;t.exports=e.default},function(t,e,n){var r,o;!function(){function i(t){return t&&(t.ownerDocument||t.document||t).documentElement}function a(t){return t&&(t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView)}function u(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function l(t){return null===t?NaN:+t}function s(t){return!isNaN(t)}function c(t){return{left:function(e,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=e.length);r<o;){var i=r+o>>>1;t(e[i],n)<0?r=i+1:o=i}return r},right:function(e,n,r,o){for(arguments.length<3&&(r=0),arguments.length<4&&(o=e.length);r<o;){var i=r+o>>>1;t(e[i],n)>0?o=i:r=i+1}return r}}}function f(t){return t.length}function p(t){for(var e=1;t*e%1;)e*=10;return e}function h(t,e){for(var n in e)Object.defineProperty(t.prototype,n,{value:e[n],enumerable:!1})}function d(){this._=Object.create(null)}function v(t){return(t+="")===Ea||t[0]===wa?wa+t:t}function g(t){return(t+="")[0]===wa?t.slice(1):t}function m(t){return v(t)in this._}function y(t){return(t=v(t))in this._&&delete this._[t]}function b(){var t=[];for(var e in this._)t.push(g(e));return t}function x(){var t=0;for(var e in this._)++t;return t}function _(){for(var t in this._)return!1;return!0}function M(){this._=Object.create(null)}function C(t){return t}function E(t,e,n){return function(){var r=n.apply(e,arguments);return r===e?t:r}}function w(t,e){if(e in t)return e;e=e.charAt(0).toUpperCase()+e.slice(1);for(var n=0,r=Na.length;n<r;++n){var o=Na[n]+e;if(o in t)return o}}function N(){}function S(){}function k(t){function e(){for(var e,r=n,o=-1,i=r.length;++o<i;)(e=r[o].on)&&e.apply(this,arguments);return t}var n=[],r=new d;return e.on=function(e,o){var i,a=r.get(e);return arguments.length<2?a&&a.on:(a&&(a.on=null,n=n.slice(0,i=n.indexOf(a)).concat(n.slice(i+1)),r.remove(e)),o&&n.push(r.set(e,{on:o})),t)},e}function D(){ha.event.preventDefault()}function P(){for(var t,e=ha.event;t=e.sourceEvent;)e=t;return e}function R(t){for(var e=new S,n=0,r=arguments.length;++n<r;)e[arguments[n]]=k(e);return e.of=function(n,r){return function(o){try{var i=o.sourceEvent=ha.event;o.target=t,ha.event=o,e[o.type].apply(n,r)}finally{ha.event=i}}},e}function T(t){return ka(t,Ta),t}function A(t){return"function"==typeof t?t:function(){return Da(t,this)}}function I(t){return"function"==typeof t?t:function(){return Pa(t,this)}}function O(t,e){function n(){this.removeAttribute(t)}function r(){this.removeAttributeNS(t.space,t.local)}function o(){this.setAttribute(t,e)}function i(){this.setAttributeNS(t.space,t.local,e)}function a(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}function u(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}return t=ha.ns.qualify(t),null==e?t.local?r:n:"function"==typeof e?t.local?u:a:t.local?i:o}function L(t){return t.trim().replace(/\s+/g," ")}function U(t){return new RegExp("(?:^|\\s+)"+ha.requote(t)+"(?:\\s+|$)","g")}function j(t){return(t+"").trim().split(/^|\s+/)}function F(t,e){function n(){for(var n=-1;++n<o;)t[n](this,e)}function r(){for(var n=-1,r=e.apply(this,arguments);++n<o;)t[n](this,r)}t=j(t).map(B);var o=t.length;return"function"==typeof e?r:n}function B(t){var e=U(t);return function(n,r){if(o=n.classList)return r?o.add(t):o.remove(t);var o=n.getAttribute("class")||"";r?(e.lastIndex=0,e.test(o)||n.setAttribute("class",L(o+" "+t))):n.setAttribute("class",L(o.replace(e," ")))}}function q(t,e,n){function r(){this.style.removeProperty(t)}function o(){this.style.setProperty(t,e,n)}function i(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}return null==e?r:"function"==typeof e?i:o}function V(t,e){function n(){delete this[t]}function r(){this[t]=e}function o(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}return null==e?n:"function"==typeof e?o:r}function z(t){function e(){var e=this.ownerDocument,n=this.namespaceURI;return n===Aa&&e.documentElement.namespaceURI===Aa?e.createElement(t):e.createElementNS(n,t)}function n(){return this.ownerDocument.createElementNS(t.space,t.local)}return"function"==typeof t?t:(t=ha.ns.qualify(t)).local?n:e}function W(){var t=this.parentNode;t&&t.removeChild(this)}function H(t){return{__data__:t}}function K(t){return function(){return Ra(this,t)}}function Y(t){return arguments.length||(t=u),function(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}}function G(t,e){for(var n=0,r=t.length;n<r;n++)for(var o,i=t[n],a=0,u=i.length;a<u;a++)(o=i[a])&&e(o,a,n);return t}function X(t){return ka(t,Oa),t}function Z(t){var e,n;return function(r,o,i){var a,u=t[i].update,l=u.length;for(i!=n&&(n=i,e=0),o>=e&&(e=o+1);!(a=u[e])&&++e<l;);return a}}function $(t,e,n){function r(){var e=this[a];e&&(this.removeEventListener(t,e,e.$),delete this[a])}function o(){var o=l(e,va(arguments));r.call(this),this.addEventListener(t,this[a]=o,o.$=n),o._=e}function i(){var e,n=new RegExp("^__on([^.]+)"+ha.requote(t)+"$");for(var r in this)if(e=r.match(n)){var o=this[r];this.removeEventListener(e[1],o,o.$),delete this[r]}}var a="__on"+t,u=t.indexOf("."),l=Q;u>0&&(t=t.slice(0,u));var s=La.get(t);return s&&(t=s,l=J),u?e?o:r:e?N:i}function Q(t,e){return function(n){var r=ha.event;ha.event=n,e[0]=this.__data__;try{t.apply(this,e)}finally{ha.event=r}}}function J(t,e){var n=Q(t,e);return function(t){var e=this,r=t.relatedTarget;r&&(r===e||8&r.compareDocumentPosition(e))||n.call(e,t)}}function tt(t){var e=".dragsuppress-"+ ++ja,n="click"+e,r=ha.select(a(t)).on("touchmove"+e,D).on("dragstart"+e,D).on("selectstart"+e,D);if(null==Ua&&(Ua=!("onselectstart"in t)&&w(t.style,"userSelect")),Ua){var o=i(t).style,u=o[Ua];o[Ua]="none"}return function(t){if(r.on(e,null),Ua&&(o[Ua]=u),t){var i=function(){r.on(n,null)};r.on(n,function(){D(),i()},!0),setTimeout(i,0)}}}function et(t,e){e.changedTouches&&(e=e.changedTouches[0]);var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();if(Fa<0){var o=a(t);if(o.scrollX||o.scrollY){n=ha.select("body").append("svg").style({position:"absolute",top:0,left:0,margin:0,padding:0,border:"none"},"important");var i=n[0][0].getScreenCTM();Fa=!(i.f||i.e),n.remove()}}return Fa?(r.x=e.pageX,r.y=e.pageY):(r.x=e.clientX,r.y=e.clientY),r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}var u=t.getBoundingClientRect();return[e.clientX-u.left-t.clientLeft,e.clientY-u.top-t.clientTop]}function nt(){return ha.event.changedTouches[0].identifier}function rt(t){return t>0?1:t<0?-1:0}function ot(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function it(t){return t>1?0:t<-1?Va:Math.acos(t)}function at(t){return t>1?Ha:t<-1?-Ha:Math.asin(t)}function ut(t){return((t=Math.exp(t))-1/t)/2}function lt(t){return((t=Math.exp(t))+1/t)/2}function st(t){return((t=Math.exp(2*t))-1)/(t+1)}function ct(t){return(t=Math.sin(t/2))*t}function ft(){}function pt(t,e,n){return this instanceof pt?(this.h=+t,this.s=+e,void(this.l=+n)):arguments.length<2?t instanceof pt?new pt(t.h,t.s,t.l):Nt(""+t,St,pt):new pt(t,e,n)}function ht(t,e,n){function r(t){return t>360?t-=360:t<0&&(t+=360),t<60?i+(a-i)*t/60:t<180?a:t<240?i+(a-i)*(240-t)/60:i}function o(t){return Math.round(255*r(t))}var i,a;return t=isNaN(t)?0:(t%=360)<0?t+360:t,e=isNaN(e)?0:e<0?0:e>1?1:e,n=n<0?0:n>1?1:n,a=n<=.5?n*(1+e):n+e-n*e,i=2*n-a,new Mt(o(t+120),o(t),o(t-120))}function dt(t,e,n){return this instanceof dt?(this.h=+t,this.c=+e,void(this.l=+n)):arguments.length<2?t instanceof dt?new dt(t.h,t.c,t.l):t instanceof gt?yt(t.l,t.a,t.b):yt((t=kt((t=ha.rgb(t)).r,t.g,t.b)).l,t.a,t.b):new dt(t,e,n)}function vt(t,e,n){return isNaN(t)&&(t=0),isNaN(e)&&(e=0),new gt(n,Math.cos(t*=Ka)*e,Math.sin(t)*e)}function gt(t,e,n){return this instanceof gt?(this.l=+t,this.a=+e,void(this.b=+n)):arguments.length<2?t instanceof gt?new gt(t.l,t.a,t.b):t instanceof dt?vt(t.h,t.c,t.l):kt((t=Mt(t)).r,t.g,t.b):new gt(t,e,n)}function mt(t,e,n){var r=(t+16)/116,o=r+e/500,i=r-n/200;return o=bt(o)*ru,r=bt(r)*ou,i=bt(i)*iu,new Mt(_t(3.2404542*o-1.5371385*r-.4985314*i),_t(-.969266*o+1.8760108*r+.041556*i),_t(.0556434*o-.2040259*r+1.0572252*i))}function yt(t,e,n){return t>0?new dt(Math.atan2(n,e)*Ya,Math.sqrt(e*e+n*n),t):new dt(NaN,NaN,t)}function bt(t){return t>.206893034?t*t*t:(t-4/29)/7.787037}function xt(t){return t>.008856?Math.pow(t,1/3):7.787037*t+4/29}function _t(t){return Math.round(255*(t<=.00304?12.92*t:1.055*Math.pow(t,1/2.4)-.055))}function Mt(t,e,n){return this instanceof Mt?(this.r=~~t,this.g=~~e,void(this.b=~~n)):arguments.length<2?t instanceof Mt?new Mt(t.r,t.g,t.b):Nt(""+t,Mt,ht):new Mt(t,e,n)}function Ct(t){return new Mt(t>>16,t>>8&255,255&t)}function Et(t){return Ct(t)+""}function wt(t){return t<16?"0"+Math.max(0,t).toString(16):Math.min(255,t).toString(16)}function Nt(t,e,n){var r,o,i,a=0,u=0,l=0;if(r=/([a-z]+)\((.*)\)/.exec(t=t.toLowerCase()))switch(o=r[2].split(","),r[1]){case"hsl":return n(parseFloat(o[0]),parseFloat(o[1])/100,parseFloat(o[2])/100);case"rgb":return e(Pt(o[0]),Pt(o[1]),Pt(o[2]))}return(i=lu.get(t))?e(i.r,i.g,i.b):(null==t||"#"!==t.charAt(0)||isNaN(i=parseInt(t.slice(1),16))||(4===t.length?(a=(3840&i)>>4,a|=a>>4,u=240&i,u|=u>>4,l=15&i,l|=l<<4):7===t.length&&(a=(16711680&i)>>16,u=(65280&i)>>8,l=255&i)),e(a,u,l))}function St(t,e,n){var r,o,i=Math.min(t/=255,e/=255,n/=255),a=Math.max(t,e,n),u=a-i,l=(a+i)/2;return u?(o=l<.5?u/(a+i):u/(2-a-i),r=t==a?(e-n)/u+(e<n?6:0):e==a?(n-t)/u+2:(t-e)/u+4,r*=60):(r=NaN,o=l>0&&l<1?0:r),new pt(r,o,l)}function kt(t,e,n){t=Dt(t),e=Dt(e),n=Dt(n);var r=xt((.4124564*t+.3575761*e+.1804375*n)/ru),o=xt((.2126729*t+.7151522*e+.072175*n)/ou),i=xt((.0193339*t+.119192*e+.9503041*n)/iu);return gt(116*o-16,500*(r-o),200*(o-i))}function Dt(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Pt(t){var e=parseFloat(t);return"%"===t.charAt(t.length-1)?Math.round(2.55*e):e}function Rt(t){return"function"==typeof t?t:function(){return t}}function Tt(t){return function(e,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=null),At(e,n,t,r)}}function At(t,e,n,r){function o(){var t,e=l.status;if(!e&&Ot(l)||e>=200&&e<300||304===e){try{t=n.call(i,l)}catch(t){return void a.error.call(i,t)}a.load.call(i,t)}else a.error.call(i,l)}var i={},a=ha.dispatch("beforesend","progress","load","error"),u={},l=new XMLHttpRequest,s=null;return!this.XDomainRequest||"withCredentials"in l||!/^(http(s)?:)?\/\//.test(t)||(l=new XDomainRequest),"onload"in l?l.onload=l.onerror=o:l.onreadystatechange=function(){l.readyState>3&&o()},l.onprogress=function(t){var e=ha.event;ha.event=t;try{a.progress.call(i,l)}finally{ha.event=e}},i.header=function(t,e){return t=(t+"").toLowerCase(),arguments.length<2?u[t]:(null==e?delete u[t]:u[t]=e+"",i)},i.mimeType=function(t){return arguments.length?(e=null==t?null:t+"",i):e},i.responseType=function(t){return arguments.length?(s=t,i):s},i.response=function(t){return n=t,i},["get","post"].forEach(function(t){i[t]=function(){return i.send.apply(i,[t].concat(va(arguments)))}}),i.send=function(n,r,o){if(2===arguments.length&&"function"==typeof r&&(o=r,r=null),l.open(n,t,!0),null==e||"accept"in u||(u.accept=e+",*/*"),l.setRequestHeader)for(var c in u)l.setRequestHeader(c,u[c]);return null!=e&&l.overrideMimeType&&l.overrideMimeType(e),null!=s&&(l.responseType=s),null!=o&&i.on("error",o).on("load",function(t){o(null,t)}),a.beforesend.call(i,l),l.send(null==r?null:r),i},i.abort=function(){return l.abort(),i},ha.rebind(i,a,"on"),null==r?i:i.get(It(r))}function It(t){return 1===t.length?function(e,n){t(null==e?n:null)}:t}function Ot(t){var e=t.responseType;return e&&"text"!==e?t.response:t.responseText}function Lt(t,e,n){var r=arguments.length;r<2&&(e=0),r<3&&(n=Date.now());var o=n+e,i={c:t,t:o,n:null};return cu?cu.n=i:su=i,cu=i,fu||(pu=clearTimeout(pu),fu=1,hu(Ut)),i}function Ut(){var t=jt(),e=Ft()-t;e>24?(isFinite(e)&&(clearTimeout(pu),pu=setTimeout(Ut,e)),fu=0):(fu=1,hu(Ut))}function jt(){for(var t=Date.now(),e=su;e;)t>=e.t&&e.c(t-e.t)&&(e.c=null),e=e.n;return t}function Ft(){for(var t,e=su,n=1/0;e;)e.c?(e.t<n&&(n=e.t),e=(t=e).n):e=t?t.n=e.n:su=e.n;return cu=t,n}function Bt(t,e){return e-(t?Math.ceil(Math.log(t)/Math.LN10):1)}function qt(t,e){var n=Math.pow(10,3*Ca(8-e));return{scale:e>8?function(t){return t/n}:function(t){return t*n},symbol:t}}function Vt(t){var e=t.decimal,n=t.thousands,r=t.grouping,o=t.currency,i=r&&n?function(t,e){for(var o=t.length,i=[],a=0,u=r[0],l=0;o>0&&u>0&&(l+u+1>e&&(u=Math.max(1,e-l)),i.push(t.substring(o-=u,o+u)),!((l+=u+1)>e));)u=r[a=(a+1)%r.length];return i.reverse().join(n)}:C;return function(t){var n=vu.exec(t),r=n[1]||" ",a=n[2]||">",u=n[3]||"-",l=n[4]||"",s=n[5],c=+n[6],f=n[7],p=n[8],h=n[9],d=1,v="",g="",m=!1,y=!0;switch(p&&(p=+p.substring(1)),(s||"0"===r&&"="===a)&&(s=r="0",a="="),h){case"n":f=!0,h="g";break;case"%":d=100,g="%",h="f";break;case"p":d=100,g="%",h="r";break;case"b":case"o":case"x":case"X":"#"===l&&(v="0"+h.toLowerCase());case"c":y=!1;case"d":m=!0,p=0;break;case"s":d=-1,h="r"}"$"===l&&(v=o[0],g=o[1]),"r"!=h||p||(h="g"),null!=p&&("g"==h?p=Math.max(1,Math.min(21,p)):"e"!=h&&"f"!=h||(p=Math.max(0,Math.min(20,p)))),h=gu.get(h)||zt;var b=s&&f;return function(t){var n=g;if(m&&t%1)return"";var o=t<0||0===t&&1/t<0?(t=-t,"-"):"-"===u?"":u;if(d<0){var l=ha.formatPrefix(t,p);t=l.scale(t),n=l.symbol+g}else t*=d;t=h(t,p);var x,_,M=t.lastIndexOf(".");if(M<0){var C=y?t.lastIndexOf("e"):-1;C<0?(x=t,_=""):(x=t.substring(0,C),_=t.substring(C))}else x=t.substring(0,M),_=e+t.substring(M+1);!s&&f&&(x=i(x,1/0));var E=v.length+x.length+_.length+(b?0:o.length),w=E<c?new Array(E=c-E+1).join(r):"";return b&&(x=i(w+x,w.length?c-_.length:1/0)),o+=v,t=x+_,("<"===a?o+t+w:">"===a?w+o+t:"^"===a?w.substring(0,E>>=1)+o+t+w.substring(E):o+(b?t:w+t))+n}}}function zt(t){return t+""}function Wt(){this._=new Date(arguments.length>1?Date.UTC.apply(this,arguments):arguments[0])}function Ht(t,e,n){function r(e){var n=t(e),r=i(n,1);return e-n<r-e?n:r}function o(n){return e(n=t(new yu(n-1)),1),n}function i(t,n){return e(t=new yu(+t),n),t}function a(t,r,i){var a=o(t),u=[];if(i>1)for(;a<r;)n(a)%i||u.push(new Date(+a)),e(a,1);else for(;a<r;)u.push(new Date(+a)),e(a,1);return u}function u(t,e,n){try{yu=Wt;var r=new Wt;return r._=t,a(r,e,n)}finally{yu=Date}}t.floor=t,t.round=r,t.ceil=o,t.offset=i,t.range=a;var l=t.utc=Kt(t);return l.floor=l,l.round=Kt(r),l.ceil=Kt(o),l.offset=Kt(i),l.range=u,t}function Kt(t){return function(e,n){try{yu=Wt;var r=new Wt;return r._=e,t(r,n)._}finally{yu=Date}}}function Yt(t){function e(t){function e(e){for(var n,o,i,a=[],u=-1,l=0;++u<r;)37===t.charCodeAt(u)&&(a.push(t.slice(l,u)),null!=(o=xu[n=t.charAt(++u)])&&(n=t.charAt(++u)),(i=k[n])&&(n=i(e,null==o?"e"===n?" ":"0":o)),a.push(n),l=u+1);return a.push(t.slice(l,u)),a.join("")}var r=t.length;return e.parse=function(e){var r={y:1900,m:0,d:1,H:0,M:0,S:0,L:0,Z:null},o=n(r,t,e,0);if(o!=e.length)return null;"p"in r&&(r.H=r.H%12+12*r.p);var i=null!=r.Z&&yu!==Wt,a=new(i?Wt:yu);return"j"in r?a.setFullYear(r.y,0,r.j):"W"in r||"U"in r?("w"in r||(r.w="W"in r?1:0),a.setFullYear(r.y,0,1),a.setFullYear(r.y,0,"W"in r?(r.w+6)%7+7*r.W-(a.getDay()+5)%7:r.w+7*r.U-(a.getDay()+6)%7)):a.setFullYear(r.y,r.m,r.d),a.setHours(r.H+(r.Z/100|0),r.M+r.Z%100,r.S,r.L),i?a._:a},e.toString=function(){return t},e}function n(t,e,n,r){for(var o,i,a,u=0,l=e.length,s=n.length;u<l;){if(r>=s)return-1;if(o=e.charCodeAt(u++),37===o){if(a=e.charAt(u++),i=D[a in xu?e.charAt(u++):a],!i||(r=i(t,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}function r(t,e,n){M.lastIndex=0;var r=M.exec(e.slice(n));return r?(t.w=C.get(r[0].toLowerCase()),n+r[0].length):-1}function o(t,e,n){x.lastIndex=0;var r=x.exec(e.slice(n));return r?(t.w=_.get(r[0].toLowerCase()),n+r[0].length):-1}function i(t,e,n){N.lastIndex=0;var r=N.exec(e.slice(n));return r?(t.m=S.get(r[0].toLowerCase()),n+r[0].length):-1}function a(t,e,n){E.lastIndex=0;var r=E.exec(e.slice(n));return r?(t.m=w.get(r[0].toLowerCase()),n+r[0].length):-1}function u(t,e,r){return n(t,k.c.toString(),e,r)}function l(t,e,r){return n(t,k.x.toString(),e,r)}function s(t,e,r){return n(t,k.X.toString(),e,r)}function c(t,e,n){var r=b.get(e.slice(n,n+=2).toLowerCase());return null==r?-1:(t.p=r,n)}var f=t.dateTime,p=t.date,h=t.time,d=t.periods,v=t.days,g=t.shortDays,m=t.months,y=t.shortMonths;e.utc=function(t){function n(t){try{yu=Wt;var e=new yu;return e._=t,r(e)}finally{yu=Date}}var r=e(t);return n.parse=function(t){try{yu=Wt;var e=r.parse(t);return e&&e._}finally{yu=Date}},n.toString=r.toString,n},e.multi=e.utc.multi=he;var b=ha.map(),x=Xt(v),_=Zt(v),M=Xt(g),C=Zt(g),E=Xt(m),w=Zt(m),N=Xt(y),S=Zt(y);d.forEach(function(t,e){b.set(t.toLowerCase(),e)});var k={a:function(t){return g[t.getDay()]},A:function(t){return v[t.getDay()]},b:function(t){return y[t.getMonth()]},B:function(t){return m[t.getMonth()]},c:e(f),d:function(t,e){return Gt(t.getDate(),e,2)},e:function(t,e){return Gt(t.getDate(),e,2)},H:function(t,e){return Gt(t.getHours(),e,2)},I:function(t,e){return Gt(t.getHours()%12||12,e,2)},j:function(t,e){return Gt(1+mu.dayOfYear(t),e,3)},L:function(t,e){return Gt(t.getMilliseconds(),e,3)},m:function(t,e){return Gt(t.getMonth()+1,e,2)},M:function(t,e){return Gt(t.getMinutes(),e,2)},p:function(t){return d[+(t.getHours()>=12)]},S:function(t,e){return Gt(t.getSeconds(),e,2)},U:function(t,e){return Gt(mu.sundayOfYear(t),e,2)},w:function(t){return t.getDay()},W:function(t,e){return Gt(mu.mondayOfYear(t),e,2)},x:e(p),X:e(h),y:function(t,e){return Gt(t.getFullYear()%100,e,2)},Y:function(t,e){return Gt(t.getFullYear()%1e4,e,4)},Z:fe,"%":function(){return"%"}},D={a:r,A:o,b:i,B:a,c:u,d:ie,e:ie,H:ue,I:ue,j:ae,L:ce,m:oe,M:le,p:c,S:se,U:Qt,w:$t,W:Jt,x:l,X:s,y:ee,Y:te,Z:ne,"%":pe};return e}function Gt(t,e,n){var r=t<0?"-":"",o=(r?-t:t)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(e)+o:o)}function Xt(t){return new RegExp("^(?:"+t.map(ha.requote).join("|")+")","i")}function Zt(t){for(var e=new d,n=-1,r=t.length;++n<r;)e.set(t[n].toLowerCase(),n);return e}function $t(t,e,n){_u.lastIndex=0;var r=_u.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function Qt(t,e,n){_u.lastIndex=0;var r=_u.exec(e.slice(n));return r?(t.U=+r[0],n+r[0].length):-1}function Jt(t,e,n){_u.lastIndex=0;var r=_u.exec(e.slice(n));return r?(t.W=+r[0],n+r[0].length):-1}function te(t,e,n){_u.lastIndex=0;var r=_u.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function ee(t,e,n){_u.lastIndex=0;var r=_u.exec(e.slice(n,n+2));return r?(t.y=re(+r[0]),n+r[0].length):-1}function ne(t,e,n){return/^[+-]\d{4}$/.test(e=e.slice(n,n+5))?(t.Z=-e,n+5):-1}function re(t){return t+(t>68?1900:2e3)}function oe(t,e,n){_u.lastIndex=0;var r=_u.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function ie(t,e,n){_u.lastIndex=0;var r=_u.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function ae(t,e,n){_u.lastIndex=0;var r=_u.exec(e.slice(n,n+3));return r?(t.j=+r[0],n+r[0].length):-1}function ue(t,e,n){_u.lastIndex=0;var r=_u.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function le(t,e,n){_u.lastIndex=0;var r=_u.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function se(t,e,n){_u.lastIndex=0;var r=_u.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function ce(t,e,n){_u.lastIndex=0;var r=_u.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function fe(t){var e=t.getTimezoneOffset(),n=e>0?"-":"+",r=Ca(e)/60|0,o=Ca(e)%60;return n+Gt(r,"0",2)+Gt(o,"0",2)}function pe(t,e,n){Mu.lastIndex=0;var r=Mu.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function he(t){for(var e=t.length,n=-1;++n<e;)t[n][0]=this(t[n][0]);return function(e){for(var n=0,r=t[n];!r[1](e);)r=t[++n];return r[0](e)}}function de(){}function ve(t,e,n){var r=n.s=t+e,o=r-t,i=r-o;n.t=t-i+(e-o)}function ge(t,e){t&&Nu.hasOwnProperty(t.type)&&Nu[t.type](t,e)}function me(t,e,n){var r,o=-1,i=t.length-n;for(e.lineStart();++o<i;)r=t[o],e.point(r[0],r[1],r[2]);e.lineEnd()}function ye(t,e){var n=-1,r=t.length;for(e.polygonStart();++n<r;)me(t[n],e,1);e.polygonEnd()}function be(){function t(t,e){t*=Ka,e=e*Ka/2+Va/4;var n=t-r,a=n>=0?1:-1,u=a*n,l=Math.cos(e),s=Math.sin(e),c=i*s,f=o*l+c*Math.cos(u),p=c*a*Math.sin(u);ku.add(Math.atan2(p,f)),r=t,o=l,i=s}var e,n,r,o,i;Du.point=function(a,u){Du.point=t,r=(e=a)*Ka,o=Math.cos(u=(n=u)*Ka/2+Va/4),i=Math.sin(u)},Du.lineEnd=function(){t(e,n)}}function xe(t){var e=t[0],n=t[1],r=Math.cos(n);return[r*Math.cos(e),r*Math.sin(e),Math.sin(n)]}function _e(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Me(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function Ce(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function Ee(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function we(t){var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);
203
- t[0]/=e,t[1]/=e,t[2]/=e}function Ne(t){return[Math.atan2(t[1],t[0]),at(t[2])]}function Se(t,e){return Ca(t[0]-e[0])<Ba&&Ca(t[1]-e[1])<Ba}function ke(t,e){t*=Ka;var n=Math.cos(e*=Ka);De(n*Math.cos(t),n*Math.sin(t),Math.sin(e))}function De(t,e,n){++Pu,Tu+=(t-Tu)/Pu,Au+=(e-Au)/Pu,Iu+=(n-Iu)/Pu}function Pe(){function t(t,o){t*=Ka;var i=Math.cos(o*=Ka),a=i*Math.cos(t),u=i*Math.sin(t),l=Math.sin(o),s=Math.atan2(Math.sqrt((s=n*l-r*u)*s+(s=r*a-e*l)*s+(s=e*u-n*a)*s),e*a+n*u+r*l);Ru+=s,Ou+=s*(e+(e=a)),Lu+=s*(n+(n=u)),Uu+=s*(r+(r=l)),De(e,n,r)}var e,n,r;qu.point=function(o,i){o*=Ka;var a=Math.cos(i*=Ka);e=a*Math.cos(o),n=a*Math.sin(o),r=Math.sin(i),qu.point=t,De(e,n,r)}}function Re(){qu.point=ke}function Te(){function t(t,e){t*=Ka;var n=Math.cos(e*=Ka),a=n*Math.cos(t),u=n*Math.sin(t),l=Math.sin(e),s=o*l-i*u,c=i*a-r*l,f=r*u-o*a,p=Math.sqrt(s*s+c*c+f*f),h=r*a+o*u+i*l,d=p&&-it(h)/p,v=Math.atan2(p,h);ju+=d*s,Fu+=d*c,Bu+=d*f,Ru+=v,Ou+=v*(r+(r=a)),Lu+=v*(o+(o=u)),Uu+=v*(i+(i=l)),De(r,o,i)}var e,n,r,o,i;qu.point=function(a,u){e=a,n=u,qu.point=t,a*=Ka;var l=Math.cos(u*=Ka);r=l*Math.cos(a),o=l*Math.sin(a),i=Math.sin(u),De(r,o,i)},qu.lineEnd=function(){t(e,n),qu.lineEnd=Re,qu.point=ke}}function Ae(t,e){function n(n,r){return n=t(n,r),e(n[0],n[1])}return t.invert&&e.invert&&(n.invert=function(n,r){return n=e.invert(n,r),n&&t.invert(n[0],n[1])}),n}function Ie(){return!0}function Oe(t,e,n,r,o){var i=[],a=[];if(t.forEach(function(t){if(!((e=t.length-1)<=0)){var e,n=t[0],r=t[e];if(Se(n,r)){o.lineStart();for(var u=0;u<e;++u)o.point((n=t[u])[0],n[1]);return void o.lineEnd()}var l=new Ue(n,t,null,!0),s=new Ue(n,null,l,!1);l.o=s,i.push(l),a.push(s),l=new Ue(r,t,null,!1),s=new Ue(r,null,l,!0),l.o=s,i.push(l),a.push(s)}}),a.sort(e),Le(i),Le(a),i.length){for(var u=0,l=n,s=a.length;u<s;++u)a[u].e=l=!l;for(var c,f,p=i[0];;){for(var h=p,d=!0;h.v;)if((h=h.n)===p)return;c=h.z,o.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(var u=0,s=c.length;u<s;++u)o.point((f=c[u])[0],f[1]);else r(h.x,h.n.x,1,o);h=h.n}else{if(d){c=h.p.z;for(var u=c.length-1;u>=0;--u)o.point((f=c[u])[0],f[1])}else r(h.x,h.p.x,-1,o);h=h.p}h=h.o,c=h.z,d=!d}while(!h.v);o.lineEnd()}}}function Le(t){if(e=t.length){for(var e,n,r=0,o=t[0];++r<e;)o.n=n=t[r],n.p=o,o=n;o.n=n=t[0],n.p=o}}function Ue(t,e,n,r){this.x=t,this.z=e,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function je(t,e,n,r){return function(o,i){function a(e,n){var r=o(e,n);t(e=r[0],n=r[1])&&i.point(e,n)}function u(t,e){var n=o(t,e);g.point(n[0],n[1])}function l(){y.point=u,g.lineStart()}function s(){y.point=a,g.lineEnd()}function c(t,e){v.push([t,e]);var n=o(t,e);x.point(n[0],n[1])}function f(){x.lineStart(),v=[]}function p(){c(v[0][0],v[0][1]),x.lineEnd();var t,e=x.clean(),n=b.buffer(),r=n.length;if(v.pop(),d.push(v),v=null,r)if(1&e){t=n[0];var o,r=t.length-1,a=-1;if(r>0){for(_||(i.polygonStart(),_=!0),i.lineStart();++a<r;)i.point((o=t[a])[0],o[1]);i.lineEnd()}}else r>1&&2&e&&n.push(n.pop().concat(n.shift())),h.push(n.filter(Fe))}var h,d,v,g=e(i),m=o.invert(r[0],r[1]),y={point:a,lineStart:l,lineEnd:s,polygonStart:function(){y.point=c,y.lineStart=f,y.lineEnd=p,h=[],d=[]},polygonEnd:function(){y.point=a,y.lineStart=l,y.lineEnd=s,h=ha.merge(h);var t=He(m,d);h.length?(_||(i.polygonStart(),_=!0),Oe(h,qe,t,n,i)):t&&(_||(i.polygonStart(),_=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),_&&(i.polygonEnd(),_=!1),h=d=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}},b=Be(),x=e(b),_=!1;return y}}function Fe(t){return t.length>1}function Be(){var t,e=[];return{lineStart:function(){e.push(t=[])},point:function(e,n){t.push([e,n])},lineEnd:N,buffer:function(){var n=e;return e=[],t=null,n},rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))}}}function qe(t,e){return((t=t.x)[0]<0?t[1]-Ha-Ba:Ha-t[1])-((e=e.x)[0]<0?e[1]-Ha-Ba:Ha-e[1])}function Ve(t){var e,n=NaN,r=NaN,o=NaN;return{lineStart:function(){t.lineStart(),e=1},point:function(i,a){var u=i>0?Va:-Va,l=Ca(i-n);Ca(l-Va)<Ba?(t.point(n,r=(r+a)/2>0?Ha:-Ha),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(u,r),t.point(i,r),e=0):o!==u&&l>=Va&&(Ca(n-o)<Ba&&(n-=o*Ba),Ca(i-u)<Ba&&(i-=u*Ba),r=ze(n,r,i,a),t.point(o,r),t.lineEnd(),t.lineStart(),t.point(u,r),e=0),t.point(n=i,r=a),o=u},lineEnd:function(){t.lineEnd(),n=r=NaN},clean:function(){return 2-e}}}function ze(t,e,n,r){var o,i,a=Math.sin(t-n);return Ca(a)>Ba?Math.atan((Math.sin(e)*(i=Math.cos(r))*Math.sin(n)-Math.sin(r)*(o=Math.cos(e))*Math.sin(t))/(o*i*a)):(e+r)/2}function We(t,e,n,r){var o;if(null==t)o=n*Ha,r.point(-Va,o),r.point(0,o),r.point(Va,o),r.point(Va,0),r.point(Va,-o),r.point(0,-o),r.point(-Va,-o),r.point(-Va,0),r.point(-Va,o);else if(Ca(t[0]-e[0])>Ba){var i=t[0]<e[0]?Va:-Va;o=n*i/2,r.point(-i,o),r.point(0,o),r.point(i,o)}else r.point(e[0],e[1])}function He(t,e){var n=t[0],r=t[1],o=[Math.sin(n),-Math.cos(n),0],i=0,a=0;ku.reset();for(var u=0,l=e.length;u<l;++u){var s=e[u],c=s.length;if(c)for(var f=s[0],p=f[0],h=f[1]/2+Va/4,d=Math.sin(h),v=Math.cos(h),g=1;;){g===c&&(g=0),t=s[g];var m=t[0],y=t[1]/2+Va/4,b=Math.sin(y),x=Math.cos(y),_=m-p,M=_>=0?1:-1,C=M*_,E=C>Va,w=d*b;if(ku.add(Math.atan2(w*M*Math.sin(C),v*x+w*Math.cos(C))),i+=E?_+M*za:_,E^p>=n^m>=n){var N=Me(xe(f),xe(t));we(N);var S=Me(o,N);we(S);var k=(E^_>=0?-1:1)*at(S[2]);(r>k||r===k&&(N[0]||N[1]))&&(a+=E^_>=0?1:-1)}if(!g++)break;p=m,d=b,v=x,f=t}}return(i<-Ba||i<Ba&&ku<-Ba)^1&a}function Ke(t){function e(t,e){return Math.cos(t)*Math.cos(e)>i}function n(t){var n,i,l,s,c;return{lineStart:function(){s=l=!1,c=1},point:function(f,p){var h,d=[f,p],v=e(f,p),g=a?v?0:o(f,p):v?o(f+(f<0?Va:-Va),p):0;if(!n&&(s=l=v)&&t.lineStart(),v!==l&&(h=r(n,d),(Se(n,h)||Se(d,h))&&(d[0]+=Ba,d[1]+=Ba,v=e(d[0],d[1]))),v!==l)c=0,v?(t.lineStart(),h=r(d,n),t.point(h[0],h[1])):(h=r(n,d),t.point(h[0],h[1]),t.lineEnd()),n=h;else if(u&&n&&a^v){var m;g&i||!(m=r(d,n,!0))||(c=0,a?(t.lineStart(),t.point(m[0][0],m[0][1]),t.point(m[1][0],m[1][1]),t.lineEnd()):(t.point(m[1][0],m[1][1]),t.lineEnd(),t.lineStart(),t.point(m[0][0],m[0][1])))}!v||n&&Se(n,d)||t.point(d[0],d[1]),n=d,l=v,i=g},lineEnd:function(){l&&t.lineEnd(),n=null},clean:function(){return c|(s&&l)<<1}}}function r(t,e,n){var r=xe(t),o=xe(e),a=[1,0,0],u=Me(r,o),l=_e(u,u),s=u[0],c=l-s*s;if(!c)return!n&&t;var f=i*l/c,p=-i*s/c,h=Me(a,u),d=Ee(a,f),v=Ee(u,p);Ce(d,v);var g=h,m=_e(d,g),y=_e(g,g),b=m*m-y*(_e(d,d)-1);if(!(b<0)){var x=Math.sqrt(b),_=Ee(g,(-m-x)/y);if(Ce(_,d),_=Ne(_),!n)return _;var M,C=t[0],E=e[0],w=t[1],N=e[1];E<C&&(M=C,C=E,E=M);var S=E-C,k=Ca(S-Va)<Ba,D=k||S<Ba;if(!k&&N<w&&(M=w,w=N,N=M),D?k?w+N>0^_[1]<(Ca(_[0]-C)<Ba?w:N):w<=_[1]&&_[1]<=N:S>Va^(C<=_[0]&&_[0]<=E)){var P=Ee(g,(-m+x)/y);return Ce(P,d),[_,Ne(P)]}}}function o(e,n){var r=a?t:Va-t,o=0;return e<-r?o|=1:e>r&&(o|=2),n<-r?o|=4:n>r&&(o|=8),o}var i=Math.cos(t),a=i>0,u=Ca(i)>Ba,l=xn(t,6*Ka);return je(e,n,l,a?[0,-t]:[-Va,t-Va])}function Ye(t,e,n,r){return function(o){var i,a=o.a,u=o.b,l=a.x,s=a.y,c=u.x,f=u.y,p=0,h=1,d=c-l,v=f-s;if(i=t-l,d||!(i>0)){if(i/=d,d<0){if(i<p)return;i<h&&(h=i)}else if(d>0){if(i>h)return;i>p&&(p=i)}if(i=n-l,d||!(i<0)){if(i/=d,d<0){if(i>h)return;i>p&&(p=i)}else if(d>0){if(i<p)return;i<h&&(h=i)}if(i=e-s,v||!(i>0)){if(i/=v,v<0){if(i<p)return;i<h&&(h=i)}else if(v>0){if(i>h)return;i>p&&(p=i)}if(i=r-s,v||!(i<0)){if(i/=v,v<0){if(i>h)return;i>p&&(p=i)}else if(v>0){if(i<p)return;i<h&&(h=i)}return p>0&&(o.a={x:l+p*d,y:s+p*v}),h<1&&(o.b={x:l+h*d,y:s+h*v}),o}}}}}}function Ge(t,e,n,r){function o(r,o){return Ca(r[0]-t)<Ba?o>0?0:3:Ca(r[0]-n)<Ba?o>0?2:1:Ca(r[1]-e)<Ba?o>0?1:0:o>0?3:2}function i(t,e){return a(t.x,e.x)}function a(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:0===n?e[1]-t[1]:1===n?t[0]-e[0]:2===n?t[1]-e[1]:e[0]-t[0]}return function(u){function l(t){for(var e=0,n=g.length,r=t[1],o=0;o<n;++o)for(var i,a=1,u=g[o],l=u.length,s=u[0];a<l;++a)i=u[a],s[1]<=r?i[1]>r&&ot(s,i,t)>0&&++e:i[1]<=r&&ot(s,i,t)<0&&--e,s=i;return 0!==e}function s(i,u,l,s){var c=0,f=0;if(null==i||(c=o(i,l))!==(f=o(u,l))||a(i,u)<0^l>0){do s.point(0===c||3===c?t:n,c>1?r:e);while((c=(c+l+4)%4)!==f)}else s.point(u[0],u[1])}function c(o,i){return t<=o&&o<=n&&e<=i&&i<=r}function f(t,e){c(t,e)&&u.point(t,e)}function p(){D.point=d,g&&g.push(m=[]),E=!0,C=!1,_=M=NaN}function h(){v&&(d(y,b),x&&C&&S.rejoin(),v.push(S.buffer())),D.point=f,C&&u.lineEnd()}function d(t,e){t=Math.max(-zu,Math.min(zu,t)),e=Math.max(-zu,Math.min(zu,e));var n=c(t,e);if(g&&m.push([t,e]),E)y=t,b=e,x=n,E=!1,n&&(u.lineStart(),u.point(t,e));else if(n&&C)u.point(t,e);else{var r={a:{x:_,y:M},b:{x:t,y:e}};k(r)?(C||(u.lineStart(),u.point(r.a.x,r.a.y)),u.point(r.b.x,r.b.y),n||u.lineEnd(),w=!1):n&&(u.lineStart(),u.point(t,e),w=!1)}_=t,M=e,C=n}var v,g,m,y,b,x,_,M,C,E,w,N=u,S=Be(),k=Ye(t,e,n,r),D={point:f,lineStart:p,lineEnd:h,polygonStart:function(){u=S,v=[],g=[],w=!0},polygonEnd:function(){u=N,v=ha.merge(v);var e=l([t,r]),n=w&&e,o=v.length;(n||o)&&(u.polygonStart(),n&&(u.lineStart(),s(null,null,1,u),u.lineEnd()),o&&Oe(v,i,e,s,u),u.polygonEnd()),v=g=m=null}};return D}}function Xe(t){var e=0,n=Va/3,r=pn(t),o=r(e,n);return o.parallels=function(t){return arguments.length?r(e=t[0]*Va/180,n=t[1]*Va/180):[e/Va*180,n/Va*180]},o}function Ze(t,e){function n(t,e){var n=Math.sqrt(i-2*o*Math.sin(e))/o;return[n*Math.sin(t*=o),a-n*Math.cos(t)]}var r=Math.sin(t),o=(r+Math.sin(e))/2,i=1+r*(2*o-r),a=Math.sqrt(i)/o;return n.invert=function(t,e){var n=a-e;return[Math.atan2(t,n)/o,at((i-(t*t+n*n)*o*o)/(2*o))]},n}function $e(){function t(t,e){Hu+=o*t-r*e,r=t,o=e}var e,n,r,o;Zu.point=function(i,a){Zu.point=t,e=r=i,n=o=a},Zu.lineEnd=function(){t(e,n)}}function Qe(t,e){t<Ku&&(Ku=t),t>Gu&&(Gu=t),e<Yu&&(Yu=e),e>Xu&&(Xu=e)}function Je(){function t(t,e){a.push("M",t,",",e,i)}function e(t,e){a.push("M",t,",",e),u.point=n}function n(t,e){a.push("L",t,",",e)}function r(){u.point=t}function o(){a.push("Z")}var i=tn(4.5),a=[],u={point:t,lineStart:function(){u.point=e},lineEnd:r,polygonStart:function(){u.lineEnd=o},polygonEnd:function(){u.lineEnd=r,u.point=t},pointRadius:function(t){return i=tn(t),u},result:function(){if(a.length){var t=a.join("");return a=[],t}}};return u}function tn(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function en(t,e){Tu+=t,Au+=e,++Iu}function nn(){function t(t,r){var o=t-e,i=r-n,a=Math.sqrt(o*o+i*i);Ou+=a*(e+t)/2,Lu+=a*(n+r)/2,Uu+=a,en(e=t,n=r)}var e,n;Qu.point=function(r,o){Qu.point=t,en(e=r,n=o)}}function rn(){Qu.point=en}function on(){function t(t,e){var n=t-r,i=e-o,a=Math.sqrt(n*n+i*i);Ou+=a*(r+t)/2,Lu+=a*(o+e)/2,Uu+=a,a=o*t-r*e,ju+=a*(r+t),Fu+=a*(o+e),Bu+=3*a,en(r=t,o=e)}var e,n,r,o;Qu.point=function(i,a){Qu.point=t,en(e=r=i,n=o=a)},Qu.lineEnd=function(){t(e,n)}}function an(t){function e(e,n){t.moveTo(e+a,n),t.arc(e,n,a,0,za)}function n(e,n){t.moveTo(e,n),u.point=r}function r(e,n){t.lineTo(e,n)}function o(){u.point=e}function i(){t.closePath()}var a=4.5,u={point:e,lineStart:function(){u.point=n},lineEnd:o,polygonStart:function(){u.lineEnd=i},polygonEnd:function(){u.lineEnd=o,u.point=e},pointRadius:function(t){return a=t,u},result:N};return u}function un(t){function e(t){return(u?r:n)(t)}function n(e){return cn(e,function(n,r){n=t(n,r),e.point(n[0],n[1])})}function r(e){function n(n,r){n=t(n,r),e.point(n[0],n[1])}function r(){b=NaN,E.point=i,e.lineStart()}function i(n,r){var i=xe([n,r]),a=t(n,r);o(b,x,y,_,M,C,b=a[0],x=a[1],y=n,_=i[0],M=i[1],C=i[2],u,e),e.point(b,x)}function a(){E.point=n,e.lineEnd()}function l(){r(),E.point=s,E.lineEnd=c}function s(t,e){i(f=t,p=e),h=b,d=x,v=_,g=M,m=C,E.point=i}function c(){o(b,x,y,_,M,C,h,d,f,v,g,m,u,e),E.lineEnd=a,a()}var f,p,h,d,v,g,m,y,b,x,_,M,C,E={point:n,lineStart:r,lineEnd:a,polygonStart:function(){e.polygonStart(),E.lineStart=l},polygonEnd:function(){e.polygonEnd(),E.lineStart=r}};return E}function o(e,n,r,u,l,s,c,f,p,h,d,v,g,m){var y=c-e,b=f-n,x=y*y+b*b;if(x>4*i&&g--){var _=u+h,M=l+d,C=s+v,E=Math.sqrt(_*_+M*M+C*C),w=Math.asin(C/=E),N=Ca(Ca(C)-1)<Ba||Ca(r-p)<Ba?(r+p)/2:Math.atan2(M,_),S=t(N,w),k=S[0],D=S[1],P=k-e,R=D-n,T=b*P-y*R;(T*T/x>i||Ca((y*P+b*R)/x-.5)>.3||u*h+l*d+s*v<a)&&(o(e,n,r,u,l,s,k,D,N,_/=E,M/=E,C,g,m),m.point(k,D),o(k,D,N,_,M,C,c,f,p,h,d,v,g,m))}}var i=.5,a=Math.cos(30*Ka),u=16;return e.precision=function(t){return arguments.length?(u=(i=t*t)>0&&16,e):Math.sqrt(i)},e}function ln(t){var e=un(function(e,n){return t([e*Ya,n*Ya])});return function(t){return hn(e(t))}}function sn(t){this.stream=t}function cn(t,e){return{point:e,sphere:function(){t.sphere()},lineStart:function(){t.lineStart()},lineEnd:function(){t.lineEnd()},polygonStart:function(){t.polygonStart()},polygonEnd:function(){t.polygonEnd()}}}function fn(t){return pn(function(){return t})()}function pn(t){function e(t){return t=u(t[0]*Ka,t[1]*Ka),[t[0]*p+l,s-t[1]*p]}function n(t){return t=u.invert((t[0]-l)/p,(s-t[1])/p),t&&[t[0]*Ya,t[1]*Ya]}function r(){u=Ae(a=gn(m,y,b),i);var t=i(v,g);return l=h-t[0]*p,s=d+t[1]*p,o()}function o(){return c&&(c.valid=!1,c=null),e}var i,a,u,l,s,c,f=un(function(t,e){return t=i(t,e),[t[0]*p+l,s-t[1]*p]}),p=150,h=480,d=250,v=0,g=0,m=0,y=0,b=0,x=Vu,_=C,M=null,E=null;return e.stream=function(t){return c&&(c.valid=!1),c=hn(x(a,f(_(t)))),c.valid=!0,c},e.clipAngle=function(t){return arguments.length?(x=null==t?(M=t,Vu):Ke((M=+t)*Ka),o()):M},e.clipExtent=function(t){return arguments.length?(E=t,_=t?Ge(t[0][0],t[0][1],t[1][0],t[1][1]):C,o()):E},e.scale=function(t){return arguments.length?(p=+t,r()):p},e.translate=function(t){return arguments.length?(h=+t[0],d=+t[1],r()):[h,d]},e.center=function(t){return arguments.length?(v=t[0]%360*Ka,g=t[1]%360*Ka,r()):[v*Ya,g*Ya]},e.rotate=function(t){return arguments.length?(m=t[0]%360*Ka,y=t[1]%360*Ka,b=t.length>2?t[2]%360*Ka:0,r()):[m*Ya,y*Ya,b*Ya]},ha.rebind(e,f,"precision"),function(){return i=t.apply(this,arguments),e.invert=i.invert&&n,r()}}function hn(t){return cn(t,function(e,n){t.point(e*Ka,n*Ka)})}function dn(t,e){return[t,e]}function vn(t,e){return[t>Va?t-za:t<-Va?t+za:t,e]}function gn(t,e,n){return t?e||n?Ae(yn(t),bn(e,n)):yn(t):e||n?bn(e,n):vn}function mn(t){return function(e,n){return e+=t,[e>Va?e-za:e<-Va?e+za:e,n]}}function yn(t){var e=mn(t);return e.invert=mn(-t),e}function bn(t,e){function n(t,e){var n=Math.cos(e),u=Math.cos(t)*n,l=Math.sin(t)*n,s=Math.sin(e),c=s*r+u*o;return[Math.atan2(l*i-c*a,u*r-s*o),at(c*i+l*a)]}var r=Math.cos(t),o=Math.sin(t),i=Math.cos(e),a=Math.sin(e);return n.invert=function(t,e){var n=Math.cos(e),u=Math.cos(t)*n,l=Math.sin(t)*n,s=Math.sin(e),c=s*i-l*a;return[Math.atan2(l*i+s*a,u*r+c*o),at(c*r-u*o)]},n}function xn(t,e){var n=Math.cos(t),r=Math.sin(t);return function(o,i,a,u){var l=a*e;null!=o?(o=_n(n,o),i=_n(n,i),(a>0?o<i:o>i)&&(o+=a*za)):(o=t+a*za,i=t-.5*l);for(var s,c=o;a>0?c>i:c<i;c-=l)u.point((s=Ne([n,-r*Math.cos(c),-r*Math.sin(c)]))[0],s[1])}}function _n(t,e){var n=xe(e);n[0]-=t,we(n);var r=it(-n[1]);return((-n[2]<0?-r:r)+2*Math.PI-Ba)%(2*Math.PI)}function Mn(t,e,n){var r=ha.range(t,e-Ba,n).concat(e);return function(t){return r.map(function(e){return[t,e]})}}function Cn(t,e,n){var r=ha.range(t,e-Ba,n).concat(e);return function(t){return r.map(function(e){return[e,t]})}}function En(t){return t.source}function wn(t){return t.target}function Nn(t,e,n,r){var o=Math.cos(e),i=Math.sin(e),a=Math.cos(r),u=Math.sin(r),l=o*Math.cos(t),s=o*Math.sin(t),c=a*Math.cos(n),f=a*Math.sin(n),p=2*Math.asin(Math.sqrt(ct(r-e)+o*a*ct(n-t))),h=1/Math.sin(p),d=p?function(t){var e=Math.sin(t*=p)*h,n=Math.sin(p-t)*h,r=n*l+e*c,o=n*s+e*f,a=n*i+e*u;return[Math.atan2(o,r)*Ya,Math.atan2(a,Math.sqrt(r*r+o*o))*Ya]}:function(){return[t*Ya,e*Ya]};return d.distance=p,d}function Sn(){function t(t,o){var i=Math.sin(o*=Ka),a=Math.cos(o),u=Ca((t*=Ka)-e),l=Math.cos(u);Ju+=Math.atan2(Math.sqrt((u=a*Math.sin(u))*u+(u=r*i-n*a*l)*u),n*i+r*a*l),e=t,n=i,r=a}var e,n,r;tl.point=function(o,i){e=o*Ka,n=Math.sin(i*=Ka),r=Math.cos(i),tl.point=t},tl.lineEnd=function(){tl.point=tl.lineEnd=N}}function kn(t,e){function n(e,n){var r=Math.cos(e),o=Math.cos(n),i=t(r*o);return[i*o*Math.sin(e),i*Math.sin(n)]}return n.invert=function(t,n){var r=Math.sqrt(t*t+n*n),o=e(r),i=Math.sin(o),a=Math.cos(o);return[Math.atan2(t*i,r*a),Math.asin(r&&n*i/r)]},n}function Dn(t,e){function n(t,e){a>0?e<-Ha+Ba&&(e=-Ha+Ba):e>Ha-Ba&&(e=Ha-Ba);var n=a/Math.pow(o(e),i);return[n*Math.sin(i*t),a-n*Math.cos(i*t)]}var r=Math.cos(t),o=function(t){return Math.tan(Va/4+t/2)},i=t===e?Math.sin(t):Math.log(r/Math.cos(e))/Math.log(o(e)/o(t)),a=r*Math.pow(o(t),i)/i;return i?(n.invert=function(t,e){var n=a-e,r=rt(i)*Math.sqrt(t*t+n*n);return[Math.atan2(t,n)/i,2*Math.atan(Math.pow(a/r,1/i))-Ha]},n):Rn}function Pn(t,e){function n(t,e){var n=i-e;return[n*Math.sin(o*t),i-n*Math.cos(o*t)]}var r=Math.cos(t),o=t===e?Math.sin(t):(r-Math.cos(e))/(e-t),i=r/o+t;return Ca(o)<Ba?dn:(n.invert=function(t,e){var n=i-e;return[Math.atan2(t,n)/o,i-rt(o)*Math.sqrt(t*t+n*n)]},n)}function Rn(t,e){return[t,Math.log(Math.tan(Va/4+e/2))]}function Tn(t){var e,n=fn(t),r=n.scale,o=n.translate,i=n.clipExtent;return n.scale=function(){var t=r.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.translate=function(){var t=o.apply(n,arguments);return t===n?e?n.clipExtent(null):n:t},n.clipExtent=function(t){var a=i.apply(n,arguments);if(a===n){if(e=null==t){var u=Va*r(),l=o();i([[l[0]-u,l[1]-u],[l[0]+u,l[1]+u]])}}else e&&(a=null);return a},n.clipExtent(null)}function An(t,e){return[Math.log(Math.tan(Va/4+e/2)),-t]}function In(t){return t[0]}function On(t){return t[1]}function Ln(t){for(var e=t.length,n=[0,1],r=2,o=2;o<e;o++){for(;r>1&&ot(t[n[r-2]],t[n[r-1]],t[o])<=0;)--r;n[r++]=o}return n.slice(0,r)}function Un(t,e){return t[0]-e[0]||t[1]-e[1]}function jn(t,e,n){return(n[0]-e[0])*(t[1]-e[1])<(n[1]-e[1])*(t[0]-e[0])}function Fn(t,e,n,r){var o=t[0],i=n[0],a=e[0]-o,u=r[0]-i,l=t[1],s=n[1],c=e[1]-l,f=r[1]-s,p=(u*(l-s)-f*(o-i))/(f*a-u*c);return[o+p*a,l+p*c]}function Bn(t){var e=t[0],n=t[t.length-1];return!(e[0]-n[0]||e[1]-n[1])}function qn(){lr(this),this.edge=this.site=this.circle=null}function Vn(t){var e=pl.pop()||new qn;return e.site=t,e}function zn(t){Jn(t),sl.remove(t),pl.push(t),lr(t)}function Wn(t){var e=t.circle,n=e.x,r=e.cy,o={x:n,y:r},i=t.P,a=t.N,u=[t];zn(t);for(var l=i;l.circle&&Ca(n-l.circle.x)<Ba&&Ca(r-l.circle.cy)<Ba;)i=l.P,u.unshift(l),zn(l),l=i;u.unshift(l),Jn(l);for(var s=a;s.circle&&Ca(n-s.circle.x)<Ba&&Ca(r-s.circle.cy)<Ba;)a=s.N,u.push(s),zn(s),s=a;u.push(s),Jn(s);var c,f=u.length;for(c=1;c<f;++c)s=u[c],l=u[c-1],ir(s.edge,l.site,s.site,o);l=u[0],s=u[f-1],s.edge=rr(l.site,s.site,null,o),Qn(l),Qn(s)}function Hn(t){for(var e,n,r,o,i=t.x,a=t.y,u=sl._;u;)if(r=Kn(u,a)-i,r>Ba)u=u.L;else{if(o=i-Yn(u,a),!(o>Ba)){r>-Ba?(e=u.P,n=u):o>-Ba?(e=u,n=u.N):e=n=u;break}if(!u.R){e=u;break}u=u.R}var l=Vn(t);if(sl.insert(e,l),e||n){if(e===n)return Jn(e),n=Vn(e.site),sl.insert(l,n),l.edge=n.edge=rr(e.site,l.site),Qn(e),void Qn(n);if(!n)return void(l.edge=rr(e.site,l.site));Jn(e),Jn(n);var s=e.site,c=s.x,f=s.y,p=t.x-c,h=t.y-f,d=n.site,v=d.x-c,g=d.y-f,m=2*(p*g-h*v),y=p*p+h*h,b=v*v+g*g,x={x:(g*y-h*b)/m+c,y:(p*b-v*y)/m+f};ir(n.edge,s,d,x),l.edge=rr(s,t,null,x),n.edge=rr(t,d,null,x),Qn(e),Qn(n)}}function Kn(t,e){var n=t.site,r=n.x,o=n.y,i=o-e;if(!i)return r;var a=t.P;if(!a)return-(1/0);n=a.site;var u=n.x,l=n.y,s=l-e;if(!s)return u;var c=u-r,f=1/i-1/s,p=c/s;return f?(-p+Math.sqrt(p*p-2*f*(c*c/(-2*s)-l+s/2+o-i/2)))/f+r:(r+u)/2}function Yn(t,e){var n=t.N;if(n)return Kn(n,e);var r=t.site;return r.y===e?r.x:1/0}function Gn(t){this.site=t,this.edges=[]}function Xn(t){for(var e,n,r,o,i,a,u,l,s,c,f=t[0][0],p=t[1][0],h=t[0][1],d=t[1][1],v=ll,g=v.length;g--;)if(i=v[g],i&&i.prepare())for(u=i.edges,l=u.length,a=0;a<l;)c=u[a].end(),r=c.x,o=c.y,s=u[++a%l].start(),e=s.x,n=s.y,(Ca(r-e)>Ba||Ca(o-n)>Ba)&&(u.splice(a,0,new ar(or(i.site,c,Ca(r-f)<Ba&&d-o>Ba?{x:f,y:Ca(e-f)<Ba?n:d}:Ca(o-d)<Ba&&p-r>Ba?{x:Ca(n-d)<Ba?e:p,y:d}:Ca(r-p)<Ba&&o-h>Ba?{x:p,y:Ca(e-p)<Ba?n:h}:Ca(o-h)<Ba&&r-f>Ba?{x:Ca(n-h)<Ba?e:f,y:h}:null),i.site,null)),++l)}function Zn(t,e){return e.angle-t.angle}function $n(){lr(this),this.x=this.y=this.arc=this.site=this.cy=null}function Qn(t){var e=t.P,n=t.N;if(e&&n){var r=e.site,o=t.site,i=n.site;if(r!==i){var a=o.x,u=o.y,l=r.x-a,s=r.y-u,c=i.x-a,f=i.y-u,p=2*(l*f-s*c);if(!(p>=-qa)){var h=l*l+s*s,d=c*c+f*f,v=(f*h-s*d)/p,g=(l*d-c*h)/p,f=g+u,m=hl.pop()||new $n;m.arc=t,m.site=o,m.x=v+a,m.y=f+Math.sqrt(v*v+g*g),m.cy=f,t.circle=m;for(var y=null,b=fl._;b;)if(m.y<b.y||m.y===b.y&&m.x<=b.x){if(!b.L){y=b.P;break}b=b.L}else{if(!b.R){y=b;break}b=b.R}fl.insert(y,m),y||(cl=m)}}}}function Jn(t){var e=t.circle;e&&(e.P||(cl=e.N),fl.remove(e),hl.push(e),lr(e),t.circle=null)}function tr(t){for(var e,n=ul,r=Ye(t[0][0],t[0][1],t[1][0],t[1][1]),o=n.length;o--;)e=n[o],(!er(e,t)||!r(e)||Ca(e.a.x-e.b.x)<Ba&&Ca(e.a.y-e.b.y)<Ba)&&(e.a=e.b=null,n.splice(o,1))}function er(t,e){var n=t.b;if(n)return!0;var r,o,i=t.a,a=e[0][0],u=e[1][0],l=e[0][1],s=e[1][1],c=t.l,f=t.r,p=c.x,h=c.y,d=f.x,v=f.y,g=(p+d)/2,m=(h+v)/2;if(v===h){if(g<a||g>=u)return;if(p>d){if(i){if(i.y>=s)return}else i={x:g,y:l};n={x:g,y:s}}else{if(i){if(i.y<l)return}else i={x:g,y:s};n={x:g,y:l}}}else if(r=(p-d)/(v-h),o=m-r*g,r<-1||r>1)if(p>d){if(i){if(i.y>=s)return}else i={x:(l-o)/r,y:l};n={x:(s-o)/r,y:s}}else{if(i){if(i.y<l)return}else i={x:(s-o)/r,y:s};n={x:(l-o)/r,y:l}}else if(h<v){if(i){if(i.x>=u)return}else i={x:a,y:r*a+o};n={x:u,y:r*u+o}}else{if(i){if(i.x<a)return}else i={x:u,y:r*u+o};n={x:a,y:r*a+o}}return t.a=i,t.b=n,!0}function nr(t,e){this.l=t,this.r=e,this.a=this.b=null}function rr(t,e,n,r){var o=new nr(t,e);return ul.push(o),n&&ir(o,t,e,n),r&&ir(o,e,t,r),ll[t.i].edges.push(new ar(o,t,e)),ll[e.i].edges.push(new ar(o,e,t)),o}function or(t,e,n){var r=new nr(t,null);return r.a=e,r.b=n,ul.push(r),r}function ir(t,e,n,r){t.a||t.b?t.l===n?t.b=r:t.a=r:(t.a=r,t.l=e,t.r=n)}function ar(t,e,n){var r=t.a,o=t.b;this.edge=t,this.site=e,this.angle=n?Math.atan2(n.y-e.y,n.x-e.x):t.l===e?Math.atan2(o.x-r.x,r.y-o.y):Math.atan2(r.x-o.x,o.y-r.y)}function ur(){this._=null}function lr(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function sr(t,e){var n=e,r=e.R,o=n.U;o?o.L===n?o.L=r:o.R=r:t._=r,r.U=o,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function cr(t,e){var n=e,r=e.L,o=n.U;o?o.L===n?o.L=r:o.R=r:t._=r,r.U=o,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function fr(t){for(;t.L;)t=t.L;return t}function pr(t,e){var n,r,o,i=t.sort(hr).pop();for(ul=[],ll=new Array(t.length),sl=new ur,fl=new ur;;)if(o=cl,i&&(!o||i.y<o.y||i.y===o.y&&i.x<o.x))i.x===n&&i.y===r||(ll[i.i]=new Gn(i),Hn(i),n=i.x,r=i.y),i=t.pop();else{if(!o)break;Wn(o.arc)}e&&(tr(e),Xn(e));var a={cells:ll,edges:ul};return sl=fl=ul=ll=null,a}function hr(t,e){return e.y-t.y||e.x-t.x}function dr(t,e,n){return(t.x-n.x)*(e.y-t.y)-(t.x-e.x)*(n.y-t.y)}function vr(t){return t.x}function gr(t){return t.y}function mr(){return{leaf:!0,nodes:[],point:null,x:null,y:null}}function yr(t,e,n,r,o,i){if(!t(e,n,r,o,i)){var a=.5*(n+o),u=.5*(r+i),l=e.nodes;l[0]&&yr(t,l[0],n,r,a,u),l[1]&&yr(t,l[1],a,r,o,u),l[2]&&yr(t,l[2],n,u,a,i),l[3]&&yr(t,l[3],a,u,o,i)}}function br(t,e,n,r,o,i,a){var u,l=1/0;return function t(s,c,f,p,h){if(!(c>i||f>a||p<r||h<o)){if(d=s.point){var d,v=e-s.x,g=n-s.y,m=v*v+g*g;if(m<l){var y=Math.sqrt(l=m);r=e-y,o=n-y,i=e+y,a=n+y,u=d}}for(var b=s.nodes,x=.5*(c+p),_=.5*(f+h),M=e>=x,C=n>=_,E=C<<1|M,w=E+4;E<w;++E)if(s=b[3&E])switch(3&E){case 0:t(s,c,f,x,_);break;case 1:t(s,x,f,p,_);break;case 2:t(s,c,_,x,h);break;case 3:t(s,x,_,p,h)}}}(t,r,o,i,a),u}function xr(t,e){t=ha.rgb(t),e=ha.rgb(e);var n=t.r,r=t.g,o=t.b,i=e.r-n,a=e.g-r,u=e.b-o;return function(t){return"#"+wt(Math.round(n+i*t))+wt(Math.round(r+a*t))+wt(Math.round(o+u*t))}}function _r(t,e){var n,r={},o={};for(n in t)n in e?r[n]=Er(t[n],e[n]):o[n]=t[n];for(n in e)n in t||(o[n]=e[n]);return function(t){for(n in r)o[n]=r[n](t);return o}}function Mr(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Cr(t,e){var n,r,o,i=vl.lastIndex=gl.lastIndex=0,a=-1,u=[],l=[];for(t+="",e+="";(n=vl.exec(t))&&(r=gl.exec(e));)(o=r.index)>i&&(o=e.slice(i,o),u[a]?u[a]+=o:u[++a]=o),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,l.push({i:a,x:Mr(n,r)})),i=gl.lastIndex;return i<e.length&&(o=e.slice(i),u[a]?u[a]+=o:u[++a]=o),u.length<2?l[0]?(e=l[0].x,function(t){return e(t)+""}):function(){return e}:(e=l.length,function(t){for(var n,r=0;r<e;++r)u[(n=l[r]).i]=n.x(t);return u.join("")})}function Er(t,e){for(var n,r=ha.interpolators.length;--r>=0&&!(n=ha.interpolators[r](t,e)););return n}function wr(t,e){var n,r=[],o=[],i=t.length,a=e.length,u=Math.min(t.length,e.length);for(n=0;n<u;++n)r.push(Er(t[n],e[n]));for(;n<i;++n)o[n]=t[n];for(;n<a;++n)o[n]=e[n];return function(t){for(n=0;n<u;++n)o[n]=r[n](t);return o}}function Nr(t){return function(e){return e<=0?0:e>=1?1:t(e)}}function Sr(t){return function(e){return 1-t(1-e)}}function kr(t){return function(e){return.5*(e<.5?t(2*e):2-t(2-2*e))}}function Dr(t){return t*t}function Pr(t){return t*t*t}function Rr(t){if(t<=0)return 0;if(t>=1)return 1;var e=t*t,n=e*t;return 4*(t<.5?n:3*(t-e)+n-.75)}function Tr(t){return function(e){return Math.pow(e,t)}}function Ar(t){return 1-Math.cos(t*Ha)}function Ir(t){return Math.pow(2,10*(t-1))}function Or(t){return 1-Math.sqrt(1-t*t)}function Lr(t,e){var n;return arguments.length<2&&(e=.45),arguments.length?n=e/za*Math.asin(1/t):(t=1,n=e/4),function(r){return 1+t*Math.pow(2,-10*r)*Math.sin((r-n)*za/e)}}function Ur(t){return t||(t=1.70158),function(e){return e*e*((t+1)*e-t)}}function jr(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}function Fr(t,e){t=ha.hcl(t),e=ha.hcl(e);var n=t.h,r=t.c,o=t.l,i=e.h-n,a=e.c-r,u=e.l-o;return isNaN(a)&&(a=0,r=isNaN(r)?e.c:r),isNaN(i)?(i=0,n=isNaN(n)?e.h:n):i>180?i-=360:i<-180&&(i+=360),function(t){return vt(n+i*t,r+a*t,o+u*t)+""}}function Br(t,e){t=ha.hsl(t),e=ha.hsl(e);var n=t.h,r=t.s,o=t.l,i=e.h-n,a=e.s-r,u=e.l-o;return isNaN(a)&&(a=0,r=isNaN(r)?e.s:r),isNaN(i)?(i=0,n=isNaN(n)?e.h:n):i>180?i-=360:i<-180&&(i+=360),function(t){return ht(n+i*t,r+a*t,o+u*t)+""}}function qr(t,e){t=ha.lab(t),e=ha.lab(e);var n=t.l,r=t.a,o=t.b,i=e.l-n,a=e.a-r,u=e.b-o;return function(t){return mt(n+i*t,r+a*t,o+u*t)+""}}function Vr(t,e){return e-=t,function(n){return Math.round(t+e*n)}}function zr(t){var e=[t.a,t.b],n=[t.c,t.d],r=Hr(e),o=Wr(e,n),i=Hr(Kr(n,e,-o))||0;e[0]*n[1]<n[0]*e[1]&&(e[0]*=-1,e[1]*=-1,r*=-1,o*=-1),this.rotate=(r?Math.atan2(e[1],e[0]):Math.atan2(-n[0],n[1]))*Ya,this.translate=[t.e,t.f],this.scale=[r,i],this.skew=i?Math.atan2(o,i)*Ya:0}function Wr(t,e){return t[0]*e[0]+t[1]*e[1]}function Hr(t){var e=Math.sqrt(Wr(t,t));return e&&(t[0]/=e,t[1]/=e),e}function Kr(t,e,n){return t[0]+=n*e[0],t[1]+=n*e[1],t}function Yr(t){return t.length?t.pop()+",":""}function Gr(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var o=n.push("translate(",null,",",null,")");r.push({i:o-4,x:Mr(t[0],e[0])},{i:o-2,x:Mr(t[1],e[1])})}else(e[0]||e[1])&&n.push("translate("+e+")")}function Xr(t,e,n,r){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),r.push({i:n.push(Yr(n)+"rotate(",null,")")-2,x:Mr(t,e)})):e&&n.push(Yr(n)+"rotate("+e+")")}function Zr(t,e,n,r){t!==e?r.push({i:n.push(Yr(n)+"skewX(",null,")")-2,x:Mr(t,e)}):e&&n.push(Yr(n)+"skewX("+e+")")}function $r(t,e,n,r){if(t[0]!==e[0]||t[1]!==e[1]){var o=n.push(Yr(n)+"scale(",null,",",null,")");r.push({i:o-4,x:Mr(t[0],e[0])},{i:o-2,x:Mr(t[1],e[1])})}else 1===e[0]&&1===e[1]||n.push(Yr(n)+"scale("+e+")")}function Qr(t,e){var n=[],r=[];return t=ha.transform(t),e=ha.transform(e),Gr(t.translate,e.translate,n,r),Xr(t.rotate,e.rotate,n,r),Zr(t.skew,e.skew,n,r),$r(t.scale,e.scale,n,r),t=e=null,function(t){for(var e,o=-1,i=r.length;++o<i;)n[(e=r[o]).i]=e.x(t);return n.join("")}}function Jr(t,e){return e=(e-=t=+t)||1/e,function(n){return(n-t)/e}}function to(t,e){return e=(e-=t=+t)||1/e,function(n){return Math.max(0,Math.min(1,(n-t)/e))}}function eo(t){for(var e=t.source,n=t.target,r=ro(e,n),o=[e];e!==r;)e=e.parent,o.push(e);for(var i=o.length;n!==r;)o.splice(i,0,n),n=n.parent;return o}function no(t){for(var e=[],n=t.parent;null!=n;)e.push(t),t=n,n=n.parent;return e.push(t),e}function ro(t,e){if(t===e)return t;for(var n=no(t),r=no(e),o=n.pop(),i=r.pop(),a=null;o===i;)a=o,o=n.pop(),i=r.pop();return a}function oo(t){t.fixed|=2}function io(t){t.fixed&=-7}function ao(t){t.fixed|=4,t.px=t.x,t.py=t.y}function uo(t){t.fixed&=-5}function lo(t,e,n){var r=0,o=0;if(t.charge=0,!t.leaf)for(var i,a=t.nodes,u=a.length,l=-1;++l<u;)i=a[l],null!=i&&(lo(i,e,n),t.charge+=i.charge,r+=i.charge*i.cx,o+=i.charge*i.cy);if(t.point){t.leaf||(t.point.x+=Math.random()-.5,t.point.y+=Math.random()-.5);var s=e*n[t.point.index];t.charge+=t.pointCharge=s,r+=s*t.point.x,o+=s*t.point.y}t.cx=r/t.charge,t.cy=o/t.charge}function so(t,e){return ha.rebind(t,e,"sort","children","value"),t.nodes=t,t.links=go,t}function co(t,e){for(var n=[t];null!=(t=n.pop());)if(e(t),(o=t.children)&&(r=o.length))for(var r,o;--r>=0;)n.push(o[r])}function fo(t,e){for(var n=[t],r=[];null!=(t=n.pop());)if(r.push(t),(i=t.children)&&(o=i.length))for(var o,i,a=-1;++a<o;)n.push(i[a]);for(;null!=(t=r.pop());)e(t)}function po(t){return t.children}function ho(t){return t.value}function vo(t,e){return e.value-t.value}function go(t){return ha.merge(t.map(function(t){return(t.children||[]).map(function(e){return{source:t,target:e}})}))}function mo(t){return t.x}function yo(t){return t.y}function bo(t,e,n){t.y0=e,t.y=n}function xo(t){return ha.range(t.length)}function _o(t){for(var e=-1,n=t[0].length,r=[];++e<n;)r[e]=0;return r}function Mo(t){for(var e,n=1,r=0,o=t[0][1],i=t.length;n<i;++n)(e=t[n][1])>o&&(r=n,o=e);return r}function Co(t){return t.reduce(Eo,0)}function Eo(t,e){return t+e[1]}function wo(t,e){return No(t,Math.ceil(Math.log(e.length)/Math.LN2+1))}function No(t,e){for(var n=-1,r=+t[0],o=(t[1]-r)/e,i=[];++n<=e;)i[n]=o*n+r;return i}function So(t){return[ha.min(t),ha.max(t)]}function ko(t,e){return t.value-e.value}function Do(t,e){var n=t._pack_next;t._pack_next=e,e._pack_prev=t,e._pack_next=n,n._pack_prev=e}function Po(t,e){t._pack_next=e,e._pack_prev=t}function Ro(t,e){var n=e.x-t.x,r=e.y-t.y,o=t.r+e.r;return.999*o*o>n*n+r*r}function To(t){function e(t){c=Math.min(t.x-t.r,c),f=Math.max(t.x+t.r,f),p=Math.min(t.y-t.r,p),h=Math.max(t.y+t.r,h)}if((n=t.children)&&(s=n.length)){var n,r,o,i,a,u,l,s,c=1/0,f=-(1/0),p=1/0,h=-(1/0);if(n.forEach(Ao),r=n[0],r.x=-r.r,r.y=0,e(r),s>1&&(o=n[1],o.x=o.r,o.y=0,e(o),s>2))for(i=n[2],Lo(r,o,i),e(i),Do(r,i),r._pack_prev=i,Do(i,o),o=r._pack_next,a=3;a<s;a++){Lo(r,o,i=n[a]);var d=0,v=1,g=1;for(u=o._pack_next;u!==o;u=u._pack_next,v++)if(Ro(u,i)){d=1;break}if(1==d)for(l=r._pack_prev;l!==u._pack_prev&&!Ro(l,i);l=l._pack_prev,g++);d?(v<g||v==g&&o.r<r.r?Po(r,o=u):Po(r=l,o),a--):(Do(r,i),o=i,e(i))}var m=(c+f)/2,y=(p+h)/2,b=0;for(a=0;a<s;a++)i=n[a],i.x-=m,i.y-=y,b=Math.max(b,i.r+Math.sqrt(i.x*i.x+i.y*i.y));t.r=b,n.forEach(Io)}}function Ao(t){t._pack_next=t._pack_prev=t}function Io(t){delete t._pack_next,delete t._pack_prev}function Oo(t,e,n,r){var o=t.children;if(t.x=e+=r*t.x,t.y=n+=r*t.y,t.r*=r,o)for(var i=-1,a=o.length;++i<a;)Oo(o[i],e,n,r)}function Lo(t,e,n){var r=t.r+n.r,o=e.x-t.x,i=e.y-t.y;if(r&&(o||i)){var a=e.r+n.r,u=o*o+i*i;a*=a,r*=r;var l=.5+(r-a)/(2*u),s=Math.sqrt(Math.max(0,2*a*(r+u)-(r-=u)*r-a*a))/(2*u);n.x=t.x+l*o+s*i,n.y=t.y+l*i-s*o}else n.x=t.x+r,n.y=t.y}function Uo(t,e){return t.parent==e.parent?1:2}function jo(t){var e=t.children;return e.length?e[0]:t.t}function Fo(t){var e,n=t.children;return(e=n.length)?n[e-1]:t.t}function Bo(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}function qo(t){for(var e,n=0,r=0,o=t.children,i=o.length;--i>=0;)e=o[i],e.z+=n,e.m+=n,n+=e.s+(r+=e.c)}function Vo(t,e,n){return t.a.parent===e.parent?t.a:n}function zo(t){return 1+ha.max(t,function(t){return t.y})}function Wo(t){return t.reduce(function(t,e){return t+e.x},0)/t.length}function Ho(t){var e=t.children;return e&&e.length?Ho(e[0]):t}function Ko(t){var e,n=t.children;return n&&(e=n.length)?Ko(n[e-1]):t}function Yo(t){return{x:t.x,y:t.y,dx:t.dx,dy:t.dy}}function Go(t,e){var n=t.x+e[3],r=t.y+e[0],o=t.dx-e[1]-e[3],i=t.dy-e[0]-e[2];return o<0&&(n+=o/2,o=0),i<0&&(r+=i/2,i=0),{x:n,y:r,dx:o,dy:i}}function Xo(t){var e=t[0],n=t[t.length-1];return e<n?[e,n]:[n,e]}function Zo(t){
204
- return t.rangeExtent?t.rangeExtent():Xo(t.range())}function $o(t,e,n,r){var o=n(t[0],t[1]),i=r(e[0],e[1]);return function(t){return i(o(t))}}function Qo(t,e){var n,r=0,o=t.length-1,i=t[r],a=t[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),t[r]=e.floor(i),t[o]=e.ceil(a),t}function Jo(t){return t?{floor:function(e){return Math.floor(e/t)*t},ceil:function(e){return Math.ceil(e/t)*t}}:Sl}function ti(t,e,n,r){var o=[],i=[],a=0,u=Math.min(t.length,e.length)-1;for(t[u]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<=u;)o.push(n(t[a-1],t[a])),i.push(r(e[a-1],e[a]));return function(e){var n=ha.bisect(t,e,1,u)-1;return i[n](o[n](e))}}function ei(t,e,n,r){function o(){var o=Math.min(t.length,e.length)>2?ti:$o,l=r?to:Jr;return a=o(t,e,l,n),u=o(e,t,l,Er),i}function i(t){return a(t)}var a,u;return i.invert=function(t){return u(t)},i.domain=function(e){return arguments.length?(t=e.map(Number),o()):t},i.range=function(t){return arguments.length?(e=t,o()):e},i.rangeRound=function(t){return i.range(t).interpolate(Vr)},i.clamp=function(t){return arguments.length?(r=t,o()):r},i.interpolate=function(t){return arguments.length?(n=t,o()):n},i.ticks=function(e){return ii(t,e)},i.tickFormat=function(e,n){return ai(t,e,n)},i.nice=function(e){return ri(t,e),o()},i.copy=function(){return ei(t,e,n,r)},o()}function ni(t,e){return ha.rebind(t,e,"range","rangeRound","interpolate","clamp")}function ri(t,e){return Qo(t,Jo(oi(t,e)[2])),Qo(t,Jo(oi(t,e)[2])),t}function oi(t,e){null==e&&(e=10);var n=Xo(t),r=n[1]-n[0],o=Math.pow(10,Math.floor(Math.log(r/e)/Math.LN10)),i=e/r*o;return i<=.15?o*=10:i<=.35?o*=5:i<=.75&&(o*=2),n[0]=Math.ceil(n[0]/o)*o,n[1]=Math.floor(n[1]/o)*o+.5*o,n[2]=o,n}function ii(t,e){return ha.range.apply(ha,oi(t,e))}function ai(t,e,n){var r=oi(t,e);if(n){var o=vu.exec(n);if(o.shift(),"s"===o[8]){var i=ha.formatPrefix(Math.max(Ca(r[0]),Ca(r[1])));return o[7]||(o[7]="."+ui(i.scale(r[2]))),o[8]="f",n=ha.format(o.join("")),function(t){return n(i.scale(t))+i.symbol}}o[7]||(o[7]="."+li(o[8],r)),n=o.join("")}else n=",."+ui(r[2])+"f";return ha.format(n)}function ui(t){return-Math.floor(Math.log(t)/Math.LN10+.01)}function li(t,e){var n=ui(e[2]);return t in kl?Math.abs(n-ui(Math.max(Ca(e[0]),Ca(e[1]))))+ +("e"!==t):n-2*("%"===t)}function si(t,e,n,r){function o(t){return(n?Math.log(t<0?0:t):-Math.log(t>0?0:-t))/Math.log(e)}function i(t){return n?Math.pow(e,t):-Math.pow(e,-t)}function a(e){return t(o(e))}return a.invert=function(e){return i(t.invert(e))},a.domain=function(e){return arguments.length?(n=e[0]>=0,t.domain((r=e.map(Number)).map(o)),a):r},a.base=function(n){return arguments.length?(e=+n,t.domain(r.map(o)),a):e},a.nice=function(){var e=Qo(r.map(o),n?Math:Pl);return t.domain(e),r=e.map(i),a},a.ticks=function(){var t=Xo(r),a=[],u=t[0],l=t[1],s=Math.floor(o(u)),c=Math.ceil(o(l)),f=e%1?2:e;if(isFinite(c-s)){if(n){for(;s<c;s++)for(var p=1;p<f;p++)a.push(i(s)*p);a.push(i(s))}else for(a.push(i(s));s++<c;)for(var p=f-1;p>0;p--)a.push(i(s)*p);for(s=0;a[s]<u;s++);for(c=a.length;a[c-1]>l;c--);a=a.slice(s,c)}return a},a.tickFormat=function(t,n){if(!arguments.length)return Dl;arguments.length<2?n=Dl:"function"!=typeof n&&(n=ha.format(n));var r=Math.max(1,e*t/a.ticks().length);return function(t){var a=t/i(Math.round(o(t)));return a*e<e-.5&&(a*=e),a<=r?n(t):""}},a.copy=function(){return si(t.copy(),e,n,r)},ni(a,t)}function ci(t,e,n){function r(e){return t(o(e))}var o=fi(e),i=fi(1/e);return r.invert=function(e){return i(t.invert(e))},r.domain=function(e){return arguments.length?(t.domain((n=e.map(Number)).map(o)),r):n},r.ticks=function(t){return ii(n,t)},r.tickFormat=function(t,e){return ai(n,t,e)},r.nice=function(t){return r.domain(ri(n,t))},r.exponent=function(a){return arguments.length?(o=fi(e=a),i=fi(1/e),t.domain(n.map(o)),r):e},r.copy=function(){return ci(t.copy(),e,n)},ni(r,t)}function fi(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function pi(t,e){function n(n){return i[((o.get(n)||("range"===e.t?o.set(n,t.push(n)):NaN))-1)%i.length]}function r(e,n){return ha.range(t.length).map(function(t){return e+n*t})}var o,i,a;return n.domain=function(r){if(!arguments.length)return t;t=[],o=new d;for(var i,a=-1,u=r.length;++a<u;)o.has(i=r[a])||o.set(i,t.push(i));return n[e.t].apply(n,e.a)},n.range=function(t){return arguments.length?(i=t,a=0,e={t:"range",a:arguments},n):i},n.rangePoints=function(o,u){arguments.length<2&&(u=0);var l=o[0],s=o[1],c=t.length<2?(l=(l+s)/2,0):(s-l)/(t.length-1+u);return i=r(l+c*u/2,c),a=0,e={t:"rangePoints",a:arguments},n},n.rangeRoundPoints=function(o,u){arguments.length<2&&(u=0);var l=o[0],s=o[1],c=t.length<2?(l=s=Math.round((l+s)/2),0):(s-l)/(t.length-1+u)|0;return i=r(l+Math.round(c*u/2+(s-l-(t.length-1+u)*c)/2),c),a=0,e={t:"rangeRoundPoints",a:arguments},n},n.rangeBands=function(o,u,l){arguments.length<2&&(u=0),arguments.length<3&&(l=u);var s=o[1]<o[0],c=o[s-0],f=o[1-s],p=(f-c)/(t.length-u+2*l);return i=r(c+p*l,p),s&&i.reverse(),a=p*(1-u),e={t:"rangeBands",a:arguments},n},n.rangeRoundBands=function(o,u,l){arguments.length<2&&(u=0),arguments.length<3&&(l=u);var s=o[1]<o[0],c=o[s-0],f=o[1-s],p=Math.floor((f-c)/(t.length-u+2*l));return i=r(c+Math.round((f-c-(t.length-u)*p)/2),p),s&&i.reverse(),a=Math.round(p*(1-u)),e={t:"rangeRoundBands",a:arguments},n},n.rangeBand=function(){return a},n.rangeExtent=function(){return Xo(e.a[0])},n.copy=function(){return pi(t,e)},n.domain(t)}function hi(t,e){function n(){var n=0,i=e.length;for(o=[];++n<i;)o[n-1]=ha.quantile(t,n/i);return r}function r(t){if(!isNaN(t=+t))return e[ha.bisect(o,t)]}var o;return r.domain=function(e){return arguments.length?(t=e.map(l).filter(s).sort(u),n()):t},r.range=function(t){return arguments.length?(e=t,n()):e},r.quantiles=function(){return o},r.invertExtent=function(n){return n=e.indexOf(n),n<0?[NaN,NaN]:[n>0?o[n-1]:t[0],n<o.length?o[n]:t[t.length-1]]},r.copy=function(){return hi(t,e)},n()}function di(t,e,n){function r(e){return n[Math.max(0,Math.min(a,Math.floor(i*(e-t))))]}function o(){return i=n.length/(e-t),a=n.length-1,r}var i,a;return r.domain=function(n){return arguments.length?(t=+n[0],e=+n[n.length-1],o()):[t,e]},r.range=function(t){return arguments.length?(n=t,o()):n},r.invertExtent=function(e){return e=n.indexOf(e),e=e<0?NaN:e/i+t,[e,e+1/i]},r.copy=function(){return di(t,e,n)},o()}function vi(t,e){function n(n){if(n<=n)return e[ha.bisect(t,n)]}return n.domain=function(e){return arguments.length?(t=e,n):t},n.range=function(t){return arguments.length?(e=t,n):e},n.invertExtent=function(n){return n=e.indexOf(n),[t[n-1],t[n]]},n.copy=function(){return vi(t,e)},n}function gi(t){function e(t){return+t}return e.invert=e,e.domain=e.range=function(n){return arguments.length?(t=n.map(e),e):t},e.ticks=function(e){return ii(t,e)},e.tickFormat=function(e,n){return ai(t,e,n)},e.copy=function(){return gi(t)},e}function mi(){return 0}function yi(t){return t.innerRadius}function bi(t){return t.outerRadius}function xi(t){return t.startAngle}function _i(t){return t.endAngle}function Mi(t){return t&&t.padAngle}function Ci(t,e,n,r){return(t-n)*e-(e-r)*t>0?0:1}function Ei(t,e,n,r,o){var i=t[0]-e[0],a=t[1]-e[1],u=(o?r:-r)/Math.sqrt(i*i+a*a),l=u*a,s=-u*i,c=t[0]+l,f=t[1]+s,p=e[0]+l,h=e[1]+s,d=(c+p)/2,v=(f+h)/2,g=p-c,m=h-f,y=g*g+m*m,b=n-r,x=c*h-p*f,_=(m<0?-1:1)*Math.sqrt(Math.max(0,b*b*y-x*x)),M=(x*m-g*_)/y,C=(-x*g-m*_)/y,E=(x*m+g*_)/y,w=(-x*g+m*_)/y,N=M-d,S=C-v,k=E-d,D=w-v;return N*N+S*S>k*k+D*D&&(M=E,C=w),[[M-l,C-s],[M*n/b,C*n/b]]}function wi(t){function e(e){function a(){s.push("M",i(t(c),u))}for(var l,s=[],c=[],f=-1,p=e.length,h=Rt(n),d=Rt(r);++f<p;)o.call(this,l=e[f],f)?c.push([+h.call(this,l,f),+d.call(this,l,f)]):c.length&&(a(),c=[]);return c.length&&a(),s.length?s.join(""):null}var n=In,r=On,o=Ie,i=Ni,a=i.key,u=.7;return e.x=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(r=t,e):r},e.defined=function(t){return arguments.length?(o=t,e):o},e.interpolate=function(t){return arguments.length?(a="function"==typeof t?i=t:(i=Ll.get(t)||Ni).key,e):a},e.tension=function(t){return arguments.length?(u=t,e):u},e}function Ni(t){return t.length>1?t.join("L"):t+"Z"}function Si(t){return t.join("L")+"Z"}function ki(t){for(var e=0,n=t.length,r=t[0],o=[r[0],",",r[1]];++e<n;)o.push("H",(r[0]+(r=t[e])[0])/2,"V",r[1]);return n>1&&o.push("H",r[0]),o.join("")}function Di(t){for(var e=0,n=t.length,r=t[0],o=[r[0],",",r[1]];++e<n;)o.push("V",(r=t[e])[1],"H",r[0]);return o.join("")}function Pi(t){for(var e=0,n=t.length,r=t[0],o=[r[0],",",r[1]];++e<n;)o.push("H",(r=t[e])[0],"V",r[1]);return o.join("")}function Ri(t,e){return t.length<4?Ni(t):t[1]+Ii(t.slice(1,-1),Oi(t,e))}function Ti(t,e){return t.length<3?Si(t):t[0]+Ii((t.push(t[0]),t),Oi([t[t.length-2]].concat(t,[t[1]]),e))}function Ai(t,e){return t.length<3?Ni(t):t[0]+Ii(t,Oi(t,e))}function Ii(t,e){if(e.length<1||t.length!=e.length&&t.length!=e.length+2)return Ni(t);var n=t.length!=e.length,r="",o=t[0],i=t[1],a=e[0],u=a,l=1;if(n&&(r+="Q"+(i[0]-2*a[0]/3)+","+(i[1]-2*a[1]/3)+","+i[0]+","+i[1],o=t[1],l=2),e.length>1){u=e[1],i=t[l],l++,r+="C"+(o[0]+a[0])+","+(o[1]+a[1])+","+(i[0]-u[0])+","+(i[1]-u[1])+","+i[0]+","+i[1];for(var s=2;s<e.length;s++,l++)i=t[l],u=e[s],r+="S"+(i[0]-u[0])+","+(i[1]-u[1])+","+i[0]+","+i[1]}if(n){var c=t[l];r+="Q"+(i[0]+2*u[0]/3)+","+(i[1]+2*u[1]/3)+","+c[0]+","+c[1]}return r}function Oi(t,e){for(var n,r=[],o=(1-e)/2,i=t[0],a=t[1],u=1,l=t.length;++u<l;)n=i,i=a,a=t[u],r.push([o*(a[0]-n[0]),o*(a[1]-n[1])]);return r}function Li(t){if(t.length<3)return Ni(t);var e=1,n=t.length,r=t[0],o=r[0],i=r[1],a=[o,o,o,(r=t[1])[0]],u=[i,i,i,r[1]],l=[o,",",i,"L",Bi(Fl,a),",",Bi(Fl,u)];for(t.push(t[n-1]);++e<=n;)r=t[e],a.shift(),a.push(r[0]),u.shift(),u.push(r[1]),qi(l,a,u);return t.pop(),l.push("L",r),l.join("")}function Ui(t){if(t.length<4)return Ni(t);for(var e,n=[],r=-1,o=t.length,i=[0],a=[0];++r<3;)e=t[r],i.push(e[0]),a.push(e[1]);for(n.push(Bi(Fl,i)+","+Bi(Fl,a)),--r;++r<o;)e=t[r],i.shift(),i.push(e[0]),a.shift(),a.push(e[1]),qi(n,i,a);return n.join("")}function ji(t){for(var e,n,r=-1,o=t.length,i=o+4,a=[],u=[];++r<4;)n=t[r%o],a.push(n[0]),u.push(n[1]);for(e=[Bi(Fl,a),",",Bi(Fl,u)],--r;++r<i;)n=t[r%o],a.shift(),a.push(n[0]),u.shift(),u.push(n[1]),qi(e,a,u);return e.join("")}function Fi(t,e){var n=t.length-1;if(n)for(var r,o,i=t[0][0],a=t[0][1],u=t[n][0]-i,l=t[n][1]-a,s=-1;++s<=n;)r=t[s],o=s/n,r[0]=e*r[0]+(1-e)*(i+o*u),r[1]=e*r[1]+(1-e)*(a+o*l);return Li(t)}function Bi(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]}function qi(t,e,n){t.push("C",Bi(Ul,e),",",Bi(Ul,n),",",Bi(jl,e),",",Bi(jl,n),",",Bi(Fl,e),",",Bi(Fl,n))}function Vi(t,e){return(e[1]-t[1])/(e[0]-t[0])}function zi(t){for(var e=0,n=t.length-1,r=[],o=t[0],i=t[1],a=r[0]=Vi(o,i);++e<n;)r[e]=(a+(a=Vi(o=i,i=t[e+1])))/2;return r[e]=a,r}function Wi(t){for(var e,n,r,o,i=[],a=zi(t),u=-1,l=t.length-1;++u<l;)e=Vi(t[u],t[u+1]),Ca(e)<Ba?a[u]=a[u+1]=0:(n=a[u]/e,r=a[u+1]/e,o=n*n+r*r,o>9&&(o=3*e/Math.sqrt(o),a[u]=o*n,a[u+1]=o*r));for(u=-1;++u<=l;)o=(t[Math.min(l,u+1)][0]-t[Math.max(0,u-1)][0])/(6*(1+a[u]*a[u])),i.push([o||0,a[u]*o||0]);return i}function Hi(t){return t.length<3?Ni(t):t[0]+Ii(t,Wi(t))}function Ki(t){for(var e,n,r,o=-1,i=t.length;++o<i;)e=t[o],n=e[0],r=e[1]-Ha,e[0]=n*Math.cos(r),e[1]=n*Math.sin(r);return t}function Yi(t){function e(e){function l(){v.push("M",u(t(m),f),c,s(t(g.reverse()),f),"Z")}for(var p,h,d,v=[],g=[],m=[],y=-1,b=e.length,x=Rt(n),_=Rt(o),M=n===r?function(){return h}:Rt(r),C=o===i?function(){return d}:Rt(i);++y<b;)a.call(this,p=e[y],y)?(g.push([h=+x.call(this,p,y),d=+_.call(this,p,y)]),m.push([+M.call(this,p,y),+C.call(this,p,y)])):g.length&&(l(),g=[],m=[]);return g.length&&l(),v.length?v.join(""):null}var n=In,r=In,o=0,i=On,a=Ie,u=Ni,l=u.key,s=u,c="L",f=.7;return e.x=function(t){return arguments.length?(n=r=t,e):r},e.x0=function(t){return arguments.length?(n=t,e):n},e.x1=function(t){return arguments.length?(r=t,e):r},e.y=function(t){return arguments.length?(o=i=t,e):i},e.y0=function(t){return arguments.length?(o=t,e):o},e.y1=function(t){return arguments.length?(i=t,e):i},e.defined=function(t){return arguments.length?(a=t,e):a},e.interpolate=function(t){return arguments.length?(l="function"==typeof t?u=t:(u=Ll.get(t)||Ni).key,s=u.reverse||u,c=u.closed?"M":"L",e):l},e.tension=function(t){return arguments.length?(f=t,e):f},e}function Gi(t){return t.radius}function Xi(t){return[t.x,t.y]}function Zi(t){return function(){var e=t.apply(this,arguments),n=e[0],r=e[1]-Ha;return[n*Math.cos(r),n*Math.sin(r)]}}function $i(){return 64}function Qi(){return"circle"}function Ji(t){var e=Math.sqrt(t/Va);return"M0,"+e+"A"+e+","+e+" 0 1,1 0,"+-e+"A"+e+","+e+" 0 1,1 0,"+e+"Z"}function ta(t){return function(){var e,n,r;(e=this[t])&&(r=e[n=e.active])&&(r.timer.c=null,r.timer.t=NaN,--e.count?delete e[n]:delete this[t],e.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function ea(t,e,n){return ka(t,Kl),t.namespace=e,t.id=n,t}function na(t,e,n,r){var o=t.id,i=t.namespace;return G(t,"function"==typeof n?function(t,a,u){t[i][o].tween.set(e,r(n.call(t,t.__data__,a,u)))}:(n=r(n),function(t){t[i][o].tween.set(e,n)}))}function ra(t){return null==t&&(t=""),function(){this.textContent=t}}function oa(t){return null==t?"__transition__":"__transition_"+t+"__"}function ia(t,e,n,r,o){function i(t){var e=v.delay;return s.t=e+l,e<=t?a(t-e):void(s.c=a)}function a(n){var o=h.active,i=h[o];i&&(i.timer.c=null,i.timer.t=NaN,--h.count,delete h[o],i.event&&i.event.interrupt.call(t,t.__data__,i.index));for(var a in h)if(+a<r){var d=h[a];d.timer.c=null,d.timer.t=NaN,--h.count,delete h[a]}s.c=u,Lt(function(){return s.c&&u(n||1)&&(s.c=null,s.t=NaN),1},0,l),h.active=r,v.event&&v.event.start.call(t,t.__data__,e),p=[],v.tween.forEach(function(n,r){(r=r.call(t,t.__data__,e))&&p.push(r)}),f=v.ease,c=v.duration}function u(o){for(var i=o/c,a=f(i),u=p.length;u>0;)p[--u].call(t,a);if(i>=1)return v.event&&v.event.end.call(t,t.__data__,e),--h.count?delete h[r]:delete t[n],1}var l,s,c,f,p,h=t[n]||(t[n]={active:0,count:0}),v=h[r];v||(l=o.time,s=Lt(i,0,l),v=h[r]={tween:new d,time:l,timer:s,delay:o.delay,duration:o.duration,ease:o.ease,index:e},o=null,++h.count)}function aa(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate("+(isFinite(r)?r:n(t))+",0)"})}function ua(t,e,n){t.attr("transform",function(t){var r=e(t);return"translate(0,"+(isFinite(r)?r:n(t))+")"})}function la(t){return t.toISOString()}function sa(t,e,n){function r(e){return t(e)}function o(t,n){var r=t[1]-t[0],o=r/n,i=ha.bisect(es,o);return i==es.length?[e.year,oi(t.map(function(t){return t/31536e6}),n)[2]]:i?e[o/es[i-1]<es[i]/o?i-1:i]:[os,oi(t,n)[2]]}return r.invert=function(e){return ca(t.invert(e))},r.domain=function(e){return arguments.length?(t.domain(e),r):t.domain().map(ca)},r.nice=function(t,e){function n(n){return!isNaN(n)&&!t.range(n,ca(+n+1),e).length}var i=r.domain(),a=Xo(i),u=null==t?o(a,10):"number"==typeof t&&o(a,t);return u&&(t=u[0],e=u[1]),r.domain(Qo(i,e>1?{floor:function(e){for(;n(e=t.floor(e));)e=ca(e-1);return e},ceil:function(e){for(;n(e=t.ceil(e));)e=ca(+e+1);return e}}:t))},r.ticks=function(t,e){var n=Xo(r.domain()),i=null==t?o(n,10):"number"==typeof t?o(n,t):!t.range&&[{range:t},e];return i&&(t=i[0],e=i[1]),t.range(n[0],ca(+n[1]+1),e<1?1:e)},r.tickFormat=function(){return n},r.copy=function(){return sa(t.copy(),e,n)},ni(r,t)}function ca(t){return new Date(t)}function fa(t){return JSON.parse(t.responseText)}function pa(t){var e=ga.createRange();return e.selectNode(ga.body),e.createContextualFragment(t.responseText)}var ha={version:"3.5.17"},da=[].slice,va=function(t){return da.call(t)},ga=this.document;if(ga)try{va(ga.documentElement.childNodes)[0].nodeType}catch(t){va=function(t){for(var e=t.length,n=new Array(e);e--;)n[e]=t[e];return n}}if(Date.now||(Date.now=function(){return+new Date}),ga)try{ga.createElement("DIV").style.setProperty("opacity",0,"")}catch(t){var ma=this.Element.prototype,ya=ma.setAttribute,ba=ma.setAttributeNS,xa=this.CSSStyleDeclaration.prototype,_a=xa.setProperty;ma.setAttribute=function(t,e){ya.call(this,t,e+"")},ma.setAttributeNS=function(t,e,n){ba.call(this,t,e,n+"")},xa.setProperty=function(t,e,n){_a.call(this,t,e+"",n)}}ha.ascending=u,ha.descending=function(t,e){return e<t?-1:e>t?1:e>=t?0:NaN},ha.min=function(t,e){var n,r,o=-1,i=t.length;if(1===arguments.length){for(;++o<i;)if(null!=(r=t[o])&&r>=r){n=r;break}for(;++o<i;)null!=(r=t[o])&&n>r&&(n=r)}else{for(;++o<i;)if(null!=(r=e.call(t,t[o],o))&&r>=r){n=r;break}for(;++o<i;)null!=(r=e.call(t,t[o],o))&&n>r&&(n=r)}return n},ha.max=function(t,e){var n,r,o=-1,i=t.length;if(1===arguments.length){for(;++o<i;)if(null!=(r=t[o])&&r>=r){n=r;break}for(;++o<i;)null!=(r=t[o])&&r>n&&(n=r)}else{for(;++o<i;)if(null!=(r=e.call(t,t[o],o))&&r>=r){n=r;break}for(;++o<i;)null!=(r=e.call(t,t[o],o))&&r>n&&(n=r)}return n},ha.extent=function(t,e){var n,r,o,i=-1,a=t.length;if(1===arguments.length){for(;++i<a;)if(null!=(r=t[i])&&r>=r){n=o=r;break}for(;++i<a;)null!=(r=t[i])&&(n>r&&(n=r),o<r&&(o=r))}else{for(;++i<a;)if(null!=(r=e.call(t,t[i],i))&&r>=r){n=o=r;break}for(;++i<a;)null!=(r=e.call(t,t[i],i))&&(n>r&&(n=r),o<r&&(o=r))}return[n,o]},ha.sum=function(t,e){var n,r=0,o=t.length,i=-1;if(1===arguments.length)for(;++i<o;)s(n=+t[i])&&(r+=n);else for(;++i<o;)s(n=+e.call(t,t[i],i))&&(r+=n);return r},ha.mean=function(t,e){var n,r=0,o=t.length,i=-1,a=o;if(1===arguments.length)for(;++i<o;)s(n=l(t[i]))?r+=n:--a;else for(;++i<o;)s(n=l(e.call(t,t[i],i)))?r+=n:--a;if(a)return r/a},ha.quantile=function(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),o=+t[r-1],i=n-r;return i?o+i*(t[r]-o):o},ha.median=function(t,e){var n,r=[],o=t.length,i=-1;if(1===arguments.length)for(;++i<o;)s(n=l(t[i]))&&r.push(n);else for(;++i<o;)s(n=l(e.call(t,t[i],i)))&&r.push(n);if(r.length)return ha.quantile(r.sort(u),.5)},ha.variance=function(t,e){var n,r,o=t.length,i=0,a=0,u=-1,c=0;if(1===arguments.length)for(;++u<o;)s(n=l(t[u]))&&(r=n-i,i+=r/++c,a+=r*(n-i));else for(;++u<o;)s(n=l(e.call(t,t[u],u)))&&(r=n-i,i+=r/++c,a+=r*(n-i));if(c>1)return a/(c-1)},ha.deviation=function(){var t=ha.variance.apply(this,arguments);return t?Math.sqrt(t):t};var Ma=c(u);ha.bisectLeft=Ma.left,ha.bisect=ha.bisectRight=Ma.right,ha.bisector=function(t){return c(1===t.length?function(e,n){return u(t(e),n)}:t)},ha.shuffle=function(t,e,n){(i=arguments.length)<3&&(n=t.length,i<2&&(e=0));for(var r,o,i=n-e;i;)o=Math.random()*i--|0,r=t[i+e],t[i+e]=t[o+e],t[o+e]=r;return t},ha.permute=function(t,e){for(var n=e.length,r=new Array(n);n--;)r[n]=t[e[n]];return r},ha.pairs=function(t){for(var e,n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=[e=o,o=t[++n]];return i},ha.transpose=function(t){if(!(o=t.length))return[];for(var e=-1,n=ha.min(t,f),r=new Array(n);++e<n;)for(var o,i=-1,a=r[e]=new Array(o);++i<o;)a[i]=t[i][e];return r},ha.zip=function(){return ha.transpose(arguments)},ha.keys=function(t){var e=[];for(var n in t)e.push(n);return e},ha.values=function(t){var e=[];for(var n in t)e.push(t[n]);return e},ha.entries=function(t){var e=[];for(var n in t)e.push({key:n,value:t[n]});return e},ha.merge=function(t){for(var e,n,r,o=t.length,i=-1,a=0;++i<o;)a+=t[i].length;for(n=new Array(a);--o>=0;)for(r=t[o],e=r.length;--e>=0;)n[--a]=r[e];return n};var Ca=Math.abs;ha.range=function(t,e,n){if(arguments.length<3&&(n=1,arguments.length<2&&(e=t,t=0)),(e-t)/n===1/0)throw new Error("infinite range");var r,o=[],i=p(Ca(n)),a=-1;if(t*=i,e*=i,n*=i,n<0)for(;(r=t+n*++a)>e;)o.push(r/i);else for(;(r=t+n*++a)<e;)o.push(r/i);return o},ha.map=function(t,e){var n=new d;if(t instanceof d)t.forEach(function(t,e){n.set(t,e)});else if(Array.isArray(t)){var r,o=-1,i=t.length;if(1===arguments.length)for(;++o<i;)n.set(o,t[o]);else for(;++o<i;)n.set(e.call(t,r=t[o],o),r)}else for(var a in t)n.set(a,t[a]);return n};var Ea="__proto__",wa="\0";h(d,{has:m,get:function(t){return this._[v(t)]},set:function(t,e){return this._[v(t)]=e},remove:y,keys:b,values:function(){var t=[];for(var e in this._)t.push(this._[e]);return t},entries:function(){var t=[];for(var e in this._)t.push({key:g(e),value:this._[e]});return t},size:x,empty:_,forEach:function(t){for(var e in this._)t.call(this,g(e),this._[e])}}),ha.nest=function(){function t(e,a,u){if(u>=i.length)return r?r.call(o,a):n?a.sort(n):a;for(var l,s,c,f,p=-1,h=a.length,v=i[u++],g=new d;++p<h;)(f=g.get(l=v(s=a[p])))?f.push(s):g.set(l,[s]);return e?(s=e(),c=function(n,r){s.set(n,t(e,r,u))}):(s={},c=function(n,r){s[n]=t(e,r,u)}),g.forEach(c),s}function e(t,n){if(n>=i.length)return t;var r=[],o=a[n++];return t.forEach(function(t,o){r.push({key:t,values:e(o,n)})}),o?r.sort(function(t,e){return o(t.key,e.key)}):r}var n,r,o={},i=[],a=[];return o.map=function(e,n){return t(n,e,0)},o.entries=function(n){return e(t(ha.map,n,0),0)},o.key=function(t){return i.push(t),o},o.sortKeys=function(t){return a[i.length-1]=t,o},o.sortValues=function(t){return n=t,o},o.rollup=function(t){return r=t,o},o},ha.set=function(t){var e=new M;if(t)for(var n=0,r=t.length;n<r;++n)e.add(t[n]);return e},h(M,{has:m,add:function(t){return this._[v(t+="")]=!0,t},remove:y,values:b,size:x,empty:_,forEach:function(t){for(var e in this._)t.call(this,g(e))}}),ha.behavior={},ha.rebind=function(t,e){for(var n,r=1,o=arguments.length;++r<o;)t[n=arguments[r]]=E(t,e,e[n]);return t};var Na=["webkit","ms","moz","Moz","o","O"];ha.dispatch=function(){for(var t=new S,e=-1,n=arguments.length;++e<n;)t[arguments[e]]=k(t);return t},S.prototype.on=function(t,e){var n=t.indexOf("."),r="";if(n>=0&&(r=t.slice(n+1),t=t.slice(0,n)),t)return arguments.length<2?this[t].on(r):this[t].on(r,e);if(2===arguments.length){if(null==e)for(t in this)this.hasOwnProperty(t)&&this[t].on(r,null);return this}},ha.event=null,ha.requote=function(t){return t.replace(Sa,"\\$&")};var Sa=/[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g,ka={}.__proto__?function(t,e){t.__proto__=e}:function(t,e){for(var n in e)t[n]=e[n]},Da=function(t,e){return e.querySelector(t)},Pa=function(t,e){return e.querySelectorAll(t)},Ra=function(t,e){var n=t.matches||t[w(t,"matchesSelector")];return(Ra=function(t,e){return n.call(t,e)})(t,e)};"function"==typeof Sizzle&&(Da=function(t,e){return Sizzle(t,e)[0]||null},Pa=Sizzle,Ra=Sizzle.matchesSelector),ha.selection=function(){return ha.select(ga.documentElement)};var Ta=ha.selection.prototype=[];Ta.select=function(t){var e,n,r,o,i=[];t=A(t);for(var a=-1,u=this.length;++a<u;){i.push(e=[]),e.parentNode=(r=this[a]).parentNode;for(var l=-1,s=r.length;++l<s;)(o=r[l])?(e.push(n=t.call(o,o.__data__,l,a)),n&&"__data__"in o&&(n.__data__=o.__data__)):e.push(null)}return T(i)},Ta.selectAll=function(t){var e,n,r=[];t=I(t);for(var o=-1,i=this.length;++o<i;)for(var a=this[o],u=-1,l=a.length;++u<l;)(n=a[u])&&(r.push(e=va(t.call(n,n.__data__,u,o))),e.parentNode=n);return T(r)};var Aa="http://www.w3.org/1999/xhtml",Ia={svg:"http://www.w3.org/2000/svg",xhtml:Aa,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};ha.ns={prefix:Ia,qualify:function(t){var e=t.indexOf(":"),n=t;return e>=0&&"xmlns"!==(n=t.slice(0,e))&&(t=t.slice(e+1)),Ia.hasOwnProperty(n)?{space:Ia[n],local:t}:t}},Ta.attr=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node();return t=ha.ns.qualify(t),t.local?n.getAttributeNS(t.space,t.local):n.getAttribute(t)}for(e in t)this.each(O(e,t[e]));return this}return this.each(O(t,e))},Ta.classed=function(t,e){if(arguments.length<2){if("string"==typeof t){var n=this.node(),r=(t=j(t)).length,o=-1;if(e=n.classList){for(;++o<r;)if(!e.contains(t[o]))return!1}else for(e=n.getAttribute("class");++o<r;)if(!U(t[o]).test(e))return!1;return!0}for(e in t)this.each(F(e,t[e]));return this}return this.each(F(t,e))},Ta.style=function(t,e,n){var r=arguments.length;if(r<3){if("string"!=typeof t){r<2&&(e="");for(n in t)this.each(q(n,t[n],e));return this}if(r<2){var o=this.node();return a(o).getComputedStyle(o,null).getPropertyValue(t)}n=""}return this.each(q(t,e,n))},Ta.property=function(t,e){if(arguments.length<2){if("string"==typeof t)return this.node()[t];for(e in t)this.each(V(e,t[e]));return this}return this.each(V(t,e))},Ta.text=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}:null==t?function(){this.textContent=""}:function(){this.textContent=t}):this.node().textContent},Ta.html=function(t){return arguments.length?this.each("function"==typeof t?function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}:null==t?function(){this.innerHTML=""}:function(){this.innerHTML=t}):this.node().innerHTML},Ta.append=function(t){return t=z(t),this.select(function(){return this.appendChild(t.apply(this,arguments))})},Ta.insert=function(t,e){return t=z(t),e=A(e),this.select(function(){return this.insertBefore(t.apply(this,arguments),e.apply(this,arguments)||null)})},Ta.remove=function(){return this.each(W)},Ta.data=function(t,e){function n(t,n){var r,o,i,a=t.length,c=n.length,f=Math.min(a,c),p=new Array(c),h=new Array(c),v=new Array(a);if(e){var g,m=new d,y=new Array(a);for(r=-1;++r<a;)(o=t[r])&&(m.has(g=e.call(o,o.__data__,r))?v[r]=o:m.set(g,o),y[r]=g);for(r=-1;++r<c;)(o=m.get(g=e.call(n,i=n[r],r)))?o!==!0&&(p[r]=o,o.__data__=i):h[r]=H(i),m.set(g,!0);for(r=-1;++r<a;)r in y&&m.get(y[r])!==!0&&(v[r]=t[r])}else{for(r=-1;++r<f;)o=t[r],i=n[r],o?(o.__data__=i,p[r]=o):h[r]=H(i);for(;r<c;++r)h[r]=H(n[r]);for(;r<a;++r)v[r]=t[r]}h.update=p,h.parentNode=p.parentNode=v.parentNode=t.parentNode,u.push(h),l.push(p),s.push(v)}var r,o,i=-1,a=this.length;if(!arguments.length){for(t=new Array(a=(r=this[0]).length);++i<a;)(o=r[i])&&(t[i]=o.__data__);return t}var u=X([]),l=T([]),s=T([]);if("function"==typeof t)for(;++i<a;)n(r=this[i],t.call(r,r.parentNode.__data__,i));else for(;++i<a;)n(r=this[i],t);return l.enter=function(){return u},l.exit=function(){return s},l},Ta.datum=function(t){return arguments.length?this.property("__data__",t):this.property("__data__")},Ta.filter=function(t){var e,n,r,o=[];"function"!=typeof t&&(t=K(t));for(var i=0,a=this.length;i<a;i++){o.push(e=[]),e.parentNode=(n=this[i]).parentNode;for(var u=0,l=n.length;u<l;u++)(r=n[u])&&t.call(r,r.__data__,u,i)&&e.push(r)}return T(o)},Ta.order=function(){for(var t=-1,e=this.length;++t<e;)for(var n,r=this[t],o=r.length-1,i=r[o];--o>=0;)(n=r[o])&&(i&&i!==n.nextSibling&&i.parentNode.insertBefore(n,i),i=n);return this},Ta.sort=function(t){t=Y.apply(this,arguments);for(var e=-1,n=this.length;++e<n;)this[e].sort(t);return this.order()},Ta.each=function(t){return G(this,function(e,n,r){t.call(e,e.__data__,n,r)})},Ta.call=function(t){var e=va(arguments);return t.apply(e[0]=this,e),this},Ta.empty=function(){return!this.node()},Ta.node=function(){for(var t=0,e=this.length;t<e;t++)for(var n=this[t],r=0,o=n.length;r<o;r++){var i=n[r];if(i)return i}return null},Ta.size=function(){var t=0;return G(this,function(){++t}),t};var Oa=[];ha.selection.enter=X,ha.selection.enter.prototype=Oa,Oa.append=Ta.append,Oa.empty=Ta.empty,Oa.node=Ta.node,Oa.call=Ta.call,Oa.size=Ta.size,Oa.select=function(t){for(var e,n,r,o,i,a=[],u=-1,l=this.length;++u<l;){r=(o=this[u]).update,a.push(e=[]),e.parentNode=o.parentNode;for(var s=-1,c=o.length;++s<c;)(i=o[s])?(e.push(r[s]=n=t.call(o.parentNode,i.__data__,s,u)),n.__data__=i.__data__):e.push(null)}return T(a)},Oa.insert=function(t,e){return arguments.length<2&&(e=Z(this)),Ta.insert.call(this,t,e)},ha.select=function(t){var e;return"string"==typeof t?(e=[Da(t,ga)],e.parentNode=ga.documentElement):(e=[t],e.parentNode=i(t)),T([e])},ha.selectAll=function(t){var e;return"string"==typeof t?(e=va(Pa(t,ga)),e.parentNode=ga.documentElement):(e=va(t),e.parentNode=null),T([e])},Ta.on=function(t,e,n){var r=arguments.length;if(r<3){if("string"!=typeof t){r<2&&(e=!1);for(n in t)this.each($(n,t[n],e));return this}if(r<2)return(r=this.node()["__on"+t])&&r._;n=!1}return this.each($(t,e,n))};var La=ha.map({mouseenter:"mouseover",mouseleave:"mouseout"});ga&&La.forEach(function(t){"on"+t in ga&&La.remove(t)});var Ua,ja=0;ha.mouse=function(t){return et(t,P())};var Fa=this.navigator&&/WebKit/.test(this.navigator.userAgent)?-1:0;ha.touch=function(t,e,n){if(arguments.length<3&&(n=e,e=P().changedTouches),e)for(var r,o=0,i=e.length;o<i;++o)if((r=e[o]).identifier===n)return et(t,r)},ha.behavior.drag=function(){function t(){this.on("mousedown.drag",o).on("touchstart.drag",i)}function e(t,e,o,i,a){return function(){function u(){var t,n,r=e(p,v);r&&(t=r[0]-b[0],n=r[1]-b[1],d|=t|n,b=r,h({type:"drag",x:r[0]+s[0],y:r[1]+s[1],dx:t,dy:n}))}function l(){e(p,v)&&(m.on(i+g,null).on(a+g,null),y(d),h({type:"dragend"}))}var s,c=this,f=ha.event.target.correspondingElement||ha.event.target,p=c.parentNode,h=n.of(c,arguments),d=0,v=t(),g=".drag"+(null==v?"":"-"+v),m=ha.select(o(f)).on(i+g,u).on(a+g,l),y=tt(f),b=e(p,v);r?(s=r.apply(c,arguments),s=[s.x-b[0],s.y-b[1]]):s=[0,0],h({type:"dragstart"})}}var n=R(t,"drag","dragstart","dragend"),r=null,o=e(N,ha.mouse,a,"mousemove","mouseup"),i=e(nt,ha.touch,C,"touchmove","touchend");return t.origin=function(e){return arguments.length?(r=e,t):r},ha.rebind(t,n,"on")},ha.touches=function(t,e){return arguments.length<2&&(e=P().touches),e?va(e).map(function(e){var n=et(t,e);return n.identifier=e.identifier,n}):[]};var Ba=1e-6,qa=Ba*Ba,Va=Math.PI,za=2*Va,Wa=za-Ba,Ha=Va/2,Ka=Va/180,Ya=180/Va,Ga=Math.SQRT2,Xa=2,Za=4;ha.interpolateZoom=function(t,e){var n,r,o=t[0],i=t[1],a=t[2],u=e[0],l=e[1],s=e[2],c=u-o,f=l-i,p=c*c+f*f;if(p<qa)r=Math.log(s/a)/Ga,n=function(t){return[o+t*c,i+t*f,a*Math.exp(Ga*t*r)]};else{var h=Math.sqrt(p),d=(s*s-a*a+Za*p)/(2*a*Xa*h),v=(s*s-a*a-Za*p)/(2*s*Xa*h),g=Math.log(Math.sqrt(d*d+1)-d),m=Math.log(Math.sqrt(v*v+1)-v);r=(m-g)/Ga,n=function(t){var e=t*r,n=lt(g),u=a/(Xa*h)*(n*st(Ga*e+g)-ut(g));return[o+u*c,i+u*f,a*n/lt(Ga*e+g)]}}return n.duration=1e3*r,n},ha.behavior.zoom=function(){function t(t){t.on(P,f).on(Qa+".zoom",h).on("dblclick.zoom",d).on(I,p)}function e(t){return[(t[0]-E.x)/E.k,(t[1]-E.y)/E.k]}function n(t){return[t[0]*E.k+E.x,t[1]*E.k+E.y]}function r(t){E.k=Math.max(N[0],Math.min(N[1],t))}function o(t,e){e=n(e),E.x+=t[0]-e[0],E.y+=t[1]-e[1]}function i(e,n,i,a){e.__chart__={x:E.x,y:E.y,k:E.k},r(Math.pow(2,a)),o(g=n,i),e=ha.select(e),S>0&&(e=e.transition().duration(S)),e.call(t.event)}function u(){_&&_.domain(x.range().map(function(t){return(t-E.x)/E.k}).map(x.invert)),C&&C.domain(M.range().map(function(t){return(t-E.y)/E.k}).map(M.invert))}function l(t){k++||t({type:"zoomstart"})}function s(t){u(),t({type:"zoom",scale:E.k,translate:[E.x,E.y]})}function c(t){--k||(t({type:"zoomend"}),g=null)}function f(){function t(){u=1,o(ha.mouse(r),p),s(i)}function n(){f.on(T,null).on(A,null),h(u),c(i)}var r=this,i=O.of(r,arguments),u=0,f=ha.select(a(r)).on(T,t).on(A,n),p=e(ha.mouse(r)),h=tt(r);Hl.call(r),l(i)}function p(){function t(){var t=ha.touches(d);return h=E.k,t.forEach(function(t){t.identifier in g&&(g[t.identifier]=e(t))}),t}function n(){var e=ha.event.target;ha.select(e).on(x,a).on(_,u),M.push(e);for(var n=ha.event.changedTouches,r=0,o=n.length;r<o;++r)g[n[r].identifier]=null;var l=t(),s=Date.now();if(1===l.length){if(s-b<500){var c=l[0];i(d,c,g[c.identifier],Math.floor(Math.log(E.k)/Math.LN2)+1),D()}b=s}else if(l.length>1){var c=l[0],f=l[1],p=c[0]-f[0],h=c[1]-f[1];m=p*p+h*h}}function a(){var t,e,n,i,a=ha.touches(d);Hl.call(d);for(var u=0,l=a.length;u<l;++u,i=null)if(n=a[u],i=g[n.identifier]){if(e)break;t=n,e=i}if(i){var c=(c=n[0]-t[0])*c+(c=n[1]-t[1])*c,f=m&&Math.sqrt(c/m);t=[(t[0]+n[0])/2,(t[1]+n[1])/2],e=[(e[0]+i[0])/2,(e[1]+i[1])/2],r(f*h)}b=null,o(t,e),s(v)}function u(){if(ha.event.touches.length){for(var e=ha.event.changedTouches,n=0,r=e.length;n<r;++n)delete g[e[n].identifier];for(var o in g)return void t()}ha.selectAll(M).on(y,null),C.on(P,f).on(I,p),w(),c(v)}var h,d=this,v=O.of(d,arguments),g={},m=0,y=".zoom-"+ha.event.changedTouches[0].identifier,x="touchmove"+y,_="touchend"+y,M=[],C=ha.select(d),w=tt(d);n(),l(v),C.on(P,null).on(I,n)}function h(){var t=O.of(this,arguments);y?clearTimeout(y):(Hl.call(this),v=e(g=m||ha.mouse(this)),l(t)),y=setTimeout(function(){y=null,
205
- c(t)},50),D(),r(Math.pow(2,.002*$a())*E.k),o(g,v),s(t)}function d(){var t=ha.mouse(this),n=Math.log(E.k)/Math.LN2;i(this,t,e(t),ha.event.shiftKey?Math.ceil(n)-1:Math.floor(n)+1)}var v,g,m,y,b,x,_,M,C,E={x:0,y:0,k:1},w=[960,500],N=Ja,S=250,k=0,P="mousedown.zoom",T="mousemove.zoom",A="mouseup.zoom",I="touchstart.zoom",O=R(t,"zoomstart","zoom","zoomend");return Qa||(Qa="onwheel"in ga?($a=function(){return-ha.event.deltaY*(ha.event.deltaMode?120:1)},"wheel"):"onmousewheel"in ga?($a=function(){return ha.event.wheelDelta},"mousewheel"):($a=function(){return-ha.event.detail},"MozMousePixelScroll")),t.event=function(t){t.each(function(){var t=O.of(this,arguments),e=E;zl?ha.select(this).transition().each("start.zoom",function(){E=this.__chart__||{x:0,y:0,k:1},l(t)}).tween("zoom:zoom",function(){var n=w[0],r=w[1],o=g?g[0]:n/2,i=g?g[1]:r/2,a=ha.interpolateZoom([(o-E.x)/E.k,(i-E.y)/E.k,n/E.k],[(o-e.x)/e.k,(i-e.y)/e.k,n/e.k]);return function(e){var r=a(e),u=n/r[2];this.__chart__=E={x:o-r[0]*u,y:i-r[1]*u,k:u},s(t)}}).each("interrupt.zoom",function(){c(t)}).each("end.zoom",function(){c(t)}):(this.__chart__=E,l(t),s(t),c(t))})},t.translate=function(e){return arguments.length?(E={x:+e[0],y:+e[1],k:E.k},u(),t):[E.x,E.y]},t.scale=function(e){return arguments.length?(E={x:E.x,y:E.y,k:null},r(+e),u(),t):E.k},t.scaleExtent=function(e){return arguments.length?(N=null==e?Ja:[+e[0],+e[1]],t):N},t.center=function(e){return arguments.length?(m=e&&[+e[0],+e[1]],t):m},t.size=function(e){return arguments.length?(w=e&&[+e[0],+e[1]],t):w},t.duration=function(e){return arguments.length?(S=+e,t):S},t.x=function(e){return arguments.length?(_=e,x=e.copy(),E={x:0,y:0,k:1},t):_},t.y=function(e){return arguments.length?(C=e,M=e.copy(),E={x:0,y:0,k:1},t):C},ha.rebind(t,O,"on")};var $a,Qa,Ja=[0,1/0];ha.color=ft,ft.prototype.toString=function(){return this.rgb()+""},ha.hsl=pt;var tu=pt.prototype=new ft;tu.brighter=function(t){return t=Math.pow(.7,arguments.length?t:1),new pt(this.h,this.s,this.l/t)},tu.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new pt(this.h,this.s,t*this.l)},tu.rgb=function(){return ht(this.h,this.s,this.l)},ha.hcl=dt;var eu=dt.prototype=new ft;eu.brighter=function(t){return new dt(this.h,this.c,Math.min(100,this.l+nu*(arguments.length?t:1)))},eu.darker=function(t){return new dt(this.h,this.c,Math.max(0,this.l-nu*(arguments.length?t:1)))},eu.rgb=function(){return vt(this.h,this.c,this.l).rgb()},ha.lab=gt;var nu=18,ru=.95047,ou=1,iu=1.08883,au=gt.prototype=new ft;au.brighter=function(t){return new gt(Math.min(100,this.l+nu*(arguments.length?t:1)),this.a,this.b)},au.darker=function(t){return new gt(Math.max(0,this.l-nu*(arguments.length?t:1)),this.a,this.b)},au.rgb=function(){return mt(this.l,this.a,this.b)},ha.rgb=Mt;var uu=Mt.prototype=new ft;uu.brighter=function(t){t=Math.pow(.7,arguments.length?t:1);var e=this.r,n=this.g,r=this.b,o=30;return e||n||r?(e&&e<o&&(e=o),n&&n<o&&(n=o),r&&r<o&&(r=o),new Mt(Math.min(255,e/t),Math.min(255,n/t),Math.min(255,r/t))):new Mt(o,o,o)},uu.darker=function(t){return t=Math.pow(.7,arguments.length?t:1),new Mt(t*this.r,t*this.g,t*this.b)},uu.hsl=function(){return St(this.r,this.g,this.b)},uu.toString=function(){return"#"+wt(this.r)+wt(this.g)+wt(this.b)};var lu=ha.map({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074});lu.forEach(function(t,e){lu.set(t,Ct(e))}),ha.functor=Rt,ha.xhr=Tt(C),ha.dsv=function(t,e){function n(t,n,i){arguments.length<3&&(i=n,n=null);var a=At(t,e,null==n?r:o(n),i);return a.row=function(t){return arguments.length?a.response(null==(n=t)?r:o(t)):n},a}function r(t){return n.parse(t.responseText)}function o(t){return function(e){return n.parse(e.responseText,t)}}function i(e){return e.map(a).join(t)}function a(t){return u.test(t)?'"'+t.replace(/\"/g,'""')+'"':t}var u=new RegExp('["'+t+"\n]"),l=t.charCodeAt(0);return n.parse=function(t,e){var r;return n.parseRows(t,function(t,n){if(r)return r(t,n-1);var o=new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+"]"}).join(",")+"}");r=e?function(t,n){return e(o(t),n)}:o})},n.parseRows=function(t,e){function n(){if(c>=s)return a;if(o)return o=!1,i;var e=c;if(34===t.charCodeAt(e)){for(var n=e;n++<s;)if(34===t.charCodeAt(n)){if(34!==t.charCodeAt(n+1))break;++n}c=n+2;var r=t.charCodeAt(n+1);return 13===r?(o=!0,10===t.charCodeAt(n+2)&&++c):10===r&&(o=!0),t.slice(e+1,n).replace(/""/g,'"')}for(;c<s;){var r=t.charCodeAt(c++),u=1;if(10===r)o=!0;else if(13===r)o=!0,10===t.charCodeAt(c)&&(++c,++u);else if(r!==l)continue;return t.slice(e,c-u)}return t.slice(e)}for(var r,o,i={},a={},u=[],s=t.length,c=0,f=0;(r=n())!==a;){for(var p=[];r!==i&&r!==a;)p.push(r),r=n();e&&null==(p=e(p,f++))||u.push(p)}return u},n.format=function(e){if(Array.isArray(e[0]))return n.formatRows(e);var r=new M,o=[];return e.forEach(function(t){for(var e in t)r.has(e)||o.push(r.add(e))}),[o.map(a).join(t)].concat(e.map(function(e){return o.map(function(t){return a(e[t])}).join(t)})).join("\n")},n.formatRows=function(t){return t.map(i).join("\n")},n},ha.csv=ha.dsv(",","text/csv"),ha.tsv=ha.dsv("\t","text/tab-separated-values");var su,cu,fu,pu,hu=this[w(this,"requestAnimationFrame")]||function(t){setTimeout(t,17)};ha.timer=function(){Lt.apply(this,arguments)},ha.timer.flush=function(){jt(),Ft()},ha.round=function(t,e){return e?Math.round(t*(e=Math.pow(10,e)))/e:Math.round(t)};var du=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"].map(qt);ha.formatPrefix=function(t,e){var n=0;return(t=+t)&&(t<0&&(t*=-1),e&&(t=ha.round(t,Bt(t,e))),n=1+Math.floor(1e-12+Math.log(t)/Math.LN10),n=Math.max(-24,Math.min(24,3*Math.floor((n-1)/3)))),du[8+n/3]};var vu=/(?:([^{])?([<>=^]))?([+\- ])?([$#])?(0)?(\d+)?(,)?(\.-?\d+)?([a-z%])?/i,gu=ha.map({b:function(t){return t.toString(2)},c:function(t){return String.fromCharCode(t)},o:function(t){return t.toString(8)},x:function(t){return t.toString(16)},X:function(t){return t.toString(16).toUpperCase()},g:function(t,e){return t.toPrecision(e)},e:function(t,e){return t.toExponential(e)},f:function(t,e){return t.toFixed(e)},r:function(t,e){return(t=ha.round(t,Bt(t,e))).toFixed(Math.max(0,Math.min(20,Bt(t*(1+1e-15),e))))}}),mu=ha.time={},yu=Date;Wt.prototype={getDate:function(){return this._.getUTCDate()},getDay:function(){return this._.getUTCDay()},getFullYear:function(){return this._.getUTCFullYear()},getHours:function(){return this._.getUTCHours()},getMilliseconds:function(){return this._.getUTCMilliseconds()},getMinutes:function(){return this._.getUTCMinutes()},getMonth:function(){return this._.getUTCMonth()},getSeconds:function(){return this._.getUTCSeconds()},getTime:function(){return this._.getTime()},getTimezoneOffset:function(){return 0},valueOf:function(){return this._.valueOf()},setDate:function(){bu.setUTCDate.apply(this._,arguments)},setDay:function(){bu.setUTCDay.apply(this._,arguments)},setFullYear:function(){bu.setUTCFullYear.apply(this._,arguments)},setHours:function(){bu.setUTCHours.apply(this._,arguments)},setMilliseconds:function(){bu.setUTCMilliseconds.apply(this._,arguments)},setMinutes:function(){bu.setUTCMinutes.apply(this._,arguments)},setMonth:function(){bu.setUTCMonth.apply(this._,arguments)},setSeconds:function(){bu.setUTCSeconds.apply(this._,arguments)},setTime:function(){bu.setTime.apply(this._,arguments)}};var bu=Date.prototype;mu.year=Ht(function(t){return t=mu.day(t),t.setMonth(0,1),t},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t){return t.getFullYear()}),mu.years=mu.year.range,mu.years.utc=mu.year.utc.range,mu.day=Ht(function(t){var e=new yu(2e3,0);return e.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),e},function(t,e){t.setDate(t.getDate()+e)},function(t){return t.getDate()-1}),mu.days=mu.day.range,mu.days.utc=mu.day.utc.range,mu.dayOfYear=function(t){var e=mu.year(t);return Math.floor((t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5)},["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach(function(t,e){e=7-e;var n=mu[t]=Ht(function(t){return(t=mu.day(t)).setDate(t.getDate()-(t.getDay()+e)%7),t},function(t,e){t.setDate(t.getDate()+7*Math.floor(e))},function(t){var n=mu.year(t).getDay();return Math.floor((mu.dayOfYear(t)+(n+e)%7)/7)-(n!==e)});mu[t+"s"]=n.range,mu[t+"s"].utc=n.utc.range,mu[t+"OfYear"]=function(t){var n=mu.year(t).getDay();return Math.floor((mu.dayOfYear(t)+(n+e)%7)/7)}}),mu.week=mu.sunday,mu.weeks=mu.sunday.range,mu.weeks.utc=mu.sunday.utc.range,mu.weekOfYear=mu.sundayOfYear;var xu={"-":"",_:" ",0:"0"},_u=/^\s*\d+/,Mu=/^%/;ha.locale=function(t){return{numberFormat:Vt(t),timeFormat:Yt(t)}};var Cu=ha.locale({decimal:".",thousands:",",grouping:[3],currency:["$",""],dateTime:"%a %b %e %X %Y",date:"%m/%d/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});ha.format=Cu.numberFormat,ha.geo={},de.prototype={s:0,t:0,add:function(t){ve(t,this.t,Eu),ve(Eu.s,this.s,this),this.s?this.t+=Eu.t:this.s=Eu.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var Eu=new de;ha.geo.stream=function(t,e){t&&wu.hasOwnProperty(t.type)?wu[t.type](t,e):ge(t,e)};var wu={Feature:function(t,e){ge(t.geometry,e)},FeatureCollection:function(t,e){for(var n=t.features,r=-1,o=n.length;++r<o;)ge(n[r].geometry,e)}},Nu={Sphere:function(t,e){e.sphere()},Point:function(t,e){t=t.coordinates,e.point(t[0],t[1],t[2])},MultiPoint:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)t=n[r],e.point(t[0],t[1],t[2])},LineString:function(t,e){me(t.coordinates,e,0)},MultiLineString:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)me(n[r],e,0)},Polygon:function(t,e){ye(t.coordinates,e)},MultiPolygon:function(t,e){for(var n=t.coordinates,r=-1,o=n.length;++r<o;)ye(n[r],e)},GeometryCollection:function(t,e){for(var n=t.geometries,r=-1,o=n.length;++r<o;)ge(n[r],e)}};ha.geo.area=function(t){return Su=0,ha.geo.stream(t,Du),Su};var Su,ku=new de,Du={sphere:function(){Su+=4*Va},point:N,lineStart:N,lineEnd:N,polygonStart:function(){ku.reset(),Du.lineStart=be},polygonEnd:function(){var t=2*ku;Su+=t<0?4*Va+t:t,Du.lineStart=Du.lineEnd=Du.point=N}};ha.geo.bounds=function(){function t(t,e){b.push(x=[c=t,p=t]),e<f&&(f=e),e>h&&(h=e)}function e(e,n){var r=xe([e*Ka,n*Ka]);if(m){var o=Me(m,r),i=[o[1],-o[0],0],a=Me(i,o);we(a),a=Ne(a);var l=e-d,s=l>0?1:-1,v=a[0]*Ya*s,g=Ca(l)>180;if(g^(s*d<v&&v<s*e)){var y=a[1]*Ya;y>h&&(h=y)}else if(v=(v+360)%360-180,g^(s*d<v&&v<s*e)){var y=-a[1]*Ya;y<f&&(f=y)}else n<f&&(f=n),n>h&&(h=n);g?e<d?u(c,e)>u(c,p)&&(p=e):u(e,p)>u(c,p)&&(c=e):p>=c?(e<c&&(c=e),e>p&&(p=e)):e>d?u(c,e)>u(c,p)&&(p=e):u(e,p)>u(c,p)&&(c=e)}else t(e,n);m=r,d=e}function n(){_.point=e}function r(){x[0]=c,x[1]=p,_.point=t,m=null}function o(t,n){if(m){var r=t-d;y+=Ca(r)>180?r+(r>0?360:-360):r}else v=t,g=n;Du.point(t,n),e(t,n)}function i(){Du.lineStart()}function a(){o(v,g),Du.lineEnd(),Ca(y)>Ba&&(c=-(p=180)),x[0]=c,x[1]=p,m=null}function u(t,e){return(e-=t)<0?e+360:e}function l(t,e){return t[0]-e[0]}function s(t,e){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var c,f,p,h,d,v,g,m,y,b,x,_={point:t,lineStart:n,lineEnd:r,polygonStart:function(){_.point=o,_.lineStart=i,_.lineEnd=a,y=0,Du.polygonStart()},polygonEnd:function(){Du.polygonEnd(),_.point=t,_.lineStart=n,_.lineEnd=r,ku<0?(c=-(p=180),f=-(h=90)):y>Ba?h=90:y<-Ba&&(f=-90),x[0]=c,x[1]=p}};return function(t){h=p=-(c=f=1/0),b=[],ha.geo.stream(t,_);var e=b.length;if(e){b.sort(l);for(var n,r=1,o=b[0],i=[o];r<e;++r)n=b[r],s(n[0],o)||s(n[1],o)?(u(o[0],n[1])>u(o[0],o[1])&&(o[1]=n[1]),u(n[0],o[1])>u(o[0],o[1])&&(o[0]=n[0])):i.push(o=n);for(var a,n,d=-(1/0),e=i.length-1,r=0,o=i[e];r<=e;o=n,++r)n=i[r],(a=u(o[1],n[0]))>d&&(d=a,c=n[0],p=o[1])}return b=x=null,c===1/0||f===1/0?[[NaN,NaN],[NaN,NaN]]:[[c,f],[p,h]]}}(),ha.geo.centroid=function(t){Pu=Ru=Tu=Au=Iu=Ou=Lu=Uu=ju=Fu=Bu=0,ha.geo.stream(t,qu);var e=ju,n=Fu,r=Bu,o=e*e+n*n+r*r;return o<qa&&(e=Ou,n=Lu,r=Uu,Ru<Ba&&(e=Tu,n=Au,r=Iu),o=e*e+n*n+r*r,o<qa)?[NaN,NaN]:[Math.atan2(n,e)*Ya,at(r/Math.sqrt(o))*Ya]};var Pu,Ru,Tu,Au,Iu,Ou,Lu,Uu,ju,Fu,Bu,qu={sphere:N,point:ke,lineStart:Pe,lineEnd:Re,polygonStart:function(){qu.lineStart=Te},polygonEnd:function(){qu.lineStart=Pe}},Vu=je(Ie,Ve,We,[-Va,-Va/2]),zu=1e9;ha.geo.clipExtent=function(){var t,e,n,r,o,i,a={stream:function(t){return o&&(o.valid=!1),o=i(t),o.valid=!0,o},extent:function(u){return arguments.length?(i=Ge(t=+u[0][0],e=+u[0][1],n=+u[1][0],r=+u[1][1]),o&&(o.valid=!1,o=null),a):[[t,e],[n,r]]}};return a.extent([[0,0],[960,500]])},(ha.geo.conicEqualArea=function(){return Xe(Ze)}).raw=Ze,ha.geo.albers=function(){return ha.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},ha.geo.albersUsa=function(){function t(t){var i=t[0],a=t[1];return e=null,n(i,a),e||(r(i,a),e)||o(i,a),e}var e,n,r,o,i=ha.geo.albers(),a=ha.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=ha.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(t,n){e=[t,n]}};return t.invert=function(t){var e=i.scale(),n=i.translate(),r=(t[0]-n[0])/e,o=(t[1]-n[1])/e;return(o>=.12&&o<.234&&r>=-.425&&r<-.214?a:o>=.166&&o<.234&&r>=-.214&&r<-.115?u:i).invert(t)},t.stream=function(t){var e=i.stream(t),n=a.stream(t),r=u.stream(t);return{point:function(t,o){e.point(t,o),n.point(t,o),r.point(t,o)},sphere:function(){e.sphere(),n.sphere(),r.sphere()},lineStart:function(){e.lineStart(),n.lineStart(),r.lineStart()},lineEnd:function(){e.lineEnd(),n.lineEnd(),r.lineEnd()},polygonStart:function(){e.polygonStart(),n.polygonStart(),r.polygonStart()},polygonEnd:function(){e.polygonEnd(),n.polygonEnd(),r.polygonEnd()}}},t.precision=function(e){return arguments.length?(i.precision(e),a.precision(e),u.precision(e),t):i.precision()},t.scale=function(e){return arguments.length?(i.scale(e),a.scale(.35*e),u.scale(e),t.translate(i.translate())):i.scale()},t.translate=function(e){if(!arguments.length)return i.translate();var s=i.scale(),c=+e[0],f=+e[1];return n=i.translate(e).clipExtent([[c-.455*s,f-.238*s],[c+.455*s,f+.238*s]]).stream(l).point,r=a.translate([c-.307*s,f+.201*s]).clipExtent([[c-.425*s+Ba,f+.12*s+Ba],[c-.214*s-Ba,f+.234*s-Ba]]).stream(l).point,o=u.translate([c-.205*s,f+.212*s]).clipExtent([[c-.214*s+Ba,f+.166*s+Ba],[c-.115*s-Ba,f+.234*s-Ba]]).stream(l).point,t},t.scale(1070)};var Wu,Hu,Ku,Yu,Gu,Xu,Zu={point:N,lineStart:N,lineEnd:N,polygonStart:function(){Hu=0,Zu.lineStart=$e},polygonEnd:function(){Zu.lineStart=Zu.lineEnd=Zu.point=N,Wu+=Ca(Hu/2)}},$u={point:Qe,lineStart:N,lineEnd:N,polygonStart:N,polygonEnd:N},Qu={point:en,lineStart:nn,lineEnd:rn,polygonStart:function(){Qu.lineStart=on},polygonEnd:function(){Qu.point=en,Qu.lineStart=nn,Qu.lineEnd=rn}};ha.geo.path=function(){function t(t){return t&&("function"==typeof u&&i.pointRadius(+u.apply(this,arguments)),a&&a.valid||(a=o(i)),ha.geo.stream(t,a)),i.result()}function e(){return a=null,t}var n,r,o,i,a,u=4.5;return t.area=function(t){return Wu=0,ha.geo.stream(t,o(Zu)),Wu},t.centroid=function(t){return Tu=Au=Iu=Ou=Lu=Uu=ju=Fu=Bu=0,ha.geo.stream(t,o(Qu)),Bu?[ju/Bu,Fu/Bu]:Uu?[Ou/Uu,Lu/Uu]:Iu?[Tu/Iu,Au/Iu]:[NaN,NaN]},t.bounds=function(t){return Gu=Xu=-(Ku=Yu=1/0),ha.geo.stream(t,o($u)),[[Ku,Yu],[Gu,Xu]]},t.projection=function(t){return arguments.length?(o=(n=t)?t.stream||ln(t):C,e()):n},t.context=function(t){return arguments.length?(i=null==(r=t)?new Je:new an(t),"function"!=typeof u&&i.pointRadius(u),e()):r},t.pointRadius=function(e){return arguments.length?(u="function"==typeof e?e:(i.pointRadius(+e),+e),t):u},t.projection(ha.geo.albersUsa()).context(null)},ha.geo.transform=function(t){return{stream:function(e){var n=new sn(e);for(var r in t)n[r]=t[r];return n}}},sn.prototype={point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}},ha.geo.projection=fn,ha.geo.projectionMutator=pn,(ha.geo.equirectangular=function(){return fn(dn)}).raw=dn.invert=dn,ha.geo.rotation=function(t){function e(e){return e=t(e[0]*Ka,e[1]*Ka),e[0]*=Ya,e[1]*=Ya,e}return t=gn(t[0]%360*Ka,t[1]*Ka,t.length>2?t[2]*Ka:0),e.invert=function(e){return e=t.invert(e[0]*Ka,e[1]*Ka),e[0]*=Ya,e[1]*=Ya,e},e},vn.invert=dn,ha.geo.circle=function(){function t(){var t="function"==typeof r?r.apply(this,arguments):r,e=gn(-t[0]*Ka,-t[1]*Ka,0).invert,o=[];return n(null,null,1,{point:function(t,n){o.push(t=e(t,n)),t[0]*=Ya,t[1]*=Ya}}),{type:"Polygon",coordinates:[o]}}var e,n,r=[0,0],o=6;return t.origin=function(e){return arguments.length?(r=e,t):r},t.angle=function(r){return arguments.length?(n=xn((e=+r)*Ka,o*Ka),t):e},t.precision=function(r){return arguments.length?(n=xn(e*Ka,(o=+r)*Ka),t):o},t.angle(90)},ha.geo.distance=function(t,e){var n,r=(e[0]-t[0])*Ka,o=t[1]*Ka,i=e[1]*Ka,a=Math.sin(r),u=Math.cos(r),l=Math.sin(o),s=Math.cos(o),c=Math.sin(i),f=Math.cos(i);return Math.atan2(Math.sqrt((n=f*a)*n+(n=s*c-l*f*u)*n),l*c+s*f*u)},ha.geo.graticule=function(){function t(){return{type:"MultiLineString",coordinates:e()}}function e(){return ha.range(Math.ceil(i/g)*g,o,g).map(p).concat(ha.range(Math.ceil(s/m)*m,l,m).map(h)).concat(ha.range(Math.ceil(r/d)*d,n,d).filter(function(t){return Ca(t%g)>Ba}).map(c)).concat(ha.range(Math.ceil(u/v)*v,a,v).filter(function(t){return Ca(t%m)>Ba}).map(f))}var n,r,o,i,a,u,l,s,c,f,p,h,d=10,v=d,g=90,m=360,y=2.5;return t.lines=function(){return e().map(function(t){return{type:"LineString",coordinates:t}})},t.outline=function(){return{type:"Polygon",coordinates:[p(i).concat(h(l).slice(1),p(o).reverse().slice(1),h(s).reverse().slice(1))]}},t.extent=function(e){return arguments.length?t.majorExtent(e).minorExtent(e):t.minorExtent()},t.majorExtent=function(e){return arguments.length?(i=+e[0][0],o=+e[1][0],s=+e[0][1],l=+e[1][1],i>o&&(e=i,i=o,o=e),s>l&&(e=s,s=l,l=e),t.precision(y)):[[i,s],[o,l]]},t.minorExtent=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],u=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),u>a&&(e=u,u=a,a=e),t.precision(y)):[[r,u],[n,a]]},t.step=function(e){return arguments.length?t.majorStep(e).minorStep(e):t.minorStep()},t.majorStep=function(e){return arguments.length?(g=+e[0],m=+e[1],t):[g,m]},t.minorStep=function(e){return arguments.length?(d=+e[0],v=+e[1],t):[d,v]},t.precision=function(e){return arguments.length?(y=+e,c=Mn(u,a,90),f=Cn(r,n,y),p=Mn(s,l,90),h=Cn(i,o,y),t):y},t.majorExtent([[-180,-90+Ba],[180,90-Ba]]).minorExtent([[-180,-80-Ba],[180,80+Ba]])},ha.geo.greatArc=function(){function t(){return{type:"LineString",coordinates:[e||r.apply(this,arguments),n||o.apply(this,arguments)]}}var e,n,r=En,o=wn;return t.distance=function(){return ha.geo.distance(e||r.apply(this,arguments),n||o.apply(this,arguments))},t.source=function(n){return arguments.length?(r=n,e="function"==typeof n?null:n,t):r},t.target=function(e){return arguments.length?(o=e,n="function"==typeof e?null:e,t):o},t.precision=function(){return arguments.length?t:0},t},ha.geo.interpolate=function(t,e){return Nn(t[0]*Ka,t[1]*Ka,e[0]*Ka,e[1]*Ka)},ha.geo.length=function(t){return Ju=0,ha.geo.stream(t,tl),Ju};var Ju,tl={sphere:N,point:N,lineStart:Sn,lineEnd:N,polygonStart:N,polygonEnd:N},el=kn(function(t){return Math.sqrt(2/(1+t))},function(t){return 2*Math.asin(t/2)});(ha.geo.azimuthalEqualArea=function(){return fn(el)}).raw=el;var nl=kn(function(t){var e=Math.acos(t);return e&&e/Math.sin(e)},C);(ha.geo.azimuthalEquidistant=function(){return fn(nl)}).raw=nl,(ha.geo.conicConformal=function(){return Xe(Dn)}).raw=Dn,(ha.geo.conicEquidistant=function(){return Xe(Pn)}).raw=Pn;var rl=kn(function(t){return 1/t},Math.atan);(ha.geo.gnomonic=function(){return fn(rl)}).raw=rl,Rn.invert=function(t,e){return[t,2*Math.atan(Math.exp(e))-Ha]},(ha.geo.mercator=function(){return Tn(Rn)}).raw=Rn;var ol=kn(function(){return 1},Math.asin);(ha.geo.orthographic=function(){return fn(ol)}).raw=ol;var il=kn(function(t){return 1/(1+t)},function(t){return 2*Math.atan(t)});(ha.geo.stereographic=function(){return fn(il)}).raw=il,An.invert=function(t,e){return[-e,2*Math.atan(Math.exp(t))-Ha]},(ha.geo.transverseMercator=function(){var t=Tn(An),e=t.center,n=t.rotate;return t.center=function(t){return t?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])},t.rotate=function(t){return t?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])},n([0,0,90])}).raw=An,ha.geom={},ha.geom.hull=function(t){function e(t){if(t.length<3)return[];var e,o=Rt(n),i=Rt(r),a=t.length,u=[],l=[];for(e=0;e<a;e++)u.push([+o.call(this,t[e],e),+i.call(this,t[e],e),e]);for(u.sort(Un),e=0;e<a;e++)l.push([u[e][0],-u[e][1]]);var s=Ln(u),c=Ln(l),f=c[0]===s[0],p=c[c.length-1]===s[s.length-1],h=[];for(e=s.length-1;e>=0;--e)h.push(t[u[s[e]][2]]);for(e=+f;e<c.length-p;++e)h.push(t[u[c[e]][2]]);return h}var n=In,r=On;return arguments.length?e(t):(e.x=function(t){return arguments.length?(n=t,e):n},e.y=function(t){return arguments.length?(r=t,e):r},e)},ha.geom.polygon=function(t){return ka(t,al),t};var al=ha.geom.polygon.prototype=[];al.area=function(){for(var t,e=-1,n=this.length,r=this[n-1],o=0;++e<n;)t=r,r=this[e],o+=t[1]*r[0]-t[0]*r[1];return.5*o},al.centroid=function(t){var e,n,r=-1,o=this.length,i=0,a=0,u=this[o-1];for(arguments.length||(t=-1/(6*this.area()));++r<o;)e=u,u=this[r],n=e[0]*u[1]-u[0]*e[1],i+=(e[0]+u[0])*n,a+=(e[1]+u[1])*n;return[i*t,a*t]},al.clip=function(t){for(var e,n,r,o,i,a,u=Bn(t),l=-1,s=this.length-Bn(this),c=this[s-1];++l<s;){for(e=t.slice(),t.length=0,o=this[l],i=e[(r=e.length-u)-1],n=-1;++n<r;)a=e[n],jn(a,c,o)?(jn(i,c,o)||t.push(Fn(i,a,c,o)),t.push(a)):jn(i,c,o)&&t.push(Fn(i,a,c,o)),i=a;u&&t.push(t[0]),c=o}return t};var ul,ll,sl,cl,fl,pl=[],hl=[];Gn.prototype.prepare=function(){for(var t,e=this.edges,n=e.length;n--;)t=e[n].edge,t.b&&t.a||e.splice(n,1);return e.sort(Zn),e.length},ar.prototype={start:function(){return this.edge.l===this.site?this.edge.a:this.edge.b},end:function(){return this.edge.l===this.site?this.edge.b:this.edge.a}},ur.prototype={insert:function(t,e){var n,r,o;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else this._?(t=fr(this._),e.P=null,e.N=t,t.P=t.L=e,n=t):(e.P=e.N=null,this._=e,n=null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)r=n.U,n===r.L?(o=r.R,o&&o.C?(n.C=o.C=!1,r.C=!0,t=r):(t===n.R&&(sr(this,n),t=n,n=t.U),n.C=!1,r.C=!0,cr(this,r))):(o=r.L,o&&o.C?(n.C=o.C=!1,r.C=!0,t=r):(t===n.L&&(cr(this,n),t=n,n=t.U),n.C=!1,r.C=!0,sr(this,r))),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r,o=t.U,i=t.L,a=t.R;if(n=i?a?fr(a):i:a,o?o.L===t?o.L=n:o.R=n:this._=n,i&&a?(r=n.C,n.C=t.C,n.L=i,i.U=n,n!==a?(o=n.U,n.U=t.U,t=n.R,o.L=t,n.R=a,a.U=n):(n.U=o,o=n,t=n.R)):(r=t.C,t=n),t&&(t.U=o),!r){if(t&&t.C)return void(t.C=!1);do{if(t===this._)break;if(t===o.L){if(e=o.R,e.C&&(e.C=!1,o.C=!0,sr(this,o),e=o.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,cr(this,e),e=o.R),e.C=o.C,o.C=e.R.C=!1,sr(this,o),t=this._;break}}else if(e=o.L,e.C&&(e.C=!1,o.C=!0,cr(this,o),e=o.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,sr(this,e),e=o.L),e.C=o.C,o.C=e.L.C=!1,cr(this,o),t=this._;break}e.C=!0,t=o,o=o.U}while(!t.C);t&&(t.C=!1)}}},ha.geom.voronoi=function(t){function e(t){var e=new Array(t.length),r=u[0][0],o=u[0][1],i=u[1][0],a=u[1][1];return pr(n(t),u).cells.forEach(function(n,u){var l=n.edges,s=n.site,c=e[u]=l.length?l.map(function(t){var e=t.start();return[e.x,e.y]}):s.x>=r&&s.x<=i&&s.y>=o&&s.y<=a?[[r,a],[i,a],[i,o],[r,o]]:[];c.point=t[u]}),e}function n(t){return t.map(function(t,e){return{x:Math.round(i(t,e)/Ba)*Ba,y:Math.round(a(t,e)/Ba)*Ba,i:e}})}var r=In,o=On,i=r,a=o,u=dl;return t?e(t):(e.links=function(t){return pr(n(t)).edges.filter(function(t){return t.l&&t.r}).map(function(e){return{source:t[e.l.i],target:t[e.r.i]}})},e.triangles=function(t){var e=[];return pr(n(t)).cells.forEach(function(n,r){for(var o,i,a=n.site,u=n.edges.sort(Zn),l=-1,s=u.length,c=u[s-1].edge,f=c.l===a?c.r:c.l;++l<s;)o=c,i=f,c=u[l].edge,f=c.l===a?c.r:c.l,r<i.i&&r<f.i&&dr(a,i,f)<0&&e.push([t[r],t[i.i],t[f.i]])}),e},e.x=function(t){return arguments.length?(i=Rt(r=t),e):r},e.y=function(t){return arguments.length?(a=Rt(o=t),e):o},e.clipExtent=function(t){return arguments.length?(u=null==t?dl:t,e):u===dl?null:u},e.size=function(t){return arguments.length?e.clipExtent(t&&[[0,0],t]):u===dl?null:u&&u[1]},e)};var dl=[[-1e6,-1e6],[1e6,1e6]];ha.geom.delaunay=function(t){return ha.geom.voronoi().triangles(t)},ha.geom.quadtree=function(t,e,n,r,o){function i(t){function i(t,e,n,r,o,i,a,u){if(!isNaN(n)&&!isNaN(r))if(t.leaf){var l=t.x,c=t.y;if(null!=l)if(Ca(l-n)+Ca(c-r)<.01)s(t,e,n,r,o,i,a,u);else{var f=t.point;t.x=t.y=t.point=null,s(t,f,l,c,o,i,a,u),s(t,e,n,r,o,i,a,u)}else t.x=n,t.y=r,t.point=e}else s(t,e,n,r,o,i,a,u)}function s(t,e,n,r,o,a,u,l){var s=.5*(o+u),c=.5*(a+l),f=n>=s,p=r>=c,h=p<<1|f;t.leaf=!1,t=t.nodes[h]||(t.nodes[h]=mr()),f?o=s:u=s,p?a=c:l=c,i(t,e,n,r,o,a,u,l)}var c,f,p,h,d,v,g,m,y,b=Rt(u),x=Rt(l);if(null!=e)v=e,g=n,m=r,y=o;else if(m=y=-(v=g=1/0),f=[],p=[],d=t.length,a)for(h=0;h<d;++h)c=t[h],c.x<v&&(v=c.x),c.y<g&&(g=c.y),c.x>m&&(m=c.x),c.y>y&&(y=c.y),f.push(c.x),p.push(c.y);else for(h=0;h<d;++h){var _=+b(c=t[h],h),M=+x(c,h);_<v&&(v=_),M<g&&(g=M),_>m&&(m=_),M>y&&(y=M),f.push(_),p.push(M)}var C=m-v,E=y-g;C>E?y=g+C:m=v+E;var w=mr();if(w.add=function(t){i(w,t,+b(t,++h),+x(t,h),v,g,m,y)},w.visit=function(t){yr(t,w,v,g,m,y)},w.find=function(t){return br(w,t[0],t[1],v,g,m,y)},h=-1,null==e){for(;++h<d;)i(w,t[h],f[h],p[h],v,g,m,y);--h}else t.forEach(w.add);return f=p=t=c=null,w}var a,u=In,l=On;return(a=arguments.length)?(u=vr,l=gr,3===a&&(o=n,r=e,n=e=0),i(t)):(i.x=function(t){return arguments.length?(u=t,i):u},i.y=function(t){return arguments.length?(l=t,i):l},i.extent=function(t){return arguments.length?(null==t?e=n=r=o=null:(e=+t[0][0],n=+t[0][1],r=+t[1][0],o=+t[1][1]),i):null==e?null:[[e,n],[r,o]]},i.size=function(t){return arguments.length?(null==t?e=n=r=o=null:(e=n=0,r=+t[0],o=+t[1]),i):null==e?null:[r-e,o-n]},i)},ha.interpolateRgb=xr,ha.interpolateObject=_r,ha.interpolateNumber=Mr,ha.interpolateString=Cr;var vl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gl=new RegExp(vl.source,"g");ha.interpolate=Er,ha.interpolators=[function(t,e){var n=typeof e;return("string"===n?lu.has(e.toLowerCase())||/^(#|rgb\(|hsl\()/i.test(e)?xr:Cr:e instanceof ft?xr:Array.isArray(e)?wr:"object"===n&&isNaN(e)?_r:Mr)(t,e)}],ha.interpolateArray=wr;var ml=function(){return C},yl=ha.map({linear:ml,poly:Tr,quad:function(){return Dr},cubic:function(){return Pr},sin:function(){return Ar},exp:function(){return Ir},circle:function(){return Or},elastic:Lr,back:Ur,bounce:function(){return jr}}),bl=ha.map({in:C,out:Sr,"in-out":kr,"out-in":function(t){return kr(Sr(t))}});ha.ease=function(t){var e=t.indexOf("-"),n=e>=0?t.slice(0,e):t,r=e>=0?t.slice(e+1):"in";return n=yl.get(n)||ml,r=bl.get(r)||C,Nr(r(n.apply(null,da.call(arguments,1))))},ha.interpolateHcl=Fr,ha.interpolateHsl=Br,ha.interpolateLab=qr,ha.interpolateRound=Vr,ha.transform=function(t){var e=ga.createElementNS(ha.ns.prefix.svg,"g");return(ha.transform=function(t){if(null!=t){e.setAttribute("transform",t);var n=e.transform.baseVal.consolidate()}return new zr(n?n.matrix:xl)})(t)},zr.prototype.toString=function(){return"translate("+this.translate+")rotate("+this.rotate+")skewX("+this.skew+")scale("+this.scale+")"};var xl={a:1,b:0,c:0,d:1,e:0,f:0};ha.interpolateTransform=Qr,ha.layout={},ha.layout.bundle=function(){return function(t){for(var e=[],n=-1,r=t.length;++n<r;)e.push(eo(t[n]));return e}},ha.layout.chord=function(){function t(){var t,s,f,p,h,d={},v=[],g=ha.range(i),m=[];for(n=[],r=[],t=0,p=-1;++p<i;){for(s=0,h=-1;++h<i;)s+=o[p][h];v.push(s),m.push(ha.range(i)),t+=s}for(a&&g.sort(function(t,e){return a(v[t],v[e])}),u&&m.forEach(function(t,e){t.sort(function(t,n){return u(o[e][t],o[e][n])})}),t=(za-c*i)/t,s=0,p=-1;++p<i;){for(f=s,h=-1;++h<i;){var y=g[p],b=m[y][h],x=o[y][b],_=s,M=s+=x*t;d[y+"-"+b]={index:y,subindex:b,startAngle:_,endAngle:M,value:x}}r[y]={index:y,startAngle:f,endAngle:s,value:v[y]},s+=c}for(p=-1;++p<i;)for(h=p-1;++h<i;){var C=d[p+"-"+h],E=d[h+"-"+p];(C.value||E.value)&&n.push(C.value<E.value?{source:E,target:C}:{source:C,target:E})}l&&e()}function e(){n.sort(function(t,e){return l((t.source.value+t.target.value)/2,(e.source.value+e.target.value)/2)})}var n,r,o,i,a,u,l,s={},c=0;return s.matrix=function(t){return arguments.length?(i=(o=t)&&o.length,n=r=null,s):o},s.padding=function(t){return arguments.length?(c=t,n=r=null,s):c},s.sortGroups=function(t){return arguments.length?(a=t,n=r=null,s):a},s.sortSubgroups=function(t){return arguments.length?(u=t,n=null,s):u},s.sortChords=function(t){return arguments.length?(l=t,n&&e(),s):l},s.chords=function(){return n||t(),n},s.groups=function(){return r||t(),r},s},ha.layout.force=function(){function t(t){return function(e,n,r,o){if(e.point!==t){var i=e.cx-t.x,a=e.cy-t.y,u=o-n,l=i*i+a*a;if(u*u/m<l){if(l<v){var s=e.charge/l;t.px-=i*s,t.py-=a*s}return!0}if(e.point&&l&&l<v){var s=e.pointCharge/l;t.px-=i*s,t.py-=a*s}}return!e.charge}}function e(t){t.px=ha.event.x,t.py=ha.event.y,l.resume()}var n,r,o,i,a,u,l={},s=ha.dispatch("start","tick","end"),c=[1,1],f=.9,p=_l,h=Ml,d=-30,v=Cl,g=.1,m=.64,y=[],b=[];
206
- return l.tick=function(){if((o*=.99)<.005)return n=null,s.end({type:"end",alpha:o=0}),!0;var e,r,l,p,h,v,m,x,_,M=y.length,C=b.length;for(r=0;r<C;++r)l=b[r],p=l.source,h=l.target,x=h.x-p.x,_=h.y-p.y,(v=x*x+_*_)&&(v=o*a[r]*((v=Math.sqrt(v))-i[r])/v,x*=v,_*=v,h.x-=x*(m=p.weight+h.weight?p.weight/(p.weight+h.weight):.5),h.y-=_*m,p.x+=x*(m=1-m),p.y+=_*m);if((m=o*g)&&(x=c[0]/2,_=c[1]/2,r=-1,m))for(;++r<M;)l=y[r],l.x+=(x-l.x)*m,l.y+=(_-l.y)*m;if(d)for(lo(e=ha.geom.quadtree(y),o,u),r=-1;++r<M;)(l=y[r]).fixed||e.visit(t(l));for(r=-1;++r<M;)l=y[r],l.fixed?(l.x=l.px,l.y=l.py):(l.x-=(l.px-(l.px=l.x))*f,l.y-=(l.py-(l.py=l.y))*f);s.tick({type:"tick",alpha:o})},l.nodes=function(t){return arguments.length?(y=t,l):y},l.links=function(t){return arguments.length?(b=t,l):b},l.size=function(t){return arguments.length?(c=t,l):c},l.linkDistance=function(t){return arguments.length?(p="function"==typeof t?t:+t,l):p},l.distance=l.linkDistance,l.linkStrength=function(t){return arguments.length?(h="function"==typeof t?t:+t,l):h},l.friction=function(t){return arguments.length?(f=+t,l):f},l.charge=function(t){return arguments.length?(d="function"==typeof t?t:+t,l):d},l.chargeDistance=function(t){return arguments.length?(v=t*t,l):Math.sqrt(v)},l.gravity=function(t){return arguments.length?(g=+t,l):g},l.theta=function(t){return arguments.length?(m=t*t,l):Math.sqrt(m)},l.alpha=function(t){return arguments.length?(t=+t,o?t>0?o=t:(n.c=null,n.t=NaN,n=null,s.end({type:"end",alpha:o=0})):t>0&&(s.start({type:"start",alpha:o=t}),n=Lt(l.tick)),l):o},l.start=function(){function t(t,r){if(!n){for(n=new Array(o),l=0;l<o;++l)n[l]=[];for(l=0;l<s;++l){var i=b[l];n[i.source.index].push(i.target),n[i.target.index].push(i.source)}}for(var a,u=n[e],l=-1,c=u.length;++l<c;)if(!isNaN(a=u[l][t]))return a;return Math.random()*r}var e,n,r,o=y.length,s=b.length,f=c[0],v=c[1];for(e=0;e<o;++e)(r=y[e]).index=e,r.weight=0;for(e=0;e<s;++e)r=b[e],"number"==typeof r.source&&(r.source=y[r.source]),"number"==typeof r.target&&(r.target=y[r.target]),++r.source.weight,++r.target.weight;for(e=0;e<o;++e)r=y[e],isNaN(r.x)&&(r.x=t("x",f)),isNaN(r.y)&&(r.y=t("y",v)),isNaN(r.px)&&(r.px=r.x),isNaN(r.py)&&(r.py=r.y);if(i=[],"function"==typeof p)for(e=0;e<s;++e)i[e]=+p.call(this,b[e],e);else for(e=0;e<s;++e)i[e]=p;if(a=[],"function"==typeof h)for(e=0;e<s;++e)a[e]=+h.call(this,b[e],e);else for(e=0;e<s;++e)a[e]=h;if(u=[],"function"==typeof d)for(e=0;e<o;++e)u[e]=+d.call(this,y[e],e);else for(e=0;e<o;++e)u[e]=d;return l.resume()},l.resume=function(){return l.alpha(.1)},l.stop=function(){return l.alpha(0)},l.drag=function(){return r||(r=ha.behavior.drag().origin(C).on("dragstart.force",oo).on("drag.force",e).on("dragend.force",io)),arguments.length?void this.on("mouseover.force",ao).on("mouseout.force",uo).call(r):r},ha.rebind(l,s,"on")};var _l=20,Ml=1,Cl=1/0;ha.layout.hierarchy=function(){function t(o){var i,a=[o],u=[];for(o.depth=0;null!=(i=a.pop());)if(u.push(i),(s=n.call(t,i,i.depth))&&(l=s.length)){for(var l,s,c;--l>=0;)a.push(c=s[l]),c.parent=i,c.depth=i.depth+1;r&&(i.value=0),i.children=s}else r&&(i.value=+r.call(t,i,i.depth)||0),delete i.children;return fo(o,function(t){var n,o;e&&(n=t.children)&&n.sort(e),r&&(o=t.parent)&&(o.value+=t.value)}),u}var e=vo,n=po,r=ho;return t.sort=function(n){return arguments.length?(e=n,t):e},t.children=function(e){return arguments.length?(n=e,t):n},t.value=function(e){return arguments.length?(r=e,t):r},t.revalue=function(e){return r&&(co(e,function(t){t.children&&(t.value=0)}),fo(e,function(e){var n;e.children||(e.value=+r.call(t,e,e.depth)||0),(n=e.parent)&&(n.value+=e.value)})),e},t},ha.layout.partition=function(){function t(e,n,r,o){var i=e.children;if(e.x=n,e.y=e.depth*o,e.dx=r,e.dy=o,i&&(a=i.length)){var a,u,l,s=-1;for(r=e.value?r/e.value:0;++s<a;)t(u=i[s],n,l=u.value*r,o),n+=l}}function e(t){var n=t.children,r=0;if(n&&(o=n.length))for(var o,i=-1;++i<o;)r=Math.max(r,e(n[i]));return 1+r}function n(n,i){var a=r.call(this,n,i);return t(a[0],0,o[0],o[1]/e(a[0])),a}var r=ha.layout.hierarchy(),o=[1,1];return n.size=function(t){return arguments.length?(o=t,n):o},so(n,r)},ha.layout.pie=function(){function t(a){var u,l=a.length,s=a.map(function(n,r){return+e.call(t,n,r)}),c=+("function"==typeof r?r.apply(this,arguments):r),f=("function"==typeof o?o.apply(this,arguments):o)-c,p=Math.min(Math.abs(f)/l,+("function"==typeof i?i.apply(this,arguments):i)),h=p*(f<0?-1:1),d=ha.sum(s),v=d?(f-l*h)/d:0,g=ha.range(l),m=[];return null!=n&&g.sort(n===El?function(t,e){return s[e]-s[t]}:function(t,e){return n(a[t],a[e])}),g.forEach(function(t){m[t]={data:a[t],value:u=s[t],startAngle:c,endAngle:c+=u*v+h,padAngle:p}}),m}var e=Number,n=El,r=0,o=za,i=0;return t.value=function(n){return arguments.length?(e=n,t):e},t.sort=function(e){return arguments.length?(n=e,t):n},t.startAngle=function(e){return arguments.length?(r=e,t):r},t.endAngle=function(e){return arguments.length?(o=e,t):o},t.padAngle=function(e){return arguments.length?(i=e,t):i},t};var El={};ha.layout.stack=function(){function t(u,l){if(!(p=u.length))return u;var s=u.map(function(n,r){return e.call(t,n,r)}),c=s.map(function(e){return e.map(function(e,n){return[i.call(t,e,n),a.call(t,e,n)]})}),f=n.call(t,c,l);s=ha.permute(s,f),c=ha.permute(c,f);var p,h,d,v,g=r.call(t,c,l),m=s[0].length;for(d=0;d<m;++d)for(o.call(t,s[0][d],v=g[d],c[0][d][1]),h=1;h<p;++h)o.call(t,s[h][d],v+=c[h-1][d][1],c[h][d][1]);return u}var e=C,n=xo,r=_o,o=bo,i=mo,a=yo;return t.values=function(n){return arguments.length?(e=n,t):e},t.order=function(e){return arguments.length?(n="function"==typeof e?e:wl.get(e)||xo,t):n},t.offset=function(e){return arguments.length?(r="function"==typeof e?e:Nl.get(e)||_o,t):r},t.x=function(e){return arguments.length?(i=e,t):i},t.y=function(e){return arguments.length?(a=e,t):a},t.out=function(e){return arguments.length?(o=e,t):o},t};var wl=ha.map({"inside-out":function(t){var e,n,r=t.length,o=t.map(Mo),i=t.map(Co),a=ha.range(r).sort(function(t,e){return o[t]-o[e]}),u=0,l=0,s=[],c=[];for(e=0;e<r;++e)n=a[e],u<l?(u+=i[n],s.push(n)):(l+=i[n],c.push(n));return c.reverse().concat(s)},reverse:function(t){return ha.range(t.length).reverse()},default:xo}),Nl=ha.map({silhouette:function(t){var e,n,r,o=t.length,i=t[0].length,a=[],u=0,l=[];for(n=0;n<i;++n){for(e=0,r=0;e<o;e++)r+=t[e][n][1];r>u&&(u=r),a.push(r)}for(n=0;n<i;++n)l[n]=(u-a[n])/2;return l},wiggle:function(t){var e,n,r,o,i,a,u,l,s,c=t.length,f=t[0],p=f.length,h=[];for(h[0]=l=s=0,n=1;n<p;++n){for(e=0,o=0;e<c;++e)o+=t[e][n][1];for(e=0,i=0,u=f[n][0]-f[n-1][0];e<c;++e){for(r=0,a=(t[e][n][1]-t[e][n-1][1])/(2*u);r<e;++r)a+=(t[r][n][1]-t[r][n-1][1])/u;i+=a*t[e][n][1]}h[n]=l-=o?i/o*u:0,l<s&&(s=l)}for(n=0;n<p;++n)h[n]-=s;return h},expand:function(t){var e,n,r,o=t.length,i=t[0].length,a=1/o,u=[];for(n=0;n<i;++n){for(e=0,r=0;e<o;e++)r+=t[e][n][1];if(r)for(e=0;e<o;e++)t[e][n][1]/=r;else for(e=0;e<o;e++)t[e][n][1]=a}for(n=0;n<i;++n)u[n]=0;return u},zero:_o});ha.layout.histogram=function(){function t(t,i){for(var a,u,l=[],s=t.map(n,this),c=r.call(this,s,i),f=o.call(this,c,s,i),i=-1,p=s.length,h=f.length-1,d=e?1:1/p;++i<h;)a=l[i]=[],a.dx=f[i+1]-(a.x=f[i]),a.y=0;if(h>0)for(i=-1;++i<p;)u=s[i],u>=c[0]&&u<=c[1]&&(a=l[ha.bisect(f,u,1,h)-1],a.y+=d,a.push(t[i]));return l}var e=!0,n=Number,r=So,o=wo;return t.value=function(e){return arguments.length?(n=e,t):n},t.range=function(e){return arguments.length?(r=Rt(e),t):r},t.bins=function(e){return arguments.length?(o="number"==typeof e?function(t){return No(t,e)}:Rt(e),t):o},t.frequency=function(n){return arguments.length?(e=!!n,t):e},t},ha.layout.pack=function(){function t(t,i){var a=n.call(this,t,i),u=a[0],l=o[0],s=o[1],c=null==e?Math.sqrt:"function"==typeof e?e:function(){return e};if(u.x=u.y=0,fo(u,function(t){t.r=+c(t.value)}),fo(u,To),r){var f=r*(e?1:Math.max(2*u.r/l,2*u.r/s))/2;fo(u,function(t){t.r+=f}),fo(u,To),fo(u,function(t){t.r-=f})}return Oo(u,l/2,s/2,e?1:1/Math.max(2*u.r/l,2*u.r/s)),a}var e,n=ha.layout.hierarchy().sort(ko),r=0,o=[1,1];return t.size=function(e){return arguments.length?(o=e,t):o},t.radius=function(n){return arguments.length?(e=null==n||"function"==typeof n?n:+n,t):e},t.padding=function(e){return arguments.length?(r=+e,t):r},so(t,n)},ha.layout.tree=function(){function t(t,o){var c=a.call(this,t,o),f=c[0],p=e(f);if(fo(p,n),p.parent.m=-p.z,co(p,r),s)co(f,i);else{var h=f,d=f,v=f;co(f,function(t){t.x<h.x&&(h=t),t.x>d.x&&(d=t),t.depth>v.depth&&(v=t)});var g=u(h,d)/2-h.x,m=l[0]/(d.x+u(d,h)/2+g),y=l[1]/(v.depth||1);co(f,function(t){t.x=(t.x+g)*m,t.y=t.depth*y})}return c}function e(t){for(var e,n={A:null,children:[t]},r=[n];null!=(e=r.pop());)for(var o,i=e.children,a=0,u=i.length;a<u;++a)r.push((i[a]=o={_:i[a],parent:e,children:(o=i[a].children)&&o.slice()||[],A:null,a:null,z:0,m:0,c:0,s:0,t:null,i:a}).a=o);return n.children[0]}function n(t){var e=t.children,n=t.parent.children,r=t.i?n[t.i-1]:null;if(e.length){qo(t);var i=(e[0].z+e[e.length-1].z)/2;r?(t.z=r.z+u(t._,r._),t.m=t.z-i):t.z=i}else r&&(t.z=r.z+u(t._,r._));t.parent.A=o(t,r,t.parent.A||n[0])}function r(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function o(t,e,n){if(e){for(var r,o=t,i=t,a=e,l=o.parent.children[0],s=o.m,c=i.m,f=a.m,p=l.m;a=Fo(a),o=jo(o),a&&o;)l=jo(l),i=Fo(i),i.a=t,r=a.z+f-o.z-s+u(a._,o._),r>0&&(Bo(Vo(a,t,n),t,r),s+=r,c+=r),f+=a.m,s+=o.m,p+=l.m,c+=i.m;a&&!Fo(i)&&(i.t=a,i.m+=f-c),o&&!jo(l)&&(l.t=o,l.m+=s-p,n=t)}return n}function i(t){t.x*=l[0],t.y=t.depth*l[1]}var a=ha.layout.hierarchy().sort(null).value(null),u=Uo,l=[1,1],s=null;return t.separation=function(e){return arguments.length?(u=e,t):u},t.size=function(e){return arguments.length?(s=null==(l=e)?i:null,t):s?null:l},t.nodeSize=function(e){return arguments.length?(s=null==(l=e)?null:i,t):s?l:null},so(t,a)},ha.layout.cluster=function(){function t(t,i){var a,u=e.call(this,t,i),l=u[0],s=0;fo(l,function(t){var e=t.children;e&&e.length?(t.x=Wo(e),t.y=zo(e)):(t.x=a?s+=n(t,a):0,t.y=0,a=t)});var c=Ho(l),f=Ko(l),p=c.x-n(c,f)/2,h=f.x+n(f,c)/2;return fo(l,o?function(t){t.x=(t.x-l.x)*r[0],t.y=(l.y-t.y)*r[1]}:function(t){t.x=(t.x-p)/(h-p)*r[0],t.y=(1-(l.y?t.y/l.y:1))*r[1]}),u}var e=ha.layout.hierarchy().sort(null).value(null),n=Uo,r=[1,1],o=!1;return t.separation=function(e){return arguments.length?(n=e,t):n},t.size=function(e){return arguments.length?(o=null==(r=e),t):o?null:r},t.nodeSize=function(e){return arguments.length?(o=null!=(r=e),t):o?r:null},so(t,e)},ha.layout.treemap=function(){function t(t,e){for(var n,r,o=-1,i=t.length;++o<i;)r=(n=t[o]).value*(e<0?0:e),n.area=isNaN(r)||r<=0?0:r}function e(n){var i=n.children;if(i&&i.length){var a,u,l,s=f(n),c=[],p=i.slice(),d=1/0,v="slice"===h?s.dx:"dice"===h?s.dy:"slice-dice"===h?1&n.depth?s.dy:s.dx:Math.min(s.dx,s.dy);for(t(p,s.dx*s.dy/n.value),c.area=0;(l=p.length)>0;)c.push(a=p[l-1]),c.area+=a.area,"squarify"!==h||(u=r(c,v))<=d?(p.pop(),d=u):(c.area-=c.pop().area,o(c,v,s,!1),v=Math.min(s.dx,s.dy),c.length=c.area=0,d=1/0);c.length&&(o(c,v,s,!0),c.length=c.area=0),i.forEach(e)}}function n(e){var r=e.children;if(r&&r.length){var i,a=f(e),u=r.slice(),l=[];for(t(u,a.dx*a.dy/e.value),l.area=0;i=u.pop();)l.push(i),l.area+=i.area,null!=i.z&&(o(l,i.z?a.dx:a.dy,a,!u.length),l.length=l.area=0);r.forEach(n)}}function r(t,e){for(var n,r=t.area,o=0,i=1/0,a=-1,u=t.length;++a<u;)(n=t[a].area)&&(n<i&&(i=n),n>o&&(o=n));return r*=r,e*=e,r?Math.max(e*o*d/r,r/(e*i*d)):1/0}function o(t,e,n,r){var o,i=-1,a=t.length,u=n.x,s=n.y,c=e?l(t.area/e):0;if(e==n.dx){for((r||c>n.dy)&&(c=n.dy);++i<a;)o=t[i],o.x=u,o.y=s,o.dy=c,u+=o.dx=Math.min(n.x+n.dx-u,c?l(o.area/c):0);o.z=!0,o.dx+=n.x+n.dx-u,n.y+=c,n.dy-=c}else{for((r||c>n.dx)&&(c=n.dx);++i<a;)o=t[i],o.x=u,o.y=s,o.dx=c,s+=o.dy=Math.min(n.y+n.dy-s,c?l(o.area/c):0);o.z=!1,o.dy+=n.y+n.dy-s,n.x+=c,n.dx-=c}}function i(r){var o=a||u(r),i=o[0];return i.x=i.y=0,i.value?(i.dx=s[0],i.dy=s[1]):i.dx=i.dy=0,a&&u.revalue(i),t([i],i.dx*i.dy/i.value),(a?n:e)(i),p&&(a=o),o}var a,u=ha.layout.hierarchy(),l=Math.round,s=[1,1],c=null,f=Yo,p=!1,h="squarify",d=.5*(1+Math.sqrt(5));return i.size=function(t){return arguments.length?(s=t,i):s},i.padding=function(t){function e(e){var n=t.call(i,e,e.depth);return null==n?Yo(e):Go(e,"number"==typeof n?[n,n,n,n]:n)}function n(e){return Go(e,t)}if(!arguments.length)return c;var r;return f=null==(c=t)?Yo:"function"==(r=typeof t)?e:"number"===r?(t=[t,t,t,t],n):n,i},i.round=function(t){return arguments.length?(l=t?Math.round:Number,i):l!=Number},i.sticky=function(t){return arguments.length?(p=t,a=null,i):p},i.ratio=function(t){return arguments.length?(d=t,i):d},i.mode=function(t){return arguments.length?(h=t+"",i):h},so(i,u)},ha.random={normal:function(t,e){var n=arguments.length;return n<2&&(e=1),n<1&&(t=0),function(){var n,r,o;do n=2*Math.random()-1,r=2*Math.random()-1,o=n*n+r*r;while(!o||o>1);return t+e*n*Math.sqrt(-2*Math.log(o)/o)}},logNormal:function(){var t=ha.random.normal.apply(ha,arguments);return function(){return Math.exp(t())}},bates:function(t){var e=ha.random.irwinHall(t);return function(){return e()/t}},irwinHall:function(t){return function(){for(var e=0,n=0;n<t;n++)e+=Math.random();return e}}},ha.scale={};var Sl={floor:C,ceil:C};ha.scale.linear=function(){return ei([0,1],[0,1],Er,!1)};var kl={s:1,g:1,p:1,r:1,e:1};ha.scale.log=function(){return si(ha.scale.linear().domain([0,1]),10,!0,[1,10])};var Dl=ha.format(".0e"),Pl={floor:function(t){return-Math.ceil(-t)},ceil:function(t){return-Math.floor(-t)}};ha.scale.pow=function(){return ci(ha.scale.linear(),1,[0,1])},ha.scale.sqrt=function(){return ha.scale.pow().exponent(.5)},ha.scale.ordinal=function(){return pi([],{t:"range",a:[[]]})},ha.scale.category10=function(){return ha.scale.ordinal().range(Rl)},ha.scale.category20=function(){return ha.scale.ordinal().range(Tl)},ha.scale.category20b=function(){return ha.scale.ordinal().range(Al)},ha.scale.category20c=function(){return ha.scale.ordinal().range(Il)};var Rl=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(Et),Tl=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(Et),Al=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(Et),Il=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(Et);ha.scale.quantile=function(){return hi([],[])},ha.scale.quantize=function(){return di(0,1,[0,1])},ha.scale.threshold=function(){return vi([.5],[0,1])},ha.scale.identity=function(){return gi([0,1])},ha.svg={},ha.svg.arc=function(){function t(){var t=Math.max(0,+n.apply(this,arguments)),s=Math.max(0,+r.apply(this,arguments)),c=a.apply(this,arguments)-Ha,f=u.apply(this,arguments)-Ha,p=Math.abs(f-c),h=c>f?0:1;if(s<t&&(d=s,s=t,t=d),p>=Wa)return e(s,h)+(t?e(t,1-h):"")+"Z";var d,v,g,m,y,b,x,_,M,C,E,w,N=0,S=0,k=[];if((m=(+l.apply(this,arguments)||0)/2)&&(g=i===Ol?Math.sqrt(t*t+s*s):+i.apply(this,arguments),h||(S*=-1),s&&(S=at(g/s*Math.sin(m))),t&&(N=at(g/t*Math.sin(m)))),s){y=s*Math.cos(c+S),b=s*Math.sin(c+S),x=s*Math.cos(f-S),_=s*Math.sin(f-S);var D=Math.abs(f-c-2*S)<=Va?0:1;if(S&&Ci(y,b,x,_)===h^D){var P=(c+f)/2;y=s*Math.cos(P),b=s*Math.sin(P),x=_=null}}else y=b=0;if(t){M=t*Math.cos(f-N),C=t*Math.sin(f-N),E=t*Math.cos(c+N),w=t*Math.sin(c+N);var R=Math.abs(c-f+2*N)<=Va?0:1;if(N&&Ci(M,C,E,w)===1-h^R){var T=(c+f)/2;M=t*Math.cos(T),C=t*Math.sin(T),E=w=null}}else M=C=0;if(p>Ba&&(d=Math.min(Math.abs(s-t)/2,+o.apply(this,arguments)))>.001){v=t<s^h?0:1;var A=d,I=d;if(p<Va){var O=null==E?[M,C]:null==x?[y,b]:Fn([y,b],[E,w],[x,_],[M,C]),L=y-O[0],U=b-O[1],j=x-O[0],F=_-O[1],B=1/Math.sin(Math.acos((L*j+U*F)/(Math.sqrt(L*L+U*U)*Math.sqrt(j*j+F*F)))/2),q=Math.sqrt(O[0]*O[0]+O[1]*O[1]);I=Math.min(d,(t-q)/(B-1)),A=Math.min(d,(s-q)/(B+1))}if(null!=x){var V=Ei(null==E?[M,C]:[E,w],[y,b],s,A,h),z=Ei([x,_],[M,C],s,A,h);d===A?k.push("M",V[0],"A",A,",",A," 0 0,",v," ",V[1],"A",s,",",s," 0 ",1-h^Ci(V[1][0],V[1][1],z[1][0],z[1][1]),",",h," ",z[1],"A",A,",",A," 0 0,",v," ",z[0]):k.push("M",V[0],"A",A,",",A," 0 1,",v," ",z[0])}else k.push("M",y,",",b);if(null!=E){var W=Ei([y,b],[E,w],t,-I,h),H=Ei([M,C],null==x?[y,b]:[x,_],t,-I,h);d===I?k.push("L",H[0],"A",I,",",I," 0 0,",v," ",H[1],"A",t,",",t," 0 ",h^Ci(H[1][0],H[1][1],W[1][0],W[1][1]),",",1-h," ",W[1],"A",I,",",I," 0 0,",v," ",W[0]):k.push("L",H[0],"A",I,",",I," 0 0,",v," ",W[0])}else k.push("L",M,",",C)}else k.push("M",y,",",b),null!=x&&k.push("A",s,",",s," 0 ",D,",",h," ",x,",",_),k.push("L",M,",",C),null!=E&&k.push("A",t,",",t," 0 ",R,",",1-h," ",E,",",w);return k.push("Z"),k.join("")}function e(t,e){return"M0,"+t+"A"+t+","+t+" 0 1,"+e+" 0,"+-t+"A"+t+","+t+" 0 1,"+e+" 0,"+t}var n=yi,r=bi,o=mi,i=Ol,a=xi,u=_i,l=Mi;return t.innerRadius=function(e){return arguments.length?(n=Rt(e),t):n},t.outerRadius=function(e){return arguments.length?(r=Rt(e),t):r},t.cornerRadius=function(e){return arguments.length?(o=Rt(e),t):o},t.padRadius=function(e){return arguments.length?(i=e==Ol?Ol:Rt(e),t):i},t.startAngle=function(e){return arguments.length?(a=Rt(e),t):a},t.endAngle=function(e){return arguments.length?(u=Rt(e),t):u},t.padAngle=function(e){return arguments.length?(l=Rt(e),t):l},t.centroid=function(){var t=(+n.apply(this,arguments)+ +r.apply(this,arguments))/2,e=(+a.apply(this,arguments)+ +u.apply(this,arguments))/2-Ha;return[Math.cos(e)*t,Math.sin(e)*t]},t};var Ol="auto";ha.svg.line=function(){return wi(C)};var Ll=ha.map({linear:Ni,"linear-closed":Si,step:ki,"step-before":Di,"step-after":Pi,basis:Li,"basis-open":Ui,"basis-closed":ji,bundle:Fi,cardinal:Ai,"cardinal-open":Ri,"cardinal-closed":Ti,monotone:Hi});Ll.forEach(function(t,e){e.key=t,e.closed=/-closed$/.test(t)});var Ul=[0,2/3,1/3,0],jl=[0,1/3,2/3,0],Fl=[0,1/6,2/3,1/6];ha.svg.line.radial=function(){var t=wi(Ki);return t.radius=t.x,delete t.x,t.angle=t.y,delete t.y,t},Di.reverse=Pi,Pi.reverse=Di,ha.svg.area=function(){return Yi(C)},ha.svg.area.radial=function(){var t=Yi(Ki);return t.radius=t.x,delete t.x,t.innerRadius=t.x0,delete t.x0,t.outerRadius=t.x1,delete t.x1,t.angle=t.y,delete t.y,t.startAngle=t.y0,delete t.y0,t.endAngle=t.y1,delete t.y1,t},ha.svg.chord=function(){function t(t,u){var l=e(this,i,t,u),s=e(this,a,t,u);return"M"+l.p0+r(l.r,l.p1,l.a1-l.a0)+(n(l,s)?o(l.r,l.p1,l.r,l.p0):o(l.r,l.p1,s.r,s.p0)+r(s.r,s.p1,s.a1-s.a0)+o(s.r,s.p1,l.r,l.p0))+"Z"}function e(t,e,n,r){var o=e.call(t,n,r),i=u.call(t,o,r),a=l.call(t,o,r)-Ha,c=s.call(t,o,r)-Ha;return{r:i,a0:a,a1:c,p0:[i*Math.cos(a),i*Math.sin(a)],p1:[i*Math.cos(c),i*Math.sin(c)]}}function n(t,e){return t.a0==e.a0&&t.a1==e.a1}function r(t,e,n){return"A"+t+","+t+" 0 "+ +(n>Va)+",1 "+e}function o(t,e,n,r){return"Q 0,0 "+r}var i=En,a=wn,u=Gi,l=xi,s=_i;return t.radius=function(e){return arguments.length?(u=Rt(e),t):u},t.source=function(e){return arguments.length?(i=Rt(e),t):i},t.target=function(e){return arguments.length?(a=Rt(e),t):a},t.startAngle=function(e){return arguments.length?(l=Rt(e),t):l},t.endAngle=function(e){return arguments.length?(s=Rt(e),t):s},t},ha.svg.diagonal=function(){function t(t,o){var i=e.call(this,t,o),a=n.call(this,t,o),u=(i.y+a.y)/2,l=[i,{x:i.x,y:u},{x:a.x,y:u},a];return l=l.map(r),"M"+l[0]+"C"+l[1]+" "+l[2]+" "+l[3]}var e=En,n=wn,r=Xi;return t.source=function(n){return arguments.length?(e=Rt(n),t):e},t.target=function(e){return arguments.length?(n=Rt(e),t):n},t.projection=function(e){return arguments.length?(r=e,t):r},t},ha.svg.diagonal.radial=function(){var t=ha.svg.diagonal(),e=Xi,n=t.projection;return t.projection=function(t){return arguments.length?n(Zi(e=t)):e},t},ha.svg.symbol=function(){function t(t,r){return(Bl.get(e.call(this,t,r))||Ji)(n.call(this,t,r))}var e=Qi,n=$i;return t.type=function(n){return arguments.length?(e=Rt(n),t):e},t.size=function(e){return arguments.length?(n=Rt(e),t):n},t};var Bl=ha.map({circle:Ji,cross:function(t){var e=Math.sqrt(t/5)/2;return"M"+-3*e+","+-e+"H"+-e+"V"+-3*e+"H"+e+"V"+-e+"H"+3*e+"V"+e+"H"+e+"V"+3*e+"H"+-e+"V"+e+"H"+-3*e+"Z"},diamond:function(t){var e=Math.sqrt(t/(2*Vl)),n=e*Vl;return"M0,"+-e+"L"+n+",0 0,"+e+" "+-n+",0Z"},square:function(t){var e=Math.sqrt(t)/2;return"M"+-e+","+-e+"L"+e+","+-e+" "+e+","+e+" "+-e+","+e+"Z"},"triangle-down":function(t){var e=Math.sqrt(t/ql),n=e*ql/2;return"M0,"+n+"L"+e+","+-n+" "+-e+","+-n+"Z"},"triangle-up":function(t){var e=Math.sqrt(t/ql),n=e*ql/2;return"M0,"+-n+"L"+e+","+n+" "+-e+","+n+"Z"}});ha.svg.symbolTypes=Bl.keys();var ql=Math.sqrt(3),Vl=Math.tan(30*Ka);Ta.transition=function(t){for(var e,n,r=zl||++Yl,o=oa(t),i=[],a=Wl||{time:Date.now(),ease:Rr,delay:0,duration:250},u=-1,l=this.length;++u<l;){i.push(e=[]);for(var s=this[u],c=-1,f=s.length;++c<f;)(n=s[c])&&ia(n,c,o,r,a),e.push(n)}return ea(i,o,r)},Ta.interrupt=function(t){return this.each(null==t?Hl:ta(oa(t)))};var zl,Wl,Hl=ta(oa()),Kl=[],Yl=0;Kl.call=Ta.call,Kl.empty=Ta.empty,Kl.node=Ta.node,Kl.size=Ta.size,ha.transition=function(t,e){return t&&t.transition?zl?t.transition(e):t:ha.selection().transition(t)},ha.transition.prototype=Kl,Kl.select=function(t){var e,n,r,o=this.id,i=this.namespace,a=[];t=A(t);for(var u=-1,l=this.length;++u<l;){a.push(e=[]);for(var s=this[u],c=-1,f=s.length;++c<f;)(r=s[c])&&(n=t.call(r,r.__data__,c,u))?("__data__"in r&&(n.__data__=r.__data__),ia(n,c,i,o,r[i][o]),e.push(n)):e.push(null)}return ea(a,i,o)},Kl.selectAll=function(t){var e,n,r,o,i,a=this.id,u=this.namespace,l=[];t=I(t);for(var s=-1,c=this.length;++s<c;)for(var f=this[s],p=-1,h=f.length;++p<h;)if(r=f[p]){i=r[u][a],n=t.call(r,r.__data__,p,s),l.push(e=[]);for(var d=-1,v=n.length;++d<v;)(o=n[d])&&ia(o,d,u,a,i),e.push(o)}return ea(l,u,a)},Kl.filter=function(t){var e,n,r,o=[];"function"!=typeof t&&(t=K(t));for(var i=0,a=this.length;i<a;i++){o.push(e=[]);for(var n=this[i],u=0,l=n.length;u<l;u++)(r=n[u])&&t.call(r,r.__data__,u,i)&&e.push(r)}return ea(o,this.namespace,this.id)},Kl.tween=function(t,e){var n=this.id,r=this.namespace;return arguments.length<2?this.node()[r][n].tween.get(t):G(this,null==e?function(e){e[r][n].tween.remove(t)}:function(o){o[r][n].tween.set(t,e)})},Kl.attr=function(t,e){function n(){this.removeAttribute(u)}function r(){this.removeAttributeNS(u.space,u.local)}function o(t){return null==t?n:(t+="",function(){var e,n=this.getAttribute(u);return n!==t&&(e=a(n,t),function(t){this.setAttribute(u,e(t))})})}function i(t){return null==t?r:(t+="",function(){var e,n=this.getAttributeNS(u.space,u.local);return n!==t&&(e=a(n,t),function(t){this.setAttributeNS(u.space,u.local,e(t))})})}if(arguments.length<2){for(e in t)this.attr(e,t[e]);return this}var a="transform"==t?Qr:Er,u=ha.ns.qualify(t);return na(this,"attr."+t,e,u.local?i:o)},Kl.attrTween=function(t,e){function n(t,n){var r=e.call(this,t,n,this.getAttribute(o));return r&&function(t){this.setAttribute(o,r(t))}}function r(t,n){var r=e.call(this,t,n,this.getAttributeNS(o.space,o.local));return r&&function(t){this.setAttributeNS(o.space,o.local,r(t))}}var o=ha.ns.qualify(t);return this.tween("attr."+t,o.local?r:n)},Kl.style=function(t,e,n){function r(){this.style.removeProperty(t)}function o(e){return null==e?r:(e+="",function(){var r,o=a(this).getComputedStyle(this,null).getPropertyValue(t);return o!==e&&(r=Er(o,e),function(e){this.style.setProperty(t,r(e),n)})})}var i=arguments.length;if(i<3){if("string"!=typeof t){i<2&&(e="");for(n in t)this.style(n,t[n],e);return this}n=""}return na(this,"style."+t,e,o)},Kl.styleTween=function(t,e,n){function r(r,o){var i=e.call(this,r,o,a(this).getComputedStyle(this,null).getPropertyValue(t));return i&&function(e){this.style.setProperty(t,i(e),n)}}return arguments.length<3&&(n=""),this.tween("style."+t,r)},Kl.text=function(t){return na(this,"text",t,ra)},Kl.remove=function(){var t=this.namespace;return this.each("end.transition",function(){var e;this[t].count<2&&(e=this.parentNode)&&e.removeChild(this)})},Kl.ease=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].ease:("function"!=typeof t&&(t=ha.ease.apply(ha,arguments)),G(this,function(r){r[n][e].ease=t}))},Kl.delay=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].delay:G(this,"function"==typeof t?function(r,o,i){r[n][e].delay=+t.call(r,r.__data__,o,i)}:(t=+t,function(r){r[n][e].delay=t}))},Kl.duration=function(t){var e=this.id,n=this.namespace;return arguments.length<1?this.node()[n][e].duration:G(this,"function"==typeof t?function(r,o,i){r[n][e].duration=Math.max(1,t.call(r,r.__data__,o,i))}:(t=Math.max(1,t),function(r){r[n][e].duration=t}))},Kl.each=function(t,e){var n=this.id,r=this.namespace;if(arguments.length<2){var o=Wl,i=zl;try{zl=n,G(this,function(e,o,i){Wl=e[r][n],t.call(e,e.__data__,o,i)})}finally{Wl=o,zl=i}}else G(this,function(o){var i=o[r][n];(i.event||(i.event=ha.dispatch("start","end","interrupt"))).on(t,e)});return this},Kl.transition=function(){for(var t,e,n,r,o=this.id,i=++Yl,a=this.namespace,u=[],l=0,s=this.length;l<s;l++){u.push(t=[]);for(var e=this[l],c=0,f=e.length;c<f;c++)(n=e[c])&&(r=n[a][o],ia(n,c,a,i,{time:r.time,ease:r.ease,delay:r.delay+r.duration,duration:r.duration})),t.push(n)}return ea(u,a,i)},ha.svg.axis=function(){function t(t){t.each(function(){var t,s=ha.select(this),c=this.__chart__||n,f=this.__chart__=n.copy(),p=null==l?f.ticks?f.ticks.apply(f,u):f.domain():l,h=null==e?f.tickFormat?f.tickFormat.apply(f,u):C:e,d=s.selectAll(".tick").data(p,f),v=d.enter().insert("g",".domain").attr("class","tick").style("opacity",Ba),g=ha.transition(d.exit()).style("opacity",Ba).remove(),m=ha.transition(d.order()).style("opacity",1),y=Math.max(o,0)+a,b=Zo(f),x=s.selectAll(".domain").data([0]),_=(x.enter().append("path").attr("class","domain"),ha.transition(x));v.append("line"),v.append("text");var M,E,w,N,S=v.select("line"),k=m.select("line"),D=d.select("text").text(h),P=v.select("text"),R=m.select("text"),T="top"===r||"left"===r?-1:1;if("bottom"===r||"top"===r?(t=aa,M="x",w="y",E="x2",N="y2",D.attr("dy",T<0?"0em":".71em").style("text-anchor","middle"),_.attr("d","M"+b[0]+","+T*i+"V0H"+b[1]+"V"+T*i)):(t=ua,M="y",w="x",E="y2",N="x2",D.attr("dy",".32em").style("text-anchor",T<0?"end":"start"),_.attr("d","M"+T*i+","+b[0]+"H0V"+b[1]+"H"+T*i)),S.attr(N,T*o),P.attr(w,T*y),k.attr(E,0).attr(N,T*o),R.attr(M,0).attr(w,T*y),f.rangeBand){var A=f,I=A.rangeBand()/2;c=f=function(t){return A(t)+I}}else c.rangeBand?c=f:g.call(t,f,c);v.call(t,c,f),m.call(t,f,f)})}var e,n=ha.scale.linear(),r=Gl,o=6,i=6,a=3,u=[10],l=null;return t.scale=function(e){return arguments.length?(n=e,t):n},t.orient=function(e){return arguments.length?(r=e in Xl?e+"":Gl,t):r},t.ticks=function(){return arguments.length?(u=va(arguments),t):u},t.tickValues=function(e){return arguments.length?(l=e,t):l},t.tickFormat=function(n){return arguments.length?(e=n,t):e},t.tickSize=function(e){var n=arguments.length;return n?(o=+e,i=+arguments[n-1],t):o},t.innerTickSize=function(e){return arguments.length?(o=+e,t):o},t.outerTickSize=function(e){return arguments.length?(i=+e,t):i},t.tickPadding=function(e){return arguments.length?(a=+e,t):a},t.tickSubdivide=function(){return arguments.length&&t},t};var Gl="bottom",Xl={top:1,right:1,bottom:1,left:1};ha.svg.brush=function(){function t(i){i.each(function(){var i=ha.select(this).style("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush",o).on("touchstart.brush",o),a=i.selectAll(".background").data([0]);a.enter().append("rect").attr("class","background").style("visibility","hidden").style("cursor","crosshair"),i.selectAll(".extent").data([0]).enter().append("rect").attr("class","extent").style("cursor","move");var u=i.selectAll(".resize").data(v,C);u.exit().remove(),u.enter().append("g").attr("class",function(t){return"resize "+t}).style("cursor",function(t){return Zl[t]}).append("rect").attr("x",function(t){return/[ew]$/.test(t)?-3:null}).attr("y",function(t){return/^[ns]/.test(t)?-3:null}).attr("width",6).attr("height",6).style("visibility","hidden"),u.style("display",t.empty()?"none":null);var l,f=ha.transition(i),p=ha.transition(a);s&&(l=Zo(s),p.attr("x",l[0]).attr("width",l[1]-l[0]),n(f)),c&&(l=Zo(c),p.attr("y",l[0]).attr("height",l[1]-l[0]),r(f)),e(f)})}function e(t){t.selectAll(".resize").attr("transform",function(t){return"translate("+f[+/e$/.test(t)]+","+p[+/^s/.test(t)]+")"})}function n(t){t.select(".extent").attr("x",f[0]),t.selectAll(".extent,.n>rect,.s>rect").attr("width",f[1]-f[0])}function r(t){t.select(".extent").attr("y",p[0]),t.selectAll(".extent,.e>rect,.w>rect").attr("height",p[1]-p[0])}function o(){function o(){32==ha.event.keyCode&&(k||(b=null,R[0]-=f[1],R[1]-=p[1],k=2),D())}function v(){32==ha.event.keyCode&&2==k&&(R[0]+=f[1],R[1]+=p[1],k=0,D())}function g(){var t=ha.mouse(_),o=!1;x&&(t[0]+=x[0],t[1]+=x[1]),k||(ha.event.altKey?(b||(b=[(f[0]+f[1])/2,(p[0]+p[1])/2]),R[0]=f[+(t[0]<b[0])],R[1]=p[+(t[1]<b[1])]):b=null),N&&m(t,s,0)&&(n(E),o=!0),S&&m(t,c,1)&&(r(E),o=!0),o&&(e(E),C({type:"brush",mode:k?"move":"resize"}))}function m(t,e,n){var r,o,a=Zo(e),l=a[0],s=a[1],c=R[n],v=n?p:f,g=v[1]-v[0];if(k&&(l-=c,s-=g+c),r=(n?d:h)?Math.max(l,Math.min(s,t[n])):t[n],k?o=(r+=c)+g:(b&&(c=Math.max(l,Math.min(s,2*b[n]-r))),c<r?(o=r,r=c):o=c),v[0]!=r||v[1]!=o)return n?u=null:i=null,v[0]=r,v[1]=o,!0}function y(){g(),E.style("pointer-events","all").selectAll(".resize").style("display",t.empty()?"none":null),ha.select("body").style("cursor",null),T.on("mousemove.brush",null).on("mouseup.brush",null).on("touchmove.brush",null).on("touchend.brush",null).on("keydown.brush",null).on("keyup.brush",null),P(),C({type:"brushend"})}var b,x,_=this,M=ha.select(ha.event.target),C=l.of(_,arguments),E=ha.select(_),w=M.datum(),N=!/^(n|s)$/.test(w)&&s,S=!/^(e|w)$/.test(w)&&c,k=M.classed("extent"),P=tt(_),R=ha.mouse(_),T=ha.select(a(_)).on("keydown.brush",o).on("keyup.brush",v);if(ha.event.changedTouches?T.on("touchmove.brush",g).on("touchend.brush",y):T.on("mousemove.brush",g).on("mouseup.brush",y),E.interrupt().selectAll("*").interrupt(),k)R[0]=f[0]-R[0],R[1]=p[0]-R[1];else if(w){var A=+/w$/.test(w),I=+/^n/.test(w);x=[f[1-A]-R[0],p[1-I]-R[1]],R[0]=f[A],R[1]=p[I]}else ha.event.altKey&&(b=R.slice());E.style("pointer-events","none").selectAll(".resize").style("display",null),ha.select("body").style("cursor",M.style("cursor")),C({type:"brushstart"}),g()}var i,u,l=R(t,"brushstart","brush","brushend"),s=null,c=null,f=[0,0],p=[0,0],h=!0,d=!0,v=$l[0];return t.event=function(t){t.each(function(){var t=l.of(this,arguments),e={x:f,y:p,i:i,j:u},n=this.__chart__||e;this.__chart__=e,zl?ha.select(this).transition().each("start.brush",function(){i=n.i,u=n.j,f=n.x,p=n.y,t({type:"brushstart"})}).tween("brush:brush",function(){var n=wr(f,e.x),r=wr(p,e.y);return i=u=null,function(o){f=e.x=n(o),p=e.y=r(o),t({type:"brush",mode:"resize"})}}).each("end.brush",function(){i=e.i,u=e.j,t({type:"brush",mode:"resize"}),t({type:"brushend"})}):(t({type:"brushstart"}),t({type:"brush",mode:"resize"}),t({type:"brushend"}))})},t.x=function(e){return arguments.length?(s=e,v=$l[!s<<1|!c],t):s},t.y=function(e){return arguments.length?(c=e,v=$l[!s<<1|!c],t):c},t.clamp=function(e){return arguments.length?(s&&c?(h=!!e[0],d=!!e[1]):s?h=!!e:c&&(d=!!e),t):s&&c?[h,d]:s?h:c?d:null},t.extent=function(e){var n,r,o,a,l;return arguments.length?(s&&(n=e[0],r=e[1],c&&(n=n[0],r=r[0]),i=[n,r],s.invert&&(n=s(n),r=s(r)),r<n&&(l=n,n=r,r=l),n==f[0]&&r==f[1]||(f=[n,r])),c&&(o=e[0],a=e[1],s&&(o=o[1],a=a[1]),u=[o,a],c.invert&&(o=c(o),a=c(a)),a<o&&(l=o,o=a,a=l),o==p[0]&&a==p[1]||(p=[o,a])),t):(s&&(i?(n=i[0],r=i[1]):(n=f[0],r=f[1],s.invert&&(n=s.invert(n),r=s.invert(r)),r<n&&(l=n,n=r,r=l))),c&&(u?(o=u[0],a=u[1]):(o=p[0],a=p[1],c.invert&&(o=c.invert(o),a=c.invert(a)),a<o&&(l=o,o=a,a=l))),s&&c?[[n,o],[r,a]]:s?[n,r]:c&&[o,a])},t.clear=function(){return t.empty()||(f=[0,0],p=[0,0],i=u=null),t},t.empty=function(){return!!s&&f[0]==f[1]||!!c&&p[0]==p[1]},ha.rebind(t,l,"on")};var Zl={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",
207
- ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},$l=[["n","e","s","w","nw","ne","se","sw"],["e","w"],["n","s"],[]],Ql=mu.format=Cu.timeFormat,Jl=Ql.utc,ts=Jl("%Y-%m-%dT%H:%M:%S.%LZ");Ql.iso=Date.prototype.toISOString&&+new Date("2000-01-01T00:00:00.000Z")?la:ts,la.parse=function(t){var e=new Date(t);return isNaN(e)?null:e},la.toString=ts.toString,mu.second=Ht(function(t){return new yu(1e3*Math.floor(t/1e3))},function(t,e){t.setTime(t.getTime()+1e3*Math.floor(e))},function(t){return t.getSeconds()}),mu.seconds=mu.second.range,mu.seconds.utc=mu.second.utc.range,mu.minute=Ht(function(t){return new yu(6e4*Math.floor(t/6e4))},function(t,e){t.setTime(t.getTime()+6e4*Math.floor(e))},function(t){return t.getMinutes()}),mu.minutes=mu.minute.range,mu.minutes.utc=mu.minute.utc.range,mu.hour=Ht(function(t){var e=t.getTimezoneOffset()/60;return new yu(36e5*(Math.floor(t/36e5-e)+e))},function(t,e){t.setTime(t.getTime()+36e5*Math.floor(e))},function(t){return t.getHours()}),mu.hours=mu.hour.range,mu.hours.utc=mu.hour.utc.range,mu.month=Ht(function(t){return t=mu.day(t),t.setDate(1),t},function(t,e){t.setMonth(t.getMonth()+e)},function(t){return t.getMonth()}),mu.months=mu.month.range,mu.months.utc=mu.month.utc.range;var es=[1e3,5e3,15e3,3e4,6e4,3e5,9e5,18e5,36e5,108e5,216e5,432e5,864e5,1728e5,6048e5,2592e6,7776e6,31536e6],ns=[[mu.second,1],[mu.second,5],[mu.second,15],[mu.second,30],[mu.minute,1],[mu.minute,5],[mu.minute,15],[mu.minute,30],[mu.hour,1],[mu.hour,3],[mu.hour,6],[mu.hour,12],[mu.day,1],[mu.day,2],[mu.week,1],[mu.month,1],[mu.month,3],[mu.year,1]],rs=Ql.multi([[".%L",function(t){return t.getMilliseconds()}],[":%S",function(t){return t.getSeconds()}],["%I:%M",function(t){return t.getMinutes()}],["%I %p",function(t){return t.getHours()}],["%a %d",function(t){return t.getDay()&&1!=t.getDate()}],["%b %d",function(t){return 1!=t.getDate()}],["%B",function(t){return t.getMonth()}],["%Y",Ie]]),os={range:function(t,e,n){return ha.range(Math.ceil(t/n)*n,+e,n).map(ca)},floor:C,ceil:C};ns.year=mu.year,mu.scale=function(){return sa(ha.scale.linear(),ns,rs)};var is=ns.map(function(t){return[t[0].utc,t[1]]}),as=Jl.multi([[".%L",function(t){return t.getUTCMilliseconds()}],[":%S",function(t){return t.getUTCSeconds()}],["%I:%M",function(t){return t.getUTCMinutes()}],["%I %p",function(t){return t.getUTCHours()}],["%a %d",function(t){return t.getUTCDay()&&1!=t.getUTCDate()}],["%b %d",function(t){return 1!=t.getUTCDate()}],["%B",function(t){return t.getUTCMonth()}],["%Y",Ie]]);is.year=mu.year.utc,mu.scale.utc=function(){return sa(ha.scale.linear(),is,as)},ha.text=Tt(function(t){return t.responseText}),ha.json=function(t,e){return At(t,"application/json",fa,e)},ha.html=function(t,e){return At(t,"text/html",pa,e)},ha.xml=Tt(function(t){return t.responseXML}),this.d3=ha,r=ha,o="function"==typeof r?r.call(e,n,e,t):r,!(void 0!==o&&(t.exports=o))}()},function(t,e){"use strict";function n(t){var e=t.name,n=e.indexOf(".");return n!==-1&&0!==n&&n!==e.length-1?r.__file__:t.parent&&"node_modules"===t.parent.name?"#599e59":r[e]||r.__default__}Object.defineProperty(e,"__esModule",{value:!0}),e.getColor=n;var r={__file__:"#db7100",__default__:"#487ea4"}},function(t,e){"use strict";function n(t){for(var e=[],n=t;n.parent;)e.unshift(n),n=n.parent;return e}function r(t){var e=[],n=function t(n){e.push(n),n.children&&n.children.forEach(function(e){t(e)})};return n(t),e}function o(t){var e={};t.forEach(function(t){if(t.fullName){var n=t.fullName.lastIndexOf("~");if(n!==-1){var r=t.fullName.substring(n);r in e?(t.duplicate=!0,e[r].duplicate=!0):e[r]=t}}})}Object.defineProperty(e,"__esModule",{value:!0}),e.getAncestors=n,e.getAllChildren=r,e.markDuplicates=o},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t){var e=void 0,n=void 0,r=void 0,o=t.bundleDetails,i=t.details;if(i){var u=(0,l.default)(i.size);if(o.actual){var s=(0,l.default)(o.actual*i.percentage.replace("%","")*.01,0);r=s+" actual | "+u+" raw"}else r=u+" raw";e=i.name,n=i.percentage}else{if(!o.assetName)return a.default.createElement("div",{className:"details"});if(e=o.assetName,"collection"===o.type)n=a.default.createElement("span",null," "),r="";else{var u=(0,l.default)(o.raw),s=(0,l.default)(o.actual);n=a.default.createElement("span",null," "),r=s+" actual | "+u+" raw"}}return a.default.createElement("div",{className:"details",style:{marginTop:"-"+t.topMargin}},a.default.createElement("span",{className:"details-name"},e),a.default.createElement("div",{className:"details-percentage"},n),r&&a.default.createElement("div",{className:"details-size"},r))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var i=n(1),a=r(i),u=n(162),l=r(u);o.propTypes={bundleDetails:i.PropTypes.object,details:i.PropTypes.object,topMargin:i.PropTypes.number},t.exports=e.default},function(t,e){"use strict";function n(t){var e=arguments.length<=1||void 0===arguments[1]?1:arguments[1],n={label:"k",value:1024},r={label:"M",value:1048576},o=void 0;return t>=r.value?o=r:(o=n,t<.92*n.value&&0===e&&(e=1)),(t/o.value).toFixed(e)+o.label}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=r(o),a=function(t){return i.default.createElement("div",{className:"breadcrumbs"},t.nodes.map(function(t,e){var n=" > ";return 0===e&&(n=""),n+t.name}))};a.propTypes={nodes:o.PropTypes.array},e.default=a,t.exports=e.default},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),i=r(o);e.default=function(t){return i.default.createElement("footer",null,t.children,i.default.createElement("h2",null,"Disclaimer"),i.default.createElement("p",null,'Due to limitations in Webpack\'s stats, the "actual" (minified) numbers reported here are approximate, but they should be pretty close.'),i.default.createElement("h2",null,"Contribute!"),i.default.createElement("p",null,"Check it out on ",i.default.createElement("a",{href:"https://github.com/chrisbateman/webpack-visualizer"},"GitHub"),", and please ",i.default.createElement("a",{href:"https://github.com/chrisbateman/webpack-visualizer/issues"},"report issues or request features"),"!"),i.default.createElement("h2",null,"Acknowledgements"),i.default.createElement("p",null,i.default.createElement("a",{href:"https://github.com/hughsk/disc"},"Disc")," for Browserify did this first. Thanks also to ",i.default.createElement("a",{href:"https://gist.github.com/kerryrodden/7090426"},"this example")," from the D3 gallery for demonstating how to create sunburst charts."),i.default.createElement("h2",null,"Comments, questions"),i.default.createElement("p",null,"Let me know! ",i.default.createElement("a",{href:"https://twitter.com/batemanchris/"},"@batemanchris")))},t.exports=e.default},function(t,e){"use strict";function n(t){var e=1,n={children:[],name:"root"};return t.forEach(function(t){var o=t.identifier.indexOf("extract-text-webpack-plugin")!==-1,i=t.issuer&&t.issuer.indexOf("extract-text-webpack-plugin")!==-1;if(!o&&!i&&null!==t.index){var a={id:t.id,fullName:t.name,size:t.size,reasons:t.reasons},u=a.fullName.split("/").length-1;u>e&&(e=u);var l=a.fullName,s=a.fullName.slice(0,2);"./"===s&&(l=l.slice(2)),r(a,l,n)}}),n.maxDepth=e,n}function r(t,e,n){var i=e.indexOf("/");if(i!==-1){var a=e.slice(0,i);"~"===a&&(a="node_modules");var u=o(n.children,a);u||(u={name:a,children:[]},n.children.push(u)),r(t,e.slice(i+1),u)}else t.name=e,n.children.push(t)}function o(t,e){for(var n=0;n<t.length;n++)if(t[n].name===e)return t[n]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,t.exports=e.default},function(t,e){"use strict";function n(t,e){var n={};return e.forEach(function(t){n[t.id]=t}),t.filter(function(t){return t.name.indexOf(".js")===t.name.length-3}).map(function(t){var e=t.chunks[0];return o({},t,{chunk:n[e]})})}function r(t){var e=t.assets,n=(t.chunks,t.selectedAssetIndex);if(0===n)return 1===e.length?{type:"normal",assetName:e[0].name,actual:e[0].size,raw:e.reduce(function(t,e){return t+e.chunk.size},0)}:{type:"collection",assetName:"All Modules",actual:"",raw:""};var r=e[n-1];return{type:"normal",assetName:r.name,actual:r.size,raw:r.chunk.size}}Object.defineProperty(e,"__esModule",{value:!0});var o=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.getAssetsData=n,e.getBundleDetails=r;var i="Unfortunately, it looks like your stats don't include chunk-specific module data. See below for details.";e.ERROR_CHUNK_MODULES=i}]);</script>
208
-