decord/source/__polyfill/10xxx/module_10642.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

88 lines
2.8 KiB
JavaScript

// Module ID: 10642
// Function ID: 10643
// Dependencies: [41, 42, 93, 95, 98, 10581, 10643, 10608, 10588]
// Module 10642
import repeatedTimeunitPattern from "repeatedTimeunitPattern" /* 10581 */;
import AbstractParserWithWordBoundaryChecking from "AbstractParserWithWordBoundaryChecking" /* 10588 */;
import _mod10643 from "module_10643" /* 10643 */;
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 FRWeekdayParser = 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) {
}
}
const regExp = new RegExp("(?:(?:\\,|\\(|\\\uFF08)\\s*)?(?:(?:ce)\\s*)?(" + repeatedTimeunitPattern.matchAnyPattern(_mod10643.WEEKDAY_DICTIONARY) + ")(?:\\s*(?:\\,|\\)|\\\uFF09))?(?:\\s*(dernier|prochain)\\s*)?(?=\\W|\\d|$)", "i");
class FRWeekdayParser {
constructor() {
self = this;
tmp = c2(this, FRWeekdayParser);
tmp2 = closure_4;
obj = closure_4(FRWeekdayParser);
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(FRWeekdayParser, AbstractParserWithWordBoundaryChecking.AbstractParserWithWordBoundaryChecking);
const entry = {
key: "innerPattern",
value: function innerPattern() {
return regExp;
}
};
const items = [
entry,
{
key: "innerExtract",
value: function innerExtract(reference, arg1) {
const formatted = arg1[1].toLowerCase();
const tmp4 = FRWeekdayParser(10643).WEEKDAY_DICTIONARY[formatted];
if (undefined === tmp4) {
return null;
} else {
const formatted1 = arg1[2] || "".toLowerCase();
let str4 = "last";
if ("dernier" != formatted1) {
str4 = null;
if ("prochain" == formatted1) {
str4 = "next";
}
}
return tmp2(10608).createParsingComponentsAtWeekday(reference.reference, tmp4, str4);
}
tmp2 = FRWeekdayParser;
}
}
];
export default _createClass(FRWeekdayParser, items);