vendor: 1,938 bytes, lines 1-70
1import { P as ParseError, c as ParseErrorCode } from './index.js'; 2 3const ParseErrorBuilder = { 4 p() { 5 return new ParseError({ 6 code: ParseErrorCode.BadSignature, 7 reason: "missing WEBVTT file header", 8 line: 1 9 }); 10 }, 11 q(startTime, line) { 12 return new ParseError({ 13 code: ParseErrorCode.BadTimestamp, 14 reason: `cue start timestamp \`${startTime}\` is invalid on line ${line}`, 15 line 16 }); 17 }, 18 r(endTime, line) { 19 return new ParseError({ 20 code: ParseErrorCode.BadTimestamp, 21 reason: `cue end timestamp \`${endTime}\` is invalid on line ${line}`, 22 line 23 }); 24 }, 25 s(startTime, endTime, line) { 26 return new ParseError({ 27 code: ParseErrorCode.BadTimestamp, 28 reason: `cue end timestamp \`${endTime}\` is greater than start \`${startTime}\` on line ${line}`, 29 line 30 }); 31 }, 32 w(name, value, line) { 33 return new ParseError({ 34 code: ParseErrorCode.BadSettingValue, 35 reason: `invalid value for cue setting \`${name}\` on line ${line} (value: ${value})`, 36 line 37 }); 38 }, 39 v(name, value, line) { 40 return new ParseError({ 41 code: ParseErrorCode.UnknownSetting, 42 reason: `unknown cue setting \`${name}\` on line ${line} (value: ${value})`, 43 line 44 }); 45 }, 46 u(name, value, line) { 47 return new ParseError({ 48 code: ParseErrorCode.BadSettingValue, 49 reason: `invalid value for region setting \`${name}\` on line ${line} (value: ${value})`, 50 line 51 }); 52 }, 53 t(name, value, line) { 54 return new ParseError({ 55 code: ParseErrorCode.UnknownSetting, 56 reason: `unknown region setting \`${name}\` on line ${line} (value: ${value})`, 57 line 58 }); 59 }, 60 // SSA-specific errors 61 T(type, line) { 62 return new ParseError({ 63 code: ParseErrorCode.BadFormat, 64 reason: `format missing for \`${type}\` block on line ${line}`, 65 line 66 }); 67 } 68}; 69 70export { ParseErrorBuilder };
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.