decord/source/5553__unsupportedIterableToArray.js

37 lines
1,020 B
JavaScript
Raw Normal View History

2026-08-06 08:05:19 +00:00
// Module ID: 5553
// Function ID: 5554
2026-07-20 16:05:17 +00:00
// Name: _unsupportedIterableToArray
2026-08-06 08:05:19 +00:00
// Dependencies: [5554]
2026-07-20 16:05:17 +00:00
2026-08-06 08:05:19 +00:00
// Module 5553 (_unsupportedIterableToArray)
2026-07-20 16:05:17 +00:00
2026-08-04 21:03:28 +00:00
export default function _unsupportedIterableToArray(str) {
if (str) {
if (typeof str === "string") {
2026-08-06 08:05:19 +00:00
return require(5554) /* _arrayLikeToArray */(str, arg1);
2026-07-20 16:05:17 +00:00
} else {
const toString = {}.toString;
2026-07-29 08:29:29 +00:00
const call = toString.call;
2026-08-04 21:03:28 +00:00
let arr = typeof call === "unknown" ? toString() : call(str);
2026-07-29 08:29:29 +00:00
const substr = arr.slice(8, -1);
2026-07-20 16:05:17 +00:00
let name = substr;
2026-07-29 08:29:29 +00:00
if (tmp3) {
2026-08-04 21:03:28 +00:00
name = str.constructor.name;
2026-07-20 16:05:17 +00:00
}
if ("Map" !== name) {
if ("Set" !== name) {
if ("Arguments" === name) {
2026-08-06 08:05:19 +00:00
arr = require(5554) /* _arrayLikeToArray */(str, arg1);
2026-07-20 16:05:17 +00:00
} else {
const obj = /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/;
}
}
return arr;
}
const _Array = Array;
2026-08-04 21:03:28 +00:00
arr = Array.from(str);
tmp3 = "Object" === substr && str.constructor;
2026-07-20 16:05:17 +00:00
}
}
};