import{S as p}from"./TextViewer-a959e5a3.js";import"./useSetting-bf1f702c.js";import"./index-25eb6331.js";import"./file-5139c625.js";import"./request-14d7fed5.js";import"./index-3bef6acb.js";import"./path-8ad564a3.js";import"./base-00eb0fe9.js";/* empty css                */import"./dialog-66decf59.js";import"./index-db57f3ab.js";import"./vnode-761469ca.js";import"./scroll-044a6ede.js";import"./button-c2afb424.js";import"./overlay-25bb32bf.js";import"./refs-e3c707bd.js";/* empty css                     *//* empty css               *//* empty css                  */import"./dropdown-item-13559a59.js";import"./index-51e1cffc.js";import"./index-b7ba0c9a.js";import"./dropdown-8894c5a8.js";import"./index-0746525e.js";import"./_initCloneObject-55db8b76.js";import"./_plugin-vue_export-helper-c27b6911.js";import"./directive-77ef4fb1.js";import"./index-98eb1092.js";import"./validator-551b2058.js";import"./index-02f3ff91.js";import"./index-1c392315.js";import"./index-73ac7f16.js";import"./strings-59e484a0.js";import"./debounce-8de7dc13.js";import"./index-272fcf3f.js";import"./useFileUpload-914f2d00.js";import"./common-9cc21621.js";const e={name:"toml",startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(i,n){if(!n.inString&&(i.peek()=='"'||i.peek()=="'")&&(n.stringType=i.peek(),i.next(),n.inString=!0),i.sol()&&n.inArray===0&&(n.lhs=!0),n.inString){for(;n.inString&&!i.eol();)i.peek()===n.stringType?(i.next(),n.inString=!1):i.peek()==="\\"?(i.next(),i.next()):i.match(/^.[^\\\"\']*/);return n.lhs?"property":"string"}else{if(n.inArray&&i.peek()==="]")return i.next(),n.inArray--,"bracket";if(n.lhs&&i.peek()==="["&&i.skipTo("]"))return i.next(),i.peek()==="]"&&i.next(),"atom";if(i.peek()==="#")return i.skipToEnd(),"comment";if(i.eatSpace())return null;if(n.lhs&&i.eatWhile(function(r){return r!="="&&r!=" "}))return"property";if(n.lhs&&i.peek()==="=")return i.next(),n.lhs=!1,null;if(!n.lhs&&i.match(/^\d\d\d\d[\d\-\:\.T]*Z/))return"atom";if(!n.lhs&&(i.match("true")||i.match("false")))return"atom";if(!n.lhs&&i.peek()==="[")return n.inArray++,i.next(),"bracket";if(!n.lhs&&i.match(/^\-?\d+(?:\.\d+)?/))return"number";i.eatSpace()||i.next()}return null},languageData:{commentTokens:{line:"#"}}},O=()=>p.define(e);export{O as default};
