@everymatrix/casino-tournaments-limited-controller 1.13.6 → 1.13.8
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.
@@ -651,17 +651,20 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
651
651
|
|
652
652
|
customElements.define("casino-tournaments-limited-controller-loader", Private_loader);
|
653
653
|
|
654
|
-
|
654
|
+
/* eslint-disable no-prototype-builtins */
|
655
|
+
var g$1 =
|
655
656
|
(typeof globalThis !== 'undefined' && globalThis) ||
|
656
657
|
(typeof self !== 'undefined' && self) ||
|
657
|
-
|
658
|
+
// eslint-disable-next-line no-undef
|
659
|
+
(typeof global !== 'undefined' && global) ||
|
660
|
+
{};
|
658
661
|
|
659
662
|
var support = {
|
660
|
-
searchParams: 'URLSearchParams' in
|
661
|
-
iterable: 'Symbol' in
|
663
|
+
searchParams: 'URLSearchParams' in g$1,
|
664
|
+
iterable: 'Symbol' in g$1 && 'iterator' in Symbol,
|
662
665
|
blob:
|
663
|
-
'FileReader' in
|
664
|
-
'Blob' in
|
666
|
+
'FileReader' in g$1 &&
|
667
|
+
'Blob' in g$1 &&
|
665
668
|
(function() {
|
666
669
|
try {
|
667
670
|
new Blob();
|
@@ -670,8 +673,8 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
670
673
|
return false
|
671
674
|
}
|
672
675
|
})(),
|
673
|
-
formData: 'FormData' in
|
674
|
-
arrayBuffer: 'ArrayBuffer' in
|
676
|
+
formData: 'FormData' in g$1,
|
677
|
+
arrayBuffer: 'ArrayBuffer' in g$1
|
675
678
|
};
|
676
679
|
|
677
680
|
function isDataView(obj) {
|
@@ -742,6 +745,9 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
742
745
|
}, this);
|
743
746
|
} else if (Array.isArray(headers)) {
|
744
747
|
headers.forEach(function(header) {
|
748
|
+
if (header.length != 2) {
|
749
|
+
throw new TypeError('Headers constructor: expected name/value pair to be length 2, found' + header.length)
|
750
|
+
}
|
745
751
|
this.append(header[0], header[1]);
|
746
752
|
}, this);
|
747
753
|
} else if (headers) {
|
@@ -812,6 +818,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
812
818
|
}
|
813
819
|
|
814
820
|
function consumed(body) {
|
821
|
+
if (body._noBody) return
|
815
822
|
if (body.bodyUsed) {
|
816
823
|
return Promise.reject(new TypeError('Already read'))
|
817
824
|
}
|
@@ -839,7 +846,9 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
839
846
|
function readBlobAsText(blob) {
|
840
847
|
var reader = new FileReader();
|
841
848
|
var promise = fileReaderReady(reader);
|
842
|
-
|
849
|
+
var match = /charset=([A-Za-z0-9_-]+)/.exec(blob.type);
|
850
|
+
var encoding = match ? match[1] : 'utf-8';
|
851
|
+
reader.readAsText(blob, encoding);
|
843
852
|
return promise
|
844
853
|
}
|
845
854
|
|
@@ -877,9 +886,11 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
877
886
|
semantic of setting Request.bodyUsed in the constructor before
|
878
887
|
_initBody is called.
|
879
888
|
*/
|
889
|
+
// eslint-disable-next-line no-self-assign
|
880
890
|
this.bodyUsed = this.bodyUsed;
|
881
891
|
this._bodyInit = body;
|
882
892
|
if (!body) {
|
893
|
+
this._noBody = true;
|
883
894
|
this._bodyText = '';
|
884
895
|
} else if (typeof body === 'string') {
|
885
896
|
this._bodyText = body;
|
@@ -927,28 +938,29 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
927
938
|
return Promise.resolve(new Blob([this._bodyText]))
|
928
939
|
}
|
929
940
|
};
|
941
|
+
}
|
930
942
|
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
|
937
|
-
|
938
|
-
|
939
|
-
this._bodyArrayBuffer.
|
940
|
-
|
941
|
-
this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
|
942
|
-
)
|
943
|
+
this.arrayBuffer = function() {
|
944
|
+
if (this._bodyArrayBuffer) {
|
945
|
+
var isConsumed = consumed(this);
|
946
|
+
if (isConsumed) {
|
947
|
+
return isConsumed
|
948
|
+
} else if (ArrayBuffer.isView(this._bodyArrayBuffer)) {
|
949
|
+
return Promise.resolve(
|
950
|
+
this._bodyArrayBuffer.buffer.slice(
|
951
|
+
this._bodyArrayBuffer.byteOffset,
|
952
|
+
this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength
|
943
953
|
)
|
944
|
-
|
945
|
-
return Promise.resolve(this._bodyArrayBuffer)
|
946
|
-
}
|
954
|
+
)
|
947
955
|
} else {
|
948
|
-
return
|
956
|
+
return Promise.resolve(this._bodyArrayBuffer)
|
949
957
|
}
|
950
|
-
}
|
951
|
-
|
958
|
+
} else if (support.blob) {
|
959
|
+
return this.blob().then(readBlobAsArrayBuffer)
|
960
|
+
} else {
|
961
|
+
throw new Error('could not read as ArrayBuffer')
|
962
|
+
}
|
963
|
+
};
|
952
964
|
|
953
965
|
this.text = function() {
|
954
966
|
var rejected = consumed(this);
|
@@ -981,7 +993,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
981
993
|
}
|
982
994
|
|
983
995
|
// HTTP methods whose capitalization should be normalized
|
984
|
-
var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];
|
996
|
+
var methods = ['CONNECT', 'DELETE', 'GET', 'HEAD', 'OPTIONS', 'PATCH', 'POST', 'PUT', 'TRACE'];
|
985
997
|
|
986
998
|
function normalizeMethod(method) {
|
987
999
|
var upcased = method.toUpperCase();
|
@@ -1022,7 +1034,12 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
1022
1034
|
}
|
1023
1035
|
this.method = normalizeMethod(options.method || this.method || 'GET');
|
1024
1036
|
this.mode = options.mode || this.mode || null;
|
1025
|
-
this.signal = options.signal || this.signal
|
1037
|
+
this.signal = options.signal || this.signal || (function () {
|
1038
|
+
if ('AbortController' in g$1) {
|
1039
|
+
var ctrl = new AbortController();
|
1040
|
+
return ctrl.signal;
|
1041
|
+
}
|
1042
|
+
}());
|
1026
1043
|
this.referrer = null;
|
1027
1044
|
|
1028
1045
|
if ((this.method === 'GET' || this.method === 'HEAD') && body) {
|
@@ -1084,7 +1101,11 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
1084
1101
|
var key = parts.shift().trim();
|
1085
1102
|
if (key) {
|
1086
1103
|
var value = parts.join(':').trim();
|
1087
|
-
|
1104
|
+
try {
|
1105
|
+
headers.append(key, value);
|
1106
|
+
} catch (error) {
|
1107
|
+
console.warn('Response ' + error.message);
|
1108
|
+
}
|
1088
1109
|
}
|
1089
1110
|
});
|
1090
1111
|
return headers
|
@@ -1102,6 +1123,9 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
1102
1123
|
|
1103
1124
|
this.type = 'default';
|
1104
1125
|
this.status = options.status === undefined ? 200 : options.status;
|
1126
|
+
if (this.status < 200 || this.status > 599) {
|
1127
|
+
throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].")
|
1128
|
+
}
|
1105
1129
|
this.ok = this.status >= 200 && this.status < 300;
|
1106
1130
|
this.statusText = options.statusText === undefined ? '' : '' + options.statusText;
|
1107
1131
|
this.headers = new Headers(options.headers);
|
@@ -1121,7 +1145,8 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
1121
1145
|
};
|
1122
1146
|
|
1123
1147
|
Response.error = function() {
|
1124
|
-
var response = new Response(null, {status:
|
1148
|
+
var response = new Response(null, {status: 200, statusText: ''});
|
1149
|
+
response.status = 0;
|
1125
1150
|
response.type = 'error';
|
1126
1151
|
return response
|
1127
1152
|
};
|
@@ -1136,7 +1161,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
1136
1161
|
return new Response(null, {status: status, headers: {location: url}})
|
1137
1162
|
};
|
1138
1163
|
|
1139
|
-
var DOMException =
|
1164
|
+
var DOMException = g$1.DOMException;
|
1140
1165
|
try {
|
1141
1166
|
new DOMException();
|
1142
1167
|
} catch (err) {
|
@@ -1165,10 +1190,15 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
1165
1190
|
}
|
1166
1191
|
|
1167
1192
|
xhr.onload = function() {
|
1193
|
+
var responseHeaders = xhr.getAllResponseHeaders();
|
1194
|
+
var setCookie = xhr.getResponseHeader('set-cookie');
|
1195
|
+
if (setCookie) {
|
1196
|
+
responseHeaders = responseHeaders.replace(setCookie, setCookie.replace(/\r?\n/g, ', '));
|
1197
|
+
}
|
1168
1198
|
var options = {
|
1169
1199
|
status: xhr.status,
|
1170
1200
|
statusText: xhr.statusText,
|
1171
|
-
headers: parseHeaders(
|
1201
|
+
headers: parseHeaders(responseHeaders || '')
|
1172
1202
|
};
|
1173
1203
|
options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL');
|
1174
1204
|
var body = 'response' in xhr ? xhr.response : xhr.responseText;
|
@@ -1197,7 +1227,7 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
1197
1227
|
|
1198
1228
|
function fixUrl(url) {
|
1199
1229
|
try {
|
1200
|
-
return url === '' &&
|
1230
|
+
return url === '' && g$1.location.href ? g$1.location.href : url
|
1201
1231
|
} catch (e) {
|
1202
1232
|
return url
|
1203
1233
|
}
|
@@ -1215,18 +1245,23 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
1215
1245
|
if (support.blob) {
|
1216
1246
|
xhr.responseType = 'blob';
|
1217
1247
|
} else if (
|
1218
|
-
support.arrayBuffer
|
1219
|
-
request.headers.get('Content-Type') &&
|
1220
|
-
request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1
|
1248
|
+
support.arrayBuffer
|
1221
1249
|
) {
|
1222
1250
|
xhr.responseType = 'arraybuffer';
|
1223
1251
|
}
|
1224
1252
|
}
|
1225
1253
|
|
1226
|
-
if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {
|
1254
|
+
if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers || (g$1.Headers && init.headers instanceof g$1.Headers))) {
|
1255
|
+
var names = [];
|
1227
1256
|
Object.getOwnPropertyNames(init.headers).forEach(function(name) {
|
1257
|
+
names.push(normalizeName(name));
|
1228
1258
|
xhr.setRequestHeader(name, normalizeValue(init.headers[name]));
|
1229
1259
|
});
|
1260
|
+
request.headers.forEach(function(value, name) {
|
1261
|
+
if (names.indexOf(name) === -1) {
|
1262
|
+
xhr.setRequestHeader(name, value);
|
1263
|
+
}
|
1264
|
+
});
|
1230
1265
|
} else {
|
1231
1266
|
request.headers.forEach(function(value, name) {
|
1232
1267
|
xhr.setRequestHeader(name, value);
|
@@ -1250,11 +1285,11 @@ data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAYAAAD0eNT6AAAABHNCSVQICA
|
|
1250
1285
|
|
1251
1286
|
fetch$1.polyfill = true;
|
1252
1287
|
|
1253
|
-
if (!
|
1254
|
-
|
1255
|
-
|
1256
|
-
|
1257
|
-
|
1288
|
+
if (!g$1.fetch) {
|
1289
|
+
g$1.fetch = fetch$1;
|
1290
|
+
g$1.Headers = Headers;
|
1291
|
+
g$1.Request = Request;
|
1292
|
+
g$1.Response = Response;
|
1258
1293
|
}
|
1259
1294
|
|
1260
1295
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|