import{g as T}from"./emoji-picker-KVqjnXYv.chunk.mjs";function H(e,n){for(var a=0;a<n.length;a++){const i=n[a];if(typeof i!="string"&&!Array.isArray(i)){for(const r in i)if(r!=="default"&&!(r in e)){const s=Object.getOwnPropertyDescriptor(i,r);s&&Object.defineProperty(e,r,s.get?s:{enumerable:!0,get:()=>i[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function K(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function j(e){return e?typeof e=="string"?e:e.source:null}function f(e){return t("(?=",e,")")}function t(...e){return e.map(n=>j(n)).join("")}function Y(e){const n=e[e.length-1];return typeof n=="object"&&n.constructor===Object?(e.splice(e.length-1,1),n):{}}function o(...e){return"("+(Y(e).capture?"":"?:")+e.map(n=>j(n)).join("|")+")"}function G(e){const n=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],a={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},i=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],r=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],s=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],B=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],u={keyword:n,literal:r,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":s},p={variants:[e.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),e.C_LINE_COMMENT_MODE]},D=/[a-zA-Z_](\w|')*/,c={scope:"variable",begin:/``/,end:/``/},w=/\B('|\^)/,d={scope:"symbol",variants:[{match:t(w,/``.*?``/)},{match:t(w,e.UNDERSCORE_IDENT_RE)}],relevance:0},A=function({includeEqual:E}){let l;E?l="!%&*+-/<=>@^|~?":l="!%&*+-/<>@^|~?";const q=Array.from(l),M=t("[",...q.map(K),"]"),v=o(M,/\./),z=t(v,f(v)),F=o(t(z,v,"*"),t(M,"+"));return{scope:"operator",match:o(F,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},S=A({includeEqual:!0}),L=A({includeEqual:!1}),O=function(E,l){return{begin:t(E,f(t(/\s*/,o(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:l,end:f(o(/\n/,/=/)),relevance:0,keywords:e.inherit(u,{type:B}),contains:[p,d,e.inherit(c,{scope:null}),L]}},g=O(/:/,"operator"),P=O(/\bof\b/,"keyword"),U={begin:[/(^|\s+)/,/type/,/\s+/,D],beginScope:{2:"keyword",4:"title.class"},end:f(/\(|=|$/),keywords:u,contains:[p,e.inherit(c,{scope:null}),d,{scope:"operator",match:/<|>/},g]},C={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},x={begin:[/^\s*/,t(/#/,o(...i)),/\b/],beginScope:{2:"meta"},end:f(/\s|$/)},m={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},y={scope:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE]},_={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},e.BACKSLASH_ESCAPE]},R={scope:"string",begin:/"""/,end:/"""/,relevance:2},b={scope:"subst",begin:/\{/,end:/\}/,keywords:u},k={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},e.BACKSLASH_ESCAPE,b]},N={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},e.BACKSLASH_ESCAPE,b]},I={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},b],relevance:2},h={scope:"string",match:t(/'/,o(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return b.contains=[N,k,_,y,h,a,p,c,g,C,x,m,d,S],{name:"F#",aliases:["fs","f#"],keywords:u,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[a,{variants:[I,N,k,R,_,y,h]},p,c,U,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[c,R,_,y,h,m]},P,g,C,x,m,d,S]}}var $=G;const J=T($),W=H({__proto__:null,default:J},[$]);export{$ as a,W as f};
//# sourceMappingURL=fsharp-DC8gbtdK.chunk.mjs.map
