"use strict";(self.webpackChunksc_components=self.webpackChunksc_components||[]).push([[2211],{22211(O,u,m){function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}m.d(u,{webIDL:()=>I});var i=["Clamp","Constructor","EnforceRange","Exposed","ImplicitThis","Global","PrimaryGlobal","LegacyArrayClass","LegacyUnenumerableNamedProperties","LenientThis","NamedConstructor","NewObject","NoInterfaceObject","OverrideBuiltins","PutForwards","Replaceable","SameObject","TreatNonObjectAsNull","TreatNullAs","EmptyString","Unforgeable","Unscopeable"],s=n(i),l=["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"],d=n(l),o=["attribute","callback","const","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","optional","readonly","or"],y=n(o),c=["true","false","Infinity","NaN","null"],p=n(c),v=n(["callback","dictionary","enum","interface"]),h=n(["typedef"]),g=/^[:<=>?]/,k=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,D=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,f=/^_?[A-Za-z][0-9A-Z_a-z-]*/,w=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/,_=/^"[^"]*"/,C=/^\/\*.*?\*\//,E=/^\/\*.*/,N=/^.*?\*\//;const I={name:"webidl",startState:function(){return{inComment:!1,lastToken:"",startDef:!1,endDef:!1}},token:function(e,r){var t=function S(e,r){if(e.eatSpace())return null;if(r.inComment)return e.match(N)?(r.inComment=!1,"comment"):(e.skipToEnd(),"comment");if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(C))return"comment";if(e.match(E))return r.inComment=!0,"comment";if(e.match(/^-?[0-9\.]/,!1)&&(e.match(k)||e.match(D)))return"number";if(e.match(_))return"string";if(r.startDef&&e.match(f))return"def";if(r.endDef&&e.match(w))return r.endDef=!1,"def";if(e.match(y))return"keyword";if(e.match(d)){var t=r.lastToken,a=(e.match(/^\s*(.+?)\b/,!1)||[])[1];return":"===t||"implements"===t||"implements"===a||"="===a?"builtin":"type"}return e.match(s)?"builtin":e.match(p)?"atom":e.match(f)?"variable":e.match(g)?"operator":(e.next(),null)}(e,r);if(t){var a=e.current();r.lastToken=a,"keyword"===t?(r.startDef=v.test(a),r.endDef=r.endDef||h.test(a)):r.startDef=!1}return t},languageData:{autocomplete:i.concat(l).concat(o).concat(c)}}}}]);