import{A as E}from"./index.f4d41e67.entry.js";function F(a,d){return d.forEach(function(u){u&&typeof u!="string"&&!Array.isArray(u)&&Object.keys(u).forEach(function(c){if(c!=="default"&&!(c in a)){var l=Object.getOwnPropertyDescriptor(u,c);Object.defineProperty(a,c,l.get?l:{enumerable:!0,get:function(){return u[c]}})}})}),Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var h={exports:{}};(function(a,d){(function(u){u(E.exports)})(function(u){function c(n){for(var t={},e=0;e<n.length;e++)t[n[e]]=!0;return t}var l=c(["_","var","let","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","open","public","internal","fileprivate","private","deinit","init","new","override","self","subscript","super","convenience","dynamic","final","indirect","lazy","required","static","unowned","unowned(safe)","unowned(unsafe)","weak","as","is","break","case","continue","default","else","fallthrough","for","guard","if","in","repeat","switch","where","while","defer","return","inout","mutating","nonmutating","catch","do","rethrows","throw","throws","try","didSet","get","set","willSet","assignment","associativity","infix","left","none","operator","postfix","precedence","precedencegroup","prefix","right","Any","AnyObject","Type","dynamicType","Self","Protocol","__COLUMN__","__FILE__","__FUNCTION__","__LINE__"]),s=c(["var","let","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","for"]),_=c(["true","false","nil","self","super","_"]),x=c(["Array","Bool","Character","Dictionary","Double","Float","Int","Int8","Int16","Int32","Int64","Never","Optional","Set","String","UInt8","UInt16","UInt32","UInt64","Void"]),y="+-/*%=|&<>~^?!",g=":;,.(){}[]",w=/^\-?0b[01][01_]*/,b=/^\-?0o[0-7][0-7_]*/,k=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,z=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,m=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,A=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,O=/^\#[A-Za-z]+/,I=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function v(n,t,e){if(n.sol()&&(t.indented=n.indentation()),n.eatSpace())return null;var r=n.peek();if(r=="/"){if(n.match("//"))return n.skipToEnd(),"comment";if(n.match("/*"))return t.tokenize.push(p),p(n,t)}if(n.match(O))return"builtin";if(n.match(I))return"attribute";if(n.match(w)||n.match(b)||n.match(k)||n.match(z))return"number";if(n.match(A))return"property";if(y.indexOf(r)>-1)return n.next(),"operator";if(g.indexOf(r)>-1)return n.next(),n.match(".."),"punctuation";var i;if(i=n.match(/("""|"|')/)){var o=C.bind(null,i[0]);return t.tokenize.push(o),o(n,t)}if(n.match(m)){var f=n.current();return x.hasOwnProperty(f)?"variable-2":_.hasOwnProperty(f)?"atom":l.hasOwnProperty(f)?(s.hasOwnProperty(f)&&(t.prev="define"),"keyword"):e=="define"?"def":"variable"}return n.next(),null}function S(){var n=0;return function(t,e,r){var i=v(t,e,r);if(i=="punctuation"){if(t.current()=="(")++n;else if(t.current()==")"){if(n==0)return t.backUp(1),e.tokenize.pop(),e.tokenize[e.tokenize.length-1](t,e);--n}}return i}}function C(n,t,e){for(var r=n.length==1,i,o=!1;i=t.peek();)if(o){if(t.next(),i=="(")return e.tokenize.push(S()),"string";o=!1}else{if(t.match(n))return e.tokenize.pop(),"string";t.next(),o=i=="\\"}return r&&e.tokenize.pop(),"string"}function p(n,t){for(var e;n.match(/^[^/*]+/,!0),e=n.next(),!!e;)e==="/"&&n.eat("*")?t.tokenize.push(p):e==="*"&&n.eat("/")&&t.tokenize.pop();return"comment"}function P(n,t,e){this.prev=n,this.align=t,this.indented=e}function $(n,t){var e=t.match(/^\s*($|\/[\/\*])/,!1)?null:t.column()+1;n.context=new P(n.context,e,n.indented)}function U(n){n.context&&(n.indented=n.context.indented,n.context=n.context.prev)}u.defineMode("swift",function(n){return{startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(t,e){var r=e.prev;e.prev=null;var i=e.tokenize[e.tokenize.length-1]||v,o=i(t,e,r);if(!o||o=="comment"?e.prev=r:e.prev||(e.prev=o),o=="punctuation"){var f=/[\(\[\{]|([\]\)\}])/.exec(t.current());f&&(f[1]?U:$)(e,t)}return o},indent:function(t,e){var r=t.context;if(!r)return 0;var i=/^[\]\}\)]/.test(e);return r.align!=null?r.align-(i?1:0):r.indented+(i?0:n.indentUnit)},electricInput:/^\s*[\)\}\]]$/,lineComment:"//",blockCommentStart:"/*",blockCommentEnd:"*/",fold:"brace",closeBrackets:"()[]{}''\"\"``"}}),u.defineMIME("text/x-swift","swift")})})();var Z=h.exports,N=F({__proto__:null,default:Z},[h.exports]);export{N as s};
