Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

105 lines
3.7 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: 939e07c76f4b30f0.294c1bf0d6.js
* Module id: 27674
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e, t, i) => {
"use strict";
function r(e) {
var t = /(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,
i =
"(?:" +
/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source +
"|" +
/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source +
"|" +
/(?!(?:unrestricted|unsigned)\b)/.source +
t +
/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source +
")" +
/(?:\s*\?)?/.source,
r = {};
for (var a in ((e.languages["web-idl"] = {
comment: { pattern: /\/\/.*|\/\*[\s\S]*?\*\//, greedy: !0 },
string: { pattern: /"[^"]*"/, greedy: !0 },
namespace: {
pattern: RegExp(/(\bnamespace\s+)/.source + t),
lookbehind: !0,
},
"class-name": [
{
pattern:
/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,
lookbehind: !0,
inside: r,
},
{
pattern: RegExp(
/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/
.source + i,
),
lookbehind: !0,
inside: r,
},
{
pattern: RegExp(
"(" + /\bcallback\s+/.source + t + /\s*=\s*/.source + ")" + i,
),
lookbehind: !0,
inside: r,
},
{
pattern: RegExp(/(\btypedef\b\s*)/.source + i),
lookbehind: !0,
inside: r,
},
{
pattern: RegExp(
/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/
.source + t,
),
lookbehind: !0,
},
{ pattern: RegExp(/(:\s*)/.source + t), lookbehind: !0 },
RegExp(t + /(?=\s+(?:implements|includes)\b)/.source),
{
pattern: RegExp(/(\b(?:implements|includes)\s+)/.source + t),
lookbehind: !0,
},
{
pattern: RegExp(
i +
"(?=" +
/\s*(?:\.{3}\s*)?/.source +
t +
/\s*[(),;=]/.source +
")",
),
inside: r,
},
],
builtin:
/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,
keyword: [
/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,
/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/,
],
boolean: /\b(?:false|true)\b/,
number: {
pattern:
/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,
lookbehind: !0,
},
operator: /\.{3}|[=:?<>-]/,
punctuation: /[(){}[\].,;]/,
}),
e.languages["web-idl"]))
"class-name" !== a && (r[a] = e.languages["web-idl"][a]);
e.languages.webidl = e.languages["web-idl"];
}
(t.exports = r), (r.displayName = "webIdl"), (r.aliases = []);
};
export default moduleFactory;