decord/source/__polyfill/10xxx/module_10740.js
github-actions 03cf168fbc chore: update source for alpha 347.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4825.js (118.4 MB)
2026-09-17 08:17:09 +00:00

72 lines
2.3 KiB
JavaScript

// Module ID: 10740
// Function ID: 10741
// Dependencies: [41, 42, 93, 95, 98, 10735, 10583, 10584, 10737]
// Module 10740
import _mod10737 from "module_10737" /* 10737 */;
import _classCallCheck from "_classCallCheck" /* 41 */;
import _createClass from "_createClass" /* 42 */;
import c3 from "_possibleConstructorReturn" /* 93 */;
import _getPrototypeOf from "_getPrototypeOf" /* 95 */;
import _inherits from "_inherits" /* 98 */;
const UKTimeUnitAgoFormatParser = require;
function _isNativeReflectConstruct() {
try {
const _Boolean = Boolean;
const call = valueOf.call;
const _Reflect = Reflect;
const _Boolean2 = Boolean;
if (typeof call === "unknown") {
let callResult = valueOf();
} else {
callResult = call(constructResult);
}
closure_0 = !callResult;
_isNativeReflectConstruct = function _isNativeReflectConstruct() {
return closure_0;
};
return _isNativeReflectConstruct();
} catch (err) {
}
}
class UKTimeUnitAgoFormatParser {
constructor() {
self = this;
tmp = c2(this, UKTimeUnitAgoFormatParser);
tmp2 = closure_4;
obj = closure_4(UKTimeUnitAgoFormatParser);
tmp3 = closure_3;
if (hasOwnProperty()) {
tmp7 = globalThis;
_Reflect = Reflect;
tmp8 = arguments;
constructResult = Reflect.construct(obj, arguments, tmp2(self).constructor);
} else {
tmp4 = arguments;
tmp5 = arguments;
constructResult = obj(...arguments);
}
return tmp3(self, constructResult);
}
}
_inherits(UKTimeUnitAgoFormatParser, _mod10737.AbstractParserWithLeftBoundaryChecking);
const entry = {
key: "innerPatternString",
value: function innerPatternString(arg0) {
return "(" + UKTimeUnitAgoFormatParser(10735).TIME_UNITS_PATTERN + ")\\s{0,5}\u0442\u043E\u043C\u0443(?=(?:\\W|$))";
}
};
const items = [
entry,
{
key: "innerExtract",
value: function innerExtract(reference, arg1) {
const parseDurationResult = UKTimeUnitAgoFormatParser(10735).parseDuration(arg1[1]);
const ParsingComponents = UKTimeUnitAgoFormatParser(10584).ParsingComponents;
return ParsingComponents.createRelativeFromReference(reference.reference, UKTimeUnitAgoFormatParser(10583).reverseDuration(UKTimeUnitAgoFormatParser(10735).parseDuration(arg1[1])));
}
}
];
export default _createClass(UKTimeUnitAgoFormatParser, items);