chat-pane 2.4.11-alpha-23942afd → 2.4.11-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chat.bundle.js +350 -363
- package/dist/chat.bundle.js.map +1 -1
- package/dist/longChatPane.js +350 -363
- package/dist/longChatPane.js.map +1 -1
- package/dist/shortChatPane.js +350 -363
- package/dist/shortChatPane.js.map +1 -1
- package/package.json +2 -2
package/dist/chat.bundle.js
CHANGED
|
@@ -32925,6 +32925,313 @@ var substr = 'ab'.substr(-1) === 'b'
|
|
|
32925
32925
|
|
|
32926
32926
|
/***/ }),
|
|
32927
32927
|
|
|
32928
|
+
/***/ "./node_modules/node-libs-browser/node_modules/string_decoder/lib/string_decoder.js":
|
|
32929
|
+
/*!******************************************************************************************!*\
|
|
32930
|
+
!*** ./node_modules/node-libs-browser/node_modules/string_decoder/lib/string_decoder.js ***!
|
|
32931
|
+
\******************************************************************************************/
|
|
32932
|
+
/*! no static exports found */
|
|
32933
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
32934
|
+
|
|
32935
|
+
"use strict";
|
|
32936
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
32937
|
+
//
|
|
32938
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
32939
|
+
// copy of this software and associated documentation files (the
|
|
32940
|
+
// "Software"), to deal in the Software without restriction, including
|
|
32941
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
32942
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
32943
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
32944
|
+
// following conditions:
|
|
32945
|
+
//
|
|
32946
|
+
// The above copyright notice and this permission notice shall be included
|
|
32947
|
+
// in all copies or substantial portions of the Software.
|
|
32948
|
+
//
|
|
32949
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
32950
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
32951
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
32952
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
32953
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
32954
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
32955
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
32956
|
+
|
|
32957
|
+
|
|
32958
|
+
|
|
32959
|
+
/*<replacement>*/
|
|
32960
|
+
|
|
32961
|
+
var Buffer = __webpack_require__(/*! safe-buffer */ "./node_modules/safe-buffer/index.js").Buffer;
|
|
32962
|
+
/*</replacement>*/
|
|
32963
|
+
|
|
32964
|
+
var isEncoding = Buffer.isEncoding || function (encoding) {
|
|
32965
|
+
encoding = '' + encoding;
|
|
32966
|
+
switch (encoding && encoding.toLowerCase()) {
|
|
32967
|
+
case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':
|
|
32968
|
+
return true;
|
|
32969
|
+
default:
|
|
32970
|
+
return false;
|
|
32971
|
+
}
|
|
32972
|
+
};
|
|
32973
|
+
|
|
32974
|
+
function _normalizeEncoding(enc) {
|
|
32975
|
+
if (!enc) return 'utf8';
|
|
32976
|
+
var retried;
|
|
32977
|
+
while (true) {
|
|
32978
|
+
switch (enc) {
|
|
32979
|
+
case 'utf8':
|
|
32980
|
+
case 'utf-8':
|
|
32981
|
+
return 'utf8';
|
|
32982
|
+
case 'ucs2':
|
|
32983
|
+
case 'ucs-2':
|
|
32984
|
+
case 'utf16le':
|
|
32985
|
+
case 'utf-16le':
|
|
32986
|
+
return 'utf16le';
|
|
32987
|
+
case 'latin1':
|
|
32988
|
+
case 'binary':
|
|
32989
|
+
return 'latin1';
|
|
32990
|
+
case 'base64':
|
|
32991
|
+
case 'ascii':
|
|
32992
|
+
case 'hex':
|
|
32993
|
+
return enc;
|
|
32994
|
+
default:
|
|
32995
|
+
if (retried) return; // undefined
|
|
32996
|
+
enc = ('' + enc).toLowerCase();
|
|
32997
|
+
retried = true;
|
|
32998
|
+
}
|
|
32999
|
+
}
|
|
33000
|
+
};
|
|
33001
|
+
|
|
33002
|
+
// Do not cache `Buffer.isEncoding` when checking encoding names as some
|
|
33003
|
+
// modules monkey-patch it to support additional encodings
|
|
33004
|
+
function normalizeEncoding(enc) {
|
|
33005
|
+
var nenc = _normalizeEncoding(enc);
|
|
33006
|
+
if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);
|
|
33007
|
+
return nenc || enc;
|
|
33008
|
+
}
|
|
33009
|
+
|
|
33010
|
+
// StringDecoder provides an interface for efficiently splitting a series of
|
|
33011
|
+
// buffers into a series of JS strings without breaking apart multi-byte
|
|
33012
|
+
// characters.
|
|
33013
|
+
exports.StringDecoder = StringDecoder;
|
|
33014
|
+
function StringDecoder(encoding) {
|
|
33015
|
+
this.encoding = normalizeEncoding(encoding);
|
|
33016
|
+
var nb;
|
|
33017
|
+
switch (this.encoding) {
|
|
33018
|
+
case 'utf16le':
|
|
33019
|
+
this.text = utf16Text;
|
|
33020
|
+
this.end = utf16End;
|
|
33021
|
+
nb = 4;
|
|
33022
|
+
break;
|
|
33023
|
+
case 'utf8':
|
|
33024
|
+
this.fillLast = utf8FillLast;
|
|
33025
|
+
nb = 4;
|
|
33026
|
+
break;
|
|
33027
|
+
case 'base64':
|
|
33028
|
+
this.text = base64Text;
|
|
33029
|
+
this.end = base64End;
|
|
33030
|
+
nb = 3;
|
|
33031
|
+
break;
|
|
33032
|
+
default:
|
|
33033
|
+
this.write = simpleWrite;
|
|
33034
|
+
this.end = simpleEnd;
|
|
33035
|
+
return;
|
|
33036
|
+
}
|
|
33037
|
+
this.lastNeed = 0;
|
|
33038
|
+
this.lastTotal = 0;
|
|
33039
|
+
this.lastChar = Buffer.allocUnsafe(nb);
|
|
33040
|
+
}
|
|
33041
|
+
|
|
33042
|
+
StringDecoder.prototype.write = function (buf) {
|
|
33043
|
+
if (buf.length === 0) return '';
|
|
33044
|
+
var r;
|
|
33045
|
+
var i;
|
|
33046
|
+
if (this.lastNeed) {
|
|
33047
|
+
r = this.fillLast(buf);
|
|
33048
|
+
if (r === undefined) return '';
|
|
33049
|
+
i = this.lastNeed;
|
|
33050
|
+
this.lastNeed = 0;
|
|
33051
|
+
} else {
|
|
33052
|
+
i = 0;
|
|
33053
|
+
}
|
|
33054
|
+
if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);
|
|
33055
|
+
return r || '';
|
|
33056
|
+
};
|
|
33057
|
+
|
|
33058
|
+
StringDecoder.prototype.end = utf8End;
|
|
33059
|
+
|
|
33060
|
+
// Returns only complete characters in a Buffer
|
|
33061
|
+
StringDecoder.prototype.text = utf8Text;
|
|
33062
|
+
|
|
33063
|
+
// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer
|
|
33064
|
+
StringDecoder.prototype.fillLast = function (buf) {
|
|
33065
|
+
if (this.lastNeed <= buf.length) {
|
|
33066
|
+
buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
|
|
33067
|
+
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
33068
|
+
}
|
|
33069
|
+
buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);
|
|
33070
|
+
this.lastNeed -= buf.length;
|
|
33071
|
+
};
|
|
33072
|
+
|
|
33073
|
+
// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a
|
|
33074
|
+
// continuation byte. If an invalid byte is detected, -2 is returned.
|
|
33075
|
+
function utf8CheckByte(byte) {
|
|
33076
|
+
if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;
|
|
33077
|
+
return byte >> 6 === 0x02 ? -1 : -2;
|
|
33078
|
+
}
|
|
33079
|
+
|
|
33080
|
+
// Checks at most 3 bytes at the end of a Buffer in order to detect an
|
|
33081
|
+
// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)
|
|
33082
|
+
// needed to complete the UTF-8 character (if applicable) are returned.
|
|
33083
|
+
function utf8CheckIncomplete(self, buf, i) {
|
|
33084
|
+
var j = buf.length - 1;
|
|
33085
|
+
if (j < i) return 0;
|
|
33086
|
+
var nb = utf8CheckByte(buf[j]);
|
|
33087
|
+
if (nb >= 0) {
|
|
33088
|
+
if (nb > 0) self.lastNeed = nb - 1;
|
|
33089
|
+
return nb;
|
|
33090
|
+
}
|
|
33091
|
+
if (--j < i || nb === -2) return 0;
|
|
33092
|
+
nb = utf8CheckByte(buf[j]);
|
|
33093
|
+
if (nb >= 0) {
|
|
33094
|
+
if (nb > 0) self.lastNeed = nb - 2;
|
|
33095
|
+
return nb;
|
|
33096
|
+
}
|
|
33097
|
+
if (--j < i || nb === -2) return 0;
|
|
33098
|
+
nb = utf8CheckByte(buf[j]);
|
|
33099
|
+
if (nb >= 0) {
|
|
33100
|
+
if (nb > 0) {
|
|
33101
|
+
if (nb === 2) nb = 0;else self.lastNeed = nb - 3;
|
|
33102
|
+
}
|
|
33103
|
+
return nb;
|
|
33104
|
+
}
|
|
33105
|
+
return 0;
|
|
33106
|
+
}
|
|
33107
|
+
|
|
33108
|
+
// Validates as many continuation bytes for a multi-byte UTF-8 character as
|
|
33109
|
+
// needed or are available. If we see a non-continuation byte where we expect
|
|
33110
|
+
// one, we "replace" the validated continuation bytes we've seen so far with
|
|
33111
|
+
// a single UTF-8 replacement character ('\ufffd'), to match v8's UTF-8 decoding
|
|
33112
|
+
// behavior. The continuation byte check is included three times in the case
|
|
33113
|
+
// where all of the continuation bytes for a character exist in the same buffer.
|
|
33114
|
+
// It is also done this way as a slight performance increase instead of using a
|
|
33115
|
+
// loop.
|
|
33116
|
+
function utf8CheckExtraBytes(self, buf, p) {
|
|
33117
|
+
if ((buf[0] & 0xC0) !== 0x80) {
|
|
33118
|
+
self.lastNeed = 0;
|
|
33119
|
+
return '\ufffd';
|
|
33120
|
+
}
|
|
33121
|
+
if (self.lastNeed > 1 && buf.length > 1) {
|
|
33122
|
+
if ((buf[1] & 0xC0) !== 0x80) {
|
|
33123
|
+
self.lastNeed = 1;
|
|
33124
|
+
return '\ufffd';
|
|
33125
|
+
}
|
|
33126
|
+
if (self.lastNeed > 2 && buf.length > 2) {
|
|
33127
|
+
if ((buf[2] & 0xC0) !== 0x80) {
|
|
33128
|
+
self.lastNeed = 2;
|
|
33129
|
+
return '\ufffd';
|
|
33130
|
+
}
|
|
33131
|
+
}
|
|
33132
|
+
}
|
|
33133
|
+
}
|
|
33134
|
+
|
|
33135
|
+
// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.
|
|
33136
|
+
function utf8FillLast(buf) {
|
|
33137
|
+
var p = this.lastTotal - this.lastNeed;
|
|
33138
|
+
var r = utf8CheckExtraBytes(this, buf, p);
|
|
33139
|
+
if (r !== undefined) return r;
|
|
33140
|
+
if (this.lastNeed <= buf.length) {
|
|
33141
|
+
buf.copy(this.lastChar, p, 0, this.lastNeed);
|
|
33142
|
+
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
33143
|
+
}
|
|
33144
|
+
buf.copy(this.lastChar, p, 0, buf.length);
|
|
33145
|
+
this.lastNeed -= buf.length;
|
|
33146
|
+
}
|
|
33147
|
+
|
|
33148
|
+
// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a
|
|
33149
|
+
// partial character, the character's bytes are buffered until the required
|
|
33150
|
+
// number of bytes are available.
|
|
33151
|
+
function utf8Text(buf, i) {
|
|
33152
|
+
var total = utf8CheckIncomplete(this, buf, i);
|
|
33153
|
+
if (!this.lastNeed) return buf.toString('utf8', i);
|
|
33154
|
+
this.lastTotal = total;
|
|
33155
|
+
var end = buf.length - (total - this.lastNeed);
|
|
33156
|
+
buf.copy(this.lastChar, 0, end);
|
|
33157
|
+
return buf.toString('utf8', i, end);
|
|
33158
|
+
}
|
|
33159
|
+
|
|
33160
|
+
// For UTF-8, a replacement character is added when ending on a partial
|
|
33161
|
+
// character.
|
|
33162
|
+
function utf8End(buf) {
|
|
33163
|
+
var r = buf && buf.length ? this.write(buf) : '';
|
|
33164
|
+
if (this.lastNeed) return r + '\ufffd';
|
|
33165
|
+
return r;
|
|
33166
|
+
}
|
|
33167
|
+
|
|
33168
|
+
// UTF-16LE typically needs two bytes per character, but even if we have an even
|
|
33169
|
+
// number of bytes available, we need to check if we end on a leading/high
|
|
33170
|
+
// surrogate. In that case, we need to wait for the next two bytes in order to
|
|
33171
|
+
// decode the last character properly.
|
|
33172
|
+
function utf16Text(buf, i) {
|
|
33173
|
+
if ((buf.length - i) % 2 === 0) {
|
|
33174
|
+
var r = buf.toString('utf16le', i);
|
|
33175
|
+
if (r) {
|
|
33176
|
+
var c = r.charCodeAt(r.length - 1);
|
|
33177
|
+
if (c >= 0xD800 && c <= 0xDBFF) {
|
|
33178
|
+
this.lastNeed = 2;
|
|
33179
|
+
this.lastTotal = 4;
|
|
33180
|
+
this.lastChar[0] = buf[buf.length - 2];
|
|
33181
|
+
this.lastChar[1] = buf[buf.length - 1];
|
|
33182
|
+
return r.slice(0, -1);
|
|
33183
|
+
}
|
|
33184
|
+
}
|
|
33185
|
+
return r;
|
|
33186
|
+
}
|
|
33187
|
+
this.lastNeed = 1;
|
|
33188
|
+
this.lastTotal = 2;
|
|
33189
|
+
this.lastChar[0] = buf[buf.length - 1];
|
|
33190
|
+
return buf.toString('utf16le', i, buf.length - 1);
|
|
33191
|
+
}
|
|
33192
|
+
|
|
33193
|
+
// For UTF-16LE we do not explicitly append special replacement characters if we
|
|
33194
|
+
// end on a partial character, we simply let v8 handle that.
|
|
33195
|
+
function utf16End(buf) {
|
|
33196
|
+
var r = buf && buf.length ? this.write(buf) : '';
|
|
33197
|
+
if (this.lastNeed) {
|
|
33198
|
+
var end = this.lastTotal - this.lastNeed;
|
|
33199
|
+
return r + this.lastChar.toString('utf16le', 0, end);
|
|
33200
|
+
}
|
|
33201
|
+
return r;
|
|
33202
|
+
}
|
|
33203
|
+
|
|
33204
|
+
function base64Text(buf, i) {
|
|
33205
|
+
var n = (buf.length - i) % 3;
|
|
33206
|
+
if (n === 0) return buf.toString('base64', i);
|
|
33207
|
+
this.lastNeed = 3 - n;
|
|
33208
|
+
this.lastTotal = 3;
|
|
33209
|
+
if (n === 1) {
|
|
33210
|
+
this.lastChar[0] = buf[buf.length - 1];
|
|
33211
|
+
} else {
|
|
33212
|
+
this.lastChar[0] = buf[buf.length - 2];
|
|
33213
|
+
this.lastChar[1] = buf[buf.length - 1];
|
|
33214
|
+
}
|
|
33215
|
+
return buf.toString('base64', i, buf.length - n);
|
|
33216
|
+
}
|
|
33217
|
+
|
|
33218
|
+
function base64End(buf) {
|
|
33219
|
+
var r = buf && buf.length ? this.write(buf) : '';
|
|
33220
|
+
if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);
|
|
33221
|
+
return r;
|
|
33222
|
+
}
|
|
33223
|
+
|
|
33224
|
+
// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)
|
|
33225
|
+
function simpleWrite(buf) {
|
|
33226
|
+
return buf.toString(this.encoding);
|
|
33227
|
+
}
|
|
33228
|
+
|
|
33229
|
+
function simpleEnd(buf) {
|
|
33230
|
+
return buf && buf.length ? this.write(buf) : '';
|
|
33231
|
+
}
|
|
33232
|
+
|
|
33233
|
+
/***/ }),
|
|
33234
|
+
|
|
32928
33235
|
/***/ "./node_modules/oidc-client/lib/oidc-client.min.js":
|
|
32929
33236
|
/*!*********************************************************!*\
|
|
32930
33237
|
!*** ./node_modules/oidc-client/lib/oidc-client.min.js ***!
|
|
@@ -51857,7 +52164,7 @@ function ReadableState(options, stream, isDuplex) {
|
|
|
51857
52164
|
this.encoding = null;
|
|
51858
52165
|
|
|
51859
52166
|
if (options.encoding) {
|
|
51860
|
-
if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ "./node_modules/string_decoder/lib/string_decoder.js").StringDecoder;
|
|
52167
|
+
if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ "./node_modules/node-libs-browser/node_modules/string_decoder/lib/string_decoder.js").StringDecoder;
|
|
51861
52168
|
this.decoder = new StringDecoder(options.encoding);
|
|
51862
52169
|
this.encoding = options.encoding;
|
|
51863
52170
|
}
|
|
@@ -52019,7 +52326,7 @@ Readable.prototype.isPaused = function () {
|
|
|
52019
52326
|
|
|
52020
52327
|
|
|
52021
52328
|
Readable.prototype.setEncoding = function (enc) {
|
|
52022
|
-
if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ "./node_modules/string_decoder/lib/string_decoder.js").StringDecoder;
|
|
52329
|
+
if (!StringDecoder) StringDecoder = __webpack_require__(/*! string_decoder/ */ "./node_modules/node-libs-browser/node_modules/string_decoder/lib/string_decoder.js").StringDecoder;
|
|
52023
52330
|
var decoder = new StringDecoder(enc);
|
|
52024
52331
|
this._readableState.decoder = decoder; // If setEncoding(null), decoder.encoding equals utf8
|
|
52025
52332
|
|
|
@@ -55380,7 +55687,6 @@ try {
|
|
|
55380
55687
|
/*! no static exports found */
|
|
55381
55688
|
/***/ (function(module, exports, __webpack_require__) {
|
|
55382
55689
|
|
|
55383
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
55384
55690
|
/* eslint-disable node/no-deprecated-api */
|
|
55385
55691
|
var buffer = __webpack_require__(/*! buffer */ "./node_modules/node-libs-browser/node_modules/buffer/index.js")
|
|
55386
55692
|
var Buffer = buffer.Buffer
|
|
@@ -55403,8 +55709,6 @@ function SafeBuffer (arg, encodingOrOffset, length) {
|
|
|
55403
55709
|
return Buffer(arg, encodingOrOffset, length)
|
|
55404
55710
|
}
|
|
55405
55711
|
|
|
55406
|
-
SafeBuffer.prototype = Object.create(Buffer.prototype)
|
|
55407
|
-
|
|
55408
55712
|
// Copy static methods from Buffer
|
|
55409
55713
|
copyProps(Buffer, SafeBuffer)
|
|
55410
55714
|
|
|
@@ -61360,7 +61664,9 @@ authSession.onLogout( /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE
|
|
|
61360
61664
|
}
|
|
61361
61665
|
|
|
61362
61666
|
_context2.next = 15;
|
|
61363
|
-
return fetch(openidConfiguration.end_session_endpoint
|
|
61667
|
+
return fetch(openidConfiguration.end_session_endpoint, {
|
|
61668
|
+
credentials: 'include'
|
|
61669
|
+
});
|
|
61364
61670
|
|
|
61365
61671
|
case 15:
|
|
61366
61672
|
_context2.next = 19;
|
|
@@ -72149,26 +72455,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
72149
72455
|
});
|
|
72150
72456
|
exports["default"] = void 0;
|
|
72151
72457
|
var _default = {
|
|
72152
|
-
buildTime: '2021-09-
|
|
72153
|
-
commit: '
|
|
72458
|
+
buildTime: '2021-09-30T16:33:20Z',
|
|
72459
|
+
commit: '81fc5d35c1e80436fd6635967edefbae5e0fddb0',
|
|
72154
72460
|
npmInfo: {
|
|
72155
|
-
'solid-ui': '2.4.9-
|
|
72156
|
-
npm: '
|
|
72157
|
-
|
|
72461
|
+
'solid-ui': '2.4.9-beta',
|
|
72462
|
+
npm: '7.19.1',
|
|
72463
|
+
node: '16.5.0',
|
|
72464
|
+
v8: '9.1.269.38-node.20',
|
|
72465
|
+
uv: '1.41.0',
|
|
72466
|
+
zlib: '1.2.11',
|
|
72158
72467
|
brotli: '1.0.9',
|
|
72468
|
+
ares: '1.17.1',
|
|
72469
|
+
modules: '93',
|
|
72470
|
+
nghttp2: '1.42.0',
|
|
72471
|
+
napi: '8',
|
|
72472
|
+
llhttp: '6.0.2',
|
|
72473
|
+
openssl: '1.1.1k+quic',
|
|
72159
72474
|
cldr: '39.0',
|
|
72160
72475
|
icu: '69.1',
|
|
72161
|
-
llhttp: '2.1.3',
|
|
72162
|
-
modules: '83',
|
|
72163
|
-
napi: '8',
|
|
72164
|
-
nghttp2: '1.42.0',
|
|
72165
|
-
node: '14.17.6',
|
|
72166
|
-
openssl: '1.1.1l',
|
|
72167
72476
|
tz: '2021a',
|
|
72168
72477
|
unicode: '13.0',
|
|
72169
|
-
|
|
72170
|
-
|
|
72171
|
-
zlib: '1.2.11'
|
|
72478
|
+
ngtcp2: '0.1.0-DEV',
|
|
72479
|
+
nghttp3: '0.1.0-DEV'
|
|
72172
72480
|
}
|
|
72173
72481
|
};
|
|
72174
72482
|
exports["default"] = _default;
|
|
@@ -76887,7 +77195,7 @@ function _renderAutoComplete() {
|
|
|
76887
77195
|
case 0:
|
|
76888
77196
|
_context5.prev = 0;
|
|
76889
77197
|
_context5.next = 3;
|
|
76890
|
-
return (0, _publicData.queryPublicDataByName)(filter, targetClass, languagePrefs || _language.
|
|
77198
|
+
return (0, _publicData.queryPublicDataByName)(filter, targetClass, languagePrefs || _language.defaultPreferedLangages, acOptions.queryParams);
|
|
76891
77199
|
|
|
76892
77200
|
case 3:
|
|
76893
77201
|
bindings = _context5.sent;
|
|
@@ -77186,11 +77494,10 @@ var _typeof = __webpack_require__(/*! @babel/runtime/helpers/typeof */ "./node_m
|
|
|
77186
77494
|
Object.defineProperty(exports, "__esModule", {
|
|
77187
77495
|
value: true
|
|
77188
77496
|
});
|
|
77189
|
-
exports.addDefaults = addDefaults;
|
|
77190
77497
|
exports.getPreferredLanagugesFor = getPreferredLanagugesFor;
|
|
77191
77498
|
exports.getPreferredLanguages = getPreferredLanguages;
|
|
77192
77499
|
exports.filterByLanguage = filterByLanguage;
|
|
77193
|
-
exports.
|
|
77500
|
+
exports.defaultPreferedLangages = exports.languageCodeURIBase = void 0;
|
|
77194
77501
|
|
|
77195
77502
|
var _regenerator = _interopRequireDefault(__webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js"));
|
|
77196
77503
|
|
|
@@ -77221,15 +77528,8 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
77221
77528
|
var languageCodeURIBase = 'https://www.w3.org/ns/iana/language-code/'; /// @@ unsupported on the web (2021)
|
|
77222
77529
|
|
|
77223
77530
|
exports.languageCodeURIBase = languageCodeURIBase;
|
|
77224
|
-
var
|
|
77225
|
-
exports.
|
|
77226
|
-
|
|
77227
|
-
function addDefaults(array) {
|
|
77228
|
-
if (!array) array = [];
|
|
77229
|
-
return array.concat(defaultPreferredLangages.filter(function (code) {
|
|
77230
|
-
return !array.includes(code);
|
|
77231
|
-
}));
|
|
77232
|
-
}
|
|
77531
|
+
var defaultPreferedLangages = ['en', 'fr', 'de', 'it'];
|
|
77532
|
+
exports.defaultPreferedLangages = defaultPreferedLangages;
|
|
77233
77533
|
|
|
77234
77534
|
function getPreferredLanagugesFor(_x) {
|
|
77235
77535
|
return _getPreferredLanagugesFor.apply(this, arguments);
|
|
@@ -77242,30 +77542,29 @@ function getPreferredLanagugesFor(_x) {
|
|
|
77242
77542
|
|
|
77243
77543
|
function _getPreferredLanagugesFor() {
|
|
77244
77544
|
_getPreferredLanagugesFor = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(person) {
|
|
77245
|
-
var
|
|
77545
|
+
var list, languageCodeArray;
|
|
77246
77546
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
77247
77547
|
while (1) {
|
|
77248
77548
|
switch (_context.prev = _context.next) {
|
|
77249
77549
|
case 0:
|
|
77250
|
-
|
|
77251
|
-
|
|
77252
|
-
return _logic.kb.fetcher.load(doc);
|
|
77550
|
+
_context.next = 2;
|
|
77551
|
+
return _logic.kb.fetcher.load(person.doc());
|
|
77253
77552
|
|
|
77254
|
-
case
|
|
77255
|
-
list = _logic.kb.any(person, ns.schema('knowsLanguage'), null, doc);
|
|
77553
|
+
case 2:
|
|
77554
|
+
list = _logic.kb.any(person, ns.schema('knowsLanguage'), null, person.doc());
|
|
77256
77555
|
|
|
77257
77556
|
if (list) {
|
|
77258
77557
|
_context.next = 6;
|
|
77259
77558
|
break;
|
|
77260
77559
|
}
|
|
77261
77560
|
|
|
77262
|
-
|
|
77561
|
+
console.log("User ".concat(person, " has not set their languages in their profile."));
|
|
77562
|
+
return _context.abrupt("return", null);
|
|
77263
77563
|
|
|
77264
77564
|
case 6:
|
|
77265
77565
|
languageCodeArray = [];
|
|
77266
77566
|
list.elements.forEach(function (item) {
|
|
77267
|
-
|
|
77268
|
-
var lang = _logic.kb.any(item, ns.solid('publicId'), null, doc);
|
|
77567
|
+
var lang = _logic.kb.any(item, ns.solid('publicId'), null, item.doc());
|
|
77269
77568
|
|
|
77270
77569
|
if (!lang) {
|
|
77271
77570
|
console.warn('getPreferredLanguages: No publiID of language.');
|
|
@@ -77287,7 +77586,7 @@ function _getPreferredLanagugesFor() {
|
|
|
77287
77586
|
}
|
|
77288
77587
|
|
|
77289
77588
|
console.log(" User knows languages with codes: \"".concat(languageCodeArray.join(','), "\""));
|
|
77290
|
-
return _context.abrupt("return",
|
|
77589
|
+
return _context.abrupt("return", languageCodeArray);
|
|
77291
77590
|
|
|
77292
77591
|
case 11:
|
|
77293
77592
|
return _context.abrupt("return", null);
|
|
@@ -77353,9 +77652,9 @@ function _getPreferredLanguages() {
|
|
|
77353
77652
|
break;
|
|
77354
77653
|
}
|
|
77355
77654
|
|
|
77356
|
-
return _context2.abrupt("return",
|
|
77655
|
+
return _context2.abrupt("return", navigator.languages.map(function (longForm) {
|
|
77357
77656
|
return longForm.split('-')[0];
|
|
77358
|
-
}))
|
|
77657
|
+
}));
|
|
77359
77658
|
|
|
77360
77659
|
case 12:
|
|
77361
77660
|
if (!navigator.language) {
|
|
@@ -77363,10 +77662,10 @@ function _getPreferredLanguages() {
|
|
|
77363
77662
|
break;
|
|
77364
77663
|
}
|
|
77365
77664
|
|
|
77366
|
-
return _context2.abrupt("return",
|
|
77665
|
+
return _context2.abrupt("return", [navigator.language.split('-')[0]]);
|
|
77367
77666
|
|
|
77368
77667
|
case 14:
|
|
77369
|
-
return _context2.abrupt("return",
|
|
77668
|
+
return _context2.abrupt("return", defaultPreferedLangages);
|
|
77370
77669
|
|
|
77371
77670
|
case 15:
|
|
77372
77671
|
case "end":
|
|
@@ -77386,27 +77685,22 @@ function filterByLanguage(bindings, languagePrefs) {
|
|
|
77386
77685
|
uris[uri] = uris[uri] || [];
|
|
77387
77686
|
uris[uri].push(binding);
|
|
77388
77687
|
});
|
|
77389
|
-
var languagePrefs2 = languagePrefs ||
|
|
77390
|
-
languagePrefs2.reverse(); //
|
|
77688
|
+
var languagePrefs2 = languagePrefs || defaultPreferedLangages;
|
|
77689
|
+
languagePrefs2.reverse(); // prefered last
|
|
77391
77690
|
|
|
77392
|
-
var slimmed = [];
|
|
77691
|
+
var slimmed = [];
|
|
77393
77692
|
|
|
77394
77693
|
for (var u in uris) {
|
|
77395
77694
|
// needs hasOwnProperty ?
|
|
77396
77695
|
var _bindings = uris[u];
|
|
77397
77696
|
|
|
77398
77697
|
var sortMe = _bindings.map(function (binding) {
|
|
77399
|
-
|
|
77400
|
-
var index = languagePrefs2.indexOf(lang);
|
|
77401
|
-
var pair = [index, binding]; // console.log(` @@ lang: ${lang}, index: ${index}`)
|
|
77402
|
-
|
|
77403
|
-
return pair;
|
|
77698
|
+
return [languagePrefs2.indexOf(binding.name['xml:lang']), binding];
|
|
77404
77699
|
});
|
|
77405
77700
|
|
|
77406
77701
|
sortMe.sort(); // best at th ebottom
|
|
77407
77702
|
|
|
77408
77703
|
sortMe.reverse(); // best at the top
|
|
77409
|
-
// console.debug('@@ sortMe:', sortMe)
|
|
77410
77704
|
|
|
77411
77705
|
slimmed.push(sortMe[0][1]);
|
|
77412
77706
|
} // map u
|
|
@@ -77814,7 +78108,7 @@ function _queryPublicDataByName() {
|
|
|
77814
78108
|
break;
|
|
77815
78109
|
}
|
|
77816
78110
|
|
|
77817
|
-
_context2.t0 = _language.
|
|
78111
|
+
_context2.t0 = _language.defaultPreferedLangages;
|
|
77818
78112
|
|
|
77819
78113
|
case 8:
|
|
77820
78114
|
languagePrefs = _context2.t0;
|
|
@@ -79555,313 +79849,6 @@ exports.createImageDiv = createImageDiv;
|
|
|
79555
79849
|
|
|
79556
79850
|
/***/ }),
|
|
79557
79851
|
|
|
79558
|
-
/***/ "./node_modules/string_decoder/lib/string_decoder.js":
|
|
79559
|
-
/*!***********************************************************!*\
|
|
79560
|
-
!*** ./node_modules/string_decoder/lib/string_decoder.js ***!
|
|
79561
|
-
\***********************************************************/
|
|
79562
|
-
/*! no static exports found */
|
|
79563
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
79564
|
-
|
|
79565
|
-
"use strict";
|
|
79566
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
79567
|
-
//
|
|
79568
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
79569
|
-
// copy of this software and associated documentation files (the
|
|
79570
|
-
// "Software"), to deal in the Software without restriction, including
|
|
79571
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
79572
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
79573
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
79574
|
-
// following conditions:
|
|
79575
|
-
//
|
|
79576
|
-
// The above copyright notice and this permission notice shall be included
|
|
79577
|
-
// in all copies or substantial portions of the Software.
|
|
79578
|
-
//
|
|
79579
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
79580
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
79581
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
79582
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
79583
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
79584
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
79585
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
79586
|
-
|
|
79587
|
-
|
|
79588
|
-
|
|
79589
|
-
/*<replacement>*/
|
|
79590
|
-
|
|
79591
|
-
var Buffer = __webpack_require__(/*! safe-buffer */ "./node_modules/safe-buffer/index.js").Buffer;
|
|
79592
|
-
/*</replacement>*/
|
|
79593
|
-
|
|
79594
|
-
var isEncoding = Buffer.isEncoding || function (encoding) {
|
|
79595
|
-
encoding = '' + encoding;
|
|
79596
|
-
switch (encoding && encoding.toLowerCase()) {
|
|
79597
|
-
case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':
|
|
79598
|
-
return true;
|
|
79599
|
-
default:
|
|
79600
|
-
return false;
|
|
79601
|
-
}
|
|
79602
|
-
};
|
|
79603
|
-
|
|
79604
|
-
function _normalizeEncoding(enc) {
|
|
79605
|
-
if (!enc) return 'utf8';
|
|
79606
|
-
var retried;
|
|
79607
|
-
while (true) {
|
|
79608
|
-
switch (enc) {
|
|
79609
|
-
case 'utf8':
|
|
79610
|
-
case 'utf-8':
|
|
79611
|
-
return 'utf8';
|
|
79612
|
-
case 'ucs2':
|
|
79613
|
-
case 'ucs-2':
|
|
79614
|
-
case 'utf16le':
|
|
79615
|
-
case 'utf-16le':
|
|
79616
|
-
return 'utf16le';
|
|
79617
|
-
case 'latin1':
|
|
79618
|
-
case 'binary':
|
|
79619
|
-
return 'latin1';
|
|
79620
|
-
case 'base64':
|
|
79621
|
-
case 'ascii':
|
|
79622
|
-
case 'hex':
|
|
79623
|
-
return enc;
|
|
79624
|
-
default:
|
|
79625
|
-
if (retried) return; // undefined
|
|
79626
|
-
enc = ('' + enc).toLowerCase();
|
|
79627
|
-
retried = true;
|
|
79628
|
-
}
|
|
79629
|
-
}
|
|
79630
|
-
};
|
|
79631
|
-
|
|
79632
|
-
// Do not cache `Buffer.isEncoding` when checking encoding names as some
|
|
79633
|
-
// modules monkey-patch it to support additional encodings
|
|
79634
|
-
function normalizeEncoding(enc) {
|
|
79635
|
-
var nenc = _normalizeEncoding(enc);
|
|
79636
|
-
if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);
|
|
79637
|
-
return nenc || enc;
|
|
79638
|
-
}
|
|
79639
|
-
|
|
79640
|
-
// StringDecoder provides an interface for efficiently splitting a series of
|
|
79641
|
-
// buffers into a series of JS strings without breaking apart multi-byte
|
|
79642
|
-
// characters.
|
|
79643
|
-
exports.StringDecoder = StringDecoder;
|
|
79644
|
-
function StringDecoder(encoding) {
|
|
79645
|
-
this.encoding = normalizeEncoding(encoding);
|
|
79646
|
-
var nb;
|
|
79647
|
-
switch (this.encoding) {
|
|
79648
|
-
case 'utf16le':
|
|
79649
|
-
this.text = utf16Text;
|
|
79650
|
-
this.end = utf16End;
|
|
79651
|
-
nb = 4;
|
|
79652
|
-
break;
|
|
79653
|
-
case 'utf8':
|
|
79654
|
-
this.fillLast = utf8FillLast;
|
|
79655
|
-
nb = 4;
|
|
79656
|
-
break;
|
|
79657
|
-
case 'base64':
|
|
79658
|
-
this.text = base64Text;
|
|
79659
|
-
this.end = base64End;
|
|
79660
|
-
nb = 3;
|
|
79661
|
-
break;
|
|
79662
|
-
default:
|
|
79663
|
-
this.write = simpleWrite;
|
|
79664
|
-
this.end = simpleEnd;
|
|
79665
|
-
return;
|
|
79666
|
-
}
|
|
79667
|
-
this.lastNeed = 0;
|
|
79668
|
-
this.lastTotal = 0;
|
|
79669
|
-
this.lastChar = Buffer.allocUnsafe(nb);
|
|
79670
|
-
}
|
|
79671
|
-
|
|
79672
|
-
StringDecoder.prototype.write = function (buf) {
|
|
79673
|
-
if (buf.length === 0) return '';
|
|
79674
|
-
var r;
|
|
79675
|
-
var i;
|
|
79676
|
-
if (this.lastNeed) {
|
|
79677
|
-
r = this.fillLast(buf);
|
|
79678
|
-
if (r === undefined) return '';
|
|
79679
|
-
i = this.lastNeed;
|
|
79680
|
-
this.lastNeed = 0;
|
|
79681
|
-
} else {
|
|
79682
|
-
i = 0;
|
|
79683
|
-
}
|
|
79684
|
-
if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);
|
|
79685
|
-
return r || '';
|
|
79686
|
-
};
|
|
79687
|
-
|
|
79688
|
-
StringDecoder.prototype.end = utf8End;
|
|
79689
|
-
|
|
79690
|
-
// Returns only complete characters in a Buffer
|
|
79691
|
-
StringDecoder.prototype.text = utf8Text;
|
|
79692
|
-
|
|
79693
|
-
// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer
|
|
79694
|
-
StringDecoder.prototype.fillLast = function (buf) {
|
|
79695
|
-
if (this.lastNeed <= buf.length) {
|
|
79696
|
-
buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);
|
|
79697
|
-
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
79698
|
-
}
|
|
79699
|
-
buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);
|
|
79700
|
-
this.lastNeed -= buf.length;
|
|
79701
|
-
};
|
|
79702
|
-
|
|
79703
|
-
// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a
|
|
79704
|
-
// continuation byte. If an invalid byte is detected, -2 is returned.
|
|
79705
|
-
function utf8CheckByte(byte) {
|
|
79706
|
-
if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;
|
|
79707
|
-
return byte >> 6 === 0x02 ? -1 : -2;
|
|
79708
|
-
}
|
|
79709
|
-
|
|
79710
|
-
// Checks at most 3 bytes at the end of a Buffer in order to detect an
|
|
79711
|
-
// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)
|
|
79712
|
-
// needed to complete the UTF-8 character (if applicable) are returned.
|
|
79713
|
-
function utf8CheckIncomplete(self, buf, i) {
|
|
79714
|
-
var j = buf.length - 1;
|
|
79715
|
-
if (j < i) return 0;
|
|
79716
|
-
var nb = utf8CheckByte(buf[j]);
|
|
79717
|
-
if (nb >= 0) {
|
|
79718
|
-
if (nb > 0) self.lastNeed = nb - 1;
|
|
79719
|
-
return nb;
|
|
79720
|
-
}
|
|
79721
|
-
if (--j < i || nb === -2) return 0;
|
|
79722
|
-
nb = utf8CheckByte(buf[j]);
|
|
79723
|
-
if (nb >= 0) {
|
|
79724
|
-
if (nb > 0) self.lastNeed = nb - 2;
|
|
79725
|
-
return nb;
|
|
79726
|
-
}
|
|
79727
|
-
if (--j < i || nb === -2) return 0;
|
|
79728
|
-
nb = utf8CheckByte(buf[j]);
|
|
79729
|
-
if (nb >= 0) {
|
|
79730
|
-
if (nb > 0) {
|
|
79731
|
-
if (nb === 2) nb = 0;else self.lastNeed = nb - 3;
|
|
79732
|
-
}
|
|
79733
|
-
return nb;
|
|
79734
|
-
}
|
|
79735
|
-
return 0;
|
|
79736
|
-
}
|
|
79737
|
-
|
|
79738
|
-
// Validates as many continuation bytes for a multi-byte UTF-8 character as
|
|
79739
|
-
// needed or are available. If we see a non-continuation byte where we expect
|
|
79740
|
-
// one, we "replace" the validated continuation bytes we've seen so far with
|
|
79741
|
-
// a single UTF-8 replacement character ('\ufffd'), to match v8's UTF-8 decoding
|
|
79742
|
-
// behavior. The continuation byte check is included three times in the case
|
|
79743
|
-
// where all of the continuation bytes for a character exist in the same buffer.
|
|
79744
|
-
// It is also done this way as a slight performance increase instead of using a
|
|
79745
|
-
// loop.
|
|
79746
|
-
function utf8CheckExtraBytes(self, buf, p) {
|
|
79747
|
-
if ((buf[0] & 0xC0) !== 0x80) {
|
|
79748
|
-
self.lastNeed = 0;
|
|
79749
|
-
return '\ufffd';
|
|
79750
|
-
}
|
|
79751
|
-
if (self.lastNeed > 1 && buf.length > 1) {
|
|
79752
|
-
if ((buf[1] & 0xC0) !== 0x80) {
|
|
79753
|
-
self.lastNeed = 1;
|
|
79754
|
-
return '\ufffd';
|
|
79755
|
-
}
|
|
79756
|
-
if (self.lastNeed > 2 && buf.length > 2) {
|
|
79757
|
-
if ((buf[2] & 0xC0) !== 0x80) {
|
|
79758
|
-
self.lastNeed = 2;
|
|
79759
|
-
return '\ufffd';
|
|
79760
|
-
}
|
|
79761
|
-
}
|
|
79762
|
-
}
|
|
79763
|
-
}
|
|
79764
|
-
|
|
79765
|
-
// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.
|
|
79766
|
-
function utf8FillLast(buf) {
|
|
79767
|
-
var p = this.lastTotal - this.lastNeed;
|
|
79768
|
-
var r = utf8CheckExtraBytes(this, buf, p);
|
|
79769
|
-
if (r !== undefined) return r;
|
|
79770
|
-
if (this.lastNeed <= buf.length) {
|
|
79771
|
-
buf.copy(this.lastChar, p, 0, this.lastNeed);
|
|
79772
|
-
return this.lastChar.toString(this.encoding, 0, this.lastTotal);
|
|
79773
|
-
}
|
|
79774
|
-
buf.copy(this.lastChar, p, 0, buf.length);
|
|
79775
|
-
this.lastNeed -= buf.length;
|
|
79776
|
-
}
|
|
79777
|
-
|
|
79778
|
-
// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a
|
|
79779
|
-
// partial character, the character's bytes are buffered until the required
|
|
79780
|
-
// number of bytes are available.
|
|
79781
|
-
function utf8Text(buf, i) {
|
|
79782
|
-
var total = utf8CheckIncomplete(this, buf, i);
|
|
79783
|
-
if (!this.lastNeed) return buf.toString('utf8', i);
|
|
79784
|
-
this.lastTotal = total;
|
|
79785
|
-
var end = buf.length - (total - this.lastNeed);
|
|
79786
|
-
buf.copy(this.lastChar, 0, end);
|
|
79787
|
-
return buf.toString('utf8', i, end);
|
|
79788
|
-
}
|
|
79789
|
-
|
|
79790
|
-
// For UTF-8, a replacement character is added when ending on a partial
|
|
79791
|
-
// character.
|
|
79792
|
-
function utf8End(buf) {
|
|
79793
|
-
var r = buf && buf.length ? this.write(buf) : '';
|
|
79794
|
-
if (this.lastNeed) return r + '\ufffd';
|
|
79795
|
-
return r;
|
|
79796
|
-
}
|
|
79797
|
-
|
|
79798
|
-
// UTF-16LE typically needs two bytes per character, but even if we have an even
|
|
79799
|
-
// number of bytes available, we need to check if we end on a leading/high
|
|
79800
|
-
// surrogate. In that case, we need to wait for the next two bytes in order to
|
|
79801
|
-
// decode the last character properly.
|
|
79802
|
-
function utf16Text(buf, i) {
|
|
79803
|
-
if ((buf.length - i) % 2 === 0) {
|
|
79804
|
-
var r = buf.toString('utf16le', i);
|
|
79805
|
-
if (r) {
|
|
79806
|
-
var c = r.charCodeAt(r.length - 1);
|
|
79807
|
-
if (c >= 0xD800 && c <= 0xDBFF) {
|
|
79808
|
-
this.lastNeed = 2;
|
|
79809
|
-
this.lastTotal = 4;
|
|
79810
|
-
this.lastChar[0] = buf[buf.length - 2];
|
|
79811
|
-
this.lastChar[1] = buf[buf.length - 1];
|
|
79812
|
-
return r.slice(0, -1);
|
|
79813
|
-
}
|
|
79814
|
-
}
|
|
79815
|
-
return r;
|
|
79816
|
-
}
|
|
79817
|
-
this.lastNeed = 1;
|
|
79818
|
-
this.lastTotal = 2;
|
|
79819
|
-
this.lastChar[0] = buf[buf.length - 1];
|
|
79820
|
-
return buf.toString('utf16le', i, buf.length - 1);
|
|
79821
|
-
}
|
|
79822
|
-
|
|
79823
|
-
// For UTF-16LE we do not explicitly append special replacement characters if we
|
|
79824
|
-
// end on a partial character, we simply let v8 handle that.
|
|
79825
|
-
function utf16End(buf) {
|
|
79826
|
-
var r = buf && buf.length ? this.write(buf) : '';
|
|
79827
|
-
if (this.lastNeed) {
|
|
79828
|
-
var end = this.lastTotal - this.lastNeed;
|
|
79829
|
-
return r + this.lastChar.toString('utf16le', 0, end);
|
|
79830
|
-
}
|
|
79831
|
-
return r;
|
|
79832
|
-
}
|
|
79833
|
-
|
|
79834
|
-
function base64Text(buf, i) {
|
|
79835
|
-
var n = (buf.length - i) % 3;
|
|
79836
|
-
if (n === 0) return buf.toString('base64', i);
|
|
79837
|
-
this.lastNeed = 3 - n;
|
|
79838
|
-
this.lastTotal = 3;
|
|
79839
|
-
if (n === 1) {
|
|
79840
|
-
this.lastChar[0] = buf[buf.length - 1];
|
|
79841
|
-
} else {
|
|
79842
|
-
this.lastChar[0] = buf[buf.length - 2];
|
|
79843
|
-
this.lastChar[1] = buf[buf.length - 1];
|
|
79844
|
-
}
|
|
79845
|
-
return buf.toString('base64', i, buf.length - n);
|
|
79846
|
-
}
|
|
79847
|
-
|
|
79848
|
-
function base64End(buf) {
|
|
79849
|
-
var r = buf && buf.length ? this.write(buf) : '';
|
|
79850
|
-
if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);
|
|
79851
|
-
return r;
|
|
79852
|
-
}
|
|
79853
|
-
|
|
79854
|
-
// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)
|
|
79855
|
-
function simpleWrite(buf) {
|
|
79856
|
-
return buf.toString(this.encoding);
|
|
79857
|
-
}
|
|
79858
|
-
|
|
79859
|
-
function simpleEnd(buf) {
|
|
79860
|
-
return buf && buf.length ? this.write(buf) : '';
|
|
79861
|
-
}
|
|
79862
|
-
|
|
79863
|
-
/***/ }),
|
|
79864
|
-
|
|
79865
79852
|
/***/ "./node_modules/symbol-observable/es/index.js":
|
|
79866
79853
|
/*!****************************************************!*\
|
|
79867
79854
|
!*** ./node_modules/symbol-observable/es/index.js ***!
|