import{A as T}from"./index.f4d41e67.entry.js";function _(l,f){return f.forEach(function(t){t&&typeof t!="string"&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if(n!=="default"&&!(n in l)){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(l,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}var d={exports:{}};(function(l,f){(function(t){t(T.exports)})(function(t){function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var o=["Clamp","Constructor","EnforceRange","Exposed","ImplicitThis","Global","PrimaryGlobal","LegacyArrayClass","LegacyUnenumerableNamedProperties","LenientThis","NamedConstructor","NewObject","NoInterfaceObject","OverrideBuiltins","PutForwards","Replaceable","SameObject","TreatNonObjectAsNull","TreatNullAs","EmptyString","Unforgeable","Unscopeable"],y=n(o),c=["unsigned","short","long","unrestricted","float","double","boolean","byte","octet","Promise","ArrayBuffer","DataView","Int8Array","Int16Array","Int32Array","Uint8Array","Uint16Array","Uint32Array","Uint8ClampedArray","Float32Array","Float64Array","ByteString","DOMString","USVString","sequence","object","RegExp","Error","DOMException","FrozenArray","any","void"],p=n(c),u=["attribute","callback","const","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","optional","readonly","or"],b=n(u),s=["true","false","Infinity","NaN","null"],v=n(s);t.registerHelper("hintWords","webidl",o.concat(c).concat(u).concat(s));var g=["callback","dictionary","enum","interface"],A=n(g),h=["typedef"],w=n(h),D=/^[:<=>?]/,E=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,x=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,m=/^_?[A-Za-z][0-9A-Z_a-z-]*/,O=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/,j=/^"[^"]*"/,S=/^\/\*.*?\*\//,k=/^\/\*.*/,C=/^.*?\*\//;function N(e,r){if(e.eatSpace())return null;if(r.inComment)return e.match(C)?(r.inComment=!1,"comment"):(e.skipToEnd(),"comment");if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(S))return"comment";if(e.match(k))return r.inComment=!0,"comment";if(e.match(/^-?[0-9\.]/,!1)&&(e.match(E)||e.match(x)))return"number";if(e.match(j))return"string";if(r.startDef&&e.match(m))return"def";if(r.endDef&&e.match(O))return r.endDef=!1,"def";if(e.match(b))return"keyword";if(e.match(p)){var a=r.lastToken,i=(e.match(/^\s*(.+?)\b/,!1)||[])[1];return a===":"||a==="implements"||i==="implements"||i==="="?"builtin":"variable-3"}return e.match(y)?"builtin":e.match(v)?"atom":e.match(m)?"variable":e.match(D)?"operator":(e.next(),null)}t.defineMode("webidl",function(){return{startState:function(){return{inComment:!1,lastToken:"",startDef:!1,endDef:!1}},token:function(e,r){var a=N(e,r);if(a){var i=e.current();r.lastToken=i,a==="keyword"?(r.startDef=A.test(i),r.endDef=r.endDef||w.test(i)):r.startDef=!1}return a}}}),t.defineMIME("text/x-webidl","webidl")})})();var U=d.exports,I=_({__proto__:null,default:U},[d.exports]);export{I as w};
