decord/source/__polyfill/05xxx/module_5246.js
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

39 lines
1,009 B
JavaScript

// Module ID: 5246
// Function ID: 5247
// Dependencies: [5247]
// Module 5246
const module = arg2;
const dependencyMap = arg6;
arg5.default = {
decode(arg0, buffer) {
let value = module(5247).get();
if (undefined !== value) {
if (undefined !== arg0) {
try {
value = new value(arg0);
const _DataView = DataView;
if (buffer instanceof DataView) {
buffer = buffer.buffer;
} else {
const _Uint8Array = Uint8Array;
buffer = Uint8Array.from(buffer);
}
value.decode(buffer);
} catch (err) {
}
}
}
const mapped = buffer.map((arg0) => String.fromCharCode(arg0));
return (function decodeAsciiValue(mapped) {
try {
const _decodeURIComponent = decodeURIComponent;
const _escape = escape;
return decodeURIComponent(escape(mapped));
} catch (err) {
return tmp;
}
})(mapped.join(""));
},
TAG_HEADER_SIZE: 5
};