@powerhousedao/connect 1.0.0-dev.134 → 1.0.0-dev.135
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{browser-BEEirMuO.js → browser-Bl9M96KQ.js} +4 -4
- package/dist/assets/{content-BA89BGTU.js.map → browser-Bl9M96KQ.js.map} +1 -1
- package/dist/assets/{ccip-6rlDGLkL-DLquEPm3-DsHnVs3R.js → ccip-6rlDGLkL-DLquEPm3-BAx7HjfJ.js} +2 -2
- package/dist/assets/ccip-6rlDGLkL-DLquEPm3-BAx7HjfJ.js.map +1 -0
- package/dist/assets/{ccip-D7jGecEM-BZhoTqQe.js → ccip-D7jGecEM-DVDlOqoI.js} +2 -2
- package/dist/assets/ccip-D7jGecEM-DVDlOqoI.js.map +1 -0
- package/dist/assets/{ccip-C90evIJH.js → ccip-bk1IJr0a.js} +2 -2
- package/dist/assets/ccip-bk1IJr0a.js.map +1 -0
- package/dist/assets/{content-BA89BGTU.js → content-TdogUNEo.js} +3 -3
- package/dist/assets/{browser-BEEirMuO.js.map → content-TdogUNEo.js.map} +1 -1
- package/dist/assets/{cssMode-DVq3LtHT-T-7Kj20A.js → cssMode-DVq3LtHT-CoUgr_4L.js} +2 -2
- package/dist/assets/cssMode-DVq3LtHT-CoUgr_4L.js.map +1 -0
- package/dist/assets/{editor-B8aF84QX.js → editor-Bat08LEU.js} +2 -2
- package/dist/assets/editor-Bat08LEU.js.map +1 -0
- package/dist/assets/{editor-D1liwP8t.js → editor-CIbZp8-c.js} +4 -4
- package/dist/assets/{editor-D1liwP8t.js.map → editor-CIbZp8-c.js.map} +1 -1
- package/dist/assets/{editor-C6Um7TKF.js → editor-Cxi1Bi4m.js} +2 -2
- package/dist/assets/editor-Cxi1Bi4m.js.map +1 -0
- package/dist/assets/{editor-ZZR7pxvt.js → editor-NPbexOjM.js} +2 -2
- package/dist/assets/editor-NPbexOjM.js.map +1 -0
- package/dist/assets/{editors-BvDPqtae.js → editors-DVrDEp-F.js} +7 -7
- package/dist/assets/{editors-BvDPqtae.js.map → editors-DVrDEp-F.js.map} +1 -1
- package/dist/assets/{freemarker2-B12auKfc-CV2bI2LT.js → freemarker2-B12auKfc-CY1f5BH_.js} +2 -2
- package/dist/assets/freemarker2-B12auKfc-CY1f5BH_.js.map +1 -0
- package/dist/assets/{handlebars-fup3rJ3C-CxSp7nNU.js → handlebars-fup3rJ3C-DIrFum2b.js} +2 -2
- package/dist/assets/handlebars-fup3rJ3C-DIrFum2b.js.map +1 -0
- package/dist/assets/{html-Bd7p9h1P-VHQCRfyo.js → html-Bd7p9h1P-DH0yLc_S.js} +2 -2
- package/dist/assets/html-Bd7p9h1P-DH0yLc_S.js.map +1 -0
- package/dist/assets/{htmlMode-D_EcT_ua-DeobOP5l.js → htmlMode-D_EcT_ua-BUl6Pr_e.js} +2 -2
- package/dist/assets/htmlMode-D_EcT_ua-BUl6Pr_e.js.map +1 -0
- package/dist/assets/{index-8PbnK2go-D-EdohcU.js → index-8PbnK2go-BoR1WEku.js} +2 -2
- package/dist/assets/index-8PbnK2go-BoR1WEku.js.map +1 -0
- package/dist/assets/{index-Dsh5c9Wv.js → index-CMnBdWsa.js} +2 -2
- package/dist/assets/{index-Dsh5c9Wv.js.map → index-CMnBdWsa.js.map} +1 -1
- package/dist/assets/{index-CnxM4IIa-CvFEW5IC.js → index-CnxM4IIa-CoekJPsT.js} +18 -18
- package/dist/assets/index-CnxM4IIa-CoekJPsT.js.map +1 -0
- package/dist/assets/{index-Dc3srWFp-Dj58lFaD.js → index-Dc3srWFp-DVPU56zP.js} +2 -2
- package/dist/assets/index-Dc3srWFp-DVPU56zP.js.map +1 -0
- package/dist/assets/{index-T6Et30Eh-Bk15VVSB.js → index-T6Et30Eh-B1ytNt1O.js} +2 -2
- package/dist/assets/index-T6Et30Eh-B1ytNt1O.js.map +1 -0
- package/dist/assets/{javascript-egJvx3xR-D5qg5jV7.js → javascript-egJvx3xR-CXu0MlTd.js} +2 -2
- package/dist/assets/javascript-egJvx3xR-CXu0MlTd.js.map +1 -0
- package/dist/assets/{jsonMode-CmFhZ-nO-Ct78-OTz.js → jsonMode-CmFhZ-nO-BJHj7Aq3.js} +2 -2
- package/dist/assets/jsonMode-CmFhZ-nO-BJHj7Aq3.js.map +1 -0
- package/dist/assets/{liquid-Bn94NRXM-D3xTeo2T.js → liquid-Bn94NRXM-DXR9Xdil.js} +2 -2
- package/dist/assets/liquid-Bn94NRXM-DXR9Xdil.js.map +1 -0
- package/dist/assets/{main.DHxrtmJK.js → main.9ezbfd1a.js} +5 -5
- package/dist/assets/{main.DHxrtmJK.js.map → main.9ezbfd1a.js.map} +1 -1
- package/dist/assets/{mdx-CUs5ly0Y-DxijAFif.js → mdx-CUs5ly0Y-PFSuKGqp.js} +2 -2
- package/dist/assets/mdx-CUs5ly0Y-PFSuKGqp.js.map +1 -0
- package/dist/assets/{python-CvQNUgbY-DBYmw6_9.js → python-CvQNUgbY-DKU7Nn90.js} +2 -2
- package/dist/assets/python-CvQNUgbY-DKU7Nn90.js.map +1 -0
- package/dist/assets/{razor-COKLAES4-BPYm69MZ.js → razor-COKLAES4-DVH5NG6J.js} +2 -2
- package/dist/assets/razor-COKLAES4-DVH5NG6J.js.map +1 -0
- package/dist/assets/{root-0NIp6wBQ.js → root-D5vIE4mi.js} +2 -2
- package/dist/assets/root-D5vIE4mi.js.map +1 -0
- package/dist/assets/{router-j5rEsdZ1.js → router-BLZPRKeS.js} +4 -4
- package/dist/assets/{router-j5rEsdZ1.js.map → router-BLZPRKeS.js.map} +1 -1
- package/dist/assets/{tsMode-Dj44YKby-CWl_rxwS.js → tsMode-Dj44YKby-BecbNaDB.js} +2 -2
- package/dist/assets/tsMode-Dj44YKby-BecbNaDB.js.map +1 -0
- package/dist/assets/{typescript-BGB8OuQj-CojMjzn1.js → typescript-BGB8OuQj-q21L76s7.js} +2 -2
- package/dist/assets/typescript-BGB8OuQj-q21L76s7.js.map +1 -0
- package/dist/assets/{typescript-e2Impz-Y-ZFE3ath_.js → typescript-e2Impz-Y-eyfqYqVi.js} +2 -2
- package/dist/assets/{typescript-e2Impz-Y-ZFE3ath_.js.map → typescript-e2Impz-Y-eyfqYqVi.js.map} +1 -1
- package/dist/assets/{useUiNodes-CFkBr3IB.js → useUiNodes-BpMMwQ0y.js} +2 -2
- package/dist/assets/{useUiNodes-CFkBr3IB.js.map → useUiNodes-BpMMwQ0y.js.map} +1 -1
- package/dist/assets/{visitor-jgO2GXVr-CpK_hqN0.js → visitor-jgO2GXVr-DtE61rfq.js} +2 -2
- package/dist/assets/visitor-jgO2GXVr-DtE61rfq.js.map +1 -0
- package/dist/assets/{xml-C95L75A3-DKw4cO1a.js → xml-C95L75A3-CktYugFs.js} +2 -2
- package/dist/assets/xml-C95L75A3-CktYugFs.js.map +1 -0
- package/dist/assets/{yaml-CBgf5N3D-Chtc7gtl.js → yaml-CBgf5N3D-DNYfpm9a.js} +2 -2
- package/dist/assets/yaml-CBgf5N3D-DNYfpm9a.js.map +1 -0
- package/dist/index.html +3 -3
- package/dist/service-worker.js +1 -1
- package/dist/swEnv.js +2 -2
- package/dist/vite-envs.sh +5 -5
- package/package/index.js +46 -8
- package/package.json +1 -1
- package/dist/assets/ccip-6rlDGLkL-DLquEPm3-DsHnVs3R.js.map +0 -1
- package/dist/assets/ccip-C90evIJH.js.map +0 -1
- package/dist/assets/ccip-D7jGecEM-BZhoTqQe.js.map +0 -1
- package/dist/assets/cssMode-DVq3LtHT-T-7Kj20A.js.map +0 -1
- package/dist/assets/editor-B8aF84QX.js.map +0 -1
- package/dist/assets/editor-C6Um7TKF.js.map +0 -1
- package/dist/assets/editor-ZZR7pxvt.js.map +0 -1
- package/dist/assets/freemarker2-B12auKfc-CV2bI2LT.js.map +0 -1
- package/dist/assets/handlebars-fup3rJ3C-CxSp7nNU.js.map +0 -1
- package/dist/assets/html-Bd7p9h1P-VHQCRfyo.js.map +0 -1
- package/dist/assets/htmlMode-D_EcT_ua-DeobOP5l.js.map +0 -1
- package/dist/assets/index-8PbnK2go-D-EdohcU.js.map +0 -1
- package/dist/assets/index-CnxM4IIa-CvFEW5IC.js.map +0 -1
- package/dist/assets/index-Dc3srWFp-Dj58lFaD.js.map +0 -1
- package/dist/assets/index-T6Et30Eh-Bk15VVSB.js.map +0 -1
- package/dist/assets/javascript-egJvx3xR-D5qg5jV7.js.map +0 -1
- package/dist/assets/jsonMode-CmFhZ-nO-Ct78-OTz.js.map +0 -1
- package/dist/assets/liquid-Bn94NRXM-D3xTeo2T.js.map +0 -1
- package/dist/assets/mdx-CUs5ly0Y-DxijAFif.js.map +0 -1
- package/dist/assets/python-CvQNUgbY-DBYmw6_9.js.map +0 -1
- package/dist/assets/razor-COKLAES4-BPYm69MZ.js.map +0 -1
- package/dist/assets/root-0NIp6wBQ.js.map +0 -1
- package/dist/assets/tsMode-Dj44YKby-CWl_rxwS.js.map +0 -1
- package/dist/assets/typescript-BGB8OuQj-CojMjzn1.js.map +0 -1
- package/dist/assets/visitor-jgO2GXVr-CpK_hqN0.js.map +0 -1
- package/dist/assets/xml-C95L75A3-DKw4cO1a.js.map +0 -1
- package/dist/assets/yaml-CBgf5N3D-Chtc7gtl.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"mappings":"","names":[],"ignoreList":[],"sources":[],"sourcesContent":[],"file":"assets/main.
|
|
1
|
+
{"version":3,"mappings":"","names":[],"ignoreList":[],"sources":[],"sourcesContent":[],"file":"assets/main.9ezbfd1a.js"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{m as r}from"./index-CnxM4IIa-
|
|
1
|
+
import{m as r}from"./index-CnxM4IIa-CoekJPsT.js";import"./main.9ezbfd1a.js";import"./editors-DVrDEp-F.js";import"./index-T6Et30Eh-B1ytNt1O.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/var d=Object.defineProperty,c=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,k=(n,e,i,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of p(e))!a.call(n,o)&&o!==i&&d(n,o,{get:()=>e[o],enumerable:!(s=c(e,o))||s.enumerable});return n},m=(n,e,i)=>(k(n,e,"default"),i),t={};m(t,r);var h={comments:{blockComment:["{/*","*/}"]},brackets:[["{","}"]],autoClosingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"“",close:"”"},{open:"‘",close:"’"},{open:"`",close:"`"},{open:"{",close:"}"},{open:"(",close:")"},{open:"_",close:"_"},{open:"**",close:"**"},{open:"<",close:">"}],onEnterRules:[{beforeText:/^\s*- .+/,action:{indentAction:t.languages.IndentAction.None,appendText:"- "}},{beforeText:/^\s*\+ .+/,action:{indentAction:t.languages.IndentAction.None,appendText:"+ "}},{beforeText:/^\s*\* .+/,action:{indentAction:t.languages.IndentAction.None,appendText:"* "}},{beforeText:/^> /,action:{indentAction:t.languages.IndentAction.None,appendText:"> "}},{beforeText:/<\w+/,action:{indentAction:t.languages.IndentAction.Indent}},{beforeText:/\s+>\s*$/,action:{indentAction:t.languages.IndentAction.Indent}},{beforeText:/<\/\w+>/,action:{indentAction:t.languages.IndentAction.Outdent}},...Array.from({length:100},(n,e)=>({beforeText:new RegExp(`^${e}\\. .+`),action:{indentAction:t.languages.IndentAction.None,appendText:`${e+1}. `}}))]},u={defaultToken:"",tokenPostfix:".mdx",control:/[!#()*+.[\\\]_`{}\-]/,escapes:/\\@control/,tokenizer:{root:[[/^---$/,{token:"meta.content",next:"@frontmatter",nextEmbedded:"yaml"}],[/^\s*import/,{token:"keyword",next:"@import",nextEmbedded:"js"}],[/^\s*export/,{token:"keyword",next:"@export",nextEmbedded:"js"}],[/<\w+/,{token:"type.identifier",next:"@jsx"}],[/<\/?\w+>/,"type.identifier"],[/^(\s*)(>*\s*)(#{1,6}\s)/,[{token:"white"},{token:"comment"},{token:"keyword",next:"@header"}]],[/^(\s*)(>*\s*)([*+-])(\s+)/,["white","comment","keyword","white"]],[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/,["white","comment","number","white"]],[/^(\s*)(>*\s*)(\d{1,9}\.)(\s+)/,["white","comment","number","white"]],[/^(\s*)(>*\s*)(-{3,}|\*{3,}|_{3,})$/,["white","comment","keyword"]],[/`{3,}(\s.*)?$/,{token:"string",next:"@codeblock_backtick"}],[/~{3,}(\s.*)?$/,{token:"string",next:"@codeblock_tilde"}],[/`{3,}(\S+).*$/,{token:"string",next:"@codeblock_highlight_backtick",nextEmbedded:"$1"}],[/~{3,}(\S+).*$/,{token:"string",next:"@codeblock_highlight_tilde",nextEmbedded:"$1"}],[/^(\s*)(-{4,})$/,["white","comment"]],[/^(\s*)(>+)/,["white","comment"]],{include:"content"}],content:[[/(\[)(.+)(]\()(.+)(\s+".*")(\))/,["","string.link","","type.identifier","string.link",""]],[/(\[)(.+)(]\()(.+)(\))/,["","type.identifier","","string.link",""]],[/(\[)(.+)(]\[)(.+)(])/,["","type.identifier","","type.identifier",""]],[/(\[)(.+)(]:\s+)(\S*)/,["","type.identifier","","string.link"]],[/(\[)(.+)(])/,["","type.identifier",""]],[/`.*`/,"variable.source"],[/_/,{token:"emphasis",next:"@emphasis_underscore"}],[/\*(?!\*)/,{token:"emphasis",next:"@emphasis_asterisk"}],[/\*\*/,{token:"strong",next:"@strong"}],[/{/,{token:"delimiter.bracket",next:"@expression",nextEmbedded:"js"}]],import:[[/'\s*(;|$)/,{token:"string",next:"@pop",nextEmbedded:"@pop"}]],expression:[[/{/,{token:"delimiter.bracket",next:"@expression"}],[/}/,{token:"delimiter.bracket",next:"@pop",nextEmbedded:"@pop"}]],export:[[/^\s*$/,{token:"delimiter.bracket",next:"@pop",nextEmbedded:"@pop"}]],jsx:[[/\s+/,""],[/(\w+)(=)("(?:[^"\\]|\\.)*")/,["attribute.name","operator","string"]],[/(\w+)(=)('(?:[^'\\]|\\.)*')/,["attribute.name","operator","string"]],[/(\w+(?=\s|>|={|$))/,["attribute.name"]],[/={/,{token:"delimiter.bracket",next:"@expression",nextEmbedded:"js"}],[/>/,{token:"type.identifier",next:"@pop"}]],header:[[/.$/,{token:"keyword",next:"@pop"}],{include:"content"},[/./,{token:"keyword"}]],strong:[[/\*\*/,{token:"strong",next:"@pop"}],{include:"content"},[/./,{token:"strong"}]],emphasis_underscore:[[/_/,{token:"emphasis",next:"@pop"}],{include:"content"},[/./,{token:"emphasis"}]],emphasis_asterisk:[[/\*(?!\*)/,{token:"emphasis",next:"@pop"}],{include:"content"},[/./,{token:"emphasis"}]],frontmatter:[[/^---$/,{token:"meta.content",nextEmbedded:"@pop",next:"@pop"}]],codeblock_highlight_backtick:[[/\s*`{3,}\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/.*$/,"variable.source"]],codeblock_highlight_tilde:[[/\s*~{3,}\s*$/,{token:"string",next:"@pop",nextEmbedded:"@pop"}],[/.*$/,"variable.source"]],codeblock_backtick:[[/\s*`{3,}\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]],codeblock_tilde:[[/\s*~{3,}\s*$/,{token:"string",next:"@pop"}],[/.*$/,"variable.source"]]}};export{h as conf,u as language};
|
|
7
|
-
//# sourceMappingURL=mdx-CUs5ly0Y-
|
|
7
|
+
//# sourceMappingURL=mdx-CUs5ly0Y-PFSuKGqp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mdx-CUs5ly0Y-PFSuKGqp.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{m as i}from"./index-CnxM4IIa-
|
|
1
|
+
import{m as i}from"./index-CnxM4IIa-CoekJPsT.js";import"./main.9ezbfd1a.js";import"./editors-DVrDEp-F.js";import"./index-T6Et30Eh-B1ytNt1O.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/var l=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of c(e))!p.call(t,n)&&n!==r&&l(t,n,{get:()=>e[n],enumerable:!(s=a(e,n))||s.enumerable});return t},g=(t,e,r)=>(d(t,e,"default"),r),o={};g(o,i);var u={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:o.languages.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},y={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/"/,"string.escape","@dblStringBody"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]]}};export{u as conf,y as language};
|
|
7
|
-
//# sourceMappingURL=python-CvQNUgbY-
|
|
7
|
+
//# sourceMappingURL=python-CvQNUgbY-DKU7Nn90.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"python-CvQNUgbY-DKU7Nn90.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{m as n}from"./index-CnxM4IIa-
|
|
1
|
+
import{m as n}from"./index-CnxM4IIa-CoekJPsT.js";import"./main.9ezbfd1a.js";import"./editors-DVrDEp-F.js";import"./index-T6Et30Eh-B1ytNt1O.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/var s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,p=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of l(e))!d.call(t,r)&&r!==o&&s(t,r,{get:()=>e[r],enumerable:!(i=c(e,r))||i.enumerable});return t},h=(t,e,o)=>(p(t,e,"default"),o),m={};h(m,n);var a=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],w={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${a.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:m.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${a.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:m.languages.IndentAction.Indent}}]},x={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{w as conf,x as language};
|
|
7
|
-
//# sourceMappingURL=razor-COKLAES4-
|
|
7
|
+
//# sourceMappingURL=razor-COKLAES4-DVH5NG6J.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"razor-COKLAES4-DVH5NG6J.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r,ai as k,d as i,ag as I,a4 as L,a8 as H,au as U,ak as A,ap as O,aq as M,av as j,aw as $,ax as _,ay as F,a2 as G,ah as q,U as T,az as B,aA as K,aB as z,aC as J,aD as W}from"./main.
|
|
1
|
+
import{r,ai as k,d as i,ag as I,a4 as L,a8 as H,au as U,ak as A,ap as O,aq as M,av as j,aw as $,ax as _,ay as F,a2 as G,ah as q,U as T,az as B,aA as K,aB as z,aC as J,aD as W}from"./main.9ezbfd1a.js";import{u as Y}from"./router-BLZPRKeS.js";import{u as P,d as Q}from"./useUiNodes-BpMMwQ0y.js";const X=s=>r.createElement("svg",{width:107,height:20,viewBox:"0 0 107 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",...s},r.createElement("path",{d:"M0.666504 10.1087C0.666504 8.30419 1.056 6.69918 1.83499 5.29371C2.61398 3.8709 3.6959 2.76908 5.08077 1.98827C6.48295 1.1901 8.0669 0.791016 9.83261 0.791016C11.9965 0.791016 13.8487 1.36361 15.3894 2.50881C16.9301 3.654 17.9601 5.21563 18.4794 7.1937H13.5977C13.2342 6.43023 12.7149 5.84896 12.0397 5.44988C11.3819 5.05079 10.6289 4.85125 9.78067 4.85125C8.41311 4.85125 7.30522 5.32842 6.45699 6.28275C5.60876 7.23708 5.18464 8.51241 5.18464 10.1087C5.18464 11.7051 5.60876 12.9804 6.45699 13.9347C7.30522 14.8891 8.41311 15.3662 9.78067 15.3662C10.6289 15.3662 11.3819 15.1667 12.0397 14.7676C12.7149 14.3685 13.2342 13.7872 13.5977 13.0238H18.4794C17.9601 15.0018 16.9301 16.5635 15.3894 17.7087C13.8487 18.8365 11.9965 19.4004 9.83261 19.4004C8.0669 19.4004 6.48295 19.01 5.08077 18.2292C3.6959 17.431 2.61398 16.3292 1.83499 14.9238C1.056 13.5183 0.666504 11.9133 0.666504 10.1087Z"}),r.createElement("path",{d:"M26.7553 19.4785C25.3358 19.4785 24.0548 19.1749 22.9123 18.5676C21.7871 17.9603 20.8956 17.0927 20.2378 15.9648C19.5973 14.837 19.277 13.5183 19.277 12.0087C19.277 10.5165 19.6059 9.20646 20.2638 8.07862C20.9216 6.93343 21.8217 6.05718 22.9642 5.44988C24.1068 4.84258 25.3878 4.53893 26.8073 4.53893C28.2267 4.53893 29.5078 4.84258 30.6503 5.44988C31.7928 6.05718 32.693 6.93343 33.3508 8.07862C34.0086 9.20646 34.3375 10.5165 34.3375 12.0087C34.3375 13.5009 33.9999 14.8197 33.3248 15.9648C32.667 17.0927 31.7582 17.9603 30.5983 18.5676C29.4558 19.1749 28.1748 19.4785 26.7553 19.4785ZM26.7553 15.6265C27.6036 15.6265 28.322 15.3142 28.9105 14.6895C29.5164 14.0649 29.8193 13.1713 29.8193 12.0087C29.8193 10.8462 29.5251 9.95257 28.9365 9.32792C28.3652 8.70327 27.6555 8.39095 26.8073 8.39095C25.9417 8.39095 25.2233 8.70327 24.6521 9.32792C24.0808 9.93522 23.7952 10.8288 23.7952 12.0087C23.7952 13.1713 24.0721 14.0649 24.6261 14.6895C25.1973 15.3142 25.9071 15.6265 26.7553 15.6265Z"}),r.createElement("path",{d:"M44.483 4.59098C46.1795 4.59098 47.5297 5.14623 48.5337 6.25672C49.5551 7.34986 50.0658 8.85944 50.0658 10.7854V19.2703H45.6515V11.3841C45.6515 10.4124 45.4005 9.6576 44.8985 9.11971C44.3964 8.58181 43.7213 8.31286 42.8731 8.31286C42.0249 8.31286 41.3497 8.58181 40.8477 9.11971C40.3457 9.6576 40.0947 10.4124 40.0947 11.3841V19.2703H35.6545V4.74714H40.0947V6.67315C40.5448 6.03115 41.1507 5.52796 41.9123 5.16358C42.674 4.78185 43.5309 4.59098 44.483 4.59098Z"}),r.createElement("path",{d:"M60.9412 4.59098C62.6376 4.59098 63.9879 5.14623 64.9919 6.25672C66.0133 7.34986 66.5239 8.85944 66.5239 10.7854V19.2703H62.1096V11.3841C62.1096 10.4124 61.8586 9.6576 61.3566 9.11971C60.8546 8.58181 60.1795 8.31286 59.3313 8.31286C58.483 8.31286 57.8079 8.58181 57.3059 9.11971C56.8039 9.6576 56.5529 10.4124 56.5529 11.3841V19.2703H52.1126V4.74714H56.5529V6.67315C57.0029 6.03115 57.6088 5.52796 58.3705 5.16358C59.1322 4.78185 59.9891 4.59098 60.9412 4.59098Z"}),r.createElement("path",{d:"M82.2291 11.7745C82.2291 12.1909 82.2031 12.6247 82.1512 13.0758H72.1022C72.1715 13.9781 72.4571 14.6722 72.9591 15.158C73.4784 15.6265 74.1103 15.8607 74.8546 15.8607C75.9625 15.8607 76.7329 15.3923 77.1656 14.4553H81.8915C81.6491 15.4096 81.2077 16.2685 80.5672 17.032C79.944 17.7954 79.1564 18.3941 78.2043 18.8278C77.2522 19.2616 76.1876 19.4785 75.0104 19.4785C73.5909 19.4785 72.3272 19.1749 71.2194 18.5676C70.1115 17.9603 69.2459 17.0927 68.6227 15.9648C67.9995 14.837 67.6879 13.5183 67.6879 12.0087C67.6879 10.4991 67.9909 9.18044 68.5968 8.05259C69.2199 6.92475 70.0855 6.05718 71.1934 5.44988C72.3013 4.84258 73.5736 4.53893 75.0104 4.53893C76.4126 4.53893 77.659 4.8339 78.7496 5.42385C79.8402 6.0138 80.6884 6.85534 81.2943 7.94848C81.9175 9.04163 82.2291 10.317 82.2291 11.7745ZM77.685 10.6033C77.685 9.83979 77.4253 9.23249 76.906 8.78135C76.3866 8.33022 75.7375 8.10465 74.9585 8.10465C74.2141 8.10465 73.5823 8.32154 73.063 8.75533C72.561 9.18911 72.2494 9.80509 72.1282 10.6033H77.685Z"}),r.createElement("path",{d:"M82.65 12.0087C82.65 10.4991 82.9529 9.18044 83.5588 8.05259C84.182 6.92475 85.0389 6.05718 86.1295 5.44988C87.2374 4.84258 88.5011 4.53893 89.9206 4.53893C91.7382 4.53893 93.2529 5.01609 94.4647 5.97042C95.6937 6.92475 96.4987 8.26949 96.8795 10.0046H92.1537C91.7555 8.89414 90.9852 8.33889 89.8427 8.33889C89.0291 8.33889 88.3799 8.65989 87.8952 9.3019C87.4105 9.92655 87.1681 10.8288 87.1681 12.0087C87.1681 13.1886 87.4105 14.0996 87.8952 14.7416C88.3799 15.3662 89.0291 15.6786 89.8427 15.6786C90.9852 15.6786 91.7555 15.1233 92.1537 14.0128H96.8795C96.4987 15.7133 95.6937 17.0493 94.4647 18.021C93.2356 18.9927 91.7209 19.4785 89.9206 19.4785C88.5011 19.4785 87.2374 19.1749 86.1295 18.5676C85.0389 17.9603 84.182 17.0927 83.5588 15.9648C82.9529 14.837 82.65 13.5183 82.65 12.0087Z"}),r.createElement("path",{d:"M106.291 15.4964V19.2703H104.032C102.423 19.2703 101.167 18.8799 100.267 18.0991C99.3672 17.3009 98.9171 16.0082 98.9171 14.221V8.443H97.1514V4.74714H98.9171V1.20745H103.357V4.74714H106.266V8.443H103.357V14.2731C103.357 14.7069 103.461 15.0192 103.669 15.2101C103.877 15.4009 104.223 15.4964 104.708 15.4964H106.291Z"})),e1=s=>r.createElement("svg",{width:26,height:26,viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",...s},r.createElement("path",{d:"M20.105 7.37978C19.9097 7.18452 19.9097 6.86795 20.105 6.67269L22.5725 4.20504C24.9229 6.75889 26.0649 10.0248 25.9972 13.2723L20.105 7.37978ZM16.1222 10.6556C15.927 10.8509 15.927 11.1674 16.1222 11.3627L24.2614 19.5023C25.125 18.0079 25.667 16.378 25.8875 14.7149L19.3289 8.15595C19.1336 7.96068 18.817 7.96068 18.6218 8.15595L16.1222 10.6556ZM0.00284613 12.729C-0.0649083 15.9752 1.07706 19.2411 3.42753 21.7962L5.89504 19.3285C6.09029 19.1333 6.09029 18.8167 5.89504 18.6214L0.00284613 12.729ZM4.20485 22.5723C6.75858 24.9229 10.0256 26.0649 13.2716 25.9972L7.37946 20.1047C7.1842 19.9094 6.8676 19.9094 6.67234 20.1047L4.20485 22.5723ZM13.0519 18.5174C13.2472 18.3222 13.2472 18.0056 13.0519 17.8103L1.73982 6.49772C0.87626 7.99209 0.334223 9.62072 0.113713 11.2851L9.84523 21.0171C10.0405 21.2124 10.3571 21.2124 10.5524 21.0171L13.0519 18.5174ZM9.60276 7.08454C9.78969 6.88798 9.7858 6.57823 9.594 6.38642L5.55009 2.34233C4.93783 2.77105 4.35391 3.25889 3.80695 3.80588C3.25998 4.35287 2.77216 4.93684 2.34346 5.54912L6.3864 9.59111C6.57859 9.78325 6.88907 9.7867 7.08548 9.59887L8.47817 8.26702L9.60276 7.08454ZM11.2072 21.6733C11.012 21.8685 11.012 22.1851 11.2072 22.3804L14.7142 25.8875C16.3785 25.667 18.0071 25.1249 19.5013 24.2613L14.4139 19.1736C14.2186 18.9783 13.902 18.9783 13.7067 19.1736L11.2072 21.6733ZM23.6565 20.4496L11.0843 7.87683C10.8891 7.68156 10.5725 7.68156 10.3772 7.87683L7.87766 10.3765C7.68241 10.5718 7.68241 10.8883 7.87766 11.0836L20.4499 23.6564C21.0622 23.2277 21.6461 22.7398 22.193 22.1929C22.74 21.6459 23.2278 21.0619 23.6565 20.4496ZM17.8445 7.37855C18.0397 7.18329 18.0397 6.86672 17.8445 6.67146L11.2858 0.112477C9.62151 0.332998 7.99294 0.875053 6.49865 1.73866L14.6378 9.87821C14.8331 10.0735 15.1497 10.0735 15.3449 9.87821L17.8445 7.37855ZM21.7951 3.42769C19.2414 1.07712 15.9744 -0.0649114 12.7284 0.00284625L18.6205 5.89529C18.8158 6.09056 19.1324 6.09056 19.3277 5.89529L21.7951 3.42769Z",fill:"url(#paint0_linear_526_12008)"}),r.createElement("defs",null,r.createElement("linearGradient",{id:"paint0_linear_526_12008",x1:13,y1:0,x2:13,y2:26,gradientUnits:"userSpaceOnUse"},r.createElement("stop",{stopColor:"currentColor"}),r.createElement("stop",{offset:1,stopColor:"currentColor"})))),t1=()=>{const{t:s}=k();return i.jsxs("div",{children:[i.jsx("p",{className:"font-medium",children:s("notifications.reloadApp")}),i.jsxs("button",{onClick:()=>location.reload(),className:"underline decoration-solid underline-offset-2",children:[s("common.reloadConnect")," 🔄"]})]})};function r1(){return{getDriveIdBySlug:async(s,e)=>{if(!s)return;const t=s.split("/");t.pop(),t.pop(),t.push("drives");const n=t.join("/");return(await(await fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:`
|
|
2
2
|
query getDriveIdBySlug($slug: String!) {
|
|
3
3
|
driveIdBySlug(slug: $slug)
|
|
4
4
|
}
|
|
@@ -7,4 +7,4 @@ import{r,ai as k,d as i,ag as I,a4 as L,a8 as H,au as U,ak as A,ap as O,aq as M,
|
|
|
7
7
|
flex items-center bg-gray-50`,children:[i.jsx(e1,{className:"ml-1 mr-0.5 p-1.5"}),i.jsx(X,{className:"h-3 w-fit"})]}),i.jsx("div",{className:`flex items-stretch overflow-auto
|
|
8
8
|
${R?"h-app-height":"h-screen"}
|
|
9
9
|
`,role:"presentation",tabIndex:0,children:i.jsxs(r.Suspense,{children:[i.jsx(h1,{}),i.jsx("div",{className:"relative flex-1 overflow-auto",children:i.jsx(W,{})})]})})]})},w1=i.jsx(Z,{}),E1=i.jsx(Z,{});export{w1 as element,E1 as errorElement};
|
|
10
|
-
//# sourceMappingURL=root-
|
|
10
|
+
//# sourceMappingURL=root-D5vIE4mi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root-D5vIE4mi.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/root-
|
|
2
|
-
import{r as n,v as B,w as H,x as Y,A as G,E as Q,G as W,L as X,Q as $,S as q,U as J,V as K,W as Z,X as ee,_ as x,d as _,Y as te}from"./main.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/root-D5vIE4mi.js","assets/main.9ezbfd1a.js","assets/main-Bfrdc6YH.css","assets/useUiNodes-BpMMwQ0y.js","assets/content-TdogUNEo.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{r as n,v as B,w as H,x as Y,A as G,E as Q,G as W,L as X,Q as $,S as q,U as J,V as K,W as Z,X as ee,_ as x,d as _,Y as te}from"./main.9ezbfd1a.js";/**
|
|
3
3
|
* React Router DOM v6.26.2
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) Remix Software Inc.
|
|
@@ -8,5 +8,5 @@ import{r as n,v as B,w as H,x as Y,A as G,E as Q,G as W,L as X,Q as $,S as q,U a
|
|
|
8
8
|
* LICENSE.md file in the root directory of this source tree.
|
|
9
9
|
*
|
|
10
10
|
* @license MIT
|
|
11
|
-
*/function E(){return E=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},E.apply(this,arguments)}function O(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((r,e)=>{let s=t[e];return r.concat(Array.isArray(s)?s.map(a=>[e,a]):[[e,s]])},[]))}function re(t,r){let e=O(t);return r&&r.forEach((s,a)=>{e.has(a)||r.getAll(a).forEach(o=>{e.append(a,o)})}),e}const ne="6";try{window.__reactRouterVersion=ne}catch{}function ae(t,r){return Q({basename:r==null?void 0:r.basename,future:E({},r==null?void 0:r.future,{v7_prependBasename:!0}),history:W({window:r==null?void 0:r.window}),hydrationData:(r==null?void 0:r.hydrationData)||se(),routes:t,mapRouteProperties:X,unstable_dataStrategy:r==null?void 0:r.unstable_dataStrategy,unstable_patchRoutesOnNavigation:r==null?void 0:r.unstable_patchRoutesOnNavigation,window:r==null?void 0:r.window}).initialize()}function se(){var t;let r=(t=window)==null?void 0:t.__staticRouterHydrationData;return r&&r.errors&&(r=E({},r,{errors:ie(r.errors)})),r}function ie(t){if(!t)return null;let r=Object.entries(t),e={};for(let[s,a]of r)if(a&&a.__type==="RouteErrorResponse")e[s]=new $(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let u=new o(a.message);u.stack="",e[s]=u}catch{}}if(e[s]==null){let o=new Error(a.message);o.stack="",e[s]=o}}else e[s]=a;return e}const oe=n.createContext({isTransitioning:!1}),ue=n.createContext(new Map),le="startTransition",j=K[le],ce="flushSync",I=Z[ce];function fe(t){j?j(t):t()}function R(t){I?I(t):t()}class de{constructor(){this.status="pending",this.promise=new Promise((r,e)=>{this.resolve=s=>{this.status==="pending"&&(this.status="resolved",r(s))},this.reject=s=>{this.status==="pending"&&(this.status="rejected",e(s))}})}}function ve(t){let{fallbackElement:r,router:e,future:s}=t,[a,o]=n.useState(e.state),[u,f]=n.useState(),[d,v]=n.useState({isTransitioning:!1}),[l,P]=n.useState(),[w,y]=n.useState(),[S,C]=n.useState(),g=n.useRef(new Map),{v7_startTransition:F}=s||{},T=n.useCallback(i=>{F?fe(i):i()},[F]),A=n.useCallback((i,m)=>{let{deletedFetchers:c,unstable_flushSync:V,unstable_viewTransitionOpts:h}=m;c.forEach(p=>g.current.delete(p)),i.fetchers.forEach((p,k)=>{p.data!==void 0&&g.current.set(k,p.data)});let N=e.window==null||e.window.document==null||typeof e.window.document.startViewTransition!="function";if(!h||N){V?R(()=>o(i)):T(()=>o(i));return}if(V){R(()=>{w&&(l&&l.resolve(),w.skipTransition()),v({isTransitioning:!0,flushSync:!0,currentLocation:h.currentLocation,nextLocation:h.nextLocation})});let p=e.window.document.startViewTransition(()=>{R(()=>o(i))});p.finished.finally(()=>{R(()=>{P(void 0),y(void 0),f(void 0),v({isTransitioning:!1})})}),R(()=>y(p));return}w?(l&&l.resolve(),w.skipTransition(),C({state:i,currentLocation:h.currentLocation,nextLocation:h.nextLocation})):(f(i),v({isTransitioning:!0,flushSync:!1,currentLocation:h.currentLocation,nextLocation:h.nextLocation}))},[e.window,w,l,g,T]);n.useLayoutEffect(()=>e.subscribe(A),[e,A]),n.useEffect(()=>{d.isTransitioning&&!d.flushSync&&P(new de)},[d]),n.useEffect(()=>{if(l&&u&&e.window){let i=u,m=l.promise,c=e.window.document.startViewTransition(async()=>{T(()=>o(i)),await m});c.finished.finally(()=>{P(void 0),y(void 0),f(void 0),v({isTransitioning:!1})}),y(c)}},[T,u,l,e.window]),n.useEffect(()=>{l&&u&&a.location.key===u.location.key&&l.resolve()},[l,w,a.location,u]),n.useEffect(()=>{!d.isTransitioning&&S&&(f(S.state),v({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),C(void 0))},[d.isTransitioning,S]),n.useEffect(()=>{},[]);let b=n.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:i=>e.navigate(i),push:(i,m,c)=>e.navigate(i,{state:m,preventScrollReset:c==null?void 0:c.preventScrollReset}),replace:(i,m,c)=>e.navigate(i,{replace:!0,state:m,preventScrollReset:c==null?void 0:c.preventScrollReset})}),[e]),L=e.basename||"/",M=n.useMemo(()=>({router:e,navigator:b,static:!1,basename:L}),[e,b,L]),z=n.useMemo(()=>({v7_relativeSplatPath:e.future.v7_relativeSplatPath}),[e.future.v7_relativeSplatPath]);return n.createElement(n.Fragment,null,n.createElement(B.Provider,{value:M},n.createElement(H.Provider,{value:a},n.createElement(ue.Provider,{value:g.current},n.createElement(oe.Provider,{value:d},n.createElement(Y,{basename:L,location:a.location,navigationType:a.historyAction,navigator:b,future:z},a.initialized||e.future.v7_partialHydration?n.createElement(me,{routes:e.routes,future:e.future,state:a}):r))))),null)}const me=n.memo(he);function he(t){let{routes:r,future:e,state:s}=t;return G(r,void 0,s,e)}var U;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(U||(U={}));var D;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(D||(D={}));function _e(t){let r=n.useRef(O(t)),e=n.useRef(!1),s=q(),a=n.useMemo(()=>re(s.search,e.current?null:r.current),[s.search]),o=J(),u=n.useCallback((f,d)=>{const v=O(typeof f=="function"?f(a):f);e.current=!0,o("?"+v,d)},[o,a]);return[a,u]}async function pe(t){var s;return(await((s=window.electronAPI)==null?void 0:s.isPackaged())?te:ae)(t,{basename:ee.routerBasename})}const we=async()=>{const t=await pe([{path:"/",lazy:()=>x(()=>import("./root-
|
|
12
|
-
//# sourceMappingURL=router-
|
|
11
|
+
*/function E(){return E=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(t[s]=e[s])}return t},E.apply(this,arguments)}function O(t){return t===void 0&&(t=""),new URLSearchParams(typeof t=="string"||Array.isArray(t)||t instanceof URLSearchParams?t:Object.keys(t).reduce((r,e)=>{let s=t[e];return r.concat(Array.isArray(s)?s.map(a=>[e,a]):[[e,s]])},[]))}function re(t,r){let e=O(t);return r&&r.forEach((s,a)=>{e.has(a)||r.getAll(a).forEach(o=>{e.append(a,o)})}),e}const ne="6";try{window.__reactRouterVersion=ne}catch{}function ae(t,r){return Q({basename:r==null?void 0:r.basename,future:E({},r==null?void 0:r.future,{v7_prependBasename:!0}),history:W({window:r==null?void 0:r.window}),hydrationData:(r==null?void 0:r.hydrationData)||se(),routes:t,mapRouteProperties:X,unstable_dataStrategy:r==null?void 0:r.unstable_dataStrategy,unstable_patchRoutesOnNavigation:r==null?void 0:r.unstable_patchRoutesOnNavigation,window:r==null?void 0:r.window}).initialize()}function se(){var t;let r=(t=window)==null?void 0:t.__staticRouterHydrationData;return r&&r.errors&&(r=E({},r,{errors:ie(r.errors)})),r}function ie(t){if(!t)return null;let r=Object.entries(t),e={};for(let[s,a]of r)if(a&&a.__type==="RouteErrorResponse")e[s]=new $(a.status,a.statusText,a.data,a.internal===!0);else if(a&&a.__type==="Error"){if(a.__subType){let o=window[a.__subType];if(typeof o=="function")try{let u=new o(a.message);u.stack="",e[s]=u}catch{}}if(e[s]==null){let o=new Error(a.message);o.stack="",e[s]=o}}else e[s]=a;return e}const oe=n.createContext({isTransitioning:!1}),ue=n.createContext(new Map),le="startTransition",j=K[le],ce="flushSync",I=Z[ce];function fe(t){j?j(t):t()}function R(t){I?I(t):t()}class de{constructor(){this.status="pending",this.promise=new Promise((r,e)=>{this.resolve=s=>{this.status==="pending"&&(this.status="resolved",r(s))},this.reject=s=>{this.status==="pending"&&(this.status="rejected",e(s))}})}}function ve(t){let{fallbackElement:r,router:e,future:s}=t,[a,o]=n.useState(e.state),[u,f]=n.useState(),[d,v]=n.useState({isTransitioning:!1}),[l,P]=n.useState(),[w,y]=n.useState(),[S,C]=n.useState(),g=n.useRef(new Map),{v7_startTransition:F}=s||{},T=n.useCallback(i=>{F?fe(i):i()},[F]),A=n.useCallback((i,m)=>{let{deletedFetchers:c,unstable_flushSync:V,unstable_viewTransitionOpts:h}=m;c.forEach(p=>g.current.delete(p)),i.fetchers.forEach((p,k)=>{p.data!==void 0&&g.current.set(k,p.data)});let N=e.window==null||e.window.document==null||typeof e.window.document.startViewTransition!="function";if(!h||N){V?R(()=>o(i)):T(()=>o(i));return}if(V){R(()=>{w&&(l&&l.resolve(),w.skipTransition()),v({isTransitioning:!0,flushSync:!0,currentLocation:h.currentLocation,nextLocation:h.nextLocation})});let p=e.window.document.startViewTransition(()=>{R(()=>o(i))});p.finished.finally(()=>{R(()=>{P(void 0),y(void 0),f(void 0),v({isTransitioning:!1})})}),R(()=>y(p));return}w?(l&&l.resolve(),w.skipTransition(),C({state:i,currentLocation:h.currentLocation,nextLocation:h.nextLocation})):(f(i),v({isTransitioning:!0,flushSync:!1,currentLocation:h.currentLocation,nextLocation:h.nextLocation}))},[e.window,w,l,g,T]);n.useLayoutEffect(()=>e.subscribe(A),[e,A]),n.useEffect(()=>{d.isTransitioning&&!d.flushSync&&P(new de)},[d]),n.useEffect(()=>{if(l&&u&&e.window){let i=u,m=l.promise,c=e.window.document.startViewTransition(async()=>{T(()=>o(i)),await m});c.finished.finally(()=>{P(void 0),y(void 0),f(void 0),v({isTransitioning:!1})}),y(c)}},[T,u,l,e.window]),n.useEffect(()=>{l&&u&&a.location.key===u.location.key&&l.resolve()},[l,w,a.location,u]),n.useEffect(()=>{!d.isTransitioning&&S&&(f(S.state),v({isTransitioning:!0,flushSync:!1,currentLocation:S.currentLocation,nextLocation:S.nextLocation}),C(void 0))},[d.isTransitioning,S]),n.useEffect(()=>{},[]);let b=n.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:i=>e.navigate(i),push:(i,m,c)=>e.navigate(i,{state:m,preventScrollReset:c==null?void 0:c.preventScrollReset}),replace:(i,m,c)=>e.navigate(i,{replace:!0,state:m,preventScrollReset:c==null?void 0:c.preventScrollReset})}),[e]),L=e.basename||"/",M=n.useMemo(()=>({router:e,navigator:b,static:!1,basename:L}),[e,b,L]),z=n.useMemo(()=>({v7_relativeSplatPath:e.future.v7_relativeSplatPath}),[e.future.v7_relativeSplatPath]);return n.createElement(n.Fragment,null,n.createElement(B.Provider,{value:M},n.createElement(H.Provider,{value:a},n.createElement(ue.Provider,{value:g.current},n.createElement(oe.Provider,{value:d},n.createElement(Y,{basename:L,location:a.location,navigationType:a.historyAction,navigator:b,future:z},a.initialized||e.future.v7_partialHydration?n.createElement(me,{routes:e.routes,future:e.future,state:a}):r))))),null)}const me=n.memo(he);function he(t){let{routes:r,future:e,state:s}=t;return G(r,void 0,s,e)}var U;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmit="useSubmit",t.UseSubmitFetcher="useSubmitFetcher",t.UseFetcher="useFetcher",t.useViewTransitionState="useViewTransitionState"})(U||(U={}));var D;(function(t){t.UseFetcher="useFetcher",t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(D||(D={}));function _e(t){let r=n.useRef(O(t)),e=n.useRef(!1),s=q(),a=n.useMemo(()=>re(s.search,e.current?null:r.current),[s.search]),o=J(),u=n.useCallback((f,d)=>{const v=O(typeof f=="function"?f(a):f);e.current=!0,o("?"+v,d)},[o,a]);return[a,u]}async function pe(t){var s;return(await((s=window.electronAPI)==null?void 0:s.isPackaged())?te:ae)(t,{basename:ee.routerBasename})}const we=async()=>{const t=await pe([{path:"/",lazy:()=>x(()=>import("./root-D5vIE4mi.js"),__vite__mapDeps([0,1,2,3])),loader:()=>_.jsx(_.Fragment,{}),children:[{path:"d?/:driveId?/*?",lazy:()=>x(()=>import("./content-TdogUNEo.js"),__vite__mapDeps([4,1,2,3]))}]},{lazy:()=>x(()=>import("./root-D5vIE4mi.js"),__vite__mapDeps([0,1,2,3])),loader:()=>_.jsx(_.Fragment,{})}]);return()=>_.jsx(ve,{router:t})},Re=Object.freeze(Object.defineProperty({__proto__:null,default:we},Symbol.toStringTag,{value:"Module"}));export{Re as r,_e as u};
|
|
12
|
+
//# sourceMappingURL=router-BLZPRKeS.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"mappings":"","names":[],"ignoreList":[],"sources":[],"sourcesContent":[],"file":"assets/router-
|
|
1
|
+
{"version":3,"mappings":"","names":[],"ignoreList":[],"sources":[],"sourcesContent":[],"file":"assets/router-BLZPRKeS.js"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as O,m as N}from"./index-CnxM4IIa-
|
|
1
|
+
import{t as O,m as N}from"./index-CnxM4IIa-CoekJPsT.js";import"./main.9ezbfd1a.js";import"./editors-DVrDEp-F.js";import"./index-T6Et30Eh-B1ytNt1O.js";var M=Object.defineProperty,K=(e,t,i)=>t in e?M(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i,y=(e,t,i)=>K(e,typeof t!="symbol"?t+"":t,i);/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
4
4
|
* Released under the MIT license
|
|
@@ -14,4 +14,4 @@ ${I(i)}`;return t}};function I(e){let t=`*@${e.name}*`;if(e.name==="param"&&e.te
|
|
|
14
14
|
`+d:"")}]}}},G=class extends _{async provideDocumentHighlights(e,t,i){const o=e.uri,r=e.getOffsetAt(t),u=await this._worker(o);if(e.isDisposed())return;const l=await u.getDocumentHighlights(o.toString(),r,[o.toString()]);if(!(!l||e.isDisposed()))return l.flatMap(s=>s.highlightSpans.map(d=>({range:this._textSpanToRange(e,d.textSpan),kind:d.kind==="writtenReference"?a.languages.DocumentHighlightKind.Write:a.languages.DocumentHighlightKind.Text})))}},J=class extends _{constructor(e,t){super(t),this._libFiles=e}async provideDefinition(e,t,i){const o=e.uri,r=e.getOffsetAt(t),u=await this._worker(o);if(e.isDisposed())return;const l=await u.getDefinitionAtPosition(o.toString(),r);if(!l||e.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(l.map(d=>a.Uri.parse(d.fileName))),e.isDisposed()))return;const s=[];for(let d of l){const g=this._libFiles.getOrCreateModel(d.fileName);g&&s.push({uri:g.uri,range:this._textSpanToRange(g,d.textSpan)})}return s}},Q=class extends _{constructor(e,t){super(t),this._libFiles=e}async provideReferences(e,t,i,o){const r=e.uri,u=e.getOffsetAt(t),l=await this._worker(r);if(e.isDisposed())return;const s=await l.getReferencesAtPosition(r.toString(),u);if(!s||e.isDisposed()||(await this._libFiles.fetchLibFilesIfNecessary(s.map(g=>a.Uri.parse(g.fileName))),e.isDisposed()))return;const d=[];for(let g of s){const p=this._libFiles.getOrCreateModel(g.fileName);p&&d.push({uri:p.uri,range:this._textSpanToRange(p,g.textSpan)})}return d}},q=class extends _{async provideDocumentSymbols(e,t){const i=e.uri,o=await this._worker(i);if(e.isDisposed())return;const r=await o.getNavigationTree(i.toString());if(!r||e.isDisposed())return;const u=(l,s)=>{var d;return{name:l.text,detail:"",kind:b[l.kind]||a.languages.SymbolKind.Variable,range:this._textSpanToRange(e,l.spans[0]),selectionRange:this._textSpanToRange(e,l.spans[0]),tags:[],children:(d=l.childItems)==null?void 0:d.map(g=>u(g,l.text)),containerName:s}};return r.childItems?r.childItems.map(l=>u(l)):[]}},c=class{};m(c,"unknown","");m(c,"keyword","keyword");m(c,"script","script");m(c,"module","module");m(c,"class","class");m(c,"interface","interface");m(c,"type","type");m(c,"enum","enum");m(c,"variable","var");m(c,"localVariable","local var");m(c,"function","function");m(c,"localFunction","local function");m(c,"memberFunction","method");m(c,"memberGetAccessor","getter");m(c,"memberSetAccessor","setter");m(c,"memberVariable","property");m(c,"constructorImplementation","constructor");m(c,"callSignature","call");m(c,"indexSignature","index");m(c,"constructSignature","construct");m(c,"parameter","parameter");m(c,"typeParameter","type parameter");m(c,"primitiveType","primitive type");m(c,"label","label");m(c,"alias","alias");m(c,"const","const");m(c,"let","let");m(c,"warning","warning");var b=Object.create(null);b[c.module]=a.languages.SymbolKind.Module;b[c.class]=a.languages.SymbolKind.Class;b[c.enum]=a.languages.SymbolKind.Enum;b[c.interface]=a.languages.SymbolKind.Interface;b[c.memberFunction]=a.languages.SymbolKind.Method;b[c.memberVariable]=a.languages.SymbolKind.Property;b[c.memberGetAccessor]=a.languages.SymbolKind.Property;b[c.memberSetAccessor]=a.languages.SymbolKind.Property;b[c.variable]=a.languages.SymbolKind.Variable;b[c.const]=a.languages.SymbolKind.Variable;b[c.localVariable]=a.languages.SymbolKind.Variable;b[c.variable]=a.languages.SymbolKind.Variable;b[c.function]=a.languages.SymbolKind.Function;b[c.localFunction]=a.languages.SymbolKind.Function;var S=class extends _{static _convertOptions(e){return{ConvertTabsToSpaces:e.insertSpaces,TabSize:e.tabSize,IndentSize:e.tabSize,IndentStyle:2,NewLineCharacter:`
|
|
15
15
|
`,InsertSpaceAfterCommaDelimiter:!0,InsertSpaceAfterSemicolonInForStatements:!0,InsertSpaceBeforeAndAfterBinaryOperators:!0,InsertSpaceAfterKeywordsInControlFlowStatements:!0,InsertSpaceAfterFunctionKeywordForAnonymousFunctions:!0,InsertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,InsertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,InsertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,PlaceOpenBraceOnNewLineForControlBlocks:!1,PlaceOpenBraceOnNewLineForFunctions:!1}}_convertTextChanges(e,t){return{text:t.newText,range:this._textSpanToRange(e,t.span)}}},Z=class extends S{constructor(){super(...arguments),y(this,"canFormatMultipleRanges",!1)}async provideDocumentRangeFormattingEdits(e,t,i,o){const r=e.uri,u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),l=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),s=await this._worker(r);if(e.isDisposed())return;const d=await s.getFormattingEditsForRange(r.toString(),u,l,S._convertOptions(i));if(!(!d||e.isDisposed()))return d.map(g=>this._convertTextChanges(e,g))}},X=class extends S{get autoFormatTriggerCharacters(){return[";","}",`
|
|
16
16
|
`]}async provideOnTypeFormattingEdits(e,t,i,o,r){const u=e.uri,l=e.getOffsetAt(t),s=await this._worker(u);if(e.isDisposed())return;const d=await s.getFormattingEditsAfterKeystroke(u.toString(),l,i,S._convertOptions(o));if(!(!d||e.isDisposed()))return d.map(g=>this._convertTextChanges(e,g))}},Y=class extends S{async provideCodeActions(e,t,i,o){const r=e.uri,u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),l=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),s=S._convertOptions(e.getOptions()),d=i.markers.filter(h=>h.code).map(h=>h.code).map(Number),g=await this._worker(r);if(e.isDisposed())return;const p=await g.getCodeFixesAtPosition(r.toString(),u,l,d,s);return!p||e.isDisposed()?{actions:[],dispose:()=>{}}:{actions:p.filter(h=>h.changes.filter(f=>f.isNewFile).length===0).map(h=>this._tsCodeFixActionToMonacoCodeAction(e,i,h)),dispose:()=>{}}}_tsCodeFixActionToMonacoCodeAction(e,t,i){const o=[];for(const r of i.changes)for(const u of r.textChanges)o.push({resource:e.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(e,u.span),text:u.newText}});return{title:i.description,edit:{edits:o},diagnostics:t.markers,kind:"quickfix"}}},ee=class extends _{constructor(e,t){super(t),this._libFiles=e}async provideRenameEdits(e,t,i,o){const r=e.uri,u=r.toString(),l=e.getOffsetAt(t),s=await this._worker(r);if(e.isDisposed())return;const d=await s.getRenameInfo(u,l,{allowRenameOfImportPath:!1});if(d.canRename===!1)return{edits:[],rejectReason:d.localizedErrorMessage};if(d.fileToRename!==void 0)throw new Error("Renaming files is not supported.");const g=await s.findRenameLocations(u,l,!1,!1,!1);if(!g||e.isDisposed())return;const p=[];for(const h of g){const f=this._libFiles.getOrCreateModel(h.fileName);if(f)p.push({resource:f.uri,versionId:void 0,textEdit:{range:this._textSpanToRange(f,h.textSpan),text:i}});else throw new Error(`Unknown file ${h.fileName}.`)}return{edits:p}}},te=class extends _{async provideInlayHints(e,t,i){const o=e.uri,r=o.toString(),u=e.getOffsetAt({lineNumber:t.startLineNumber,column:t.startColumn}),l=e.getOffsetAt({lineNumber:t.endLineNumber,column:t.endColumn}),s=await this._worker(o);return e.isDisposed()?null:{hints:(await s.provideInlayHints(r,u,l)).map(d=>({...d,label:d.text,position:e.getPositionAt(d.position),kind:this._convertHintKind(d.kind)})),dispose:()=>{}}}_convertHintKind(e){switch(e){case"Parameter":return a.languages.InlayHintKind.Parameter;case"Type":return a.languages.InlayHintKind.Type;default:return a.languages.InlayHintKind.Type}}},D,F;function oe(e){F=L(e,"typescript")}function le(e){D=L(e,"javascript")}function ce(){return new Promise((e,t)=>{if(!D)return t("JavaScript not registered!");e(D)})}function de(){return new Promise((e,t)=>{if(!F)return t("TypeScript not registered!");e(F)})}function L(e,t){const i=[],o=new B(t,e),r=(...s)=>o.getLanguageServiceWorker(...s),u=new U(r);function l(){const{modeConfiguration:s}=e;ie(i),s.completionItems&&i.push(a.languages.registerCompletionItemProvider(t,new k(r))),s.signatureHelp&&i.push(a.languages.registerSignatureHelpProvider(t,new T(r))),s.hovers&&i.push(a.languages.registerHoverProvider(t,new z(r))),s.documentHighlights&&i.push(a.languages.registerDocumentHighlightProvider(t,new G(r))),s.definitions&&i.push(a.languages.registerDefinitionProvider(t,new J(u,r))),s.references&&i.push(a.languages.registerReferenceProvider(t,new Q(u,r))),s.documentSymbols&&i.push(a.languages.registerDocumentSymbolProvider(t,new q(r))),s.rename&&i.push(a.languages.registerRenameProvider(t,new ee(u,r))),s.documentRangeFormattingEdits&&i.push(a.languages.registerDocumentRangeFormattingEditProvider(t,new Z(r))),s.onTypeFormattingEdits&&i.push(a.languages.registerOnTypeFormattingEditProvider(t,new X(r))),s.codeActions&&i.push(a.languages.registerCodeActionProvider(t,new Y(r))),s.inlayHints&&i.push(a.languages.registerInlayHintsProvider(t,new te(r))),s.diagnostics&&i.push(new $(u,e,t,r))}return l(),r}function ie(e){for(;e.length;)e.pop().dispose()}export{_ as Adapter,Y as CodeActionAdaptor,J as DefinitionAdapter,$ as DiagnosticsAdapter,G as DocumentHighlightAdapter,Z as FormatAdapter,S as FormatHelper,X as FormatOnTypeAdapter,te as InlayHintsAdapter,c as Kind,U as LibFiles,q as OutlineAdapter,z as QuickInfoAdapter,Q as ReferenceAdapter,ee as RenameAdapter,T as SignatureHelpAdapter,k as SuggestAdapter,B as WorkerManager,C as flattenDiagnosticMessageText,ce as getJavaScriptWorker,de as getTypeScriptWorker,le as setupJavaScript,oe as setupTypeScript};
|
|
17
|
-
//# sourceMappingURL=tsMode-Dj44YKby-
|
|
17
|
+
//# sourceMappingURL=tsMode-Dj44YKby-BecbNaDB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tsMode-Dj44YKby-BecbNaDB.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{m as s}from"./index-CnxM4IIa-
|
|
1
|
+
import{m as s}from"./index-CnxM4IIa-CoekJPsT.js";import"./main.9ezbfd1a.js";import"./editors-DVrDEp-F.js";import"./index-T6Et30Eh-B1ytNt1O.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/var c=Object.defineProperty,a=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,g=Object.prototype.hasOwnProperty,l=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of p(e))!g.call(t,n)&&n!==r&&c(t,n,{get:()=>e[n],enumerable:!(i=a(e,n))||i.enumerable});return t},d=(t,e,r)=>(l(t,e,"default"),r),o={};d(o,s);var f={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],onEnterRules:[{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,afterText:/^\s*\*\/$/,action:{indentAction:o.languages.IndentAction.IndentOutdent,appendText:" * "}},{beforeText:/^\s*\/\*\*(?!\/)([^\*]|\*(?!\/))*$/,action:{indentAction:o.languages.IndentAction.None,appendText:" * "}},{beforeText:/^(\t|(\ \ ))*\ \*(\ ([^\*]|\*(?!\/))*)?$/,action:{indentAction:o.languages.IndentAction.None,appendText:"* "}},{beforeText:/^(\t|(\ \ ))*\ \*\/\s*$/,action:{indentAction:o.languages.IndentAction.None,removeText:1}}],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]},{open:"`",close:"`",notIn:["string","comment"]},{open:"/**",close:" */",notIn:["string"]}],folding:{markers:{start:new RegExp("^\\s*//\\s*#?region\\b"),end:new RegExp("^\\s*//\\s*#?endregion\\b")}}},k={defaultToken:"invalid",tokenPostfix:".ts",keywords:["abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","constructor","debugger","declare","default","delete","do","else","enum","export","extends","false","finally","for","from","function","get","if","implements","import","in","infer","instanceof","interface","is","keyof","let","module","namespace","never","new","null","number","object","out","package","private","protected","public","override","readonly","require","global","return","satisfies","set","static","string","super","switch","symbol","this","throw","true","try","type","typeof","undefined","unique","unknown","var","void","while","with","yield","async","await","of"],operators:["<=",">=","==","!=","===","!==","=>","+","-","**","*","/","%","++","--","<<","</",">>",">>>","&","|","^","!","~","&&","||","??","?",":","=","+=","-=","*=","**=","/=","%=","<<=",">>=",">>>=","&=","|=","^=","@"],symbols:/[=><!~?:&|+\-*\/\^%]+/,escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,digits:/\d+(_+\d+)*/,octaldigits:/[0-7]+(_+[0-7]+)*/,binarydigits:/[0-1]+(_+[0-1]+)*/,hexdigits:/[[0-9a-fA-F]+(_+[0-9a-fA-F]+)*/,regexpctl:/[(){}\[\]\$\^|\-*+?\.]/,regexpesc:/\\(?:[bBdDfnrstvwWn0\\\/]|@regexpctl|c[A-Z]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4})/,tokenizer:{root:[[/[{}]/,"delimiter.bracket"],{include:"common"}],common:[[/#?[a-z_$][\w$]*/,{cases:{"@keywords":"keyword","@default":"identifier"}}],[/[A-Z][\w\$]*/,"type.identifier"],{include:"@whitespace"},[/\/(?=([^\\\/]|\\.)+\/([dgimsuy]*)(\s*)(\.|;|,|\)|\]|\}|$))/,{token:"regexp",bracket:"@open",next:"@regexp"}],[/[()\[\]]/,"@brackets"],[/[<>](?!@symbols)/,"@brackets"],[/!(?=([^=]|$))/,"delimiter"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/(@digits)[eE]([\-+]?(@digits))?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?/,"number.float"],[/0[xX](@hexdigits)n?/,"number.hex"],[/0[oO]?(@octaldigits)n?/,"number.octal"],[/0[bB](@binarydigits)n?/,"number.binary"],[/(@digits)n?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string","@string_double"],[/'/,"string","@string_single"],[/`/,"string","@string_backtick"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@jsdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],jsdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],regexp:[[/(\{)(\d+(?:,\d*)?)(\})/,["regexp.escape.control","regexp.escape.control","regexp.escape.control"]],[/(\[)(\^?)(?=(?:[^\]\\\/]|\\.)+)/,["regexp.escape.control",{token:"regexp.escape.control",next:"@regexrange"}]],[/(\()(\?:|\?=|\?!)/,["regexp.escape.control","regexp.escape.control"]],[/[()]/,"regexp.escape.control"],[/@regexpctl/,"regexp.escape.control"],[/[^\\\/]/,"regexp"],[/@regexpesc/,"regexp.escape"],[/\\\./,"regexp.invalid"],[/(\/)([dgimsuy]*)/,[{token:"regexp",bracket:"@close",next:"@pop"},"keyword.other"]]],regexrange:[[/-/,"regexp.escape.control"],[/\^/,"regexp.invalid"],[/@regexpesc/,"regexp.escape"],[/[^\]]/,"regexp"],[/\]/,{token:"regexp.escape.control",next:"@pop",bracket:"@close"}]],string_double:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],string_single:[[/[^\\']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/'/,"string","@pop"]],string_backtick:[[/\$\{/,{token:"delimiter.bracket",next:"@bracketCounting"}],[/[^\\`$]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/`/,"string","@pop"]],bracketCounting:[[/\{/,"delimiter.bracket","@bracketCounting"],[/\}/,"delimiter.bracket","@pop"],{include:"common"}]}};export{f as conf,k as language};
|
|
7
|
-
//# sourceMappingURL=typescript-BGB8OuQj-
|
|
7
|
+
//# sourceMappingURL=typescript-BGB8OuQj-q21L76s7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typescript-BGB8OuQj-q21L76s7.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as rE,P as lut,Z as sPe,O as _ut}from"./main.
|
|
1
|
+
import{u as rE,P as lut,Z as sPe,O as _ut}from"./main.9ezbfd1a.js";import{r as cPe}from"./_commonjs-dynamic-modules-BpilXLfW-DfYEAvWy.js";import{k as uut}from"./index-6e_WqBNj-CJvJXHul.js";var iE={};function dut(K7,aE){for(var JT=0;JT<aE.length;JT++){const x4=aE[JT];if(typeof x4!="string"&&!Array.isArray(x4)){for(const Nc in x4)if(Nc!=="default"&&!(Nc in K7)){const sE=Object.getOwnPropertyDescriptor(x4,Nc);sE&&Object.defineProperty(K7,Nc,sE.get?sE:{enumerable:!0,get:()=>x4[Nc]})}}}return Object.freeze(Object.defineProperty(K7,Symbol.toStringTag,{value:"Module"}))}var lPe={exports:{}};/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
4
4
|
this file except in compliance with the License. You may obtain a copy of the
|
|
@@ -426,4 +426,4 @@ Project '${u.projectName}' (${K5[u.projectKind]}) ${s}
|
|
|
426
426
|
`&&(!u||u.length===0||dXe(u,s))){const{lineText:_,absolutePosition:p}=o.textStorage.getAbsolutePositionAndLineText(t.line);if(_&&_.search("\\S")<0){const g=i.getIndentationAtPosition(r,s,c);let h=0,x,S;for(x=0,S=_.length;x<S;x++)if(_.charAt(x)===" ")h++;else if(_.charAt(x)===" ")h+=c.tabSize;else break;if(g!==h){const T=p+x;u.push({span:bc(p,T),newText:Gc.getIndentationString(g,c)})}}}if(u)return u.map(_=>({start:o.positionToLineOffset(_.span.start),end:o.positionToLineOffset(Qs(_.span)),newText:_.newText?_.newText:""}))}getCompletions(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,s),u=o.getLanguageService().getCompletionsAtPosition(i,c,{...nue(this.getPreferences(i)),triggerCharacter:t.triggerCharacter,triggerKind:t.triggerKind,includeExternalModuleExports:t.includeExternalModuleExports,includeInsertTextCompletions:t.includeInsertTextCompletions},o.projectService.getFormatCodeOptions(i));if(u===void 0)return;if(r==="completions-full")return u;const _=t.prefix||"",p=Ni(u.entries,g=>{if(u.isMemberCompletion||zi(g.name.toLowerCase(),_.toLowerCase())){const h=g.replacementSpan?km(g.replacementSpan,s):void 0;return{...g,replacementSpan:h,hasAction:g.hasAction||void 0,symbol:void 0}}});return r==="completions"?(u.metadata&&(p.metadata=u.metadata),p):{...u,optionalReplacementSpan:u.optionalReplacementSpan&&km(u.optionalReplacementSpan,s),entries:p}}getCompletionEntryDetails(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,s),u=o.projectService.getFormatCodeOptions(i),_=!!this.getPreferences(i).displayPartsForJSDoc,p=Ni(t.entryNames,g=>{const{name:h,source:x,data:S}=typeof g=="string"?{name:g,source:void 0,data:void 0}:g;return o.getLanguageService().getCompletionEntryDetails(i,c,h,u,x,this.getPreferences(i),S?zo(S,NXe):void 0)});return r?_?p:p.map(g=>({...g,tags:this.mapJSDocTagInfo(g.tags,o,!1)})):p.map(g=>({...g,codeActions:_n(g.codeActions,h=>this.mapCodeAction(h)),documentation:this.mapDisplayParts(g.documentation,o),tags:this.mapJSDocTagInfo(g.tags,o,_)}))}getCompileOnSaveAffectedFileList(t){const r=this.getProjects(t,!0,!0),i=this.projectService.getScriptInfo(t.file);return i?pXe(i,o=>this.projectService.getScriptInfoForPath(o),r,(o,s)=>{if(!o.compileOnSaveEnabled||!o.languageServiceEnabled||o.isOrphan())return;const c=o.getCompilationSettings();if(!(c.noEmit||wl(s.fileName)&&!uXe(c)))return{projectFileName:o.getProjectName(),fileNames:o.getCompileOnSaveAffectedFileList(s),projectUsesOutFile:!!c.outFile}}):vl}emitFile(t){const{file:r,project:i}=this.getFileAndProject(t);if(i||jh.ThrowNoProject(),!i.languageServiceEnabled)return t.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const o=i.getScriptInfo(r),{emitSkipped:s,diagnostics:c}=i.emitFile(o,(u,_,p)=>this.host.writeFile(u,_,p));return t.richResponse?{emitSkipped:s,diagnostics:t.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(c):c.map(u=>Y5(u,!0))}:!s}getSignatureHelpItems(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,s),u=o.getLanguageService().getSignatureHelpItems(i,c,t),_=!!this.getPreferences(i).displayPartsForJSDoc;if(u&&r){const p=u.applicableSpan;return{...u,applicableSpan:{start:s.positionToLineOffset(p.start),end:s.positionToLineOffset(p.start+p.length)},items:this.mapSignatureHelpItems(u.items,o,_)}}else return _||!u?u:{...u,items:u.items.map(p=>({...p,tags:this.mapJSDocTagInfo(p.tags,o,!1)}))}}toPendingErrorCheck(t){const r=Ls(t),i=this.projectService.tryGetDefaultProjectForFile(r);return i&&{fileName:r,project:i}}getDiagnostics(t,r,i){this.suppressDiagnosticEvents||i.length>0&&this.updateErrorCheck(t,i,r)}change(t){const r=this.projectService.getScriptInfo(t.file);w.assert(!!r),r.textStorage.switchToScriptVersionCache();const i=r.lineOffsetToPosition(t.line,t.offset),o=r.lineOffsetToPosition(t.endLine,t.endOffset);i>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(r,f$({span:{start:i,length:o-i},newText:t.insertString})))}reload(t){const r=Ls(t.file),i=t.tmpfile===void 0?void 0:Ls(t.tmpfile),o=this.projectService.getScriptInfoForNormalizedPath(r);o&&(this.changeSeq++,o.reloadFromFile(i))}saveToTmp(t,r){const i=this.projectService.getScriptInfo(t);i&&i.saveTo(r)}closeClientFile(t){if(!t)return;const r=Oo(t);this.projectService.closeClientFile(r)}mapLocationNavigationBarItems(t,r){return _n(t,i=>({text:i.text,kind:i.kind,kindModifiers:i.kindModifiers,spans:i.spans.map(o=>km(o,r)),childItems:this.mapLocationNavigationBarItems(i.childItems,r),indent:i.indent}))}getNavigationBarItems(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationBarItems(i);return s?r?this.mapLocationNavigationBarItems(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}toLocationNavigationTree(t,r){return{text:t.text,kind:t.kind,kindModifiers:t.kindModifiers,spans:t.spans.map(i=>km(i,r)),nameSpan:t.nameSpan&&km(t.nameSpan,r),childItems:_n(t.childItems,i=>this.toLocationNavigationTree(i,r))}}getNavigationTree(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=o.getNavigationTree(i);return s?r?this.toLocationNavigationTree(s,this.projectService.getScriptInfoForNormalizedPath(i)):s:void 0}getNavigateToItems(t,r){const i=this.getFullNavigateToItems(t);return r?ra(i,({project:o,navigateToItems:s})=>s.map(c=>{const u=o.getScriptInfo(c.fileName),_={name:c.name,kind:c.kind,kindModifiers:c.kindModifiers,isCaseSensitive:c.isCaseSensitive,matchKind:c.matchKind,file:c.fileName,start:u.positionToLineOffset(c.textSpan.start),end:u.positionToLineOffset(Qs(c.textSpan))};return c.kindModifiers&&c.kindModifiers!==""&&(_.kindModifiers=c.kindModifiers),c.containerName&&c.containerName.length>0&&(_.containerName=c.containerName),c.containerKind&&c.containerKind.length>0&&(_.containerKind=c.containerKind),_})):ra(i,({navigateToItems:o})=>o)}getFullNavigateToItems(t){const{currentFileOnly:r,searchValue:i,maxResultCount:o,projectFileName:s}=t;if(r){w.assertIsDefined(t.file);const{file:x,project:S}=this.getFileAndProject(t);return[{project:S,navigateToItems:S.getLanguageService().getNavigateToItems(i,o,x)}]}const c=this.getHostPreferences(),u=[],_=new Map;if(!t.file&&!s)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(x=>p(x));else{const x=this.getProjects(t);yue(x,void 0,S=>p(S))}return u;function p(x){const S=x.getLanguageService().getNavigateToItems(i,o,void 0,x.isNonTsProject(),c.excludeLibrarySymbolsInNavTo),T=Lr(S,D=>g(D)&&!nG(l7(D),x));T.length&&u.push({project:x,navigateToItems:T})}function g(x){const S=x.name;if(!_.has(S))return _.set(S,[x]),!0;const T=_.get(S);for(const D of T)if(h(D,x))return!1;return T.push(x),!0}function h(x,S){return x===S?!0:!x||!S?!1:x.containerKind===S.containerKind&&x.containerName===S.containerName&&x.fileName===S.fileName&&x.isCaseSensitive===S.isCaseSensitive&&x.kind===S.kind&&x.kindModifiers===S.kindModifiers&&x.matchKind===S.matchKind&&x.name===S.name&&x.textSpan.start===S.textSpan.start&&x.textSpan.length===S.textSpan.length}}getSupportedCodeFixes(t){if(!t)return SV();if(t.file){const{file:i,project:o}=this.getFileAndProject(t);return o.getLanguageService().getSupportedCodeFixes(i)}const r=this.getProject(t.projectFileName);return r||jh.ThrowNoProject(),r.getLanguageService().getSupportedCodeFixes()}isLocation(t){return t.line!==void 0}extractPositionOrRange(t,r){let i,o;return this.isLocation(t)?i=s(t):o=this.getRange(t,r),w.checkDefined(i===void 0?o:i);function s(c){return c.position!==void 0?c.position:r.lineOffsetToPosition(c.line,c.offset)}}getRange(t,r){const{startPosition:i,endPosition:o}=this.getStartAndEndPosition(t,r);return{pos:i,end:o}}getApplicableRefactors(t){const{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getApplicableRefactors(r,this.extractPositionOrRange(t,o),this.getPreferences(r),t.triggerReason,t.kind,t.includeInteractiveActions).map(s=>({...s,actions:s.actions.map(c=>({...c,range:c.range?{start:I3({line:c.range.start.line,character:c.range.start.offset}),end:I3({line:c.range.end.line,character:c.range.end.offset})}:void 0}))}))}getEditsForRefactor(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),c=o.getLanguageService().getEditsForRefactor(i,this.getFormatOptions(i),this.extractPositionOrRange(t,s),t.refactor,t.action,this.getPreferences(i),t.interactiveRefactorArguments);if(c===void 0)return{edits:[]};if(r){const{renameFilename:u,renameLocation:_,edits:p}=c;let g;if(u!==void 0&&_!==void 0){const h=o.getScriptInfoForNormalizedPath(Ls(u));g=bue(Vk(h.getSnapshot()),u,_,p)}return{renameLocation:g,renameFilename:u,edits:this.mapTextChangesToCodeEdits(p),notApplicableReason:c.notApplicableReason}}return c}getMoveToRefactoringFileSuggestions(t){const{file:r,project:i}=this.getFileAndProject(t),o=i.getScriptInfoForNormalizedPath(r);return i.getLanguageService().getMoveToRefactoringFileSuggestions(r,this.extractPositionOrRange(t,o),this.getPreferences(r))}getPasteEdits(t){const{file:r,project:i}=this.getFileAndProject(t),o=t.copiedFrom?{file:t.copiedFrom.file,range:t.copiedFrom.spans.map(c=>this.getRange({file:t.copiedFrom.file,startLine:c.start.line,startOffset:c.start.offset,endLine:c.end.line,endOffset:c.end.offset},i.getScriptInfoForNormalizedPath(Ls(t.copiedFrom.file))))}:void 0,s=i.getLanguageService().getPasteEdits({targetFile:r,pastedText:t.pastedText,pasteLocations:t.pasteLocations.map(c=>this.getRange({file:r,startLine:c.start.line,startOffset:c.start.offset,endLine:c.end.line,endOffset:c.end.offset},i.getScriptInfoForNormalizedPath(r))),copiedFrom:o,preferences:this.getPreferences(r)},this.getFormatOptions(r));return s&&this.mapPasteEditsAction(s)}organizeImports(t,r){w.assert(t.scope.type==="file");const{file:i,project:o}=this.getFileAndProject(t.scope.args),s=o.getLanguageService().organizeImports({fileName:i,mode:t.mode??(t.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(i),this.getPreferences(i));return r?this.mapTextChangesToCodeEdits(s):s}getEditsForFileRename(t,r){const i=Ls(t.oldFilePath),o=Ls(t.newFilePath),s=this.getHostFormatOptions(),c=this.getHostPreferences(),u=new Set,_=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(p=>{const g=p.getLanguageService().getEditsForFileRename(i,o,s,c),h=[];for(const x of g)u.has(x.fileName)||(_.push(x),h.push(x.fileName));for(const x of h)u.add(x)}),r?_.map(p=>this.mapTextChangeToCodeEdit(p)):_}getCodeFixes(t,r){const{file:i,project:o}=this.getFileAndProject(t),s=o.getScriptInfoForNormalizedPath(i),{startPosition:c,endPosition:u}=this.getStartAndEndPosition(t,s);let _;try{_=o.getLanguageService().getCodeFixesAtPosition(i,c,u,t.errorCodes,this.getFormatOptions(i),this.getPreferences(i))}catch(p){const g=o.getLanguageService(),h=[...g.getSyntacticDiagnostics(i),...g.getSemanticDiagnostics(i),...g.getSuggestionDiagnostics(i)].map(S=>gw(c,u-c,S.start,S.length)&&S.code),x=t.errorCodes.find(S=>!h.includes(S));throw x!==void 0&&(p.message=`BADCLIENT: Bad error code, ${x} not found in range ${c}..${u} (found: ${h.join(", ")}); could have caused this error:
|
|
427
427
|
${p.message}`),p}return r?_.map(p=>this.mapCodeFixAction(p)):_}getCombinedCodeFix({scope:t,fixId:r},i){w.assert(t.type==="file");const{file:o,project:s}=this.getFileAndProject(t.args),c=s.getLanguageService().getCombinedCodeFix({type:"file",fileName:o},r,this.getFormatOptions(o),this.getPreferences(o));return i?{changes:this.mapTextChangesToCodeEdits(c.changes),commands:c.commands}:c}applyCodeActionCommand(t){const r=t.command;for(const i of NS(r)){const{file:o,project:s}=this.getFileAndProject(i);s.getLanguageService().applyCodeActionCommand(i,this.getFormatOptions(o)).then(c=>{},c=>{})}return{}}getStartAndEndPosition(t,r){let i,o;return t.startPosition!==void 0?i=t.startPosition:(i=r.lineOffsetToPosition(t.startLine,t.startOffset),t.startPosition=i),t.endPosition!==void 0?o=t.endPosition:(o=r.lineOffsetToPosition(t.endLine,t.endOffset),t.endPosition=o),{startPosition:i,endPosition:o}}mapCodeAction({description:t,changes:r,commands:i}){return{description:t,changes:this.mapTextChangesToCodeEdits(r),commands:i}}mapCodeFixAction({fixName:t,description:r,changes:i,commands:o,fixId:s,fixAllDescription:c}){return{fixName:t,description:r,changes:this.mapTextChangesToCodeEdits(i),commands:o,fixId:s,fixAllDescription:c}}mapPasteEditsAction({edits:t,fixId:r}){return{edits:this.mapTextChangesToCodeEdits(t),fixId:r}}mapTextChangesToCodeEdits(t){return t.map(r=>this.mapTextChangeToCodeEdit(r))}mapTextChangeToCodeEdit(t){const r=this.projectService.getScriptInfoOrConfig(t.fileName);return!!t.isNewFile==!!r&&(r||this.projectService.logErrorForScriptInfoNotFound(t.fileName),w.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!t.isNewFile,hasScriptInfo:!!r}))),r?{fileName:t.fileName,textChanges:t.textChanges.map(i=>SXe(i,r))}:CXe(t)}convertTextChangeToCodeEdit(t,r){return{start:r.positionToLineOffset(t.span.start),end:r.positionToLineOffset(t.span.start+t.span.length),newText:t.newText?t.newText:""}}getBraceMatching(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getPosition(t,s),u=o.getBraceMatchingAtPosition(i,c);return u?r?u.map(_=>km(_,s)):u:void 0}getDiagnosticsForProject(t,r,i){if(this.suppressDiagnosticEvents)return;const{fileNames:o,languageServiceDisabled:s}=this.getProjectInfoWorker(i,void 0,!0,!0);if(s)return;const c=o.filter(T=>!T.includes("lib.d.ts"));if(c.length===0)return;const u=[],_=[],p=[],g=[],h=Ls(i),x=this.projectService.ensureDefaultProjectForFile(h);for(const T of c)this.getCanonicalFileName(T)===this.getCanonicalFileName(i)?u.push(T):this.projectService.getScriptInfo(T).isScriptOpen()?_.push(T):wl(T)?g.push(T):p.push(T);const S=[...u,..._,...p,...g].map(T=>({fileName:T,project:x}));this.updateErrorCheck(t,S,r,!1)}configurePlugin(t){this.projectService.configurePlugin(t)}getSmartSelectionRange(t,r){const{locations:i}=t,{file:o,languageService:s}=this.getFileAndLanguageServiceForSyntacticOperation(t),c=w.checkDefined(this.projectService.getScriptInfo(o));return _n(i,u=>{const _=this.getPosition(u,c),p=s.getSmartSelectionRange(o,_);return r?this.mapSelectionRange(p,c):p})}toggleLineComment(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfo(i),c=this.getRange(t,s),u=o.toggleLineComment(i,c);if(r){const _=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(p=>this.convertTextChangeToCodeEdit(p,_))}return u}toggleMultilineComment(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,s),u=o.toggleMultilineComment(i,c);if(r){const _=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(p=>this.convertTextChangeToCodeEdit(p,_))}return u}commentSelection(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,s),u=o.commentSelection(i,c);if(r){const _=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(p=>this.convertTextChangeToCodeEdit(p,_))}return u}uncommentSelection(t,r){const{file:i,languageService:o}=this.getFileAndLanguageServiceForSyntacticOperation(t),s=this.projectService.getScriptInfoForNormalizedPath(i),c=this.getRange(t,s),u=o.uncommentSelection(i,c);if(r){const _=this.projectService.getScriptInfoForNormalizedPath(i);return u.map(p=>this.convertTextChangeToCodeEdit(p,_))}return u}mapSelectionRange(t,r){const i={textSpan:km(t.textSpan,r)};return t.parent&&(i.parent=this.mapSelectionRange(t.parent,r)),i}getScriptInfoFromProjectService(t){const r=Ls(t);return this.projectService.getScriptInfoForNormalizedPath(r)||(this.projectService.logErrorForScriptInfoNotFound(r),jh.ThrowNoProject())}toProtocolCallHierarchyItem(t){const r=this.getScriptInfoFromProjectService(t.file);return{name:t.name,kind:t.kind,kindModifiers:t.kindModifiers,file:t.file,containerName:t.containerName,span:km(t.span,r),selectionSpan:km(t.selectionSpan,r)}}toProtocolCallHierarchyIncomingCall(t){const r=this.getScriptInfoFromProjectService(t.from.file);return{from:this.toProtocolCallHierarchyItem(t.from),fromSpans:t.fromSpans.map(i=>km(i,r))}}toProtocolCallHierarchyOutgoingCall(t,r){return{to:this.toProtocolCallHierarchyItem(t.to),fromSpans:t.fromSpans.map(i=>km(i,r))}}prepareCallHierarchy(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.projectService.getScriptInfoForNormalizedPath(r);if(o){const s=this.getPosition(t,o),c=i.getLanguageService().prepareCallHierarchy(r,s);return c&&IW(c,u=>this.toProtocolCallHierarchyItem(u))}}provideCallHierarchyIncomingCalls(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyIncomingCalls(r,this.getPosition(t,o)).map(s=>this.toProtocolCallHierarchyIncomingCall(s))}provideCallHierarchyOutgoingCalls(t){const{file:r,project:i}=this.getFileAndProject(t),o=this.getScriptInfoFromProjectService(r);return i.getLanguageService().provideCallHierarchyOutgoingCalls(r,this.getPosition(t,o)).map(s=>this.toProtocolCallHierarchyOutgoingCall(s,o))}getCanonicalFileName(t){const r=this.host.useCaseSensitiveFileNames?t:p0(t);return Oo(r)}exit(){}notRequired(t){return t&&this.doOutput(void 0,t.command,t.seq,!0,this.performanceData),{responseRequired:!1,performanceData:this.performanceData}}requiredResponse(t){return{response:t,responseRequired:!0,performanceData:this.performanceData}}addProtocolHandler(t,r){if(this.handlers.has(t))throw new Error(`Protocol handler already exists for command "${t}"`);this.handlers.set(t,r)}setCurrentRequest(t){w.assert(this.currentRequestId===void 0),this.currentRequestId=t,this.cancellationToken.setRequest(t)}resetCurrentRequest(t){w.assert(this.currentRequestId===t),this.currentRequestId=void 0,this.cancellationToken.resetRequest(t)}executeWithRequestId(t,r,i){const o=this.performanceData;try{return this.performanceData=i,this.setCurrentRequest(t),r()}finally{this.resetCurrentRequest(t),this.performanceData=o}}executeCommand(t){const r=this.handlers.get(t.command);if(r){const i=this.executeWithRequestId(t.seq,()=>r(t),void 0);return this.projectService.enableRequestedPlugins(),i}else return this.logger.msg(`Unrecognized JSON command:${m2(t)}`,"Err"),this.doOutput(void 0,"unknown",t.seq,!1,void 0,`Unrecognized JSON command: ${t.command}`),{responseRequired:!1}}onMessage(t){var r,i,o,s,c,u,_;this.gcTimer.scheduleCollect();let p;const g=this.performanceData;this.logger.hasLevel(2)&&(p=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${L8(this.toStringMessage(t))}`));let h,x;try{h=this.parseMessage(t),x=h.arguments&&h.arguments.file?h.arguments:void 0,(r=rr)==null||r.instant(rr.Phase.Session,"request",{seq:h.seq,command:h.command}),(i=rr)==null||i.push(rr.Phase.Session,"executeCommand",{seq:h.seq,command:h.command},!0);const{response:S,responseRequired:T,performanceData:D}=this.executeCommand(h);if((o=rr)==null||o.pop(),this.logger.hasLevel(2)){const N=_Xe(this.hrtime(p)).toFixed(4);T?this.logger.perftrc(`${h.seq}::${h.command}: elapsed time (in milliseconds) ${N}`):this.logger.perftrc(`${h.seq}::${h.command}: async elapsed time (in milliseconds) ${N}`)}(s=rr)==null||s.instant(rr.Phase.Session,"response",{seq:h.seq,command:h.command,success:!!S}),S?this.doOutput(S,h.command,h.seq,!0,D):T&&this.doOutput(void 0,h.command,h.seq,!1,D,"No content available.")}catch(S){if((c=rr)==null||c.popAll(),S instanceof O4){(u=rr)==null||u.instant(rr.Phase.Session,"commandCanceled",{seq:h==null?void 0:h.seq,command:h==null?void 0:h.command}),this.doOutput({canceled:!0},h.command,h.seq,!0,this.performanceData);return}this.logErrorWorker(S,this.toStringMessage(t),x),(_=rr)==null||_.instant(rr.Phase.Session,"commandError",{seq:h==null?void 0:h.seq,command:h==null?void 0:h.command,message:S.message}),this.doOutput(void 0,h?h.command:"unknown",h?h.seq:0,!1,this.performanceData,"Error processing request. "+S.message+`
|
|
428
428
|
`+S.stack)}finally{this.performanceData=g}}parseMessage(t){return JSON.parse(t)}toStringMessage(t){return t}getFormatOptions(t){return this.projectService.getFormatCodeOptions(t)}getPreferences(t){return this.projectService.getPreferences(t)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}};function S7e(e){const t=e.diagnosticsDuration&&oo(e.diagnosticsDuration,([r,i])=>({...i,file:r}));return{...e,diagnosticsDuration:t}}function km(e,t){return{start:t.positionToLineOffset(e.start),end:t.positionToLineOffset(Qs(e))}}function vue(e,t,r){const i=km(e,r),o=t&&km(t,r);return o?{...i,contextStart:o.start,contextEnd:o.end}:i}function SXe(e,t){return{start:k7e(t,e.span.start),end:k7e(t,Qs(e.span)),newText:e.newText}}function k7e(e,t){return due(e)?TXe(e.getLineAndCharacterOfPosition(t)):e.positionToLineOffset(t)}function kXe(e,t){const r=e.ranges.map(i=>({start:t.positionToLineOffset(i.start),end:t.positionToLineOffset(i.start+i.length)}));return e.wordPattern?{ranges:r,wordPattern:e.wordPattern}:{ranges:r}}function TXe(e){return{line:e.line+1,offset:e.character+1}}function CXe(e){w.assert(e.textChanges.length===1);const t=ka(e.textChanges);return w.assert(t.span.start===0&&t.span.length===0),{fileName:e.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:t.newText}]}}function bue(e,t,r,i){const o=wXe(e,t,i),{line:s,character:c}=QT(IS(o),r);return{line:s+1,offset:c+1}}function wXe(e,t,r){for(const{fileName:i,textChanges:o}of r)if(i===t)for(let s=o.length-1;s>=0;s--){const{newText:c,span:{start:u,length:_}}=o[s];e=e.slice(0,u)+c+e.slice(u+_)}return e}function T7e(e,{fileName:t,textSpan:r,contextSpan:i,isWriteAccess:o,isDefinition:s},{disableLineTextInReferences:c}){const u=w.checkDefined(e.getScriptInfo(t)),_=vue(r,i,u),p=c?void 0:DXe(u,_);return{file:t,..._,lineText:p,isWriteAccess:o,isDefinition:s}}function DXe(e,t){const r=e.lineToTextSpan(t.start.line-1);return e.getSnapshot().getText(r.start,Qs(r)).replace(/\r|\n/g,"")}function NXe(e){return e===void 0||e&&typeof e=="object"&&typeof e.exportName=="string"&&(e.fileName===void 0||typeof e.fileName=="string")&&(e.ambientModuleName===void 0||typeof e.ambientModuleName=="string"&&(e.isPackageJsonImport===void 0||typeof e.isPackageJsonImport=="boolean"))}var O3=4,xue=(e=>(e[e.PreStart=0]="PreStart",e[e.Start=1]="Start",e[e.Entire=2]="Entire",e[e.Mid=3]="Mid",e[e.End=4]="End",e[e.PostEnd=5]="PostEnd",e))(xue||{}),FXe=class{constructor(){this.goSubtree=!0,this.lineIndex=new eF,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new j3,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(e,t){t&&(this.trailingText=""),e?e=this.initialText+e+this.trailingText:e=this.initialText+this.trailingText;const r=eF.linesFromText(e).lines;r.length>1&&r[r.length-1]===""&&r.pop();let i,o;for(let c=this.endBranch.length-1;c>=0;c--)this.endBranch[c].updateCounts(),this.endBranch[c].charCount()===0&&(o=this.endBranch[c],c>0?i=this.endBranch[c-1]:i=this.branchNode);o&&i.remove(o);const s=this.startPath[this.startPath.length-1];if(r.length>0)if(s.text=r[0],r.length>1){let c=new Array(r.length-1),u=s;for(let g=1;g<r.length;g++)c[g-1]=new vj(r[g]);let _=this.startPath.length-2;for(;_>=0;){const g=this.startPath[_];c=g.insertAt(u,c),_--,u=g}let p=c.length;for(;p>0;){const g=new j3;g.add(this.lineIndex.root),c=g.insertAt(this.lineIndex.root,c),p=c.length,this.lineIndex.root=g}this.lineIndex.root.updateCounts()}else for(let c=this.startPath.length-2;c>=0;c--)this.startPath[c].updateCounts();else{this.startPath[this.startPath.length-2].remove(s);for(let c=this.startPath.length-2;c>=0;c--)this.startPath[c].updateCounts()}return this.lineIndex}post(e,t,r){r===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(e,t,r,i,o){const s=this.stack[this.stack.length-1];this.state===2&&o===1&&(this.state=1,this.branchNode=s,this.lineCollectionAtBranch=r);let c;function u(_){return _.isLeaf()?new vj(""):new j3}switch(o){case 0:this.goSubtree=!1,this.state!==4&&s.add(r);break;case 1:this.state===4?this.goSubtree=!1:(c=u(r),s.add(c),this.startPath.push(c));break;case 2:this.state!==4?(c=u(r),s.add(c),this.startPath.push(c)):r.isLeaf()||(c=u(r),s.add(c),this.endBranch.push(c));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:r.isLeaf()||(c=u(r),s.add(c),this.endBranch.push(c));break;case 5:this.goSubtree=!1,this.state!==1&&s.add(r);break}this.goSubtree&&this.stack.push(c)}leaf(e,t,r){this.state===1?this.initialText=r.text.substring(0,e):this.state===2?(this.initialText=r.text.substring(0,e),this.trailingText=r.text.substring(e+t)):this.trailingText=r.text.substring(e+t)}},EXe=class{constructor(e,t,r){this.pos=e,this.deleteLen=t,this.insertedText=r}getTextChangeRange(){return hw(ql(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},rG=class TS{constructor(){this.changes=[],this.versions=new Array(TS.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(t){if(!(t<this.minVersion||t>this.currentVersion))return t%TS.maxVersions}currentVersionToIndex(){return this.currentVersion%TS.maxVersions}edit(t,r,i){this.changes.push(new EXe(t,r,i)),(this.changes.length>TS.changeNumberThreshold||r>TS.changeLengthThreshold||i&&i.length>TS.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let t=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let r=t.index;for(const i of this.changes)r=r.edit(i.pos,i.deleteLen,i.insertedText);t=new C7e(this.currentVersion+1,this,r,this.changes),this.currentVersion=t.version,this.versions[this.currentVersionToIndex()]=t,this.changes=[],this.currentVersion-this.minVersion>=TS.maxVersions&&(this.minVersion=this.currentVersion-TS.maxVersions+1)}return t}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(t){return this._getSnapshot().index.lineNumberToInfo(t)}lineOffsetToPosition(t,r){return this._getSnapshot().index.absolutePositionOfStartOfLine(t)+(r-1)}positionToLineOffset(t){return this._getSnapshot().index.positionToLineOffset(t)}lineToTextSpan(t){const r=this._getSnapshot().index,{lineText:i,absolutePosition:o}=r.lineNumberToInfo(t+1),s=i!==void 0?i.length:r.absolutePositionOfStartOfLine(t+2)-o;return ql(o,s)}getTextChangesBetweenVersions(t,r){if(t<r)if(t>=this.minVersion){const i=[];for(let o=t+1;o<=r;o++){const s=this.versions[this.versionToIndex(o)];for(const c of s.changesSincePreviousVersion)i.push(c.getTextChangeRange())}return fZ(i)}else return;else return PE}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(t){const r=new TS,i=new C7e(0,r,new eF);r.versions[r.currentVersion]=i;const o=eF.linesFromText(t);return i.index.load(o.lines),r}};rG.changeNumberThreshold=8,rG.changeLengthThreshold=256,rG.maxVersions=8;var iG=rG,C7e=class mPe{constructor(t,r,i,o=vl){this.version=t,this.cache=r,this.index=i,this.changesSincePreviousVersion=o}getText(t,r){return this.index.getText(t,r-t)}getLength(){return this.index.getLength()}getChangeRange(t){if(t instanceof mPe&&this.cache===t.cache)return this.version<=t.version?PE:this.cache.getTextChangesBetweenVersions(t.version,this.version)}},eF=class cme{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(t){return this.lineNumberToInfo(t).absolutePosition}positionToLineOffset(t){const{oneBasedLine:r,zeroBasedColumn:i}=this.root.charOffsetToLineInfo(1,t);return{line:r,offset:i+1}}positionToColumnAndLineText(t){return this.root.charOffsetToLineInfo(1,t)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(t){const r=this.getLineCount();if(t<=r){const{position:i,leaf:o}=this.root.lineNumberToInfo(t,0);return{absolutePosition:i,lineText:o&&o.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(t){if(t.length>0){const r=[];for(let i=0;i<t.length;i++)r[i]=new vj(t[i]);this.root=cme.buildTreeFromBottom(r)}else this.root=new j3}walk(t,r,i){this.root.walk(t,r,i)}getText(t,r){let i="";return r>0&&t<this.root.charCount()&&this.walk(t,r,{goSubtree:!0,done:!1,leaf:(o,s,c)=>{i=i.concat(c.text.substring(o,o+s))}}),i}getLength(){return this.root.charCount()}every(t,r,i){i||(i=this.root.charCount());const o={goSubtree:!0,done:!1,leaf(s,c,u){t(u,s,c)||(this.done=!0)}};return this.walk(r,i-r,o),!o.done}edit(t,r,i){if(this.root.charCount()===0)return w.assert(r===0),i!==void 0?(this.load(cme.linesFromText(i).lines),this):void 0;{let o;if(this.checkEdits){const u=this.getText(0,this.root.charCount());o=u.slice(0,t)+i+u.slice(t+r)}const s=new FXe;let c=!1;if(t>=this.root.charCount()){t=this.root.charCount()-1;const u=this.getText(t,1);i?i=u+i:i=u,r=0,c=!0}else if(r>0){const u=t+r,{zeroBasedColumn:_,lineText:p}=this.positionToColumnAndLineText(u);_===0&&(r+=p.length,i=i?i+p:p)}if(this.root.walk(t,r,s),s.insertLines(i,c),this.checkEdits){const u=s.lineIndex.getText(0,s.lineIndex.getLength());w.assert(o===u,"buffer edit mismatch")}return s.lineIndex}}static buildTreeFromBottom(t){if(t.length<O3)return new j3(t);const r=new Array(Math.ceil(t.length/O3));let i=0;for(let o=0;o<r.length;o++){const s=Math.min(i+O3,t.length);r[o]=new j3(t.slice(i,s)),i=s}return this.buildTreeFromBottom(r)}static linesFromText(t){const r=IS(t);if(r.length===0)return{lines:[],lineMap:r};const i=new Array(r.length),o=r.length-1;for(let c=0;c<o;c++)i[c]=t.substring(r[c],r[c+1]);const s=t.substring(r[o]);return s.length>0?i[o]=s:i.pop(),{lines:i,lineMap:r}}},j3=class lme{constructor(t=[]){this.children=t,this.totalChars=0,this.totalLines=0,t.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const t of this.children)this.totalChars+=t.charCount(),this.totalLines+=t.lineCount()}execWalk(t,r,i,o,s){return i.pre&&i.pre(t,r,this.children[o],this,s),i.goSubtree?(this.children[o].walk(t,r,i),i.post&&i.post(t,r,this.children[o],this,s)):i.goSubtree=!0,i.done}skipChild(t,r,i,o,s){o.pre&&!o.done&&(o.pre(t,r,this.children[i],this,s),o.goSubtree=!0)}walk(t,r,i){let o=0,s=this.children[o].charCount(),c=t;for(;c>=s;)this.skipChild(c,r,o,i,0),c-=s,o++,s=this.children[o].charCount();if(c+r<=s){if(this.execWalk(c,r,i,o,2))return}else{if(this.execWalk(c,s-c,i,o,1))return;let u=r-(s-c);for(o++,s=this.children[o].charCount();u>s;){if(this.execWalk(0,s,i,o,3))return;u-=s,o++,s=this.children[o].charCount()}if(u>0&&this.execWalk(0,u,i,o,4))return}if(i.pre){const u=this.children.length;if(o<u-1)for(let _=o+1;_<u;_++)this.skipChild(0,0,_,i,5)}}charOffsetToLineInfo(t,r){if(this.children.length===0)return{oneBasedLine:t,zeroBasedColumn:r,lineText:void 0};for(const s of this.children){if(s.charCount()>r)return s.isLeaf()?{oneBasedLine:t,zeroBasedColumn:r,lineText:s.text}:s.charOffsetToLineInfo(t,r);r-=s.charCount(),t+=s.lineCount()}const i=this.lineCount();if(i===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};const o=w.checkDefined(this.lineNumberToInfo(i,0).leaf);return{oneBasedLine:i,zeroBasedColumn:o.charCount(),lineText:void 0}}lineNumberToInfo(t,r){for(const i of this.children){const o=i.lineCount();if(o>=t)return i.isLeaf()?{position:r,leaf:i}:i.lineNumberToInfo(t,r);t-=o,r+=i.charCount()}return{position:r,leaf:void 0}}splitAfter(t){let r;const i=this.children.length;t++;const o=t;if(t<i){for(r=new lme;t<i;)r.add(this.children[t]),t++;r.updateCounts()}return this.children.length=o,r}remove(t){const r=this.findChildIndex(t),i=this.children.length;if(r<i-1)for(let o=r;o<i-1;o++)this.children[o]=this.children[o+1];this.children.pop()}findChildIndex(t){const r=this.children.indexOf(t);return w.assert(r!==-1),r}insertAt(t,r){let i=this.findChildIndex(t);const o=this.children.length,s=r.length;if(o<O3&&i===o-1&&s===1)return this.add(r[0]),this.updateCounts(),[];{const c=this.splitAfter(i);let u=0;for(i++;i<O3&&u<s;)this.children[i]=r[u],i++,u++;let _=[],p=0;if(u<s){p=Math.ceil((s-u)/O3),_=new Array(p);let g=0;for(let x=0;x<p;x++)_[x]=new lme;let h=_[0];for(;u<s;)h.add(r[u]),u++,h.children.length===O3&&(g++,h=_[g]);for(let x=_.length-1;x>=0;x--)_[x].children.length===0&&_.pop()}c&&_.push(c),this.updateCounts();for(let g=0;g<p;g++)_[g].updateCounts();return _}}add(t){this.children.push(t),w.assert(this.children.length<=O3)}charCount(){return this.totalChars}lineCount(){return this.totalLines}},vj=class{constructor(e){this.text=e}isLeaf(){return!0}walk(e,t,r){r.leaf(e,t,this)}charCount(){return this.text.length}lineCount(){return 1}},w7e=class gPe{constructor(t,r,i,o,s,c){this.telemetryEnabled=t,this.logger=r,this.host=i,this.globalTypingsCacheLocation=o,this.event=s,this.maxActiveRequestCount=c,this.activeRequestCount=0,this.requestQueue=Y7(),this.requestMap=new Map,this.requestedRegistry=!1,this.packageInstallId=0}isKnownTypesPackageName(t){var r;return bm.validatePackageName(t)!==bm.NameValidationResult.Ok?!1:(this.requestedRegistry||(this.requestedRegistry=!0,this.installer.send({kind:"typesRegistry"})),!!((r=this.typesRegistryCache)!=null&&r.has(t)))}installPackage(t){this.packageInstallId++;const r={kind:"installPackage",...t,id:this.packageInstallId},i=new Promise((o,s)=>{(this.packageInstalledPromise??(this.packageInstalledPromise=new Map)).set(this.packageInstallId,{resolve:o,reject:s})});return this.installer.send(r),i}attach(t){this.projectService=t,this.installer=this.createInstallerProcess()}onProjectClosed(t){this.installer.send({projectName:t.getProjectName(),kind:"closeProject"})}enqueueInstallTypingsRequest(t,r,i){const o=A_e(t,r,i);this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling throttled operation:${m2(o)}`),this.activeRequestCount<this.maxActiveRequestCount?this.scheduleRequest(o):(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Deferring request for: ${o.projectName}`),this.requestQueue.enqueue(o),this.requestMap.set(o.projectName,o))}handleMessage(t){var r,i;switch(this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Received response:${m2(t)}`),t.kind){case FJ:this.typesRegistryCache=new Map(Object.entries(t.typesRegistry));break;case j9:{const o=(r=this.packageInstalledPromise)==null?void 0:r.get(t.id);w.assertIsDefined(o,"Should find the promise for package install"),(i=this.packageInstalledPromise)==null||i.delete(t.id),t.success?o.resolve({successMessage:t.message}):o.reject(t.message),this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case qie:{const o={message:t.message};this.event(o,"typesInstallerInitializationFailed");break}case EJ:{const o={eventId:t.eventId,packages:t.packagesToInstall};this.event(o,"beginInstallTypes");break}case PJ:{if(this.telemetryEnabled){const s={telemetryEventName:"typingsInstalled",payload:{installedPackages:t.packagesToInstall.join(","),installSuccess:t.installSuccess,typingsInstallerVersion:t.typingsInstallerVersion}};this.event(s,"telemetry")}const o={eventId:t.eventId,packages:t.packagesToInstall,success:t.installSuccess};this.event(o,"endInstallTypes");break}case O9:{this.projectService.updateTypingsForProject(t);break}case I9:{for(this.activeRequestCount>0?this.activeRequestCount--:w.fail("TIAdapter:: Received too many responses");!this.requestQueue.isEmpty();){const o=this.requestQueue.dequeue();if(this.requestMap.get(o.projectName)===o){this.requestMap.delete(o.projectName),this.scheduleRequest(o);break}this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Skipping defunct request for: ${o.projectName}`)}this.projectService.updateTypingsForProject(t),this.event(t,"setTypings");break}case WN:this.projectService.watchTypingLocations(t);break}}scheduleRequest(t){this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Scheduling request for: ${t.projectName}`),this.activeRequestCount++,this.host.setTimeout(()=>{this.logger.hasLevel(3)&&this.logger.info(`TIAdapter:: Sending request:${m2(t)}`),this.installer.send(t)},gPe.requestDelayMillis,`${t.projectName}::${t.kind}`)}};w7e.requestDelayMillis=100;var D7e=w7e,N7e={};Nc(N7e,{ActionInvalidate:()=>O9,ActionPackageInstalled:()=>j9,ActionSet:()=>I9,ActionWatchTypingLocations:()=>WN,Arguments:()=>AJ,AutoImportProviderProject:()=>Z_e,AuxiliaryProject:()=>$_e,CharRangeSection:()=>xue,CloseFileWatcherEvent:()=>GH,CommandNames:()=>g7e,ConfigFileDiagEvent:()=>UH,ConfiguredProject:()=>X_e,ConfiguredProjectLoadKind:()=>iue,CreateDirectoryWatcherEvent:()=>HH,CreateFileWatcherEvent:()=>VH,Errors:()=>jh,EventBeginInstallTypes:()=>EJ,EventEndInstallTypes:()=>PJ,EventInitializationFailed:()=>qie,EventTypesRegistry:()=>FJ,ExternalProject:()=>RH,GcTimer:()=>B_e,InferredProject:()=>K_e,LargeFileReferencedEvent:()=>qH,LineIndex:()=>eF,LineLeaf:()=>vj,LineNode:()=>j3,LogLevel:()=>E_e,Msg:()=>P_e,OpenFileInfoTelemetryEvent:()=>Y_e,Project:()=>oT,ProjectInfoTelemetryEvent:()=>WH,ProjectKind:()=>K5,ProjectLanguageServiceStateEvent:()=>JH,ProjectLoadingFinishEvent:()=>zH,ProjectLoadingStartEvent:()=>BH,ProjectService:()=>uue,ProjectsUpdatedInBackgroundEvent:()=>gj,ScriptInfo:()=>J_e,ScriptVersionCache:()=>iG,Session:()=>x7e,TextStorage:()=>U_e,ThrottledOperations:()=>M_e,TypingsInstallerAdapter:()=>D7e,allFilesAreJsOrDts:()=>V_e,allRootFilesAreJsOrDts:()=>W_e,asNormalizedPath:()=>J8e,convertCompilerOptions:()=>hj,convertFormatOptions:()=>A3,convertScriptKindName:()=>$H,convertTypeAcquisition:()=>tue,convertUserPreferences:()=>nue,convertWatchOptions:()=>X5,countEachFileTypes:()=>$5,createInstallTypingsRequest:()=>A_e,createModuleSpecifierCache:()=>pue,createNormalizedPathMap:()=>W8e,createPackageJsonCache:()=>mue,createSortedArray:()=>L_e,emptyArray:()=>vl,findArgument:()=>U2e,formatDiagnosticToProtocol:()=>Y5,formatMessage:()=>gue,getBaseConfigFileName:()=>jH,getLocationInNewDocument:()=>bue,hasArgument:()=>q2e,hasNoTypeScriptSource:()=>H_e,indent:()=>L8,isBackgroundProject:()=>Z5,isConfigFile:()=>due,isConfiguredProject:()=>Iy,isDynamicFileName:()=>G5,isExternalProject:()=>Q5,isInferredProject:()=>P3,isInferredProjectName:()=>I_e,isProjectDeferredClose:()=>mj,makeAutoImportProviderProjectName:()=>j_e,makeAuxiliaryProjectName:()=>R_e,makeInferredProjectName:()=>O_e,maxFileSize:()=>MH,maxProgramSizeForNonTsFiles:()=>LH,normalizedPathToPath:()=>E3,nowString:()=>J2e,nullCancellationToken:()=>f7e,nullTypingsInstaller:()=>yj,protocol:()=>z_e,stringifyIndented:()=>m2,toEvent:()=>hue,toNormalizedPath:()=>Ls,tryConvertScriptKindName:()=>KH,typingsInstaller:()=>F_e,updateProjectIfDirty:()=>lf}),typeof console<"u"&&(w.loggingHost={log(e,t){switch(e){case 1:return console.error(t);case 2:return console.warn(t);case 3:return console.log(t);case 4:return console.log(t)}}})})({get exports(){return aE},set exports(JT){aE=JT,K7.exports&&(K7.exports=JT)}})})(lPe);var hPe=lPe.exports;const fut=_ut(hPe),hut=dut({__proto__:null,default:fut},[hPe]);export{hut as t};
|
|
429
|
-
//# sourceMappingURL=typescript-e2Impz-Y-
|
|
429
|
+
//# sourceMappingURL=typescript-e2Impz-Y-eyfqYqVi.js.map
|
package/dist/assets/{typescript-e2Impz-Y-ZFE3ath_.js.map → typescript-e2Impz-Y-eyfqYqVi.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-e2Impz-Y-
|
|
1
|
+
{"version":3,"file":"typescript-e2Impz-Y-eyfqYqVi.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{$ as j,a0 as Fe,a1 as Ye,a2 as ze,a3 as Je,r,a4 as Me,a5 as v,a6 as U,a7 as G,a8 as R,X as Le,a9 as I,aa as P,ab as Qe,ac as H,ad as Xe,ae as je,af as He,ag as xe,ah as Ke,ai as We,aj as Ze,ak as Ve,al as et,am as tt,an as nt,ao as Ee,ap as ot,aq as B}from"./main.
|
|
1
|
+
import{$ as j,a0 as Fe,a1 as Ye,a2 as ze,a3 as Je,r,a4 as Me,a5 as v,a6 as U,a7 as G,a8 as R,X as Le,a9 as I,aa as P,ab as Qe,ac as H,ad as Xe,ae as je,af as He,ag as xe,ah as Ke,ai as We,aj as Ze,ak as Ve,al as et,am as tt,an as nt,ao as Ee,ap as ot,aq as B}from"./main.9ezbfd1a.js";function st(o,a=50){let e;const s=[];return d=>{e&&clearTimeout(e);const l=s.findIndex(c=>c.scope===d.scope&&c.index===d.index);if(l>-1){const c=s[l];c.type===d.type&&JSON.stringify(d.input)===JSON.stringify(c.input)||console.warn("Two conflicting operations were dispatched:",c,d),s[l]=d}else s.push(d);return new Promise((c,i)=>{e=setTimeout(()=>{o(s).then(c).catch(i)},a)})}}const at=j(new Map),z=j(void 0),$e=j(o=>o(z),(o,a,e)=>{const s=o(z),d=o(at);return!(e!=null&&e.document)&&(e==null?void 0:e.status)==="LOADING"&&(e.document=d.get(`${e.driveId}:${e.documentId}`)),(s==null?void 0:s.driveId)!==(e==null?void 0:e.driveId)||(s==null?void 0:s.documentId)!==(e==null?void 0:e.documentId)||(s==null?void 0:s.documentType)!==(e==null?void 0:e.documentType)||(s==null?void 0:s.status)!==(e==null?void 0:e.status)||!!(s!=null&&s.document)!=!!(e!=null&&e.document)||s!=null&&s.document&&(e!=null&&e.document)&&Fe(s.document)!==Fe(e.document)?((e==null?void 0:e.status)==="LOADED"&&d.set(`${e.driveId}:${e.documentId}`,e.document),a(z,e),!0):!1}),rt=Ye($e,o=>o==null?void 0:o.document);function it(o){const{selectedNode:a,selectedDriveNode:e,openFile:s,addOperations:d,onStrandUpdate:l,fetchDocument:c}=o,[i,D]=ze($e),C=(e==null?void 0:e.sharingType)!=="LOCAL"&&(e==null?void 0:e.syncStatus)===void 0,m=a==null?void 0:a.driveId,p=a==null?void 0:a.id,T=a==null?void 0:a.kind,h=T==="FILE"?a==null?void 0:a.documentType:void 0,F=Je(rt),k=r.useMemo(()=>{function b(g){if(!g)D(void 0);else if(i)D({...i,document:g});else throw new Error("fileNodeDocument is undefined")}return b},[i,D]),A=r.useCallback(async(b,g,y)=>{const w=await(C?c(b,g,y):s(b,g));if(w instanceof Error)throw w;return w},[c,C,s]);r.useEffect(()=>{if(!m||!p||!h){i&&D(void 0);return}if(m!==(i==null?void 0:i.driveId)||p!==i.documentId||h!==i.documentType){if(!D({driveId:m,documentId:p,documentType:h,document:void 0,status:"LOADING"}))return;A(m,p,h).then(y=>D(y?{driveId:m,documentId:p,documentType:h,document:y,status:"LOADED"}:{driveId:m,documentId:p,documentType:h,document:y,status:"ERROR"})).catch(y=>{Me.error(y),D({driveId:m,documentId:p,documentType:h,document:void 0,status:"ERROR"})});const g=l(y=>{y.driveId===m&&y.documentId===p&&A(m,p,h).then(k).catch(Me.error)});return()=>{g()}}},[a,p,h,m,A,i,l,D,k]);const M=r.useMemo(()=>{if(m&&p&&T===v)return st(b=>d(m,p,b))},[d,m,p,T]),E=T===v&&(i==null?void 0:i.driveId)===m&&(i==null?void 0:i.documentId)===p;return r.useMemo(()=>({fileNodeDocument:i,selectedDocument:E?F:void 0,setSelectedDocument:k,addOperationToSelectedDocument:M}),[i,E,F,k,M])}const K=localStorage.getItem("CONNECT_DEBUG")==="true",ct=[{sharingType:U,label:"Public Drives"},{sharingType:G,label:"Secure Cloud Drives"},{sharingType:R,label:"My Local Drives"}],Pe=o=>Le.drives.sections[o];function J(o){const a=[...Xe];return Le.drives.sections[o].allowDelete&&a.push(Qe),K&&a.push(...H),a}function Q(){const o=[...je];return K&&o.push(...H),o}function X(){const o=[...He];return K&&o.push(...H),o}function dt(){return{[R]:{[I]:J(R),[P]:X(),[v]:Q()},[G]:{[I]:J(G),[P]:X(),[v]:Q()},[U]:{[I]:J(U),[P]:X(),[v]:Q()}}}const Dt=ct.filter(o=>Pe(o.sharingType).enabled).map(o=>{const a=Pe(o.sharingType);return{...o,disableAddDrives:!a.allowAdd}});function qe(o){var c;const{documentDrives:a}=xe();if(!o)return{drive:null,remoteUrl:null,isRemoteDrive:!1};const e=a.find(i=>i.state.global.id===o),s=e==null?void 0:e.state.local.triggers.find(i=>i.type==="PullResponder"),{remoteUrl:d}=(e==null?void 0:e.state.global)||{},l=!!d||!!s;return{drive:e,remoteUrl:d||((c=s==null?void 0:s.data)==null?void 0:c.url),isRemoteDrive:l}}const lt=`... on RealWorldAssets {
|
|
2
2
|
state {
|
|
3
3
|
portfolio {
|
|
4
4
|
__typename
|
|
@@ -104,4 +104,4 @@ import{$ as j,a0 as Fe,a1 as Ye,a2 as ze,a3 as Je,r,a4 as Me,a5 as v,a6 as U,a7
|
|
|
104
104
|
${e}
|
|
105
105
|
}
|
|
106
106
|
}`)},ft=(o,a,e)=>{const s=o.replace(/\/d\//,"/graphql/"),d=pt(e,a);return(s+`?query=${d}`).toString()},yt=o=>window.open(o,"_blank");var Ue;const ht=((Ue=window.electronAPI)==null?void 0:Ue.openURL)??yt,gt=o=>{const{isRemoteDrive:a,remoteUrl:e}=qe(o);return async s=>{if((s==null?void 0:s.kind)!==v||!e||!a)return;new URL(e).origin;const l=ft(e,s.documentType,s.id);await ht(l)}};function bt(){const{showModal:o}=Ke(),{t:a}=We(),e=Ze(),{selectedDriveNode:s,driveNodes:d,selectedParentNode:l,setSelectedNode:c,getParentNode:i}=e,D=Ve(),C=xe(),{addFolder:m,addFile:p,renameNode:T,deleteNode:h,addDrive:F,addRemoteDrive:k,deleteDrive:A,renameDrive:M,setDriveAvailableOffline:E,setDriveSharingType:b,copyNode:g,moveNode:y,getSyncStatus:w,removeTrigger:W,addTrigger:L,registerNewPullResponderTrigger:Z}=C,V=qe(s==null?void 0:s.id),ee=gt(s==null?void 0:s.id),te=et(),ne=dt(),oe=tt(),se=nt(),ae=it({...e,...C,...D}),O=r.useCallback(async t=>{const n="readContext"in t,{id:f,name:N,icon:_e,slug:Be}=t.state.global,{sharingType:Y,availableOffline:Ge}=n?{sharingType:U,availableOffline:!1}:t.state.local,ke=Y==null?void 0:Y.toUpperCase(),q=ke==="PRIVATE"?R:ke,we=n?void 0:await w(f,q),Ae=we==="INITIAL_SYNC"?"SYNCING":we,_={id:f,name:N,slug:Be||null,kind:I,children:[],nodeMap:{},sharingType:q,syncStatus:Ae,availableOffline:Ge,icon:_e,parentFolder:null,driveId:f},Oe=t.state.global.nodes.map(u=>{const S={...u,slug:Ee(u.name),driveId:f,parentFolder:u.parentFolder||f,kind:u.kind.toUpperCase(),syncStatus:Ae,sharingType:q};if(S.kind===I)throw new Error("Drive nodes should not be nested");return S.kind===v?S:{...S,children:[]}});for(const u of Oe)_.nodeMap[u.id]=u;for await(const u of Oe){if(u.kind===v){const Re=n?void 0:await w(u.synchronizationUnits[0].syncId,q),Ne=Re==="INITIAL_SYNC"?"SYNCING":Re;u.syncStatus=Ne}if(u.parentFolder===f){_.children.push(u);continue}const S=_.nodeMap[u.parentFolder];if(S.kind===v)throw new Error(`Parent node ${u.parentFolder} is a file, not a folder`);S.children.push(u),u.syncStatus!==ot&&(S.syncStatus=u.syncStatus)}return _},[w]),re=r.useCallback(async t=>Promise.all(t.map(O)),[O]),x=r.useCallback(async(t,n)=>{if(!n)throw new Error("Parent node is required");if(n.kind===v)throw new Error("Cannot add folder to a file");return await m(n.driveId,t,n.id)},[m]),ie=r.useCallback(async(t,n)=>{if(n.kind===I)throw new Error("Drive can only be renamed from the drive settings modal");return await T(n.driveId,n.id,t)},[T]),ce=r.useCallback(async(t,n)=>{if(t.kind===I)throw new Error("Drive cannot be duplicated");await g(t,n)},[g]),de=r.useCallback(async(t,n)=>{if(t.kind===I)throw new Error("Drive cannot be moved");await y(t,n)},[y]),le=r.useCallback(async(t,n)=>{if(!n)throw new Error("Parent node is required");if(n.kind===v)throw new Error("Cannot add file to a file");const f=t.name.replace(/\.zip$/gim,"");return await p(t,n.driveId,f,n.id)},[p]),ue=r.useCallback(async t=>{if(l){if(t.kind===I)throw new Error("Drive cannot be duplicated");await g(t,l)}},[g,l]),me=r.useCallback(t=>{o("deleteItem",{uiNode:t,onDelete:async n=>{n();const f=t.kind===P?"notifications.deleteFolderSuccess":"notifications.fileDeleteSuccess",N=i(t);await h(t.driveId,t.id),c(N),B(a(f),{type:"connect-deleted"})}})},[h,i,c,o,a]),$=r.useCallback(t=>{o("deleteDriveModal",{uiDriveNode:t,onDelete:async n=>{n(),await A(t.id),c(d[0]),B(a("notifications.deleteDriveSuccess"),{type:"connect-deleted"})}})},[A,d,c,o,a]),pe=r.useCallback(async t=>{try{const n=await F({global:{name:t.name,id:void 0,icon:null,slug:null},local:{availableOffline:t.availableOffline,sharingType:t.sharingType.toLowerCase(),listeners:[],triggers:[]}});B(a("notifications.addDriveSuccess"),{type:"connect-success"});const f=await O(n);c(f)}catch(n){console.error(n)}},[F,O,c,a]),fe=r.useCallback(async t=>{try{const n=await k(t.url,{sharingType:t.sharingType,availableOffline:t.availableOffline,listeners:[{block:!0,callInfo:{data:t.url,name:"switchboard-push",transmitterType:"SwitchboardPush"},filter:{branch:["main"],documentId:["*"],documentType:["*"],scope:["global"]},label:"Switchboard Sync",listenerId:"1",system:!0}],triggers:[],pullInterval:3e3});B(a("notifications.addDriveSuccess"),{type:"connect-success"});const f=await O(n);c(f)}catch(n){console.error(n)}},[k,O,c,a]),ye=r.useCallback(t=>{t===R?o("addLocalDrive",{onAddLocalDrive:pe}):o("addRemoteDrive",{onAddRemoteDrive:fe,groupSharingType:t})},[pe,fe,o]),he=r.useCallback(async(t,n)=>{await M(t.id,n)},[M]),ge=r.useCallback(async(t,n)=>{await b(t.id,n)},[b]),ve=r.useCallback(async(t,n)=>{await E(t.id,n)},[E]),De=r.useCallback(t=>{o("driveSettings",{uiDriveNode:t,onRenameDrive:he,onDeleteDrive:$,onChangeSharingType:ge,onChangeAvailableOffline:ve})},[ve,ge,$,he,o]),be=r.useCallback(async t=>{if(!t||!l)return;const n=await x(t,l);c({...n,kind:P,slug:Ee(n.name),parentFolder:l.id,syncStatus:l.syncStatus,driveId:l.driveId,sharingType:l.sharingType,children:[]})},[x,l,c]),Ie=r.useCallback(async t=>{const n=window.prompt("url")||"",f=await Z(t,n,{pullInterval:6e3});await L(t,f)},[L,Z]),Se=r.useCallback(async t=>{const n=window.prompt("triggerId:");n&&await W(t,n)},[W]),Ce=r.useCallback(async t=>{const n=window.prompt("url")||"";await L(t,{id:"some-invalid-id",type:"PullResponder",data:{interval:"3000",listenerId:"invalid-listener-id",url:n}})},[L]),Te=r.useMemo(()=>d.reduce((t,n)=>(t[n.sharingType].push(n),t),{[U]:[],[G]:[],[R]:[]}),[d]);return r.useMemo(()=>({...C,...e,...te,...V,...ae,nodeOptions:ne,driveNodesBySharingType:Te,documentModels:oe,onAddFolder:x,onAddFile:le,onCopyNode:ce,onMoveNode:de,onRenameNode:ie,onDuplicateNode:ue,onDeleteNode:me,onDeleteDrive:$,makeUiDriveNodes:re,onAddAndSelectNewFolder:be,showAddDriveModal:ye,showDriveSettingsModal:De,openSwitchboardLink:ee,onAddTrigger:Ie,onRemoveTrigger:Se,onAddInvalidTrigger:Ce,getDocumentModel:se}),[C,e,te,V,ae,ne,Te,oe,x,le,ce,de,ie,ue,me,$,re,be,ye,De,ee,Ie,Se,Ce,se])}export{Dt as d,ht as o,bt as u};
|
|
107
|
-
//# sourceMappingURL=useUiNodes-
|
|
107
|
+
//# sourceMappingURL=useUiNodes-BpMMwQ0y.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useUiNodes-
|
|
1
|
+
{"version":3,"file":"useUiNodes-BpMMwQ0y.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Z as B,P as ee,O as te}from"./main.
|
|
1
|
+
import{Z as B,P as ee,O as te}from"./main.9ezbfd1a.js";import{K as T,aD as V,x as ie,aE as ne,aF as re,p as se,aG as W,aH as K}from"./editors-DVrDEp-F.js";import{k as Y}from"./index-6e_WqBNj-CJvJXHul.js";var oe={};Y();const ae=i=>{const e=new Set;do for(const t of Reflect.ownKeys(i))e.add([i,t]);while((i=Reflect.getPrototypeOf(i))&&i!==Object.prototype);return e};var ue=(i,{include:e,exclude:t}={})=>{const n=r=>{const o=s=>typeof s=="string"?r===s:s.test(r);return e?e.some(o):t?!t.some(o):!0};for(const[r,o]of ae(i.constructor.prototype)){if(o==="constructor"||!n(o))continue;const s=Reflect.getOwnPropertyDescriptor(r,o);s&&typeof s.value=="function"&&(i[o]=i[o].bind(i))}return i};const P=te(ue),le={object:!1,inputValue:!1,field:!1,defaultValue:!1,resolvers:!1};function J(i){return typeof i=="boolean"?{object:i,inputValue:i,field:i,defaultValue:i,resolvers:i}:{...le,...i}}var E;(function(i){i[i.Namespace=0]="Namespace",i[i.Default=1]="Default",i[i.Regular=2]="Regular"})(E||(E={}));function ce(i){const e=i.includes("\\#");i.includes("\\#")&&(i=i.replace("\\#",""));const t=i.split("#"),n=t.length===3,r=t[1].trim()==="default"||t[1].startsWith("default "),o=t[1].includes(" as "),s=e?`#${t[0]}`:t[0];return t[0]=s,{items:t,isDefault:r,isNamespace:n,hasAlias:o}}function pe(i){const e=i.includes("\\#");i.includes("\\#")&&(i=i.replace("\\#",""));let[t,n]=i.split("#");const r=n.includes("."),o=n.trim()==="default"||n.startsWith("default "),s=n.includes(" as ");return t=e?`#${t}`:t,{items:r?[t,...n.split(".")]:[t,n],isDefault:o,isNamespace:r,hasAlias:s}}function fe(i){return i.includes("\\#")&&(i=i.replace("\\#","")),i.split("#").length===3}function v(i,e=null,t){if(de(i)){let n=function(m=!1){const[y,N]=u[1].split(/\s+as\s+/),_=r(N);return{importElement:m?_:`${y} as ${_}`,type:_}},r=function(m){return t?me(m,t):m},o=function(){switch(c){case E.Namespace:{const[,m,y]=u;return{type:`${m}.${y}`,importElement:m}}case E.Default:{if(l)return n(!0);const m=r(String(e));return{importElement:m,type:m}}case E.Regular:{if(l)return n();const m=u[1],y=r(m);return{type:y,importElement:t?`${m} as ${y}`:y}}}};const{isNamespace:s,isDefault:a,hasAlias:l,items:u}=fe(i)?ce(i):pe(i),c=s?E.Namespace:a?E.Default:E.Regular,{type:p,importElement:h}=o();return{default:a,isExternal:!0,source:u[0],type:p,import:h.replace(/<(.*?)>/g,"")}}return{isExternal:!1,type:i}}function me(i,e){const t=i.indexOf("<");return t===-1?`${i}${e}`:`${i.slice(0,t)}${e}${i.slice(t)}`}function de(i){return i.includes("#")}function he(i,e){const t={};for(const n of Object.keys(i)){const r=i[n],o=v(r,n,e);t[n]=o}return t}const M={ID:{input:"string",output:"string"},String:{input:"string",output:"string"},Boolean:{input:"boolean",output:"boolean"},Int:{input:"number",output:"number"},Float:{input:"number",output:"number"}},f=(i,e)=>i??e;function k(i,e=!1){return e?typeof i=="number"?String(i):`'${i}'`:typeof i=="number"||typeof i=="string"&&!Number.isNaN(parseInt(i))&&parseFloat(i).toString()===i?String(i):`'${i}'`}function d(i,e=1){return new Array(e).fill(" ").join("")+i}function b(i,e=0,t=!1){if(!i||i===""||t)return"";Q(i)&&(i=i.value),i=i.split("*/").join("*\\/");let n=i.split(`
|
|
2
2
|
`);return n.length===1?d(`/** ${n[0]} */
|
|
3
3
|
`,e):(n=["/**",...n.map(r=>` * ${r}`),` */
|
|
4
4
|
`],q(n.map(r=>d(r,e)).join(`
|
|
@@ -40,4 +40,4 @@ this in the docs: http://dev.apollodata.com/core/fragments.html#unique-names`):s
|
|
|
40
40
|
`)).string;if(this.config.enumsAsConst){const a=`export type ${s} = typeof ${s}[keyof typeof ${s}];`;return[new g({...this._declarationBlockConfig,blockTransformer:l=>l+" as const"}).export().asKind("const").withName(s).withComment(e.description).withBlock(e.values.map(l=>{const u=this.makeValidEnumIdentifier(this.convertName(l,{useTypesPrefix:!1,transformUnderscore:!0})),c=b(l.description,1),p=l.name,h=r(p)??p;return c+d(`${u}: ${k(h)}`)}).join(`,
|
|
41
41
|
`)).string,a].join(`
|
|
42
42
|
`)}return new g(this._declarationBlockConfig).export().asKind(this.config.constEnums?"const enum":"enum").withName(s).withComment(e.description).withBlock(this.buildEnumValuesBlock(n,e.values)).string}getPunctuation(e){return";"}}export{je as G,Me as J,w as N,Be as Q,Ce as R,P as W,Ae as Y,Ue as Z,Pe as z};
|
|
43
|
-
//# sourceMappingURL=visitor-jgO2GXVr-
|
|
43
|
+
//# sourceMappingURL=visitor-jgO2GXVr-DtE61rfq.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visitor-jgO2GXVr-DtE61rfq.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{m as r}from"./index-CnxM4IIa-
|
|
1
|
+
import{m as r}from"./index-CnxM4IIa-CoekJPsT.js";import"./main.9ezbfd1a.js";import"./editors-DVrDEp-F.js";import"./index-T6Et30Eh-B1ytNt1O.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/var m=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,d=Object.prototype.hasOwnProperty,p=(t,e,o,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of c(e))!d.call(t,n)&&n!==o&&m(t,n,{get:()=>e[n],enumerable:!(i=l(e,n))||i.enumerable});return t},s=(t,e,o)=>(p(t,e,"default"),o),a={};s(a,r);var b={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:a.languages.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:a.languages.IndentAction.Indent}}]},x={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};export{b as conf,x as language};
|
|
7
|
-
//# sourceMappingURL=xml-C95L75A3-
|
|
7
|
+
//# sourceMappingURL=xml-C95L75A3-CktYugFs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xml-C95L75A3-CktYugFs.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import{m as a}from"./index-CnxM4IIa-
|
|
1
|
+
import{m as a}from"./index-CnxM4IIa-CoekJPsT.js";import"./main.9ezbfd1a.js";import"./editors-DVrDEp-F.js";import"./index-T6Et30Eh-B1ytNt1O.js";/*!-----------------------------------------------------------------------------
|
|
2
2
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
3
|
* Version: 0.45.0(5e5af013f8d295555a7210df0d5f2cea0bf5dd56)
|
|
4
4
|
* Released under the MIT license
|
|
5
5
|
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
|
|
6
6
|
*-----------------------------------------------------------------------------*/var i=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,d=(n,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of u(e))!s.call(n,t)&&t!==r&&i(n,t,{get:()=>e[t],enumerable:!(o=c(e,t))||o.enumerable});return n},m=(n,e,r)=>(d(n,e,"default"),r),l={};m(l,a);var w={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:l.languages.IndentAction.Indent}}]},y={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}};export{w as conf,y as language};
|
|
7
|
-
//# sourceMappingURL=yaml-CBgf5N3D-
|
|
7
|
+
//# sourceMappingURL=yaml-CBgf5N3D-DNYfpm9a.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"yaml-CBgf5N3D-DNYfpm9a.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
package/dist/index.html
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
"MODE": "InByb2R1Y3Rpb24i",
|
|
5
5
|
"DEV": "ZmFsc2U=",
|
|
6
6
|
"PROD": "dHJ1ZQ==",
|
|
7
|
-
"APP_VERSION": "
|
|
7
|
+
"APP_VERSION": "IjEuMC4wLWRldi4xMzUi",
|
|
8
8
|
"REQUIRES_HARD_REFRESH": "dHJ1ZQ==",
|
|
9
|
-
"SENTRY_RELEASE": "
|
|
9
|
+
"SENTRY_RELEASE": "IjEuMC4wLWRldi4xMzUi",
|
|
10
10
|
"BASE_PATH": "Ii8i",
|
|
11
11
|
"BASE_HREF": "Ii4vIg==",
|
|
12
12
|
"PH_CONNECT_APP_REQUIRES_HARD_REFRESH": "InRydWUi",
|
|
@@ -51,4 +51,4 @@
|
|
|
51
51
|
);
|
|
52
52
|
});
|
|
53
53
|
window.__VITE_ENVS = env;
|
|
54
|
-
</script><script type="module" crossorigin="" src="/assets/main.
|
|
54
|
+
</script><script type="module" crossorigin="" src="/assets/main.9ezbfd1a.js"></script><link rel="stylesheet" crossorigin="" href="/assets/main-Bfrdc6YH.css"></head><body><div id="app"></div></body></html>
|
package/dist/service-worker.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const c=self,i="1.0.0-dev.
|
|
1
|
+
const c=self,i="1.0.0-dev.135",r=!0,l="version-cache",o="app-version";c.addEventListener("install",()=>{c.skipWaiting().catch(console.error)});c.addEventListener("activate",e=>{e.waitUntil(c.clients.claim()),p(i,r).catch(console.error)});function E(e,n){return e.postMessage(n)}async function p(e,n){try{const t=await caches.open(l),s=await t.match(o);let a="";s&&(a=await s.text()),a===""?await t.put(o,new Response(e)):a!==e&&(console.log("Current version:",a),console.log("New version:",e),await t.put(o,new Response(e)),await h(e,n))}catch(t){console.error("Error checking version:",t)}}async function h(e,n){await c.clients.claim(),(await c.clients.matchAll()).forEach(s=>{E(s,{type:"NEW_VERSION_AVAILABLE",version:e,requiresHardRefresh:n})})}
|
|
2
2
|
//# sourceMappingURL=service-worker.js.map
|